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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e9679307c3b46578c6f09f3d9606e2140ef17b5 | 1,253 | py | Python | sandbox/images/reseau_serveur_utile.py | chiesax/sandbox | 3b628e0068c6f7116c3a98d481299158a8bf5de3 | [
"MIT"
] | null | null | null | sandbox/images/reseau_serveur_utile.py | chiesax/sandbox | 3b628e0068c6f7116c3a98d481299158a8bf5de3 | [
"MIT"
] | 1 | 2015-12-29T09:38:21.000Z | 2015-12-30T16:16:19.000Z | sandbox/images/reseau_serveur_utile.py | chiesax/sandbox | 3b628e0068c6f7116c3a98d481299158a8bf5de3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.4
# -*-coding:utf-8 -*
"""
https://openclassrooms.com/courses/apprenez-a-programmer-en-python/le-reseau
LA FIN LE TERMINAL QUITTE PYTHON :
DONC CE PROGRAMME NE MARCHE PAS !!
"""
# Les deux lignes prcdentes serviraient si je rendais ce fichier
# directement excutable
import socket
# Construire n... | 27.844444 | 89 | 0.739824 |
3e9b7d58a68d506fe7a43a816c3f565b193865ec | 10,030 | py | Python | crawler_shopee.py | HariWu1995/ecommerce_crawlers | 578957dbbce2914f8af16c5f21c6529591a9f1d4 | [
"CC0-1.0"
] | null | null | null | crawler_shopee.py | HariWu1995/ecommerce_crawlers | 578957dbbce2914f8af16c5f21c6529591a9f1d4 | [
"CC0-1.0"
] | null | null | null | crawler_shopee.py | HariWu1995/ecommerce_crawlers | 578957dbbce2914f8af16c5f21c6529591a9f1d4 | [
"CC0-1.0"
] | null | null | null | import os
import sys
import time
from tqdm import tqdm as print_progress
import csv
import json
import logging
import numpy as np
import pandas as pd
import random
import cv2
from PIL import Image
from matplotlib import pyplot as plt
import re
import requests
from io import BytesIO
from bs4 impo... | 34.826389 | 131 | 0.598006 |
3e9c99bd9c44f5d31431b1d6a56ba33cddb063ae | 6,584 | py | Python | tests/inferbeddings/regularizers/test_regularizers.py | issca/inferbeddings | 80492a7aebcdcac21e758514c8af403d77e8594a | [
"MIT"
] | 33 | 2017-07-25T14:31:00.000Z | 2019-03-06T09:18:00.000Z | tests/inferbeddings/regularizers/test_regularizers.py | issca/inferbeddings | 80492a7aebcdcac21e758514c8af403d77e8594a | [
"MIT"
] | 1 | 2017-08-22T13:49:30.000Z | 2017-08-22T13:49:30.000Z | tests/inferbeddings/regularizers/test_regularizers.py | issca/inferbeddings | 80492a7aebcdcac21e758514c8af403d77e8594a | [
"MIT"
] | 9 | 2017-10-05T08:50:45.000Z | 2019-04-18T12:40:56.000Z | # -*- coding: utf-8 -*-
import numpy as np
import tensorflow as tf
from inferbeddings.regularizers import TransEEquivalentPredicateRegularizer
from inferbeddings.regularizers import DistMultEquivalentPredicateRegularizer
from inferbeddings.regularizers import ComplExEquivalentPredicateRegularizer
from inferbeddings.r... | 39.662651 | 124 | 0.659326 |
3e9de159f87129c1ecdbf87d9939fc63a59cd88b | 1,360 | py | Python | Chapter 08/8.11_chaos_game.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 120 | 2018-03-04T07:17:00.000Z | 2022-01-25T08:09:57.000Z | Chapter 08/8.11_chaos_game.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 3 | 2019-03-24T09:32:43.000Z | 2020-07-28T07:35:49.000Z | Chapter 08/8.11_chaos_game.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 81 | 2018-04-18T06:51:46.000Z | 2022-03-30T01:31:35.000Z | """
Code illustration: 8.11
Chaos Game
Tkinter GUI Application Development Blueprints
"""
import random
from tkinter import Tk, Canvas
import math
WIDTH = 800
HEIGHT = 500
v1 = (float(WIDTH/2), 0.0)
v2 = (0.00, float(HEIGHT))
v3 = (float(WIDTH), float(HEIGHT))
last_point = None
root = Tk()
canvas = Canvas(roo... | 21.25 | 75 | 0.605147 |
3e9e105d1fe756d9759cec38597f51f376c2fdd7 | 1,129 | py | Python | home/migrations/0010_auto_20150916_1146.py | taedori81/gentlecoffee | 62de8ff17c934afdfde188ecc6b9dbfb400d0682 | [
"BSD-3-Clause"
] | null | null | null | home/migrations/0010_auto_20150916_1146.py | taedori81/gentlecoffee | 62de8ff17c934afdfde188ecc6b9dbfb400d0682 | [
"BSD-3-Clause"
] | null | null | null | home/migrations/0010_auto_20150916_1146.py | taedori81/gentlecoffee | 62de8ff17c934afdfde188ecc6b9dbfb400d0682 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import wagtail.wagtailcore.fields
import wagtail.wagtailcore.blocks
import datetime
import wagtail.wagtailimages.blocks
| 33.205882 | 266 | 0.648361 |
3e9f295d7038dec0577aca1bae6bbad75edf434c | 2,083 | py | Python | src/hard/multi_search.py | JadielTeofilo/General-Algorithms | dfcf86c6ecd727573079f8971187c47bdb7a37bb | [
"MIT"
] | null | null | null | src/hard/multi_search.py | JadielTeofilo/General-Algorithms | dfcf86c6ecd727573079f8971187c47bdb7a37bb | [
"MIT"
] | null | null | null | src/hard/multi_search.py | JadielTeofilo/General-Algorithms | dfcf86c6ecd727573079f8971187c47bdb7a37bb | [
"MIT"
] | null | null | null | """
17.17 Multi Search: Given a string b and an array of smaller strings T, design a method to search b for
each small string in T.
In - text: str, words: List[str]
Out - List[str]
lgget`s go to the party tonight?
['go', 'test', 'jump']
return ['go']
O(k^2 + n*t) time complexity, where k is the size of text, n is ... | 24.797619 | 120 | 0.586174 |
3e9f73be09a575abe5d0c2f48b7beb177bd85283 | 793 | py | Python | setup.py | yoarch/replace | 5255810c019141f7de03b96c26a9b732d2218597 | [
"MIT"
] | null | null | null | setup.py | yoarch/replace | 5255810c019141f7de03b96c26a9b732d2218597 | [
"MIT"
] | null | null | null | setup.py | yoarch/replace | 5255810c019141f7de03b96c26a9b732d2218597 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="replacefs",
version="1.2.0",
python_requires='>=3',
author="yoarch",
author_email="yo.managements@gmail.com",
description="Search and replace CLI tool for strings on the all system",
... | 28.321429 | 76 | 0.659521 |
3e9f9ed5bec5e5e254a0bf74367dcc5d5151767d | 26 | py | Python | tests/unit/test_modulegraph/__init__.py | hawkhai/pyinstaller | 016a24479b34de161792c72dde455a81ad4c78ae | [
"Apache-2.0"
] | 9,267 | 2015-01-01T04:08:45.000Z | 2022-03-31T11:42:38.000Z | tests/unit/test_modulegraph/__init__.py | jeremysanders/pyinstaller | 321b24f9a9a5978337735816b36ca6b4a90a2fb4 | [
"Apache-2.0"
] | 5,150 | 2015-01-01T12:09:56.000Z | 2022-03-31T18:06:12.000Z | tests/unit/test_modulegraph/__init__.py | jeremysanders/pyinstaller | 321b24f9a9a5978337735816b36ca6b4a90a2fb4 | [
"Apache-2.0"
] | 2,101 | 2015-01-03T10:25:27.000Z | 2022-03-30T11:04:42.000Z | """ modulegraph tests """
| 13 | 25 | 0.615385 |
3ea0a1cb7ee908d792303d9bcee0623c9c0029ae | 774 | py | Python | ZD2.py | Novomlinov/Lab5 | bd86f277be60173472202329a86790ca08549c26 | [
"MIT"
] | null | null | null | ZD2.py | Novomlinov/Lab5 | bd86f277be60173472202329a86790ca08549c26 | [
"MIT"
] | null | null | null | ZD2.py | Novomlinov/Lab5 | bd86f277be60173472202329a86790ca08549c26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
if __name__ == '__main__':
A = list(map(int, input().split()))
if len(A) != 10:
print(" ", file=sys.stderr)
exit(1)
s = 0
for item in A:
if not ((item % 2) == 0):
s += item
x0 = 0 #
x1... | 25.8 | 57 | 0.5 |
3ea4ef2ff77ddb776dc4b7390350caad1477ed17 | 687 | py | Python | elements/requesting.py | pughlab/GENIE-FMI-converter | 62009d419ac9ada8bfea2432412e0304724ae842 | [
"MIT"
] | null | null | null | elements/requesting.py | pughlab/GENIE-FMI-converter | 62009d419ac9ada8bfea2432412e0304724ae842 | [
"MIT"
] | 1 | 2019-11-19T16:49:21.000Z | 2019-11-19T16:49:21.000Z | elements/requesting.py | pughlab/GENIE-FMI-converter | 62009d419ac9ada8bfea2432412e0304724ae842 | [
"MIT"
] | 1 | 2019-12-12T04:27:29.000Z | 2019-12-12T04:27:29.000Z | import requests
import re
import sys
xml = re.compile(r'<.+>|\n')
# queries using closed intervals [x,y], 1-based
# queries using half-open intervals [x,y), 0-based
| 28.625 | 105 | 0.611354 |
3ea642dd21695e59f25c2f55930176a71d62c99c | 82 | py | Python | python-analysers/src/test/resources/org/jetbrains/research/lupa/pythonAnalysis/imports/analysis/psi/importStatementsData/in_3_several_imports.py | JetBrains-Research/Lupa | c105487621564c60cae17395bf32eb40868ceb89 | [
"Apache-2.0"
] | 16 | 2022-01-11T00:32:20.000Z | 2022-03-25T21:40:52.000Z | python-analysers/src/test/resources/org/jetbrains/research/lupa/pythonAnalysis/imports/analysis/psi/importStatementsData/in_3_several_imports.py | nbirillo/Kotlin-Analysis | 73c3b8a59bf40ed932bb512f30b0ff31f251af40 | [
"Apache-2.0"
] | 12 | 2021-07-05T11:42:01.000Z | 2021-12-23T07:57:54.000Z | python-analysers/src/test/resources/org/jetbrains/research/lupa/pythonAnalysis/imports/analysis/psi/importStatementsData/in_3_several_imports.py | nbirillo/Kotlin-Analysis | 73c3b8a59bf40ed932bb512f30b0ff31f251af40 | [
"Apache-2.0"
] | 3 | 2021-09-10T13:21:54.000Z | 2021-11-23T11:37:55.000Z | import cmath
import math
import logging
import random
import plotly
import pandas
| 11.714286 | 14 | 0.853659 |
3ea72258a32209376e761138207efecbaefac54c | 6,916 | py | Python | tf_agents/policies/categorical_q_policy.py | gregorgebhardt/agents | b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3 | [
"Apache-2.0"
] | null | null | null | tf_agents/policies/categorical_q_policy.py | gregorgebhardt/agents | b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3 | [
"Apache-2.0"
] | null | null | null | tf_agents/policies/categorical_q_policy.py | gregorgebhardt/agents | b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3 | [
"Apache-2.0"
] | 3 | 2019-09-08T22:05:56.000Z | 2020-05-27T08:27:15.000Z | # coding=utf-8
# Copyright 2018 The TF-Agents 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... | 41.915152 | 78 | 0.686669 |
3ea75b500ba52b9dd243fdb83d052c734dde9d13 | 477 | py | Python | invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py | Semtexcz/invenio-oarepo-oai-pmh-harvester | 2866c7d7355f6885b4f443ee1e82baa24502b36e | [
"MIT"
] | null | null | null | invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py | Semtexcz/invenio-oarepo-oai-pmh-harvester | 2866c7d7355f6885b4f443ee1e82baa24502b36e | [
"MIT"
] | null | null | null | invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py | Semtexcz/invenio-oarepo-oai-pmh-harvester | 2866c7d7355f6885b4f443ee1e82baa24502b36e | [
"MIT"
] | null | null | null | from invenio_oarepo_oai_pmh_harvester.register import Decorators
from invenio_oarepo_oai_pmh_harvester.rules.utils import iter_array
from invenio_oarepo_oai_pmh_harvester.transformer import OAITransformer
| 29.8125 | 71 | 0.735849 |
3ea87068d5cb5b9e7405c8d14e13c79ddfb0503e | 639 | py | Python | tests/test_queries.py | guillaumevincent/rangevoting | a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36 | [
"MIT"
] | 4 | 2015-03-23T09:48:32.000Z | 2020-08-25T13:19:08.000Z | tests/test_queries.py | guillaumevincent/rangevoting | a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36 | [
"MIT"
] | 4 | 2015-04-27T23:50:28.000Z | 2015-09-23T07:05:25.000Z | tests/test_queries.py | guillaumevincent/rangevoting | a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36 | [
"MIT"
] | 2 | 2015-09-21T08:58:25.000Z | 2020-08-25T13:19:14.000Z | import unittest
import queries
| 24.576923 | 76 | 0.746479 |
3ea985da6ab078979759098314b0008ca7d1ea59 | 1,490 | py | Python | cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z | from MedipReport import ProjectTracker
from CGATReport.Tracker import SingleTableTrackerRows, \
SingleTableTrackerEdgeList
_gat_analysis = {"Results": GatResults,
"SignificantResults": GatSignificantResults,
"Fold": GatLogFold,
"LogFold": GatLogFold}
_gat_... | 24.032258 | 76 | 0.642953 |
3ead938794e4c6cd2d0971d9e594b96ceaee54b7 | 6,852 | py | Python | interfaces/withdrawal_gui.py | firminoneto11/terceiro-projeto-curso-python | 685a0e6fafdc07a28a4e7589ac40db0de61737c0 | [
"MIT"
] | 1 | 2021-04-07T00:28:41.000Z | 2021-04-07T00:28:41.000Z | interfaces/withdrawal_gui.py | firminoneto11/terceiro-projeto-curso-python | 685a0e6fafdc07a28a4e7589ac40db0de61737c0 | [
"MIT"
] | null | null | null | interfaces/withdrawal_gui.py | firminoneto11/terceiro-projeto-curso-python | 685a0e6fafdc07a28a4e7589ac40db0de61737c0 | [
"MIT"
] | null | null | null | from tkinter import *
from interfaces.functions import centralize
from tkinter import messagebox
from interfaces.functions import update_session_data_csv, update_clients_csv, get_current_balance
| 48.253521 | 120 | 0.597052 |
3eaea2f364b0232cd2155f284fa3e784667552cf | 321 | py | Python | card_collector_db/urls.py | tyhunt99/card-collector-db | 932bd829eb46f9492e6a25326140823629161bab | [
"MIT"
] | null | null | null | card_collector_db/urls.py | tyhunt99/card-collector-db | 932bd829eb46f9492e6a25326140823629161bab | [
"MIT"
] | 4 | 2020-06-05T20:53:52.000Z | 2022-02-10T08:32:51.000Z | card_collector_db/urls.py | tyhunt99/card-collector-db | 932bd829eb46f9492e6a25326140823629161bab | [
"MIT"
] | null | null | null | '''
cardcollectordb URL Configuration
'''
from django.contrib import admin
from django.urls import include, path
from account.views import SignUp
urlpatterns = [
path('admin/', admin.site.urls),
path('account/', include('account.urls'), name='account'),
path('signup/', SignUp.as_view(), name='signup'),
]... | 21.4 | 62 | 0.697819 |
3eaf7ae8895d39770420351b1a65c6dd69d2f75e | 1,829 | py | Python | sdk/python/kfp/v2/components/utils.py | ryansteakley/pipelines | 98677b2190fb327be68e4bb0d00c520593707f21 | [
"Apache-2.0"
] | 1 | 2021-10-23T00:39:47.000Z | 2021-10-23T00:39:47.000Z | sdk/python/kfp/v2/components/utils.py | ryansteakley/pipelines | 98677b2190fb327be68e4bb0d00c520593707f21 | [
"Apache-2.0"
] | null | null | null | sdk/python/kfp/v2/components/utils.py | ryansteakley/pipelines | 98677b2190fb327be68e4bb0d00c520593707f21 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Kubeflow 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... | 31.534483 | 77 | 0.689995 |
3eafedfb7f7bd2c80bdda6855f91326da49ebb9e | 3,068 | py | Python | backend/test/notification_tests/notification_rest_tests.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | backend/test/notification_tests/notification_rest_tests.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | backend/test/notification_tests/notification_rest_tests.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from datetime import datetime, date
from decimal import Decimal
from base import GAETestCase
from notification_app.notification_model import Notification
from routes.notifications import rest
from gaegraph.model import Node
from mock impor... | 38.835443 | 97 | 0.712842 |
3eb1886d18a07c578c32647296635bbe0ed29b6d | 285 | py | Python | yamlcfg/__init__.py | RiskIQ/pyyamlcfg | 93affb9dfdbae7deebd60b50b23b7036682866e4 | [
"BSD-2-Clause"
] | 2 | 2016-05-25T13:50:14.000Z | 2017-08-08T18:24:04.000Z | yamlcfg/__init__.py | RiskIQ/pyyamlcfg | 93affb9dfdbae7deebd60b50b23b7036682866e4 | [
"BSD-2-Clause"
] | 2 | 2015-09-13T12:48:50.000Z | 2019-04-25T10:26:00.000Z | yamlcfg/__init__.py | RiskIQ/pyyamlcfg | 93affb9dfdbae7deebd60b50b23b7036682866e4 | [
"BSD-2-Clause"
] | 3 | 2016-04-29T07:12:44.000Z | 2019-04-08T07:52:14.000Z | #!/usr/bin/env python
''' yamlcfg
Bring in Configs into namespace
'''
from yamlcfg.conf import Config as BaseConfig
from yamlcfg.yml import YAMLConfig
YMLConfig = YAMLConfig
YamlConfig = YAMLConfig
from yamlcfg.util import normalize, validate_ext
from yamlcfg.env import check_env
| 19 | 48 | 0.8 |
3eb1b1746b5ee00b2b35cef5dad3b395d8706a08 | 294 | py | Python | www/bigghosthead/bigghosthead/items.py | baijiege9/BigGhostHead | 1ffa0bf390bad707e4fc902f9af98a4c73eea554 | [
"BSD-3-Clause"
] | null | null | null | www/bigghosthead/bigghosthead/items.py | baijiege9/BigGhostHead | 1ffa0bf390bad707e4fc902f9af98a4c73eea554 | [
"BSD-3-Clause"
] | null | null | null | www/bigghosthead/bigghosthead/items.py | baijiege9/BigGhostHead | 1ffa0bf390bad707e4fc902f9af98a4c73eea554 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from scrapy.item import Item, Field | 22.615385 | 35 | 0.602041 |
3eb626e1df9d6b1845d27917297cdbee245c41fb | 5,008 | py | Python | protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 835 | 2017-02-08T20:14:24.000Z | 2020-03-12T17:37:49.000Z | protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 651 | 2019-04-18T12:55:07.000Z | 2022-03-31T23:45:09.000Z | protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 170 | 2017-02-13T14:49:22.000Z | 2020-02-19T17:59:12.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from ..modeldb import Lineage_pb2 as modeldb_dot_Lineage__pb2
def add_LineageServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'addLineage': grpc.unary_unary_rpc_method_handler(
servicer.addLineag... | 43.547826 | 103 | 0.76877 |
3ebb613990f10c469e7937a90350ba7e43ef9d8e | 10,709 | py | Python | src/sparnn/layers/basic/conv_lstm_layer.py | JoeinChina/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | 1 | 2020-07-23T04:13:02.000Z | 2020-07-23T04:13:02.000Z | src/sparnn/layers/basic/conv_lstm_layer.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null | src/sparnn/layers/basic/conv_lstm_layer.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null |
import numpy
import logging
import theano
import theano.tensor as TT
from theano.gradient import grad_clip
from sparnn.utils import *
from sparnn.layers import Layer
logger = logging.getLogger(__name__)
| 59.494444 | 127 | 0.530488 |
3ebbdc540dc8fa6d2e3f28778c968adced8e307f | 779 | py | Python | build_script.py | lammda/mercari-solution | e6e216d33d19b62fdd4fb2a906bd904ede9c5aaa | [
"MIT"
] | 249 | 2018-03-31T13:08:55.000Z | 2022-02-23T16:13:16.000Z | build_script.py | arita37/mercari-solution | 374301ad1c32cbc93dcc40313d5d7bb9c5503746 | [
"MIT"
] | 1 | 2018-10-24T00:49:12.000Z | 2019-08-28T17:37:00.000Z | build_script.py | arita37/mercari-solution | 374301ad1c32cbc93dcc40313d5d7bb9c5503746 | [
"MIT"
] | 84 | 2018-03-31T20:32:10.000Z | 2022-03-06T10:56:58.000Z | import base64
import glob
import gzip
if __name__ == '__main__':
for submission_name in ['tf', 'mx']:
build_script(submission_name)
| 31.16 | 114 | 0.661104 |
3ebc05f1d094795c30a0aca20105e5ff7a3813fa | 596 | py | Python | data_visualization_gui/src/interactive.py | bbueno5000/DataGUI | 940fcd0fb8dbde22350eacd538a8a1c244eb28ea | [
"MIT"
] | null | null | null | data_visualization_gui/src/interactive.py | bbueno5000/DataGUI | 940fcd0fb8dbde22350eacd538a8a1c244eb28ea | [
"MIT"
] | 2 | 2021-03-31T19:46:50.000Z | 2021-12-13T20:37:15.000Z | data_visualization_gui/src/interactive.py | bbueno5000/DataGUI | 940fcd0fb8dbde22350eacd538a8a1c244eb28ea | [
"MIT"
] | null | null | null | """
DOCSTRING
"""
import dash
import dash.dependencies as dependencies
import dash_core_components.Graph as Graph
import dash_core_components.Input as Input
import dash_html_components.Div as Div
import dash_html_components.H1 as H1
app = dash.Dash()
app.layout = Div(children=[Input(id='input', value='blank', type='te... | 35.058824 | 92 | 0.753356 |
3ebc6bb0c418253d021814396ba94a1161d06814 | 18,106 | py | Python | pidlearningscript.py | mtw30/ml_accumualtor_controller | d80d62ac66ccea9e6f089d9deebf796678fa818b | [
"Apache-2.0"
] | null | null | null | pidlearningscript.py | mtw30/ml_accumualtor_controller | d80d62ac66ccea9e6f089d9deebf796678fa818b | [
"Apache-2.0"
] | null | null | null | pidlearningscript.py | mtw30/ml_accumualtor_controller | d80d62ac66ccea9e6f089d9deebf796678fa818b | [
"Apache-2.0"
] | null | null | null | # My script to process the generated data
# The temperature we want to aim for
aimTemperature = float(30 + 273)
# To halt the script
import sys
# Numpy matrices
import numpy as np
#Used to get the epoch time to calculate the time difference dt
import datetime
import time
#Regular expressions
import re
# Generate rando... | 37.486542 | 122 | 0.643378 |
3ebd20504757b6e90b9dac2cead03c7e3e9835fc | 2,188 | py | Python | graphjson.py | suprfanz/flask-fb-neo4j-alchemy | 8ee5692bdbddc94342b38144d299e9d1a1b0b68d | [
"MIT"
] | 2 | 2018-03-09T03:10:49.000Z | 2020-10-22T10:28:03.000Z | graphjson.py | suprfanz/flask-fb-neo4j-alchemy | 8ee5692bdbddc94342b38144d299e9d1a1b0b68d | [
"MIT"
] | null | null | null | graphjson.py | suprfanz/flask-fb-neo4j-alchemy | 8ee5692bdbddc94342b38144d299e9d1a1b0b68d | [
"MIT"
] | null | null | null | """
graphjson module pull an event from neo4j and creates
graphjson formated file to be used with AlchemyJS
Written by Ray Bernard ray@suprfanz.com
"""
import json
from neo4j.v1 import GraphDatabase, basic_auth
from config import neo4j_dbip, neo4j_admin, neo4j_password
session = GraphDatabase.driver("bolt://{}:7687"... | 29.173333 | 112 | 0.664534 |
3ebd492c672da94f9dbeb381a25939527becda92 | 2,507 | py | Python | dataset.py | kisom/aipnd-classifier | a361fc5f25402bbdfb23ddc08ad1b071fff50210 | [
"MIT"
] | null | null | null | dataset.py | kisom/aipnd-classifier | a361fc5f25402bbdfb23ddc08ad1b071fff50210 | [
"MIT"
] | null | null | null | dataset.py | kisom/aipnd-classifier | a361fc5f25402bbdfb23ddc08ad1b071fff50210 | [
"MIT"
] | null | null | null | """
dataset.py defines a container for a training dataset.
"""
import os
import torch
from torchvision import datasets, transforms
| 32.986842 | 88 | 0.618668 |
3ebef9e4fbaf39a788a4ad55fc4f3d9f0f5242a4 | 3,659 | py | Python | site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py | hariza17/freezer_libraries | e0bd890eba5e7438976fb3b4d66c41c128bab790 | [
"PSF-2.0"
] | null | null | null | site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py | hariza17/freezer_libraries | e0bd890eba5e7438976fb3b4d66c41c128bab790 | [
"PSF-2.0"
] | 1 | 2018-09-10T23:44:02.000Z | 2018-09-12T16:28:07.000Z | site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py | hariza17/freezer_libraries | e0bd890eba5e7438976fb3b4d66c41c128bab790 | [
"PSF-2.0"
] | 2 | 2018-09-07T23:17:23.000Z | 2019-01-11T16:10:08.000Z | # Copyright (C) 2012 - 2014 EMC Corporation.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | 38.515789 | 78 | 0.639519 |
3ebf6af93d750f46cb0ac8a35e125abd85daa7b2 | 710 | py | Python | mlps/core/data/cnvrtr/functions/IPTransferDivide.py | seculayer/automl-mlps | 80569909ec1c25db1ceafbb85b27d069d1a66aa3 | [
"Apache-2.0"
] | null | null | null | mlps/core/data/cnvrtr/functions/IPTransferDivide.py | seculayer/automl-mlps | 80569909ec1c25db1ceafbb85b27d069d1a66aa3 | [
"Apache-2.0"
] | 2 | 2022-03-31T07:39:59.000Z | 2022-03-31T07:40:18.000Z | mlps/core/data/cnvrtr/functions/IPTransferDivide.py | seculayer/AutoAPE-mlps | 80569909ec1c25db1ceafbb85b27d069d1a66aa3 | [
"Apache-2.0"
] | 1 | 2021-11-03T09:09:07.000Z | 2021-11-03T09:09:07.000Z | # -*- coding: utf-8 -*-
# Author : Manki Baek
# e-mail : bmg8551@seculayer.co.kr
# Powered by Seculayer 2021 Service Model Team
from mlps.core.data.cnvrtr.ConvertAbstract import ConvertAbstract
if __name__ == "__main__":
payload = "192.168.1.110"
tokenizer = IPTransferDivide(stat_dict=None, arg_list=None)
... | 24.482759 | 65 | 0.612676 |
3ec23576c70ac623990dae2bb8e27678909b68f6 | 2,327 | py | Python | dataAnalytics/roomAnalytics.py | PeterJWei/EnergyFootprinting | 0396efba7d4e6863452e322f9f7561c6cd756478 | [
"MIT"
] | null | null | null | dataAnalytics/roomAnalytics.py | PeterJWei/EnergyFootprinting | 0396efba7d4e6863452e322f9f7561c6cd756478 | [
"MIT"
] | null | null | null | dataAnalytics/roomAnalytics.py | PeterJWei/EnergyFootprinting | 0396efba7d4e6863452e322f9f7561c6cd756478 | [
"MIT"
] | null | null | null | import DBScrape
import calendar
import datetime
import time
import csv
import sys
import os
days = 30
R = roomAnalytics()
R.roomData()
R.saveData() | 25.021505 | 96 | 0.638161 |
3ec715aa850089a5f7b7b582922c73d2960606c8 | 778 | py | Python | tests/test_kubernetes_master.py | damoxc/charm-kubernetes-master | 624095b278e9f235a03d061132e9fdf029d45b71 | [
"Apache-2.0"
] | null | null | null | tests/test_kubernetes_master.py | damoxc/charm-kubernetes-master | 624095b278e9f235a03d061132e9fdf029d45b71 | [
"Apache-2.0"
] | null | null | null | tests/test_kubernetes_master.py | damoxc/charm-kubernetes-master | 624095b278e9f235a03d061132e9fdf029d45b71 | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest import mock
from reactive import kubernetes_master
from charms.reactive import endpoint_from_flag, remove_state
from charmhelpers.core import hookenv
| 27.785714 | 76 | 0.767352 |
3ec94f77c122b98fdf7c96a211b8a9024dac0bae | 57,058 | py | Python | pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-DOT3-EFM-EPON-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-DOT3-EFM-EPON-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:26:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 169.311573 | 5,121 | 0.783483 |
3ecbd115bcfdc5ce591f196d4fe1390310b89ddc | 576 | py | Python | example/runscripts/nhilton/run_batch_job.py | weegreenblobbie/pith-tool | 25708bd2354cc5d97eb0c0a0046ca4704e4ced0a | [
"MIT"
] | 2 | 2016-03-04T19:25:29.000Z | 2016-03-10T02:22:36.000Z | example/runscripts/nhilton/run_batch_job.py | weegreenblobbie/pith-tool | 25708bd2354cc5d97eb0c0a0046ca4704e4ced0a | [
"MIT"
] | 10 | 2016-03-01T03:23:17.000Z | 2017-04-27T00:37:09.000Z | example/runscripts/nhilton/run_batch_job.py | weegreenblobbie/pith-tool | 25708bd2354cc5d97eb0c0a0046ca4704e4ced0a | [
"MIT"
] | null | null | null | import argparse
from module_a.fun_1 import fun_1
from module_c.fun_4 import fun_4
from external_a.extra_fun import extra_fun
if __name__ == "__main__":
main()
| 16 | 46 | 0.626736 |
3eccf323bfafeef7616f6d78bb34226073a6758e | 3,039 | py | Python | i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py | Rexmen/i18n | b615f2d1e06b58f4647f1b269fc37d7921bc5c4b | [
"MIT"
] | null | null | null | i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py | Rexmen/i18n | b615f2d1e06b58f4647f1b269fc37d7921bc5c4b | [
"MIT"
] | null | null | null | i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py | Rexmen/i18n | b615f2d1e06b58f4647f1b269fc37d7921bc5c4b | [
"MIT"
] | null | null | null | from .Proxy import Proxy
from robot.libraries.BuiltIn import BuiltIn
import sys
from robot.libraries.Screenshot import Screenshot
from robot.api import logger
import I18nListener as i18n
import ManyTranslations as ui
from robot.utils import unic | 50.65 | 137 | 0.58901 |
3ecdb050826a3f9850819307adc5e13bc204f458 | 3,218 | py | Python | dl_bounds/src/experiments/exp_bad_minima_branchout.py | google/dl_bounds | b38fbd73f30d2fd8d1b57ad8706c07a223689365 | [
"Apache-2.0"
] | 12 | 2018-02-23T11:57:26.000Z | 2021-04-20T20:38:16.000Z | dl_bounds/src/experiments/exp_bad_minima_branchout.py | google/dl_bounds | b38fbd73f30d2fd8d1b57ad8706c07a223689365 | [
"Apache-2.0"
] | null | null | null | dl_bounds/src/experiments/exp_bad_minima_branchout.py | google/dl_bounds | b38fbd73f30d2fd8d1b57ad8706c07a223689365 | [
"Apache-2.0"
] | 7 | 2018-06-28T04:10:45.000Z | 2021-10-14T01:18:59.000Z | # coding=utf-8
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 32.836735 | 75 | 0.724984 |
3ecdb707d9b5224c78e8710bc0080bbb309fdaf0 | 279 | py | Python | config.py | DiagnoSkin/diagnoskin-server | e1cae10423323cc681d6acf6cc5d1511e6e2cae5 | [
"Apache-2.0"
] | null | null | null | config.py | DiagnoSkin/diagnoskin-server | e1cae10423323cc681d6acf6cc5d1511e6e2cae5 | [
"Apache-2.0"
] | 4 | 2021-06-08T20:42:49.000Z | 2022-03-12T00:08:54.000Z | config.py | DiagnoSkin/diagnoskin-server | e1cae10423323cc681d6acf6cc5d1511e6e2cae5 | [
"Apache-2.0"
] | null | null | null | import json | 34.875 | 59 | 0.698925 |
3ece59f5395837726a33f7c182a3a996e31afa97 | 699 | py | Python | World 1/If...Else/ex029 - Eletronic Radar.py | MiguelChichorro/PythonExercises | 3b2726e7d9ef92c1eb6b977088692c42a2a7b86e | [
"MIT"
] | 2 | 2021-04-23T19:18:06.000Z | 2021-05-15T17:45:21.000Z | World 1/If...Else/ex029 - Eletronic Radar.py | MiguelChichorro/PythonExercises | 3b2726e7d9ef92c1eb6b977088692c42a2a7b86e | [
"MIT"
] | 1 | 2021-05-14T00:29:23.000Z | 2021-05-14T00:29:23.000Z | World 1/If...Else/ex029 - Eletronic Radar.py | MiguelChichorro/PythonExercises | 3b2726e7d9ef92c1eb6b977088692c42a2a7b86e | [
"MIT"
] | 1 | 2021-05-14T00:19:33.000Z | 2021-05-14T00:19:33.000Z | from time import sleep
colors = {"clean": "\033[m",
"red": "\033[31m",
"green": "\033[32m",
"yellow": "\033[33m",
"blue": "\033[34m",
"purple": "\033[35m",
"cian": "\033[36m"}
v = float(input("Enter the car speed was: "))
tic = (v - 80) * 7
print("{}Loading...... | 38.833333 | 103 | 0.546495 |
3ece62c6129ee74730b7e33194559a50dbbdff89 | 1,913 | py | Python | 687.longest-univalue-path.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | 687.longest-univalue-path.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | 687.longest-univalue-path.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=687 lang=python3
#
# [687] Longest Univalue Path
#
# https://leetcode.com/problems/longest-univalue-path/description/
#
# algorithms
# Easy (34.69%)
# Likes: 1312
# Dislikes: 351
# Total Accepted: 76.5K
# Total Submissions: 218.3K
# Testcase Example: '[5,4,5,1,1,5]'
#
# Given a binary tre... | 21.021978 | 78 | 0.504966 |
3ecfb19dcb608f2b63fc8fd0aece69c83033985f | 6,085 | py | Python | scripts/wordnet.py | WladimirSidorenko/SentimentLexicon | 0d7203b7b7e3ca5d11759fdad656f775fa5d6e95 | [
"MIT"
] | 13 | 2016-08-03T18:46:02.000Z | 2022-02-22T22:30:19.000Z | scripts/wordnet.py | WladimirSidorenko/SentimentLexicon | 0d7203b7b7e3ca5d11759fdad656f775fa5d6e95 | [
"MIT"
] | 2 | 2019-10-22T13:03:48.000Z | 2019-12-05T21:41:36.000Z | scripts/wordnet.py | WladimirSidorenko/SentimentLexicon | 0d7203b7b7e3ca5d11759fdad656f775fa5d6e95 | [
"MIT"
] | 5 | 2019-12-25T13:53:18.000Z | 2020-06-05T20:47:31.000Z | #!/usr/bin/env python2.7
# -*- coding: utf-8; mode: python; -*-
"""
Module for reading and processing GemaNet files.
Constants:
POS - list of parts-of-speech present in GermaNet
RELTYPES - types of GermaNet relations
Classes:
Germanet - main class for processing GermaNet files
"""
#################################... | 35.794118 | 79 | 0.517173 |
3ed5304c84ec79c59f7ad03780e20d83636a1751 | 493 | py | Python | exec_ops/python/run.py | orm011/skyhookml | 0cec9011ffbece3348cf56275f027c4b5b31b4d4 | [
"MIT"
] | null | null | null | exec_ops/python/run.py | orm011/skyhookml | 0cec9011ffbece3348cf56275f027c4b5b31b4d4 | [
"MIT"
] | null | null | null | exec_ops/python/run.py | orm011/skyhookml | 0cec9011ffbece3348cf56275f027c4b5b31b4d4 | [
"MIT"
] | null | null | null | import sys
sys.path.append('./python')
import skyhook.common as lib
import io
import json
import math
import numpy
import os
import os.path
import skimage.io
import struct
user_func = None
# user_func will be defined by the exec call in meta_func
lib.run(callback, meta_func)
| 17.607143 | 57 | 0.720081 |
3ed7524764506c9bf8a8c074a4bfe30279004c01 | 36 | py | Python | example_package/model_eval.py | aaronengland/example_package | 1e45fccc27af57b9d2bb58e16e58ef57d81b656e | [
"MIT"
] | null | null | null | example_package/model_eval.py | aaronengland/example_package | 1e45fccc27af57b9d2bb58e16e58ef57d81b656e | [
"MIT"
] | null | null | null | example_package/model_eval.py | aaronengland/example_package | 1e45fccc27af57b9d2bb58e16e58ef57d81b656e | [
"MIT"
] | null | null | null | # model eval | 9 | 16 | 0.694444 |
3ed921fc020d2c520c2bb21c3fba179cbc45d373 | 2,836 | py | Python | ducky/asm/lexer.py | happz/ducky | 1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad | [
"MIT"
] | 3 | 2015-04-25T18:25:37.000Z | 2017-08-31T20:52:29.000Z | ducky/asm/lexer.py | happz/ducky-legacy | 1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad | [
"MIT"
] | 27 | 2015-01-06T21:59:22.000Z | 2016-11-12T07:31:39.000Z | ducky/asm/lexer.py | happz/ducky-legacy | 1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad | [
"MIT"
] | 1 | 2017-05-14T18:52:34.000Z | 2017-05-14T18:52:34.000Z | import ply.lex
#
# Lexer setup
#
instructions = (
'NOP', 'INT', 'IPI', 'RETINT', 'CALL', 'RET', 'CLI', 'STI', 'HLT', 'RST', 'IDLE',
'PUSH', 'POP', 'INC', 'DEC', 'ADD', 'SUB', 'CMP', 'J', 'AND', 'OR', 'XOR', 'NOT',
'SHL', 'SHR', 'SHRS', 'LW', 'LS', 'LB', 'LI', 'LIU', 'LA', 'STW', 'STS', 'STB',
'MOV', 'SWP', 'MU... | 27.269231 | 112 | 0.563822 |
3ed9543d76f8e0c91108d623c8ce3f5c3c426593 | 3,965 | py | Python | MyUser/api/tests/allauth_login.py | mrvafa/blog-api | cef0773b3199bfb785126ce82567fd7fc78e6c89 | [
"MIT"
] | null | null | null | MyUser/api/tests/allauth_login.py | mrvafa/blog-api | cef0773b3199bfb785126ce82567fd7fc78e6c89 | [
"MIT"
] | null | null | null | MyUser/api/tests/allauth_login.py | mrvafa/blog-api | cef0773b3199bfb785126ce82567fd7fc78e6c89 | [
"MIT"
] | null | null | null | from django.test import TestCase, override_settings
from django.urls import reverse
from rest_framework.test import APIClient
from MyUser.models import User
| 50.189873 | 118 | 0.64691 |
3ed9a5ed8b96c7fface62084d850daafe13c098c | 1,478 | py | Python | flashcards/commands/sets.py | zergov/flashcards | 4d1b1c277585b95517ed6c00ceff7555c8c131eb | [
"MIT"
] | 21 | 2016-06-13T00:51:49.000Z | 2021-03-20T05:04:23.000Z | flashcards/commands/sets.py | zergov/flashcards | 4d1b1c277585b95517ed6c00ceff7555c8c131eb | [
"MIT"
] | 11 | 2016-06-10T10:17:57.000Z | 2020-01-30T15:14:35.000Z | flashcards/commands/sets.py | zergov/flashcards | 4d1b1c277585b95517ed6c00ceff7555c8c131eb | [
"MIT"
] | 4 | 2017-01-02T13:26:21.000Z | 2021-07-07T04:20:00.000Z | """
flashcards.commands.sets
~~~~~~~~~~~~~~~~~~~
Contains the commands and subcommands related to the sets resource.
"""
import os
import click
from flashcards import sets
from flashcards import storage
sets_group.add_command(new)
sets_group.add_command(select)
| 25.482759 | 78 | 0.703654 |
3ed9dea01e0c68f96f2ada5e7ccd8ced87c473be | 329 | py | Python | legiti_challenge/feature_store_pipelines/user/__init__.py | rafaelleinio/legiti-challenge | 5f15cb759d13e23292dffd103bc63583c934bf8b | [
"MIT"
] | 1 | 2021-04-01T19:55:51.000Z | 2021-04-01T19:55:51.000Z | legiti_challenge/feature_store_pipelines/user/__init__.py | rafaelleinio/legiti-challenge | 5f15cb759d13e23292dffd103bc63583c934bf8b | [
"MIT"
] | null | null | null | legiti_challenge/feature_store_pipelines/user/__init__.py | rafaelleinio/legiti-challenge | 5f15cb759d13e23292dffd103bc63583c934bf8b | [
"MIT"
] | null | null | null | """Module containing imports for user entity feature set pipelines."""
from legiti_challenge.feature_store_pipelines.user.user_chargebacks import (
UserChargebacksPipeline,
)
from legiti_challenge.feature_store_pipelines.user.user_orders import UserOrdersPipeline
__all__ = ["UserChargebacksPipeline", "UserOrdersPi... | 41.125 | 88 | 0.841945 |
3eda7f92aad073987eebca83a079837bb3553721 | 5,908 | py | Python | sdf/step.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | sdf/step.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | sdf/step.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | import numpy as np
import struct
import getpass
import struct
from datetime import datetime
edge_curve = {}
| 52.283186 | 164 | 0.488659 |
3edaa008a2ee781cad3cfd27460bbf4776c643ad | 209 | py | Python | djmail/apps.py | CuriousLearner/djmail | da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4 | [
"BSD-3-Clause"
] | 53 | 2015-06-22T11:24:00.000Z | 2021-08-30T21:00:08.000Z | djmail/apps.py | CuriousLearner/djmail | da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4 | [
"BSD-3-Clause"
] | 28 | 2015-11-04T16:11:00.000Z | 2021-02-24T17:48:14.000Z | djmail/apps.py | CuriousLearner/djmail | da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4 | [
"BSD-3-Clause"
] | 22 | 2015-07-29T15:53:53.000Z | 2020-12-21T04:32:26.000Z | from django.apps import AppConfig
| 19 | 41 | 0.660287 |
3edffdae907a0e7657c6b259ab845792ce337f54 | 349 | py | Python | flask-api/schema/change_password.py | PapamichMarios/Intranet | 65cd98d08a1a550d70e1afa4859a0b105c049817 | [
"MIT"
] | 1 | 2021-12-21T19:13:37.000Z | 2021-12-21T19:13:37.000Z | flask-api/schema/change_password.py | PapamichMarios/Intranet | 65cd98d08a1a550d70e1afa4859a0b105c049817 | [
"MIT"
] | null | null | null | flask-api/schema/change_password.py | PapamichMarios/Intranet | 65cd98d08a1a550d70e1afa4859a0b105c049817 | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, validate
| 43.625 | 114 | 0.762178 |
3ee1169f26e39df8113aa1b6b00e7646bd86f543 | 6,100 | py | Python | ros/src/tl_detector/light_classification/tl_classifier.py | jkoloda/CarND-Capstone | 79ccd31930f5aab307a16db7b6c799a2ea54dc41 | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | jkoloda/CarND-Capstone | 79ccd31930f5aab307a16db7b6c799a2ea54dc41 | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | jkoloda/CarND-Capstone | 79ccd31930f5aab307a16db7b6c799a2ea54dc41 | [
"MIT"
] | null | null | null | from styx_msgs.msg import TrafficLight
import tensorflow as tf
import numpy as np
import rospy
import cv2
import os
MAX_IMAGE_WIDTH = 300
MAX_IMAGE_HEIGHT = 300
| 32.972973 | 79 | 0.587869 |
3ee194cecfeab3512df97384ab2ebd0feb3a1a32 | 3,554 | py | Python | esp.py | dries007/MicroPythonUtils | fba10989713f85ce4afa598c550737720df24648 | [
"MIT"
] | null | null | null | esp.py | dries007/MicroPythonUtils | fba10989713f85ce4afa598c550737720df24648 | [
"MIT"
] | null | null | null | esp.py | dries007/MicroPythonUtils | fba10989713f85ce4afa598c550737720df24648 | [
"MIT"
] | null | null | null | import os
import serial
import time
import binascii
import textwrap
import re
from wifi import WIFI_SSID, WIFI_PASS
if __name__ == '__main__':
main()
| 32.018018 | 153 | 0.565841 |
3ee1be975102fb088be8688d19317a0aa2d3e773 | 3,909 | py | Python | dev/tools/leveleditor/pandac/libpandaodeModules.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | dev/tools/leveleditor/pandac/libpandaodeModules.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | dev/tools/leveleditor/pandac/libpandaodeModules.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from extension_native_helpers import *
Dtool_PreloadDLL('libpandaode')
from libpandaode import *
from extension_native_helpers import *
Dtool_PreloadDLL('libpanda')
from libpanda import *
Dtool_funcToMethod(convert, OdeGeom)
del convert
Dtool_funcToMethod(getConvertedSpace, OdeGeom)
del getConvertedSpace
Dtool_fu... | 27.921429 | 53 | 0.724738 |
3ee350f95efe4a8c2344a53f97be58f2e3f0dcc2 | 1,087 | py | Python | view_note.py | pushkar-anand/make-a-note | ca129dd1df1b62faad0c451e0818742bb1b1bc08 | [
"Apache-2.0"
] | 1 | 2018-10-02T07:09:29.000Z | 2018-10-02T07:09:29.000Z | view_note.py | pushkar-anand/make-a-note | ca129dd1df1b62faad0c451e0818742bb1b1bc08 | [
"Apache-2.0"
] | 3 | 2018-10-01T13:40:13.000Z | 2019-05-02T23:17:52.000Z | view_note.py | pushkar-anand/make-a-note | ca129dd1df1b62faad0c451e0818742bb1b1bc08 | [
"Apache-2.0"
] | 6 | 2018-10-02T07:09:30.000Z | 2019-06-09T17:09:49.000Z | import gi
import json
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
| 30.194444 | 74 | 0.589696 |
3ee37804938d5d76c8a9bfe4608d76c629788f81 | 4,588 | py | Python | homeserver/voice_control/voice_controller.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | null | null | null | homeserver/voice_control/voice_controller.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | 1 | 2019-11-30T10:59:28.000Z | 2019-11-30T10:59:28.000Z | homeserver/voice_control/voice_controller.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | null | null | null |
from homeserver.voice_control.google_speech import GoogleVoiceRecognition
from homeserver.voice_control.snowboy.snowboydecoder import HotwordDetector, play_audio_file
#make the voicecontrol follow the device interface structure for control
from homeserver.interface import DeviceInterface, DeviceTarget
# import the ... | 24.275132 | 92 | 0.735833 |
3ee3d2c54d6989f6ad2059cbf79a527aa7c5bc22 | 451 | py | Python | main.py | CSULB-RMC/testing-repo | f0f82f43dadd91c2e6b968cb6ed13b50df4505c2 | [
"Unlicense"
] | null | null | null | main.py | CSULB-RMC/testing-repo | f0f82f43dadd91c2e6b968cb6ed13b50df4505c2 | [
"Unlicense"
] | null | null | null | main.py | CSULB-RMC/testing-repo | f0f82f43dadd91c2e6b968cb6ed13b50df4505c2 | [
"Unlicense"
] | null | null | null | # Name: HELLO WORLD
# Author: Fenteale
#
# Notes:
# This is just a tiny program meant to showcase what
# a repository will look like when downloaded through
# github.
print("Hello World!")
print("This is just meant to be a tiny program to show off what a repo looks like.")
inp = input("Type something here: ")
print... | 23.736842 | 84 | 0.716186 |
3ee5a364faab5171c5ce76299e1bdd425fb0f34b | 188 | py | Python | arduinowithpyFirmata.py | xfzlun/WinUIAutomation | 0f94388671cf0aacbc8499293b7dd31ddfa205fa | [
"MIT"
] | null | null | null | arduinowithpyFirmata.py | xfzlun/WinUIAutomation | 0f94388671cf0aacbc8499293b7dd31ddfa205fa | [
"MIT"
] | null | null | null | arduinowithpyFirmata.py | xfzlun/WinUIAutomation | 0f94388671cf0aacbc8499293b7dd31ddfa205fa | [
"MIT"
] | null | null | null | from pyfirmata import Arduino, util
import time
board = Arduino('/dev/ttyACM0')
while 1:
board.digital[13].write(0)
time.sleep(1)
board.digital[13].write(1)
time.sleep(1)
| 18.8 | 35 | 0.680851 |
3ee683dea81950011c4a8893e44e207f0c0558cc | 275 | py | Python | 2016/Day5/tests.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | 2016/Day5/tests.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | 2016/Day5/tests.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | import pytest
from Door import Door | 22.916667 | 47 | 0.676364 |
3ee8fa63da0e0bfe5eb55277fd9f507afe7bfefe | 1,528 | py | Python | CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 13 | 2015-11-30T15:49:45.000Z | 2022-02-08T16:11:30.000Z | CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 640 | 2015-02-11T18:55:47.000Z | 2022-03-31T14:12:23.000Z | CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 51 | 2015-08-11T21:01:40.000Z | 2022-03-30T07:31:34.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("SiPixelCPEGenericErrorParmReaderTest")
process.load("CondCore.DBCommon.CondDBSetup_cfi")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked... | 40.210526 | 103 | 0.620419 |
3eea8ad1e4ebfd2294a6137803d28554a3bc0130 | 5,621 | py | Python | tools/perf/benchmarks/smoothness.py | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-01-25T10:18:18.000Z | 2021-01-23T15:29:56.000Z | tools/perf/benchmarks/smoothness.py | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/perf/benchmarks/smoothness.py | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:24:13.000Z | 2020-11-04T07:24:13.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry import test
from benchmarks import silk_flags
from measurements import smoothness
import page_sets
class SmoothnessMaps(test.Test):
te... | 32.871345 | 80 | 0.794698 |
3eeacd092135bae68f848fe55ada198c37b80c48 | 315 | py | Python | setup.py | igorccouto/robot | 67019ee1f52d5474ce36734c1e56725046471cd9 | [
"MIT"
] | null | null | null | setup.py | igorccouto/robot | 67019ee1f52d5474ce36734c1e56725046471cd9 | [
"MIT"
] | null | null | null | setup.py | igorccouto/robot | 67019ee1f52d5474ce36734c1e56725046471cd9 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='robot',
version='1.0',
author='Igor Couto',
author_email='igorcouto@gmail.com',
description='A project to execute a robot that performs several actions on the browser.',
packages=find_packages(),
license='MIT'
)
| 28.636364 | 96 | 0.660317 |
3eec09187c14d47ed9948ca3461f050626849937 | 31,103 | py | Python | carcassonne.py | pierre-dejoue/carcassonne | 046c39fd61f17072e6d75a48ef65afa7be82a973 | [
"MIT"
] | null | null | null | carcassonne.py | pierre-dejoue/carcassonne | 046c39fd61f17072e6d75a48ef65afa7be82a973 | [
"MIT"
] | null | null | null | carcassonne.py | pierre-dejoue/carcassonne | 046c39fd61f17072e6d75a48ef65afa7be82a973 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import boundary
import functools
import graphics
import itertools
import json
import operator
import os.path
import random
import re
import secrets
import sys
import traceback
from boundary import Boundary
from boundary import Domain
from boundary import Orientation
from boundary... | 36.764775 | 230 | 0.635051 |
3eec12f5620398b980058505bc6d6b26e01d13f2 | 11,029 | py | Python | business_card/mainpage.py | AshxStudio/PyLearning | 4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e | [
"MIT"
] | null | null | null | business_card/mainpage.py | AshxStudio/PyLearning | 4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e | [
"MIT"
] | null | null | null | business_card/mainpage.py | AshxStudio/PyLearning | 4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainpage.ui'
#
# Created by: PyQt5 UI code generator 5.8.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import *
| 54.59901 | 80 | 0.710581 |
3eecad1535b44d09acd50ef4de76145c633066a1 | 2,890 | py | Python | project/classification/posture_classification/ops/data_processor.py | jh-lau/solid_ai_waddle | b966f2c6e8b6b48c62064d58461692231aa2116b | [
"MIT"
] | null | null | null | project/classification/posture_classification/ops/data_processor.py | jh-lau/solid_ai_waddle | b966f2c6e8b6b48c62064d58461692231aa2116b | [
"MIT"
] | null | null | null | project/classification/posture_classification/ops/data_processor.py | jh-lau/solid_ai_waddle | b966f2c6e8b6b48c62064d58461692231aa2116b | [
"MIT"
] | null | null | null | """
@Author : liujianhan
@Date : 2018/6/2 11:59
@Project : posture_classification
@FileName : data_processor.py
@Description : Placeholder
"""
import os
from typing import Tuple
import pandas as pd
from keras.applications.resnet50 import preprocess_input
from keras.preprocessing.image... | 34.404762 | 80 | 0.664014 |
3eecb6e97ffd929b50cc81c0b14af95a02561e17 | 150 | py | Python | 1015.py | gabzin/beecrowd | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | 3 | 2021-12-15T20:27:14.000Z | 2022-03-01T12:30:08.000Z | 1015.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | 1015.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | from math import sqrt
x1,y1=map(float,input().split())
x2,y2=map(float,input().split())
p1=x2-x1
p2=y2-y1
res=sqrt((p1*p1)+(p2*p2))
print("%.4f"%res)
| 18.75 | 32 | 0.66 |
3eed4a648db7f6b58a8270deb65a534840398278 | 43 | py | Python | modules/pointer_network/__init__.py | matthew-z/pytorch_rnet | 670f3796cd01595903ef781ec7eb0e55c020e77b | [
"MIT"
] | 227 | 2017-09-20T08:17:07.000Z | 2022-02-16T23:48:04.000Z | modules/pointer_network/__init__.py | matthew-z/R-Net | 670f3796cd01595903ef781ec7eb0e55c020e77b | [
"MIT"
] | 18 | 2017-10-25T14:42:56.000Z | 2020-04-14T18:50:48.000Z | modules/pointer_network/__init__.py | matthew-z/R-Net | 670f3796cd01595903ef781ec7eb0e55c020e77b | [
"MIT"
] | 59 | 2017-10-02T15:25:27.000Z | 2021-05-28T07:57:39.000Z | from .pointer_network import PointerNetwork | 43 | 43 | 0.906977 |
3eedf65adf2ccf1a08d61e0dec0f3caf4fa9559f | 985 | py | Python | twitch_the_universim_chat/views.py | gaelfargeas/twitch_universim_streamer_chat | 4773bf30e6aab3d9f950ba027e7aa3e51278428c | [
"BSD-3-Clause"
] | null | null | null | twitch_the_universim_chat/views.py | gaelfargeas/twitch_universim_streamer_chat | 4773bf30e6aab3d9f950ba027e7aa3e51278428c | [
"BSD-3-Clause"
] | null | null | null | twitch_the_universim_chat/views.py | gaelfargeas/twitch_universim_streamer_chat | 4773bf30e6aab3d9f950ba027e7aa3e51278428c | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render, redirect
from django.utils.datastructures import MultiValueDictKeyError
| 27.361111 | 62 | 0.631472 |
3eef9508412716c264b3b444bb752f75ff044dba | 1,480 | py | Python | numba/exttypes/tests/test_extension_attributes.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | numba/exttypes/tests/test_extension_attributes.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | numba/exttypes/tests/test_extension_attributes.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | """
Test class attributes.
"""
import numba
from numba import *
from numba.testing.test_support import parametrize, main
#------------------------------------------------------------------------
# Tests
#------------------------------------------------------------------------
if __name__ == '__main__':
# test_d... | 20.555556 | 73 | 0.551351 |
3ef2102b67623964df7f8e5b43fb31855632c83c | 1,386 | py | Python | tests/plugins/pull/test_poll.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | 4 | 2018-10-07T11:32:00.000Z | 2019-04-23T09:34:23.000Z | tests/plugins/pull/test_poll.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | null | null | null | tests/plugins/pull/test_poll.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | 1 | 2019-08-12T19:56:10.000Z | 2019-08-12T19:56:10.000Z | import time
from datetime import datetime
import pytest
from pnp.plugins.pull import StopPollingError
from pnp.plugins.pull.simple import CustomPolling
from . import make_runner, start_runner
def test_poll_with_cron_expression():
from cronex import CronExpression
dut = CustomPolling(name='pytest', interv... | 24.75 | 110 | 0.683983 |
3ef267c5d2fee953bb87ccf05e6b6f25d5d276e4 | 3,632 | py | Python | motorisedcameratracking/Cameras.py | wDove1/motorisedcameratracking | 97ae1722978fc99faf37c0ab7e3c8f39e3e2355d | [
"Apache-2.0"
] | null | null | null | motorisedcameratracking/Cameras.py | wDove1/motorisedcameratracking | 97ae1722978fc99faf37c0ab7e3c8f39e3e2355d | [
"Apache-2.0"
] | null | null | null | motorisedcameratracking/Cameras.py | wDove1/motorisedcameratracking | 97ae1722978fc99faf37c0ab7e3c8f39e3e2355d | [
"Apache-2.0"
] | null | null | null | from picamera import PiCamera
from time import *
from cv2 import *
import numpy as np
import os
from PIL import Image
from .errors import *
| 35.262136 | 99 | 0.566079 |
3ef554160c1a186dae9bd51e974deb08ac86e468 | 1,226 | py | Python | setup.py | Superbuy-Team/sbcnab240 | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | [
"MIT"
] | 5 | 2017-12-19T17:50:56.000Z | 2019-02-12T03:19:50.000Z | setup.py | Superbuy-Team/sbcnab240 | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | [
"MIT"
] | null | null | null | setup.py | Superbuy-Team/sbcnab240 | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
"""
Uma biblioteca para leitura de arquivos CNAB 240.
"""
setup(
name='sbcnab240',
version='0.1.0',
url='https://github.com/Superbuy-Team/sbcnab240/',
license='MIT',
author='SuperBuy Team',
author_email='ti@superbuy.com.br',
description='Uma bibl... | 31.435897 | 70 | 0.630506 |
3ef60e720154164bc72b950006e65765140586cd | 860 | py | Python | mlib/web/shadow_lib.py | mgroth0/mlib | 0442ed51eab417b6972f885605afd351892a3a9a | [
"MIT"
] | 1 | 2020-06-16T17:26:45.000Z | 2020-06-16T17:26:45.000Z | mlib/web/shadow_lib.py | mgroth0/mlib | 0442ed51eab417b6972f885605afd351892a3a9a | [
"MIT"
] | null | null | null | mlib/web/shadow_lib.py | mgroth0/mlib | 0442ed51eab417b6972f885605afd351892a3a9a | [
"MIT"
] | null | null | null | from mlib.proj.struct import Project
from mlib.web.html import HTMLPage, Hyperlink, HTMLImage
SKIPPED_SOURCE = [
'@log_invokation',
'global DOC',
'@staticmethod'
]
FUN_LINKS = {
'bilinear': 'https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.bilinear.html'
}
FUN_LINKS.update(
{fun.s... | 27.741935 | 105 | 0.676744 |
3efa82e7a5854f87ab9bf7282fade9ac7afa8bff | 3,607 | py | Python | markdown-journal.py | fire-wally/markdown-notebook | 8fe22f645d6aca65f5f02cf4a67993e809795396 | [
"Apache-2.0"
] | null | null | null | markdown-journal.py | fire-wally/markdown-notebook | 8fe22f645d6aca65f5f02cf4a67993e809795396 | [
"Apache-2.0"
] | null | null | null | markdown-journal.py | fire-wally/markdown-notebook | 8fe22f645d6aca65f5f02cf4a67993e809795396 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python3
import sys
import os
import shutil
import markdown
def generate_markdown(source_file, dest_dir):
'''generates a new html file in the dest directory, returns the name of the
newly-created file'''
md = ""
with open(source_file, 'r') as opened_file:
md = opened_file.r... | 33.71028 | 108 | 0.640144 |
3efbe3ec6f7235b59b283ab4d9dd8c0d9a53ffcd | 1,090 | py | Python | plugins/modules/set_java_trusted_sites_facts.py | c2platform/ansible-collection-core | 40c4e86349cda170c406c9af2b74d7760dcf5c86 | [
"MIT"
] | null | null | null | plugins/modules/set_java_trusted_sites_facts.py | c2platform/ansible-collection-core | 40c4e86349cda170c406c9af2b74d7760dcf5c86 | [
"MIT"
] | null | null | null | plugins/modules/set_java_trusted_sites_facts.py | c2platform/ansible-collection-core | 40c4e86349cda170c406c9af2b74d7760dcf5c86 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()
| 30.277778 | 75 | 0.647706 |
3efc5fe15cf4eeb421dcf698ef2f0aa33c8d45db | 53 | py | Python | src/signal_backtester/schemas/__init__.py | xibalbas/signal_backtester | 8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9 | [
"MIT"
] | 14 | 2022-03-04T20:23:45.000Z | 2022-03-30T11:04:40.000Z | src/signal_backtester/schemas/__init__.py | xibalbas/signal_backtester | 8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9 | [
"MIT"
] | null | null | null | src/signal_backtester/schemas/__init__.py | xibalbas/signal_backtester | 8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9 | [
"MIT"
] | 2 | 2022-03-05T10:18:19.000Z | 2022-03-06T12:51:49.000Z | """Schemas
Schemas Package
more description
"""
| 10.6 | 20 | 0.679245 |
3efdff5f0d2a7d90af9b5f718370bdc45e63e120 | 5,829 | py | Python | py/src/api_custo.py | Ennoriel/veille-pedagogique | 63f368ad1faee2f6fca86fff68ccccc7ac89f81b | [
"FSFAP"
] | null | null | null | py/src/api_custo.py | Ennoriel/veille-pedagogique | 63f368ad1faee2f6fca86fff68ccccc7ac89f81b | [
"FSFAP"
] | null | null | null | py/src/api_custo.py | Ennoriel/veille-pedagogique | 63f368ad1faee2f6fca86fff68ccccc7ac89f81b | [
"FSFAP"
] | null | null | null | from itertools import chain, combinations
from re import search
from urllib.parse import urlparse
from pymongo.errors import BulkWriteError
from tweepy import OAuthHandler, API
from yaml import load as yaml_load, BaseLoader
from objects.article import Article
from objects.hashtag import Hashtag
from objects.tweet imp... | 31.33871 | 111 | 0.731515 |
3eff530062f79f81142b5bbce7a5802437435e1c | 3,985 | py | Python | ensemble_compilation/physical_db.py | LumingSun/deepdb-public | 39cf21b3145c3255f15eb40df606b02a53323e86 | [
"MIT"
] | 48 | 2020-02-21T10:19:18.000Z | 2022-03-29T20:59:20.000Z | ensemble_compilation/physical_db.py | LumingSun/deepdb-public | 39cf21b3145c3255f15eb40df606b02a53323e86 | [
"MIT"
] | 7 | 2020-04-29T15:13:05.000Z | 2021-06-08T13:33:53.000Z | ensemble_compilation/physical_db.py | jschj/deepdb-public | 655ada13a043a4226a239b0c0a65bcdefef87a02 | [
"MIT"
] | 18 | 2020-02-21T13:11:49.000Z | 2022-03-07T23:27:05.000Z | import psycopg2
import pandas as pd
from ensemble_compilation.utils import gen_full_join_query, print_conditions
| 36.227273 | 118 | 0.524969 |
4103275c6f48564c6ff1fad5fb0a8944ab60a436 | 137,967 | py | Python | release/stubs/Autodesk/AutoCAD/EditorInput.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/EditorInput.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/EditorInput.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Autodesk.AutoCAD.EditorInput calls itself EditorInput
# from Acmgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null, accoremgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
... | 34.972624 | 486 | 0.648677 |
4104d25dc6796ebc87ccaf0dca4400cb888e648b | 169 | py | Python | AutotestWebD/all_models_for_mock/models/__init__.py | yangjourney/sosotest | 2e88099a829749910ca325253c9b1a2e368d21a0 | [
"MIT"
] | 422 | 2019-08-18T05:04:20.000Z | 2022-03-31T06:49:19.000Z | AutotestWebD/all_models_for_mock/models/__init__.py | LinSongJian1985/sosotest | 091863dee531b5726650bb63efd6f169267cbeb4 | [
"MIT"
] | 10 | 2019-10-24T09:55:38.000Z | 2021-09-29T17:28:43.000Z | AutotestWebD/all_models_for_mock/models/__init__.py | LinSongJian1985/sosotest | 091863dee531b5726650bb63efd6f169267cbeb4 | [
"MIT"
] | 202 | 2019-08-18T05:04:27.000Z | 2022-03-30T05:57:18.000Z | from all_models_for_mock.models.M0001_mock import *
from all_models_for_mock.models.M0002_keywords import *
from all_models_for_mock.models.M0003_statisic_task import *
| 42.25 | 60 | 0.87574 |
41067ed6db1ed6b79ce07e5f1ba003d3a292c73c | 151 | py | Python | chpt8/Reverse.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | null | null | null | chpt8/Reverse.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-21T09:39:00.000Z | 2018-05-27T15:59:15.000Z | chpt8/Reverse.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-19T14:59:56.000Z | 2018-05-19T15:25:48.000Z | # This program reverses a given string
reverse()
| 13.727273 | 43 | 0.629139 |
4108814557aaf45fa9bd2469a548f631f9648812 | 29,383 | py | Python | pauxy/walkers/thermal.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 16 | 2020-08-05T17:17:17.000Z | 2022-03-18T04:06:18.000Z | pauxy/walkers/thermal.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 4 | 2020-05-17T21:28:20.000Z | 2021-04-22T18:05:50.000Z | pauxy/walkers/thermal.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 5 | 2020-05-18T01:03:18.000Z | 2021-04-13T15:36:29.000Z | import copy
import cmath
import numpy
import scipy.linalg
from pauxy.estimators.thermal import greens_function, one_rdm_from_G, particle_number
from pauxy.estimators.mixed import local_energy
from pauxy.walkers.stack import PropagatorStack
from pauxy.walkers.walker import Walker
from pauxy.utils.linalg import regularis... | 41.678014 | 130 | 0.510499 |
4108de14460ec5d4d27312f76596c4d68c7d284a | 1,607 | py | Python | schedules_tools/batches/utils.py | RedHat-Eng-PGM/python-schedules-tools | 6166cdd0e5f7c08fba1c50f113ae6a6103460f9b | [
"MIT"
] | 1 | 2019-05-06T21:10:35.000Z | 2019-05-06T21:10:35.000Z | schedules_tools/batches/utils.py | RedHat-Eng-PGM/schedules-tools | fd96a9e1df4e53b8da3048c013af0cd2c290f9b5 | [
"MIT"
] | 5 | 2019-05-06T21:25:38.000Z | 2021-02-05T20:54:30.000Z | schedules_tools/batches/utils.py | RedHat-Eng-PGM/schedules-tools | fd96a9e1df4e53b8da3048c013af0cd2c290f9b5 | [
"MIT"
] | 1 | 2019-10-31T01:51:41.000Z | 2019-10-31T01:51:41.000Z | from collections import OrderedDict
import os
import re
from schedules_tools.schedule_handlers.smart_sheet import ScheduleHandler_smartsheet
import yaml
DEFAULT_TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates')
DEPENDENCY_REGEX = re.compile(r'^{(?P<to>predecessor|\d+)}(?P<type>[F|S]+)?'
... | 31.509804 | 88 | 0.645924 |
410af5985b4b1c70714faefbc090b58a89a67ddd | 270 | py | Python | main/run_camera_calibrate.py | mcekwonu/pycamera | 0d2c9cb70e8cbc9012e252c06ff1827ae8544cf2 | [
"MIT"
] | null | null | null | main/run_camera_calibrate.py | mcekwonu/pycamera | 0d2c9cb70e8cbc9012e252c06ff1827ae8544cf2 | [
"MIT"
] | null | null | null | main/run_camera_calibrate.py | mcekwonu/pycamera | 0d2c9cb70e8cbc9012e252c06ff1827ae8544cf2 | [
"MIT"
] | null | null | null | """Script to run camera calibration"""
from camera import Camera
camera = Camera(source_dir='/home/mce/Documents/bubble3D/calibration/Cam01', outfilename='Cam01',
target_dir='results/camera', verbose=True)
camera.calibrate()
camera.compute_undistort()
| 30 | 97 | 0.740741 |
410b5247c45f5769ae5e7ac2ac703fb1bb25e83e | 1,994 | py | Python | Hub/Program/Other/Class/ZThreadSingle.py | MPZinke/SmartCurtain | ef9976d7a6b982bb044e6fd914fdea4756d5b5c4 | [
"MIT"
] | null | null | null | Hub/Program/Other/Class/ZThreadSingle.py | MPZinke/SmartCurtain | ef9976d7a6b982bb044e6fd914fdea4756d5b5c4 | [
"MIT"
] | 18 | 2020-06-21T02:36:52.000Z | 2022-03-14T04:17:56.000Z | Hub/Program/Other/Class/ZThreadSingle.py | MPZinke/SmartCurtain | ef9976d7a6b982bb044e6fd914fdea4756d5b5c4 | [
"MIT"
] | 1 | 2020-01-19T02:24:38.000Z | 2020-01-19T02:24:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "MPZinke"
########################################################################################################################
# #
# cre... | 51.128205 | 120 | 0.336008 |
410eb00a7e9f189e5d58a886e9ad9987223272ea | 783 | py | Python | flasks/conver.py | edgells/python-commons | 38c0aa0ec10304a4147ea231c92c9e34da462052 | [
"MIT"
] | null | null | null | flasks/conver.py | edgells/python-commons | 38c0aa0ec10304a4147ea231c92c9e34da462052 | [
"MIT"
] | null | null | null | flasks/conver.py | edgells/python-commons | 38c0aa0ec10304a4147ea231c92c9e34da462052 | [
"MIT"
] | null | null | null | from flask import Flask
from werkzeug.routing import BaseConverter
app = Flask(__name__)
app.config['DEBUG'] = True
app.url_map.converters['re'] = RegexConverter
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8888)
| 19.575 | 53 | 0.583653 |
4111e0047e651eec2b041b914921035fe36454e5 | 773 | py | Python | trend_analyze/src/model/entity_url.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | null | null | null | trend_analyze/src/model/entity_url.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | 2 | 2020-09-26T14:58:33.000Z | 2021-03-31T20:01:40.000Z | trend_analyze/src/model/entity_url.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | null | null | null | from pyfields import field
from trend_analyze.src.validate import Validate
from trend_analyze.config import *
| 32.208333 | 107 | 0.659767 |
41122da858230ceb4c96eb4a8c7375d59b77bc28 | 8,148 | py | Python | kotti/testing.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | kotti/testing.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | kotti/testing.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Inheritance Diagram
-------------------
.. inheritance-diagram:: kotti.testing
"""
import os
from os.path import join, dirname
from unittest import TestCase
from pytest import mark
from pyramid import testing
from pyramid.events import NewResponse
from pyramid.security import ALL_PERMISS... | 26.627451 | 78 | 0.676976 |
4113d55c3875b03d32cbc830fabbfbb2cdd11046 | 694 | py | Python | leetcode/trees/level-order.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 8 | 2019-05-14T12:50:29.000Z | 2022-03-01T09:08:27.000Z | leetcode/trees/level-order.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 46 | 2019-03-24T20:59:29.000Z | 2019-04-09T16:28:43.000Z | leetcode/trees/level-order.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 1 | 2022-01-28T12:46:29.000Z | 2022-01-28T12:46:29.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 22.387097 | 60 | 0.487032 |
41141320d4d129bb735e6489daf0039fbb723f89 | 300 | py | Python | Python Files/count_down.py | gerryjenkinslb/cs22-slides-and-py-files | 9474f7a2e50d57afa13edc3b13c008f7295da747 | [
"MIT"
] | 28 | 2019-07-05T04:00:45.000Z | 2022-02-16T09:43:50.000Z | Python Files/count_down.py | gerryjenkinslb/cs22-slides-and-py-files | 9474f7a2e50d57afa13edc3b13c008f7295da747 | [
"MIT"
] | null | null | null | Python Files/count_down.py | gerryjenkinslb/cs22-slides-and-py-files | 9474f7a2e50d57afa13edc3b13c008f7295da747 | [
"MIT"
] | 22 | 2018-10-24T04:42:05.000Z | 2022-02-04T08:17:27.000Z | # simple recursions
print("-"*5, "count down from 10")
count_down(10)
print()
print("-"*5, "count down from 5")
count_down(5)
print()
| 20 | 54 | 0.576667 |
4116fb09afbe45f7f25e769dc8cd6a9b1dcfa4fc | 1,513 | py | Python | src/activations.py | saman-codes/dldojo | 9fd828f1902ba3d46e9bb5f554ef37d07335b29e | [
"MIT"
] | null | null | null | src/activations.py | saman-codes/dldojo | 9fd828f1902ba3d46e9bb5f554ef37d07335b29e | [
"MIT"
] | null | null | null | src/activations.py | saman-codes/dldojo | 9fd828f1902ba3d46e9bb5f554ef37d07335b29e | [
"MIT"
] | null | null | null | # Standard Python
import copy
# Thirdparty
import numpy as np
| 19.649351 | 118 | 0.604759 |
411e7327dfc8f59a57e3065bd00dbadcb1b1f18c | 302 | py | Python | mkdir.py | FunsomMars/Timg | 216c994fd0b100996e72f4cda4eace369c8452ef | [
"MIT"
] | null | null | null | mkdir.py | FunsomMars/Timg | 216c994fd0b100996e72f4cda4eace369c8452ef | [
"MIT"
] | null | null | null | mkdir.py | FunsomMars/Timg | 216c994fd0b100996e72f4cda4eace369c8452ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019-07-23 22:47
# @Author : Simon Meng
# @Site :
# @File : mkdir.py
# @Software: PyCharm
import os
# Make a folder under the current path
| 17.764706 | 38 | 0.609272 |
411fa137c5df36c387a70295ace27f0afc3352fe | 2,183 | py | Python | scripts/create-opencl-headers.py | molkoback/icemet-server | 9d7a29b38c711534923952d598fc37efff5db154 | [
"MIT"
] | null | null | null | scripts/create-opencl-headers.py | molkoback/icemet-server | 9d7a29b38c711534923952d598fc37efff5db154 | [
"MIT"
] | null | null | null | scripts/create-opencl-headers.py | molkoback/icemet-server | 9d7a29b38c711534923952d598fc37efff5db154 | [
"MIT"
] | 1 | 2020-09-16T15:33:23.000Z | 2020-09-16T15:33:23.000Z | import os
import sys
header_file_fmt = "{name}_ocl.hpp"
header_string = (
"#ifndef {definition}_OCL_HPP\n"
"#define {definition}_OCL_HPP\n"
"#include <opencv2/core/ocl.hpp>\n"
"const cv::ocl::ProgramSource& {module}_{name}_ocl() {{\n"
"static cv::ocl::ProgramSource source(\"{module}\", \"{name}\", \"{kernel}\", \"\");... | 27.987179 | 87 | 0.685295 |
4120f12f58edfe39a3cbad96c6f37cc20266c8ae | 251 | py | Python | main.py | aleattene/lotto-game | 6871699c44c988f926db986668524c002d3560f2 | [
"MIT"
] | null | null | null | main.py | aleattene/lotto-game | 6871699c44c988f926db986668524c002d3560f2 | [
"MIT"
] | null | null | null | main.py | aleattene/lotto-game | 6871699c44c988f926db986668524c002d3560f2 | [
"MIT"
] | null | null | null |
from lotto_game.lotto_game import LottoGame
if __name__ == "__main__":
main()
| 14.764706 | 43 | 0.681275 |
412189bdca83add7a6eee8aca45c35007f4cbdb4 | 256 | py | Python | models/mail_message.py | billhepeng/wx_tools | 64369531bd76a935eff547c50ff68150a240849d | [
"Apache-2.0"
] | 1 | 2021-01-19T02:49:14.000Z | 2021-01-19T02:49:14.000Z | models/mail_message.py | billhepeng/wx_tools | 64369531bd76a935eff547c50ff68150a240849d | [
"Apache-2.0"
] | null | null | null | models/mail_message.py | billhepeng/wx_tools | 64369531bd76a935eff547c50ff68150a240849d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
| 21.333333 | 74 | 0.703125 |
41229bdd678deb184613795447a9a74eef973ea7 | 2,361 | py | Python | src/TheLanguage/Parser/Statements/BinaryStatementParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Statements/BinaryStatementParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Statements/BinaryStatementParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | 1 | 2021-06-18T18:58:57.000Z | 2021-06-18T18:58:57.000Z | # ----------------------------------------------------------------------
# |
# | BinaryStatementParserInfo.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2021-10-12 13:55:27
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2021
# | Di... | 36.890625 | 79 | 0.454892 |
4122eec27606ee355d75c58e79851c7226e97614 | 10,947 | py | Python | deprecated/finder_0.1.py | acic2015/findr | ac3061cb056cfe6a151c4096d04bce0d03545032 | [
"MIT"
] | 7 | 2015-11-24T04:44:55.000Z | 2018-02-08T02:13:14.000Z | deprecated/finder_0.1.py | acic2015/findr | ac3061cb056cfe6a151c4096d04bce0d03545032 | [
"MIT"
] | 9 | 2015-11-24T17:43:13.000Z | 2017-09-15T19:37:10.000Z | deprecated/finder_0.1.py | acic2015/findr | ac3061cb056cfe6a151c4096d04bce0d03545032 | [
"MIT"
] | 4 | 2015-12-15T03:39:40.000Z | 2021-07-20T11:28:09.000Z | __author__ = 'Daniel Kapellusch'
import astropy.io.fits as fits
import os
import csv
import json
import sys
import multiprocessing as mp #necessary imports. Note: this is written in python 2.
from os import path
import ConfigParser
from os import system
#necessary imports. Note: this is written in python 2.
global pa... | 37.108475 | 145 | 0.652325 |
4122f41a65d52a80ce0e4e61b3b52bf36d00d875 | 3,143 | py | Python | concerned-coyotes/earlyinternet/news/tests.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | concerned-coyotes/earlyinternet/news/tests.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | concerned-coyotes/earlyinternet/news/tests.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | import datetime
import random
from django.test import TestCase
from django.utils.dateparse import parse_datetime
from .models import Article
| 39.2875 | 118 | 0.598473 |
4122fe432a52c30c10d6907870148cde9432de71 | 2,648 | py | Python | src/shake/sentence_nlp.py | makergabriel/gearmood | cd0e205e6e22f9f4b33d18d93e5bef5a39b8763e | [
"MIT"
] | null | null | null | src/shake/sentence_nlp.py | makergabriel/gearmood | cd0e205e6e22f9f4b33d18d93e5bef5a39b8763e | [
"MIT"
] | null | null | null | src/shake/sentence_nlp.py | makergabriel/gearmood | cd0e205e6e22f9f4b33d18d93e5bef5a39b8763e | [
"MIT"
] | null | null | null | import nltk
from nltk.tokenize import sent_tokenize
from nltk.tokenize import word_tokenize
from nltk.corpus import wordnet
# TODO move cut words to config
CUT_WORDS = (
"drop",
"cut",
"leave",
"lose",
"trim",
"shed",
"cast",
"unload",
"strike",
"skip",
"throw",
"shake",... | 31.52381 | 95 | 0.60423 |
412303d786bf1234fa947a471b024bc73e098561 | 173 | py | Python | Python/Programming Fundamentals/Exams/72. Ad Astra Second.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python/Programming Fundamentals/Exams/72. Ad Astra Second.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python/Programming Fundamentals/Exams/72. Ad Astra Second.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python 3.9.2 (v3.9.2:1a79785e3e, Feb 19 2021, 09:06:10)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>> | 43.25 | 72 | 0.66474 |
412484a70f53006f985b8a1791e3e361afab8182 | 2,144 | py | Python | tests/test_iam/test_iam_groups.py | mrucci/moto | 076a6a7055ad18908b5661e599648c40b251cdc1 | [
"Apache-2.0"
] | 1 | 2021-03-06T22:01:41.000Z | 2021-03-06T22:01:41.000Z | tests/test_iam/test_iam_groups.py | mrucci/moto | 076a6a7055ad18908b5661e599648c40b251cdc1 | [
"Apache-2.0"
] | 2 | 2016-07-01T03:43:37.000Z | 2016-07-18T19:38:06.000Z | tests/test_iam/test_iam_groups.py | zenefits/moto | 8341c722a8e06decf23fd4b5e67de612accebb80 | [
"Apache-2.0"
] | 1 | 2017-10-19T00:53:28.000Z | 2017-10-19T00:53:28.000Z | from __future__ import unicode_literals
import boto
import sure # noqa
from nose.tools import assert_raises
from boto.exception import BotoServerError
from moto import mock_iam
| 29.369863 | 122 | 0.712687 |
41252221870a25e5a2cfca108df770ea4c662895 | 2,955 | py | Python | test/test_storage_v1beta1_api.py | Arvinhub/client-python | d67df30f635231d68dc4c20b9b7e234c616c1e6a | [
"Apache-2.0"
] | 1 | 2021-06-16T02:57:18.000Z | 2021-06-16T02:57:18.000Z | test/test_storage_v1beta1_api.py | Arvinhub/client-python | d67df30f635231d68dc4c20b9b7e234c616c1e6a | [
"Apache-2.0"
] | null | null | null | test/test_storage_v1beta1_api.py | Arvinhub/client-python | d67df30f635231d68dc4c20b9b7e234c616c1e6a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: unversioned
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Licens... | 23.085938 | 105 | 0.666328 |