hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5193b6866821222ab3feb44d150c5f9a722f9434
7,698
py
Python
Lib/site-packages/dask/dataframe/io/sql.py
jsturtz/env
d523b0be3345f883a727679d58ff29efb4389d16
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/dask/dataframe/io/sql.py
jsturtz/env
d523b0be3345f883a727679d58ff29efb4389d16
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/dask/dataframe/io/sql.py
jsturtz/env
d523b0be3345f883a727679d58ff29efb4389d16
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np import pandas as pd from ... import delayed from .io import from_delayed, from_pandas def read_sql_table( table, uri, index_col, divisions=None, npartitions=None, limits=None, columns=None, bytes_per_chunk=256 * 2 ** 20, head_rows=5, schema=None, meta=No...
37.55122
91
0.627566
f3748ea1a69fa607cdf046624bf72c1374d9e063
118
py
Python
_legacy/_ast_score/exceptions.py
StepicOrg/submissions-clustering
d61f4cd24ff165ed9b0cdde79d9dcd1ffae47387
[ "MIT" ]
1
2017-11-20T02:28:07.000Z
2017-11-20T02:28:07.000Z
_legacy/_ast_score/exceptions.py
StepicOrg/submissions-clustering
d61f4cd24ff165ed9b0cdde79d9dcd1ffae47387
[ "MIT" ]
6
2017-08-22T10:34:26.000Z
2017-08-25T14:29:38.000Z
_legacy/_ast_score/exceptions.py
StepicOrg/submissions-clustering
d61f4cd24ff165ed9b0cdde79d9dcd1ffae47387
[ "MIT" ]
null
null
null
__all__ = [] class AmorphException(Exception): pass class InvalidArgumentException(AmorphException): pass
11.8
48
0.745763
3edbc2d43d3e79c64cbe1f72fec3e98af079ecf6
9,563
py
Python
tests/test_chromosome.py
olendorf/coop_evolve
147b987088bfd6b8da23c3775e8b871ee19518b3
[ "Apache-2.0" ]
null
null
null
tests/test_chromosome.py
olendorf/coop_evolve
147b987088bfd6b8da23c3775e8b871ee19518b3
[ "Apache-2.0" ]
5
2017-06-16T17:39:50.000Z
2019-11-13T14:49:44.000Z
tests/test_chromosome.py
olendorf/coop_evolve
147b987088bfd6b8da23c3775e8b871ee19518b3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `coop_evolve.chromosome` class.""" import math import pytest import re from app_settings import AppSettings from scipy.stats import binom from scipy.stats import nbinom from scipy.stats import poisson from coop_evolve.chromosome import Chromosome class Te...
36.223485
91
0.574506
e40ebcdf391dd4776b816c91741a38955d4b8e08
953
py
Python
stats/citylist.py
private-octopus/diana
af8ffaac4a8fad26bf78104e5238e358a5ad8b21
[ "MIT" ]
3
2018-02-15T20:00:44.000Z
2020-07-16T06:08:20.000Z
stats/citylist.py
private-octopus/diana
af8ffaac4a8fad26bf78104e5238e358a5ad8b21
[ "MIT" ]
111
2017-11-04T23:13:38.000Z
2021-05-20T00:12:28.000Z
stats/citylist.py
private-octopus/dianal
af8ffaac4a8fad26bf78104e5238e358a5ad8b21
[ "MIT" ]
5
2018-06-21T08:18:26.000Z
2021-10-11T02:02:54.000Z
#!/usr/bin/python # coding=utf-8 # # This scripts tries to estimate the variance of a few M3 test metrics. import codecs import sys # Main program # Load a list of files from argv[1], and for each file compute the # list of metrics and their contribution to variances. Then, # compute the final values of the metrics a...
23.825
71
0.632739
87d4ae8a089b9b65307eb7f6dac6055b8f71418c
10,792
py
Python
contrib/testgen/gen_key_io_test_vectors.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
3
2020-04-24T08:03:09.000Z
2020-06-24T00:53:03.000Z
contrib/testgen/gen_key_io_test_vectors.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
8
2021-02-06T16:15:10.000Z
2022-02-20T20:08:45.000Z
contrib/testgen/gen_key_io_test_vectors.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
7
2020-02-26T22:08:49.000Z
2021-02-06T12:35:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Eleccoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Generate valid and invalid base58/bech32(m) address and private key test vectors. Usage: PYTHONP...
40.419476
133
0.618143
c136bf1d154368b9faebb0195c579450e8ee2a2f
1,362
py
Python
bookstore/tests.py
bassamalasadi/bookstore
9b80044efd9179704770422cc34b55059c6fef21
[ "MIT" ]
null
null
null
bookstore/tests.py
bassamalasadi/bookstore
9b80044efd9179704770422cc34b55059c6fef21
[ "MIT" ]
null
null
null
bookstore/tests.py
bassamalasadi/bookstore
9b80044efd9179704770422cc34b55059c6fef21
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Book, Writer class BookStoreTest(TestCase): def setUp(self): """ Setup a new writer and book """ self.writer = Writer.objects.create(name='writertest') self.book = Book.objects.create( book_name = 'booktest', syno...
30.954545
75
0.629222
a5661e62ccd52ec407ea63070439d249a3330e9b
3,036
py
Python
src/pytree/binarytree/tree.py
RESPULTE/PyTree
fea511d1414f536a1a523b8b01645ae763083027
[ "MIT" ]
null
null
null
src/pytree/binarytree/tree.py
RESPULTE/PyTree
fea511d1414f536a1a523b8b01645ae763083027
[ "MIT" ]
null
null
null
src/pytree/binarytree/tree.py
RESPULTE/PyTree
fea511d1414f536a1a523b8b01645ae763083027
[ "MIT" ]
null
null
null
from pytree.Binarytree.Node import RBT_Node, AVL_Node, Splay_Node, BST_Node from pytree.Binarytree._tree import BinaryTree __all__ = ['RBTree', 'BSTree', 'AVLTree', 'SplayTree'] class RBTree(BinaryTree): ''' - a type of Balanced Binary Search Tree that does not maintain a strict height level for every ...
28.111111
84
0.640316
c4dba711d6ae041bc564b687d47bd5e0ecd7131f
545
py
Python
database.py
yuukinokai/MCHacks2018
86dd2b5db37353365c5dd49c9622f6fdda6f8bfb
[ "MIT" ]
null
null
null
database.py
yuukinokai/MCHacks2018
86dd2b5db37353365c5dd49c9622f6fdda6f8bfb
[ "MIT" ]
null
null
null
database.py
yuukinokai/MCHacks2018
86dd2b5db37353365c5dd49c9622f6fdda6f8bfb
[ "MIT" ]
null
null
null
import pymysql.cursors host = "localhost" user = "root" password = "" dbName = "test" def insertMessage(email, message): connection = pymysql.connect(host = host, user = user, password = password, db = dbName, charset = 'utf8mb4', cursorclass=pymysql.cursors.DictCursor) try: with connection.cursor() ...
32.058824
153
0.636697
99591ad39a225a1bc4239b9f1bf754479dfee8c5
20,887
py
Python
gpflow/likelihoods.py
a5a/GPflow
5fbff1955f4e81d5ec9b44947a9f409314dc2b91
[ "Apache-2.0" ]
null
null
null
gpflow/likelihoods.py
a5a/GPflow
5fbff1955f4e81d5ec9b44947a9f409314dc2b91
[ "Apache-2.0" ]
null
null
null
gpflow/likelihoods.py
a5a/GPflow
5fbff1955f4e81d5ec9b44947a9f409314dc2b91
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Valentine Svensson, James Hensman, alexggmatthews, Alexis Boukouvalas # Copyright 2017 Artem Artemev @awav # # 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.apac...
34.928094
117
0.626562
52669cb5ade97c04141340534d9eeeb88a09282b
2,949
py
Python
bfxapi/utils/custom_logger.py
VictorInacio/bitfinex-api-py
6883406da3891898b6be9caffb45f2cc3c696c8a
[ "Apache-2.0" ]
null
null
null
bfxapi/utils/custom_logger.py
VictorInacio/bitfinex-api-py
6883406da3891898b6be9caffb45f2cc3c696c8a
[ "Apache-2.0" ]
null
null
null
bfxapi/utils/custom_logger.py
VictorInacio/bitfinex-api-py
6883406da3891898b6be9caffb45f2cc3c696c8a
[ "Apache-2.0" ]
1
2020-12-03T01:43:48.000Z
2020-12-03T01:43:48.000Z
""" Module used to describe all of the different data types """ import logging RESET_SEQ = "\033[0m" COLOR_SEQ = "\033[1;%dm" BOLD_SEQ = "\033[1m" UNDERLINE_SEQ = "\033[04m" YELLOW = '\033[93m' WHITE = '\33[37m' BLUE = '\033[34m' LIGHT_BLUE = '\033[94m' RED = '\033[91m' GREY = '\33[90m' KEYWORD_COLORS = { 'WARN...
30.402062
81
0.640217
a0264cf0167ab3434e9a00b83d9c3d381a5db415
10,607
py
Python
oslo_messaging/tests/drivers/zmq/test_zmq_ack_manager.py
ox12345/oslo.messaging
bdb21c0bcddfb2dac1e0f4d926e7df53d975bf0c
[ "Apache-1.1" ]
null
null
null
oslo_messaging/tests/drivers/zmq/test_zmq_ack_manager.py
ox12345/oslo.messaging
bdb21c0bcddfb2dac1e0f4d926e7df53d975bf0c
[ "Apache-1.1" ]
null
null
null
oslo_messaging/tests/drivers/zmq/test_zmq_ack_manager.py
ox12345/oslo.messaging
bdb21c0bcddfb2dac1e0f4d926e7df53d975bf0c
[ "Apache-1.1" ]
null
null
null
# Copyright 2016 Mirantis, 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 ...
46.726872
79
0.645894
6cc84c385a88d6056cc3eacf0b1474bb27dea577
2,654
py
Python
Problema3/sobres/sobres/settings.py
danic96/Problemes
d53a14f14000cc95f9c4d00d1554501b2b361f54
[ "MIT" ]
null
null
null
Problema3/sobres/sobres/settings.py
danic96/Problemes
d53a14f14000cc95f9c4d00d1554501b2b361f54
[ "MIT" ]
null
null
null
Problema3/sobres/sobres/settings.py
danic96/Problemes
d53a14f14000cc95f9c4d00d1554501b2b361f54
[ "MIT" ]
null
null
null
""" Django settings for sobres project. Generated by 'django-admin startproject' using Django 1.8.17. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build path...
25.519231
71
0.699699
9f0959dc88b7ec47fc752e14776120964334f574
1,551
py
Python
tests/components/mazda/test_lock.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/mazda/test_lock.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/mazda/test_lock.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The lock tests for the Mazda Connected Services integration.""" from homeassistant.components.lock import ( DOMAIN as LOCK_DOMAIN, SERVICE_LOCK, SERVICE_UNLOCK, STATE_LOCKED, ) from homeassistant.const import ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME from homeassistant.helpers import entity_registry as er ...
26.288136
71
0.718891
4c162094548b68d9dca90e6842ebdf9da9739c17
1,394
py
Python
bco_api/api/scripts/method_specific/POST_check_object_permissions.py
syntheticgio/bco_api
b78c691f0508654aac66e6bfdde4fcd548a89ad1
[ "MIT" ]
null
null
null
bco_api/api/scripts/method_specific/POST_check_object_permissions.py
syntheticgio/bco_api
b78c691f0508654aac66e6bfdde4fcd548a89ad1
[ "MIT" ]
null
null
null
bco_api/api/scripts/method_specific/POST_check_object_permissions.py
syntheticgio/bco_api
b78c691f0508654aac66e6bfdde4fcd548a89ad1
[ "MIT" ]
null
null
null
import json from .. import JsonUtils # For server information. from django.conf import settings # User info from rest_framework.authtoken.models import Token from django.contrib.auth.models import User, Group # Permissions from guardian.shortcuts import get_group_perms # Responses from rest_framework.response impor...
24.45614
104
0.746772
411eef8e29ac47d9f9fce20aede6b4ab3933954d
68,063
py
Python
salt/modules/dockerio.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
salt/modules/dockerio.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
salt/modules/dockerio.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Management of Docker Containers .. versionadded:: 2014.1.0 .. note:: The DockerIO integration is still in beta; the API is subject to change General Notes ------------- As we use states, we don't want to be continuously popping dockers, so we will map each container id (or image) wi...
29.400864
131
0.555368
e08b51033bd93a87cff74605d2f0ef0cfbdb3257
287
py
Python
cxxheaderparser/errors.py
michelp/cxxheaderparser
83bb2903790cf448bf838cdb8a93ca96e758bd1a
[ "BSD-3-Clause" ]
12
2020-12-28T09:40:53.000Z
2022-03-13T15:36:21.000Z
cxxheaderparser/errors.py
michelp/cxxheaderparser
83bb2903790cf448bf838cdb8a93ca96e758bd1a
[ "BSD-3-Clause" ]
28
2021-01-04T14:58:59.000Z
2022-01-03T03:00:16.000Z
cxxheaderparser/errors.py
michelp/cxxheaderparser
83bb2903790cf448bf838cdb8a93ca96e758bd1a
[ "BSD-3-Clause" ]
1
2021-11-06T03:44:53.000Z
2021-11-06T03:44:53.000Z
import typing from .lexer import LexToken class CxxParseError(Exception): """ Exception raised when a parsing error occurs """ def __init__(self, msg: str, tok: typing.Optional["LexToken"] = None) -> None: Exception.__init__(self, msg) self.tok = tok
20.5
82
0.655052
22620d601d5d82377ec03afaa3746cbb24862bff
1,302
py
Python
cogs/general.py
Gumbachi/HallBot
eb779507ffd2f17b7f9776c3dda2a55de34cae6e
[ "MIT" ]
null
null
null
cogs/general.py
Gumbachi/HallBot
eb779507ffd2f17b7f9776c3dda2a55de34cae6e
[ "MIT" ]
null
null
null
cogs/general.py
Gumbachi/HallBot
eb779507ffd2f17b7f9776c3dda2a55de34cae6e
[ "MIT" ]
null
null
null
import discord import random import asyncio from common.cfg import devguilds from discord.commands import slash_command class GeneralCommands(discord.Cog): """Handles simple commands and listeners.""" def __init__(self, bot): self.bot = bot @slash_command(name="howdy", guild_ids=devguilds) a...
27.702128
71
0.632873
4bde73a9882de4feb721f2b4a076a1dbef24803a
10,445
py
Python
Sketches/THF/3D/Util3D.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/THF/3D/Util3D.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/THF/3D/Util3D.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
39.415094
121
0.530589
2e40dd0712b53e988528391c836df15e30467a3c
317
py
Python
3/max_prod_word_len.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
4
2018-03-07T02:56:03.000Z
2021-06-15T05:43:31.000Z
3/max_prod_word_len.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
null
null
null
3/max_prod_word_len.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
1
2021-09-02T12:05:15.000Z
2021-09-02T12:05:15.000Z
class Solution(object): def maxProduct(self, words): d = {} for w in words: mask = 0 for c in set(w): mask |= (1 << (ord(c) - 97)) d[mask] = max(d.get(mask, 0), len(w)) return max([d[x] * d[y] for x in d for y in d if not x & y] or [0])
31.7
75
0.432177
f79ad1ef860269c0bc696d5f75a3d65ea6b68661
2,545
py
Python
openpyxl/worksheet/tests/test_controls.py
dangqhuy/openpyxl
42e929b69b0938b081a62fed529ce470054249fb
[ "MIT" ]
12
2019-08-07T16:48:21.000Z
2021-12-13T02:47:22.000Z
openpyxl/worksheet/tests/test_controls.py
dangqhuy/openpyxl
42e929b69b0938b081a62fed529ce470054249fb
[ "MIT" ]
19
2019-12-29T05:07:36.000Z
2021-04-22T18:09:49.000Z
openpyxl/worksheet/tests/test_controls.py
dangqhuy/openpyxl
42e929b69b0938b081a62fed529ce470054249fb
[ "MIT" ]
1
2020-05-26T20:33:10.000Z
2020-05-26T20:33:10.000Z
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl import pytest from openpyxl.xml.functions import fromstring, tostring from openpyxl.tests.helper import compare_xml from openpyxl.drawing.spreadsheet_drawing import AnchorMarker from openpyxl.worksheet.ole import ObjectAnchor @pytest.fixture ...
33.051948
117
0.589391
0f38ddcf4b3d4c615c8dab9c7f1a16c4e1bc0509
548
py
Python
pytest_splunk_env/splunk/helmut/manager/__init__.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
1
2021-03-18T23:35:08.000Z
2021-03-18T23:35:08.000Z
pytest_splunk_env/splunk/helmut/manager/__init__.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
null
null
null
pytest_splunk_env/splunk/helmut/manager/__init__.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
1
2022-03-27T16:55:33.000Z
2022-03-27T16:55:33.000Z
# SPDX-FileCopyrightText: 2020 Splunk Inc. # # SPDX-License-Identifier: Apache-2.0 """ @author: Nicklas Ansman-Giertz @contact: U{ngiertz@splunk.com<mailto:ngiertz@splunk.com>} @since: 2011-11-23 """ from abc import ABCMeta from future.utils import with_metaclass from pytest_splunk_env.splunk.helmut.log import Loggi...
21.076923
58
0.731752
ccdfd5f00570c7867b88540af76e1a18b5c22a89
7,203
py
Python
train.py
gouezec/aipnd-project
d1aaf1866d0db80b6c8560aac128a927de9957f1
[ "MIT" ]
null
null
null
train.py
gouezec/aipnd-project
d1aaf1866d0db80b6c8560aac128a927de9957f1
[ "MIT" ]
null
null
null
train.py
gouezec/aipnd-project
d1aaf1866d0db80b6c8560aac128a927de9957f1
[ "MIT" ]
null
null
null
# coding: ascii import os import time import copy import argparse import json import numpy as np import torch from torch import nn, optim from torchvision import transforms from torchvision.datasets import ImageFolder from torch.utils.data import DataLoader from flowerclassifier import create_model def t...
42.875
150
0.563376
9b9df6ece268143e49664d2ef0e6a0424879eeec
16,294
py
Python
models/segmentation.py
ver0z/Deformable-DETR-
f37ef3e73675ee4be1d8a0649901b1402f907f1a
[ "Apache-2.0" ]
5
2021-12-09T02:47:24.000Z
2022-03-08T17:37:26.000Z
models/segmentation.py
ver0z/Deformable-DETR-
f37ef3e73675ee4be1d8a0649901b1402f907f1a
[ "Apache-2.0" ]
null
null
null
models/segmentation.py
ver0z/Deformable-DETR-
f37ef3e73675ee4be1d8a0649901b1402f907f1a
[ "Apache-2.0" ]
1
2022-03-31T07:15:18.000Z
2022-03-31T07:15:18.000Z
# ------------------------------------------------------------------------ # Deformable DETR # Copyright (c) 2020 SenseTime. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ # Modified from DET...
44.037838
121
0.585185
d74f7474088306cf89656792e14e64cec7944e22
29,469
py
Python
fudge/reactions/base.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
fudge/reactions/base.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
fudge/reactions/base.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> from pqu import PQU as PQUModule from PoPs import IDs as IDsPoPsModule from PoPs.groups import misc as chemicalElementMiscPo...
46.925159
183
0.63521
3c4b16c98b97ff465b3b22fd588c426a7d37e754
1,572
py
Python
app.py
andyalky/facebook-mailchimp-webhook
337a1fbafb5bf45a5cf05f31cb7c2d2771ee5da3
[ "MIT" ]
2
2017-04-05T00:40:46.000Z
2018-08-14T18:06:27.000Z
app.py
andyalky/facebook-mailchimp-webhook
337a1fbafb5bf45a5cf05f31cb7c2d2771ee5da3
[ "MIT" ]
null
null
null
app.py
andyalky/facebook-mailchimp-webhook
337a1fbafb5bf45a5cf05f31cb7c2d2771ee5da3
[ "MIT" ]
2
2019-12-22T19:17:53.000Z
2021-02-06T20:57:49.000Z
from flask import Flask, request from facebookads.adobjects.lead import Lead from facebookads.api import FacebookAdsApi import mailchimp import os import json FACEBOOK_APP_ID = os.environ.get('FACEBOOK_APP_ID') FACEBOOK_APP_SECRET = os.environ.get('FACEBOOK_APP_SECRET') FACEBOOK_ACCESS_TOKEN = os.environ.get('FACEBO...
30.230769
88
0.714377
90577dba9639c37391de3e2064fe2eea23be814e
4,308
py
Python
var/spack/repos/builtin/packages/libfuse/package.py
mtmiller/spack
c97c135f1dbe24955048fcc4f0f98281ef0c9300
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-10-04T20:05:45.000Z
2021-10-04T20:05:45.000Z
var/spack/repos/builtin/packages/libfuse/package.py
mtmiller/spack
c97c135f1dbe24955048fcc4f0f98281ef0c9300
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
23
2021-01-25T15:13:45.000Z
2022-03-28T20:19:04.000Z
var/spack/repos/builtin/packages/libfuse/package.py
mtmiller/spack
c97c135f1dbe24955048fcc4f0f98281ef0c9300
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2018-09-13T18:04:56.000Z
2020-03-18T20:52:06.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re from spack import * class Libfuse(MesonPackage): """The reference implementation of the Linux FUSE (Files...
44.412371
214
0.687558
48a0001243f60c6548532eef60105210ad82b634
1,422
py
Python
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20200706/StartLoggingRequest.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-actiontrail/aliyunsdkactiontrail/request/v20200706/StartLoggingRequest.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-actiontrail/aliyunsdkactiontrail/request/v20200706/StartLoggingRequest.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...
37.421053
87
0.76512
1db9666fbae42216a03e01a6bcce5fb526c9eeda
63
py
Python
commands.py
timurdyutin/udarenie
0f388b8f88b799b8d462a0cc3320beb82d8597c4
[ "MIT" ]
null
null
null
commands.py
timurdyutin/udarenie
0f388b8f88b799b8d462a0cc3320beb82d8597c4
[ "MIT" ]
null
null
null
commands.py
timurdyutin/udarenie
0f388b8f88b799b8d462a0cc3320beb82d8597c4
[ "MIT" ]
null
null
null
availableCommands = ["Начать", "Начать игру", "Выйти из игры"]
31.5
62
0.698413
3f2f1969b784a9354e5a905ddf12411e2e206355
1,692
py
Python
tests.py
bmacphee/wordle
de4d5c96680f09a7e023f9f67e70b930f957eb5f
[ "MIT" ]
null
null
null
tests.py
bmacphee/wordle
de4d5c96680f09a7e023f9f67e70b930f957eb5f
[ "MIT" ]
null
null
null
tests.py
bmacphee/wordle
de4d5c96680f09a7e023f9f67e70b930f957eb5f
[ "MIT" ]
null
null
null
from pguess import Guess from server import Color, compute_result def test_a(): result = compute_result('index', 'steep') assert (Color.BLACK, Color.BLACK, Color.BLACK, Color.GREEN, Color.BLACK) == result def test_b(): result = compute_result('index', 'panda') assert (Color.BLACK, Color.BLACK, Color...
30.214286
89
0.68026
7e06f640274a5941730f8a2dcdefec0e0e7e6451
639
py
Python
indico_hub/crawler.py
hassanTiger11/indico-hub
25c57673a56fac5b5a61814102b8543057df7640
[ "MIT" ]
null
null
null
indico_hub/crawler.py
hassanTiger11/indico-hub
25c57673a56fac5b5a61814102b8543057df7640
[ "MIT" ]
null
null
null
indico_hub/crawler.py
hassanTiger11/indico-hub
25c57673a56fac5b5a61814102b8543057df7640
[ "MIT" ]
null
null
null
import socket from urllib.parse import urlparse from .db import db from .es_conf import es, index_name def geolocate(instance): url = urlparse(instance.url).hostname try: ip_address = socket.gethostbyname(url) except socket.gaierror: return new_doc = es.get(index=index_name, id=inst...
27.782609
80
0.696401
a001192f4aafe78ef8da2541eab79bbf1bf2816e
512
py
Python
SfM/Traditional/BuildVisibilityMatrix.py
akathpal/UMD-CMSC733-ComputerVision
f5fa21a0ada8ab8ea08a6c558f6df9676570a2df
[ "MIT" ]
1
2022-03-30T05:03:10.000Z
2022-03-30T05:03:10.000Z
SfM/Traditional/BuildVisibilityMatrix.py
akathpal/UMD-CMSC733-ComputerVision
f5fa21a0ada8ab8ea08a6c558f6df9676570a2df
[ "MIT" ]
null
null
null
SfM/Traditional/BuildVisibilityMatrix.py
akathpal/UMD-CMSC733-ComputerVision
f5fa21a0ada8ab8ea08a6c558f6df9676570a2df
[ "MIT" ]
1
2022-03-30T05:03:09.000Z
2022-03-30T05:03:09.000Z
""" File to return Visibility matrix """ import sys sys.dont_write_bytecode = True def BuildVisibilityMatrix(Visibility, r_indx, print_enable=False): """To return Visibility matrix element Args: Visibility (array): Visibility Matrix r_indx (images): Index of images print_enable (bool...
22.26087
69
0.671875
f2e70341d975fb06bce7f2ce6cba7d8c3bc9826c
13,431
py
Python
tensorflow/python/eager/ops_test.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
24
2018-02-01T15:49:22.000Z
2021-01-11T16:31:18.000Z
tensorflow/python/eager/ops_test.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
2
2017-08-01T21:11:06.000Z
2017-08-01T23:07:02.000Z
tensorflow/python/eager/ops_test.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
4
2018-10-29T18:43:22.000Z
2020-09-28T07:19:52.000Z
# Copyright 2017 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...
37.51676
89
0.657509
5252e26508a94414499885601fbdadfe3c75c57f
636
py
Python
tests/messages/message_interface01.py
pnarvor/nephelae_paparazzi
1c000444c39b342e90f39f432737ef06be762f56
[ "BSD-3-Clause" ]
null
null
null
tests/messages/message_interface01.py
pnarvor/nephelae_paparazzi
1c000444c39b342e90f39f432737ef06be762f56
[ "BSD-3-Clause" ]
null
null
null
tests/messages/message_interface01.py
pnarvor/nephelae_paparazzi
1c000444c39b342e90f39f432737ef06be762f56
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python3 import signal from nephelae_paparazzi import MessageInterface messageInterface = MessageInterface() def callback(msg): # print(msg) print(msg.fieldvalues) # bindId = messageInterface.bind(callback, '(.* GPS .*)') # bindId = messageInterface.bind(callback, '(.* FLIGHT_PARAM .*)') # bindI...
31.8
68
0.699686
77d7e366aaa58a6189406ee2aca72fa98c61b2c4
2,736
py
Python
ucsmsdk/mometa/aaa/AaaSshAuth.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/aaa/AaaSshAuth.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/aaa/AaaSshAuth.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for AaaSshAuth ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class AaaSshAuthConsts: OLD_STR_TYPE_KEY = "key" OLD_STR_TYPE_NONE = "none" STR_TYPE_KEY = "key" STR...
49.745455
248
0.635599
8a2258cf6eb652b98bcf86c60fad11535e253e5d
2,318
py
Python
tests/modules/extra/rabbitmq/mother/rabbitmq_message_consumer_mother.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
19
2019-11-01T09:27:17.000Z
2021-12-15T10:52:31.000Z
tests/modules/extra/rabbitmq/mother/rabbitmq_message_consumer_mother.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
68
2020-01-15T06:55:00.000Z
2022-02-22T15:57:24.000Z
tests/modules/extra/rabbitmq/mother/rabbitmq_message_consumer_mother.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
2
2019-11-19T10:40:25.000Z
2019-11-28T07:12:07.000Z
from petisco.base.domain.message.chaos.message_chaos import MessageChaos from petisco.extra.rabbitmq import RabbitMqConnector, RabbitMqMessageConsumer from petisco.legacy.logger.interface_logger import ILogger from petisco.legacy.logger.not_implemented_logger import NotImplementedLogger from tests.modules.extra.rabbitm...
32.647887
80
0.668248
9fbfa28c4478776554b95ad5bbc86cf8879752eb
769
py
Python
ymir/backend/src/ymir_app/tests/api/test_upload.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
64
2021-11-15T03:48:00.000Z
2022-03-25T07:08:46.000Z
ymir/backend/src/ymir_app/tests/api/test_upload.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
35
2021-11-23T04:14:35.000Z
2022-03-26T09:03:43.000Z
ymir/backend/src/ymir_app/tests/api/test_upload.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
57
2021-11-11T10:15:40.000Z
2022-03-29T07:27:54.000Z
from pathlib import Path from typing import Union from fastapi.testclient import TestClient from pydantic import AnyHttpUrl, BaseModel from app.config import settings class Resp(BaseModel): code: int message: str result: Union[AnyHttpUrl, str] def test_upload_file(client: TestClient, tmp_path, normal_...
24.806452
86
0.648895
c1dd26958bb7311d6822b60a3e3e185e002fbc38
4,130
py
Python
SocialNPHS/language/tweet.py
controversial/SocialNPHS
ec2d51e7801e62be68b8ed712b1f33ad58a0404c
[ "MIT" ]
1
2016-07-23T19:39:46.000Z
2016-07-23T19:39:46.000Z
SocialNPHS/language/tweet.py
controversial/SocialNPHS
ec2d51e7801e62be68b8ed712b1f33ad58a0404c
[ "MIT" ]
4
2016-09-14T23:27:06.000Z
2016-12-17T19:47:11.000Z
SocialNPHS/language/tweet.py
controversial/SocialNPHS
ec2d51e7801e62be68b8ed712b1f33ad58a0404c
[ "MIT" ]
2
2016-08-10T12:27:30.000Z
2019-06-27T17:00:53.000Z
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tag import util from nltk.tokenize import sent_tokenize, TweetTokenizer from nltk.sentiment.vader import SentimentIntensityAnalyzer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet)...
37.889908
79
0.577966
eaad9af8c2cabdb3d69178cf3693b380c2a3f76d
946
py
Python
zetafold/util/wrapped_array.py
rhiju/myfold
d789c4c8b1cff0a3b860a049fb00f3e02de7d8d1
[ "MIT" ]
8
2018-11-14T05:18:56.000Z
2018-12-03T14:21:56.000Z
zetafold/util/wrapped_array.py
rhiju/myfold
d789c4c8b1cff0a3b860a049fb00f3e02de7d8d1
[ "MIT" ]
9
2019-01-02T22:17:33.000Z
2019-03-29T23:15:50.000Z
zetafold/util/wrapped_array.py
rhiju/myfold
d789c4c8b1cff0a3b860a049fb00f3e02de7d8d1
[ "MIT" ]
3
2018-10-27T21:28:42.000Z
2018-12-03T14:21:57.000Z
class WrappedArray: ''' For all the various cross-checks, like equality of partition function starting at any i and wrapping around to N and then back 1 and then i-1, need to keep applying modulo N. ''' def __init__( self, N, val = None ): self.data = [val] * N self.N = N def __...
39.416667
98
0.540169
afad33f4159554357c2efa70ff71a7e9735bc682
489
py
Python
world challenges 3/dictionary/df90.py
T-Terra/Exercises-of-Python
65dfb9ca32faff13f9d1160c07425330a68eef1a
[ "MIT" ]
null
null
null
world challenges 3/dictionary/df90.py
T-Terra/Exercises-of-Python
65dfb9ca32faff13f9d1160c07425330a68eef1a
[ "MIT" ]
null
null
null
world challenges 3/dictionary/df90.py
T-Terra/Exercises-of-Python
65dfb9ca32faff13f9d1160c07425330a68eef1a
[ "MIT" ]
null
null
null
main_dic = {} main_dic['name'] = str(input(f'nome: ')) main_dic['media'] = float(input(f'media de {main_dic["name"]}: ')) print(25 * '-=') print(f'O nome é igual a {main_dic["name"]}') print(f'Média igual a {main_dic["media"]}') if main_dic['media'] >= 7: main_dic['situation'] = 'Aprovado!' elif 5 <= main_dic['med...
32.6
66
0.625767
dceb26a1645aeeb71e260dae5a110d1d74cfcd97
4,014
py
Python
data/train/python/dceb26a1645aeeb71e260dae5a110d1d74cfcd97make_char_img.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/dceb26a1645aeeb71e260dae5a110d1d74cfcd97make_char_img.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/dceb26a1645aeeb71e260dae5a110d1d74cfcd97make_char_img.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
#!/home/kohei/.pyenv/shims/python # -*- encoding: utf-8 -*- import sys sys.path.append('..') import kdebug from kimage import * from kfont import get_word_image if(len(sys.argv) <= 1): print "no save object: all, ascii" sys.exit(1) SAVE_OBJECT = sys.argv[1] if(len(sys.argv) <= 2): print "no save director...
21.815217
61
0.397857
93913ae4ebf4f5817a238e23f6b1a0315f3f2088
15,915
py
Python
main.py
odemasi/simpletod
8d694bc1b09c12497488be46879dfe1dede83df3
[ "BSD-3-Clause" ]
167
2020-07-26T08:33:54.000Z
2022-03-24T13:30:07.000Z
main.py
odemasi/simpletod
8d694bc1b09c12497488be46879dfe1dede83df3
[ "BSD-3-Clause" ]
27
2020-07-27T07:07:05.000Z
2021-11-30T11:10:36.000Z
main.py
odemasi/simpletod
8d694bc1b09c12497488be46879dfe1dede83df3
[ "BSD-3-Clause" ]
62
2020-08-02T18:25:55.000Z
2022-02-06T15:04:57.000Z
""" Fine-tuning pretrained language model (GPT2) on Task-oriented Dialogue """ import argparse import glob import logging import os import pickle import random import re # import shutil # from typing import Dict, List, Tuple import numpy as np import torch # from torch.nn.utils.rnn import pad_sequence # from torch.u...
38.257212
179
0.666855
bf06fb772978cbd8b941e3a1703a644646af4b97
17,036
py
Python
google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py
busunkim96/python-automl
7df905910b86721a6ee3a3b6c916a4f8e27d0aa7
[ "Apache-2.0" ]
null
null
null
google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py
busunkim96/python-automl
7df905910b86721a6ee3a3b6c916a4f8e27d0aa7
[ "Apache-2.0" ]
null
null
null
google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py
busunkim96/python-automl
7df905910b86721a6ee3a3b6c916a4f8e27d0aa7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/automl_v1beta1/proto/annotation_payload.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google...
40.755981
1,785
0.704508
fef89396995ca0389d748167ae8a58117ba5789f
58
py
Python
cogs/__init__.py
yaansz/RoleManager
fbde2ab4a8d0721dfe5a7f258981a298787c20f6
[ "MIT" ]
1
2021-11-12T04:25:56.000Z
2021-11-12T04:25:56.000Z
cogs/__init__.py
yaansz/RoleManager
fbde2ab4a8d0721dfe5a7f258981a298787c20f6
[ "MIT" ]
1
2021-10-21T04:28:53.000Z
2021-10-21T04:28:53.000Z
cogs/__init__.py
yaansz/RoleManager
fbde2ab4a8d0721dfe5a7f258981a298787c20f6
[ "MIT" ]
null
null
null
# PATH PROBLEM import pathlib pathlib.Path().resolve()
14.5
25
0.724138
1a11713508974d9008ba030242c2f039c0fa6e35
6,867
py
Python
sdk/python/pulumi_gcp/compute/health_check.py
pulumi-bot/pulumi-gcp
43ff11bf1c99b4e9e493f61d9755e359b686ae67
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/health_check.py
pulumi-bot/pulumi-gcp
43ff11bf1c99b4e9e493f61d9755e359b686ae67
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/health_check.py
pulumi-bot/pulumi-gcp
43ff11bf1c99b4e9e493f61d9755e359b686ae67
[ "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 pulumi import pulumi.runtime class HealthCheck(pulumi.CustomResource): """ Manages a health check within GCE. This is u...
42.91875
283
0.657929
f0a206db7e6e2e0a621dad6d6d8d3f2de3bd04e3
7,823
py
Python
docs/conf.py
alexanha/psutil
8455119262647e898e0aee0dc52774b5696cf4a4
[ "BSD-3-Clause" ]
7
2017-04-08T13:08:47.000Z
2021-01-28T22:46:51.000Z
docs/conf.py
alexanha/psutil
8455119262647e898e0aee0dc52774b5696cf4a4
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
alexanha/psutil
8455119262647e898e0aee0dc52774b5696cf4a4
[ "BSD-3-Clause" ]
4
2019-04-21T14:56:19.000Z
2021-04-14T22:59:37.000Z
# -*- coding: utf-8 -*- # # psutil documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have ...
31.292
79
0.698965
5be17d9d12a85cf9e8836ca6a51e5594c4474213
533
py
Python
quantifiedcode/plugins/example/backend/tasks/test.py
marcinguy/quantifiedcode
cafc8b99d56a5e51820421af5d77be8b736ab03d
[ "BSD-3-Clause" ]
118
2017-01-03T18:18:29.000Z
2022-02-06T15:32:02.000Z
quantifiedcode/plugins/example/backend/tasks/test.py
marcinguy/quantifiedcode
cafc8b99d56a5e51820421af5d77be8b736ab03d
[ "BSD-3-Clause" ]
14
2016-12-21T11:26:48.000Z
2022-03-02T10:32:24.000Z
quantifiedcode/plugins/example/backend/tasks/test.py
marcinguy/quantifiedcode
cafc8b99d56a5e51820421af5d77be8b736ab03d
[ "BSD-3-Clause" ]
26
2017-08-01T10:00:16.000Z
2022-02-06T15:31:55.000Z
""" Contains tasks and helper functions to send notifications. """ from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import import logging import requests import json from quantifiedcode.settings import settings from quantifiedcode.backend.worker impo...
20.5
64
0.774859
961033a053b3636252c7937b8989284baad33175
524
py
Python
ideas/migrations/0007_auto_20190512_0019.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
1
2021-02-12T10:25:28.000Z
2021-02-12T10:25:28.000Z
ideas/migrations/0007_auto_20190512_0019.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
7
2020-02-21T00:53:38.000Z
2022-02-10T12:22:53.000Z
ideas/migrations/0007_auto_20190512_0019.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-05-12 00:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ideas', '0006_auto_20190511_2342'), ] operations = [ migrations.AlterField( model_name='idea', ...
26.2
159
0.65458
11a37c0b9685bec9751fa2cf9f293b18ca147395
1,674
py
Python
src/add_drug_info.py
wchwang/Method_Pancorona
9dbe0dfd984497406a129c8029ebf1c0c928c27f
[ "MIT" ]
null
null
null
src/add_drug_info.py
wchwang/Method_Pancorona
9dbe0dfd984497406a129c8029ebf1c0c928c27f
[ "MIT" ]
null
null
null
src/add_drug_info.py
wchwang/Method_Pancorona
9dbe0dfd984497406a129c8029ebf1c0c928c27f
[ "MIT" ]
null
null
null
# Created by woochanghwang at 12/07/2021 # Created by woochanghwang at 14/03/2021 from src_drug.p02_add_drug_info_on_result import add_drugbank_info, add_drug_target, groupby_drug_targets def main(): # ############################ # ## Add drug name in result # ############################ disease ...
37.2
183
0.681601
48169ebe064f02ed217fe3720764e020132bd6ae
3,631
py
Python
examples/python/gen-py/v1/music/f_AlbumWinners_publisher.py
jeffreymelvin-wf/frugal
8208673be5888bfbb4fb395ad9acce2210496279
[ "Apache-2.0" ]
1
2017-10-05T15:36:11.000Z
2017-10-05T15:36:11.000Z
examples/python/gen-py/v1/music/f_AlbumWinners_publisher.py
jeffreymelvin-wf/frugal
8208673be5888bfbb4fb395ad9acce2210496279
[ "Apache-2.0" ]
null
null
null
examples/python/gen-py/v1/music/f_AlbumWinners_publisher.py
jeffreymelvin-wf/frugal
8208673be5888bfbb4fb395ad9acce2210496279
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (2.9.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # from thrift.Thrift import TMessageType from frugal.middleware import Method from frugal.transport import TMemoryOutputBuffer class AlbumWinnersPublisher(object): """ Scopes are a Frugal ext...
31.301724
83
0.63371
341f7e3fe5d81bbaa77051e70a49cc3be8cfaedc
32,261
py
Python
pandevice/objects.py
steve-krause/pandevice
25634d9e9a78507029922aa559d0b9268982080d
[ "0BSD" ]
null
null
null
pandevice/objects.py
steve-krause/pandevice
25634d9e9a78507029922aa559d0b9268982080d
[ "0BSD" ]
null
null
null
pandevice/objects.py
steve-krause/pandevice
25634d9e9a78507029922aa559d0b9268982080d
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014, Palo Alto Networks # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" A...
30.842256
102
0.55953
235a662507bf499d614230feff5d2d8c53687d81
5,584
py
Python
test/functional/mining.py
lavajumper/viacoin
b2f0445a3ef596c9830475f20ecbc7c18371d50d
[ "MIT" ]
30
2015-11-01T22:55:25.000Z
2021-11-12T12:08:43.000Z
test/functional/mining.py
OpenBlock-Org/OpenBlock
3e070699415be363577af3b6a21785e6a23f8a40
[ "MIT" ]
2
2017-06-29T15:16:04.000Z
2019-01-09T00:07:33.000Z
test/functional/mining.py
OpenBlock-Org/OpenBlock
3e070699415be363577af3b6a21785e6a23f8a40
[ "MIT" ]
16
2015-06-06T19:28:51.000Z
2021-03-22T06:35:59.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mining RPCs - getmininginfo - getblocktemplate proposal mode - submitblock""" import copy from b...
41.058824
141
0.680874
51a7fd4f7d20c079fcd104fdb265443ef64bc4aa
433
py
Python
Builder/meal.py
HOWZ1T/learning-design-patterns
73a844f9d8ea00bae711fb0d90b93ca652b2b039
[ "MIT" ]
1
2018-09-24T12:05:06.000Z
2018-09-24T12:05:06.000Z
Builder/meal.py
HOWZ1T/learning-design-patterns
73a844f9d8ea00bae711fb0d90b93ca652b2b039
[ "MIT" ]
null
null
null
Builder/meal.py
HOWZ1T/learning-design-patterns
73a844f9d8ea00bae711fb0d90b93ca652b2b039
[ "MIT" ]
null
null
null
class Meal: def __init__(self): self._items = [] def add_item(self, item): self._items.append(item) def get_cost(self): cost = float(0) for item in self._items: cost += item.price() return cost def show_items(self): for item in self._items...
22.789474
110
0.542725
14d2a169c0280a98f90192f34e81908cc47735e7
2,222
py
Python
tests/terraform/checks/resource/aws/test_DocDBTLS.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/aws/test_DocDBTLS.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/aws/test_DocDBTLS.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.aws.DocDBTLS import check class TestDocDBTLS(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" resource "aws_docdb_cluster_parameter_group" "test" { ...
34.71875
91
0.541854
f421c9e0c5f92c5168662618ffcef1f4bc9acc10
1,102
py
Python
djangorestlogger/settings.py
pedrorodriguesgomes/django-rest-logger
01152aad9854b02e8b76404e2960632d72e4b0e3
[ "BSD-3-Clause" ]
null
null
null
djangorestlogger/settings.py
pedrorodriguesgomes/django-rest-logger
01152aad9854b02e8b76404e2960632d72e4b0e3
[ "BSD-3-Clause" ]
null
null
null
djangorestlogger/settings.py
pedrorodriguesgomes/django-rest-logger
01152aad9854b02e8b76404e2960632d72e4b0e3
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings LOGGING = { 'disable_existing_loggers': True, 'root': { 'level': 'WARNING', 'handlers': ['rest_logger_handler'], }, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s ' '%(process)d %(th...
26.238095
74
0.533575
65f441cdad0bb6b84b52c967c4739206b0747cb5
1,237
py
Python
coremltools/converters/mil/mil/passes/divide_to_multiply.py
seibert/coremltools
609188ebcfee2178293f0d4e93a5af2995c88645
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/passes/divide_to_multiply.py
seibert/coremltools
609188ebcfee2178293f0d4e93a5af2995c88645
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/passes/divide_to_multiply.py
seibert/coremltools
609188ebcfee2178293f0d4e93a5af2995c88645
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from coremltools.converters.mil.mil.passes.pass_registry import register_pa...
31.717949
87
0.616815
f6a29858f1dbdc07464cbacbc33fb41ee31eb892
18,609
py
Python
qa/rpc-tests/bip68-sequence.py
JSKitty/QuantisNet-Core
75c66b11e29ea0597965471505e5da552d900d49
[ "MIT" ]
21
2019-06-03T22:24:33.000Z
2021-04-10T14:14:26.000Z
qa/rpc-tests/bip68-sequence.py
JSKitty/QuantisNet-Core
75c66b11e29ea0597965471505e5da552d900d49
[ "MIT" ]
3
2019-08-22T16:21:45.000Z
2020-02-26T15:19:21.000Z
qa/rpc-tests/bip68-sequence.py
JSKitty/QuantisNet-Core
75c66b11e29ea0597965471505e5da552d900d49
[ "MIT" ]
4
2019-06-06T10:49:06.000Z
2019-06-29T07:46:18.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The QuantisNet Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see...
43.076389
119
0.627223
fa4366ff0789a3d05c26479a746a18dfcf7e902b
46,021
py
Python
tensorflow/compiler/xla/python/xla_client.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
3
2018-09-25T00:35:34.000Z
2018-09-25T00:38:06.000Z
tensorflow/compiler/xla/python/xla_client.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
1
2019-08-22T20:29:33.000Z
2019-12-19T10:16:21.000Z
tensorflow/compiler/xla/python/xla_client.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
2
2020-01-31T04:19:45.000Z
2020-03-06T16:33:00.000Z
# Copyright 2017 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...
35.157372
80
0.704287
e1c95abf97cc042b1e311425999f5c7784b113db
1,156
py
Python
sagemaker/functions/auto-shutdown.py
hackoregon/hackoregon-aws-infrastructure
d1fbe5894e5655aefdbf2b346783aa3ca867ca51
[ "Apache-2.0" ]
6
2017-03-08T02:22:47.000Z
2021-11-03T16:33:32.000Z
sagemaker/functions/auto-shutdown.py
hackoregon/hackoregon-aws-infrastructure
d1fbe5894e5655aefdbf2b346783aa3ca867ca51
[ "Apache-2.0" ]
36
2017-03-25T06:13:29.000Z
2021-09-29T17:18:52.000Z
sagemaker/functions/auto-shutdown.py
hackoregon/hackoregon-aws-infrastructure
d1fbe5894e5655aefdbf2b346783aa3ca867ca51
[ "Apache-2.0" ]
13
2017-03-07T05:15:15.000Z
2019-05-05T20:09:08.000Z
import boto3 def lambda_handler(event, context): stopCount = 0 keepaliveCount = 0 totalCount = 0 client = boto3.client('sagemaker') notebooks = client.list_notebook_instances(MaxResults=100)['NotebookInstances'] totalCount = len(notebooks) print('Found %s Notebook Instances' % totalCount) ...
37.290323
100
0.639273
88945903e60ee41e999a4363840a21df9e1a5c43
15,165
py
Python
v6.0.6/wanopt/fortios_wanopt_webcache.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
14
2018-09-25T20:35:25.000Z
2021-07-14T04:30:54.000Z
v6.0.6/wanopt/fortios_wanopt_webcache.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
v6.0.6/wanopt/fortios_wanopt_webcache.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
34.702517
155
0.559446
a3f4cf25e32a1c10bd57ef7381cd314d3be2df12
18,242
py
Python
phase-1/server/main.py
Cryliss/comp-440
b3dfbce4fadef8e936216f2efeb7f9ec500a6f17
[ "MIT" ]
null
null
null
phase-1/server/main.py
Cryliss/comp-440
b3dfbce4fadef8e936216f2efeb7f9ec500a6f17
[ "MIT" ]
null
null
null
phase-1/server/main.py
Cryliss/comp-440
b3dfbce4fadef8e936216f2efeb7f9ec500a6f17
[ "MIT" ]
null
null
null
import pymysql from app import app from config import mysql from validation import check_payload from flask import jsonify from flask import flash, request # Let's create a route for our app that adds a user to our database # We can get it by using a url like: # http://127.0.0.1:8080/add # However, this requires a pay...
38.566596
150
0.562822
d62de208266c4082920001222182af94b25660f8
2,617
py
Python
reddit_experiments/variant_sets/rollout_variant_set.py
isugimpy/experiments.py
ddfcd6fd010c8806a88cd3c51f55332d857622c5
[ "BSD-3-Clause" ]
5
2021-04-04T05:24:47.000Z
2021-08-12T21:42:23.000Z
reddit_experiments/variant_sets/rollout_variant_set.py
Seanpm2001-reddit/experiments.py
c5f8373d051845ab550a9ae65041afcc4c9f996b
[ "BSD-3-Clause" ]
1
2021-04-06T02:06:50.000Z
2021-05-17T15:34:59.000Z
reddit_experiments/variant_sets/rollout_variant_set.py
Seanpm2001-reddit/experiments.py
c5f8373d051845ab550a9ae65041afcc4c9f996b
[ "BSD-3-Clause" ]
4
2021-04-08T10:02:42.000Z
2022-01-12T22:16:46.000Z
from typing import Any from typing import Dict from typing import List from typing import Optional from reddit_experiments.variant_sets.base import VariantSet class RolloutVariantSet(VariantSet): """VariantSet designed for feature rollouts. Takes a single variant. Changing the size of the variant will minim...
39.059701
80
0.677111
5188b3d10195196296c2b1bbf3c0ef70269dce8a
9,598
py
Python
projects/wizard_of_wikipedia/interactive_end2end/interactive_end2end.py
cloudygoose/ParlAI
a73b683bf1c1a3b1fd2c4e2135a69b6048681f66
[ "MIT" ]
9
2020-01-17T09:34:00.000Z
2021-11-19T07:46:52.000Z
projects/wizard_of_wikipedia/interactive_end2end/interactive_end2end.py
cloudygoose/ParlAI
a73b683bf1c1a3b1fd2c4e2135a69b6048681f66
[ "MIT" ]
5
2019-12-29T07:52:39.000Z
2022-03-12T00:10:03.000Z
projects/wizard_of_wikipedia/interactive_end2end/interactive_end2end.py
cloudygoose/ParlAI
a73b683bf1c1a3b1fd2c4e2135a69b6048681f66
[ "MIT" ]
2
2020-01-28T01:41:52.000Z
2020-12-27T07:22:07.000Z
#!/usr/bin/env python # 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. """ Hooks up the components for the wizard generator to do live retrieval. """ from parlai.core.agents import Agent, cre...
36.082707
85
0.592832
3810069af2172a326214f4c25c085c5731c62cbc
20,558
py
Python
official/recommendation/ncf_keras_main.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
5
2020-11-16T06:26:19.000Z
2022-03-27T02:01:40.000Z
official/recommendation/ncf_keras_main.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
5
2020-11-13T18:50:30.000Z
2022-02-10T01:42:36.000Z
official/recommendation/ncf_keras_main.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
3
2017-08-15T11:29:03.000Z
2020-12-07T18:06:12.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...
36.003503
80
0.700068
151120386d65da077907f1925569d2d8201c498a
1,987
py
Python
bench/lvars-gvars.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
bench/lvars-gvars.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
bench/lvars-gvars.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
# __COPYRIGHT__ # # Functions and data for timing different idioms for fetching a keyword # value from a pair of dictionaries for localand global values. This was # used to select how to most efficiently expand single $KEYWORD strings # in src/engine/SCons/Subst.py. def Func1(var, gvars, lvars): """lvars try:-exc...
23.104651
73
0.51082
db3ca56c48935777c658158ebe31e8a1baf238dc
3,293
py
Python
work/spider.py
BentosLYU/Twitter_Sentiment_Analyser
3ad1da1c35b4c1681541b759080e5fa843863576
[ "Apache-2.0" ]
null
null
null
work/spider.py
BentosLYU/Twitter_Sentiment_Analyser
3ad1da1c35b4c1681541b759080e5fa843863576
[ "Apache-2.0" ]
null
null
null
work/spider.py
BentosLYU/Twitter_Sentiment_Analyser
3ad1da1c35b4c1681541b759080e5fa843863576
[ "Apache-2.0" ]
null
null
null
# @Time : 2020/7/15 # @Author : 江海彬 # @File : spider.py import re import time import twint import pymysql # 爬虫主体 def spider(keyword, tweets): # 启动配置 c = twint.Config() c.Search = keyword c.Limit = Limit c.Count = True # 过滤含连接的tweet # c.Links = "exclude" # 只爬取热门tweet # c.Popular...
20.453416
102
0.505011
e2779e82ef72d12f45a37ef71165f37ad276f640
8,063
py
Python
cogs/eventsub.py
perplexistential/twitch-creamery
5d8a636600b480644696d74375cc12d2b5c9ea6d
[ "MIT" ]
null
null
null
cogs/eventsub.py
perplexistential/twitch-creamery
5d8a636600b480644696d74375cc12d2b5c9ea6d
[ "MIT" ]
null
null
null
cogs/eventsub.py
perplexistential/twitch-creamery
5d8a636600b480644696d74375cc12d2b5c9ea6d
[ "MIT" ]
1
2022-02-17T23:10:31.000Z
2022-02-17T23:10:31.000Z
# Copyright Alex Morais (thatsamorais@gmail.com) for perplexistential. # Important notice about using this cog # The EventSub ext is made to receive eventsub webhook notifications from twitch. For those not familiar with eventsub, it allows you to subscribe to certain events, and when these events happen, Twitch will ...
38.951691
397
0.612055
71ffde69e5f0a7834a58181b55ba3dc7a6955363
939
py
Python
demo/demo/middleware.py
dakrauth/picker
a3faffb5eecb0586339158560a68350bec1757b3
[ "MIT" ]
2
2016-07-15T20:42:31.000Z
2018-06-18T10:35:12.000Z
demo/demo/middleware.py
dakrauth/picker
a3faffb5eecb0586339158560a68350bec1757b3
[ "MIT" ]
1
2019-12-18T23:54:57.000Z
2019-12-18T23:54:57.000Z
demo/demo/middleware.py
dakrauth/picker
a3faffb5eecb0586339158560a68350bec1757b3
[ "MIT" ]
2
2016-07-15T20:46:19.000Z
2016-07-31T23:55:58.000Z
from django.conf import settings from pprint import pformat def demo_middleware(get_response): results = [] DEMO = getattr(settings, 'DEMO', {}) def middleware(request): fake_datetime = DEMO.get('fake_datetime') if fake_datetime: pass if DEMO.get('dump_post_data'): ...
31.3
79
0.511182
40c5dce9000e7d8b49d7d7629b6b87144b561ff2
9,397
py
Python
tests/test_power_network.py
stantontcady/psyspy
72bc0aaacea4191899a971ef46314f09d97b269f
[ "MIT" ]
1
2016-06-02T16:58:36.000Z
2016-06-02T16:58:36.000Z
tests/test_power_network.py
stantontcady/psyspy
72bc0aaacea4191899a971ef46314f09d97b269f
[ "MIT" ]
null
null
null
tests/test_power_network.py
stantontcady/psyspy
72bc0aaacea4191899a971ef46314f09d97b269f
[ "MIT" ]
null
null
null
import unittest from numpy import array, asarray, matrix, genfromtxt from numpy.testing import assert_array_equal, assert_array_almost_equal from scipy.sparse import lil_matrix from mugridmod import Bus, PowerLine, PowerNetwork, PQBus, PVBus # from ..microgrid_model import NodeError, PowerLineError, PowerNetworkError...
41.764444
118
0.664893
e20fd23471e66bbf4ddcc42a74c7d99dbbfb8b8a
280
py
Python
demo.py
kevinmcaleer/pca9685_for_pico
2b795ece5b89493151830bf1899e729c14cb19fb
[ "MIT" ]
1
2021-03-07T12:41:08.000Z
2021-03-07T12:41:08.000Z
demo.py
kevinmcaleer/pca9685_for_pico
2b795ece5b89493151830bf1899e729c14cb19fb
[ "MIT" ]
null
null
null
demo.py
kevinmcaleer/pca9685_for_pico
2b795ece5b89493151830bf1899e729c14cb19fb
[ "MIT" ]
3
2021-03-07T12:41:10.000Z
2021-07-19T02:25:17.000Z
from pca9685 import PCA9685 # from picocat import Servos from machine import I2C, Pin from servo import Servos sda = Pin(0) scl = Pin(1) id = 0 i2c = I2C(id=id, sda=sda, scl=scl) pca = PCA9685(i2c=i2c) # pca.i2c = i2c servo = Servos(i2c=i2c) servo.position(index=0, degrees=180)
20
36
0.717857
ce3e1f9bdf51f09da6e58dc65654786684ba8cb1
365
py
Python
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P3_Task7_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
null
null
null
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P3_Task7_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
null
null
null
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P3_Task7_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
1
2022-03-18T04:52:10.000Z
2022-03-18T04:52:10.000Z
#!/usr/bin/python3 # --- 001 > U5W1P1_Task6_w1 def solution( s, letter ): count = 0 # print(s) for x in s : if( x == letter): count += 1 return count if __name__ == "__main__": print('----------start------------') s = "bacab" letter = "b" print(solution( s, letter ...
20.277778
40
0.446575
9cd62c9949efbeadf1fa10910ec256496287b0d7
4,781
py
Python
arbiter/utils.py
kveretennicov/Arbiter
51008393ae8797da85bcd67807259a157f941dfd
[ "MIT" ]
11
2015-11-15T17:01:56.000Z
2021-12-28T16:25:03.000Z
arbiter/utils.py
kveretennicov/Arbiter
51008393ae8797da85bcd67807259a157f941dfd
[ "MIT" ]
8
2015-04-01T18:56:30.000Z
2022-02-20T18:27:34.000Z
arbiter/utils.py
kveretennicov/Arbiter
51008393ae8797da85bcd67807259a157f941dfd
[ "MIT" ]
4
2017-05-18T05:40:15.000Z
2019-04-11T05:10:19.000Z
from datetime import timedelta from functools import wraps, partial from numbers import Integral from time import sleep class RetryCondition(object): """ Defines a retry condition, which by default doesn't trigger a retry on either a value or an exception. NOTE: I don't particularly like this solutio...
30.069182
77
0.608868
d946ef5b90ce1d72772ef2490f107c7810d86268
1,201
py
Python
app/errors/handlers.py
boerniee/project-mate
072b0e871525d527d438f2ec0238fa94c4547f85
[ "MIT" ]
2
2019-12-18T09:42:18.000Z
2019-12-20T13:16:52.000Z
app/errors/handlers.py
boerniee/project-mate
072b0e871525d527d438f2ec0238fa94c4547f85
[ "MIT" ]
17
2019-12-18T12:45:30.000Z
2021-02-06T14:44:36.000Z
app/errors/handlers.py
boerniee/project-mate
072b0e871525d527d438f2ec0238fa94c4547f85
[ "MIT" ]
null
null
null
from flask import render_template, request from app import db from app.errors import bp from app.api.errors import error_response as api_error_response def wants_json_response(): return request.accept_mimetypes['application/json'] >= \ request.accept_mimetypes['text/html'] @bp.app_errorhandler(403) def fo...
29.292683
63
0.742714
9cd09adda6cf9395b5d2cdab67ffd7f12d893fb8
17,592
py
Python
erica/erica_legacy/pyeric/eric.py
digitalservice4germany/erica
7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2
[ "MIT" ]
3
2022-01-31T15:17:17.000Z
2022-03-01T16:15:47.000Z
erica/erica_legacy/pyeric/eric.py
digitalservice4germany/erica
7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2
[ "MIT" ]
59
2022-01-31T14:04:20.000Z
2022-03-31T20:08:47.000Z
erica/erica_legacy/pyeric/eric.py
digitalservice4germany/erica
7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2
[ "MIT" ]
1
2022-03-10T09:24:28.000Z
2022-03-10T09:24:28.000Z
import logging import os import tempfile from contextlib import contextmanager from ctypes import Structure, c_int, c_uint32, c_char_p, c_void_p, pointer, CDLL, RTLD_GLOBAL from dataclasses import dataclass from typing import ByteString from erica.config import get_settings, Settings from erica.erica_legacy.pyeric.eri...
40.164384
119
0.649329
8e28c9b4f4db057a25a870caf66d7696171be747
1,136
py
Python
tests/ui_tests/test_ui_pixel_mapping_widget.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
3
2019-05-31T08:38:25.000Z
2022-01-06T09:23:21.000Z
tests/ui_tests/test_ui_pixel_mapping_widget.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
709
2019-02-06T08:23:07.000Z
2022-03-29T23:03:37.000Z
tests/ui_tests/test_ui_pixel_mapping_widget.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
2
2020-03-06T09:58:56.000Z
2020-08-04T18:32:57.000Z
import pytest from PySide2.QtCore import Qt from nexus_constructor.pixel_mapping_widget import PixelMappingWidget CYLINDER_TEXT = "cylinder" ID_NO = 3 @pytest.fixture(scope="function") def pixel_mapping_widget(qtbot, template): return PixelMappingWidget(template, ID_NO, CYLINDER_TEXT) def test_GIVEN_id_number...
25.244444
113
0.801937
9e72e11bcc7875b9ea7feade034413568ae2f61d
10,312
py
Python
sdk/python/pulumi_azure_native/alertsmanagement/smart_detector_alert_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/alertsmanagement/smart_detector_alert_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/alertsmanagement/smart_detector_alert_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from .. import _utilities, _tables from ...
42.61157
643
0.637607
64f70397c851946172abc0a29b069629b5e2eb33
6,109
py
Python
lib/config/default.py
ahmedelmahy/HRNet-Bottom-Up-Pose-Estimation
cf5831249999f0b307d5aa948ebdcdef981ba68f
[ "MIT" ]
129
2020-06-30T02:52:28.000Z
2022-03-06T04:37:00.000Z
lib/config/default.py
ahmedelmahy/HRNet-Bottom-Up-Pose-Estimation
cf5831249999f0b307d5aa948ebdcdef981ba68f
[ "MIT" ]
14
2020-07-20T03:34:08.000Z
2022-01-09T14:18:27.000Z
lib/config/default.py
ahmedelmahy/HRNet-Bottom-Up-Pose-Estimation
cf5831249999f0b307d5aa948ebdcdef981ba68f
[ "MIT" ]
20
2020-07-21T09:37:28.000Z
2021-07-06T17:12:57.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # The code is based on HigherHRNet-Human-Pose-Estimation. # (https://github.com/HRNet/HigherHRNet-Human-Pose-Estimation) # Modified by Ke Sun (sunk@mail.ustc.edu.cn). # Modified b...
26.79386
86
0.708954
0ddf9e342b83ff3cc67968428438e9c79ac01635
223
py
Python
contrib/libs/zstd01/gen.py
SitdikovRustam/CatBoost
39fb9dfddb24e977ed87efc71063b03cd4bc8f16
[ "Apache-2.0" ]
1
2017-08-27T20:55:56.000Z
2017-08-27T20:55:56.000Z
contrib/libs/zstd01/gen.py
dsferz/machinelearning_yandex
8fde8314c5c70299ece8b8f00075ddfcd5e07ddf
[ "Apache-2.0" ]
null
null
null
contrib/libs/zstd01/gen.py
dsferz/machinelearning_yandex
8fde8314c5c70299ece8b8f00075ddfcd5e07ddf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys print '#pragma once\n' for i in sys.stdin: i = i.strip() if '.' not in i: print '#define', i, 'Legacy_' + i print '#define ZSTD_decompressBlock Legacy_ZSTD_decompressBlock'
15.928571
64
0.64574
73870984491e8ed833248d1a1d272ac965a4e894
3,592
py
Python
data/global-configuration/packs/azure/hostingdrivers/hostingdriver_azure.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/azure/hostingdrivers/hostingdriver_azure.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/azure/hostingdrivers/hostingdriver_azure.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os from opsbro.httpclient import get_http_exceptions, httper from opsbro.hostingdrivermanager import InterfaceHostingDriver, HOSTING_DRIVER_LAYER_CLOUD from opsbro.jsonmgr import jsoner class AzureHostingDriver(InterfaceHostingDriver): name = 'azure' layer = HOSTING_DRIVER_LAYER_CLOUD def __i...
40.818182
116
0.558463
4e5f354d3357221f8ede60f38f79a70cd86a153a
7,249
py
Python
pycardano/backend/blockfrost.py
henryyuanheng-wang/pycardano
d58c53791ffef542762e6d0220d4ccd1c0950e5e
[ "MIT" ]
72
2022-01-09T03:54:06.000Z
2022-03-30T22:05:44.000Z
pycardano/backend/blockfrost.py
cffls/pycardano
62161ad072964406d9ce79b3605d55a276ff98b9
[ "MIT" ]
13
2022-02-19T13:08:11.000Z
2022-03-30T16:57:33.000Z
pycardano/backend/blockfrost.py
henryyuanheng-wang/pycardano
d58c53791ffef542762e6d0220d4ccd1c0950e5e
[ "MIT" ]
15
2022-02-07T23:54:51.000Z
2022-03-30T17:06:12.000Z
import os import tempfile import time from typing import Dict, List, Union from blockfrost import ApiUrls, BlockFrostApi from pycardano.address import Address from pycardano.backend.base import ChainContext, GenesisParameters, ProtocolParameters from pycardano.exception import TransactionFailedException from pycardan...
37.755208
115
0.616499
3fc8be2ce0a2e6444697cbdf47197bdb159bf49a
11,523
py
Python
tensorflow_ranking/python/head_test.py
FroilanYue/ranking
31fc134816cc4974a46a11e7bb2df0066d0a88f0
[ "Apache-2.0" ]
1
2021-03-04T21:54:41.000Z
2021-03-04T21:54:41.000Z
tensorflow_ranking/python/head_test.py
FroilanYue/ranking
31fc134816cc4974a46a11e7bb2df0066d0a88f0
[ "Apache-2.0" ]
null
null
null
tensorflow_ranking/python/head_test.py
FroilanYue/ranking
31fc134816cc4974a46a11e7bb2df0066d0a88f0
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Ranking 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...
36.009375
80
0.683589
dae636de0feefe8c3e644fab78d156240799a160
2,897
py
Python
Basics/E02_Elements/E24_Wiggles.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Basics/E02_Elements/E24_Wiggles.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Basics/E02_Elements/E24_Wiggles.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # www.pagebot.io # Licensed under MIT conditions # # ----------------------------------------------------------------------------- # # Draw Wigg...
29.561224
113
0.644115
b600d30264396a3da104698efd2346a71b36b463
5,776
py
Python
test_QueryMyGene.py
kevinxin90/RTX_BioThings_Explorer
16de49de9e0db75c7616a85c2592166ea055faa7
[ "Apache-2.0" ]
1
2018-05-24T13:16:57.000Z
2018-05-24T13:16:57.000Z
test_QueryMyGene.py
kevinxin90/RTX_BioThings_Explorer
16de49de9e0db75c7616a85c2592166ea055faa7
[ "Apache-2.0" ]
1
2018-06-01T02:04:23.000Z
2018-06-01T20:21:32.000Z
test_QueryMyGene.py
kevinxin90/RTX_BioThings_Explorer
16de49de9e0db75c7616a85c2592166ea055faa7
[ "Apache-2.0" ]
null
null
null
import unittest from QueryMyGene import QueryMyGene class QueryMyGeneTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.mg = QueryMyGene() def test_convert_uniprot_id_to_gene_symbol(self): bte_result = self.mg.convert_uniprot_id_to_gene_symbol('Q8NBZ7') rtx_result ...
44.091603
103
0.66205
7a1adfe207b19672e9119b8301d9840cbd40a165
453
py
Python
setup.py
robertfasano/labyak
8f1896aeebdc7d9f1a6adc58f8bb2009a1254ab7
[ "MIT" ]
1
2019-09-04T19:40:30.000Z
2019-09-04T19:40:30.000Z
setup.py
robertfasano/labyak
8f1896aeebdc7d9f1a6adc58f8bb2009a1254ab7
[ "MIT" ]
null
null
null
setup.py
robertfasano/labyak
8f1896aeebdc7d9f1a6adc58f8bb2009a1254ab7
[ "MIT" ]
1
2019-09-04T19:40:34.000Z
2019-09-04T19:40:34.000Z
from distutils.core import setup from setuptools import find_packages setup( name='labyak', version='0.1', description='High-level wrappers around the LJM Python library for data acquisition and waveform or pattern generation', author='Robert Fasano', author_email='robert.j.fasano@colorado.edu', ...
30.2
124
0.726269
f6d5e7fa233ed13aa6546afa054f0ca7ca9e2317
200
py
Python
data_collection/gazette/spiders/sc_sao_joao_do_sul.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
3
2021-08-18T17:50:31.000Z
2021-11-12T23:36:33.000Z
data_collection/gazette/spiders/sc_sao_joao_do_sul.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
4
2021-02-10T02:36:48.000Z
2022-03-02T14:55:34.000Z
data_collection/gazette/spiders/sc_sao_joao_do_sul.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
null
null
null
from gazette.spiders.base import FecamGazetteSpider class ScSaoJoaoDoSulSpider(FecamGazetteSpider): name = "sc_sao_joao_do_sul" FECAM_QUERY = "cod_entidade:249" TERRITORY_ID = "4216404"
25
51
0.78
dc800754487b8da18e3afdb2cabad8f61c05f4c3
3,864
py
Python
python/tink/testing/bytes_io.py
Baha-sk/tink
285f7dd4f50d2870b3f8137291fda2def9212d63
[ "Apache-2.0" ]
12,366
2017-05-12T11:22:39.000Z
2022-03-31T13:40:46.000Z
python/tink/testing/bytes_io.py
Baha-sk/tink
285f7dd4f50d2870b3f8137291fda2def9212d63
[ "Apache-2.0" ]
505
2017-05-18T20:54:30.000Z
2022-03-30T19:51:56.000Z
python/tink/testing/bytes_io.py
Baha-sk/tink
285f7dd4f50d2870b3f8137291fda2def9212d63
[ "Apache-2.0" ]
1,179
2017-05-12T11:25:34.000Z
2022-03-31T14:31:15.000Z
# 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, ...
33.025641
78
0.703934
bfd644760e817942348cfa78a2384aee0f84c2a7
9,396
py
Python
PathSearch.py
m-bone/Bond_React_Python
e2f9fe5473e5b15d32484ccf2be6f6820a60b53f
[ "MIT" ]
1
2021-02-19T06:17:40.000Z
2021-02-19T06:17:40.000Z
PathSearch.py
m-bone/Bond_React_Python
e2f9fe5473e5b15d32484ccf2be6f6820a60b53f
[ "MIT" ]
null
null
null
PathSearch.py
m-bone/Bond_React_Python
e2f9fe5473e5b15d32484ccf2be6f6820a60b53f
[ "MIT" ]
null
null
null
############################################################################## # Developed by: Matthew Bone # Last Updated: 30/07/2021 # Updated by: Matthew Bone # # Contact Details: # Bristol Composites Institute (BCI) # Department of Aerospace Engineering - University of Bristol # Queen's Building - University Walk #...
51.065217
183
0.723925
78841d93a897221c370ce49c73dc69c59af140bf
9,320
py
Python
tools/envoy_collect/envoy_collect.py
rishabhkumar296/envoy
1b040ff0e029059c7aaa6816fccb2419c02675b1
[ "Apache-2.0" ]
27
2017-10-27T03:18:58.000Z
2019-02-07T21:22:20.000Z
tools/envoy_collect/envoy_collect.py
rishabhkumar296/envoy
1b040ff0e029059c7aaa6816fccb2419c02675b1
[ "Apache-2.0" ]
14
2018-02-16T20:47:38.000Z
2019-01-19T23:03:01.000Z
tools/envoy_collect/envoy_collect.py
rishabhkumar296/envoy
1b040ff0e029059c7aaa6816fccb2419c02675b1
[ "Apache-2.0" ]
7
2017-11-26T06:26:49.000Z
2019-03-26T03:09:00.000Z
#!/usr/bin/env python """Wrapper for Envoy command-line that collects stats/log/profile. Example use: ./tools/envoy_collect.py --output-path=./envoy.tar -c ./configs/google_com_proxy.json --service-node foo <Ctrl-C> tar -tvf ./envoy.tar -rw------- htuch/eng 0 2017-08-13 21:13 access_0.log -rw-----...
38.196721
97
0.700429
71b1c387c4128e98a3b2f733b25fc46ab3595f9a
714
py
Python
system_step/__init__.py
molssi-seamm/system_step
6b9f4416eddcefa56a147ee102cab7c3edf261b1
[ "BSD-3-Clause" ]
null
null
null
system_step/__init__.py
molssi-seamm/system_step
6b9f4416eddcefa56a147ee102cab7c3edf261b1
[ "BSD-3-Clause" ]
2
2020-12-13T00:27:36.000Z
2020-12-15T17:06:58.000Z
system_step/__init__.py
molssi-seamm/system_step
6b9f4416eddcefa56a147ee102cab7c3edf261b1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ system_step A step for working with the molecular/crystal system in SEAMM """ # Bring up the classes so that they appear to be directly in # the system_step package. from system_step.system import System # noqa: F401, E501 from system_step.system_parameters import SystemParameters # noq...
29.75
78
0.768908
ed73cb09e30cc969f6a2844bfeca08e065e5d4b5
7,571
py
Python
Operator_Components/Operator_SLR/start_slr_flow.py
TamSzaGot/mydata-sdk
9c8afb75077f0b993819aa534b904501a8112f76
[ "MIT" ]
4
2018-04-21T00:46:40.000Z
2019-12-03T13:52:03.000Z
Operator_Components/Operator_SLR/start_slr_flow.py
TamSzaGot/mydata-sdk
9c8afb75077f0b993819aa534b904501a8112f76
[ "MIT" ]
1
2019-01-09T10:45:23.000Z
2019-01-09T10:45:23.000Z
Operator_Components/Operator_SLR/start_slr_flow.py
TamSzaGot/mydata-sdk
9c8afb75077f0b993819aa534b904501a8112f76
[ "MIT" ]
4
2018-04-21T01:12:12.000Z
2020-09-24T06:19:29.000Z
# -*- coding: utf-8 -*- __author__ = 'alpaloma' import logging import traceback from json import loads from flask import Blueprint, current_app, render_template_string, make_response, redirect from flask_cors import CORS from flask_restful import Resource, Api, request from requests import get, post from requests.exce...
44.798817
123
0.62779
74d446b18dc21d070cc5ac7ca44bb4c35279aa5f
19,601
py
Python
evaluate/eval.py
HoloClean/RecordFusion
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
[ "Apache-2.0" ]
2
2022-01-11T21:08:20.000Z
2022-01-22T03:13:00.000Z
evaluate/eval.py
HoloClean/RecordFusion
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
[ "Apache-2.0" ]
null
null
null
evaluate/eval.py
HoloClean/RecordFusion
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
[ "Apache-2.0" ]
1
2022-02-24T06:01:04.000Z
2022-02-24T06:01:04.000Z
import logging import os from string import Template import time import pandas as pd from dataset import AuxTables from dataset.table import Table, Source errors_template = Template('SELECT count(*) ' \ 'FROM "$init_table" as t1, "$grdt_table" as t2 ' \ 'WHERE t...
42.518438
306
0.578389
62fc653305aece7765c3e7e0fd4a2022e5677dbb
3,302
py
Python
generated-libraries/python/netapp/lun/iscsi_pr_nexus.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/lun/iscsi_pr_nexus.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/lun/iscsi_pr_nexus.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class IscsiPrNexus(NetAppObject): """ Information about iscsi nexus owning the persistent reservation These three componients identify the relationship between the iSCSI initiator and the target. """ _tpgtag = None @property def tpgtag(...
30.859813
108
0.592065
28740823180a64efeb4ec898279764d30025a14c
3,830
py
Python
orio-0.1.0/src/module/loop/submodule/boundreplace/boundreplace.py
nn4ip/pluto
92ace2441b6b8d6b66d1bb7ef3e893df4ff23a4d
[ "MIT" ]
183
2017-01-28T17:23:29.000Z
2022-03-25T08:58:56.000Z
orio-0.1.0/src/module/loop/submodule/boundreplace/boundreplace.py
nn4ip/pluto
92ace2441b6b8d6b66d1bb7ef3e893df4ff23a4d
[ "MIT" ]
70
2017-03-29T09:51:04.000Z
2021-12-28T07:00:44.000Z
orio-0.1.0/src/module/loop/submodule/boundreplace/boundreplace.py
nn4ip/pluto
92ace2441b6b8d6b66d1bb7ef3e893df4ff23a4d
[ "MIT" ]
57
2017-03-29T07:27:58.000Z
2022-01-14T03:13:39.000Z
# # Bound replacement transformation # import sys import module.loop.submodule.submodule, transformator #--------------------------------------------------------------------- class BoundReplace(module.loop.submodule.submodule.SubModule): '''The bound replacement transformation submodule''' def __init__(...
34.504505
97
0.534204
97b9be85f0d33cbb9c9220d9dff1243624e1e472
337
py
Python
src/06_tool/test_collection.py
edgardeng/python-advance-interview
59fd7bee8e871acdc7fdfecf2a110db840c47ebb
[ "Apache-2.0" ]
1
2022-03-06T13:03:56.000Z
2022-03-06T13:03:56.000Z
src/06_tool/test_collection.py
edgardeng/python-advance-interview
59fd7bee8e871acdc7fdfecf2a110db840c47ebb
[ "Apache-2.0" ]
null
null
null
src/06_tool/test_collection.py
edgardeng/python-advance-interview
59fd7bee8e871acdc7fdfecf2a110db840c47ebb
[ "Apache-2.0" ]
null
null
null
''' 集合 常用的模块 builtins ''' var = {} # dict var2 = {1,2,3,4} # set print(var) print(var2) var3 = {3,6,5,4} print(var2 & var3) # 交集 print(var2 | var3) # 并集 print(var2 ^ var3) # 并集 - 交集 print(var2 - var3) # 差集 print(var3 - var2) # 差集 # append extend insert var2.add(4) var2.add(40) var2.remove(2) # 按值添加,按值删除,没有索引 ...
10.212121
32
0.599407
c3c2684597fe91a23870134465c99b9b2c42a201
3,678
py
Python
src/core/app/app/crud/crud_need.py
WeAreBeep/FrontlineUkraine
9ace8222af347f8ebbcaf444f375b2736f49cd9f
[ "MIT" ]
null
null
null
src/core/app/app/crud/crud_need.py
WeAreBeep/FrontlineUkraine
9ace8222af347f8ebbcaf444f375b2736f49cd9f
[ "MIT" ]
null
null
null
src/core/app/app/crud/crud_need.py
WeAreBeep/FrontlineUkraine
9ace8222af347f8ebbcaf444f375b2736f49cd9f
[ "MIT" ]
null
null
null
from datetime import datetime from typing import List, Set, Optional from pydantic import BaseModel from sqlalchemy import BigInteger, SmallInteger from sqlalchemy.sql import func from sqlalchemy.orm import Query, Session from app.crud.base import CRUDBase from app.models.need import Need from app.models.need_ppe_typ...
39.12766
116
0.664763
1e0d00cea7324e3e467f0e164551ee2f3fae18b1
6,121
py
Python
google/ads/google_ads/v5/proto/enums/month_of_year_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/proto/enums/month_of_year_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/proto/enums/month_of_year_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v5/proto/enums/month_of_year.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pr...
39.237179
912
0.757883
bb1c395485306bb7b4870fc133567958b2ccdfe4
18,621
py
Python
tests/test_importer.py
cclauss/personfinder
62417192e79c9711d0c6c7cfc042f6d6b0dc2dc2
[ "Apache-2.0" ]
561
2015-02-16T07:59:42.000Z
2022-03-30T17:31:21.000Z
tests/test_importer.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
591
2015-01-30T05:09:30.000Z
2022-02-26T09:31:25.000Z
tests/test_importer.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
258
2015-01-25T18:35:12.000Z
2021-12-25T01:44:14.000Z
# Copyright 2010 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,...
40.218143
78
0.566833
108014fd8f7115ef7be5a3aefc13b01933641326
1,555
py
Python
tests/pyLDAvis/test_gensim_models.py
settinghead/pyLDAvis
30ba3c6974cf080a4db7e219d093c53a6c71e68a
[ "BSD-3-Clause" ]
5
2021-05-04T02:27:14.000Z
2022-03-10T14:41:32.000Z
tests/pyLDAvis/test_gensim_models.py
settinghead/pyLDAvis
30ba3c6974cf080a4db7e219d093c53a6c71e68a
[ "BSD-3-Clause" ]
1
2021-05-04T02:26:30.000Z
2021-05-04T02:26:30.000Z
tests/pyLDAvis/test_gensim_models.py
settinghead/pyLDAvis
30ba3c6974cf080a4db7e219d093c53a6c71e68a
[ "BSD-3-Clause" ]
1
2022-02-25T15:06:52.000Z
2022-02-25T15:06:52.000Z
#! /usr/bin/venv python from gensim.models import LdaModel, HdpModel from gensim.corpora.dictionary import Dictionary import pyLDAvis.gensim import os def get_corpus_dictionary(): """Crafts a toy corpus and the dictionary associated.""" # Toy corpus. corpus = [ ['carrot', 'salad', 'tomato'], ...
25.080645
60
0.636013
873a972489eca74553ce27a78ecc383eea689ae9
1,917
py
Python
tests/test_extension_telnet.py
Respawnz/scrapy
22f7934fcc4912c1f9cdf87e426eb29d777db349
[ "BSD-3-Clause" ]
2
2020-02-08T15:49:40.000Z
2021-08-21T18:57:38.000Z
tests/test_extension_telnet.py
youyangxyb/scrapy
caa1dea890e9cb2024cf9895efe54b3cf0ac1ae9
[ "BSD-3-Clause" ]
1
2021-07-24T14:26:22.000Z
2021-07-24T14:26:22.000Z
tests/test_extension_telnet.py
youyangxyb/scrapy
caa1dea890e9cb2024cf9895efe54b3cf0ac1ae9
[ "BSD-3-Clause" ]
1
2020-01-28T07:57:35.000Z
2020-01-28T07:57:35.000Z
from twisted.trial import unittest from twisted.conch.telnet import ITelnetProtocol from twisted.cred import credentials from twisted.internet import defer from scrapy.extensions.telnet import TelnetConsole from scrapy.utils.test import get_crawler class TelnetExtensionTest(unittest.TestCase): def _get_console_a...
34.232143
73
0.684403
7c0f0bf7bf28773464a56ff64a6b9dc115677444
4,479
py
Python
autumn/demography/social_mixing.py
MattSegal/AuTuMN
49d78d9c07ea3825ac31682a4d124eab9d3365ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
autumn/demography/social_mixing.py
MattSegal/AuTuMN
49d78d9c07ea3825ac31682a4d124eab9d3365ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
autumn/demography/social_mixing.py
MattSegal/AuTuMN
49d78d9c07ea3825ac31682a4d124eab9d3365ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os import numpy as np import pandas as pd def load_specific_prem_sheet(mixing_location, country): """ Load a mixing matrix sheet, according to name of the sheet (i.e. country) :param: mixing_location: str One of the four mixing locations - ('all_locations', 'home', 'other_locations', 'scho...
35.547619
118
0.673141
41462f237f3e79e68584a252cbec486f8cef8227
1,640
py
Python
lib/surface/iap/__init__.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/iap/__init__.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/iap/__init__.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
35.652174
79
0.742073