hexsha stringlengths 40 40 | size int64 2 1.05M | ext stringclasses 9
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 193 | max_stars_repo_name stringlengths 6 109 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 36.6k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 193 | max_issues_repo_name stringlengths 6 109 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 29.8k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 193 | max_forks_repo_name stringlengths 6 109 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 11.2k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 1.05M | avg_line_length float64 1 404k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8d8faacdbc74a65428c1777b22e58f60d13f3ae | 4,084 | py | Python | intersight/models/hyperflex_ucsm_config_policy_list.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/hyperflex_ucsm_config_policy_list.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/hyperflex_ucsm_config_policy_list.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-255
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class HyperflexUcsmConfigPolicyList(object):
"""
NO... | 26.519481 | 95 | 0.575171 |
e8d90ee3a3a3911209a5376f514dc7cc1a782409 | 5,158 | py | Python | docs/conf.py | tnkarthik/disaster_response | d2e8f505e65b4aa8df128671fff13f1d33e56c12 | [
"MIT"
] | null | null | null | docs/conf.py | tnkarthik/disaster_response | d2e8f505e65b4aa8df128671fff13f1d33e56c12 | [
"MIT"
] | null | null | null | docs/conf.py | tnkarthik/disaster_response | d2e8f505e65b4aa8df128671fff13f1d33e56c12 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | 31.260606 | 102 | 0.658395 |
e8d930d61e3c03da9b8a41ae7b81f1f554861e92 | 145 | py | Python | src/tools/dev/masonry/masonry_view_log.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 226 | 2018-12-29T01:13:49.000Z | 2022-03-30T19:16:31.000Z | src/tools/dev/masonry/masonry_view_log.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 5,100 | 2019-01-14T18:19:25.000Z | 2022-03-31T23:08:36.000Z | src/tools/dev/masonry/masonry_view_log.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 84 | 2019-01-24T17:41:50.000Z | 2022-03-10T10:01:46.000Z | import sys
import json
import os
from os.path import join as pjoin
from masonry import *
if __name__ == "__main__":
view_log(sys.argv[1])
| 13.181818 | 33 | 0.724138 |
e8d94bcf0b59a4ad80643e9aef7bf94260a293a7 | 21,041 | py | Python | whoville/cloudbreak/models/ldap_config_request.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | whoville/cloudbreak/models/ldap_config_request.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | whoville/cloudbreak/models/ldap_config_request.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | 33.45151 | 984 | 0.635426 |
e8d9949afa93e07d8283ff954692c9e8e552e06d | 1,976 | py | Python | python/coloring/luby_jones.py | leonoverweel/graph-coloring | 48654a2e4cb3ddd786ac6193f9d73271c43eabf0 | [
"MIT"
] | null | null | null | python/coloring/luby_jones.py | leonoverweel/graph-coloring | 48654a2e4cb3ddd786ac6193f9d73271c43eabf0 | [
"MIT"
] | null | null | null | python/coloring/luby_jones.py | leonoverweel/graph-coloring | 48654a2e4cb3ddd786ac6193f9d73271c43eabf0 | [
"MIT"
] | null | null | null | import random
class Coloring:
def __init__(self, graph=None):
self.graph = graph
self.vertices = graph.vertices
def color(self, verify=False, sort="id"):
"""Color the graph and return how many unique colors were used."""
colored = 0
round = 0
# Sort
if sort == "id":
sorted_vertices = sorte... | 29.492537 | 103 | 0.677126 |
e8d9a70f7973178328b065501546c40467c1bcaf | 1,081 | py | Python | docs/conf.py | opeltre/geomstats | 135d5bb6f19e29dd453c68399e04100a9e2c76bf | [
"MIT"
] | null | null | null | docs/conf.py | opeltre/geomstats | 135d5bb6f19e29dd453c68399e04100a9e2c76bf | [
"MIT"
] | null | null | null | docs/conf.py | opeltre/geomstats | 135d5bb6f19e29dd453c68399e04100a9e2c76bf | [
"MIT"
] | null | null | null | project = 'Geomstats'
copyright = '2019, Geomstats, Inc.'
author = 'Geomstats Team'
version = '0.1'
# The full version, including alpha/beta/rc tags
release = '0.1'
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'... | 18.322034 | 61 | 0.678076 |
e8d9c031d71dbf51d74d211ebcdf2b237106c11c | 1,734 | py | Python | node_modules/dropbox/generator/stone/stone/frontend/frontend.py | Hasunemiku2015/JojoTheOtokonoko | 8ea14531cb480f9b2d4164224e5513293cdc409b | [
"MIT"
] | 8 | 2020-11-13T08:48:01.000Z | 2021-12-16T06:30:27.000Z | node_modules/dropbox/generator/stone/stone/frontend/frontend.py | Hasunemiku2015/JojoTheOtokonoko | 8ea14531cb480f9b2d4164224e5513293cdc409b | [
"MIT"
] | 36 | 2020-10-08T23:36:59.000Z | 2022-03-02T07:24:40.000Z | node_modules/dropbox/generator/stone/stone/frontend/frontend.py | Hasunemiku2015/JojoTheOtokonoko | 8ea14531cb480f9b2d4164224e5513293cdc409b | [
"MIT"
] | 1 | 2020-11-04T06:01:11.000Z | 2020-11-04T06:01:11.000Z | import logging
from .exception import InvalidSpec
from .parser import (
ParserFactory,
)
from .ir_generator import IRGenerator
logger = logging.getLogger('stone.frontend.frontend')
# FIXME: Version should not have a default.
def specs_to_ir(specs, version='0.1b1', debug=False, route_whitelist_filter=None):
... | 30.964286 | 83 | 0.659746 |
e8d9ca4ad0a92f63fbf3b06bb849035c426db0a1 | 4,565 | py | Python | dialogflow_v2beta1/gapic/transports/environments_grpc_transport.py | gertventer1970/dialogflow-python-client-v2 | e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2 | [
"Apache-2.0"
] | 1 | 2020-10-14T07:43:19.000Z | 2020-10-14T07:43:19.000Z | dialogflow_v2beta1/gapic/transports/environments_grpc_transport.py | everydaycodings/dialogflow-python-client-v2 | c1c925d94726f49e549870e087ad79ee491056e2 | [
"Apache-2.0"
] | null | null | null | dialogflow_v2beta1/gapic/transports/environments_grpc_transport.py | everydaycodings/dialogflow-python-client-v2 | c1c925d94726f49e549870e087ad79ee491056e2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 36.52 | 86 | 0.638335 |
e8da054cb8ef49737158e6fb09ae946e9cf59b90 | 6,141 | py | Python | python_modules/libraries/dagster-postgres/dagster_postgres/run_storage/run_storage.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-postgres/dagster_postgres/run_storage/run_storage.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-postgres/dagster_postgres/run_storage/run_storage.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | import sqlalchemy as db
from dagster import check
from dagster.core.storage.runs import (
DaemonHeartbeatsTable,
InstanceInfo,
RunStorageSqlMetadata,
SqlRunStorage,
)
from dagster.core.storage.sql import create_engine, run_alembic_upgrade, stamp_alembic_rev
from dagster.serdes import ConfigurableClass,... | 38.38125 | 109 | 0.669435 |
e8da22a845ac0f780ee903265fdd474655926a5d | 16,747 | py | Python | cardpay/model/payment_response_payment_data.py | cardpay/python-sdk-v3 | 35e7c42ca3e9a1ea6222fe2150f92ede64c70248 | [
"MIT"
] | 6 | 2019-07-16T06:27:25.000Z | 2021-03-04T14:24:05.000Z | cardpay/model/payment_response_payment_data.py | cardpay/python-sdk-v3 | 35e7c42ca3e9a1ea6222fe2150f92ede64c70248 | [
"MIT"
] | 5 | 2019-11-18T09:07:51.000Z | 2021-02-12T13:59:55.000Z | cardpay/model/payment_response_payment_data.py | cardpay/python-sdk-v3 | 35e7c42ca3e9a1ea6222fe2150f92ede64c70248 | [
"MIT"
] | 5 | 2019-07-18T13:42:15.000Z | 2021-11-18T12:40:32.000Z | # coding: utf-8
"""
CardPay REST API
Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to c... | 30.72844 | 546 | 0.594196 |
e8da667e2a35f3771c17530293ee6196eb773706 | 658 | py | Python | sageintacctsdk/apis/savings_accounts.py | rhinoworks/sageintacct-sdk-py | dd91725ef66b814e99079df9130ae2621d2faaed | [
"MIT"
] | 4 | 2021-07-12T20:23:33.000Z | 2022-01-05T23:19:55.000Z | sageintacctsdk/apis/savings_accounts.py | rhinoworks/sageintacct-sdk-py | dd91725ef66b814e99079df9130ae2621d2faaed | [
"MIT"
] | 7 | 2021-06-03T08:37:21.000Z | 2021-09-21T05:47:34.000Z | sageintacctsdk/apis/savings_accounts.py | rhinoworks/sageintacct-sdk-py | dd91725ef66b814e99079df9130ae2621d2faaed | [
"MIT"
] | 10 | 2019-07-31T20:32:16.000Z | 2022-03-24T19:05:21.000Z | """
Sage Intacct Savings Accounts
"""
from .api_base import ApiBase
class SavingsAccounts(ApiBase):
"""Class for Savings Accounts APIs."""
def __init__(self):
ApiBase.__init__(self, dimension='SAVINGSACCOUNT')
def get_all(self):
"""Get all Savings Accounts from Sage Intacct
Retur... | 23.5 | 58 | 0.537994 |
e8daa2d1c428bc551ce6d8aa6b3fa607dd24abaf | 31,109 | py | Python | dnnlib/tflib/network.py | tullie/gansformer-tpu | c29fbc622e69d05ac736f99232f5aa19084ce0a4 | [
"MIT"
] | null | null | null | dnnlib/tflib/network.py | tullie/gansformer-tpu | c29fbc622e69d05ac736f99232f5aa19084ce0a4 | [
"MIT"
] | null | null | null | dnnlib/tflib/network.py | tullie/gansformer-tpu | c29fbc622e69d05ac736f99232f5aa19084ce0a4 | [
"MIT"
] | null | null | null | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Helper for managing networks."""
import types
import inspect
import re
import uuid
import... | 49.694888 | 165 | 0.643287 |
e8daa4734209e1e7ad4e27dafce149f206c05fe1 | 2,940 | py | Python | backend/app.py | CVtheramin/PoseNetFlask | e309919207ef20dc9799eeb52c3ab969531ca04b | [
"MIT"
] | null | null | null | backend/app.py | CVtheramin/PoseNetFlask | e309919207ef20dc9799eeb52c3ab969531ca04b | [
"MIT"
] | null | null | null | backend/app.py | CVtheramin/PoseNetFlask | e309919207ef20dc9799eeb52c3ab969531ca04b | [
"MIT"
] | 2 | 2020-08-28T17:04:14.000Z | 2021-05-31T11:59:17.000Z | from flask import Flask, render_template, request, flash, redirect, \
url_for
import numpy as np
from werkzeug.utils import secure_filename
from pydub import AudioSegment
from pydub.utils import make_chunks
import os
# 17 parts, two coords, 3600 frames
# assumes 20 frames per second
FRAME_RATE = 20
SONG_TIME = 18... | 35 | 115 | 0.628231 |
e8dae87a5b324e102833dca996bc19dadfbb99dc | 6,018 | py | Python | panoptes_aggregation/tests/reducer_tests/test_shape_reducer_ellipse.py | amyrebecca/aggregation-for-caesar | 5f0d884932312010f9caeb8ebfcfe358f490e41f | [
"Apache-2.0"
] | null | null | null | panoptes_aggregation/tests/reducer_tests/test_shape_reducer_ellipse.py | amyrebecca/aggregation-for-caesar | 5f0d884932312010f9caeb8ebfcfe358f490e41f | [
"Apache-2.0"
] | null | null | null | panoptes_aggregation/tests/reducer_tests/test_shape_reducer_ellipse.py | amyrebecca/aggregation-for-caesar | 5f0d884932312010f9caeb8ebfcfe358f490e41f | [
"Apache-2.0"
] | null | null | null | from panoptes_aggregation.reducers.shape_reducer_dbscan import process_data as process_data_dbscan, shape_reducer_dbscan
from panoptes_aggregation.reducers.shape_reducer_hdbscan import process_data as process_data_hdbscan, shape_reducer_hdbscan
from .base_test_class import ReducerTest
import copy
extracted_data = [
... | 33.620112 | 123 | 0.53772 |
e8dafddd2a7becacee51c4e0fdba7d21b5030279 | 1,225 | py | Python | lang/python/downImg.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 8 | 2015-06-07T13:25:48.000Z | 2022-03-22T23:14:50.000Z | lang/python/downImg.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 30 | 2016-01-29T01:36:41.000Z | 2018-09-19T07:01:22.000Z | lang/python/downImg.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | null | null | null | import os
from ftplib import FTP
# config
host = 'abc.com'
user = 'user'
password = 'password'
project, local = 'aaa', 'bbb'
# end of config
def listcwd(f):
lst = f.nlst('.')
lst = [i[2:] for i in lst] # skip first './'
return lst
def downfile(f, src, dst=None):
if dst is None:
dst = src
... | 21.491228 | 55 | 0.568163 |
e8db2ace86c7d3c484234b75558778563f249a4a | 2,346 | py | Python | Seeder/publishers/migrations/0001_initial.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 8 | 2017-08-16T19:18:57.000Z | 2022-01-24T10:08:19.000Z | Seeder/publishers/migrations/0001_initial.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 242 | 2017-02-03T19:15:52.000Z | 2022-03-25T08:02:52.000Z | Seeder/publishers/migrations/0001_initial.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 2 | 2019-03-06T12:36:29.000Z | 2019-07-08T12:52:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-06-25 16:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operation... | 41.892857 | 114 | 0.592072 |
e8db3340bccebf077264600d1cd21aa1e657d4c8 | 206 | py | Python | codes/youtube_scraper_mongodb_expansion/youtube/config.py | QiyuanMa/trailer_research | 5276e0f422aeb9ef6bccb4ffd348a600dacc2f75 | [
"MIT"
] | null | null | null | codes/youtube_scraper_mongodb_expansion/youtube/config.py | QiyuanMa/trailer_research | 5276e0f422aeb9ef6bccb4ffd348a600dacc2f75 | [
"MIT"
] | null | null | null | codes/youtube_scraper_mongodb_expansion/youtube/config.py | QiyuanMa/trailer_research | 5276e0f422aeb9ef6bccb4ffd348a600dacc2f75 | [
"MIT"
] | 1 | 2020-12-14T04:56:43.000Z | 2020-12-14T04:56:43.000Z | #!/usr/bin/env python
# encoding: utf-8
""" initial object to be scraped """
videoID = [
'qeau7UWjEms&list=PLScC8g4bqD461pCfNojDx0fVxjGl7Og_4',
# '_2HCt0cAjM0',
# 'L_5Rfu1LVpE',
]
PROXYPOOL = [] | 22.888889 | 58 | 0.669903 |
e8db4579d2be7a34e56fbc1ef38b4c6cb9e7f8e6 | 9,825 | py | Python | docs/conf.py | rmoskal/flask-social | fb04319cc1c0422518d5e2b2aaa1a54a36313f02 | [
"MIT"
] | 1 | 2017-01-10T17:12:18.000Z | 2017-01-10T17:12:18.000Z | docs/conf.py | rmoskal/flask-social | fb04319cc1c0422518d5e2b2aaa1a54a36313f02 | [
"MIT"
] | null | null | null | docs/conf.py | rmoskal/flask-social | fb04319cc1c0422518d5e2b2aaa1a54a36313f02 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Flask-Social documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 12 15:35:21 2012.
#
# 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.
#
... | 31.693548 | 80 | 0.714504 |
e8db549faec302eb8126f1c2cc84d89735acfca7 | 1,836 | py | Python | archived_modules/json_to_parquet/json_to_parquet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | archived_modules/json_to_parquet/json_to_parquet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | archived_modules/json_to_parquet/json_to_parquet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | import os, logging, argparse, json
import pandas as pd
def convert_json_to_parquet(filepath_in, filepath_out):
"""
Parameters
---------------
filepath_in
str : Filepath to the raw JSON file
filepath_out
str : Where the output file should be written
Return
-... | 27.818182 | 124 | 0.625817 |
e8db7b8afe28efde2a5b3d53186f27fb42108a8d | 1,912 | py | Python | src/test/tests/hybrid/missingdata.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 226 | 2018-12-29T01:13:49.000Z | 2022-03-30T19:16:31.000Z | src/test/tests/hybrid/missingdata.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 5,100 | 2019-01-14T18:19:25.000Z | 2022-03-31T23:08:36.000Z | src/test/tests/hybrid/missingdata.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 84 | 2019-01-24T17:41:50.000Z | 2022-03-10T10:01:46.000Z | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: missingdata.py
#
# Tests: missing data
#
# Programmer: Brad Whitlock
# Date: Thu Jan 19 09:49:15 PST 2012
#
# Modifications:
#
# ------------------------------------------------------------... | 26.555556 | 78 | 0.619247 |
e8db8e485971c483a224a33ed6a170f6b9be76a1 | 503 | py | Python | 02_reading_spreadsheets/reading_row_cells.py | r00c/automating_excel_with_python | b4fa01aa6bdc2ec1c87a3e9cd00813b100f81f8b | [
"MIT"
] | 43 | 2021-07-01T11:50:38.000Z | 2022-03-26T13:56:15.000Z | 02_reading_spreadsheets/reading_row_cells.py | wenxuefeng3930/automating_excel_with_python | dc2509359e1b14d2ad694f9fe554f3ce1781e497 | [
"MIT"
] | 1 | 2021-11-06T23:06:21.000Z | 2021-11-07T01:24:44.000Z | 02_reading_spreadsheets/reading_row_cells.py | wenxuefeng3930/automating_excel_with_python | dc2509359e1b14d2ad694f9fe554f3ce1781e497 | [
"MIT"
] | 11 | 2021-06-25T02:06:35.000Z | 2022-03-31T14:29:59.000Z | # reading_row_cells.py
from openpyxl import load_workbook
def iterating_row(path, sheet_name, row):
workbook = load_workbook(filename=path)
if sheet_name not in workbook.sheetnames:
print(f"'{sheet_name}' not found. Quitting.")
return
sheet = workbook[sheet_name]
for cell in sheet[ro... | 26.473684 | 63 | 0.662028 |
e8db96b9f5e5ee3da5d1cf1a297bc7ac8efe3243 | 2,115 | py | Python | scripts/fb/WallsAndGates.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | null | null | null | scripts/fb/WallsAndGates.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | 8 | 2020-09-05T16:04:31.000Z | 2022-02-27T09:57:51.000Z | scripts/fb/WallsAndGates.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | null | null | null | """
Walls and Gates
You are given an m x n grid rooms initialized with these three possible values.
-1 A wall or an obstacle.
0 A gate.
INF Infinity means an empty room. We use the value 231 - 1 = 2147483647 to represent
INF as you may assume that the distance to a gate is less than 2147483647.
Fill each empty room... | 25.481928 | 142 | 0.545626 |
e8dbad3d35777630b2d1af67e734c850db53d899 | 9,424 | py | Python | src/reader/mirtext_corpus.py | lasigeBioTM/IBEnt | de7574991684de72e9b545c2b8fb5c8d95b0a83b | [
"MIT"
] | null | null | null | src/reader/mirtext_corpus.py | lasigeBioTM/IBEnt | de7574991684de72e9b545c2b8fb5c8d95b0a83b | [
"MIT"
] | null | null | null | src/reader/mirtext_corpus.py | lasigeBioTM/IBEnt | de7574991684de72e9b545c2b8fb5c8d95b0a83b | [
"MIT"
] | null | null | null | import io
import logging
import xml.etree.ElementTree as ET
import os
import sys
import itertools
import progressbar as pb
import time
from text.corpus import Corpus
from text.document import Document
from text.mirna_entity import mirna_graph
from text.protein_entity import get_uniprot_name
from text.sentence import ... | 48.829016 | 116 | 0.511672 |
e8dbe969b81c37b885fd826f858f8da059b2a6e2 | 1,672 | py | Python | configs/sagan/sagan_128_woReLUinplace_Glr-1e-4_Dlr-4e-4_ndisc1_imagenet1k_b64x4.py | StevenJokess/mmgeneration | e517edd8085efa6a1e221fab74719f88c3360f0d | [
"Apache-2.0"
] | null | null | null | configs/sagan/sagan_128_woReLUinplace_Glr-1e-4_Dlr-4e-4_ndisc1_imagenet1k_b64x4.py | StevenJokess/mmgeneration | e517edd8085efa6a1e221fab74719f88c3360f0d | [
"Apache-2.0"
] | null | null | null | configs/sagan/sagan_128_woReLUinplace_Glr-1e-4_Dlr-4e-4_ndisc1_imagenet1k_b64x4.py | StevenJokess/mmgeneration | e517edd8085efa6a1e221fab74719f88c3360f0d | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/models/sagan_128x128.py', '../_base_/datasets/imagenet_128.py',
'../_base_/default_runtime.py'
]
init_cfg = dict(type='studio')
model = dict(
generator=dict(num_classes=1000, init_cfg=init_cfg),
discriminator=dict(num_classes=1000, init_cfg=init_cfg),
)
lr_config = None
checkpoin... | 26.539683 | 78 | 0.666866 |
e8dc3828d92ff93e814cf7c227314e2144f96079 | 7,092 | py | Python | zkviz/zkviz.py | ktw5691/zkviz | 0d8d4af056fcfd7c90e449a960c3a07c038c9f20 | [
"MIT"
] | null | null | null | zkviz/zkviz.py | ktw5691/zkviz | 0d8d4af056fcfd7c90e449a960c3a07c038c9f20 | [
"MIT"
] | null | null | null | zkviz/zkviz.py | ktw5691/zkviz | 0d8d4af056fcfd7c90e449a960c3a07c038c9f20 | [
"MIT"
] | null | null | null | """
Visualize the notes network of a Zettelkasten.
Each arrow represents a link from one zettel to another. The script assumes
that zettels have filenames of the form "YYYYMMDDHHMM This is a title" and that
links have the form [[YYYYMMDDHHMM]]
"""
import glob
import os.path
import re
from textwrap import fill
# (?P... | 31.380531 | 321 | 0.606458 |
e8dc49837425003e232fe12febbcc331f2cdcc27 | 2,302 | py | Python | scripttease/factory.py | develmaycare/python-scripttease | acaf466f25ab18ba158fefea4d67f11ccfb9b169 | [
"BSD-3-Clause"
] | null | null | null | scripttease/factory.py | develmaycare/python-scripttease | acaf466f25ab18ba158fefea4d67f11ccfb9b169 | [
"BSD-3-Clause"
] | 8 | 2020-10-19T18:06:05.000Z | 2020-12-30T19:29:01.000Z | scripttease/factory.py | develmaycare/python-scripttease | acaf466f25ab18ba158fefea4d67f11ccfb9b169 | [
"BSD-3-Clause"
] | null | null | null | # Imports
import logging
from importlib import import_module
from .constants import LOGGER_NAME
from .library.commands import ItemizedCommand
log = logging.getLogger(LOGGER_NAME)
# Exports
__all__ = (
"Factory",
)
# Classes
class Factory(object):
"""A command factory."""
def __init__(self, overlay):... | 27.082353 | 118 | 0.605126 |
e8dc507ba1d5137a539fa6ab264013dd8238649a | 733 | py | Python | mi/dataset/driver/moas/gl/adcpa/adcpa_m_glider_recovered_driver.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/driver/moas/gl/adcpa/adcpa_m_glider_recovered_driver.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/driver/moas/gl/adcpa/adcpa_m_glider_recovered_driver.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | ##
# OOIPLACEHOLDER
#
# Copyright 2014 Raytheon Co.
##
__author__ = "Jeff Roy"
import os
from mi.logging import config
from mi.dataset.driver.moas.gl.adcpa.adcpa_driver_common import AdcpaDriver
from mi.dataset.dataset_parser import DataSetDriverConfigKeys
def parse(basePythonCodePath, sourceFilePath, particleDat... | 25.275862 | 97 | 0.774898 |
e8dca54c5c10c646292b4a0d40a745f9dfaa794d | 3,583 | py | Python | indra/sources/signor/api.py | djinnome/indra | 382b7f236e0b1422c96a268ef873530b5e92d48f | [
"BSD-2-Clause"
] | null | null | null | indra/sources/signor/api.py | djinnome/indra | 382b7f236e0b1422c96a268ef873530b5e92d48f | [
"BSD-2-Clause"
] | null | null | null | indra/sources/signor/api.py | djinnome/indra | 382b7f236e0b1422c96a268ef873530b5e92d48f | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import sys
import logging
import requests
from io import StringIO, BytesIO
from collections import namedtuple
from .processor import SignorProcessor
from indra.util import read_unicode_csv, read_unicode_csv_fileobj
... | 31.156522 | 79 | 0.652247 |
e8dcc883d14c114fc1a205020e0524b6d06fd4f3 | 5,202 | py | Python | multi_robot_motion_planning/DiscoPygal/rod/solvers/prm.py | galmw/AlgorithmicRobotics | 1a616a911e74fa965f34075bc2fc683876e1a6be | [
"MIT"
] | null | null | null | multi_robot_motion_planning/DiscoPygal/rod/solvers/prm.py | galmw/AlgorithmicRobotics | 1a616a911e74fa965f34075bc2fc683876e1a6be | [
"MIT"
] | null | null | null | multi_robot_motion_planning/DiscoPygal/rod/solvers/prm.py | galmw/AlgorithmicRobotics | 1a616a911e74fa965f34075bc2fc683876e1a6be | [
"MIT"
] | null | null | null | from bindings import *
import random
import math
import conversions
import networkx as nx
import sklearn.neighbors
import numpy as np
import time
from geometry_utils.collision_detection import Collision_detector
def calc_bbox(obstacles, origin, destination, length):
X = []
Y = []
X.append(origin.x())
... | 35.148649 | 111 | 0.607651 |
e8dcd672bf2db27332ef0b2f9fa81152925ea845 | 1,384 | py | Python | setup.py | bioexcel/biobb_cmip | ee732a67e7e9a7d924ca2c8ec56b69f3e367861a | [
"Apache-2.0"
] | null | null | null | setup.py | bioexcel/biobb_cmip | ee732a67e7e9a7d924ca2c8ec56b69f3e367861a | [
"Apache-2.0"
] | 9 | 2021-05-14T10:10:02.000Z | 2022-01-19T14:35:20.000Z | setup.py | bioexcel/biobb_cmip | ee732a67e7e9a7d924ca2c8ec56b69f3e367861a | [
"Apache-2.0"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="biobb_cmip",
version="3.7.3",
author="Biobb developers",
author_email="pau.andrio@bsc.es",
description="biobb_cmip is the Biobb module collection to compute classical molecular interaction... | 35.487179 | 115 | 0.651012 |
e8dd0de8b2cfaf834dc1ae4ccffebc1e993f440b | 770 | py | Python | src/test/python/testDynamicConfigAppDir/project-a/src/main/python/stage/modules.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | src/test/python/testDynamicConfigAppDir/project-a/src/main/python/stage/modules.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | 34 | 2022-02-26T04:27:34.000Z | 2022-03-29T23:05:47.000Z | src/test/python/testDynamicConfigAppDir/project-a/src/main/python/stage/modules.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | #
# This file is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | 36.666667 | 74 | 0.737662 |
e8dd196ff7eca90d3d11f7e2346ff68ae289ca39 | 286 | py | Python | pelita/tournament/roundrobin.py | DanBenHa/pelita | 557c3a757a24e0f1abe25f7edf5c4ffee83a077e | [
"BSD-2-Clause"
] | 35 | 2015-01-27T05:49:21.000Z | 2021-12-29T11:38:57.000Z | pelita/tournament/roundrobin.py | DanBenHa/pelita | 557c3a757a24e0f1abe25f7edf5c4ffee83a077e | [
"BSD-2-Clause"
] | 428 | 2015-01-06T09:09:53.000Z | 2021-10-13T08:33:36.000Z | pelita/tournament/roundrobin.py | DanBenHa/pelita | 557c3a757a24e0f1abe25f7edf5c4ffee83a077e | [
"BSD-2-Clause"
] | 45 | 2015-02-20T20:15:12.000Z | 2021-08-30T16:41:40.000Z | import itertools
import random
def initial_state(teams):
rr = []
for pair in itertools.combinations(teams, 2):
match = list(pair)
random.shuffle(match)
rr.append(tuple(match))
# shuffle the matches for more fun
random.shuffle(rr)
return rr
| 20.428571 | 49 | 0.646853 |
e8dd3701cdae5ee86b27a6553ca05b5e884056f3 | 845 | py | Python | practice/81.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | 1 | 2020-01-15T11:04:16.000Z | 2020-01-15T11:04:16.000Z | practice/81.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | practice/81.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | null | null | null | while True:
usr = input("Enter username: ")
with open("users.txt", "r") as file:
users = file.readlines()
users = [i.strip("\n") for i in users]
if usr in users:
print("Username exists")
continue
else:
print("Username is fine")
break
while Tru... | 29.137931 | 63 | 0.542012 |
e8dd4620dd17664f51734dbb9a03a68fa6be0e96 | 18,950 | py | Python | pytorch_src/generate_original.py | seraphinatarrant/plan-write-revise-demo | b394657b1bd1d6978ea31d6ac5bad6f3a4b6e1da | [
"MIT"
] | 30 | 2019-04-14T03:30:10.000Z | 2021-06-23T18:49:54.000Z | pytorch_src/generate_original.py | seraphinatarrant/plan-write-revise-demo | b394657b1bd1d6978ea31d6ac5bad6f3a4b6e1da | [
"MIT"
] | 2 | 2019-08-20T19:00:53.000Z | 2022-03-04T12:16:06.000Z | pytorch_src/generate_original.py | seraphinatarrant/plan-write-revise-demo | b394657b1bd1d6978ea31d6ac5bad6f3a4b6e1da | [
"MIT"
] | 5 | 2019-06-26T10:29:01.000Z | 2020-09-16T06:03:13.000Z | ###############################################################################
# Language Modeling on Penn Tree Bank
#
# This file generates new sentences sampled from the language model
#
###############################################################################
import argparse
import sys
import numpy, math
imp... | 46.905941 | 153 | 0.556306 |
e8dd697ee24ce7f268042d83db638d0f3c36a5f4 | 6,619 | py | Python | examples/pretrained_cnn/tutorial_vgg16.py | OliverZijia/tensorlayer2 | 01113b53e84a3bbb298b9c35ebd53254e487350f | [
"Apache-2.0"
] | null | null | null | examples/pretrained_cnn/tutorial_vgg16.py | OliverZijia/tensorlayer2 | 01113b53e84a3bbb298b9c35ebd53254e487350f | [
"Apache-2.0"
] | null | null | null | examples/pretrained_cnn/tutorial_vgg16.py | OliverZijia/tensorlayer2 | 01113b53e84a3bbb298b9c35ebd53254e487350f | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
VGG-16 for ImageNet.
Introduction
----------------
VGG is a convolutional neural network model proposed by K. Simonyan and A. Zisserman
from the University of Oxford in the paper “Very Deep Convolutional Networks for
Large-Scale Image Recognition” . The model achieves 92... | 42.159236 | 119 | 0.678955 |
e8dd6f0c4a13b16d4452536623c6a6333a334b9f | 1,837 | py | Python | examples/parsePythonValue.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 1 | 2021-10-30T21:18:29.000Z | 2021-10-30T21:18:29.000Z | examples/parsePythonValue.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 22 | 2020-04-15T14:49:30.000Z | 2021-12-22T02:49:52.000Z | examples/parsePythonValue.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | null | null | null | # parsePythonValue.py
#
# Copyright, 2006, by Paul McGuire
#
from mo_parsing import *
cvtBool = lambda t: t[0] == "True"
cvtInt = lambda toks: int(toks[0])
cvtReal = lambda toks: float(toks[0])
cvtTuple = lambda toks: tuple(toks)
cvtDict = lambda toks: dict(toks)
cvtList = lambda toks: [toks]
# define punctuation as... | 29.629032 | 95 | 0.636364 |
e8dd76dc7d34101dd68946a41fa5abf33eb30c55 | 2,119 | py | Python | src/kol/util/NumberUtils.py | thedufer/pykol | bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a | [
"BSD-3-Clause"
] | 1 | 2016-05-08T12:10:32.000Z | 2016-05-08T12:10:32.000Z | src/kol/util/NumberUtils.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | null | null | null | src/kol/util/NumberUtils.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | null | null | null | import locale
locale.setlocale(locale.LC_ALL, '')
def formatNumberWithCommas(number):
return locale.format("%d", number, 1)
def parseIntegerFromHumanReadableString(intStr):
# See if this is string ends in a 'k' or 'm'.
isThousand = False
isMillion = False
if intStr[-1].lower() == 'm':
isMillion = True
intSt... | 23.032609 | 54 | 0.644644 |
e8dd8f91cc24a04b873b5d2801b472b855d9a6f3 | 34 | py | Python | src/test/python/testModuleHash/before/library/udl.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | src/test/python/testModuleHash/before/library/udl.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | 34 | 2022-02-26T04:27:34.000Z | 2022-03-29T23:05:47.000Z | src/test/python/testModuleHash/before/library/udl.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | def getNumber(self):
return 1
| 11.333333 | 20 | 0.676471 |
e8ddae36fbe441813a010529c1587f22b083b6fc | 1,483 | py | Python | vox/win/tests/test_first_mismatch.py | drocco007/vox_linux | 9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33 | [
"MIT"
] | 5 | 2015-03-25T11:56:10.000Z | 2018-02-03T21:11:27.000Z | vox/win/tests/test_first_mismatch.py | drocco007/vox_linux | 9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33 | [
"MIT"
] | null | null | null | vox/win/tests/test_first_mismatch.py | drocco007/vox_linux | 9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33 | [
"MIT"
] | null | null | null | from vox.win.textbuf import first_mismatch
import pytest
def test_zero_length_strings():
assert 0 == first_mismatch('', '')
def test_should_be_length_of_identical_single_character_strings():
assert 1 == first_mismatch('a', 'a')
def test_should_be_beginning_of_different_single_character_strings():
ass... | 26.482143 | 71 | 0.716116 |
e8de68445252836485493bd6912597b9713730f6 | 551 | py | Python | 0x06-python-classes/3-square.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | 0x06-python-classes/3-square.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | 0x06-python-classes/3-square.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""Define a class Square."""
class Square:
"""Represent a square."""
def __init__(self, size=0):
"""Initialize a new square.
Args:
size (int): The size of the new square.
"""
if not isinstance(size, int):
raise TypeError("size must be... | 25.045455 | 54 | 0.548094 |
e8de972f2d30d49c3bc55304c3c95872ef88c0cf | 3,726 | py | Python | web_server/parsers/WIP/NY.py | yutkin/News-Aggregator | b35b2cdd873121aab03cb14c191b2a3b4d3d5180 | [
"MIT"
] | 17 | 2017-05-09T13:03:21.000Z | 2022-01-08T18:32:01.000Z | web_server/parsers/WIP/NY.py | uav-profile/News-Aggregator | b35b2cdd873121aab03cb14c191b2a3b4d3d5180 | [
"MIT"
] | null | null | null | web_server/parsers/WIP/NY.py | uav-profile/News-Aggregator | b35b2cdd873121aab03cb14c191b2a3b4d3d5180 | [
"MIT"
] | 6 | 2018-04-23T03:28:33.000Z | 2021-04-02T06:29:23.000Z | import csv
import requests
from multiprocessing import Process, Queue, Value, Lock, current_process
import queue
from datetime import datetime, timedelta
import signal
import logging
import time
import pandas as pd
import datetime
import json
from bs4 import BeautifulSoup
NUM_JOBS = 32
def _time_to_str(time):
ret... | 32.12069 | 99 | 0.561997 |
e8dead8a45e7464cc0d542f6e9f9852c5a9a4099 | 8,173 | py | Python | tests/test_util.py | Syncleus/apex | 99ab661f0993fcee8064578b6a6020f5b742d75f | [
"Apache-2.0"
] | 13 | 2016-03-23T09:35:13.000Z | 2019-09-23T09:39:37.000Z | tests/test_util.py | freemo/apex | 99ab661f0993fcee8064578b6a6020f5b742d75f | [
"Apache-2.0"
] | 31 | 2016-09-21T10:29:36.000Z | 2016-09-30T12:11:28.000Z | tests/test_util.py | freemo/apex | 99ab661f0993fcee8064578b6a6020f5b742d75f | [
"Apache-2.0"
] | 5 | 2016-03-27T21:32:09.000Z | 2022-01-13T17:04:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for Python APRS util methods."""
# These imports are for python3 compatibility inside python2
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import logging.handlers
import unittest
imp... | 35.534783 | 87 | 0.634651 |
e8deb3f652159de4f1832bb75a3ef7771f429279 | 22,076 | py | Python | lib/couchbase_helper/documentgenerator.py | scottwedge/testrunner | eac59d7737e4c3d75cc705dfb7712bb9de69f482 | [
"Apache-2.0"
] | null | null | null | lib/couchbase_helper/documentgenerator.py | scottwedge/testrunner | eac59d7737e4c3d75cc705dfb7712bb9de69f482 | [
"Apache-2.0"
] | null | null | null | lib/couchbase_helper/documentgenerator.py | scottwedge/testrunner | eac59d7737e4c3d75cc705dfb7712bb9de69f482 | [
"Apache-2.0"
] | 1 | 2020-07-24T07:15:59.000Z | 2020-07-24T07:15:59.000Z | import json
import string
import random
from random import choice
from string import ascii_uppercase
from string import ascii_lowercase
from string import digits
import gzip
from testconstants import DEWIKI, ENWIKI, ESWIKI, FRWIKI
from .data import FIRST_NAMES, LAST_NAMES, DEPT, LANGUAGES
class KVGenerator(object):
... | 34.279503 | 117 | 0.501676 |
e8debb59770aed9e702ecdf35069d2eba4f2c4f2 | 480 | py | Python | django_xsede_warehouse/rdr_db/admin.py | XSEDE/XSEDE_Information_Warehouse | 8b3aab42b7afd70ce69b9bf44551a0ded4491831 | [
"Apache-2.0"
] | 1 | 2019-10-29T22:50:29.000Z | 2019-10-29T22:50:29.000Z | django_xsede_warehouse/rdr_db/admin.py | XSEDE/XSEDE_Information_Warehouse | 8b3aab42b7afd70ce69b9bf44551a0ded4491831 | [
"Apache-2.0"
] | null | null | null | django_xsede_warehouse/rdr_db/admin.py | XSEDE/XSEDE_Information_Warehouse | 8b3aab42b7afd70ce69b9bf44551a0ded4491831 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from rdr_db.models import *
class RDRResourceAdmin(admin.ModelAdmin):
list_display = ('rdr_resource_id', 'info_resourceid', 'rdr_type', 'resource_descriptive_name')
list_display_links = ['rdr_resource_id']
ordering = ['info_resourceid', 'rdr_type']
search_fields = ['rdr... | 40 | 103 | 0.78125 |
e8ded4d0e3a14ab36709dc243b5156f6c6589389 | 1,314 | py | Python | infra/tools/bucket/__main__.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | infra/tools/bucket/__main__.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 7 | 2022-02-15T01:11:37.000Z | 2022-03-02T12:46:13.000Z | infra/tools/bucket/__main__.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Wrapper tool for creating a new bucket in Chrome Infra.
Example invocation:
./run.py infra.tools.bucket <bucket name>
Bucket name should start with "chro... | 27.957447 | 82 | 0.766362 |
e8deddb71734eab6afc80b438053b2e9a731658f | 40,669 | py | Python | scripts/python/gen.py | Bhaskers-Blu-Org1/power-up | 6dcf088a62ea3c12f605325d702e49636926098e | [
"Apache-2.0"
] | 8 | 2018-06-28T19:12:35.000Z | 2019-06-26T15:04:53.000Z | scripts/python/gen.py | open-power-ref-design/cluster-genesis | 53a1db7e86726cf6d1783afaf083c9b7dcabdef8 | [
"Apache-2.0"
] | 58 | 2018-03-22T21:34:29.000Z | 2019-06-24T21:00:06.000Z | scripts/python/gen.py | open-power-ref-design/cluster-genesis | 53a1db7e86726cf6d1783afaf083c9b7dcabdef8 | [
"Apache-2.0"
] | 8 | 2018-06-14T19:40:06.000Z | 2019-05-08T09:48:30.000Z | #!/usr/bin/env python3
"""POWER-Up 'gen' command"""
# Copyright 2019 IBM Corp.
#
# 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... | 41.37233 | 155 | 0.568443 |
e8dee9018b26ae79a9397886c7cf51b78b58f20b | 2,798 | py | Python | tests/simulate_reads_test.py | martinghunt/simutator | 0218c8a5b37fd72eb4e5b2df4cba9f6118f96788 | [
"MIT"
] | 7 | 2020-01-09T15:25:17.000Z | 2021-08-05T15:58:25.000Z | tests/simulate_reads_test.py | martinghunt/simutator | 0218c8a5b37fd72eb4e5b2df4cba9f6118f96788 | [
"MIT"
] | null | null | null | tests/simulate_reads_test.py | martinghunt/simutator | 0218c8a5b37fd72eb4e5b2df4cba9f6118f96788 | [
"MIT"
] | 1 | 2020-01-09T13:10:02.000Z | 2020-01-09T13:10:02.000Z | import os
import pytest
import shutil
import pyfastaq
from simutator import simulate_reads, utils
def test_simulate_illumina_paired_reads_from_fasta():
"""test simulate_illumina_paired_reads_from_fasta"""
# Just test if we can run ART. Make a fake genome and then simulate
# some reads from it
tmp_o... | 34.54321 | 83 | 0.602931 |
e8df4c990b44f7dba86b763d126d1d15508dad18 | 4,187 | py | Python | owlbot.py | Ark-kun/python-aiplatform | 193ef7d28ca9c302f86c4c295f4f468e8f02d529 | [
"Apache-2.0"
] | 2 | 2021-10-02T02:25:44.000Z | 2021-11-17T10:35:01.000Z | owlbot.py | Ark-kun/python-aiplatform | 193ef7d28ca9c302f86c4c295f4f468e8f02d529 | [
"Apache-2.0"
] | null | null | null | owlbot.py | Ark-kun/python-aiplatform | 193ef7d28ca9c302f86c4c295f4f468e8f02d529 | [
"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, softw... | 36.72807 | 98 | 0.635061 |
e8dfaefc175e815289e027d7e603fd115de3f884 | 6,473 | py | Python | dl/tool/idx_decode.py | youyouzh/u_base | f2f81f837258df6f57cdfc3f3f579049935f5a22 | [
"Apache-2.0"
] | 4 | 2020-03-29T15:01:18.000Z | 2020-06-22T08:06:00.000Z | dl/tool/idx_decode.py | youyouzh/python-base | 1959812d026faf9d23ff758ca06f1a13a3cce3c4 | [
"Apache-2.0"
] | null | null | null | dl/tool/idx_decode.py | youyouzh/python-base | 1959812d026faf9d23ff758ca06f1a13a3cce3c4 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""
对MNIST手写数字数据文件转换为bmp图片文件格式。
数据集下载地址为http://yann.lecun.com/exdb/mnist。
相关格式转换见官网以及代码注释。
========================
关于IDX文件格式的解析规则:
========================
THE IDX FILE FORMAT
the IDX file format is a simple format for vectors and multidimensional matrices of various numerical types.
The basic for... | 31.8867 | 119 | 0.631701 |
e8dfc095400726e79040b2a2e9ca1cc440053b37 | 1,039 | py | Python | fglib/tests/test_graphs.py | ha0ransun/fglib | 717a0e188ff3b7f05ccb9f2330f4a375dd03d907 | [
"MIT"
] | 58 | 2015-02-09T20:37:10.000Z | 2021-10-07T01:51:27.000Z | fglib/tests/test_graphs.py | ha0ransun/fglib | 717a0e188ff3b7f05ccb9f2330f4a375dd03d907 | [
"MIT"
] | 9 | 2015-01-19T20:34:03.000Z | 2021-07-08T01:44:38.000Z | fglib/tests/test_graphs.py | ha0ransun/fglib | 717a0e188ff3b7f05ccb9f2330f4a375dd03d907 | [
"MIT"
] | 18 | 2015-05-01T12:41:29.000Z | 2022-01-18T00:02:18.000Z | import unittest
import networkx as nx
from networkx.algorithms import bipartite
from .. import graphs, nodes, rv
class TestFactorGraph(unittest.TestCase):
def test_convert_graph_to_factor_garph(self):
variable_nodes = ['x1', 'x2', 'x3', 'x4']
factor_nodes = ['fa', 'fb', 'fc']
g = nx.Gr... | 30.558824 | 78 | 0.565929 |
e8dfeca5b5ca3339ed715c048c06e4c6979c3712 | 1,483 | py | Python | alipay/aop/api/response/AlipayMarketingCampaignCertQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayMarketingCampaignCertQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayMarketingCampaignCertQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.KnCertSendOrderDetail import KnCertSendOrderDetail
class AlipayMarketingCampaignCertQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayMarket... | 34.488372 | 113 | 0.695887 |
e8dff13d8489e7cbc5e8794ae539c91ca2004515 | 3,922 | py | Python | crowdastro/generate_training_data.py | chengsoonong/crowdastro | ce14432c36de0574b73d813304365b74446a61f8 | [
"MIT"
] | 13 | 2015-11-07T15:24:44.000Z | 2020-04-20T05:29:58.000Z | crowdastro/generate_training_data.py | chengsoonong/crowdastro | ce14432c36de0574b73d813304365b74446a61f8 | [
"MIT"
] | 234 | 2016-02-21T23:53:16.000Z | 2019-06-27T00:26:08.000Z | crowdastro/generate_training_data.py | chengsoonong/crowdastro | ce14432c36de0574b73d813304365b74446a61f8 | [
"MIT"
] | 3 | 2015-11-07T00:20:09.000Z | 2018-10-03T13:37:15.000Z | """Generates training data (potential hosts and their astronomical features).
Also generates training/testing indices.
Matthew Alger
The Australian National University
2016
"""
import argparse
import h5py
import numpy
import sklearn.neighbors
from .config import config
FITS_HEIGHT = config['surveys']['atlas']['fi... | 32.683333 | 80 | 0.607088 |
e8dff7aa9981232a55e65792b4c7a3322c2dce74 | 11,181 | py | Python | tests/python/relay/test_type_infer.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 48 | 2020-07-29T18:09:23.000Z | 2021-10-09T01:53:33.000Z | tests/python/relay/test_type_infer.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 9 | 2021-04-02T02:28:07.000Z | 2022-03-26T18:23:59.000Z | tests/python/relay/test_type_infer.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 42 | 2020-08-01T06:41:24.000Z | 2022-01-20T10:33:08.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... | 30.300813 | 101 | 0.596101 |
e8e044386be46a019864da0fa89f51102ef0b623 | 2,301 | py | Python | lawyerd/poster/backends/ebay/main.py | loobinsk/customer_project | 4f43d4c6db2c99926715ea16451511466569c4ae | [
"MIT"
] | null | null | null | lawyerd/poster/backends/ebay/main.py | loobinsk/customer_project | 4f43d4c6db2c99926715ea16451511466569c4ae | [
"MIT"
] | null | null | null | lawyerd/poster/backends/ebay/main.py | loobinsk/customer_project | 4f43d4c6db2c99926715ea16451511466569c4ae | [
"MIT"
] | null | null | null | import logging
from typing import List
from templated_email import send_templated_mail # noqa
from products.models import PRODUCT_TYPE
from ...main import Poster, ApiKey, DataModels, get_site_screenshot # , SendAbuseExitCode
class ProcessBackend(Poster):
domains: List[str] = ['ebay.com', ]
process_email_s... | 33.347826 | 108 | 0.6206 |
e8e0897e2e524a80febf19c38f01d47776234bc8 | 11,347 | py | Python | bcbio/workflow/template.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | 1 | 2015-04-08T17:43:39.000Z | 2015-04-08T17:43:39.000Z | bcbio/workflow/template.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | bcbio/workflow/template.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | """Create bcbio_sample.yaml files from standard templates and lists of input files.
Provides an automated way to generate a full set of analysis files from an input
YAML template. Default templates are provided for common approaches which can be tweaked
as needed.
"""
import collections
import contextlib
import copy
i... | 39.536585 | 110 | 0.627126 |
e8e08d291c43d1cf679b229f72bef28570a68076 | 8,497 | py | Python | Logistic Regression/Logistic_reg_Spambase.py | prasad-madhale/machine-learning | bb611f809c16e1425136052e215ca83bd1148652 | [
"MIT"
] | null | null | null | Logistic Regression/Logistic_reg_Spambase.py | prasad-madhale/machine-learning | bb611f809c16e1425136052e215ca83bd1148652 | [
"MIT"
] | null | null | null | Logistic Regression/Logistic_reg_Spambase.py | prasad-madhale/machine-learning | bb611f809c16e1425136052e215ca83bd1148652 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 1 01:07:37 2019
@author: prasad
"""
import numpy as np
import pandas as pd
import math
import matplotlib.pyplot as plt
from sklearn import metrics
def get_data(column_names):
'''
Args
column_names: names of the features in datase... | 28.609428 | 114 | 0.626456 |
e8e0a01fa9de6682c0252265ae2c105d16d78ec2 | 10,031 | py | Python | docs/conf.py | dymaxionlabs/unetseg | 4130e373e7d054ff1d3df1aa28c5d104e1bc18cb | [
"Apache-2.0"
] | 12 | 2021-05-19T20:27:17.000Z | 2022-02-17T10:12:01.000Z | docs/conf.py | dymaxionlabs/unetseg | 4130e373e7d054ff1d3df1aa28c5d104e1bc18cb | [
"Apache-2.0"
] | 12 | 2021-06-25T22:44:16.000Z | 2022-03-07T16:54:52.000Z | docs/conf.py | dymaxionlabs/unetseg | 4130e373e7d054ff1d3df1aa28c5d104e1bc18cb | [
"Apache-2.0"
] | 6 | 2021-04-29T18:28:30.000Z | 2022-03-31T14:30:55.000Z | # This file is execfile()d with the current directory set to its containing dir.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
#
# All configuration values have a default; values that are comme... | 33.105611 | 83 | 0.696341 |
e8e0b4aec92a53025bd715a55291970a87633c9a | 1,461 | py | Python | appengine/isolate/appengine_config.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2017-10-30T15:08:10.000Z | 2017-10-30T15:08:10.000Z | appengine/isolate/appengine_config.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | null | null | null | appengine/isolate/appengine_config.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2020-07-05T19:54:40.000Z | 2020-07-05T19:54:40.000Z | # Copyright 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Configures includes (components.auth).
https://developers.google.com/appengine/docs/python/tools/appengineconfig
"""
import os
components_a... | 31.085106 | 76 | 0.694045 |
e8e0b7aeec30208d970bf76c7ac978240d5b5fcc | 2,055 | py | Python | solve_inpainting.py | TheoNguyen611/glowIP | 6629b1f62f7d12a57c17194baec7ce85f99753c7 | [
"MIT"
] | 10 | 2020-03-08T03:59:52.000Z | 2021-11-17T02:55:59.000Z | solve_inpainting.py | TheoNguyen611/glowIP | 6629b1f62f7d12a57c17194baec7ce85f99753c7 | [
"MIT"
] | 3 | 2019-10-20T04:05:24.000Z | 2021-06-04T01:39:53.000Z | solve_inpainting.py | TheoNguyen611/glowIP | 6629b1f62f7d12a57c17194baec7ce85f99753c7 | [
"MIT"
] | 11 | 2019-08-22T01:31:07.000Z | 2022-02-06T15:20:18.000Z | import argparse
from solvers.inpainter import solveInpainting
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='solve inpainting')
parser.add_argument('-prior',type=str,help='choose with prior to use glow, dcgan', default='glow')
parser.add_argument('-experiment', type=str, help='t... | 70.862069 | 155 | 0.725547 |
e8e0c51994b73dbf9dddea26fec42457a498b24f | 1,316 | py | Python | python/app/thirdparty/dirsearch/lib/utils/timer.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 351 | 2020-02-26T05:23:26.000Z | 2022-03-26T12:39:19.000Z | python/app/thirdparty/dirsearch/lib/utils/timer.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 15 | 2020-03-26T07:31:49.000Z | 2022-03-09T02:12:17.000Z | python/app/thirdparty/dirsearch/lib/utils/timer.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 99 | 2020-02-28T07:30:46.000Z | 2022-03-16T16:41:09.000Z | # -*- coding: utf-8 -*-
# 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 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope... | 27.416667 | 71 | 0.645137 |
e8e0f60242290c2f0f258e7fd4fb186e3d114852 | 716 | py | Python | tests/utils.py | fajpunk/ansible-merge-vars | c387c27717fd6e6920423801c8e175c73406ecb7 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | fajpunk/ansible-merge-vars | c387c27717fd6e6920423801c8e175c73406ecb7 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | fajpunk/ansible-merge-vars | c387c27717fd6e6920423801c8e175c73406ecb7 | [
"Apache-2.0"
] | null | null | null | """
Helpers for example and property-based tests
"""
from ansible.template import Templar
from ansible.parsing.dataloader import DataLoader
import mock
from merge_vars import ActionModule as MV
def make_and_run_plugin(task_args, task_vars):
"""
Build and run an instance of the action plugin configured with... | 23.096774 | 77 | 0.701117 |
e8e12ed1e5fb986cdce904a31b3f08c07cc77bbc | 6,387 | py | Python | GearBot/Util/Translator.py | mrkirby153/GearBot | a61d936c12e906c7bcfaa840a585ee25ffc06138 | [
"MIT"
] | null | null | null | GearBot/Util/Translator.py | mrkirby153/GearBot | a61d936c12e906c7bcfaa840a585ee25ffc06138 | [
"MIT"
] | null | null | null | GearBot/Util/Translator.py | mrkirby153/GearBot | a61d936c12e906c7bcfaa840a585ee25ffc06138 | [
"MIT"
] | null | null | null | import asyncio
import hashlib
import json
import threading
from ruamel.yaml import YAML
yaml = YAML()
import urllib.parse
import requests
from parsimonious import ParseError, VisitationError
from pyseeyou import format
from Util import Configuration, GearbotLogging, Emoji, Utils
LANGS = dict()
LANG_NAMES = dict(en... | 42.298013 | 248 | 0.662126 |
e8e14f7728395949441ec612e064f190146de76e | 15,312 | py | Python | test/test_onnx_converter.py | knarflin/CrypTen | 6a06dc8cd52200f40a9fc520be0066bd0dea6b14 | [
"MIT"
] | 1 | 2019-12-06T06:08:40.000Z | 2019-12-06T06:08:40.000Z | test/test_onnx_converter.py | knarflin/CrypTen | 6a06dc8cd52200f40a9fc520be0066bd0dea6b14 | [
"MIT"
] | 10 | 2021-02-03T16:45:53.000Z | 2021-04-07T16:24:17.000Z | test/test_onnx_converter.py | knarflin/CrypTen | 6a06dc8cd52200f40a9fc520be0066bd0dea6b14 | [
"MIT"
] | 1 | 2021-02-10T06:15:02.000Z | 2021-02-10T06:15:02.000Z | #!/usr/bin/env python3
# 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 collections
import io
import logging
import os
import unittest
from test.multiprocess_test_case import (
Mu... | 36.113208 | 88 | 0.576607 |
e8e153c52464363564fcf84fb00ab2ade24a7037 | 4,665 | py | Python | gaphor/misc/xmlwriter.py | MarianelaSena/gaphor | f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324 | [
"Apache-2.0"
] | null | null | null | gaphor/misc/xmlwriter.py | MarianelaSena/gaphor | f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324 | [
"Apache-2.0"
] | null | null | null | gaphor/misc/xmlwriter.py | MarianelaSena/gaphor | f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324 | [
"Apache-2.0"
] | null | null | null | import sys
import xml.sax.handler
from xml.sax.saxutils import escape, quoteattr
# See whether the xmlcharrefreplace error handler is
# supported
try:
from codecs import xmlcharrefreplace_errors
_error_handling = "xmlcharrefreplace"
del xmlcharrefreplace_errors
except ImportError:
_error_handling = "s... | 32.622378 | 75 | 0.596356 |
e8e15b9281709c9f108b0c41ca6720777cefada2 | 419 | py | Python | seasounds/cli.py | MidoriR/seasounds | 1ebb55860b6b39f2f5c34f24aa397a7d63f9b601 | [
"MIT"
] | null | null | null | seasounds/cli.py | MidoriR/seasounds | 1ebb55860b6b39f2f5c34f24aa397a7d63f9b601 | [
"MIT"
] | null | null | null | seasounds/cli.py | MidoriR/seasounds | 1ebb55860b6b39f2f5c34f24aa397a7d63f9b601 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Console script for seasounds."""
import sys
import click
@click.command()
def main(args=None):
"""Console script for seasounds."""
click.echo("Replace this message by putting your code into "
"seasounds.cli.main")
click.echo("See click documentation at http://cli... | 22.052632 | 68 | 0.642005 |
e8e185441ca4662914ddcd35bf7c8ea8c6e912ea | 438 | py | Python | repl.py | polydojo/polydojo | 11a70dcdfec1189a39e12401c6e61c8bf77d8c27 | [
"BSD-3-Clause"
] | null | null | null | repl.py | polydojo/polydojo | 11a70dcdfec1189a39e12401c6e61c8bf77d8c27 | [
"BSD-3-Clause"
] | null | null | null | repl.py | polydojo/polydojo | 11a70dcdfec1189a39e12401c6e61c8bf77d8c27 | [
"BSD-3-Clause"
] | null | null | null | # std:
import os;
import sys;
# pip-ext:
import waitress;
import dotenv;
# pip-int:
# n/a
# loc:
# DELAYED
assert len(sys.argv) == 2;
envFilename = sys.argv[1];
for (key, value) in dotenv.dotenv_values(envFilename).items():
if key not in os.environ:
os.environ[key] = value;
# loc:
from constants import... | 15.642857 | 62 | 0.712329 |
e8e18dfe9b4ec267ac41e93fe9a3bda4bc1b9900 | 4,052 | py | Python | alipay/aop/api/request/AlipayCommerceIotVoicemodelCustomvoiceSendRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/request/AlipayCommerceIotVoicemodelCustomvoiceSendRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/request/AlipayCommerceIotVoicemodelCustomvoiceSendRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCommerceIotVoicemodelCustomvoiceSendModel import AlipayCommerceIotVoicemodelCustomvoiceSendModel
class AlipayCommerceIotVoicem... | 27.944828 | 148 | 0.65153 |
e8e19ac1adf2e8a07677547a366f28d27b6bc064 | 13,224 | py | Python | intersight/models/hyperflex_hxdp_version.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/hyperflex_hxdp_version.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/hyperflex_hxdp_version.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-255
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class HyperflexHxdpVersion(object):
"""
NOTE: This ... | 28.747826 | 233 | 0.605944 |
e8e1a713a154be4657d79781a4b929e0ee348d32 | 17,369 | py | Python | soco/events.py | gitter-badger/SoCo | 65977466057748ea522a6d8b7f2a649091485a07 | [
"MIT"
] | 28 | 2020-04-24T17:32:33.000Z | 2021-12-28T23:45:16.000Z | soco/events.py | gitter-badger/SoCo | 65977466057748ea522a6d8b7f2a649091485a07 | [
"MIT"
] | 11 | 2020-04-28T15:57:39.000Z | 2022-01-07T09:32:10.000Z | soco/events.py | gitter-badger/SoCo | 65977466057748ea522a6d8b7f2a649091485a07 | [
"MIT"
] | 3 | 2021-08-10T11:56:14.000Z | 2022-01-13T04:19:03.000Z | # -*- coding: utf-8 -*-
# pylint: disable=not-context-manager
# NOTE: The pylint not-content-manager warning is disabled pending the fix of
# a bug in pylint. See https://github.com/PyCQA/pylint/issues/782
# Disable while we have Python 2.x compatability
# pylint: disable=useless-object-inheritance
"""Classes to ha... | 38.856823 | 79 | 0.618631 |
e8e1c8415251ea9145204fd1faad8a52500d3eb0 | 191 | py | Python | setup.py | mettadatalabs1/oncoscape-datapipeline | 9c3209ba88831c3f1c598182c719ce45b4724fff | [
"Apache-2.0"
] | null | null | null | setup.py | mettadatalabs1/oncoscape-datapipeline | 9c3209ba88831c3f1c598182c719ce45b4724fff | [
"Apache-2.0"
] | null | null | null | setup.py | mettadatalabs1/oncoscape-datapipeline | 9c3209ba88831c3f1c598182c719ce45b4724fff | [
"Apache-2.0"
] | null | null | null |
# just listing list of requires. will create a set up using these
"""
airflow>=1.7.1,
numpy>=1.1,
requests>=2.1,
pymongo==3.4.0,
pytest>=3.0,
simplejson==3.10.0,
tox==2.6
PyYAML==3.12
"""
| 12.733333 | 65 | 0.649215 |
e8e1df10941399e36b6cf7bbd2e54d10fd0deec4 | 1,846 | py | Python | antarest/core/cache/business/redis_cache.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 2 | 2021-11-15T09:26:33.000Z | 2022-02-24T09:53:54.000Z | antarest/core/cache/business/redis_cache.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 542 | 2021-01-11T13:23:47.000Z | 2022-03-31T15:38:10.000Z | antarest/core/cache/business/redis_cache.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 1 | 2020-10-01T12:18:15.000Z | 2020-10-01T12:18:15.000Z | import json
import logging
from typing import Optional, List
from pydantic import BaseModel
from redis.client import Redis
from antarest.core.custom_types import JSON
from antarest.core.interfaces.cache import ICache
logger = logging.getLogger(__name__)
class RedisCacheElement(BaseModel):
duration: int
dat... | 30.262295 | 74 | 0.622427 |
e8e20b2b35e94828e3e1b34931e24fdb77f79e4d | 1,971 | py | Python | nicos_mlz/kws1/setups/sample.py | mlz-ictrl/nicos | a6de0bc194ba42e3dc04a033713b41b5499ba8e1 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/kws1/setups/sample.py | ess-dmsc/nicos | 755d61d403ff7123f804c45fc80c7ff4d762993b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/kws1/setups/sample.py | mlz-ictrl/nicos | a6de0bc194ba42e3dc04a033713b41b5499ba8e1 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | # -*- coding: utf-8 -*-
description = 'Sample aperture and table'
group = 'lowlevel'
display_order = 35
excludes = ['virtual_sample']
tango_base = 'tango://phys.kws1.frm2:10000/kws1/'
devices = dict(
ap_sam_x0 = device('nicos.devices.entangle.Motor',
description = 'sample aperture horz. blade 0',
... | 30.796875 | 57 | 0.585997 |
e8e210ac8d9fe5a024beb92205f80cd6c1902ceb | 749 | py | Python | example/example/urls.py | netzkolchose/django-fast-update | 13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4 | [
"MIT"
] | 1 | 2021-08-03T12:42:37.000Z | 2021-08-03T12:42:37.000Z | example/example/urls.py | netzkolchose/django-fast-update | 13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4 | [
"MIT"
] | 4 | 2021-07-27T18:22:35.000Z | 2021-08-06T21:55:39.000Z | example/example/urls.py | netzkolchose/django-fast-update | 13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4 | [
"MIT"
] | 1 | 2021-11-16T02:07:27.000Z | 2021-11-16T02:07:27.000Z | """example URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 34.045455 | 77 | 0.708945 |
e8e211ee1595babda2063e4c30ee5dc31cffd929 | 551 | py | Python | dp/pizza-with-3n-slices.py | yangtau/algorithms-practice | 58974b6e661101686eeab357dcf6821cf7b51064 | [
"MIT"
] | 1 | 2019-03-24T17:57:34.000Z | 2019-03-24T17:57:34.000Z | dp/pizza-with-3n-slices.py | yangtau/algorithms-practice | 58974b6e661101686eeab357dcf6821cf7b51064 | [
"MIT"
] | null | null | null | dp/pizza-with-3n-slices.py | yangtau/algorithms-practice | 58974b6e661101686eeab357dcf6821cf7b51064 | [
"MIT"
] | null | null | null | from functools import lru_cache
'''
https://leetcode.com/problems/pizza-with-3n-slices/submissions/
'''
class Solution:
def maxSizeSlices(self, slices: [int]) -> int:
m = len(slices)
@lru_cache(None)
def dp(i, j, k):
print(i, j, k)
if j-i < 2*k-1 or k == 0:
... | 27.55 | 70 | 0.493648 |
e8e238d828dd0c1706d04c98fb8c175f6c875e37 | 58,279 | py | Python | sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_02_01/aio/operations/_managed_clusters_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_02_01/aio/operations/_managed_clusters_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_02_01/aio/operations/_managed_clusters_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | 45.566067 | 598 | 0.67297 |
e8e29deb45c14df7ed03ef63042ba78a42ec76fd | 2,263 | py | Python | sleap/info/labels.py | preeti98/sleap | 203c3a03c0c54f8dab242611d9a8d24595e98081 | [
"BSD-3-Clause-Clear"
] | null | null | null | sleap/info/labels.py | preeti98/sleap | 203c3a03c0c54f8dab242611d9a8d24595e98081 | [
"BSD-3-Clause-Clear"
] | null | null | null | sleap/info/labels.py | preeti98/sleap | 203c3a03c0c54f8dab242611d9a8d24595e98081 | [
"BSD-3-Clause-Clear"
] | null | null | null | """
Command line utility which prints data about labels file.
"""
import os
from sleap.io.dataset import Labels
def main():
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("data_path", help="Path to labels json file")
parser.add_argument("--verbose", default=False, action="sto... | 29.38961 | 118 | 0.577552 |
e8e2a758f71f4c57c3df9807a572d15c14d0b755 | 4,058 | py | Python | alipay/aop/api/request/AlipayBossFncAntbudgetGroupbudgetBatchqueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/request/AlipayBossFncAntbudgetGroupbudgetBatchqueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/request/AlipayBossFncAntbudgetGroupbudgetBatchqueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayBossFncAntbudgetGroupbudgetBatchqueryModel import AlipayBossFncAntbudgetGroupbudgetBatchqueryModel
class AlipayBossFncAntbudge... | 27.986207 | 148 | 0.652045 |
e8e2bd03f1622547df2b8858062264ffb5c3ae6f | 254 | py | Python | wordlist/blueprints/__init__.py | robsonpiere/word-list | 4bf5be40042daa5d1b7d59a2c1da67af9349ec9e | [
"MIT"
] | null | null | null | wordlist/blueprints/__init__.py | robsonpiere/word-list | 4bf5be40042daa5d1b7d59a2c1da67af9349ec9e | [
"MIT"
] | 3 | 2020-10-25T12:26:57.000Z | 2020-10-26T00:04:53.000Z | wordlist/blueprints/__init__.py | robsonpiere/word-list | 4bf5be40042daa5d1b7d59a2c1da67af9349ec9e | [
"MIT"
] | null | null | null | from flask import Flask
from .api import api_blueprint
from .docs import SWAGGER_URL, SWAGGERUI_BLUEPRINT
def init_blueprints(app: Flask):
app.register_blueprint(api_blueprint)
app.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix=SWAGGER_URL)
| 31.75 | 71 | 0.830709 |
e8e2d1149055c422b92469b39472fff6f669e8e3 | 23,645 | py | Python | scripts/Accessory2.py | rhong3/GYN-HE-IHC | fa5ae2a8becd8afeea5dba16b16f953f0e367fe1 | [
"MIT"
] | null | null | null | scripts/Accessory2.py | rhong3/GYN-HE-IHC | fa5ae2a8becd8afeea5dba16b16f953f0e367fe1 | [
"MIT"
] | null | null | null | scripts/Accessory2.py | rhong3/GYN-HE-IHC | fa5ae2a8becd8afeea5dba16b16f953f0e367fe1 | [
"MIT"
] | null | null | null | """
Calculation of metrics including accuracy, AUROC, and PRC, outputing CAM of tiles, and output
last layer activation for tSNE 2.0
Created on 04/26/2019
@author: RH
"""
import matplotlib
matplotlib.use('Agg')
import os
import numpy as np
import sklearn.metrics
from scipy import interp
import matplotlib.pyplot as p... | 42.450628 | 124 | 0.561979 |
e8e2f2b5d8d7e25899aa659b7192133978796287 | 184,489 | py | Python | languages/ne.py | nursix/DRKCM | 09328289ff721c416494398aa751ff99906327cb | [
"MIT"
] | 3 | 2022-01-26T08:07:54.000Z | 2022-03-21T21:53:52.000Z | languages/ne.py | nursix/eden-asp | e49f46cb6488918f8d5a163dcd5a900cd686978c | [
"MIT"
] | null | null | null | languages/ne.py | nursix/eden-asp | e49f46cb6488918f8d5a163dcd5a900cd686978c | [
"MIT"
] | null | null | null | {
"A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "यो क्षेत्रको भौगोलिक क्षेत्रलाई देखाउने स्थान । यो एउटा स्थान बनावटबाटको ठाउँ, वा 'समूह स्थान', वा स्थान जस्को क्षेत्रको निम्ति... | 57.064337 | 477 | 0.599385 |
e8e3108da8823e1a3b639e975bfda31eed1cac11 | 13,765 | py | Python | source/utils_multi_div.py | mcgoohanch/Elbria | fa984bef5de17a00b44c86f3b6f5a359c57b7ca5 | [
"MIT"
] | 5 | 2020-12-05T12:10:34.000Z | 2021-03-04T19:01:25.000Z | source/utils_multi_div.py | mcgoohanch/Elbria | fa984bef5de17a00b44c86f3b6f5a359c57b7ca5 | [
"MIT"
] | null | null | null | source/utils_multi_div.py | mcgoohanch/Elbria | fa984bef5de17a00b44c86f3b6f5a359c57b7ca5 | [
"MIT"
] | 3 | 2020-10-10T10:56:18.000Z | 2020-12-04T20:54:39.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | 43.15047 | 114 | 0.578133 |
e8e318001972934c7d2154bc14744823a3ba09f9 | 30,057 | py | Python | tensorflow/contrib/framework/python/ops/variables.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/contrib/framework/python/ops/variables.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/contrib/framework/python/ops/variables.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 26 | 2017-04-12T16:25:44.000Z | 2018-10-30T10:10:15.000Z | # Copyright 2015 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.01601 | 90 | 0.713012 |
e8e32f6073b6870f6cc259c64aceb52a73ee64b9 | 163 | py | Python | src/pypacmensl/fsp_solver/__init__.py | voduchuy/pypacmensl | 59b845f4a6891a5c7105696053655437fa181356 | [
"MIT"
] | null | null | null | src/pypacmensl/fsp_solver/__init__.py | voduchuy/pypacmensl | 59b845f4a6891a5c7105696053655437fa181356 | [
"MIT"
] | null | null | null | src/pypacmensl/fsp_solver/__init__.py | voduchuy/pypacmensl | 59b845f4a6891a5c7105696053655437fa181356 | [
"MIT"
] | null | null | null | # distutils : language = c++
from pypacmensl.fsp_solver.distribution import DiscreteDistribution
from pypacmensl.fsp_solver.multi_sinks import FspSolverMultiSinks | 40.75 | 67 | 0.858896 |
e8e337855a9605a99ec479497307b8d134c6c115 | 5,578 | py | Python | stpm/src/dataset.py | kingcong/MindSpore_Code | afe6ef9cada6c98f601754197db84ee1c21dbc9d | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | stpm/src/dataset.py | kingcong/MindSpore_Code | afe6ef9cada6c98f601754197db84ee1c21dbc9d | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | stpm/src/dataset.py | kingcong/MindSpore_Code | afe6ef9cada6c98f601754197db84ee1c21dbc9d | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2022 Huawei Technologies Co., Ltd
#
# 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... | 38.468966 | 114 | 0.626748 |
e8e35e798fd424371c37fe273fd763930826faef | 2,584 | py | Python | src/bot.py | Egor4ik325/rss-notifier | 4b5b6c1d9b405484cd922bd541783783bec75727 | [
"MIT"
] | 2 | 2022-02-27T04:24:16.000Z | 2022-03-04T22:42:11.000Z | src/bot.py | Egor4ik325/rss-notifier | 4b5b6c1d9b405484cd922bd541783783bec75727 | [
"MIT"
] | 1 | 2022-03-01T09:08:23.000Z | 2022-03-01T09:08:23.000Z | src/bot.py | Egor4ik325/rss-notifier | 4b5b6c1d9b405484cd922bd541783783bec75727 | [
"MIT"
] | null | null | null | import json
import logging
from json import JSONDecodeError
from threading import Thread
from time import sleep
import sentry_sdk
import toml
from telegram import Update
from telegram.bot import Bot
from telegram.ext import CallbackContext, CommandHandler, Dispatcher, Updater
from telegram.parsemode import ParseMode
... | 26.639175 | 87 | 0.674149 |
e8e35ebf586bdd5367e1092f27db49f43806c7f1 | 2,331 | py | Python | aops-utils/aops_utils/validate.py | seandong37tt4qu/jeszhengq | 32b3737ab45e89e8c5b71cdce871cefd2c938fa8 | [
"MulanPSL-1.0"
] | null | null | null | aops-utils/aops_utils/validate.py | seandong37tt4qu/jeszhengq | 32b3737ab45e89e8c5b71cdce871cefd2c938fa8 | [
"MulanPSL-1.0"
] | null | null | null | aops-utils/aops_utils/validate.py | seandong37tt4qu/jeszhengq | 32b3737ab45e89e8c5b71cdce871cefd2c938fa8 | [
"MulanPSL-1.0"
] | null | null | null | #!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a c... | 24.797872 | 98 | 0.584299 |
e8e36c050055a052faeca34eda01e5d986592602 | 2,070 | py | Python | venv/Lib/site-packages/pyrogram/raw/base/contact_status.py | D1ne2021/jjhhhjj | a090da30983b3ef276dfe4cef2ded4526f36002a | [
"MIT"
] | 5 | 2021-09-11T22:01:15.000Z | 2022-03-16T21:33:42.000Z | backend/pyrogram/raw/base/contact_status.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | null | null | null | backend/pyrogram/raw/base/contact_status.py | iamatlasss/social-media-analyzer | 429d1d2bbd8bfce80c50c5f8edda58f87ace668d | [
"Apache-2.0"
] | 3 | 2022-01-18T11:06:22.000Z | 2022-02-26T13:39:28.000Z | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | 35.689655 | 92 | 0.634783 |
e8e3d82584d8ea06b6f565488bd18e77abb111cf | 2,795 | py | Python | scripts/practice/FB/ImplementTrie.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | null | null | null | scripts/practice/FB/ImplementTrie.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | 8 | 2020-09-05T16:04:31.000Z | 2022-02-27T09:57:51.000Z | scripts/practice/FB/ImplementTrie.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | null | null | null | """
Implement Trie
A trie (pronounced as "try") or prefix tree is a tree data structure used
to efficiently store and retrieve keys in a dataset of strings.
There are various applications of this data structure, such as autocomplete and spellchecker.
Implement the Trie class:
Trie() Initializes the trie object.
... | 27.401961 | 93 | 0.598211 |
e8e3dd9b551322983174398632dfd011a7e3e295 | 2,550 | py | Python | pipeline/test_draft_acls.py | streamsets/datacollector-tests-external | 6f255b5e7496deeef333b57a5e9df4911ba3ef00 | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | pipeline/test_draft_acls.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | pipeline/test_draft_acls.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2019 StreamSets 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 writi... | 34.459459 | 81 | 0.764706 |
e8e3e0cba2226735e5308a0542b51c11909814e0 | 7,263 | py | Python | contrib/node/src/python/pants/contrib/node/tasks/node_task.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | contrib/node/src/python/pants/contrib/node/tasks/node_task.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | contrib/node/src/python/pants/contrib/node/tasks/node_task.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
from pants.base.workunit import WorkUnit, WorkUnitLabel
from pants.task.task import Task
... | 44.286585 | 99 | 0.746248 |
e8e3e191c79cdbbac0683db02d0256bd9c167f26 | 6,748 | py | Python | make.py | geozeke/bcsim | cda4c7b458f434033b001c06bc53bc544d703256 | [
"MIT"
] | null | null | null | make.py | geozeke/bcsim | cda4c7b458f434033b001c06bc53bc544d703256 | [
"MIT"
] | 6 | 2021-12-23T15:49:33.000Z | 2022-01-21T15:47:28.000Z | make.py | geozeke/bcsim | cda4c7b458f434033b001c06bc53bc544d703256 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Author: Peter Nardi
# Date: 01/12/22
# License: (see MIT License at the end of this file)
# Title: make
# This script performs various utility operations on a pypi development
# project -- similar to a makefile.
# Imports
import argparse
import os
import subprocess as sp
import textwrap
im... | 26.054054 | 79 | 0.546977 |
e8e3f9945a3efc1c02574a5d2d72ff232b4a8ba2 | 179 | py | Python | src/coalescenceml/artifacts/data_artifact.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 1 | 2022-03-22T17:48:55.000Z | 2022-03-22T17:48:55.000Z | src/coalescenceml/artifacts/data_artifact.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 2 | 2022-02-18T18:48:12.000Z | 2022-02-19T18:14:38.000Z | src/coalescenceml/artifacts/data_artifact.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 1 | 2022-02-10T02:52:22.000Z | 2022-02-10T02:52:22.000Z | from coalescenceml.artifacts.base_artifact import BaseArtifact
class DataArtifact(BaseArtifact):
"""Class for Coalescence Data Artifacts."""
TYPE_NAME = "DataArtifact"
| 22.375 | 62 | 0.776536 |
e8e3fdae4c2c7f0ef381de185231d8b0b44dbcf7 | 1,019 | py | Python | accounts/signals.py | WillieIlus/jobscorner | ed3734468ea0e88a306a1d29bc876562e940f4fb | [
"bzip2-1.0.6"
] | 2 | 2020-04-12T13:18:35.000Z | 2021-04-02T04:18:17.000Z | accounts/signals.py | WillieIlus/jobscorner | ed3734468ea0e88a306a1d29bc876562e940f4fb | [
"bzip2-1.0.6"
] | 3 | 2020-02-11T23:58:53.000Z | 2020-09-06T18:46:17.000Z | accounts/signals.py | WillieIlus/jobscorner | ed3734468ea0e88a306a1d29bc876562e940f4fb | [
"bzip2-1.0.6"
] | 1 | 2020-08-17T08:29:41.000Z | 2020-08-17T08:29:41.000Z | from urllib import request
import actstream
from actstream import action
from django.db.models.signals import post_save
# from django.http import request
from accounts.models import User
from company.models import Company
from job.models import Job
from reviews.models import Review
def my_handler(sender, instance, ... | 29.114286 | 80 | 0.748773 |
e8e4050a8ad6bf04af0c7ebe0212ac143291fb57 | 1,195 | py | Python | alphatwirl_interface/table.py | benkrikler/alphatwirl-interface | ce9b3775b099fbcc55402be2df0e4f2e477d8e6d | [
"BSD-3-Clause"
] | null | null | null | alphatwirl_interface/table.py | benkrikler/alphatwirl-interface | ce9b3775b099fbcc55402be2df0e4f2e477d8e6d | [
"BSD-3-Clause"
] | 4 | 2018-03-05T13:48:26.000Z | 2018-03-19T12:28:56.000Z | alphatwirl_interface/table.py | benkrikler/alphatwirl-interface | ce9b3775b099fbcc55402be2df0e4f2e477d8e6d | [
"BSD-3-Clause"
] | 1 | 2018-02-15T17:10:23.000Z | 2018-02-15T17:10:23.000Z | import collections
class Table(collections.MutableMapping):
# mapping of this class to alphatwirl
mapping = {
'input_values': 'valAttrNames',
'keyAttrNames': 'valAttrNames',
'output_columns': 'valOutColumnNames',
'indices': 'valIndices',
'bins': 'binnings',
}
... | 26.555556 | 77 | 0.610042 |
e8e4093b6e413854014efa86898e9b144a0900f6 | 1,176 | py | Python | commands/ping.py | AliasPedroKarim/Kagura | 892ee3daab31f0e55e7c810413617e89d5ce1317 | [
"MIT"
] | null | null | null | commands/ping.py | AliasPedroKarim/Kagura | 892ee3daab31f0e55e7c810413617e89d5ce1317 | [
"MIT"
] | null | null | null | commands/ping.py | AliasPedroKarim/Kagura | 892ee3daab31f0e55e7c810413617e89d5ce1317 | [
"MIT"
] | null | null | null | # -*- encoding:utf-8 -*-
import datetime
import discord
from discord.ext import commands
class Ping(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name='ping', description='This command displays information about the bot connection time.', aliases=['pg'])
async def pin... | 32.666667 | 154 | 0.654762 |
e8e4281812f75e4c7ff0bbfa806f6a526b7067b0 | 2,583 | py | Python | tools/gen_doc.py | szha/tensorflow-onnx | 25f8b0c78074784fcc33c1d068911f8363581e6c | [
"MIT"
] | null | null | null | tools/gen_doc.py | szha/tensorflow-onnx | 25f8b0c78074784fcc33c1d068911f8363581e6c | [
"MIT"
] | null | null | null | tools/gen_doc.py | szha/tensorflow-onnx | 25f8b0c78074784fcc33c1d068911f8363581e6c | [
"MIT"
] | null | null | null | """
tool to list tensorflow op to onnx op mapping in markdown
"""
import argparse
import inspect
import re
from collections import OrderedDict
from tf2onnx.handler import tf_op
parser = argparse.ArgumentParser()
parser.add_argument('filename',
type=str,
help="Path to the docu... | 36.380282 | 90 | 0.59156 |
e8e4385327a58d6e6904473e0e0c73e936eaa7a5 | 672 | py | Python | 993.py | gdmanandamohon/leetcode | a691a4e37ee1fdad69c710e3710c5faf8b0a7d76 | [
"MIT"
] | null | null | null | 993.py | gdmanandamohon/leetcode | a691a4e37ee1fdad69c710e3710c5faf8b0a7d76 | [
"MIT"
] | null | null | null | 993.py | gdmanandamohon/leetcode | a691a4e37ee1fdad69c710e3710c5faf8b0a7d76 | [
"MIT"
] | null | null | null | '''
@author: l4zyc0d3r
People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt
'''
class Solution:
def isCousins(self, root: TreeNode, x: int, y: int) -> bool:
self.a = None
self.b = None
def dfs (r, l, p):
if not r:
return
... | 29.217391 | 86 | 0.480655 |
e8e4507982732a9927e82bf504a7209de5b6c2fc | 19,033 | py | Python | genSpline/genSpline.py | mlaprise/genSpline | cedfb45bd6afde47042dd71292549493f27cd136 | [
"MIT"
] | 1 | 2019-08-29T20:55:00.000Z | 2019-08-29T20:55:00.000Z | genSpline/genSpline.py | mlaprise/genSpline | cedfb45bd6afde47042dd71292549493f27cd136 | [
"MIT"
] | null | null | null | genSpline/genSpline.py | mlaprise/genSpline | cedfb45bd6afde47042dd71292549493f27cd136 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Spline-based genetic optimization class
Author: Martin Laprise
Universite Laval
martin.laprise.1@ulaval.ca
The MIT License
Copyright (c) 2009 Martin Laprise
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwar... | 29.326656 | 142 | 0.697736 |
e8e45172a5ff648161123f66e9ad613c66a2d8ac | 4,275 | py | Python | Week 4 - Classification/Preprocessing-EDA.py | lvolkmann/CS-490-Deep-Learning | 48e637e6892d2e87999ed87b994be659cb30f1e2 | [
"MIT"
] | null | null | null | Week 4 - Classification/Preprocessing-EDA.py | lvolkmann/CS-490-Deep-Learning | 48e637e6892d2e87999ed87b994be659cb30f1e2 | [
"MIT"
] | null | null | null | Week 4 - Classification/Preprocessing-EDA.py | lvolkmann/CS-490-Deep-Learning | 48e637e6892d2e87999ed87b994be659cb30f1e2 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import random as rnd
# visualization
import seaborn as sns
import matplotlib.pyplot as plt
# machine learning
from sklearn.linear_model import LogisticRegression, RidgeClassifierCV
from sklearn.svm import SVC, LinearSVC
from sklearn.ensemble import (RandomForestClassifier, Grad... | 37.831858 | 128 | 0.721637 |
e8e46c13df9a108a7c09f894d49017ed4324702f | 5,407 | py | Python | game.py | abkumarggn/python-learning-1 | df45396cd14f5762053728760953b3806d0069b6 | [
"Apache-2.0"
] | null | null | null | game.py | abkumarggn/python-learning-1 | df45396cd14f5762053728760953b3806d0069b6 | [
"Apache-2.0"
] | null | null | null | game.py | abkumarggn/python-learning-1 | df45396cd14f5762053728760953b3806d0069b6 | [
"Apache-2.0"
] | null | null | null | from turtle import Turtle, Screen
import random
import time
SIZE = 20
class Square:
def __init__(self, x, y):
self.x = x
self.y = y
def drawself(self, turtle):
""" draw a black box at its coordinates, leaving a small gap between cubes """
turtle.goto(self.x - SIZE // 2 - 1, s... | 34.883871 | 116 | 0.595524 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.