hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 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 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4fbf075eb619be044717172093dd9b2c09291e8 | 1,579 | py | Python | dbms/tests/integration/helpers/test_tools.py | qqiangwu/ClickHouse | 4700d375d8238ca3d7f39a1d0001f173272bbf3a | [
"Apache-2.0"
] | 4 | 2020-04-27T13:03:31.000Z | 2020-10-15T09:51:13.000Z | dbms/tests/integration/helpers/test_tools.py | RCcode/ClickHouse | ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2 | [
"Apache-2.0"
] | 8 | 2018-11-21T09:45:25.000Z | 2018-11-21T13:53:40.000Z | dbms/tests/integration/helpers/test_tools.py | RCcode/ClickHouse | ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2 | [
"Apache-2.0"
] | 2 | 2018-12-17T13:08:09.000Z | 2022-01-26T08:50:20.000Z | import difflib
import time
| 38.512195 | 159 | 0.645978 |
c4fd54fcbdcdf92be66e00442b256526af744c5c | 1,799 | py | Python | nlp/name_extractor.py | Karthik-Venkatesh/ATOM | d369d8436b71b3af0f5810200c0927d0097f4330 | [
"Apache-2.0"
] | 1 | 2022-02-23T14:54:12.000Z | 2022-02-23T14:54:12.000Z | nlp/name_extractor.py | Karthik-Venkatesh/atom | d369d8436b71b3af0f5810200c0927d0097f4330 | [
"Apache-2.0"
] | 21 | 2018-12-27T04:47:17.000Z | 2019-01-16T06:00:53.000Z | nlp/name_extractor.py | Karthik-Venkatesh/ATOM | d369d8436b71b3af0f5810200c0927d0097f4330 | [
"Apache-2.0"
] | null | null | null | #
# name_extractor.py
# ATOM
#
# Created by Karthik V.
# Updated copyright on 16/1/19 5:54 PM.
#
# Copyright 2019 Karthik Venkatesh. All rights reserved.
#
# Reference
# Question link: https://stackoverflow.com/questions/20290870/improving-the-extraction-of-human-names-with-nltk
# Answer link: https://stackoverf... | 27.676923 | 111 | 0.581434 |
c4fdb48e5cd50b1b15ab2ef20eb3414a3c36712f | 1,402 | py | Python | tfx/dsl/components/base/node_registry.py | johnPertoft/tfx | c6335684a54651adbcbe50aa52918b9b9948326e | [
"Apache-2.0"
] | null | null | null | tfx/dsl/components/base/node_registry.py | johnPertoft/tfx | c6335684a54651adbcbe50aa52918b9b9948326e | [
"Apache-2.0"
] | null | null | null | tfx/dsl/components/base/node_registry.py | johnPertoft/tfx | c6335684a54651adbcbe50aa52918b9b9948326e | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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 required by applicable law or a... | 30.478261 | 74 | 0.745364 |
c4ffd1431af57438c9e464015a0b8f4bd42bff19 | 20,283 | py | Python | tests/unit/api/test_api.py | Mattlk13/datadogpy | 80c8711359e45b2091c230f726da201616d5e4c9 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/api/test_api.py | Mattlk13/datadogpy | 80c8711359e45b2091c230f726da201616d5e4c9 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/api/test_api.py | Mattlk13/datadogpy | 80c8711359e45b2091c230f726da201616d5e4c9 | [
"BSD-3-Clause"
] | null | null | null | # stdlib
from copy import deepcopy
from functools import wraps
import os
import tempfile
from time import time
# 3p
import mock
# datadog
from datadog import initialize, api, util
from datadog.api import (
Distribution,
Metric,
ServiceCheck
)
from datadog.api.exceptions import ApiError, ApiNotInitialized
... | 35.521891 | 117 | 0.598087 |
f201ebc36fc057f334b79aad55bb830784413968 | 1,420 | py | Python | keras_train.py | jmeisele/mlflow_demo | 4414e9251fda0ab8c59e8bc776d04ef1f9fede10 | [
"MIT"
] | null | null | null | keras_train.py | jmeisele/mlflow_demo | 4414e9251fda0ab8c59e8bc776d04ef1f9fede10 | [
"MIT"
] | null | null | null | keras_train.py | jmeisele/mlflow_demo | 4414e9251fda0ab8c59e8bc776d04ef1f9fede10 | [
"MIT"
] | null | null | null | """
Author: Jason Eisele
Email: jeisele@shipt.com
Date: August 1, 2020
"""
import argparse
import keras
import tensorflow as tf
import cloudpickle
parser = argparse.ArgumentParser(
description='Train a Keras feed-forward network for MNIST classification')
parser.add_argument('--batch-size', '-b', type=int, default=1... | 34.634146 | 79 | 0.738028 |
f203d39ef60e2f5a44270e70b2db9a749876f722 | 5,788 | py | Python | 4USCityEmotion/get_flickr_photos.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | 3 | 2021-07-15T15:58:52.000Z | 2021-07-16T13:22:47.000Z | 4USCityEmotion/get_flickr_photos.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | null | null | null | 4USCityEmotion/get_flickr_photos.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | 4 | 2017-08-04T12:41:06.000Z | 2019-01-31T14:55:10.000Z | # coding:utf-8
# version:python3.5.1
# author:kyh
import flickrapi
import datetime
import psycopg2
import time
# flickr
#
def db_connect():
try:
connection = psycopg2.connect(database="PlaceEmotion", user="postgres",
password="postgres", host="127.0.0.1", port="54... | 35.292683 | 118 | 0.604008 |
f204e6f22d0c9b479799a0897aaa41e742212566 | 5,767 | py | Python | Lianjia/LianjiaErShouFang.py | Detailscool/YHSpider | ab1276c9167f70fed3ccff17e02fb62d51e4a469 | [
"MIT"
] | 1 | 2017-05-04T08:10:34.000Z | 2017-05-04T08:10:34.000Z | Lianjia/LianjiaErShouFang.py | Detailscool/YHSpider | ab1276c9167f70fed3ccff17e02fb62d51e4a469 | [
"MIT"
] | null | null | null | Lianjia/LianjiaErShouFang.py | Detailscool/YHSpider | ab1276c9167f70fed3ccff17e02fb62d51e4a469 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import requests
from bs4 import BeautifulSoup
import sys
import csv
reload(sys)
sys.setdefaultencoding('utf-8')
if __name__ == '__main__':
url_main = 'http://gz.lianjia.com'
f = open(u'.csv', 'wb')
f.write(unicode('\xEF\xBB\xBF', 'utf-8')) #
writer = csv.writer(f)
wri... | 50.147826 | 157 | 0.521935 |
f20509812fdd5299a74f5fce1649f221aa576b8e | 1,165 | py | Python | test/test_main.py | bluesheeptoken/PyGolf | 421117d1fa1c197b475112e5655fbf7693d475a2 | [
"MIT"
] | 7 | 2020-04-25T19:54:01.000Z | 2022-03-10T21:54:51.000Z | test/test_main.py | bluesheeptoken/PyGolf | 421117d1fa1c197b475112e5655fbf7693d475a2 | [
"MIT"
] | 1 | 2020-04-28T08:13:12.000Z | 2020-04-28T08:19:00.000Z | test/test_main.py | bluesheeptoken/PyGolf | 421117d1fa1c197b475112e5655fbf7693d475a2 | [
"MIT"
] | 1 | 2020-04-25T20:35:57.000Z | 2020-04-25T20:35:57.000Z | import argparse
import tempfile
import unittest
from pygolf.__main__ import get_arguments_warning, read_input_code, shorten
| 33.285714 | 80 | 0.661803 |
f205b580166717e0b19f49119e8357e063a3858d | 545 | py | Python | Session_01/koch.py | UP-RS-ESP/GEW-DAP05-2018 | 04ca0327b4a4ea5b6869e3e985672639651771e8 | [
"MIT"
] | 2 | 2018-11-16T12:44:33.000Z | 2021-12-20T06:34:22.000Z | Session_01/koch.py | UP-RS-ESP/GEW-DAP05-2018 | 04ca0327b4a4ea5b6869e3e985672639651771e8 | [
"MIT"
] | null | null | null | Session_01/koch.py | UP-RS-ESP/GEW-DAP05-2018 | 04ca0327b4a4ea5b6869e3e985672639651771e8 | [
"MIT"
] | null | null | null | import sys
import numpy as np
from matplotlib import pyplot as pl
xr = [1,]
yr = [1,]
koch(xr[0], yr[0], 1, 0, 5)
pl.plot(xr, yr, 'r.-', lw = 0.5)
ax = pl.gca()
ax.set_aspect('equal')
pl.grid()
pl.show()
| 20.185185 | 64 | 0.519266 |
f206882462f0a5905d5255d1814f64fdc9855a48 | 2,995 | py | Python | core/views.py | xuhang57/atmosphere | f53fea2a74ee89ccc8852906799b1d9a7e9178b7 | [
"BSD-3-Clause"
] | null | null | null | core/views.py | xuhang57/atmosphere | f53fea2a74ee89ccc8852906799b1d9a7e9178b7 | [
"BSD-3-Clause"
] | null | null | null | core/views.py | xuhang57/atmosphere | f53fea2a74ee89ccc8852906799b1d9a7e9178b7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Core views to provide custom operations
"""
import uuid
from datetime import datetime
from django.http import HttpResponseRedirect
from threepio import logger
from atmosphere import settings
from django_cyverse_auth.decorators import atmo_login_required
from django_cyverse_auth.models imp... | 39.933333 | 89 | 0.642738 |
f207285596d5e7ef8253ffc7d5fe5e11b93828ce | 1,714 | py | Python | indico/util/serializer.py | jgrigera/indico | b5538f2755bc38a02313d079bac831ee3dfb44ab | [
"MIT"
] | 1 | 2018-11-12T21:29:26.000Z | 2018-11-12T21:29:26.000Z | indico/util/serializer.py | jgrigera/indico | b5538f2755bc38a02313d079bac831ee3dfb44ab | [
"MIT"
] | 9 | 2020-09-08T09:25:57.000Z | 2022-01-13T02:59:05.000Z | indico/util/serializer.py | jgrigera/indico | b5538f2755bc38a02313d079bac831ee3dfb44ab | [
"MIT"
] | 3 | 2020-07-20T09:09:44.000Z | 2020-10-19T00:29:49.000Z | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from enum import Enum
from indico.core.errors import IndicoError
from indico.core.logger import Logger
| 35.708333 | 92 | 0.524504 |
f2082b7572a268703ff36753a9f8e86b4e7ec828 | 814 | py | Python | step/lambdas/get_image_status.py | mbeacom/cloudendure-python | b854b1b2ea47c18a8ef03908abcdd653b77684ac | [
"MIT"
] | 7 | 2019-06-28T23:30:47.000Z | 2019-08-23T16:57:12.000Z | step/lambdas/get_image_status.py | mbeacom/cloudendure-python | b854b1b2ea47c18a8ef03908abcdd653b77684ac | [
"MIT"
] | 27 | 2019-06-14T20:39:10.000Z | 2019-08-30T17:20:40.000Z | step/lambdas/get_image_status.py | mbeacom/cloudendure-python | b854b1b2ea47c18a8ef03908abcdd653b77684ac | [
"MIT"
] | 2 | 2019-08-23T16:50:20.000Z | 2019-08-30T18:22:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Check the state of an AWS AMI."""
from __future__ import annotations
import json
from typing import Any, Dict
import boto3
print("Loading function get_image_status")
ec2_client = boto3.client("ec2")
# {
# "instance_id": "i-identifier",
# "kms_id": "KMS ID",
# ... | 24.666667 | 86 | 0.683047 |
f2095b25bea143e9b82c7fbfb9522beac7c96f69 | 344 | py | Python | starfish/types.py | kne42/starfish | 78b348c9756f367221dcca725cfa5107e5520b33 | [
"MIT"
] | null | null | null | starfish/types.py | kne42/starfish | 78b348c9756f367221dcca725cfa5107e5520b33 | [
"MIT"
] | null | null | null | starfish/types.py | kne42/starfish | 78b348c9756f367221dcca725cfa5107e5520b33 | [
"MIT"
] | null | null | null | # constants
from starfish.core.types import ( # noqa: F401
Axes,
Clip,
Coordinates,
CORE_DEPENDENCIES,
Features,
LOG,
OverlapStrategy,
PHYSICAL_COORDINATE_DIMENSION,
PhysicalCoordinateTypes,
STARFISH_EXTRAS_KEY,
TransformType,
)
from starfish.core.types import CoordinateValu... | 21.5 | 69 | 0.715116 |
f209fda8f0cfe43f72b6eb3a30447ef4d992f64f | 6,764 | py | Python | python/alertsActor/rules/dangerKey.py | sdss/twistedAlertsActor | 857588f6da39b7716263f8bd8e3f1be8bb4ce0f7 | [
"BSD-3-Clause"
] | null | null | null | python/alertsActor/rules/dangerKey.py | sdss/twistedAlertsActor | 857588f6da39b7716263f8bd8e3f1be8bb4ce0f7 | [
"BSD-3-Clause"
] | null | null | null | python/alertsActor/rules/dangerKey.py | sdss/twistedAlertsActor | 857588f6da39b7716263f8bd8e3f1be8bb4ce0f7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
#
# dangerKey.py
#
# Created by John Donor on 10 April 2019
import re, time
from yaml import YAMLObject
from alertsActor import log
| 29.797357 | 95 | 0.563128 |
f20a036a9143b93d4e11c864b212d417d5d17645 | 22,382 | py | Python | jsonsubschema/old/_jsonschema.py | lukeenterprise/json-subschema | f273d62ed1517f5a83a57abf148232ed927a771a | [
"Apache-2.0"
] | 1 | 2019-08-01T15:28:26.000Z | 2019-08-01T15:28:26.000Z | jsonsubschema/old/_jsonschema.py | lukeenterprise/json-subschema | f273d62ed1517f5a83a57abf148232ed927a771a | [
"Apache-2.0"
] | null | null | null | jsonsubschema/old/_jsonschema.py | lukeenterprise/json-subschema | f273d62ed1517f5a83a57abf148232ed927a771a | [
"Apache-2.0"
] | null | null | null | '''
Created on June 24, 2019
@author: Andrew Habib
'''
import copy
import json
import sys
import math
import numbers
import intervals as I
from abc import ABC, abstractmethod
from greenery.lego import parse
from intervals import inf as infinity
import config
import _constants
from canoncalization import canoncalize_... | 33.556222 | 148 | 0.524752 |
f20a9c6a0a0f41308a9f256ea4ec3d2997af5cd5 | 6,388 | py | Python | eruditio/shared_apps/django_community/utils.py | genghisu/eruditio | 5f8f3b682ac28fd3f464e7a993c3988c1a49eb02 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | eruditio/shared_apps/django_community/utils.py | genghisu/eruditio | 5f8f3b682ac28fd3f464e7a993c3988c1a49eb02 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | eruditio/shared_apps/django_community/utils.py | genghisu/eruditio | 5f8f3b682ac28fd3f464e7a993c3988c1a49eb02 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | """
Various utilities functions used by django_community and
other apps to perform authentication related tasks.
"""
import hashlib, re
import django.forms as forms
from django.core.exceptions import ObjectDoesNotExist
from django.forms import ValidationError
import django.http as http
from django.conf import setting... | 32.262626 | 109 | 0.681277 |
f20ad7ae21fec4c62f9a2ffdfad7aa4815cb96a9 | 1,909 | py | Python | launch/test_motion.launch.py | RoboJackets/robocup-software | ae2920b8b98213e625d0565dd67005e7a8595fac | [
"Apache-2.0"
] | 200 | 2015-01-26T01:45:34.000Z | 2022-03-19T13:05:31.000Z | launch/test_motion.launch.py | RoboJackets/robocup-software | ae2920b8b98213e625d0565dd67005e7a8595fac | [
"Apache-2.0"
] | 1,254 | 2015-01-03T01:57:35.000Z | 2022-03-16T06:32:21.000Z | launch/test_motion.launch.py | RoboJackets/robocup-software | ae2920b8b98213e625d0565dd67005e7a8595fac | [
"Apache-2.0"
] | 206 | 2015-01-21T02:03:18.000Z | 2022-02-01T17:57:46.000Z | import os
from pathlib import Path
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription, SetEnvironmentVariable, Shutdown
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch_ros.a... | 36.711538 | 85 | 0.677842 |
f20b33fbb1accee4936549d7e876ab92878ab6ba | 1,856 | py | Python | demo.py | nikp29/eDensiometer | e85a861c2faefb1911cf7b9cf10ee180afe85f13 | [
"FSFAP"
] | 2 | 2020-03-23T20:08:21.000Z | 2021-06-06T21:15:40.000Z | demo.py | nikp29/eDensiometer | e85a861c2faefb1911cf7b9cf10ee180afe85f13 | [
"FSFAP"
] | 1 | 2022-02-12T03:46:54.000Z | 2022-02-12T03:46:54.000Z | demo.py | nikp29/eDensiometer | e85a861c2faefb1911cf7b9cf10ee180afe85f13 | [
"FSFAP"
] | null | null | null | # A Rapid Proof of Concept for the eDensiometer
# Copyright 2018, Nikhil Patel. All Rights Reserved. Created with contributions from Billy Pierce.
# Imports
from PIL import Image
from pprint import pprint
import numpy as np
import time as time_
start = millis()
# Constants
# BRIGHT_CUTOFF = 175
RED_CUTOFF = 200
GREE... | 30.933333 | 124 | 0.696659 |
f20c450c0dce05186c845a952d08081cb7846ab5 | 1,833 | py | Python | chart/script/provenance_ycsb_thruput.py | RUAN0007/nusthesis | 932367195171da2d1c82870cc5b96c0e760b4ca8 | [
"MIT"
] | null | null | null | chart/script/provenance_ycsb_thruput.py | RUAN0007/nusthesis | 932367195171da2d1c82870cc5b96c0e760b4ca8 | [
"MIT"
] | null | null | null | chart/script/provenance_ycsb_thruput.py | RUAN0007/nusthesis | 932367195171da2d1c82870cc5b96c0e760b4ca8 | [
"MIT"
] | null | null | null | import sys
import os
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
import matplotlib as mpl
import config
if __name__ == "__main__":
sys.exit(main()) | 30.55 | 135 | 0.651391 |
f20d43c8664dcca2ef65c9dd2e88a696d94a4ea3 | 3,157 | py | Python | core/handlers/filters_chat.py | Smashulica/nebula8 | 010df165e3cc61e0154d20310fa972482ec0e7be | [
"Apache-2.0"
] | null | null | null | core/handlers/filters_chat.py | Smashulica/nebula8 | 010df165e3cc61e0154d20310fa972482ec0e7be | [
"Apache-2.0"
] | null | null | null | core/handlers/filters_chat.py | Smashulica/nebula8 | 010df165e3cc61e0154d20310fa972482ec0e7be | [
"Apache-2.0"
] | null | null | null | from core.utilities.functions import delete_message
from core.utilities.message import message
from core.database.repository.group import GroupRepository
"""
This function allows you to terminate the type
of file that contains a message on telegram and filter it
""" | 44.464789 | 105 | 0.631929 |
f20eb1617a65a8d8e7031e114930d28913b16142 | 4,287 | py | Python | mipsplusplus/parser.py | alexsocha/mipsplusplus | ee7f87605682fe0b219f754069bf11da80c0312a | [
"MIT"
] | 1 | 2021-01-04T09:35:50.000Z | 2021-01-04T09:35:50.000Z | mipsplusplus/parser.py | alexsocha/mipsplusplus | ee7f87605682fe0b219f754069bf11da80c0312a | [
"MIT"
] | null | null | null | mipsplusplus/parser.py | alexsocha/mipsplusplus | ee7f87605682fe0b219f754069bf11da80c0312a | [
"MIT"
] | null | null | null | from mipsplusplus import utils
from mipsplusplus import operations
OPERATOR_ORDERING = [
['addressof', 'not', 'neg'],
['*', '/', '%'],
['+', '-'],
['<<', '>>', '<<<', '>>>'],
['<', '>', '<=', '>='],
['==', '!='],
['and', 'or', 'xor', 'nor'],
['as']
]
EXPR_OPERATORS = set([op for ops in OPERATOR_ORDERI... | 32.233083 | 106 | 0.585258 |
f20f24fc882a6bfe17d609d7a92bcf0cfdf1dd3a | 464 | py | Python | learn-to-code-with-python/10-Lists-Iteration/iterate-in-reverse-with-the-reversed-function.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/10-Lists-Iteration/iterate-in-reverse-with-the-reversed-function.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/10-Lists-Iteration/iterate-in-reverse-with-the-reversed-function.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | the_simpsons = ["Homer", "Marge", "Bart", "Lisa", "Maggie"]
print(the_simpsons[::-1])
for char in the_simpsons[::-1]:
print(f"{char} has a total of {len(char)} characters.")
print(reversed(the_simpsons))
print(type(reversed(the_simpsons))) # generator object
for char in reversed(the_simpsons): # laduje za kazda... | 33.142857 | 135 | 0.709052 |
f20f3b3cdb095ea301a3efa6ea5c8c922e9be8db | 640 | py | Python | ghiaseddin/scripts/download-dataset-lfw10.py | yassersouri/ghiaseddin | a575f2375729e7586ae7c682f8505dbb7619e622 | [
"MIT"
] | 44 | 2016-09-07T11:04:10.000Z | 2022-03-14T07:38:17.000Z | ghiaseddin/scripts/download-dataset-lfw10.py | yassersouri/ghiaseddin | a575f2375729e7586ae7c682f8505dbb7619e622 | [
"MIT"
] | 1 | 2016-09-06T23:33:54.000Z | 2016-09-06T23:33:54.000Z | ghiaseddin/scripts/download-dataset-lfw10.py | yassersouri/ghiaseddin | a575f2375729e7586ae7c682f8505dbb7619e622 | [
"MIT"
] | 13 | 2016-09-17T15:31:06.000Z | 2021-05-22T07:28:46.000Z | from subprocess import call
import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
import settings
data_zip_path = os.path.join(settings.lfw10_root, "LFW10.zip")
data_url = "http://cvit.iiit.ac.in/images/Projects/relativeParts/LFW10.zip"
# Downloading the data zip ... | 33.684211 | 85 | 0.714063 |
f210443ae14873f6d0154e4872180eb345a39221 | 9,874 | py | Python | hops/dist_allreduce.py | Limmen/hops-util-py | 99263edcd052dbb554f0cde944fbdc748dc95f06 | [
"Apache-2.0"
] | null | null | null | hops/dist_allreduce.py | Limmen/hops-util-py | 99263edcd052dbb554f0cde944fbdc748dc95f06 | [
"Apache-2.0"
] | null | null | null | hops/dist_allreduce.py | Limmen/hops-util-py | 99263edcd052dbb554f0cde944fbdc748dc95f06 | [
"Apache-2.0"
] | null | null | null | """
Utility functions to retrieve information about available services and setting up security for the Hops platform.
These utils facilitates development by hiding complexity for programs interacting with Hops services.
"""
import pydoop.hdfs
import subprocess
import os
import stat
import sys
import threading
import t... | 36.435424 | 295 | 0.594896 |
f21153cc2731f7ee87405f5ca13164bed51c9656 | 713 | py | Python | api/migrations/versions/e956985ff509_.py | SnSation/Pokemart | c91dcd155ae3abe343781b3d26211d2463d41ff3 | [
"MIT"
] | null | null | null | api/migrations/versions/e956985ff509_.py | SnSation/Pokemart | c91dcd155ae3abe343781b3d26211d2463d41ff3 | [
"MIT"
] | null | null | null | api/migrations/versions/e956985ff509_.py | SnSation/Pokemart | c91dcd155ae3abe343781b3d26211d2463d41ff3 | [
"MIT"
] | null | null | null | """empty message
Revision ID: e956985ff509
Revises: 4b471bbc0004
Create Date: 2020-12-02 22:47:08.536332
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e956985ff509'
down_revision = '4b471bbc0004'
branch_labels = None
depends_on = None
| 24.586207 | 123 | 0.71108 |
f2125363bb0906c29b0070780b0f856daaf2354c | 926 | py | Python | tests/features/steps/ahk_steps.py | epth/ahk | 3a09830b10bf93d6dabda5f055665024570ff6c8 | [
"MIT"
] | 1 | 2021-02-16T14:16:58.000Z | 2021-02-16T14:16:58.000Z | tests/features/steps/ahk_steps.py | epth/ahk | 3a09830b10bf93d6dabda5f055665024570ff6c8 | [
"MIT"
] | null | null | null | tests/features/steps/ahk_steps.py | epth/ahk | 3a09830b10bf93d6dabda5f055665024570ff6c8 | [
"MIT"
] | null | null | null | from behave.matchers import RegexMatcher
from ahk import AHK
from behave_classy import step_impl_base
Base = step_impl_base()
AHKSteps().register() | 29.870968 | 86 | 0.596112 |
f2160ab0d4f01e332dfeaf82b6dd74a2d6cbaae5 | 1,703 | py | Python | snakewm/apps/games/pong/bat.py | sigmaister/snakeware_os | 4a821c2a0dc7762c4ab35053286f5e23125386d0 | [
"MIT"
] | 1,621 | 2020-05-29T06:49:27.000Z | 2022-03-15T08:20:08.000Z | snakewm/apps/games/pong/bat.py | sigmaister/snakeware_os | 4a821c2a0dc7762c4ab35053286f5e23125386d0 | [
"MIT"
] | 119 | 2020-05-29T17:10:45.000Z | 2021-12-19T23:43:17.000Z | snakewm/apps/games/pong/bat.py | sigmaister/snakeware_os | 4a821c2a0dc7762c4ab35053286f5e23125386d0 | [
"MIT"
] | 125 | 2020-05-29T07:43:22.000Z | 2022-03-18T22:13:08.000Z | import pygame
from pygame.locals import *
| 28.383333 | 88 | 0.570757 |
f21845fdd846667effc17afb28dfd50fe6d29229 | 3,527 | py | Python | mimic/model/rackspace_image_store.py | ksheedlo/mimic | c84b6a0d336e8a37a685b5d71537aec5e44d9a8f | [
"Apache-2.0"
] | 141 | 2015-01-07T19:28:31.000Z | 2022-02-11T06:04:13.000Z | mimic/model/rackspace_image_store.py | ksheedlo/mimic | c84b6a0d336e8a37a685b5d71537aec5e44d9a8f | [
"Apache-2.0"
] | 575 | 2015-01-04T20:23:08.000Z | 2019-10-04T08:20:04.000Z | mimic/model/rackspace_image_store.py | ksheedlo/mimic | c84b6a0d336e8a37a685b5d71537aec5e44d9a8f | [
"Apache-2.0"
] | 63 | 2015-01-09T20:39:41.000Z | 2020-07-06T14:20:56.000Z | """
An image store representing Rackspace specific images
"""
from __future__ import absolute_import, division, unicode_literals
import attr
from six import iteritems
from mimic.model.rackspace_images import (RackspaceWindowsImage,
RackspaceCentOSPVImage, RackspaceCentOSPVHMIma... | 48.986111 | 99 | 0.588602 |
f218482525c6f07411100d66a18c105ea0a2d6c8 | 926 | py | Python | samples/noxfile_config.py | ikuleshov/python-analytics-admin | f3d6fa78292878e7470806be0c116c6ca589eec5 | [
"Apache-2.0"
] | null | null | null | samples/noxfile_config.py | ikuleshov/python-analytics-admin | f3d6fa78292878e7470806be0c116c6ca589eec5 | [
"Apache-2.0"
] | null | null | null | samples/noxfile_config.py | ikuleshov/python-analytics-admin | f3d6fa78292878e7470806be0c116c6ca589eec5 | [
"Apache-2.0"
] | null | null | null | TEST_CONFIG_OVERRIDE = {
# An envvar key for determining the project id to use. Change it
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
# build specific Cloud project. You can also use your own string
# to use your own Cloud project.
"gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_... | 46.3 | 70 | 0.712743 |
f219a6a5d2eba5cb99ad3a1f9f919f6e65e608c6 | 77 | py | Python | settings/channel_archiver/NIH.pressure_downstream_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | settings/channel_archiver/NIH.pressure_downstream_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | settings/channel_archiver/NIH.pressure_downstream_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | filename = '//mx340hs/data/anfinrud_1903/Archive/NIH.pressure_downstream.txt' | 77 | 77 | 0.831169 |
f219b4c368dddd54cf8c1f93b4bad8299a4df851 | 17,181 | py | Python | sfepy/terms/terms_navier_stokes.py | vondrejc/sfepy | 8e427af699c4b2858eb096510057abb3ae7e28e8 | [
"BSD-3-Clause"
] | null | null | null | sfepy/terms/terms_navier_stokes.py | vondrejc/sfepy | 8e427af699c4b2858eb096510057abb3ae7e28e8 | [
"BSD-3-Clause"
] | null | null | null | sfepy/terms/terms_navier_stokes.py | vondrejc/sfepy | 8e427af699c4b2858eb096510057abb3ae7e28e8 | [
"BSD-3-Clause"
] | 2 | 2019-01-14T03:12:34.000Z | 2021-05-25T11:44:50.000Z | import numpy as nm
from sfepy.linalg import dot_sequences
from sfepy.terms.terms import Term, terms
from sfepy.terms.terms_diffusion import LaplaceTerm
| 28.635 | 79 | 0.521623 |
f21a51bd13a2f891e2303ec8e105009193f93ecb | 422 | py | Python | saleor/unurshop/crawler/migrations/0013_auto_20210921_0452.py | nlkhagva/saleor | 0d75807d08ac49afcc904733724ac870e8359c10 | [
"CC-BY-4.0"
] | null | null | null | saleor/unurshop/crawler/migrations/0013_auto_20210921_0452.py | nlkhagva/saleor | 0d75807d08ac49afcc904733724ac870e8359c10 | [
"CC-BY-4.0"
] | 1 | 2022-02-15T03:31:12.000Z | 2022-02-15T03:31:12.000Z | saleor/unurshop/crawler/migrations/0013_auto_20210921_0452.py | nlkhagva/ushop | abf637eb6f7224e2d65d62d72a0c15139c64bb39 | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 3.1.1 on 2021-09-21 04:52
from django.db import migrations, models
| 22.210526 | 80 | 0.618483 |
f21a701d87cd77a1cae7afc78f9f781cba559ff4 | 2,713 | py | Python | src/cli/examples/oss-fuzz-target.py | gdhuper/onefuzz | 6aca32ed9c8318aa81887eeaacff03c406c0e98c | [
"MIT"
] | 1 | 2020-10-27T08:05:57.000Z | 2020-10-27T08:05:57.000Z | src/cli/examples/oss-fuzz-target.py | gdhuper/onefuzz | 6aca32ed9c8318aa81887eeaacff03c406c0e98c | [
"MIT"
] | 1 | 2021-02-15T00:38:32.000Z | 2021-02-15T00:38:32.000Z | src/cli/examples/oss-fuzz-target.py | gdhuper/onefuzz | 6aca32ed9c8318aa81887eeaacff03c406c0e98c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import logging
import os
import sys
import tempfile
from subprocess import PIPE, CalledProcessError, check_call # nosec
from typing import List, Optional
from onefuzztypes.models import NotificationConfig
from onefuzzty... | 29.48913 | 87 | 0.557317 |
f21c03303c0e86780d94fa0daa72a6287b00df39 | 3,721 | py | Python | stubs/workspaces.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/workspaces.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/workspaces.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
| 56.378788 | 228 | 0.685837 |
f21e91816629e68e43e8282cecfca50b522c0148 | 5,718 | py | Python | hystrix/command.py | grofers/hystrix-py | 9876b39980bc8dcb334fcb0ee8c15d6949112203 | [
"Apache-2.0"
] | 93 | 2015-01-29T10:10:49.000Z | 2021-12-05T08:45:04.000Z | hystrix/command.py | grofers/hystrix-py | 9876b39980bc8dcb334fcb0ee8c15d6949112203 | [
"Apache-2.0"
] | 1 | 2018-01-30T00:32:37.000Z | 2018-01-30T00:32:37.000Z | hystrix/command.py | grofers/hystrix-py | 9876b39980bc8dcb334fcb0ee8c15d6949112203 | [
"Apache-2.0"
] | 20 | 2015-09-18T02:04:24.000Z | 2020-03-25T10:31:07.000Z | """
Used to wrap code that will execute potentially risky functionality
(typically meaning a service call over the network) with fault and latency
tolerance, statistics and performance metrics capture, circuit breaker and
bulkhead functionality.
"""
from __future__ import absolute_import
import logging
import six
fro... | 38.635135 | 79 | 0.64603 |
f21f243b3b146cb9c4185deea25898637e21bb4c | 12,079 | py | Python | glue/viewers/table/qt/data_viewer.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 550 | 2015-01-08T13:51:06.000Z | 2022-03-31T11:54:47.000Z | glue/viewers/table/qt/data_viewer.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 1,362 | 2015-01-03T19:15:52.000Z | 2022-03-30T13:23:11.000Z | glue/viewers/table/qt/data_viewer.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 142 | 2015-01-08T13:08:00.000Z | 2022-03-18T13:25:57.000Z | import os
from functools import lru_cache
import numpy as np
from qtpy.QtCore import Qt
from qtpy import QtCore, QtGui, QtWidgets
from matplotlib.colors import ColorConverter
from glue.utils.qt import get_qapp
from glue.config import viewer_tool
from glue.core import BaseData, Data
from glue.utils.qt import load_ui
... | 35.215743 | 92 | 0.637304 |
f21fb8769d6f7f12c55b09713729ab92490aa213 | 1,781 | py | Python | azure-servicefabric/azure/servicefabric/models/restore_partition_description.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-servicefabric/azure/servicefabric/models/restore_partition_description.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-servicefabric/azure/servicefabric/models/restore_partition_description.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2018-10-16T13:08:23.000Z | 2018-10-16T13:08:23.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 37.893617 | 87 | 0.638967 |
f2222e7a4067aa3e2de0115ba3b31e143ef1fc7b | 5,438 | py | Python | psq/queue.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 210 | 2015-07-29T16:50:01.000Z | 2022-03-02T15:24:52.000Z | psq/queue.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 60 | 2015-12-03T23:15:57.000Z | 2021-01-21T09:25:42.000Z | psq/queue.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 47 | 2015-12-21T06:09:36.000Z | 2021-09-04T13:20:21.000Z | # Copyright 2015 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, ... | 34.417722 | 79 | 0.658698 |
f22234640a48085e7e67ec5bc155d8fda74563b6 | 2,453 | py | Python | mac/google-cloud-sdk/lib/surface/access_context_manager/levels/update.py | bopopescu/cndw | ee432efef88a4351b355f3d6d5350defc7f4246b | [
"Apache-2.0"
] | null | null | null | mac/google-cloud-sdk/lib/surface/access_context_manager/levels/update.py | bopopescu/cndw | ee432efef88a4351b355f3d6d5350defc7f4246b | [
"Apache-2.0"
] | 4 | 2020-07-21T12:51:46.000Z | 2022-01-22T10:29:25.000Z | mac/google-cloud-sdk/lib/surface/access_context_manager/levels/update.py | bopopescu/cndw | ee432efef88a4351b355f3d6d5350defc7f4246b | [
"Apache-2.0"
] | 1 | 2020-07-25T18:17:57.000Z | 2020-07-25T18:17:57.000Z | # -*- coding: utf-8 -*- #
# Copyright 2018 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... | 32.706667 | 76 | 0.772523 |
f2235aff62f649f7be3dedbcbc6809a427c1c2ca | 775 | py | Python | convert.py | lordcodingsound/autodj | dc43c8a8bd07006d02a5a7d5d2ae74d2eb9bf685 | [
"MIT"
] | null | null | null | convert.py | lordcodingsound/autodj | dc43c8a8bd07006d02a5a7d5d2ae74d2eb9bf685 | [
"MIT"
] | null | null | null | convert.py | lordcodingsound/autodj | dc43c8a8bd07006d02a5a7d5d2ae74d2eb9bf685 | [
"MIT"
] | null | null | null | import wave
import struct
import subprocess
import os
import opusenc
import base64
import zlib
import sys
tmp = sys.argv[1] + ".wav"
subprocess.Popen(["ffmpeg", "-i", sys.argv[1], "-ar", "48000", "-ac", "2", "-y", tmp], stdout=subprocess.PIPE, stderr=subprocess.PIPE).wait()
f = open(sys.argv[2], "wb")
e ... | 20.394737 | 142 | 0.616774 |
f2243459193cb30ca1ec87a1cec0d50174acfaea | 170 | py | Python | polliwog/tri/__init__.py | lace/polliwog | 7744ce171738e4739e391fcff4f4689d9f177196 | [
"BSD-2-Clause"
] | 18 | 2019-05-03T02:08:12.000Z | 2022-03-24T11:49:59.000Z | polliwog/tri/__init__.py | lace/polliwog | 7744ce171738e4739e391fcff4f4689d9f177196 | [
"BSD-2-Clause"
] | 76 | 2019-04-03T15:24:01.000Z | 2022-03-01T14:07:04.000Z | polliwog/tri/__init__.py | lace/polliwog | 7744ce171738e4739e391fcff4f4689d9f177196 | [
"BSD-2-Clause"
] | 3 | 2019-11-04T16:22:07.000Z | 2022-03-09T08:50:52.000Z | from . import functions as _functions
from .functions import * # noqa: F401,F403
from .quad_faces import quads_to_tris
__all__ = _functions.__all__ + ["quads_to_tris"]
| 28.333333 | 48 | 0.776471 |
f224a1293fdc148ee28c3d5f42f88c489aa0c477 | 10,961 | py | Python | packages/pegasus-api/src/Pegasus/api/replica_catalog.py | spxiwh/pegasus | ebe3e205ae34c1721c540465712da557979c7437 | [
"Apache-2.0"
] | null | null | null | packages/pegasus-api/src/Pegasus/api/replica_catalog.py | spxiwh/pegasus | ebe3e205ae34c1721c540465712da557979c7437 | [
"Apache-2.0"
] | null | null | null | packages/pegasus-api/src/Pegasus/api/replica_catalog.py | spxiwh/pegasus | ebe3e205ae34c1721c540465712da557979c7437 | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
from pathlib import Path
from typing import Dict, Optional, Set, Union
from ._utils import _chained
from .errors import DuplicateError
from .mixins import MetadataMixin
from .writable import Writable, _filter_out_nones
PEGASUS_VERSION = "5.0"
__all__ = ["File", "ReplicaCatalog"]
... | 35.244373 | 186 | 0.560624 |
f225855419247f9e8048a49c1d9c71b3af0a2082 | 4,513 | py | Python | words.py | ashutoshkrris/Terminal-Wordle | edafc99a6adb12824495e53dd0c5be6dc89b8839 | [
"MIT"
] | null | null | null | words.py | ashutoshkrris/Terminal-Wordle | edafc99a6adb12824495e53dd0c5be6dc89b8839 | [
"MIT"
] | null | null | null | words.py | ashutoshkrris/Terminal-Wordle | edafc99a6adb12824495e53dd0c5be6dc89b8839 | [
"MIT"
] | null | null | null | word_list = ['ABOUT', 'ABOVE', 'ABUSE', 'ACTOR', 'ACUTE', 'ADMIT', 'ADOPT', 'ADULT', 'AFTER', 'AGAIN', 'AGENT', 'AGREE', 'AHEAD', 'ALARM', 'ALBUM', 'ALERT', 'ALIKE', 'ALIVE', 'ALLOW', 'ALONE', 'ALONG', 'ALTER', 'AMONG', 'ANGER', 'ANGLE', 'ANGRY', 'APART', 'APPLE', 'APPLY', 'ARENA', 'ARGUE', 'ARISE', 'ARRAY', 'ASIDE', '... | 2,256.5 | 4,512 | 0.555949 |
f225fb07e45aa0d878182c25737de8508c76dbb0 | 6,759 | py | Python | importanize/groups.py | xiachufang/importanize | 594e33b7827a9619c15aaacbe03b8cdf42a5c7a0 | [
"MIT"
] | null | null | null | importanize/groups.py | xiachufang/importanize | 594e33b7827a9619c15aaacbe03b8cdf42a5c7a0 | [
"MIT"
] | null | null | null | importanize/groups.py | xiachufang/importanize | 594e33b7827a9619c15aaacbe03b8cdf42a5c7a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import itertools
import operator
from collections import OrderedDict, defaultdict
from functools import reduce
import six
from .formatters import DEFAULT_FORMATTER, DEFAULT_LENGTH
from .utils import is_site_package, is_st... | 28.884615 | 80 | 0.557627 |
f22667e27e25306a81ed4197a3f3283e37b3daea | 846 | py | Python | NLP4CCB/migrations/0005_auto_20170415_2236.py | rossmechanic/know_your_nyms | 805ca845121fa93a38088f09cd0a430ddb9f95cf | [
"BSD-3-Clause"
] | 1 | 2020-02-12T13:24:15.000Z | 2020-02-12T13:24:15.000Z | NLP4CCB/migrations/0005_auto_20170415_2236.py | rossmechanic/know_your_nyms | 805ca845121fa93a38088f09cd0a430ddb9f95cf | [
"BSD-3-Clause"
] | null | null | null | NLP4CCB/migrations/0005_auto_20170415_2236.py | rossmechanic/know_your_nyms | 805ca845121fa93a38088f09cd0a430ddb9f95cf | [
"BSD-3-Clause"
] | 1 | 2017-10-25T11:24:51.000Z | 2017-10-25T11:24:51.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-15 22:36
from django.db import migrations, models
| 26.4375 | 78 | 0.582742 |
f226b3e74e0c07da106f197b5ad2bd3632fb47b8 | 2,198 | py | Python | synchCams/start_server.py | ateshkoul/synchCams | 3f73cf593e27d57b72f65d453d13cc535646e86d | [
"MIT"
] | null | null | null | synchCams/start_server.py | ateshkoul/synchCams | 3f73cf593e27d57b72f65d453d13cc535646e86d | [
"MIT"
] | null | null | null | synchCams/start_server.py | ateshkoul/synchCams | 3f73cf593e27d57b72f65d453d13cc535646e86d | [
"MIT"
] | null | null | null | import socket
import json
import pdb
import copy
# def server_read(host='',port=30):
# # host = '' # Symbolic name meaning all available interfaces
# # port = 30 # Arbitrary non-privileged port
# s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# s.bind((host, port))
# print(h... | 27.475 | 73 | 0.556415 |
f226f9e28b1182a033e88cc3340054c8eee83b4e | 2,243 | py | Python | 9.part2.py | elp2/advent_of_code_2020 | 71e12e25769aa7d5154213077ffae595ad9a4019 | [
"Apache-2.0"
] | 1 | 2021-12-02T15:19:36.000Z | 2021-12-02T15:19:36.000Z | 2020/9.part2.py | elp2/advent_of_code | 600e2db9a7d5b576937c9b39c5c6805db406f57b | [
"Apache-2.0"
] | null | null | null | 2020/9.part2.py | elp2/advent_of_code | 600e2db9a7d5b576937c9b39c5c6805db406f57b | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
CHALLENGE_DAY = "9"
REAL = open(CHALLENGE_DAY + ".txt").read()
assert len(REAL) > 1
SAMPLE = open(CHALLENGE_DAY + ".sample.txt").read()
SAMPLE_EXPECTED = 127
# SAMPLE_EXPECTED =
test_parsing(parse_lines(SAMPLE))
print("^^^^^^^^^PARSED SAMPLE SAMPLE^^^^^^^^^")
# ... | 25.202247 | 82 | 0.543914 |
f227f1a6050eb38656085af87d1b77f4623a92c4 | 3,091 | py | Python | exif_address_finder/ExifAddressFinderManager.py | jonathanlurie/ExifAddressFinder | ddb3e526040a80534f2f72246f1b9f96c9c5d0b0 | [
"MIT"
] | null | null | null | exif_address_finder/ExifAddressFinderManager.py | jonathanlurie/ExifAddressFinder | ddb3e526040a80534f2f72246f1b9f96c9c5d0b0 | [
"MIT"
] | null | null | null | exif_address_finder/ExifAddressFinderManager.py | jonathanlurie/ExifAddressFinder | ddb3e526040a80534f2f72246f1b9f96c9c5d0b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Author : Jonathan Lurie
Email : lurie.jo@gmail.com
Version : 0.1
Licence : MIT
description : The entry point to the library.
'''
import GeoToolbox
import exifread
import piexif
from IFD_KEYS_REFERENCE import *
import exifWriter
import os
| 30.60396 | 136 | 0.620835 |
1ee6c5cf51fc01113d2c8df3b5c4886a89607d63 | 1,402 | py | Python | src/anaplan_api/Model.py | jeswils-ap/anaplan-api | e08ea75828a60e96024d596b2f30184c18fa31d3 | [
"BSD-2-Clause"
] | 2 | 2021-09-23T08:49:40.000Z | 2022-03-28T08:40:02.000Z | src/anaplan_api/Model.py | jeswils-ap/anaplan-api | e08ea75828a60e96024d596b2f30184c18fa31d3 | [
"BSD-2-Clause"
] | 3 | 2021-11-06T09:58:03.000Z | 2021-11-11T14:00:40.000Z | src/anaplan_api/Model.py | jeswils-ap/anaplan-api | e08ea75828a60e96024d596b2f30184c18fa31d3 | [
"BSD-2-Clause"
] | 1 | 2022-02-13T15:59:42.000Z | 2022-02-13T15:59:42.000Z | import json
import logging
import requests
from typing import List
from requests.exceptions import HTTPError, ConnectionError, SSLError, Timeout, ConnectTimeout, ReadTimeout
from .User import User
from .ModelDetails import ModelDetails
logger = logging.getLogger(__name__)
| 32.604651 | 106 | 0.733951 |
1ee821fc6ac5eced71be163ce2b2c80f9de72828 | 1,757 | py | Python | reproduction/Summarization/BertSum/model.py | KuNyaa/fastNLP | 22f9b87c54a4eebec7352c7ff772cd24685c7186 | [
"Apache-2.0"
] | 1 | 2019-10-05T06:02:44.000Z | 2019-10-05T06:02:44.000Z | reproduction/Summarization/BertSum/model.py | awesomemachinelearning/fastNLP | 945b30bb6174751130744231aa26119bf9bb2601 | [
"Apache-2.0"
] | 1 | 2019-12-09T06:34:44.000Z | 2019-12-09T06:34:44.000Z | reproduction/Summarization/BertSum/model.py | awesomemachinelearning/fastNLP | 945b30bb6174751130744231aa26119bf9bb2601 | [
"Apache-2.0"
] | 2 | 2020-04-21T06:17:59.000Z | 2020-05-05T11:22:11.000Z | import torch
from torch import nn
from torch.nn import init
from fastNLP.modules.encoder.bert import BertModel
| 33.788462 | 122 | 0.647126 |
1ee8df8ae43bb7100b118b6ba8aa926ea9cbaa1d | 2,226 | py | Python | p4p2p/dht/constants.py | ntoll/p4p2p | 189a35ae964bef7e6db094283f3ead79c6356a6c | [
"MIT"
] | 8 | 2015-03-08T11:02:58.000Z | 2020-04-20T15:36:24.000Z | p4p2p/dht/constants.py | ntoll/p4p2p | 189a35ae964bef7e6db094283f3ead79c6356a6c | [
"MIT"
] | null | null | null | p4p2p/dht/constants.py | ntoll/p4p2p | 189a35ae964bef7e6db094283f3ead79c6356a6c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Defines constants used by P4P2P. Usually these are based upon concepts from
the Kademlia DHT and where possible naming is derived from the original
Kademlia paper as are the suggested default values.
"""
#: Represents the degree of parallelism in network calls.
ALPHA = 3
#: The maximum num... | 35.903226 | 79 | 0.737646 |
1eea6f3a21c71f86ef8549a937b8ac0d9d222692 | 600 | py | Python | turtle-crossing/car_manager.py | twbm/Git-Learning-Thingy | 7dce0d4f1329df911e1e7008800f843217a5a9a2 | [
"MIT"
] | 1 | 2022-03-20T17:00:32.000Z | 2022-03-20T17:00:32.000Z | turtle-crossing/car_manager.py | Theodor45/Projects | e311e4a3ae047d6d01d24b3b868ee05ac595f391 | [
"MIT"
] | null | null | null | turtle-crossing/car_manager.py | Theodor45/Projects | e311e4a3ae047d6d01d24b3b868ee05ac595f391 | [
"MIT"
] | null | null | null | from turtle import Turtle
import random
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
STARTING_MOVE_DISTANCE = 5
MOVE_INCREMENT = 10
| 22.222222 | 63 | 0.598333 |
1eec0296b555ebcc98cbc7b360b616946e53db82 | 941 | py | Python | manabi/apps/flashcards/permissions.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 14 | 2015-10-03T07:34:28.000Z | 2021-09-20T07:10:29.000Z | manabi/apps/flashcards/permissions.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 23 | 2019-10-25T08:47:23.000Z | 2022-01-30T02:00:45.000Z | manabi/apps/flashcards/permissions.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 7 | 2016-10-04T08:10:36.000Z | 2021-09-20T07:10:33.000Z | from django.shortcuts import get_object_or_404
from rest_framework import permissions
from manabi.apps.flashcards.models import Deck
WRITE_ACTIONS = ['create', 'update', 'partial_update', 'delete']
| 30.354839 | 75 | 0.679065 |
1eef8337b3089adedce496c555766805e7a14c76 | 365 | py | Python | Scripts/create_phone_number.py | yogeshwaran01/Mini-Projects | c1a8790079d904405d49c71d6903ca4daaa77b38 | [
"MIT"
] | 4 | 2020-09-30T17:18:13.000Z | 2021-06-11T21:02:10.000Z | Scripts/create_phone_number.py | yogeshwaran01/Mini-Projects | c1a8790079d904405d49c71d6903ca4daaa77b38 | [
"MIT"
] | null | null | null | Scripts/create_phone_number.py | yogeshwaran01/Mini-Projects | c1a8790079d904405d49c71d6903ca4daaa77b38 | [
"MIT"
] | 1 | 2021-04-02T14:51:00.000Z | 2021-04-02T14:51:00.000Z | """
Function convert lists of 10 elements
into in the format of phone number
Example,
(123) 456-789
"""
def create_phone_number(n: list) -> str:
"""
>>> create_phone_number([1,2,3,4,5,6,7,8,9,0])
'(123) 456-7890'
"""
return "({}{}{}) {}{}{}-{}{}{}{}".format(*n)
if __name__ == "__main__... | 15.869565 | 50 | 0.556164 |
1eefb7ddb845bc64282cda5039ab52bf01d96b1d | 1,539 | py | Python | pointscan/scan.py | gtfierro/point_label_sharing | add0db472ec0bade566c3c1bf9428786c759d980 | [
"BSD-3-Clause"
] | 5 | 2019-08-19T10:16:49.000Z | 2021-12-19T17:18:18.000Z | pointscan/scan.py | gtfierro/point_label_sharing | add0db472ec0bade566c3c1bf9428786c759d980 | [
"BSD-3-Clause"
] | null | null | null | pointscan/scan.py | gtfierro/point_label_sharing | add0db472ec0bade566c3c1bf9428786c759d980 | [
"BSD-3-Clause"
] | 1 | 2019-10-11T15:48:42.000Z | 2019-10-11T15:48:42.000Z | import click
import logging
import pandas as pd
from pathlib import Path
if __name__ == '__main__':
main()
| 28.5 | 74 | 0.57245 |
1ef0038cb2a91e1c8d60b3c9d94b61a72a9905a8 | 569 | py | Python | var/spack/repos/builtin/packages/py-jdatetime/package.py | adrianjhpc/spack | 0a9e4fcee57911f2db586aa50c8873d9cca8de92 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2019-09-15T23:55:48.000Z | 2019-09-15T23:55:48.000Z | var/spack/repos/builtin/packages/py-jdatetime/package.py | adrianjhpc/spack | 0a9e4fcee57911f2db586aa50c8873d9cca8de92 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/py-jdatetime/package.py | adrianjhpc/spack | 0a9e4fcee57911f2db586aa50c8873d9cca8de92 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2017-01-21T17:19:32.000Z | 2017-01-21T17:19:32.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 35.5625 | 95 | 0.755712 |
1ef103ee8055d6489e89b6cf03c9f9136b33632a | 646 | py | Python | interview/leet/147_Insertion_Sort_List_Challenge.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2020-10-12T13:33:29.000Z | 2020-10-12T13:33:29.000Z | interview/leet/147_Insertion_Sort_List_Challenge.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | null | null | null | interview/leet/147_Insertion_Sort_List_Challenge.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2016-11-09T07:28:45.000Z | 2016-11-09T07:28:45.000Z | #!/usr/bin/env python
from linklist import *
sol = Solution()
nodeStringList = [
'[4,2,1,3]',
'[-1,5,3,4,0]',
'[3,2]',
'[23]',
'[]'
]
for nodeString in nodeStringList:
head = linkListBuilder(nodeString)
traverse(head)
traverse(sol.insertionSortList(head))
| 22.275862 | 62 | 0.53096 |
1ef14d5232899017df5a28aea662b5304b5bbc53 | 976 | py | Python | robocrm/migrations/0020_auto_20141027_0145.py | CMU-Robotics-Club/roboticsclub.org | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | [
"MIT"
] | null | null | null | robocrm/migrations/0020_auto_20141027_0145.py | CMU-Robotics-Club/roboticsclub.org | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | [
"MIT"
] | 16 | 2015-01-01T03:42:36.000Z | 2016-06-21T05:14:16.000Z | robocrm/migrations/0020_auto_20141027_0145.py | CMU-Robotics-Club/roboticsclub.org | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | [
"MIT"
] | 2 | 2015-07-23T14:37:16.000Z | 2021-09-11T01:23:25.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 29.575758 | 158 | 0.599385 |
1ef2ba31fbb403bcb4ce6125ac2b8a6fd53306d0 | 527 | py | Python | src/tests/flow.py | SeleSchaefer/super_resolution | bf28a959fb150ceeadbd9f0bcfc12f3025cf82f4 | [
"MIT"
] | 5 | 2019-11-11T10:01:52.000Z | 2020-12-08T11:56:33.000Z | src/tests/flow.py | SeleSchaefer/super_resolution | bf28a959fb150ceeadbd9f0bcfc12f3025cf82f4 | [
"MIT"
] | 1 | 2020-06-13T06:39:44.000Z | 2020-06-13T06:39:44.000Z | src/tests/flow.py | SeleSchaefer/super_resolution | bf28a959fb150ceeadbd9f0bcfc12f3025cf82f4 | [
"MIT"
] | 1 | 2020-07-16T23:07:28.000Z | 2020-07-16T23:07:28.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import imageio
import numpy as np
from tar.miscellaneous import convert_flow_to_color
prev = imageio.imread("ressources/1_1.png")
prev = cv2.cvtColor(prev, cv2.COLOR_RGB2GRAY)
curr = imageio.imread("ressources/1_2.png")
curr = cv2.cvtColor(curr, cv2.COLOR_RGB... | 29.277778 | 112 | 0.759013 |
1ef394d030837a85a23ff0b3c23491f9f879dcc0 | 998 | py | Python | assignment4/utils.py | nicedi/ML_course_projects | 136a18ec8615ae72bb60b4d60e920beb77728115 | [
"Apache-2.0"
] | null | null | null | assignment4/utils.py | nicedi/ML_course_projects | 136a18ec8615ae72bb60b4d60e920beb77728115 | [
"Apache-2.0"
] | null | null | null | assignment4/utils.py | nicedi/ML_course_projects | 136a18ec8615ae72bb60b4d60e920beb77728115 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
| 27.722222 | 69 | 0.625251 |
1ef4bd40a0edef859ca09644504d0ac02de309a6 | 746 | py | Python | post/migrations/0009_auto_20171207_2320.py | silvareal/personal-blog | 9ed8ac48864510cd5b3227b7b0f7d335beb648de | [
"MIT"
] | 2 | 2018-03-15T16:53:11.000Z | 2020-01-17T15:56:33.000Z | post/migrations/0009_auto_20171207_2320.py | silvareal/personal-blog | 9ed8ac48864510cd5b3227b7b0f7d335beb648de | [
"MIT"
] | null | null | null | post/migrations/0009_auto_20171207_2320.py | silvareal/personal-blog | 9ed8ac48864510cd5b3227b7b0f7d335beb648de | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-07 22:20
from __future__ import unicode_literals
from django.db import migrations, models
| 26.642857 | 177 | 0.577748 |
1ef4eeb144b92d317488e7746cdc05ddecffcf45 | 3,018 | py | Python | tests/test_utils_project.py | FingerCrunch/scrapy | 3225de725720bba246ba8c9845fe4b84bc0c82e7 | [
"BSD-3-Clause"
] | 41,267 | 2015-01-01T07:39:25.000Z | 2022-03-31T20:09:40.000Z | tests/test_utils_project.py | FingerCrunch/scrapy | 3225de725720bba246ba8c9845fe4b84bc0c82e7 | [
"BSD-3-Clause"
] | 4,420 | 2015-01-02T09:35:38.000Z | 2022-03-31T22:53:32.000Z | tests/test_utils_project.py | FingerCrunch/scrapy | 3225de725720bba246ba8c9845fe4b84bc0c82e7 | [
"BSD-3-Clause"
] | 11,080 | 2015-01-01T18:11:30.000Z | 2022-03-31T15:33:19.000Z | import unittest
import os
import tempfile
import shutil
import contextlib
from pytest import warns
from scrapy.exceptions import ScrapyDeprecationWarning
from scrapy.utils.project import data_path, get_project_settings
| 30.795918 | 70 | 0.629556 |
1ef590187d92be6eb1062c6742984e4a21a536f0 | 212 | py | Python | trainer/__init__.py | Greeser/gate-decorator-pruning | 1069fc89099100091412b6f89ead0519d382c518 | [
"Apache-2.0"
] | 192 | 2019-09-18T10:02:16.000Z | 2022-03-24T16:31:18.000Z | trainer/__init__.py | pawopawo/gate-decorator-pruning | d89021802fa56b1eba97921db3d8cadcacdd2073 | [
"Apache-2.0"
] | 25 | 2019-09-24T10:53:51.000Z | 2022-01-18T07:13:52.000Z | trainer/__init__.py | pawopawo/gate-decorator-pruning | d89021802fa56b1eba97921db3d8cadcacdd2073 | [
"Apache-2.0"
] | 33 | 2019-09-19T02:21:58.000Z | 2022-03-31T10:04:20.000Z | from trainer.normal import NormalTrainer
from config import cfg
| 19.272727 | 40 | 0.679245 |
1ef715bb94a229f05900f1d0c867b3d0fe21f76d | 776 | py | Python | Tasks/Community/ts_scriptExamples/pythonLogging.py | nneul/Velocity-assets | 9be7cd6f483754871c5a541d0083fbe933dfb456 | [
"MIT"
] | 4 | 2019-05-27T23:36:34.000Z | 2020-11-12T17:08:04.000Z | Tasks/Community/ts_scriptExamples/pythonLogging.py | nneul/Velocity-assets | 9be7cd6f483754871c5a541d0083fbe933dfb456 | [
"MIT"
] | 12 | 2019-04-17T02:47:25.000Z | 2021-04-02T09:15:37.000Z | Tasks/Community/ts_scriptExamples/pythonLogging.py | nneul/Velocity-assets | 9be7cd6f483754871c5a541d0083fbe933dfb456 | [
"MIT"
] | 15 | 2018-04-26T05:18:12.000Z | 2021-11-06T04:44:58.000Z | #!/usr/bin/python
import logging
# create logger
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
# create console handler and set level to debug
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
# create file handler which and set level to debug
fh = logging.FileHandler('pythonLogging.log')
fh.setLev... | 25.866667 | 72 | 0.76933 |
1ef7b25dff5a6ddf0729f1a5e0bea3ab89df1ed3 | 3,565 | py | Python | google/datalab/commands/_datalab.py | freyrsae/pydatalab | 9aba1ac6bbe8e1384e7a4b07c5042af84348797d | [
"Apache-2.0"
] | 198 | 2016-07-14T19:47:52.000Z | 2022-03-15T08:45:21.000Z | google/datalab/commands/_datalab.py | freyrsae/pydatalab | 9aba1ac6bbe8e1384e7a4b07c5042af84348797d | [
"Apache-2.0"
] | 534 | 2016-07-15T19:12:43.000Z | 2022-03-11T23:11:39.000Z | google/datalab/commands/_datalab.py | freyrsae/pydatalab | 9aba1ac6bbe8e1384e7a4b07c5042af84348797d | [
"Apache-2.0"
] | 86 | 2016-07-13T17:39:05.000Z | 2021-11-03T03:39:41.000Z | # Copyright 2017 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 33.317757 | 76 | 0.748387 |
1ef7c90725f50f509ebf7ce67bf02498f0dcedf7 | 181 | py | Python | src/server/__main__.py | ENDERZOMBI102/chatapp | 3f54e72a8d3b10457cf88ec5f87b2984cc84a51f | [
"MIT"
] | 1 | 2021-06-20T05:47:53.000Z | 2021-06-20T05:47:53.000Z | src/server/__main__.py | ENDERZOMBI102/chatapp | 3f54e72a8d3b10457cf88ec5f87b2984cc84a51f | [
"MIT"
] | null | null | null | src/server/__main__.py | ENDERZOMBI102/chatapp | 3f54e72a8d3b10457cf88ec5f87b2984cc84a51f | [
"MIT"
] | null | null | null | from sys import argv
from server.AServer import AServer
if '--old' in argv:
from server.server import Server
Server()
else:
AServer( websocket='--websocket' in argv ).Start()
| 16.454545 | 51 | 0.729282 |
1ef930c42df2781ea2ef6709774093b794cfc83e | 3,081 | py | Python | testing/tests/registers.py | Wynjones1/gbvhdl | 46cef04cef308967ea4764eeeaf7d611dc783ae4 | [
"MIT"
] | null | null | null | testing/tests/registers.py | Wynjones1/gbvhdl | 46cef04cef308967ea4764eeeaf7d611dc783ae4 | [
"MIT"
] | null | null | null | testing/tests/registers.py | Wynjones1/gbvhdl | 46cef04cef308967ea4764eeeaf7d611dc783ae4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
from common import *
from random import randint, choice
registers = {\
"a" : int("0000", 2),
"f" : int("0001", 2),
"b" : int("0010", 2),
"c" : int("0011", 2),
"d" : int("0100", 2),
"e" : int("0101", 2),
"h" : int("0110", 2),
"l" : int("0111", 2),
"af" : int("1000", 2),
"bc" : int("1001... | 31.121212 | 79 | 0.477118 |
1efa2e6d895702b8d443cbba288ae926b3327dee | 290 | py | Python | DiscordRPC/__init__.py | EterNomm/discord-rpc | 86bdf35a75df9ab8971763042d19f2f820e08a51 | [
"Apache-2.0"
] | 4 | 2021-12-13T13:26:00.000Z | 2022-02-20T17:11:19.000Z | DiscordRPC/__init__.py | LyQuid12/discord-rpc | 86bdf35a75df9ab8971763042d19f2f820e08a51 | [
"Apache-2.0"
] | null | null | null | DiscordRPC/__init__.py | LyQuid12/discord-rpc | 86bdf35a75df9ab8971763042d19f2f820e08a51 | [
"Apache-2.0"
] | null | null | null | from .presence import *
from .button import button
from .exceptions import *
#from .get_current_app import GCAR (Disabling due to a bug)
__title__ = "Discord-RPC"
__version__ = "3.5"
__authors__ = "LyQuid"
__license__ = "Apache License 2.0"
__copyright__ = "Copyright 2021-present LyQuid"
| 26.363636 | 59 | 0.762069 |
1efa6932e5014bf06e1e937b4bacbf01a0d855e1 | 11,392 | py | Python | brax/training/ars.py | benelot/brax | 6b74009face5a12ae3e47b87cdb1abc45181040e | [
"Apache-2.0"
] | 1 | 2021-09-27T18:38:49.000Z | 2021-09-27T18:38:49.000Z | brax/training/ars.py | benelot/brax | 6b74009face5a12ae3e47b87cdb1abc45181040e | [
"Apache-2.0"
] | null | null | null | brax/training/ars.py | benelot/brax | 6b74009face5a12ae3e47b87cdb1abc45181040e | [
"Apache-2.0"
] | 1 | 2021-09-27T18:38:57.000Z | 2021-09-27T18:38:57.000Z | # Copyright 2021 The Brax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 36.512821 | 88 | 0.684077 |
1efb1e54ed275e79479018453c75c13bf653026c | 330 | py | Python | docs/api/conf.py | kagemeka/selext | 1882e518f8698f6d257549cdb36c79e05e801d39 | [
"MIT"
] | 1 | 2022-02-15T12:02:02.000Z | 2022-02-15T12:02:02.000Z | docs/api/conf.py | kagemeka/filesystem-python | 565beb128326f5ee41a5bb2b3a751788d4a02e4c | [
"MIT"
] | 6 | 2022-01-05T09:15:54.000Z | 2022-01-09T05:48:43.000Z | docs/api/conf.py | kagemeka/python-algorithms | dface89b8c618845cf524429aa8e97c4b2b10ceb | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(find_docs_root())
from _rtd_conf import *
from _sphinx_conf import *
| 20.625 | 45 | 0.70303 |
1efbf1d335ee13e467149f16bec6b633d71434fe | 1,314 | py | Python | src/graph/cli/server.py | clayman-micro/graph | 742015c276f89841310794e952280a06c24fe8ef | [
"MIT"
] | null | null | null | src/graph/cli/server.py | clayman-micro/graph | 742015c276f89841310794e952280a06c24fe8ef | [
"MIT"
] | null | null | null | src/graph/cli/server.py | clayman-micro/graph | 742015c276f89841310794e952280a06c24fe8ef | [
"MIT"
] | null | null | null | import socket
import click
import uvicorn # type: ignore
| 22.655172 | 70 | 0.590563 |
1efec6ae65507f91537c6a7a371e02ca57452f0d | 175 | py | Python | settings/libs.py | skylifewww/pangolinreact | 8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a | [
"MIT"
] | null | null | null | settings/libs.py | skylifewww/pangolinreact | 8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a | [
"MIT"
] | null | null | null | settings/libs.py | skylifewww/pangolinreact | 8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a | [
"MIT"
] | null | null | null | # grappelli
GRAPPELLI_ADMIN_TITLE = 'pangolin - Administration panel'
# rest framework
# REST_FRAMEWORK = {
# 'PAGINATE_BY_PARAM': 'limit',
# 'SEARCH_PARAM': 'q'
# }
| 19.444444 | 57 | 0.68 |
1efed2c2a7cb93434e5d67d1db9954f3a5ff1653 | 1,543 | py | Python | kubespawner/clients.py | moskiGithub/spawner_test | 405f088041054080f53b620b68fe040e5e0b091a | [
"BSD-3-Clause"
] | null | null | null | kubespawner/clients.py | moskiGithub/spawner_test | 405f088041054080f53b620b68fe040e5e0b091a | [
"BSD-3-Clause"
] | null | null | null | kubespawner/clients.py | moskiGithub/spawner_test | 405f088041054080f53b620b68fe040e5e0b091a | [
"BSD-3-Clause"
] | null | null | null | """Shared clients for kubernetes
avoids creating multiple kubernetes client objects,
each of which spawns an unused max-size thread pool
"""
from unittest.mock import Mock
import weakref
import kubernetes.client
from kubernetes.client import api_client
# FIXME: remove when instantiating a kubernetes cli... | 32.829787 | 68 | 0.711601 |
1effabe25e75813c61f0401ae397020afd635812 | 8,956 | py | Python | src/syncgitlab2msproject/gitlab_issues.py | lcv3/SyncGitlab2MSProject | 4a81191b7deb6974e893d44f3b04fcfc1da36571 | [
"MIT"
] | null | null | null | src/syncgitlab2msproject/gitlab_issues.py | lcv3/SyncGitlab2MSProject | 4a81191b7deb6974e893d44f3b04fcfc1da36571 | [
"MIT"
] | null | null | null | src/syncgitlab2msproject/gitlab_issues.py | lcv3/SyncGitlab2MSProject | 4a81191b7deb6974e893d44f3b04fcfc1da36571 | [
"MIT"
] | null | null | null | import dateutil.parser
from datetime import datetime
from functools import lru_cache
from gitlab import Gitlab
from gitlab.v4.objects import Project
from logging import getLogger
from typing import Dict, List, Optional, Union
from .custom_types import GitlabIssue, GitlabUserDict
from .exceptions import MovedIssueNotDe... | 30.154882 | 85 | 0.600715 |
48026c0db5235d96fe4f5a2a24dc36b8317b3710 | 964 | py | Python | pytest/track_test.py | Sergej91/TheiaSfM | e603e16888456c3e565a2c197fa9f8643c176175 | [
"BSD-3-Clause"
] | null | null | null | pytest/track_test.py | Sergej91/TheiaSfM | e603e16888456c3e565a2c197fa9f8643c176175 | [
"BSD-3-Clause"
] | null | null | null | pytest/track_test.py | Sergej91/TheiaSfM | e603e16888456c3e565a2c197fa9f8643c176175 | [
"BSD-3-Clause"
] | null | null | null | import pytheia as pt
import os
import numpy as np
if __name__ == "__main__":
test_track_set_descriptor_read_write() | 27.542857 | 56 | 0.701245 |
4805394e98503f43fbc6141c4232f0ba1a824264 | 1,732 | py | Python | jayk/util.py | alekratz/jayk | 87dc1aa4fd7be9ee1757ddee066dffb1bd7df09b | [
"ISC"
] | 1 | 2018-04-06T23:06:21.000Z | 2018-04-06T23:06:21.000Z | jayk/util.py | alekratz/jayk | 87dc1aa4fd7be9ee1757ddee066dffb1bd7df09b | [
"ISC"
] | 5 | 2017-10-12T12:13:11.000Z | 2018-05-15T22:32:04.000Z | jayk/util.py | alekratz/jayk | 87dc1aa4fd7be9ee1757ddee066dffb1bd7df09b | [
"ISC"
] | 5 | 2017-10-10T21:59:18.000Z | 2019-06-28T13:28:10.000Z | """Common utilities used through this codebase."""
import logging
import logging.config
| 30.928571 | 97 | 0.612587 |
48065a4ff80756ba525a0a9808129ee5012b319d | 224 | py | Python | experimentation/trap/statistics_calculator.py | GruppoPBDMNG-10/AIExam | 22fd4dad20bcff689deeae227f179267b92a60d8 | [
"MIT"
] | null | null | null | experimentation/trap/statistics_calculator.py | GruppoPBDMNG-10/AIExam | 22fd4dad20bcff689deeae227f179267b92a60d8 | [
"MIT"
] | 5 | 2018-09-24T13:13:19.000Z | 2018-09-24T18:34:22.000Z | experimentation/trap/statistics_calculator.py | GruppoPBDMNG-10/AIExam | 22fd4dad20bcff689deeae227f179267b92a60d8 | [
"MIT"
] | null | null | null | import experimentation.statistics.statistics as statistics
intersection = statistics.find_matches_from_file('result/experimentation/hmm/anomalous.json', 'result/experimentation/rnn/anomalous.json')
print(len(intersection)) | 44.8 | 138 | 0.852679 |
4807121b7fee14846de82fc2e6158a386836a6aa | 13,056 | py | Python | objects/CSCG/_3d/exact_solutions/status/incompressible_Navier_Stokes/Sin_Cos.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | objects/CSCG/_3d/exact_solutions/status/incompressible_Navier_Stokes/Sin_Cos.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | objects/CSCG/_3d/exact_solutions/status/incompressible_Navier_Stokes/Sin_Cos.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Yi Zhang.
Department of Aerodynamics
Faculty of Aerospace Engineering
TU Delft, Delft, Netherlands
"""
from numpy import sin, cos, pi
from objects.CSCG._3d.exact_solutions.status.incompressible_Navier_Stokes.base import incompressible_NavierStokes_Base
f... | 30.72 | 118 | 0.555913 |
4807de81e5cd93efaec1325cded4f4d3e15bd5c9 | 93 | py | Python | aaem_summaries/components/transmission/__init__.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 1 | 2022-01-23T07:18:36.000Z | 2022-01-23T07:18:36.000Z | aaem_summaries/components/transmission/__init__.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 5 | 2017-07-14T21:56:46.000Z | 2017-07-14T21:59:15.000Z | aaem_summaries/components/transmission/__init__.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 2 | 2020-04-28T18:12:55.000Z | 2021-01-13T01:56:57.000Z | """
__init__.py
summary for
Transmission Line in a community
"""
from summary import *
| 11.625 | 32 | 0.698925 |
4808f358b59d11b04181bc6422be2976a2eb690f | 2,344 | py | Python | setup.py | doconce/preprocess | c09c61ca7571699c6ed8d93eaf4fac13ee614409 | [
"MIT"
] | 5 | 2020-05-23T14:56:13.000Z | 2021-07-30T15:26:27.000Z | setup.py | doconce/preprocess | c09c61ca7571699c6ed8d93eaf4fac13ee614409 | [
"MIT"
] | 2 | 2018-02-19T10:12:50.000Z | 2020-11-15T15:27:17.000Z | setup.py | doconce/preprocess | c09c61ca7571699c6ed8d93eaf4fac13ee614409 | [
"MIT"
] | 2 | 2018-06-10T11:51:52.000Z | 2020-09-02T20:41:46.000Z | #!/usr/bin/env python
# Copyright (c) 2002-2005 ActiveState Software Ltd.
"""preprocess: a multi-language preprocessor
There are millions of templating systems out there (most of them
developed for the web). This isn't one of those, though it does share
some basics: a markup syntax for templates that are processed to... | 34.470588 | 75 | 0.700939 |
48098c0ad42aef816d1cc33d9f2b4cf7db1cf4ab | 1,504 | py | Python | bubblebbs/config.py | kawa-kokosowa/bubblebbs | 2b70fd66c27f717ed009cbe5efc0d0d5433f3423 | [
"MIT"
] | 7 | 2019-01-03T01:21:32.000Z | 2020-09-03T01:52:09.000Z | bubblebbs/config.py | lily-mayfield/bubblebbs | 2b70fd66c27f717ed009cbe5efc0d0d5433f3423 | [
"MIT"
] | 109 | 2018-05-04T10:32:23.000Z | 2018-06-24T03:35:01.000Z | bubblebbs/config.py | kawa-kokosowa/bubblebbs | 2b70fd66c27f717ed009cbe5efc0d0d5433f3423 | [
"MIT"
] | 3 | 2018-05-14T15:10:03.000Z | 2018-05-19T01:13:03.000Z | import os
BEHIND_REVERSE_PROXY = bool(os.environ.get('BBBS_BEHIND_REVERSE_PROXY', False))
POSTS_PER_PAGE = 25
TEMPLATES_AUTO_RELOAD = True
RECAPTCHA_ENABLED = os.environ.get('BBBS_RECAPTCHA_ENABLED', False)
RECAPTCHA_SITE_KEY = os.environ.get('BBBS_RECAPTCHA_SITE_KEY', 'CHANGEGME')
RECAPTCHA_SECRET_KEY = os.environ... | 42.971429 | 96 | 0.776596 |
480a52a59f5e6ca79a9056130cb2d9abb336a9ed | 11,497 | py | Python | sim_user/mailLib.py | silicom-hub/IS_simulator | 4d134a8051c3604a94c2552503ff24015a3e86ee | [
"MIT"
] | 4 | 2021-11-24T10:58:51.000Z | 2022-03-11T15:13:22.000Z | sim_user/mailLib.py | silicom-hub/IS_simulator | 4d134a8051c3604a94c2552503ff24015a3e86ee | [
"MIT"
] | 1 | 2021-11-24T09:16:08.000Z | 2021-11-30T16:19:41.000Z | sim_user/mailLib.py | silicom-hub/IS_simulator | 4d134a8051c3604a94c2552503ff24015a3e86ee | [
"MIT"
] | 1 | 2021-11-24T11:10:38.000Z | 2021-11-24T11:10:38.000Z | import os
import wget
import time
import glob
import getpass
import tarfile
import subprocess
import email.mime.multipart
import email.mime.text
import email.mime.image
import email.mime.audio
from datetime import datetime
from pprint import pprint
from colorama import Style, Fore
from smtplib import SMTP, SMTP_SSL
fro... | 41.060714 | 168 | 0.609898 |
480ae2b25c3bc1935302502823a56a560d147572 | 736 | py | Python | setup.py | vishnumenon/pyims | d6b1403332e83477661baa6443fba82daaf10542 | [
"MIT"
] | 1 | 2018-05-21T01:38:31.000Z | 2018-05-21T01:38:31.000Z | setup.py | vishnumenon/pyims | d6b1403332e83477661baa6443fba82daaf10542 | [
"MIT"
] | 1 | 2019-03-01T09:40:15.000Z | 2019-03-01T09:40:15.000Z | setup.py | vishnumenon/pyims | d6b1403332e83477661baa6443fba82daaf10542 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(name="pyims",
version='0.1.2',
description='A python wrapper for the IMS Word Sense Disambiguation tool (Zhong and Ng, 2010)',
url='http://github.com/vishnumenon/pyims',
author="Vishnu Menon",
aut... | 30.666667 | 99 | 0.658967 |
480af4411812ec81b6aa03218911dad18afb95a5 | 728 | py | Python | hass_apps/schedy/actor/__init__.py | weese/hass-apps | 1c0f7828213ab26924b571ad6d33514d52675ca0 | [
"Apache-2.0"
] | null | null | null | hass_apps/schedy/actor/__init__.py | weese/hass-apps | 1c0f7828213ab26924b571ad6d33514d52675ca0 | [
"Apache-2.0"
] | null | null | null | hass_apps/schedy/actor/__init__.py | weese/hass-apps | 1c0f7828213ab26924b571ad6d33514d52675ca0 | [
"Apache-2.0"
] | null | null | null | """
This package contains the various actor implementations.
"""
import typing as T
from .base import ActorBase
from .custom import CustomActor
from .generic import GenericActor
from .switch import SwitchActor
from .thermostat import ThermostatActor
__all__ = [
"ActorBase",
"CustomActor",
"GenericActor"... | 22.75 | 77 | 0.703297 |
480bacc7e218e7aba2dc5770fad3518638833a8b | 11,372 | py | Python | triggmine_sdk/tests/test_client.py | TriggMineAdmin/TriggMine-Python-SDK | 9c5bd7c9ad2118bf5dc77796ccedc4eef0937df3 | [
"MIT"
] | null | null | null | triggmine_sdk/tests/test_client.py | TriggMineAdmin/TriggMine-Python-SDK | 9c5bd7c9ad2118bf5dc77796ccedc4eef0937df3 | [
"MIT"
] | null | null | null | triggmine_sdk/tests/test_client.py | TriggMineAdmin/TriggMine-Python-SDK | 9c5bd7c9ad2118bf5dc77796ccedc4eef0937df3 | [
"MIT"
] | null | null | null | # UnitTests of all triggmine events
import unittest
import datetime
from client import Client
if __name__ == '__main__':
unittest.main() | 73.367742 | 210 | 0.453922 |
480bf69db63d53cb496e110eff657c50a64491da | 1,605 | py | Python | lib/python2.7/site-packages/mpl_toolkits/tests/test_axes_grid.py | wfehrnstrom/harmonize | e5661d24b2021739e8ac4bf1d3a530eda4e155b3 | [
"MIT"
] | 1 | 2017-12-05T15:35:47.000Z | 2017-12-05T15:35:47.000Z | lib/python2.7/site-packages/mpl_toolkits/tests/test_axes_grid.py | wfehrnstrom/harmonize | e5661d24b2021739e8ac4bf1d3a530eda4e155b3 | [
"MIT"
] | 10 | 2017-07-13T00:24:03.000Z | 2017-07-17T07:39:03.000Z | lib/python2.7/site-packages/mpl_toolkits/tests/test_axes_grid.py | wfehrnstrom/harmonize | e5661d24b2021739e8ac4bf1d3a530eda4e155b3 | [
"MIT"
] | 7 | 2017-08-01T04:02:07.000Z | 2018-10-06T21:07:20.000Z |
from matplotlib.testing.decorators import image_comparison
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np
import matplotlib.pyplot as plt
| 37.325581 | 68 | 0.556386 |
480cf2d366aba92e09518883be9b0629f1fbd5c8 | 4,985 | py | Python | src/resources/lib/listitem.py | ffoxin/kodi.kino.pub | f085beb99fcbab3da4efc698d56775d9553b9f28 | [
"BSD-3-Clause"
] | 59 | 2018-10-07T19:54:27.000Z | 2022-03-27T08:55:57.000Z | src/resources/lib/listitem.py | ffoxin/kodi.kino.pub | f085beb99fcbab3da4efc698d56775d9553b9f28 | [
"BSD-3-Clause"
] | 147 | 2018-10-07T19:02:13.000Z | 2022-03-05T17:15:16.000Z | src/resources/lib/listitem.py | ffoxin/kodi.kino.pub | f085beb99fcbab3da4efc698d56775d9553b9f28 | [
"BSD-3-Clause"
] | 22 | 2018-11-14T16:40:19.000Z | 2022-02-11T22:30:28.000Z | # -*- coding: utf-8 -*-
from xbmcgui import ListItem
| 39.88 | 98 | 0.620662 |
480d3d853c8689806f27c896226d9a525a7a54e6 | 3,451 | py | Python | static/firespread.py | thabat12/TetraNet | 48e98095e743f949fdb88491735acb3f19e27df7 | [
"MIT"
] | null | null | null | static/firespread.py | thabat12/TetraNet | 48e98095e743f949fdb88491735acb3f19e27df7 | [
"MIT"
] | null | null | null | static/firespread.py | thabat12/TetraNet | 48e98095e743f949fdb88491735acb3f19e27df7 | [
"MIT"
] | 1 | 2021-06-02T00:33:13.000Z | 2021-06-02T00:33:13.000Z | import numpy as np
import imageio
import tensorflow as tf
from keras.models import load_model
from PIL import Image, ImageOps
import numpy as np
from numpy import asarray
from matplotlib import pyplot as plt
from keras.utils import normalize
import os
import random
import azure_get_unet
import random
# for testing pu... | 29.75 | 73 | 0.541003 |
480d49129b8a557b65a1a726cce2b2b64435ab5e | 1,418 | py | Python | streamlitfront/tests/dummy_app.py | i2mint/streamlitfront | 6fbc03a42cdb7436dcda3da00fb9b42965bbb582 | [
"Apache-2.0"
] | null | null | null | streamlitfront/tests/dummy_app.py | i2mint/streamlitfront | 6fbc03a42cdb7436dcda3da00fb9b42965bbb582 | [
"Apache-2.0"
] | 1 | 2022-02-03T15:21:57.000Z | 2022-02-05T00:51:33.000Z | streamlitfront/tests/dummy_app.py | i2mint/streamlitfront | 6fbc03a42cdb7436dcda3da00fb9b42965bbb582 | [
"Apache-2.0"
] | null | null | null | from streamlitfront.base import get_pages_specs, get_func_args_specs, BasePageFunc
import streamlit as st
from pydantic import BaseModel
import streamlit_pydantic as sp
DFLT_PAGE_FACTORY = SimplePageFunc2
if __name__ == '__main__':
app = get_pages_specs([multiple_input], page_factory=DFLT_PAGE_FACTORY)
... | 28.938776 | 82 | 0.658674 |
480d62d6a3b8b59327c71459cf291592859ce935 | 367 | py | Python | app/build.py | dhost-project/build-microservice | 4376169a2753f37fe8c7985525bd3fd3af6f11e7 | [
"MIT"
] | null | null | null | app/build.py | dhost-project/build-microservice | 4376169a2753f37fe8c7985525bd3fd3af6f11e7 | [
"MIT"
] | null | null | null | app/build.py | dhost-project/build-microservice | 4376169a2753f37fe8c7985525bd3fd3af6f11e7 | [
"MIT"
] | null | null | null | from flask_restful import Resource, reqparse
parser = reqparse.RequestParser()
parser.add_argument('command', required=True)
parser.add_argument('docker', required=True)
| 21.588235 | 45 | 0.6703 |
480d6eb2f995a9bfa4e6589d0220badcbea502c9 | 1,224 | py | Python | src/unicon/plugins/windows/__init__.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | 18 | 2019-11-23T23:14:53.000Z | 2022-01-10T01:17:08.000Z | src/unicon/plugins/windows/__init__.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | 12 | 2020-11-09T20:39:25.000Z | 2022-03-22T12:46:59.000Z | src/unicon/plugins/windows/__init__.py | nielsvanhooy/unicon.plugins | 3416fd8223f070cbb67a2cbe604e3c5d13584318 | [
"Apache-2.0"
] | 32 | 2020-02-12T15:42:22.000Z | 2022-03-15T16:42:10.000Z | __copyright__ = "# Copyright (c) 2018 by cisco Systems, Inc. All rights reserved."
__author__ = "dwapstra"
from unicon.plugins.generic import GenericSingleRpConnection, service_implementation as svc
from unicon.plugins.generic.connection_provider import GenericSingleRpConnectionProvider
from unicon.plugins.generic im... | 29.853659 | 91 | 0.763072 |
480db89fecb8063418ca5134d6a59815af7cc219 | 702 | py | Python | sera/commands/symlink.py | bretth/sera | 507976b9ace58bdf4c8055dbfcf2fc10840eacb2 | [
"Apache-2.0"
] | null | null | null | sera/commands/symlink.py | bretth/sera | 507976b9ace58bdf4c8055dbfcf2fc10840eacb2 | [
"Apache-2.0"
] | 12 | 2016-10-04T20:19:45.000Z | 2017-01-31T03:59:57.000Z | sera/commands/symlink.py | bretth/sera | 507976b9ace58bdf4c8055dbfcf2fc10840eacb2 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from shutil import which
from subprocess import run, PIPE
import click
from .main import main, lprint
| 25.071429 | 60 | 0.649573 |
480e88801229fe7f9b5057dd51b7998fec8f0003 | 3,597 | py | Python | self-attention.py | dhkim2810/MaskedDatasetCondensation | f52144e9cd68e46b4ebdbcaf96829edb732b79ae | [
"Apache-2.0"
] | null | null | null | self-attention.py | dhkim2810/MaskedDatasetCondensation | f52144e9cd68e46b4ebdbcaf96829edb732b79ae | [
"Apache-2.0"
] | null | null | null | self-attention.py | dhkim2810/MaskedDatasetCondensation | f52144e9cd68e46b4ebdbcaf96829edb732b79ae | [
"Apache-2.0"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.models import resnet18
from torchvision.datasets import CIFAR10
from tqdm import tqdm
from torchvision.utils import save_image, make_grid
from matplotlib import p... | 34.92233 | 116 | 0.683903 |
480f4cbaf998ac30c959d68f9aa7a041e7838e2a | 1,100 | py | Python | src/libraries/maimai_plate.py | Blitz-Raynor/Kiba | a73b5b6212a5446d218a80f1a6aba108e0a1912b | [
"MIT"
] | 4 | 2022-01-24T05:33:34.000Z | 2022-03-25T06:29:19.000Z | src/libraries/maimai_plate.py | Blitz-Raynor/Kiba | a73b5b6212a5446d218a80f1a6aba108e0a1912b | [
"MIT"
] | null | null | null | src/libraries/maimai_plate.py | Blitz-Raynor/Kiba | a73b5b6212a5446d218a80f1a6aba108e0a1912b | [
"MIT"
] | 3 | 2022-02-08T13:24:59.000Z | 2022-03-13T06:42:40.000Z | from typing import Optional, Dict, List
import aiohttp
plate_to_version = {
'1': 'maimai',
'2': 'maimai PLUS',
'': 'maimai GreeN',
'': 'maimai GreeN PLUS',
'': 'maimai ORANGE',
'': 'maimai ORANGE PLUS',
'': 'maimai ORANGE PLUS',
'': 'maimai PiNK',
... | 29.72973 | 123 | 0.53 |
48100064f1145ddaa5540b7d9cd09cc85ae092af | 6,390 | py | Python | env/lib/python2.7/site-packages/billiard/py2/reduction.py | jlwysf/onduty | 20d90583a6996d037912af08eb29a6d6fa06bf66 | [
"MIT"
] | 39 | 2016-12-05T14:36:37.000Z | 2021-07-29T18:22:34.000Z | env/lib/python2.7/site-packages/billiard/py2/reduction.py | jlwysf/onduty | 20d90583a6996d037912af08eb29a6d6fa06bf66 | [
"MIT"
] | 68 | 2016-12-12T20:38:47.000Z | 2020-07-26T18:28:49.000Z | p2p/lib/python2.7/site-packages/billiard/py2/reduction.py | sivaprakashniet/push_pull | 757be6fcdfdc8e73eeea5cb41a733d1916c7ae20 | [
"BSD-3-Clause"
] | 120 | 2016-08-18T14:53:03.000Z | 2020-06-16T13:27:20.000Z | #
# Module to allow connection and socket objects to be transferred
# between processes
#
# multiprocessing/reduction.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
from __future__ import absolute_import
import os
import sys
import socket
import threading
from pickle imp... | 25.662651 | 74 | 0.680751 |
4810516c04a5fc1c2f18a86f01879ae7f2e15131 | 92 | py | Python | BOJ_Solved/BOJ-19698.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | 7 | 2021-11-19T14:50:59.000Z | 2022-02-25T20:00:20.000Z | BOJ_Solved/BOJ-19698.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | null | null | null | BOJ_Solved/BOJ-19698.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 1e92986999b45aa9951e12e67b23062e410e9b36 | [
"MIT"
] | null | null | null | """
19698 :
"""
N, W, H, L = map(int, input().split())
print(min(W//L * H//L, N)) | 15.333333 | 38 | 0.48913 |
4811f993b7e4266adf0f540c90cd21e38ddb5532 | 13,723 | py | Python | .venv/lib/python2.7/site-packages/ansible/module_utils/nxos.py | Achraf-Ben/Ansible- | a271b4c32948a7f8726e3f3174e12fe6ff491619 | [
"MIT"
] | null | null | null | .venv/lib/python2.7/site-packages/ansible/module_utils/nxos.py | Achraf-Ben/Ansible- | a271b4c32948a7f8726e3f3174e12fe6ff491619 | [
"MIT"
] | null | null | null | .venv/lib/python2.7/site-packages/ansible/module_utils/nxos.py | Achraf-Ben/Ansible- | a271b4c32948a7f8726e3f3174e12fe6ff491619 | [
"MIT"
] | null | null | null | #
# This code is part of Ansible, but is an independent component.
#
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complet... | 33.717445 | 130 | 0.602274 |
48123959326e46f67183f1e789974d0424c29d58 | 2,315 | py | Python | example/bin_provider.py | dell/dataiq-plugin-example | 7c323ec2d878ed705c4c74ab045e15595bd84b0b | [
"Apache-2.0"
] | 1 | 2021-04-12T09:32:21.000Z | 2021-04-12T09:32:21.000Z | example/bin_provider.py | dell/dataiq-plugin-example | 7c323ec2d878ed705c4c74ab045e15595bd84b0b | [
"Apache-2.0"
] | null | null | null | example/bin_provider.py | dell/dataiq-plugin-example | 7c323ec2d878ed705c4c74ab045e15595bd84b0b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Dell Inc, or its subsidiaries.
#
# SPDX-License-Identifier: Apache-2.0
import csv
import datetime
import os
import sys
from abc import ABC, abstractmethod
from collections import namedtuple
from typing import Tuple, List, Iterator
from dateutil.relativedelta import relativedelta
from dataiq.plugin.u... | 32.605634 | 93 | 0.64622 |
48126352dee9a8d203347caa05ca59556d920c18 | 268 | py | Python | test.py | ewuerfel66/lambdata-mjh09 | 7f87f923ec351e7af139d098d84a320861632616 | [
"MIT"
] | null | null | null | test.py | ewuerfel66/lambdata-mjh09 | 7f87f923ec351e7af139d098d84a320861632616 | [
"MIT"
] | 4 | 2020-03-24T17:42:54.000Z | 2021-06-02T00:22:30.000Z | test.py | ewuerfel66/lambdata-mjh09 | 7f87f923ec351e7af139d098d84a320861632616 | [
"MIT"
] | 1 | 2019-08-14T15:17:22.000Z | 2019-08-14T15:17:22.000Z | import unittest
if __name__ == '__main__':
unittest.main() | 22.333333 | 56 | 0.634328 |
4812aa4cff01a349a2420a59bd686d36663cfba9 | 1,913 | py | Python | md5tosha256.py | yym68686/VirusTotalSpider | 7620b068e87964f6011d46003dbbf88be5c7dac9 | [
"MIT"
] | 2 | 2021-06-17T03:36:59.000Z | 2021-12-02T09:13:10.000Z | md5tosha256.py | yym68686/VirusTotalSpider | 7620b068e87964f6011d46003dbbf88be5c7dac9 | [
"MIT"
] | null | null | null | md5tosha256.py | yym68686/VirusTotalSpider | 7620b068e87964f6011d46003dbbf88be5c7dac9 | [
"MIT"
] | null | null | null | import os
import re
import time
import numpy as np
from msedge.selenium_tools import EdgeOptions, Edge
from selenium.webdriver.common.action_chains import ActionChains
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/8... | 44.488372 | 150 | 0.658129 |