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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
496b6450d30926a47dd2ad486b0b0f71fa6e56dd | 10,910 | py | Python | train_margin.py | youmingdeng/DMLPlayground | 37070c10278597a4413303061d60d69ce2c4f87e | [
"Apache-2.0"
] | 1 | 2021-11-11T16:05:56.000Z | 2021-11-11T16:05:56.000Z | train_margin.py | youmingdeng/DMLPlayground | 37070c10278597a4413303061d60d69ce2c4f87e | [
"Apache-2.0"
] | null | null | null | train_margin.py | youmingdeng/DMLPlayground | 37070c10278597a4413303061d60d69ce2c4f87e | [
"Apache-2.0"
] | 1 | 2020-04-01T04:50:36.000Z | 2020-04-01T04:50:36.000Z | from __future__ import division
import logging
import mxnet as mx
import numpy as np
from mxnet import autograd as ag, nd
from mxnet import gluon
from tqdm import tqdm
from common.evaluate import evaluate
from common.parser import TrainingParser
from common.utils import average_results, format_results, get_context, ... | 44.530612 | 120 | 0.634372 |
496d5dcb74bbf5f2fa198d1e5b24c0ea5fec7ece | 6,187 | py | Python | doc/tools/doc_merge.py | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 39 | 2018-12-17T07:11:37.000Z | 2021-09-28T10:02:45.000Z | doc/tools/doc_merge.py | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 38 | 2021-07-29T01:15:35.000Z | 2022-03-20T01:01:28.000Z | doc/tools/doc_merge.py | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2021-09-06T18:28:23.000Z | 2021-09-11T11:59:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import xml.etree.ElementTree as ET
tree = ET.parse(sys.argv[1])
old_doc = tree.getroot()
tree = ET.parse(sys.argv[2])
new_doc = tree.getroot()
f = file(sys.argv[3], "wb")
tab = 0
old_classes = {}
write_string(f, '<?xml version="1.0" encoding="UTF-8" ?>... | 28.643519 | 170 | 0.537902 |
496d668dab143daad188848fbd26c751e580633a | 357 | py | Python | contentcuration/contentcuration/migrations/0059_merge.py | Tlazypanda/studio | cd1c2f169c705027cdd808cbbcae907d0a9b21d2 | [
"MIT"
] | 1 | 2019-03-30T18:14:25.000Z | 2019-03-30T18:14:25.000Z | contentcuration/contentcuration/migrations/0059_merge.py | Tlazypanda/studio | cd1c2f169c705027cdd808cbbcae907d0a9b21d2 | [
"MIT"
] | 4 | 2016-05-06T17:19:30.000Z | 2019-03-15T01:51:24.000Z | contentcuration/contentcuration/migrations/0059_merge.py | Tlazypanda/studio | cd1c2f169c705027cdd808cbbcae907d0a9b21d2 | [
"MIT"
] | 4 | 2016-10-18T22:49:08.000Z | 2019-09-17T11:20:51.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-03-29 19:12
from __future__ import unicode_literals
from django.db import migrations
| 21 | 59 | 0.680672 |
496df5ac2b816d0d93ed95d0c8119c0af62b55d9 | 91 | py | Python | controller/ORCA_CLEAN/execute.py | nestorcalvo/Backend-AudioClean | 7edb373c518193bc5643e9524d78d9ba32163b3f | [
"MIT"
] | null | null | null | controller/ORCA_CLEAN/execute.py | nestorcalvo/Backend-AudioClean | 7edb373c518193bc5643e9524d78d9ba32163b3f | [
"MIT"
] | null | null | null | controller/ORCA_CLEAN/execute.py | nestorcalvo/Backend-AudioClean | 7edb373c518193bc5643e9524d78d9ba32163b3f | [
"MIT"
] | null | null | null | from predict import predict
if __name__ == "__main__":
# predict()
print("A ")
| 15.166667 | 27 | 0.604396 |
496f6fa945313ae8eb812d0256476b19fbb908f6 | 174 | py | Python | fperms_iscore/main.py | druids/django-fperms-iscore | 8e919cdc70ed57e0eb6407469de9ef2441ae06ad | [
"MIT"
] | 1 | 2019-10-07T12:40:38.000Z | 2019-10-07T12:40:38.000Z | fperms_iscore/main.py | druids/django-fperms-iscore | 8e919cdc70ed57e0eb6407469de9ef2441ae06ad | [
"MIT"
] | 3 | 2019-08-09T14:10:21.000Z | 2022-02-01T13:48:01.000Z | fperms_iscore/main.py | druids/django-fperms-iscore | 8e919cdc70ed57e0eb6407469de9ef2441ae06ad | [
"MIT"
] | null | null | null | from is_core.main import DjangoUiRestCore
from fperms_iscore.mixins import PermCoreMixin
| 19.333333 | 60 | 0.833333 |
496f9fb09ed8ca073a1b323b69ca4902f734d230 | 1,269 | py | Python | distanceCalc.py | jmoehler/CityDistance | 0a7eb898db8ea0dbada43239652ae4aad935dda3 | [
"MIT"
] | null | null | null | distanceCalc.py | jmoehler/CityDistance | 0a7eb898db8ea0dbada43239652ae4aad935dda3 | [
"MIT"
] | null | null | null | distanceCalc.py | jmoehler/CityDistance | 0a7eb898db8ea0dbada43239652ae4aad935dda3 | [
"MIT"
] | null | null | null | from math import cos, acos, pi, sqrt, sin | 34.297297 | 149 | 0.624901 |
496fe4328017b0a5588279aa7e57db6731bb4964 | 95 | py | Python | zoo/auditing/apps.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | 90 | 2018-11-20T10:58:24.000Z | 2022-02-19T16:12:46.000Z | zoo/auditing/apps.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | 348 | 2018-11-21T09:22:31.000Z | 2021-11-03T13:45:08.000Z | zoo/auditing/apps.py | aexvir/the-zoo | 7816afb9a0a26c6058b030b4a987c73e952d92bd | [
"MIT"
] | 11 | 2018-12-08T18:42:07.000Z | 2021-02-21T06:27:58.000Z | from django.apps import AppConfig
| 15.833333 | 33 | 0.757895 |
49706257061fd5cb42e071e2e21ada1c26eefe8c | 593 | py | Python | graviteeio_cli/commands/apim/apis/definition.py | Shaker5191/graviteeio-cli | 318748bb8e631743ea58afaee24333249ca3d227 | [
"Apache-2.0"
] | null | null | null | graviteeio_cli/commands/apim/apis/definition.py | Shaker5191/graviteeio-cli | 318748bb8e631743ea58afaee24333249ca3d227 | [
"Apache-2.0"
] | null | null | null | graviteeio_cli/commands/apim/apis/definition.py | Shaker5191/graviteeio-cli | 318748bb8e631743ea58afaee24333249ca3d227 | [
"Apache-2.0"
] | null | null | null | import click
from .definition_group.apply import apply
from .definition_group.diff import diff
from .definition_group.generate import generate
from .definition_group.create import create
# from .definition_group.lint import lint
definition.add_command(apply)
definition.add_command(diff)
definition.add_command(creat... | 26.954545 | 91 | 0.819562 |
497231bff7e8e9d345553a23f55adb1bd3c5a759 | 1,761 | py | Python | graphx.py | clever-username/baseball-card-inventory | 9940ba746072892961b7ade586e63f7deb26d2e6 | [
"MIT"
] | 1 | 2021-05-18T21:32:43.000Z | 2021-05-18T21:32:43.000Z | graphx.py | clever-username/baseball-card-inventory | 9940ba746072892961b7ade586e63f7deb26d2e6 | [
"MIT"
] | null | null | null | graphx.py | clever-username/baseball-card-inventory | 9940ba746072892961b7ade586e63f7deb26d2e6 | [
"MIT"
] | 2 | 2015-05-18T14:52:01.000Z | 2015-05-19T18:21:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Simple color picker program."""
BANNER = """ .::::::::::::::::::::::::::::::::::::::::::::::::.
.. .... ..
.. ...... ... ..
... | 60.724138 | 76 | 0.244747 |
4972f556700ff0374ba0d495d120ef3679c33357 | 1,176 | py | Python | src/examples/colors.py | schneiderfelipe/kay | a7bf69e3bbd1b845286667b20eb1fba88faf9ea4 | [
"MIT"
] | 14 | 2021-11-18T14:56:48.000Z | 2022-03-26T08:02:13.000Z | src/examples/colors.py | getcuia/cuia | 685d258b3cb366d40100e6a563661b307aef5ae3 | [
"MIT"
] | 8 | 2021-11-25T13:47:12.000Z | 2022-03-25T12:01:09.000Z | src/examples/colors.py | schneiderfelipe/kay | a7bf69e3bbd1b845286667b20eb1fba88faf9ea4 | [
"MIT"
] | null | null | null | """An example of using colors module."""
import asyncio
from typing import Text
import cuia
if __name__ == "__main__":
asyncio.run(main())
| 26.727273 | 68 | 0.536565 |
49733958b3756fb3220a69c0ceb6f8c4a2dd5ef8 | 2,571 | py | Python | app/voxity/channel.py | voxity/vox-ui-api | 9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5 | [
"MIT"
] | null | null | null | app/voxity/channel.py | voxity/vox-ui-api | 9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5 | [
"MIT"
] | null | null | null | app/voxity/channel.py | voxity/vox-ui-api | 9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from flask import current_app
from . import connectors, check_respons, pager_dict
from .objects.channel import Channel
def get(ret_object=False, **kwargs):
"""
:retyp: list
:return: device list
"""
con = co... | 25.205882 | 78 | 0.525088 |
49736e792f64fdf62a5e05e4cdd1a7fca2758ba4 | 1,637 | py | Python | chapter 2 - linked list/2.7.py | anuraagdjain/cracking_the_coding_interview | 09083b4c464f41d5752c7ca3d27ab7c992793619 | [
"MIT"
] | null | null | null | chapter 2 - linked list/2.7.py | anuraagdjain/cracking_the_coding_interview | 09083b4c464f41d5752c7ca3d27ab7c992793619 | [
"MIT"
] | null | null | null | chapter 2 - linked list/2.7.py | anuraagdjain/cracking_the_coding_interview | 09083b4c464f41d5752c7ca3d27ab7c992793619 | [
"MIT"
] | null | null | null | from linkedlist import LinkedList
from node import Node
if __name__ == "__main__":
a = Node(1)
b = Node(2)
c = Node(7)
d = Node(6)
e = Node(4)
f = Node(9)
g = Node(5)
h = Node(1)
i = Node(3)
x = Node(1)
y = Node(2)
z = Node(7)
z.next = y
y.next = x
i... | 18.602273 | 73 | 0.542456 |
4973e2d2ceab6b66fabf235caf79153e33be991a | 2,307 | py | Python | app_core/api/comments.py | Great-Li-Xin/LiCMS | 9d7f78647766b49a325123f4b5ad59d6a1808eb7 | [
"MIT"
] | 9 | 2020-02-18T01:50:17.000Z | 2020-05-26T09:25:41.000Z | app_core/api/comments.py | realJustinLee/LiCMS | 9d7f78647766b49a325123f4b5ad59d6a1808eb7 | [
"MIT"
] | 1 | 2021-04-19T15:26:20.000Z | 2021-04-19T15:26:20.000Z | app_core/api/comments.py | Great-Li-Xin/LiCMS | 9d7f78647766b49a325123f4b5ad59d6a1808eb7 | [
"MIT"
] | 5 | 2020-02-18T01:50:19.000Z | 2020-05-26T09:25:45.000Z | from flask import jsonify, request, g, url_for, current_app
from app_core import db
from app_core.api import api
from app_core.api.decorators import permission_required
from app_core.models import Post, Permission, Comment
| 33.926471 | 107 | 0.686173 |
4974d4d303e4a516e97419ba5b4f79eb5a463128 | 2,557 | py | Python | ipyhop/state.py | YashBansod/IPyHOP | f3b75b420e470c693606a67cc70bdcb24eccda62 | [
"BSD-3-Clause"
] | null | null | null | ipyhop/state.py | YashBansod/IPyHOP | f3b75b420e470c693606a67cc70bdcb24eccda62 | [
"BSD-3-Clause"
] | null | null | null | ipyhop/state.py | YashBansod/IPyHOP | f3b75b420e470c693606a67cc70bdcb24eccda62 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
File Description: File used for definition of State Class.
"""
# ****************************************** Libraries to be imported ****************************************** #
from copy import deepcopy
# ****************************************** Class Declaration Start *****... | 39.953125 | 120 | 0.431756 |
4974d677e63b39744893c4f6fa71c6ce00ac7913 | 2,240 | py | Python | ckanext/scheming/logic.py | vrk-kpa/ckanext-scheming | b82e20e04acdc4a71163675f843ac9be74f29d41 | [
"MIT"
] | null | null | null | ckanext/scheming/logic.py | vrk-kpa/ckanext-scheming | b82e20e04acdc4a71163675f843ac9be74f29d41 | [
"MIT"
] | null | null | null | ckanext/scheming/logic.py | vrk-kpa/ckanext-scheming | b82e20e04acdc4a71163675f843ac9be74f29d41 | [
"MIT"
] | 1 | 2021-12-15T12:50:40.000Z | 2021-12-15T12:50:40.000Z | from ckantoolkit import get_or_bust, side_effect_free, ObjectNotFound
from ckanext.scheming.helpers import (
scheming_dataset_schemas, scheming_get_dataset_schema,
scheming_group_schemas, scheming_get_group_schema,
scheming_organization_schemas, scheming_get_organization_schema,
)
| 28 | 78 | 0.729018 |
49755e37e2029b777679857be7a2f1b70a206d0d | 2,700 | py | Python | omnithinker/api/nytimes.py | stuycs-softdev-fall-2013/proj2-pd6-04-omnithinker | 53bf397ce2f67e7d5c5689486ab75475e99b0eba | [
"MIT",
"BSD-3-Clause"
] | 1 | 2022-01-18T02:03:15.000Z | 2022-01-18T02:03:15.000Z | omnithinker/api/nytimes.py | stuycs-softdev-fall-2013/proj2-pd6-04-omnithinker | 53bf397ce2f67e7d5c5689486ab75475e99b0eba | [
"MIT",
"BSD-3-Clause"
] | null | null | null | omnithinker/api/nytimes.py | stuycs-softdev-fall-2013/proj2-pd6-04-omnithinker | 53bf397ce2f67e7d5c5689486ab75475e99b0eba | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import json
from urllib import urlopen
# http://api.nytimes.com/svc/search/v2/articlesearch.json?fq=Obama&FACET_FIELD=day_of_week&BEGIN_DATE=19000101
# &API-KEY=5772CD9A42F195C96DA0E930A7182688:14:68439177
# The original link is above. What happens is because we don't specify an end date, the panda a... | 35.526316 | 153 | 0.605185 |
4975838c1788d4788a4a9397bb1062a6a910a29e | 694 | py | Python | tests/test_pydantic_integration.py | bsnacks000/yearmonth | c6a6084931e6cc4696de5f8a7f8e48ceca83b944 | [
"MIT"
] | null | null | null | tests/test_pydantic_integration.py | bsnacks000/yearmonth | c6a6084931e6cc4696de5f8a7f8e48ceca83b944 | [
"MIT"
] | null | null | null | tests/test_pydantic_integration.py | bsnacks000/yearmonth | c6a6084931e6cc4696de5f8a7f8e48ceca83b944 | [
"MIT"
] | null | null | null | from typing import List
from yearmonth.yearmonth import YearMonth
import pydantic
| 22.387097 | 71 | 0.665706 |
4975be83811ebc74df1baade17e5a1895d1cf649 | 353 | py | Python | C_D_Playlist.py | fairoz-ahmed/Casper_Player | f71a26002907e474a9274771565ce781beddcca4 | [
"MIT"
] | null | null | null | C_D_Playlist.py | fairoz-ahmed/Casper_Player | f71a26002907e474a9274771565ce781beddcca4 | [
"MIT"
] | null | null | null | C_D_Playlist.py | fairoz-ahmed/Casper_Player | f71a26002907e474a9274771565ce781beddcca4 | [
"MIT"
] | null | null | null | import tkinter.messagebox
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
import threading
from pygame import mixer
from mutagen.mp3 import MP3
import os
import easygui
import time
import playlist_window as pw
import Main as main
#from PIL import ImageTk,Image
| 20.764706 | 31 | 0.78187 |
49777977c495be3e64d10459c0324e75b00b5f3b | 569 | py | Python | docker-image/render-template.py | osism/generics | 2dd914f2338c2d60d1595d7cdc4db0c107a9fb47 | [
"Apache-2.0"
] | null | null | null | docker-image/render-template.py | osism/generics | 2dd914f2338c2d60d1595d7cdc4db0c107a9fb47 | [
"Apache-2.0"
] | 3 | 2020-12-10T09:57:02.000Z | 2020-12-10T09:57:17.000Z | docker-image/render-template.py | osism/travis | 2dd914f2338c2d60d1595d7cdc4db0c107a9fb47 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import jinja2
import yaml
with open(".information.yml") as fp:
information = yaml.safe_load(fp)
loader = jinja2.FileSystemLoader(searchpath="")
environment = jinja2.Environment(loader=loader, keep_trailing_newline=True)
template = environment.get_template(sys.argv[1])
result = template.rend... | 27.095238 | 75 | 0.72935 |
49788254641401f0ac3bea81c52abecf9425c9b7 | 58 | py | Python | test/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | 13 | 2020-02-24T18:29:15.000Z | 2021-12-28T09:41:35.000Z | test/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | null | null | null | test/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | 3 | 2020-07-21T04:32:45.000Z | 2021-10-21T11:00:56.000Z | # AUTHOR: Louis Tsiattalou
# DESCRIPTION: Init for Tests.
| 19.333333 | 30 | 0.758621 |
4978db654876ffc9e3f0801f73bab29baba94038 | 29,541 | py | Python | isitek.py | will-bainbridge/ISITEK | 53e90e0511bbd7cd08614b943c1286c56adbee5e | [
"MIT"
] | 3 | 2018-06-26T15:04:46.000Z | 2019-09-14T09:23:44.000Z | isitek.py | will-bainbridge/ISITEK | 53e90e0511bbd7cd08614b943c1286c56adbee5e | [
"MIT"
] | null | null | null | isitek.py | will-bainbridge/ISITEK | 53e90e0511bbd7cd08614b943c1286c56adbee5e | [
"MIT"
] | 3 | 2016-11-28T12:19:37.000Z | 2020-02-04T00:18:56.000Z | #!/usr/bin/python
################################################################################
import numpy
import os
import cPickle as pickle
import scipy.misc
import scipy.sparse
import scipy.sparse.linalg
import scipy.special
import sys
import time
###########################################################... | 34.35 | 173 | 0.597982 |
497a5c9b65658e4fea7858123fdca1c39b46407f | 2,343 | py | Python | holobot/framework/kernel.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 1 | 2021-05-24T00:17:46.000Z | 2021-05-24T00:17:46.000Z | holobot/framework/kernel.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 41 | 2021-03-24T22:50:09.000Z | 2021-12-17T12:15:13.000Z | holobot/framework/kernel.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | null | null | null | from holobot.framework.lifecycle import LifecycleManagerInterface
from holobot.sdk import KernelInterface
from holobot.sdk.database import DatabaseManagerInterface
from holobot.sdk.integration import IntegrationInterface
from holobot.sdk.ioc.decorators import injectable
from holobot.sdk.logging import LogInterface
from... | 45.057692 | 126 | 0.722151 |
497a5f4c2e39ef62c200675216c42fbc21c52436 | 34 | py | Python | tests/snmp/test_base.py | zohassadar/netdisc | 9ce4d5c2b0f30d36e71118ffbe6b7ffd93e0dfc8 | [
"MIT"
] | null | null | null | tests/snmp/test_base.py | zohassadar/netdisc | 9ce4d5c2b0f30d36e71118ffbe6b7ffd93e0dfc8 | [
"MIT"
] | null | null | null | tests/snmp/test_base.py | zohassadar/netdisc | 9ce4d5c2b0f30d36e71118ffbe6b7ffd93e0dfc8 | [
"MIT"
] | null | null | null | from netdisc.snmp import snmpbase
| 17 | 33 | 0.852941 |
497aef1b3a2cad12da85ea306e770352bb104646 | 13,063 | py | Python | venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_svm.py | haind27/test01 | 7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852 | [
"MIT"
] | 37 | 2017-08-15T15:02:43.000Z | 2021-07-23T03:44:31.000Z | venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_svm.py | haind27/test01 | 7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852 | [
"MIT"
] | 12 | 2018-01-10T05:25:25.000Z | 2021-11-28T06:55:48.000Z | venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_svm.py | haind27/test01 | 7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852 | [
"MIT"
] | 49 | 2017-08-15T09:52:13.000Z | 2022-03-21T17:11:54.000Z | #!/usr/bin/python
# (c) 2018, NetApp, Inc
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | 37.645533 | 86 | 0.580724 |
497d558f6807d6cee34934135fc08d3e5e24fbf5 | 487 | py | Python | server/apps/api/notice/migrations/0003_alter_event_priority.py | NikitaGrishchenko/csp-tender-hack-server | 56055f51bf472f0f1e56b419a48d993cc91e0f3a | [
"MIT"
] | null | null | null | server/apps/api/notice/migrations/0003_alter_event_priority.py | NikitaGrishchenko/csp-tender-hack-server | 56055f51bf472f0f1e56b419a48d993cc91e0f3a | [
"MIT"
] | null | null | null | server/apps/api/notice/migrations/0003_alter_event_priority.py | NikitaGrishchenko/csp-tender-hack-server | 56055f51bf472f0f1e56b419a48d993cc91e0f3a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-27 12:21
from django.db import migrations, models
| 25.631579 | 151 | 0.616016 |
497e1c5d29374050c770b786c91bc5c1ccabcd85 | 650 | py | Python | gdpr_assist/app_settings.py | mserrano07/django-gdpr-assist | 3c23d0aadadc676c128ef57aebc36570f3936ff1 | [
"BSD-3-Clause"
] | null | null | null | gdpr_assist/app_settings.py | mserrano07/django-gdpr-assist | 3c23d0aadadc676c128ef57aebc36570f3936ff1 | [
"BSD-3-Clause"
] | null | null | null | gdpr_assist/app_settings.py | mserrano07/django-gdpr-assist | 3c23d0aadadc676c128ef57aebc36570f3936ff1 | [
"BSD-3-Clause"
] | null | null | null | """
Settings
"""
from yaa_settings import AppSettings
| 28.26087 | 79 | 0.755385 |
497f0f54faebc451ce2dc9315e86227db65fd970 | 2,382 | py | Python | config-tests/test_server_details.py | mozilla-services/kinto-integration-tests | ec5199f5e9c7452c78d8f6fb41dcaa02504f34f7 | [
"Apache-2.0"
] | 2 | 2017-09-01T19:41:43.000Z | 2018-11-08T14:42:00.000Z | config-tests/test_server_details.py | Kinto/kinto-integration-tests | ec5199f5e9c7452c78d8f6fb41dcaa02504f34f7 | [
"Apache-2.0"
] | 89 | 2017-01-25T21:44:26.000Z | 2021-01-01T08:39:07.000Z | config-tests/test_server_details.py | mozilla-services/kinto-integration-tests | ec5199f5e9c7452c78d8f6fb41dcaa02504f34f7 | [
"Apache-2.0"
] | 6 | 2017-03-14T13:40:38.000Z | 2020-04-03T15:32:57.000Z | import pytest
import requests
def aslist_cronly(value):
""" Split the input on lines if it's a valid string type"""
if isinstance(value, str):
value = filter(None, [x.strip() for x in value.splitlines()])
return list(value)
def aslist(value, flatten=True):
""" Return a list of strings, separ... | 25.891304 | 72 | 0.665407 |
49803c62b083c02f67f3cea8900cbba0f19179c1 | 635 | py | Python | tests/db/test_factory.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | tests/db/test_factory.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | tests/db/test_factory.py | albertteoh/data_pipeline | a99f1c7412375b3e9f4115108fcdde517b2e71a6 | [
"Apache-2.0"
] | null | null | null | import pytest
import data_pipeline.db.factory as dbfactory
import data_pipeline.constants.const as const
from data_pipeline.db.exceptions import UnsupportedDbTypeError
| 30.238095 | 62 | 0.738583 |
49806a87d676d3fa46db3e3b6f5f01048f4d408e | 5,142 | py | Python | etl/data_extraction/scrapers/sozialeinsatz.py | Betadinho/einander-helfen | 272f11397d80ab5267f39a7b36734495f1c00b0c | [
"MIT"
] | 7 | 2020-04-23T20:16:11.000Z | 2022-01-04T14:57:16.000Z | etl/data_extraction/scrapers/sozialeinsatz.py | Betadinho/einander-helfen | 272f11397d80ab5267f39a7b36734495f1c00b0c | [
"MIT"
] | 361 | 2020-04-23T17:20:14.000Z | 2022-03-02T11:29:45.000Z | etl/data_extraction/scrapers/sozialeinsatz.py | Betadinho/einander-helfen | 272f11397d80ab5267f39a7b36734495f1c00b0c | [
"MIT"
] | 1 | 2021-11-29T06:02:52.000Z | 2021-11-29T06:02:52.000Z | import math
import re
from data_extraction.scraper import Scraper
| 36.992806 | 110 | 0.556593 |
4980cf418b1fec3383b451b2c9e98a8148676569 | 1,671 | py | Python | fitbenchmarking/parsing/base_parser.py | arm61/fitbenchmarking | c745c684e3ca4895a666eb863426746d8f06636c | [
"BSD-3-Clause"
] | null | null | null | fitbenchmarking/parsing/base_parser.py | arm61/fitbenchmarking | c745c684e3ca4895a666eb863426746d8f06636c | [
"BSD-3-Clause"
] | null | null | null | fitbenchmarking/parsing/base_parser.py | arm61/fitbenchmarking | c745c684e3ca4895a666eb863426746d8f06636c | [
"BSD-3-Clause"
] | null | null | null | """
Implements the base Parser as a Context Manager.
"""
from abc import ABCMeta, abstractmethod
| 26.109375 | 78 | 0.581089 |
498189a8b987526464b2fd92c5dba221e497e78b | 10,223 | py | Python | src/offline/news/item-feature-update-batch/src/item-feature-update-batch.py | shenshaoyong/recommender-system-dev-workshop-code | ce422627181472ad513f473b65bf42410c46304a | [
"Apache-2.0"
] | 1 | 2021-07-14T09:15:40.000Z | 2021-07-14T09:15:40.000Z | src/offline/news/item-feature-update-batch/src/item-feature-update-batch.py | shenshaoyong/recommender-system-dev-workshop-code | ce422627181472ad513f473b65bf42410c46304a | [
"Apache-2.0"
] | null | null | null | src/offline/news/item-feature-update-batch/src/item-feature-update-batch.py | shenshaoyong/recommender-system-dev-workshop-code | ce422627181472ad513f473b65bf42410c46304a | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
# from tqdm import tqdm
import argparse
import glob
import os
import pickle
import boto3
import numpy as np
import pandas as pd
import encoding
import kg
# tqdm.pandas()
# pandarallel.initialize(progress_bar=True)
# bucket = os.environ.get("BUCKET_NAME", " ")
# raw_data_folder ... | 35.010274 | 183 | 0.702142 |
498246054897849d72b07dc078d8b150091d7c85 | 5,054 | py | Python | wirepas_backend_client/tools/utils.py | bencorrado/backend-client | 628c9999f8d98b0c1e56d87bfd2dbf1ca1ea138c | [
"Apache-2.0"
] | null | null | null | wirepas_backend_client/tools/utils.py | bencorrado/backend-client | 628c9999f8d98b0c1e56d87bfd2dbf1ca1ea138c | [
"Apache-2.0"
] | null | null | null | wirepas_backend_client/tools/utils.py | bencorrado/backend-client | 628c9999f8d98b0c1e56d87bfd2dbf1ca1ea138c | [
"Apache-2.0"
] | 1 | 2021-03-12T17:20:56.000Z | 2021-03-12T17:20:56.000Z | """
Utils
=======
Contains multipurpose utilities for serializing objects and obtaining
arguments from the command line.
.. Copyright:
Copyright 2019 Wirepas Ltd under Apache License, Version 2.0.
See file LICENSE for full license details.
"""
import binascii
import datetime
impor... | 25.917949 | 75 | 0.565295 |
4984d7b37bc39c03cdb2148c437346639993c3a9 | 25,733 | py | Python | pysph/base/tree/point_tree.py | nauaneed/pysph-nav | 66589021f453f25b77549f6f102b6afcc89e338d | [
"BSD-3-Clause"
] | 1 | 2022-03-15T11:48:17.000Z | 2022-03-15T11:48:17.000Z | pysph/base/tree/point_tree.py | nauaneed/pysph-nav | 66589021f453f25b77549f6f102b6afcc89e338d | [
"BSD-3-Clause"
] | null | null | null | pysph/base/tree/point_tree.py | nauaneed/pysph-nav | 66589021f453f25b77549f6f102b6afcc89e338d | [
"BSD-3-Clause"
] | null | null | null | from pysph.base.tree.tree import Tree
from pysph.base.tree.helpers import ParticleArrayWrapper, get_helper, \
make_vec_dict, ctype_to_dtype, get_vector_dtype
from compyle.opencl import profile_kernel, DeviceWGSException, get_queue, \
named_profile, get_context
from compyle.array import Array
from pytools import... | 38.350224 | 80 | 0.522636 |
49850af7a6ca8eea66c58c865c235297d9610189 | 2,815 | py | Python | senti_analysis/data.py | hotbaby/sentiment-analysis | efb880870d905c4c02528d7d242ba06b90f0e259 | [
"MIT"
] | null | null | null | senti_analysis/data.py | hotbaby/sentiment-analysis | efb880870d905c4c02528d7d242ba06b90f0e259 | [
"MIT"
] | 2 | 2020-09-25T21:17:58.000Z | 2022-02-10T00:28:19.000Z | senti_analysis/data.py | hotbaby/sentiment-analysis | efb880870d905c4c02528d7d242ba06b90f0e259 | [
"MIT"
] | null | null | null | # encoding: utf8
import numpy as np
import pandas as pd
from collections import OrderedDict
from senti_analysis import config
from senti_analysis import constants
from senti_analysis.preprocess import (load_tokenizer, load_sentences,
encode_sentence, label_transform)
def load_... | 30.597826 | 99 | 0.713677 |
4985efb3cec903d0cb0d0b5c74721d37a531530f | 93 | py | Python | pyball/models/config/stats_group.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 74 | 2018-03-04T22:58:46.000Z | 2021-07-06T12:28:50.000Z | pyball/models/config/stats_group.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 18 | 2018-03-10T19:17:54.000Z | 2020-01-04T15:42:47.000Z | pyball/models/config/stats_group.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 13 | 2018-03-06T02:39:38.000Z | 2020-01-17T04:38:53.000Z | from dataclasses import dataclass
| 13.285714 | 33 | 0.774194 |
498724366b10f885fa79f500eaf773989a21c6f1 | 358 | py | Python | tests/test_skeleton_says.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | tests/test_skeleton_says.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | tests/test_skeleton_says.py | thomascobb/skeleton-says | e2ea189e075a0847a6679dc066bad47ced5d397a | [
"Apache-2.0"
] | null | null | null | from skeleton_says import say
skeleton_saying_hello = r"""
-------
( Hello )
-------
\
\ .-.
\(o.o)
|=|
__|__
//.=|=.\\
// .=|=. \\
\\ .=|=. //
\\(_=_)//
(:| |:)
|| ||
() ()
|| ||
|| ||
l42 ==' '==
"""
| 13.259259 | 52 | 0.379888 |
49880bf16640eed07e42f1ea42b7368e4b515269 | 1,710 | py | Python | open_connect/accounts/tests/test_tasks.py | lpatmo/actionify_the_news | 998d8ca6b35d0ef1b16efca70f50e59503f5a62d | [
"MIT"
] | 66 | 2015-11-30T20:35:38.000Z | 2019-06-12T17:40:32.000Z | open_connect/accounts/tests/test_tasks.py | lpatmo/actionify_the_news | 998d8ca6b35d0ef1b16efca70f50e59503f5a62d | [
"MIT"
] | 18 | 2015-11-30T22:03:05.000Z | 2019-07-02T00:50:29.000Z | open_connect/accounts/tests/test_tasks.py | lpatmo/actionify_the_news | 998d8ca6b35d0ef1b16efca70f50e59503f5a62d | [
"MIT"
] | 11 | 2015-11-30T20:56:01.000Z | 2019-07-01T17:06:09.000Z | """Tests for accounts tasks."""
from datetime import datetime
from unittest import TestCase
from django.conf import settings
from django.utils.timezone import now
from mock import patch
from model_mommy import mommy
from open_connect.accounts.models import Invite
from open_connect.accounts.tasks import (
render_a... | 38 | 78 | 0.724561 |
49882b0d53f39e7e8ebf679902e5c955c3e1b55f | 944 | py | Python | tests/inputs/config.py | hsh-nids/python-betterproto | f5d3b48b1aa49fd64513907ed70124b32758ad3e | [
"MIT"
] | 708 | 2019-10-11T06:23:40.000Z | 2022-03-31T09:39:08.000Z | tests/inputs/config.py | hsh-nids/python-betterproto | f5d3b48b1aa49fd64513907ed70124b32758ad3e | [
"MIT"
] | 302 | 2019-11-11T22:09:21.000Z | 2022-03-29T11:21:04.000Z | tests/inputs/config.py | hsh-nids/python-betterproto | f5d3b48b1aa49fd64513907ed70124b32758ad3e | [
"MIT"
] | 122 | 2019-12-04T16:22:53.000Z | 2022-03-20T09:31:10.000Z | # Test cases that are expected to fail, e.g. unimplemented features or bug-fixes.
# Remove from list when fixed.
xfail = {
"namespace_keywords", # 70
"googletypes_struct", # 9
"googletypes_value", # 9
"import_capitalized_package",
"example", # This is the example in the readme. Not a test.
}
se... | 32.551724 | 81 | 0.733051 |
4989cd340b09d2674ba44f9caf4ca76681a1034f | 1,476 | py | Python | examples/wagsley/wagsley/urls.py | Blogsley/blogsley | 0ca17397af5d53c2fac3affb5eacec2f8d941d37 | [
"MIT"
] | null | null | null | examples/wagsley/wagsley/urls.py | Blogsley/blogsley | 0ca17397af5d53c2fac3affb5eacec2f8d941d37 | [
"MIT"
] | null | null | null | examples/wagsley/wagsley/urls.py | Blogsley/blogsley | 0ca17397af5d53c2fac3affb5eacec2f8d941d37 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.urls import include, path, re_path
from django.contrib import admin
from ariadne_django.views import GraphQLView
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.core import urls as wagtail_urls
from wagtail.documents import urls as wagtaildocs_urls
from p... | 28.941176 | 80 | 0.735095 |
4989d46fdda2f05efd221caf77a2291b849c31f5 | 1,311 | py | Python | tests/unit/core/test_certify_timestamp.py | sys-git/certifiable | a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8 | [
"MIT"
] | null | null | null | tests/unit/core/test_certify_timestamp.py | sys-git/certifiable | a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8 | [
"MIT"
] | 311 | 2017-09-14T22:34:21.000Z | 2022-03-27T18:30:17.000Z | tests/unit/core/test_certify_timestamp.py | sys-git/certifiable | a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `certifiable.core.certify_timestamp` method."""
import datetime
import unittest
from decimal import Decimal
from certifiable import CertifierTypeError
from certifiable.core import certify_timestamp
if __name__ == '__main__':
unittest.main()
| 22.220339 | 64 | 0.514111 |
498b4c183ee96795b8b620014ec7c0080e178c36 | 1,477 | py | Python | rtc_handle_example/replace/com_replace_impl.py | takashi-suehiro/rtmtools | 56ee92d3b3f2ea73d7fa78dfabe6a098e06f6215 | [
"MIT"
] | null | null | null | rtc_handle_example/replace/com_replace_impl.py | takashi-suehiro/rtmtools | 56ee92d3b3f2ea73d7fa78dfabe6a098e06f6215 | [
"MIT"
] | null | null | null | rtc_handle_example/replace/com_replace_impl.py | takashi-suehiro/rtmtools | 56ee92d3b3f2ea73d7fa78dfabe6a098e06f6215 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
\file com_replace_idl_examplefile.py
\brief Python example implementations generated from com_replace.idl
\date $Date$
"""
import omniORB
from omniORB import CORBA, PortableServer
import _GlobalIDL, _GlobalIDL__POA
if __name__ == "__main__":
... | 22.723077 | 69 | 0.666892 |
498d4cc3d6311bb103e45b049930a347b5d6e562 | 588 | py | Python | pyknp_eventgraph/utils.py | ku-nlp/pyknp-eventgraph | 927128ac41098bc45637b02a3c2420d345a41347 | [
"BSD-3-Clause"
] | 7 | 2019-11-23T10:57:35.000Z | 2021-01-03T22:40:13.000Z | pyknp_eventgraph/utils.py | ku-nlp/pyknp-eventgraph | 927128ac41098bc45637b02a3c2420d345a41347 | [
"BSD-3-Clause"
] | 1 | 2021-11-05T02:19:17.000Z | 2021-11-05T02:19:17.000Z | pyknp_eventgraph/utils.py | ku-nlp/pyknp-eventgraph | 927128ac41098bc45637b02a3c2420d345a41347 | [
"BSD-3-Clause"
] | null | null | null | from io import open
from typing import List
from pyknp import KNP, BList
def read_knp_result_file(filename: str) -> List[BList]:
"""Read a KNP result file.
Args:
filename: A filename.
Returns:
A list of :class:`pyknp.knp.blist.BList` objects.
"""
knp = KNP()
blists = []
... | 22.615385 | 71 | 0.55102 |
498d7bdbff51b3b458f67d9c20042b421a42d945 | 2,272 | py | Python | freshlybuiltimagebol/OCR_Printed_Text.py | komal3120/freshlybuiltimagebol | fc46f687e326d53ec485e74a943e45b786dad36d | [
"MIT"
] | 3 | 2020-08-01T10:27:58.000Z | 2020-08-09T20:56:49.000Z | freshlybuiltimagebol/OCR_Printed_Text.py | komal3120/freshlybuiltimagebol | fc46f687e326d53ec485e74a943e45b786dad36d | [
"MIT"
] | null | null | null | freshlybuiltimagebol/OCR_Printed_Text.py | komal3120/freshlybuiltimagebol | fc46f687e326d53ec485e74a943e45b786dad36d | [
"MIT"
] | 1 | 2020-06-28T18:02:52.000Z | 2020-06-28T18:02:52.000Z | from cv2 import fastNlMeansDenoisingColored
from cv2 import cvtColor
from cv2 import bitwise_not,threshold,getRotationMatrix2D
from cv2 import warpAffine,filter2D,imread
from cv2 import THRESH_BINARY,COLOR_BGR2GRAY,THRESH_OTSU
from cv2 import INTER_CUBIC,BORDER_REPLICATE,minAreaRect
from numpy import column_stack,array... | 38.508475 | 92 | 0.676496 |
498dafdb0fb28c8d01da1b1b893e4aaeb5ff08f2 | 5,944 | py | Python | program/tests/integration_tests_output/graph/graph.py | alienbri/audaces-perps | aa5b0e14eae4944dd0a18af60a72b119ff17fd84 | [
"MIT"
] | null | null | null | program/tests/integration_tests_output/graph/graph.py | alienbri/audaces-perps | aa5b0e14eae4944dd0a18af60a72b119ff17fd84 | [
"MIT"
] | null | null | null | program/tests/integration_tests_output/graph/graph.py | alienbri/audaces-perps | aa5b0e14eae4944dd0a18af60a72b119ff17fd84 | [
"MIT"
] | null | null | null | import yaml
import matplotlib.pyplot as plt
import math
from jsonmerge import merge
from datetime import datetime
import plotly as ply
import pandas as pd
import plotly.express as px
TRANSFORM = False
PLOT_MEMORY = True
NB_INSTRUCTIONS = 1000
f_value_props = {
# [Color, MinOffset, MaxOffset]
"total_collateral... | 37.383648 | 275 | 0.640646 |
498ebed60829fc81050f096acf226151f138af86 | 525 | py | Python | oTree/consent/__init__.py | jleutgeb/privilege | 2a4f15c98d94d9f1dbf1c4685c5e96d018d58abc | [
"MIT"
] | null | null | null | oTree/consent/__init__.py | jleutgeb/privilege | 2a4f15c98d94d9f1dbf1c4685c5e96d018d58abc | [
"MIT"
] | 11 | 2021-05-06T09:45:30.000Z | 2022-03-01T17:48:35.000Z | oTree/consent/__init__.py | jleutgeb/privilege | 2a4f15c98d94d9f1dbf1c4685c5e96d018d58abc | [
"MIT"
] | null | null | null | from otree.api import *
c = Currency
doc = """
Simple Consent App
Players may only continue after clicking the consent button.
"""
# PAGES
page_sequence = [Consent]
| 14.583333 | 61 | 0.693333 |
498efc2d71a44fd1bc6d2b0987f9eff5df4001b1 | 1,192 | py | Python | src/pytornado/_util.py | airinnova/pytornado | 6127f45af60ab05f15b441bc134089a7e7a59669 | [
"Linux-OpenIB"
] | 16 | 2019-08-13T18:49:14.000Z | 2022-01-11T15:41:12.000Z | src/pytornado/_util.py | airinnova/pytornado | 6127f45af60ab05f15b441bc134089a7e7a59669 | [
"Linux-OpenIB"
] | 24 | 2019-09-11T14:48:01.000Z | 2022-03-18T08:17:52.000Z | src/pytornado/_util.py | airinnova/pytornado | 6127f45af60ab05f15b441bc134089a7e7a59669 | [
"Linux-OpenIB"
] | 5 | 2019-09-20T18:45:45.000Z | 2020-12-08T01:44:43.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Copyright 2019-2020 Airinnova AB and the FramAT authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ... | 34.057143 | 80 | 0.59396 |
498f0ce62fa86447888328db5c5d83ceabc8b302 | 587 | py | Python | test/application/test_auth.py | Ashaba/API-Monitor | 533eb6698fcb5decb48f746784af6894844b3c69 | [
"MIT"
] | null | null | null | test/application/test_auth.py | Ashaba/API-Monitor | 533eb6698fcb5decb48f746784af6894844b3c69 | [
"MIT"
] | 22 | 2018-02-06T19:53:11.000Z | 2021-04-30T20:35:01.000Z | test/application/test_auth.py | Ashaba/API-Monitor | 533eb6698fcb5decb48f746784af6894844b3c69 | [
"MIT"
] | null | null | null | from test.base import BaseTestCase, user_payload
import json
| 32.611111 | 102 | 0.76661 |
498fe8e984fc4170d05d05875ef23082a63dec00 | 5,918 | py | Python | JumpscaleCore/core/generator/JSGenerator.py | grimpy/jumpscaleX_core | c24d6d47fccc0801e578fedb376ef110f7a00bad | [
"Apache-2.0"
] | null | null | null | JumpscaleCore/core/generator/JSGenerator.py | grimpy/jumpscaleX_core | c24d6d47fccc0801e578fedb376ef110f7a00bad | [
"Apache-2.0"
] | null | null | null | JumpscaleCore/core/generator/JSGenerator.py | grimpy/jumpscaleX_core | c24d6d47fccc0801e578fedb376ef110f7a00bad | [
"Apache-2.0"
] | null | null | null | import os
import fnmatch
from pathlib import Path
from jinja2 import Template
from .Metadata import Metadata
| 34.811765 | 109 | 0.535992 |
49905454a4a778d8f4095622f9b3c6a78a737493 | 76,810 | py | Python | h1/api/recovery_project_plan_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | h1/api/recovery_project_plan_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | h1/api/recovery_project_plan_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from h1.api_client import ApiClient, Endpoint as _Endpoint
from h1.model_utils import ( # noqa: F401
check_allowe... | 36.524013 | 137 | 0.442833 |
4992878d55b3a8da195170f6eea9d69be14347a9 | 2,059 | py | Python | days/day5.py | vanHavel/AdventOfCode2021 | a83ee21cffff56ba3f49de7af5113bf0b11fea7a | [
"MIT"
] | null | null | null | days/day5.py | vanHavel/AdventOfCode2021 | a83ee21cffff56ba3f49de7af5113bf0b11fea7a | [
"MIT"
] | null | null | null | days/day5.py | vanHavel/AdventOfCode2021 | a83ee21cffff56ba3f49de7af5113bf0b11fea7a | [
"MIT"
] | null | null | null | from collections import defaultdict
from typing import List, Tuple
from aocd import get_data, submit
DAY = 5
YEAR = 2021
if __name__ == '__main__':
input_data = get_data(day=DAY, year=YEAR)
ans1 = part1(input_data)
print(ans1)
#submit(answer=ans1, day=DAY, year=YEAR, part=1)
ans2 = part2(inpu... | 27.092105 | 61 | 0.4949 |
49936fb891f5aa506d6883922c089dfe1817eb4b | 1,108 | py | Python | 215.kthLargestElementInAnArray2.py | ColinTing/Algorithm | 02c8087503298f050deb0fbee6cb887b3aeb6592 | [
"MIT"
] | null | null | null | 215.kthLargestElementInAnArray2.py | ColinTing/Algorithm | 02c8087503298f050deb0fbee6cb887b3aeb6592 | [
"MIT"
] | null | null | null | 215.kthLargestElementInAnArray2.py | ColinTing/Algorithm | 02c8087503298f050deb0fbee6cb887b3aeb6592 | [
"MIT"
] | null | null | null | import random
list = [3,2,3,1,2,4,5,5,6]
k = 4
s = Solution()
print(s.findKthLargest(list,k)) | 25.767442 | 51 | 0.445848 |
4994b9856023b95cccc4144927c2909950d9bad5 | 383 | gyp | Python | binding.gyp | mceSystems/node-windows-pac-resolver | a1eaaa6b74d4e82218e6d975582aab121e12da6f | [
"MIT"
] | 1 | 2021-11-14T01:26:45.000Z | 2021-11-14T01:26:45.000Z | binding.gyp | mceSystems/node-windows-pac-resolver | a1eaaa6b74d4e82218e6d975582aab121e12da6f | [
"MIT"
] | 1 | 2021-08-31T21:38:42.000Z | 2021-08-31T21:38:42.000Z | binding.gyp | mceSystems/node-windows-pac-resolver | a1eaaa6b74d4e82218e6d975582aab121e12da6f | [
"MIT"
] | 1 | 2021-11-14T01:26:12.000Z | 2021-11-14T01:26:12.000Z | {
"targets": [
{
"target_name": "binding",
"sources": [
"native\\winhttpBindings.cpp"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"libraries": [
"WinHTTP.lib",
"-DelayLoad:node.exe"
],
"msbuild_settings": {
"ClCompile"... | 16.652174 | 68 | 0.48564 |
4994cdca869fe06dd8910a681063b2822b7a3d86 | 2,122 | py | Python | diplom_test/data_reader.py | CrackedSTone/algorithm-detects-liver-pathology | d52d08e4e6931b3502f083f20d6332f7b6839a3b | [
"Apache-2.0"
] | 8 | 2019-04-09T07:11:26.000Z | 2020-02-27T16:51:26.000Z | diplom_test/data_reader.py | il-yanko/algorithm-detects-liver-pathology | d52d08e4e6931b3502f083f20d6332f7b6839a3b | [
"Apache-2.0"
] | null | null | null | diplom_test/data_reader.py | il-yanko/algorithm-detects-liver-pathology | d52d08e4e6931b3502f083f20d6332f7b6839a3b | [
"Apache-2.0"
] | 2 | 2019-04-04T07:13:02.000Z | 2020-02-06T04:58:34.000Z | import glob
import numpy as np
#import cv2
from PIL import Image
#import os.path
# ALTERNATIVE LOADER:
'''
# process RGB/grayscale
def rgb_to_gray(rgb):
# scalar product of colors with certain theoretical coefficients according to the YUV system
return np.dot(rgb[..., :3], [0.299, 0.587, 0.114]).round(3).asty... | 29.068493 | 111 | 0.615928 |
49983ba3d7a780b5fb33eabb069b3531df6c3624 | 3,351 | py | Python | docs/conf.py | arashbm/dag-python | a62761d516daf3a129f6a75359e1b09047ede6f2 | [
"MIT"
] | null | null | null | docs/conf.py | arashbm/dag-python | a62761d516daf3a129f6a75359e1b09047ede6f2 | [
"MIT"
] | null | null | null | docs/conf.py | arashbm/dag-python | a62761d516daf3a129f6a75359e1b09047ede6f2 | [
"MIT"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# 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
# -- Path setup --------------------------------------------------------------
# If ex... | 28.887931 | 79 | 0.617428 |
4998582ea46c71688c285dfd2591280666ab63f8 | 1,455 | py | Python | libs/cloner.py | Rookout/log-scanner | bd8b940660a9f40068151dfca514e85aa730bfc0 | [
"Apache-2.0"
] | null | null | null | libs/cloner.py | Rookout/log-scanner | bd8b940660a9f40068151dfca514e85aa730bfc0 | [
"Apache-2.0"
] | 3 | 2021-05-05T18:30:21.000Z | 2022-03-10T11:32:52.000Z | libs/cloner.py | Rookout/log-scanner | bd8b940660a9f40068151dfca514e85aa730bfc0 | [
"Apache-2.0"
] | 1 | 2019-12-16T22:27:45.000Z | 2019-12-16T22:27:45.000Z | import os
import sys
import shutil
import random
import stat
import string
import logging
from git import Repo
try: # macOS
BASE_CLONE_LOCATION = os.path.join(os.path.dirname(sys.modules['__main__'].__file__), "current_clone")
except: # Windows
BASE_CLONE_LOCATION = os.path.join(os.getcwd(), "current_clone")
... | 30.957447 | 106 | 0.754639 |
499a41cfbffd9bf9473869aaf693707dd595ba03 | 6,671 | py | Python | tests/test_formDef.py | swhume/odmlib | 597f71c60f4c6bd8639c92e9fc0ae71b8a5416a7 | [
"MIT"
] | 9 | 2021-09-15T12:26:30.000Z | 2022-03-30T10:14:14.000Z | tests/test_formDef.py | swhume/odmlib | 597f71c60f4c6bd8639c92e9fc0ae71b8a5416a7 | [
"MIT"
] | 1 | 2021-09-28T09:05:01.000Z | 2021-09-28T09:05:01.000Z | tests/test_formDef.py | swhume/odmlib | 597f71c60f4c6bd8639c92e9fc0ae71b8a5416a7 | [
"MIT"
] | 1 | 2021-09-29T04:50:23.000Z | 2021-09-29T04:50:23.000Z | from unittest import TestCase
import json
import odmlib.odm_1_3_2.model as ODM
| 57.017094 | 122 | 0.665867 |
499a70e266d8579796d64d1f4d58f86d8e09e3c3 | 143 | py | Python | src/Utilities/__init__.py | sigseg5/nometa-tg | 7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032 | [
"MIT"
] | 3 | 2020-12-15T07:44:58.000Z | 2022-03-11T18:57:44.000Z | src/Utilities/__init__.py | sigseg5/nometa-tg | 7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032 | [
"MIT"
] | null | null | null | src/Utilities/__init__.py | sigseg5/nometa-tg | 7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032 | [
"MIT"
] | null | null | null | from src.Utilities import cmd_logger
from src.Utilities import metadata_worker
from src.Utilities import misc
from src.Utilities import runner
| 28.6 | 41 | 0.86014 |
499c8c68960d9d5e2ecf3da660784d02e54b3419 | 9,062 | py | Python | db_eplusout_reader/processing/esofile_time.py | DesignBuilderSoftware/db-esofile-reader | a5a80a8069e7eeb30af8ceeca28eb33e9e4f7a50 | [
"MIT"
] | 1 | 2021-07-15T14:16:10.000Z | 2021-07-15T14:16:10.000Z | db_eplusout_reader/processing/esofile_time.py | DesignBuilderSoftware/db-esofile-reader | a5a80a8069e7eeb30af8ceeca28eb33e9e4f7a50 | [
"MIT"
] | 1 | 2022-03-02T08:30:20.000Z | 2022-03-08T07:57:57.000Z | db_eplusout_reader/processing/esofile_time.py | DesignBuilderSoftware/db-esofile-reader | a5a80a8069e7eeb30af8ceeca28eb33e9e4f7a50 | [
"MIT"
] | null | null | null | import calendar
import logging
from collections import namedtuple
from datetime import datetime, timedelta
from db_eplusout_reader.constants import RP, TS, A, D, H, M
from db_eplusout_reader.exceptions import LeapYearMismatch, StartDayMismatch
EsoTimestamp = namedtuple("EsoTimestamp", "month day hour end_minute")
d... | 36.688259 | 86 | 0.647318 |
499ce59557a4ca3973fb3d83ed14750b0515612a | 772 | py | Python | setup.py | EliRibble/parentopticon | 8593d7f72fac9706f1bd8e8326ac932f5af95a32 | [
"MIT"
] | null | null | null | setup.py | EliRibble/parentopticon | 8593d7f72fac9706f1bd8e8326ac932f5af95a32 | [
"MIT"
] | null | null | null | setup.py | EliRibble/parentopticon | 8593d7f72fac9706f1bd8e8326ac932f5af95a32 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="parentopticon",
version="0.0.1",
author="Eli Ribble",
author_email="junk@theribbles.org",
description="A system for controlling kids access to computers.",
long_description=long_description,
long_descript... | 24.125 | 66 | 0.682642 |
499cfa9ec9626bc8ee462071e912f59d22f18419 | 11,701 | py | Python | src/race/src/my_lane_detection/slidewindow_ver2.py | young43/ISCC_2020 | 2a7187410bceca901bd87b753a91fd35b73ca036 | [
"MIT"
] | 3 | 2020-11-13T04:59:27.000Z | 2021-04-02T06:36:03.000Z | src/race/src/my_lane_detection/slidewindow_ver2.py | yongbeomkwak/ISCC_2021 | 7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015 | [
"MIT"
] | null | null | null | src/race/src/my_lane_detection/slidewindow_ver2.py | yongbeomkwak/ISCC_2021 | 7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015 | [
"MIT"
] | 5 | 2020-09-13T09:06:16.000Z | 2021-06-19T02:31:23.000Z | import cv2
import numpy as np
import matplotlib.pyplot as plt
from findpoint import FindPoint
| 52.470852 | 124 | 0.557217 |
499d165572daf46e08305c7a946da82bbf43582f | 767 | py | Python | broadcasts/managers.py | foolwealth/django-site-broadcasts | f870fbf96cde7ea29fc8179e71ab738d2192628f | [
"MIT"
] | 5 | 2016-08-08T07:31:53.000Z | 2020-01-21T00:10:22.000Z | broadcasts/managers.py | foolwealth/django-site-broadcasts | f870fbf96cde7ea29fc8179e71ab738d2192628f | [
"MIT"
] | 2 | 2015-05-22T00:47:14.000Z | 2018-08-15T19:07:21.000Z | broadcasts/managers.py | bennylope/django-site-broadcasts | 0c7556462e7aa09a48ccce4ca8d0b4827a2ce190 | [
"MIT"
] | 2 | 2015-05-21T23:23:16.000Z | 2018-08-15T17:03:51.000Z | from django.db import models
from django.db.models import Q
from django.utils import timezone
| 29.5 | 73 | 0.65189 |
499e17c024651f588861f4597a8d8cf5d56a914e | 11,114 | py | Python | google/cloud/gkehub_v1/types/membership.py | googleapis/python-gke-hub | 9f620c83af1da8f27fc6933716142164d26647f2 | [
"Apache-2.0"
] | 3 | 2021-06-04T06:10:44.000Z | 2021-12-30T02:19:30.000Z | google/cloud/gkehub_v1/types/membership.py | renovate-bot/python-gke-hub | 9f620c83af1da8f27fc6933716142164d26647f2 | [
"Apache-2.0"
] | 43 | 2021-03-16T14:10:35.000Z | 2022-03-07T16:07:33.000Z | google/cloud/gkehub_v1/types/membership.py | renovate-bot/python-gke-hub | 9f620c83af1da8f27fc6933716142164d26647f2 | [
"Apache-2.0"
] | 3 | 2021-03-15T20:46:05.000Z | 2022-01-29T08:11:13.000Z | # -*- 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 40.414545 | 110 | 0.65557 |
499e67a21d0dc3cde30c8234f79e3aae5c8b02f5 | 1,728 | py | Python | tests/test_tasks.py | alarig/peeringdb-py | 917cda69f7bc05be008faa66875827d408328609 | [
"Apache-2.0"
] | 71 | 2015-11-10T04:55:54.000Z | 2022-02-25T20:03:48.000Z | tests/test_tasks.py | alarig/peeringdb-py | 917cda69f7bc05be008faa66875827d408328609 | [
"Apache-2.0"
] | 53 | 2016-01-29T12:15:38.000Z | 2022-03-04T07:03:41.000Z | tests/test_tasks.py | alarig/peeringdb-py | 917cda69f7bc05be008faa66875827d408328609 | [
"Apache-2.0"
] | 28 | 2016-02-03T07:59:34.000Z | 2022-02-27T19:25:06.000Z | # Units tests to directly cover both task wrapper modules -
# not possible with pytest parametrization
import pytest
import sys
from collections import defaultdict
from peeringdb import _tasks_sequential
TASKS_MODS = [_tasks_sequential]
# pre-async compat. import
if sys.version_info >= (3, 5):
from peeringdb imp... | 24.338028 | 73 | 0.622106 |
499e8f87034a01b4664449514e2ad3632e9bb2a1 | 1,074 | py | Python | dp/kadane.py | williamsmj/prakhar1989-algorithms | 82e64ce9d451b33c1bce64a63276d6341a1f13b0 | [
"WTFPL"
] | 2,797 | 2015-01-01T15:52:13.000Z | 2022-03-28T20:52:37.000Z | dp/kadane.py | williamsmj/prakhar1989-algorithms | 82e64ce9d451b33c1bce64a63276d6341a1f13b0 | [
"WTFPL"
] | 35 | 2015-01-07T03:11:18.000Z | 2021-06-27T09:09:55.000Z | dp/kadane.py | williamsmj/prakhar1989-algorithms | 82e64ce9d451b33c1bce64a63276d6341a1f13b0 | [
"WTFPL"
] | 887 | 2015-01-02T06:38:19.000Z | 2022-03-26T20:33:11.000Z | """
Problem: The maximum subarray problem is the task of finding the
contiguous subarray within a one-dimensional array of numbers
(containing at least one positive number) which has the largest sum.
Solution:
The recurrence relation that we solve at each step is the following -
Let S[i] = be the max value contigous ... | 33.5625 | 71 | 0.645251 |
499ea6990d99f7681e517c981073364d93c42de3 | 3,215 | py | Python | online_recommend/full_main.py | hfhfn/db_recommend | 3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963 | [
"MIT"
] | null | null | null | online_recommend/full_main.py | hfhfn/db_recommend | 3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963 | [
"MIT"
] | null | null | null | online_recommend/full_main.py | hfhfn/db_recommend | 3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963 | [
"MIT"
] | null | null | null | from user_portrait import SaveUserProfile
from action_profile_recall import save_inverted_table, SaveUserRecall
from movie_recall import SaveMovieRecall
from movie_portrait import save_topic_weights_normal, save_predata, save_textrank, save_cut_words, save_tfidf, \
save_topK_idf_textrank, save_topK_tfidf_textrank, ... | 33.489583 | 115 | 0.765163 |
499ebc213eb730a6668f7fe2c42632f4551f69a9 | 1,962 | py | Python | libcst/codemod/commands/strip_strings_from_types.py | rowillia/LibCST | 621d9a949a57a9100b7f2d1465ebd32aaeddb05c | [
"Apache-2.0"
] | null | null | null | libcst/codemod/commands/strip_strings_from_types.py | rowillia/LibCST | 621d9a949a57a9100b7f2d1465ebd32aaeddb05c | [
"Apache-2.0"
] | null | null | null | libcst/codemod/commands/strip_strings_from_types.py | rowillia/LibCST | 621d9a949a57a9100b7f2d1465ebd32aaeddb05c | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# pyre-strict
from typing import Union
import libcst
import libcst.matchers as m
from libcst import parse_expression
from libcst.codemod imp... | 38.470588 | 95 | 0.700306 |
49a041d58cf1e03640f9ec85a2adef02ee0d008f | 1,309 | py | Python | nasa_fevo/InMemoryCache.py | lradomski10m/nasa-fevo | 92cc11097766e94346bc2b0b0819e9191f8b04bf | [
"MIT"
] | null | null | null | nasa_fevo/InMemoryCache.py | lradomski10m/nasa-fevo | 92cc11097766e94346bc2b0b0819e9191f8b04bf | [
"MIT"
] | null | null | null | nasa_fevo/InMemoryCache.py | lradomski10m/nasa-fevo | 92cc11097766e94346bc2b0b0819e9191f8b04bf | [
"MIT"
] | null | null | null | from typing import Dict, Union
from nasa_fevo.Cache import Cache
from datetime import datetime
CACHE_EXPIRATION_TIMER_MINUTES = 10
# very simple in-memory cache
# meant for small # of items | 29.088889 | 82 | 0.571429 |
49a08ee15b6bd0370e65813bd6b2e298574e430e | 5,079 | py | Python | get_embeddings.py | PauPerezT/WEBERT | e189f84de14de6d4bae785e48c8a36eb1afaa46f | [
"Apache-1.1"
] | 3 | 2020-07-28T10:00:44.000Z | 2021-01-25T17:48:01.000Z | get_embeddings.py | PauPerezT/WEBERT | e189f84de14de6d4bae785e48c8a36eb1afaa46f | [
"Apache-1.1"
] | 3 | 2020-12-07T18:45:16.000Z | 2020-12-07T18:45:27.000Z | get_embeddings.py | PauPerezT/WEBERT | e189f84de14de6d4bae785e48c8a36eb1afaa46f | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 27 20:45:40 2020
@author: P.A. Perez-Toro
"""
#%%Libraries
import argparse
from utils import create_fold,str2bool
import csv
from tqdm import tqdm
import os
import gc
import numpy as np
import pandas as pd
from WEBERT import BERT, BETO, SciBERT
#... | 40.309524 | 273 | 0.638905 |
49a17ebec39db4cc9cf78ab25d40d4459000d689 | 264 | py | Python | AiSD_03/Zadanie_7.py | DLQuake/Algorytmy_i_struktury_danych | 210d0b4e868e5cc9d6aa730a2297d8074e4d52a1 | [
"MIT"
] | null | null | null | AiSD_03/Zadanie_7.py | DLQuake/Algorytmy_i_struktury_danych | 210d0b4e868e5cc9d6aa730a2297d8074e4d52a1 | [
"MIT"
] | null | null | null | AiSD_03/Zadanie_7.py | DLQuake/Algorytmy_i_struktury_danych | 210d0b4e868e5cc9d6aa730a2297d8074e4d52a1 | [
"MIT"
] | null | null | null | # Zaimplementowa funkcj n_sums(n: int) -> listint, ktra zwrci wszystkie n-cyfrowe liczby o takich samych sumach na indeksach parzystych i nieparzystych. Przykadowo, dla 3 cyfr bd to liczby m.in. 198, 220, 891, 990
print(n_sums(3)) | 44 | 220 | 0.75 |
49a34879fe64e92596a7c6eaecaaa74f1636d0c6 | 2,327 | py | Python | wsgiservice/xmlserializer.py | beekpr/wsgiservice | 9ba21060ff19cbff984424b184a5b2829fe644bb | [
"BSD-2-Clause"
] | 1 | 2018-01-19T10:44:15.000Z | 2018-01-19T10:44:15.000Z | wsgiservice/xmlserializer.py | beekpr/wsgiservice | 9ba21060ff19cbff984424b184a5b2829fe644bb | [
"BSD-2-Clause"
] | 2 | 2015-10-12T07:53:57.000Z | 2016-06-17T11:13:08.000Z | wsgiservice/xmlserializer.py | beekpr/wsgiservice | 9ba21060ff19cbff984424b184a5b2829fe644bb | [
"BSD-2-Clause"
] | null | null | null | """Helper to convert Python data structures into XML. Used so we can return
intuitive data from resource methods which are usable as JSON but can also be
returned as XML.
"""
import re
from xml.sax.saxutils import escape as xml_escape
# Regular expression matching all the illegal XML characters.
RE_ILLEGAL_XML = re.co... | 35.8 | 125 | 0.627417 |
b8c51a5a3052b41343351c2e050b600648c80729 | 45,700 | py | Python | sql/query.py | real-fire/archer | 8e9e82a51125859c61d23496ad0cab0a4bbc5181 | [
"Apache-2.0"
] | null | null | null | sql/query.py | real-fire/archer | 8e9e82a51125859c61d23496ad0cab0a4bbc5181 | [
"Apache-2.0"
] | null | null | null | sql/query.py | real-fire/archer | 8e9e82a51125859c61d23496ad0cab0a4bbc5181 | [
"Apache-2.0"
] | null | null | null | import re
import simplejson as json
from django.core.urlresolvers import reverse
from django.db.models import Q, Min, F, Sum
from django.db import connection
from django.conf import settings
from django.db.models.functions import Concat
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import... | 44.197292 | 136 | 0.596521 |
b8c640f9283d5b83c08e12647497d33055a9e83f | 13,671 | py | Python | pyTooling/CLIAbstraction/__init__.py | pyTooling/pyTooling.CLIAbstraction | 3b17490ae729e126799328198a814b6c741b1ac7 | [
"Apache-2.0"
] | null | null | null | pyTooling/CLIAbstraction/__init__.py | pyTooling/pyTooling.CLIAbstraction | 3b17490ae729e126799328198a814b6c741b1ac7 | [
"Apache-2.0"
] | 8 | 2021-12-19T19:58:31.000Z | 2022-03-02T10:45:16.000Z | pyTooling/CLIAbstraction/__init__.py | pyTooling/pyTooling.CLIAbstraction | 3b17490ae729e126799328198a814b6c741b1ac7 | [
"Apache-2.0"
] | null | null | null | # ==================================================================================================================== #
# _____ _ _ ____ _ ___ _ _ _ _ _ #
# _ __ _ |_ _|__ ___ | (_)_ __ __ _ / ___| | |_ _| / \ | |__ _... | 44.676471 | 147 | 0.575744 |
b8c7afa99f880ad851ed3d1e2b329906d0d376a5 | 1,601 | py | Python | ingest_to_dynamodb/lambda_function.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | 2 | 2020-11-04T17:34:38.000Z | 2021-08-13T07:55:23.000Z | ingest_to_dynamodb/lambda_function.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | null | null | null | ingest_to_dynamodb/lambda_function.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | 2 | 2021-05-28T02:55:44.000Z | 2021-08-03T13:56:10.000Z | import base64
import json
import logging
import os
from decimal import Decimal
import boto3
"""
environment variables:
export AWS_ENDPOINT=http://localhost:4566
export TABLE_NAME=table_xy
# for direct local execution:
export AWS_DEFAULT_REGION=localhost
export AWS_ACCESS_KEY_ID=access_key_id
e... | 30.788462 | 112 | 0.715178 |
b8c91e32bf4a536211d6e1b856f0e33473d42a4f | 3,816 | py | Python | modules/sfp_psbdmp.py | IronFireFA/spiderfoot | e75428e7584666de52a20b0d2f1fb80dffd6f39c | [
"MIT"
] | null | null | null | modules/sfp_psbdmp.py | IronFireFA/spiderfoot | e75428e7584666de52a20b0d2f1fb80dffd6f39c | [
"MIT"
] | null | null | null | modules/sfp_psbdmp.py | IronFireFA/spiderfoot | e75428e7584666de52a20b0d2f1fb80dffd6f39c | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------------
# Name: sfp_psbdmp
# Purpose: Query psbdmp.cc for potentially hacked e-mail addresses.
#
# Author: Steve Micallef <steve@binarypool.com>
#
# Created: 21/11/2016
# Copyright: (c) Steve Micallef
# Licence: MIT
# ... | 28.058824 | 97 | 0.508124 |
b8c9483c89fccb1526f7a1b94d89843858f14cf3 | 3,216 | py | Python | dcr/scenarios/agent-bvt/test_agent_basics.py | sshedi/WALinuxAgent | 99d07d29b7843293588bec4b961e4ef2d1daabb2 | [
"Apache-2.0"
] | null | null | null | dcr/scenarios/agent-bvt/test_agent_basics.py | sshedi/WALinuxAgent | 99d07d29b7843293588bec4b961e4ef2d1daabb2 | [
"Apache-2.0"
] | null | null | null | dcr/scenarios/agent-bvt/test_agent_basics.py | sshedi/WALinuxAgent | 99d07d29b7843293588bec4b961e4ef2d1daabb2 | [
"Apache-2.0"
] | null | null | null | import os
import re
import socket
from dotenv import load_dotenv
from dcr.scenario_utils.common_utils import execute_command_and_raise_on_error
from dcr.scenario_utils.models import get_vm_data_from_env
| 30.923077 | 109 | 0.661692 |
b8ca7c27c5d04fb6e63bdc64ba80458973c7d303 | 9,033 | py | Python | src/DrawingEpisodes.py | Benykoz/simcom | ffe1c3636ef65a037a34e71d5cbcdb2e483d5b93 | [
"MIT"
] | null | null | null | src/DrawingEpisodes.py | Benykoz/simcom | ffe1c3636ef65a037a34e71d5cbcdb2e483d5b93 | [
"MIT"
] | null | null | null | src/DrawingEpisodes.py | Benykoz/simcom | ffe1c3636ef65a037a34e71d5cbcdb2e483d5b93 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# This file includes mainly a class "randomEpisode" that:
# - draws localization of vehicle
# - draws number of rocks
# - draws position of each rock
# - save in a json file
# Author: Michele
# Project: SmartLoader - Innovation
import json
import random
from ge... | 35.14786 | 94 | 0.469169 |
b8cbd20dcd81315e2ca364311bd80d356f50ed2d | 587 | py | Python | gimmemotifs/commands/logo.py | littleblackfish/gimmemotifs | 913a6e5db378493155273e2c0f8ab0dc11ab219e | [
"MIT"
] | null | null | null | gimmemotifs/commands/logo.py | littleblackfish/gimmemotifs | 913a6e5db378493155273e2c0f8ab0dc11ab219e | [
"MIT"
] | null | null | null | gimmemotifs/commands/logo.py | littleblackfish/gimmemotifs | 913a6e5db378493155273e2c0f8ab0dc11ab219e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2009-2016 Simon van Heeringen <simon.vanheeringen@gmail.com>
#
# This module is free software. You can redistribute it and/or modify it under
# the terms of the MIT License, see the file COPYING included with this
# distribution.
from gimmemotifs.motif import pwmfile_to_motifs
| 29.35 | 79 | 0.688245 |
b8cbfca6de86ee3ef9fe472b32eb107264c928c8 | 1,671 | py | Python | EDA/src/utils/main_flask.py | paleomau/MGOL_BOOTCAMP | 8c2b018f49fd12a255ea6f323141260d04d4421d | [
"MIT"
] | null | null | null | EDA/src/utils/main_flask.py | paleomau/MGOL_BOOTCAMP | 8c2b018f49fd12a255ea6f323141260d04d4421d | [
"MIT"
] | null | null | null | EDA/src/utils/main_flask.py | paleomau/MGOL_BOOTCAMP | 8c2b018f49fd12a255ea6f323141260d04d4421d | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template
from functions import read_json
import os
# Mandatory
app = Flask(__name__) # __name__ --> __main__
# ---------- Flask functions ----------
# localhost:6060/give_me_id?password=12345
# ---------- Other functions ----------
def main():
print("---------S... | 25.318182 | 72 | 0.625972 |
b8ccc7bb85dc9dad61097e465ec52bcbf128cb34 | 1,473 | py | Python | opta/core/secrets.py | pecigonzalo/opta | 0259f128ad3cfc4a96fe1f578833de28b2f19602 | [
"Apache-2.0"
] | null | null | null | opta/core/secrets.py | pecigonzalo/opta | 0259f128ad3cfc4a96fe1f578833de28b2f19602 | [
"Apache-2.0"
] | null | null | null | opta/core/secrets.py | pecigonzalo/opta | 0259f128ad3cfc4a96fe1f578833de28b2f19602 | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import dotenv_values
from opta.core.kubernetes import get_namespaced_secrets, update_secrets
from opta.exceptions import UserErrors
from opta.utils import deep_merge, logger
MANUAL_SECRET_NAME = "manual-secrets" # nosec
LINKED_SECRET_NAME = "secret" # nosec
def get_secrets(namespace: str, m... | 35.071429 | 97 | 0.728445 |
b8cdf4dde7f1aa6655db7010276c1247756180f9 | 5,114 | py | Python | venv/Lib/site-packages/mpl_toolkits/axes_grid1/axes_rgb.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 603 | 2020-12-23T13:49:32.000Z | 2022-03-31T23:38:03.000Z | venv/Lib/site-packages/mpl_toolkits/axes_grid1/axes_rgb.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 387 | 2020-12-15T14:54:04.000Z | 2022-03-31T07:00:21.000Z | venv/Lib/site-packages/mpl_toolkits/axes_grid1/axes_rgb.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 35 | 2021-03-26T03:12:04.000Z | 2022-03-23T10:15:10.000Z | import numpy as np
from matplotlib import _api
from .axes_divider import make_axes_locatable, Size
from .mpl_axes import Axes
class RGBAxes:
"""
4-panel imshow (RGB, R, G, B).
Layout:
+---------------+-----+
| | R |
+ +-----+
| RGB ... | 30.260355 | 79 | 0.550841 |
b8ce37a154e212778f695fcf9135c3e96507ff09 | 88 | py | Python | app/admin/controllers/__init__.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/admin/controllers/__init__.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/admin/controllers/__init__.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | from flask import Blueprint
admin = Blueprint('admin', __name__, url_prefix='/manage')
| 22 | 58 | 0.761364 |
b8d03933a76fe421eb780621a4114e528f2cddbc | 535 | py | Python | first.py | wmoulin/chatterbot | 075a4651227ad159e58a36fca5ea7456d9153653 | [
"MIT"
] | null | null | null | first.py | wmoulin/chatterbot | 075a4651227ad159e58a36fca5ea7456d9153653 | [
"MIT"
] | null | null | null | first.py | wmoulin/chatterbot | 075a4651227ad159e58a36fca5ea7456d9153653 | [
"MIT"
] | null | null | null | from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
# The only required parameter for the ChatBot is a name. This can be anything you want.
chatbot = ChatBot("My First Chatbot")
# Training your ChatBot
conversation = [
"Hello",
"Hi there!",
"How are you doing?",
"I'm doing great.... | 24.318182 | 87 | 0.708411 |
b8d0ad22e9f860e320dd54fc175dce04ecd1af3d | 7,405 | py | Python | runpandas/types/summary.py | pnposch/runpandas | 25388c18b52dfcc168e81922b8ba20ca93adad20 | [
"MIT"
] | 11 | 2020-12-04T20:43:23.000Z | 2022-03-16T19:19:12.000Z | runpandas/types/summary.py | pnposch/runpandas | 25388c18b52dfcc168e81922b8ba20ca93adad20 | [
"MIT"
] | 45 | 2020-06-23T02:50:31.000Z | 2022-02-15T16:56:00.000Z | runpandas/types/summary.py | pnposch/runpandas | 25388c18b52dfcc168e81922b8ba20ca93adad20 | [
"MIT"
] | 4 | 2021-11-11T15:23:04.000Z | 2022-02-02T13:02:12.000Z | """
Helper module for evaluation and display of the summary of training sessions.
"""
import numpy as np
import pandas as pd
from runpandas._utils import convert_pace_secmeters2minkms
def _build_summary_statistics(obj):
"""
Generate session statistics from a given DataFrame.
Parameters
-------... | 28.480769 | 89 | 0.637677 |
b8d180754d7fc90d954cb1d916a92cd2b5b1aea1 | 589 | py | Python | dribdat/decorators.py | gonzalocasas/dribdat | f8c326c96e851be199eb9f61daed6c8780e3bc27 | [
"MIT"
] | 21 | 2015-10-25T23:22:04.000Z | 2019-04-01T06:42:54.000Z | dribdat/decorators.py | gonzalocasas/dribdat | f8c326c96e851be199eb9f61daed6c8780e3bc27 | [
"MIT"
] | 108 | 2020-02-11T10:07:53.000Z | 2021-06-19T20:30:03.000Z | dribdat/decorators.py | OpendataCH/dribdat | 90d95a12c782dea7d284a4c454a06481e67c1e37 | [
"MIT"
] | 12 | 2016-09-02T03:12:28.000Z | 2021-06-02T07:58:48.000Z | # -*- coding: utf-8 -*-
from functools import wraps
from flask import abort, jsonify
from flask_login import current_user
| 25.608696 | 64 | 0.657046 |
b8d3d6eef9923c53e2c72ef3ffa4d51959b6e188 | 263 | py | Python | run_perf_benchmarks.py | alirezajahani60/FabFlee | e2cfdb6efc758281e123f6acc1b06f93176dd756 | [
"BSD-3-Clause"
] | null | null | null | run_perf_benchmarks.py | alirezajahani60/FabFlee | e2cfdb6efc758281e123f6acc1b06f93176dd756 | [
"BSD-3-Clause"
] | null | null | null | run_perf_benchmarks.py | alirezajahani60/FabFlee | e2cfdb6efc758281e123f6acc1b06f93176dd756 | [
"BSD-3-Clause"
] | null | null | null | from base.fab import *
from plugins.FabFlee.FabFlee import *
| 29.222222 | 79 | 0.703422 |
b8d3d895be119a8b71cde792e94daf1fc8fa955b | 479 | py | Python | vwgconnect/account.py | Farfar/vwgbroker | 9acc9f1a259e26aa830a9534a6dea3cee21c09ff | [
"Apache-2.0"
] | null | null | null | vwgconnect/account.py | Farfar/vwgbroker | 9acc9f1a259e26aa830a9534a6dea3cee21c09ff | [
"Apache-2.0"
] | null | null | null | vwgconnect/account.py | Farfar/vwgbroker | 9acc9f1a259e26aa830a9534a6dea3cee21c09ff | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
import time
import logging
import asyncio
import hashlib
import jwt
| 18.423077 | 61 | 0.611691 |
b8d7cf7888021a157102a64b5a55477b57bc5fa9 | 3,263 | py | Python | src/project_02/project2_b.py | group7BSE1/BSE-2021 | 2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0 | [
"MIT"
] | null | null | null | src/project_02/project2_b.py | group7BSE1/BSE-2021 | 2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0 | [
"MIT"
] | null | null | null | src/project_02/project2_b.py | group7BSE1/BSE-2021 | 2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0 | [
"MIT"
] | 1 | 2021-04-07T14:49:04.000Z | 2021-04-07T14:49:04.000Z |
main()
| 37.079545 | 131 | 0.599142 |
b8d7d6b700479d42df11c33ef276f3c562f44f38 | 159 | py | Python | basic_algorithms/primeiro_ultimo_nome.py | Yta-ux/python_algorithms | 62dd2d897e2f2de8783e68df3022170a86e9132e | [
"MIT"
] | 1 | 2022-01-26T22:15:17.000Z | 2022-01-26T22:15:17.000Z | basic_algorithms/primeiro_ultimo_nome.py | Yta-ux/python_algorithms | 62dd2d897e2f2de8783e68df3022170a86e9132e | [
"MIT"
] | null | null | null | basic_algorithms/primeiro_ultimo_nome.py | Yta-ux/python_algorithms | 62dd2d897e2f2de8783e68df3022170a86e9132e | [
"MIT"
] | null | null | null | nome = input('Nome Completo:').title().strip().split()
print(f"""Prazer em Conhece-lo
Seu Primeiro Nome e: {nome[0]}
Seu Ultimo Nome e: {nome[len(nome)-1]}""") | 39.75 | 54 | 0.666667 |
b8d7f25bc4dac9b169ae8981214f8ae8040f25ce | 3,193 | py | Python | magnum/conductor/k8s_api.py | vivian-rook/magnum | 7acc6eeda44ce6ffcca8b7fc2e682f80403ac4b7 | [
"Apache-2.0"
] | null | null | null | magnum/conductor/k8s_api.py | vivian-rook/magnum | 7acc6eeda44ce6ffcca8b7fc2e682f80403ac4b7 | [
"Apache-2.0"
] | null | null | null | magnum/conductor/k8s_api.py | vivian-rook/magnum | 7acc6eeda44ce6ffcca8b7fc2e682f80403ac4b7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 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 agree... | 31 | 77 | 0.630442 |
b8d95b42f671a377b5da5f2e5ac42f949f5f6c0c | 1,865 | py | Python | secret/secret.py | futurice/vault | 6da5341804509b7984d0a5817bbd13d3477fe0bc | [
"Apache-2.0"
] | 9 | 2015-10-16T12:06:35.000Z | 2020-04-03T09:05:06.000Z | secret/secret.py | futurice/vault | 6da5341804509b7984d0a5817bbd13d3477fe0bc | [
"Apache-2.0"
] | null | null | null | secret/secret.py | futurice/vault | 6da5341804509b7984d0a5817bbd13d3477fe0bc | [
"Apache-2.0"
] | 3 | 2015-10-20T09:36:53.000Z | 2021-01-18T20:49:41.000Z | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import print_function
import logging, os, sys
from pprint import pprint as pp
from secret.project import get_project
from secret.cli import prepare
if sys.version_info.major == 2:
trollius_log()
from secret.storage import S3
from secret... | 27.028986 | 69 | 0.676139 |
b8dcb2e38617c441c3331cf21108a3eb3fba7a49 | 3,094 | py | Python | test_main.py | zenranda/proj10-gcalfinal | ee32beb3ef570b23883d41f84394b28818e5a07c | [
"Artistic-2.0"
] | null | null | null | test_main.py | zenranda/proj10-gcalfinal | ee32beb3ef570b23883d41f84394b28818e5a07c | [
"Artistic-2.0"
] | 2 | 2021-02-08T20:17:57.000Z | 2021-04-30T20:38:59.000Z | test_main.py | zenranda/proj10-gcalfinal | ee32beb3ef570b23883d41f84394b28818e5a07c | [
"Artistic-2.0"
] | null | null | null | ###
#Various nose tests. If you want to adapt this for your own use, be aware that the start/end block list has a very specific formatting.
###
import get_freebusy
import arrow
from operator import itemgetter
from pymongo import MongoClient
import secrets.admin_secrets
import secrets.client_secrets
MONGO_CLI... | 55.25 | 624 | 0.649968 |
b8dd4a9a3b779200a138616573ee9d9a08756937 | 2,664 | py | Python | examples/scripts/ct_abel_tv_admm.py | lanl/scico | 976c9e5833f8f67eed2eaa43460d89fb09bb9f78 | [
"BSD-3-Clause"
] | 18 | 2021-09-21T18:55:11.000Z | 2022-03-21T20:13:05.000Z | examples/scripts/ct_abel_tv_admm.py | lanl/scico | 976c9e5833f8f67eed2eaa43460d89fb09bb9f78 | [
"BSD-3-Clause"
] | 218 | 2021-09-21T21:45:08.000Z | 2022-03-30T18:45:27.000Z | examples/scripts/ct_abel_tv_admm.py | lanl/scico | 976c9e5833f8f67eed2eaa43460d89fb09bb9f78 | [
"BSD-3-Clause"
] | 2 | 2021-09-23T22:44:47.000Z | 2021-12-18T16:01:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the SCICO package. Details of the copyright
# and user license can be found in the 'LICENSE.txt' file distributed
# with the package.
r"""
Regularized Abel Inversion
==========================
This example demonstrates a TV-regularized Abel inversio... | 24.897196 | 95 | 0.682432 |
b8ddae5f1b6f6079138cdb43e8d72e2e1ca77817 | 1,760 | py | Python | pyblas/level1/csrot.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | null | null | null | pyblas/level1/csrot.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | 1 | 2020-10-10T23:23:06.000Z | 2020-10-10T23:23:06.000Z | pyblas/level1/csrot.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | null | null | null | from ..util import slice_
def csrot(N, CX, INCX, CY, INCY, C, S):
"""Applies a Givens rotation to a pair of vectors x and y
Parameters
----------
N : int
Number of elements in input vector
CX : numpy.ndarray
A single precision complex array, dimension (1 + (`N` - 1)*abs(`INCX`))
... | 29.333333 | 112 | 0.580682 |
b8de8fb9e2f63a96dbca5bb30f4841f157b6ed7b | 160 | py | Python | items.py | yarnoiser/PyDungeon | c37ad314605065194732202539db50eef94ea3da | [
"BSD-3-Clause"
] | 1 | 2018-05-15T01:26:04.000Z | 2018-05-15T01:26:04.000Z | items.py | yarnoiser/PyDungeon | c37ad314605065194732202539db50eef94ea3da | [
"BSD-3-Clause"
] | null | null | null | items.py | yarnoiser/PyDungeon | c37ad314605065194732202539db50eef94ea3da | [
"BSD-3-Clause"
] | null | null | null | from dice import *
| 14.545455 | 47 | 0.69375 |
b8df7da99167063e92023aa153878ad215a2e8ff | 2,476 | py | Python | leet.py | blackcow/pytorch-cifar-master | c571c8fd7fe521907755ca2eacb6aa877abe3493 | [
"MIT"
] | null | null | null | leet.py | blackcow/pytorch-cifar-master | c571c8fd7fe521907755ca2eacb6aa877abe3493 | [
"MIT"
] | null | null | null | leet.py | blackcow/pytorch-cifar-master | c571c8fd7fe521907755ca2eacb6aa877abe3493 | [
"MIT"
] | null | null | null |
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8')
#str = input()
#print(str)
l = [1, 3, 5, 2, 8, 7]
Solution.findMedium(l)
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
# str = input()
# print(str)
text = 'abbbbcccddddddddeee'
Solu... | 23.358491 | 79 | 0.468094 |
b8df9843139746c1adbc8ed57ae326c83672e193 | 1,091 | py | Python | shop_website/users/views.py | omar00070/django-shopping-website | af2741b900b60631349ea2e6de17586994e31680 | [
"MIT"
] | null | null | null | shop_website/users/views.py | omar00070/django-shopping-website | af2741b900b60631349ea2e6de17586994e31680 | [
"MIT"
] | null | null | null | shop_website/users/views.py | omar00070/django-shopping-website | af2741b900b60631349ea2e6de17586994e31680 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .forms import RegistrationForm, UserUpdateForm, ProfileUpdateForm
from django.shortcuts import redirect
from .models import Profile
from django.contrib.auth.decorators import login_required | 34.09375 | 88 | 0.75802 |
b8e0455d33253902aeabce67886870561b85812f | 2,685 | py | Python | quantumcat/gates/custom_gates/cirq/__init__.py | Artificial-Brain/quantumcat | eff99cac7674b3a1b7e1f752e7ebed2b960f85b3 | [
"Apache-2.0"
] | 20 | 2021-05-10T07:04:41.000Z | 2021-12-13T17:12:05.000Z | quantumcat/gates/custom_gates/cirq/__init__.py | Artificial-Brain/quantumcat | eff99cac7674b3a1b7e1f752e7ebed2b960f85b3 | [
"Apache-2.0"
] | 2 | 2021-04-26T05:34:52.000Z | 2021-05-16T13:46:22.000Z | quantumcat/gates/custom_gates/cirq/__init__.py | Artificial-Brain/quantumcat | eff99cac7674b3a1b7e1f752e7ebed2b960f85b3 | [
"Apache-2.0"
] | 17 | 2021-04-02T18:09:33.000Z | 2022-02-10T16:38:57.000Z | # (C) Copyright Artificial Brain 2021.
#
# 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 ... | 55.9375 | 75 | 0.84581 |
b8e06a6109f1d799db4201a71cba9cf898507598 | 1,045 | py | Python | CL_Net/Referential_Game/Number_Set/info.py | MarkFzp/ToM-Pragmatics | 3de1956c36ea40f29a41e4c153c4b8cdc73afc15 | [
"MIT"
] | null | null | null | CL_Net/Referential_Game/Number_Set/info.py | MarkFzp/ToM-Pragmatics | 3de1956c36ea40f29a41e4c153c4b8cdc73afc15 | [
"MIT"
] | null | null | null | CL_Net/Referential_Game/Number_Set/info.py | MarkFzp/ToM-Pragmatics | 3de1956c36ea40f29a41e4c153c4b8cdc73afc15 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.stats as sp
from concept import Concept
if __name__ == '__main__':
main()
| 30.735294 | 82 | 0.67177 |
b8e0a7c86db8162077913d429a8e44b03bb440ed | 1,695 | py | Python | commands/misc/github.py | typhonshambo/TY-BOT-v3 | eb192d495bf32ae3a56d4a60ec2aa4e1e6a7ef2c | [
"MIT"
] | null | null | null | commands/misc/github.py | typhonshambo/TY-BOT-v3 | eb192d495bf32ae3a56d4a60ec2aa4e1e6a7ef2c | [
"MIT"
] | null | null | null | commands/misc/github.py | typhonshambo/TY-BOT-v3 | eb192d495bf32ae3a56d4a60ec2aa4e1e6a7ef2c | [
"MIT"
] | null | null | null | import aiohttp
import discord
from discord.ext import commands
from discord.commands import Option, slash_command, SlashCommandGroup
import json
with open ('././config/guilds.json', 'r') as f:
data = json.load(f)
guilds = data['guilds']
with open ('././config/api.json', 'r') as f:
ApiData = json.load(f)
githubApi... | 23.219178 | 86 | 0.629499 |
b8e177cd51c2b5569754fe0293a60b5835aa4a05 | 1,126 | py | Python | raspbeeryPi/smart-home-hubs/gy30.py | zibuyu1995/Hardware | 8461ebf9b04a603b397d8396ae14b359bd89a8cf | [
"MIT"
] | 2 | 2020-05-20T03:02:01.000Z | 2020-06-14T15:38:31.000Z | raspbeeryPi/smart-home-hubs/gy30.py | zibuyu1995/Hardware | 8461ebf9b04a603b397d8396ae14b359bd89a8cf | [
"MIT"
] | 3 | 2018-08-05T04:38:56.000Z | 2019-11-25T07:02:15.000Z | raspbeeryPi/smart-home-hubs/gy30.py | zibuyu1995/Hardware | 8461ebf9b04a603b397d8396ae14b359bd89a8cf | [
"MIT"
] | 1 | 2020-07-29T03:56:41.000Z | 2020-07-29T03:56:41.000Z | import json
import time
import smbus
from paho.mqtt import client as mqtt
# BH1750FVI config
DEVICE = 0x23 # Default device I2C address
POWER_DOWN = 0x00
POWER_ON = 0x01
RESET = 0x07
CONTINUOUS_LOW_RES_MODE = 0x13
CONTINUOUS_HIGH_RES_MODE_1 = 0x10
CONTINUOUS_HIGH_RES_MODE_2 = 0x11
ONE_TIME_HIGH_RES_MODE_1 = 0x20
ON... | 20.851852 | 68 | 0.694494 |