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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e5cfbb9bf026d80e086f27d5037c72987aa2b73 | 447 | py | Python | secret/forms.py | MinisterioPublicoRJ/apilabcontas | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 2 | 2019-06-10T18:34:15.000Z | 2020-04-29T14:23:34.000Z | secret/forms.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 5 | 2020-01-09T15:59:16.000Z | 2021-06-10T21:06:13.000Z | secret/forms.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
from secret.models import Secret
| 26.294118 | 61 | 0.686801 |
9e5d616453b278b53324517816e3de2bbc018cf8 | 125 | py | Python | secreto.py | PeedrinZangw/sadness-musicbot-01 | c0dab41baba5ab43d840e440cfdc6ec78ac2d823 | [
"MIT"
] | null | null | null | secreto.py | PeedrinZangw/sadness-musicbot-01 | c0dab41baba5ab43d840e440cfdc6ec78ac2d823 | [
"MIT"
] | null | null | null | secreto.py | PeedrinZangw/sadness-musicbot-01 | c0dab41baba5ab43d840e440cfdc6ec78ac2d823 | [
"MIT"
] | null | null | null | #Subistitua xxxxxx pelo seu token!! | 41.666667 | 72 | 0.824 |
9e5de8187f51a01a92395201a4a1d4ef624e2064 | 4,209 | py | Python | real_estate_analysis/models/xgb_model/xgboost_model.py | enyquist/Real_Estate_Analysis | 47bbcfbc9bece20ae2aa0fce84dfca700ec6842f | [
"MIT"
] | null | null | null | real_estate_analysis/models/xgb_model/xgboost_model.py | enyquist/Real_Estate_Analysis | 47bbcfbc9bece20ae2aa0fce84dfca700ec6842f | [
"MIT"
] | null | null | null | real_estate_analysis/models/xgb_model/xgboost_model.py | enyquist/Real_Estate_Analysis | 47bbcfbc9bece20ae2aa0fce84dfca700ec6842f | [
"MIT"
] | null | null | null | import xgboost as xgb
import datetime
import real_estate_analysis.models.functions as func
import real_estate_analysis.models.xgb_model.utils as XGB_utils
import real_estate_analysis.Model.utils as model_utils
if __name__ == '__main__':
main()
| 37.918919 | 120 | 0.43502 |
9e5e1d23daee791eaea271ade55225f743349e3f | 1,067 | py | Python | tests/utils.py | 1116574/vulcan-api | 3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed | [
"MIT"
] | null | null | null | tests/utils.py | 1116574/vulcan-api | 3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed | [
"MIT"
] | null | null | null | tests/utils.py | 1116574/vulcan-api | 3cf64e78ba3e68299c94d629c3ffe4f7e8c94aed | [
"MIT"
] | null | null | null | from datetime import date
from os import environ
PARAMS_LESSON_PLAN = [
(
date(2018, 9, 4),
[
{"IdPrzedmiot": 173, "IdPracownik": 99},
{"IdPrzedmiot": 123, "IdPracownik": 101},
{"IdPrzedmiot": 172, "IdPracownik": 92},
{"IdPrzedmiot": 189, "IdPracownik... | 24.813953 | 78 | 0.492034 |
9e5eaad811b723cd9fbdf58606b08cc92c36666b | 886 | py | Python | setup.py | utahta/pyvbcode | 5708f5563016578576a48cf7374470c4e5c11825 | [
"MIT"
] | 3 | 2018-10-14T12:38:49.000Z | 2021-06-05T08:13:42.000Z | setup.py | utahta/pyvbcode | 5708f5563016578576a48cf7374470c4e5c11825 | [
"MIT"
] | 1 | 2017-07-02T15:27:45.000Z | 2017-10-28T20:52:54.000Z | setup.py | utahta/pyvbcode | 5708f5563016578576a48cf7374470c4e5c11825 | [
"MIT"
] | 5 | 2016-12-26T08:06:24.000Z | 2020-02-22T17:20:16.000Z | # vim:fileencoding=utf8
from distutils.core import setup
import os
README = os.path.join(os.path.dirname(__file__),'PKG-INFO')
long_description = open(README).read() + "\n"
setup(name="vbcode",
version='0.2.0',
py_modules=['vbcode'],
description="Variable byte codes",
author="utahta",
aut... | 36.916667 | 83 | 0.595937 |
9e5f5a16f32d2c7ad12cdebabca7ff18c984b6b6 | 1,221 | py | Python | cogs/testing_cog.py | Critteros/DzwoneczekBOT | 4f6100cf26f430521247f494620c9a2ceda1f362 | [
"Apache-2.0"
] | null | null | null | cogs/testing_cog.py | Critteros/DzwoneczekBOT | 4f6100cf26f430521247f494620c9a2ceda1f362 | [
"Apache-2.0"
] | null | null | null | cogs/testing_cog.py | Critteros/DzwoneczekBOT | 4f6100cf26f430521247f494620c9a2ceda1f362 | [
"Apache-2.0"
] | null | null | null | """
Extension desined to test bot functionality, just for testing
"""
# Library includes
from discord.ext import commands
# App includes
from app.client import BotClient
def setup(client):
"""
Setup function for testing_cog extension
Args:
client (app.client.BotClient): Client that connects ... | 24.42 | 74 | 0.63964 |
9e5f866f7cec9044c5ffc4636fdb2a689ffe67a2 | 3,221 | py | Python | src/pdfDownloader.py | dna33/covid19-pdfocr | 66f11fc7eb3d4f0146d04344a112578bc3149a02 | [
"MIT"
] | 1 | 2021-08-16T22:21:30.000Z | 2021-08-16T22:21:30.000Z | src/pdfDownloader.py | dna33/covid19-pdfocr | 66f11fc7eb3d4f0146d04344a112578bc3149a02 | [
"MIT"
] | null | null | null | src/pdfDownloader.py | dna33/covid19-pdfocr | 66f11fc7eb3d4f0146d04344a112578bc3149a02 | [
"MIT"
] | null | null | null | import urllib3
from bs4 import BeautifulSoup
import shutil
import re
import os
if __name__ == '__main__':
#https://www.minsal.cl/nuevo-coronavirus-2019-ncov/informe-epidemiologico-covid-19/
obtenerInformeEpidemiologico('https://www.gob.cl/coronavirus/cifrasoficiales/', '../input/InformeEpidemiologico/')
... | 39.765432 | 118 | 0.616889 |
9e5ff0af4ee8d2c0f56518f7dfc6f17b87b1d4b4 | 44,126 | py | Python | setup.py | amahoro12/anne | 9b68c71c491bde4f57c2cbbf78a377239a9026d8 | [
"MIT"
] | null | null | null | setup.py | amahoro12/anne | 9b68c71c491bde4f57c2cbbf78a377239a9026d8 | [
"MIT"
] | null | null | null | setup.py | amahoro12/anne | 9b68c71c491bde4f57c2cbbf78a377239a9026d8 | [
"MIT"
] | null | null | null | ## This script set up classes for 4 bus and 2 bus environment
import pandapower as pp
import pandapower.networks as nw
import pandapower.plotting as plot
import enlopy as el
import numpy as np
import pandas as pd
import pickle
import copy
import math
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import... | 48.436883 | 173 | 0.604496 |
9e66515414c951c5a5647702f8a347abcfdec43d | 10,659 | py | Python | unittests/TestGameServerController.py | dgsd-consulting/python_cowbull_server | b3f5e36c98c29701b0faf0adcf5d7b56a91a7402 | [
"Apache-2.0"
] | 1 | 2019-01-22T03:48:30.000Z | 2019-01-22T03:48:30.000Z | unittests/TestGameServerController.py | dgsd-consulting/python_cowbull_server | b3f5e36c98c29701b0faf0adcf5d7b56a91a7402 | [
"Apache-2.0"
] | 1 | 2019-04-14T21:15:17.000Z | 2019-08-08T01:25:29.000Z | unittests/TestGameServerController.py | davidjsanders/python_cowbull_server | b3f5e36c98c29701b0faf0adcf5d7b56a91a7402 | [
"Apache-2.0"
] | 2 | 2018-09-20T20:28:48.000Z | 2018-10-02T20:57:45.000Z | import json
from unittest import TestCase
from flask import Flask
from flask_controllers.GameServerController import GameServerController
from flask_helpers.VersionHelpers import VersionHelpers
from python_cowbull_server import app
from python_cowbull_server.Configurator import Configurator
from flask_helpers.ErrorHan... | 36.628866 | 111 | 0.512149 |
9e66f7324f463b84e3db235287a63c2e184564ad | 10,104 | py | Python | python_flights/client.py | sylvaus/python_flights | 613f1ad294ecb53a54af1fa3ca78fa83b0badc30 | [
"MIT"
] | 1 | 2020-01-12T18:55:45.000Z | 2020-01-12T18:55:45.000Z | python_flights/client.py | sylvaus/python_flights | 613f1ad294ecb53a54af1fa3ca78fa83b0badc30 | [
"MIT"
] | null | null | null | python_flights/client.py | sylvaus/python_flights | 613f1ad294ecb53a54af1fa3ca78fa83b0badc30 | [
"MIT"
] | null | null | null | import logging
import time
from datetime import datetime, timedelta
from itertools import product
from typing import List
import requests
from python_flights.itinerary import Itinerary
from python_flights.pods import Country, Currency, Airport, Place, Agent, Carrier, Direction, Trip, Segment, Price, \
CabinClass,... | 42.1 | 120 | 0.597387 |
9e675b79e0383d49ce47e747d971a54a4f4b735e | 8,636 | py | Python | python/monitor.py | ChrisArnault/fink_data_monitor | 3ef3167204711222fb71d6d6f828bce4094ad21a | [
"Apache-2.0"
] | null | null | null | python/monitor.py | ChrisArnault/fink_data_monitor | 3ef3167204711222fb71d6d6f828bce4094ad21a | [
"Apache-2.0"
] | 8 | 2019-03-30T13:27:46.000Z | 2019-06-05T13:55:26.000Z | python/monitor.py | ChrisArnault/fink_data_monitor | 3ef3167204711222fb71d6d6f828bce4094ad21a | [
"Apache-2.0"
] | 1 | 2019-03-22T12:38:32.000Z | 2019-03-22T12:38:32.000Z | #!/usr/bin/python
# coding: utf-8
# Copyright 2018 AstroLab Software
# Author: Chris Arnault
#
# 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... | 28.50165 | 81 | 0.559287 |
9e687cbd3bdfdf17c399fa781c8f96210ee0138e | 8,457 | py | Python | python/src/buildXyzMapCommand.py | kylemcdonald/LightLeaks | f72719c4f46e4ec0cf8f37b520f7be859381d43b | [
"MIT"
] | 57 | 2015-01-06T13:07:04.000Z | 2022-03-26T04:05:50.000Z | python/src/buildXyzMapCommand.py | kylemcdonald/LightLeaks | f72719c4f46e4ec0cf8f37b520f7be859381d43b | [
"MIT"
] | 34 | 2015-01-01T21:18:50.000Z | 2021-09-02T16:28:10.000Z | python/src/buildXyzMapCommand.py | kylemcdonald/LightLeaks | f72719c4f46e4ec0cf8f37b520f7be859381d43b | [
"MIT"
] | 11 | 2015-02-23T18:56:22.000Z | 2020-07-19T07:50:11.000Z | import click
import json
import os
import re
from tqdm import tqdm
from utils.imutil import *
import numpy as np
import math
PROCESSED_SCAN_FOLDER = 'processedScan'
# rows, cols = camHeight, camWidth
# confidence.shape: rows, cols (float)
# cam_binary_map.shape: rows, cols, 2 (int)
# cam_xyz_map.shape: rows, cols,... | 38.793578 | 114 | 0.653541 |
9e698f12281208ec9285a26a2656c4de0a23f99f | 3,383 | py | Python | api/tests/test_bad_queries.py | jpclark6/datalake | d9dceabe889f55ce589494fae5d00a27985e8088 | [
"Apache-2.0"
] | 2 | 2016-12-11T18:00:08.000Z | 2017-12-26T22:47:15.000Z | api/tests/test_bad_queries.py | jpclark6/datalake | d9dceabe889f55ce589494fae5d00a27985e8088 | [
"Apache-2.0"
] | 10 | 2015-09-24T00:32:55.000Z | 2017-09-14T02:15:53.000Z | api/tests/test_bad_queries.py | jpclark6/datalake | d9dceabe889f55ce589494fae5d00a27985e8088 | [
"Apache-2.0"
] | 2 | 2016-12-21T16:49:47.000Z | 2019-02-24T23:58:11.000Z | # Copyright 2015 Planet Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 24.875 | 79 | 0.617204 |
9e69ba962e4d092d4863d5beb5b0972723e70fc5 | 936 | py | Python | books/urls.py | ravenda900/bookshop-django | d66308a75c69854d55f8093aa8d35d4940cb5689 | [
"MIT"
] | null | null | null | books/urls.py | ravenda900/bookshop-django | d66308a75c69854d55f8093aa8d35d4940cb5689 | [
"MIT"
] | null | null | null | books/urls.py | ravenda900/bookshop-django | d66308a75c69854d55f8093aa8d35d4940cb5689 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.home, name="home"),
path('signup', views.signup, name="signup"),
path('activate/<uidb64>/<token>/', views.activate_account, name='activate'),
path('sell-book', views.sell_book, name='sell_book'),
path('book/<in... | 52 | 97 | 0.698718 |
9e6aea59173b99844868e9ef768a9d1a693c85e4 | 2,772 | py | Python | tests/test_models/test_exception.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_exception.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_exception.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | import pytest
from pathlib import Path
import json
if __name__ == "__main__":
pytest.main([__file__])
| 36.473684 | 122 | 0.683622 |
9e6d3fb617d1c39df17947d6364fa31a8d56f02f | 4,135 | py | Python | automlapi/automl_cognito.py | GFuentesBSC/automlapi | 575c23bc4a159ee19d97074762ec299c80578d10 | [
"Unlicense"
] | 1 | 2021-04-27T06:08:34.000Z | 2021-04-27T06:08:34.000Z | automlapi/automl_cognito.py | GFuentesBSC/automlapi | 575c23bc4a159ee19d97074762ec299c80578d10 | [
"Unlicense"
] | null | null | null | automlapi/automl_cognito.py | GFuentesBSC/automlapi | 575c23bc4a159ee19d97074762ec299c80578d10 | [
"Unlicense"
] | 1 | 2021-05-17T17:58:45.000Z | 2021-05-17T17:58:45.000Z | import boto3
import base64
import hmac
import hashlib
from .automl import AWS_ACC_KEY_ID, AWS_SEC_ACC_KEY, USER_POOL_ID, CLIENT_ID, CLIENT_SECRET, AWS_REGION_NAME
client_cognito = boto3.client('cognito-idp',
aws_access_key_id=AWS_ACC_KEY_ID,
aws_secret_access_key=AWS_SEC_ACC_KEY,
region_name=AWS_REGI... | 29.119718 | 149 | 0.708343 |
9e6d433ebfb2152c9c032a7b2793db23253d6dbb | 10,464 | py | Python | Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py | Bittu96/humanoid | 3b5cfaee25207c3bfe3a47339ec1bd0f8836689a | [
"Apache-2.0"
] | 1 | 2020-09-09T15:02:31.000Z | 2020-09-09T15:02:31.000Z | Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py | Bittu96/humanoid | 3b5cfaee25207c3bfe3a47339ec1bd0f8836689a | [
"Apache-2.0"
] | null | null | null | Scripts/Genetic Algorithm Optimizations/gazebo_walk_ga.py | Bittu96/humanoid | 3b5cfaee25207c3bfe3a47339ec1bd0f8836689a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from LIPM_with_dsupport import *
import random
import subprocess
from mono_define import *
from nav_msgs.msg import Odometry
from std_srvs.srv import Empty
i = 0
# while True:
# # initiate_time = random.choice([x / 100 for x in range(40, 71)])
# # T_dbl = random.choice([0.09, 0.1])
# ... | 39.338346 | 112 | 0.503727 |
9e6ee084797d0ef64a6ff35e8d531e000c40a386 | 781 | py | Python | extract_annotations.py | milesroberts-123/extract-annotations | dde5733835607c80d45a48e4d097cd7322db84e6 | [
"MIT"
] | null | null | null | extract_annotations.py | milesroberts-123/extract-annotations | dde5733835607c80d45a48e4d097cd7322db84e6 | [
"MIT"
] | null | null | null | extract_annotations.py | milesroberts-123/extract-annotations | dde5733835607c80d45a48e4d097cd7322db84e6 | [
"MIT"
] | null | null | null | from BCBio import GFF
from Bio import SeqIO
import csv
import sys
in_gff_file = sys.argv[1]
out_file = sys.argv[2]
#Add annotations to sequences
print("Parsing .gff file...")
in_handle = open(in_gff_file)
limit_info = dict(gff_type = ["mRNA"])
protnames = []
protanno = []
for rec in GFF.parse(in_handle, limit_info ... | 23.666667 | 75 | 0.713188 |
9e6ee92ffbfcbd13c35e3bca05e4f1adb80adce8 | 1,657 | py | Python | alienLanguageSort.py | syeddabeer/0projects | e132628f3693ed40c5ea9055a6c79f8266196bae | [
"Apache-2.0"
] | null | null | null | alienLanguageSort.py | syeddabeer/0projects | e132628f3693ed40c5ea9055a6c79f8266196bae | [
"Apache-2.0"
] | null | null | null | alienLanguageSort.py | syeddabeer/0projects | e132628f3693ed40c5ea9055a6c79f8266196bae | [
"Apache-2.0"
] | null | null | null | """
In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters.
Given a sequence of words written in the alien language, and the order of the alphabet, return true if and only if the given words are s... | 35.255319 | 182 | 0.631261 |
9e6f2b92ac7a2ae064a50bab58b816c3b9c6230f | 163 | py | Python | urizen/__init__.py | misagai/urizen | ad756749ae7b0bb6db7024c6128998e56236ee6d | [
"Apache-2.0"
] | 107 | 2020-01-08T21:27:59.000Z | 2022-03-19T07:59:23.000Z | urizen/__init__.py | misagai/urizen | ad756749ae7b0bb6db7024c6128998e56236ee6d | [
"Apache-2.0"
] | 1 | 2020-05-22T17:54:12.000Z | 2021-06-27T01:02:39.000Z | urizen/__init__.py | misagai/urizen | ad756749ae7b0bb6db7024c6128998e56236ee6d | [
"Apache-2.0"
] | 7 | 2020-01-08T21:12:11.000Z | 2022-03-19T07:59:27.000Z | import urizen.core
from urizen.core import *
import urizen.generators
from urizen.generators import *
import urizen.visualizers
from urizen.visualizers import *
| 18.111111 | 32 | 0.822086 |
9e714ffa033577119fdde50aec9e7885109ed239 | 3,524 | py | Python | osna/tmp/stats_Youtube.py | tapilab/elevate-osna-news | bffe6c9a8269ea1afba0d998b79c8db1b842b7bf | [
"MIT"
] | 2 | 2019-08-14T08:17:33.000Z | 2019-11-13T18:03:11.000Z | osna/tmp/stats_Youtube.py | tapilab/elevate-osna-news | bffe6c9a8269ea1afba0d998b79c8db1b842b7bf | [
"MIT"
] | null | null | null | osna/tmp/stats_Youtube.py | tapilab/elevate-osna-news | bffe6c9a8269ea1afba0d998b79c8db1b842b7bf | [
"MIT"
] | 2 | 2020-05-26T05:11:15.000Z | 2021-10-08T08:01:21.000Z | import pandas as pd
from collections import Counter
import re
if __name__=='__main__':
Mystats(directory)
| 34.54902 | 74 | 0.607832 |
9e71ac9c81a289cfab5784c2ca72d59fdcd7d4d0 | 3,300 | py | Python | tests/test_css_parsing_tests.py | cmulders/styler | cffc6b99cc97e6299b75e84fe74e39216bd0109e | [
"Apache-2.0"
] | null | null | null | tests/test_css_parsing_tests.py | cmulders/styler | cffc6b99cc97e6299b75e84fe74e39216bd0109e | [
"Apache-2.0"
] | null | null | null | tests/test_css_parsing_tests.py | cmulders/styler | cffc6b99cc97e6299b75e84fe74e39216bd0109e | [
"Apache-2.0"
] | null | null | null | import codecs
import re
from collections import namedtuple
import unittest
from typing import Collection, Iterable, Sequence, Tuple, Type
import io
from pathlib import Path
from styler import decode
import json
import logging
from itertools import islice
logger = logging.getLogger(__name__)
CSS_PARSING_TESTS_DIR = ... | 30.841121 | 124 | 0.638788 |
9e74579632486a6b6e9af658505be492f28cf2a0 | 1,886 | py | Python | Callum/Day3/Day3.py | JackDanielHarding/advent-of-code-2021 | 5b860e36b4ac1af205c992763167ffef41a81a1b | [
"CC0-1.0"
] | null | null | null | Callum/Day3/Day3.py | JackDanielHarding/advent-of-code-2021 | 5b860e36b4ac1af205c992763167ffef41a81a1b | [
"CC0-1.0"
] | null | null | null | Callum/Day3/Day3.py | JackDanielHarding/advent-of-code-2021 | 5b860e36b4ac1af205c992763167ffef41a81a1b | [
"CC0-1.0"
] | null | null | null | from collections import Counter
from functools import reduce
with open("./input.txt", "r") as inputFile:
readingsStr = inputFile.read().splitlines()
columnsRange = range(len(readingsStr[0]))
columns = map(lambda columnIndex : map(lambda row : row[columnIndex], readingsStr), columnsRange)
multiModes = map(lambda c... | 46 | 133 | 0.73701 |
9e753ccf2f01c17789c789b78559c01a411800d2 | 2,637 | py | Python | shell/shell.py | utep-cs-systems-courses/1-shell-EdwinTomy | 5e15372a49712584bc6a1bf3d8a508eb5328287a | [
"BSD-3-Clause"
] | null | null | null | shell/shell.py | utep-cs-systems-courses/1-shell-EdwinTomy | 5e15372a49712584bc6a1bf3d8a508eb5328287a | [
"BSD-3-Clause"
] | null | null | null | shell/shell.py | utep-cs-systems-courses/1-shell-EdwinTomy | 5e15372a49712584bc6a1bf3d8a508eb5328287a | [
"BSD-3-Clause"
] | null | null | null | import os, sys, re
while True:
path = os.getcwd() + " $"
# User input
os.write(1, path.encode())
args = os.read(0, 1000).decode().split()
# Exit
if args[0] == "exit":
if len(args) > 1:
print("Program terminated with exit code", args[1])
sys.exit(int(args[1]))
... | 24.877358 | 63 | 0.454683 |
9e7720d00dac0986b6a6877d0a71575810560a55 | 528 | py | Python | lexicographic_order.py | YukiShinonome/NLP | 2ac59b0adc777882f8183cdca360bc277046d42c | [
"MIT"
] | 4 | 2018-08-07T02:31:27.000Z | 2020-07-18T15:43:28.000Z | lexicographic_order.py | yukishinonome/NLP | 2ac59b0adc777882f8183cdca360bc277046d42c | [
"MIT"
] | null | null | null | lexicographic_order.py | yukishinonome/NLP | 2ac59b0adc777882f8183cdca360bc277046d42c | [
"MIT"
] | null | null | null | def lexicographic_order(w_list):
"""
"""
w_list = sorted(w_list)
#
# w_list.sort()
print(w_list)
if __name__ == '__main__':
w_list = ["", "", "", "?", "", "japan", "!", "", "", \
"", "01", "25", "012", "", "", "", "", "", "", \
"", "",... | 31.058824 | 81 | 0.530303 |
9e78a464d85758a6410cf9ef2916db721432642c | 4,860 | py | Python | radar_label_convert_kitti_format.py | wzan0001/Astyx-radar-dataset-convert-to-kitti-format | f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a | [
"MIT"
] | 12 | 2019-11-04T08:56:41.000Z | 2022-03-29T05:47:14.000Z | radar_label_convert_kitti_format.py | paland3/Astyx-radar-dataset-convert-to-kitti-format | f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a | [
"MIT"
] | 3 | 2019-12-04T18:19:06.000Z | 2020-10-08T12:34:21.000Z | radar_label_convert_kitti_format.py | paland3/Astyx-radar-dataset-convert-to-kitti-format | f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a | [
"MIT"
] | 3 | 2019-12-04T18:06:37.000Z | 2020-10-01T09:25:10.000Z | #####################################################
##radar kitti ##
#####################################################
import json
import math
import os
import numpy as np
import utils
| 37.384615 | 122 | 0.480864 |
9e7a0da2b81a2065d69c0b76472c3f6bc721ee3a | 2,739 | py | Python | wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Class for creating per tensor scripts job
Copyright (c) 2021 Intel Corporation
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/L... | 44.177419 | 104 | 0.775831 |
9e7a19b95d053efb0d88b148936622f138516c6b | 862 | py | Python | src/products/migrations/0010_auto_20201201_0119.py | xistadi/BookStore | 878c27e0c53ac0434d3866e4a27ffb0e460e4363 | [
"Apache-2.0"
] | null | null | null | src/products/migrations/0010_auto_20201201_0119.py | xistadi/BookStore | 878c27e0c53ac0434d3866e4a27ffb0e460e4363 | [
"Apache-2.0"
] | null | null | null | src/products/migrations/0010_auto_20201201_0119.py | xistadi/BookStore | 878c27e0c53ac0434d3866e4a27ffb0e460e4363 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-30 22:19
import django.core.validators
from django.db import migrations, models
| 29.724138 | 189 | 0.62993 |
9e7f57ad27d934ffd652f467c3d73fde22074499 | 1,217 | py | Python | pandora/queue.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | pandora/queue.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | pandora/queue.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | """
enqueue
dequeue
size
traverse
Queue Implementation using SLL
"""
obj = Queue()
obj.enqueue(1)
obj.enqueue(2)
obj.enqueue(3)
obj.enqueue(4)
obj.enqueue(5)
obj.traverse()
obj.dequeue()
obj.traverse() | 19.015625 | 35 | 0.507806 |
9e80b42b52475d6e15054bfeda78fadd12468c69 | 2,133 | py | Python | spotify/v1/track.py | geekonedge/spotify | 1f4cf733a1fb11ab96259ed1e229b141e5c696f3 | [
"MIT"
] | 2 | 2018-10-10T08:00:47.000Z | 2021-10-12T04:15:33.000Z | spotify/v1/track.py | geekonedge/spotify | 1f4cf733a1fb11ab96259ed1e229b141e5c696f3 | [
"MIT"
] | 2 | 2018-08-31T21:59:47.000Z | 2018-08-31T22:27:57.000Z | spotify/v1/track.py | geekonedge/spotify | 1f4cf733a1fb11ab96259ed1e229b141e5c696f3 | [
"MIT"
] | 1 | 2018-08-31T21:18:58.000Z | 2018-08-31T21:18:58.000Z | from spotify import values
from spotify.page import Page
from spotify.resource import Resource, UpgradableInstance
| 23.184783 | 92 | 0.635724 |
9e82bb1c42a0dd7d3d0090469ffab04c743997a6 | 3,526 | py | Python | basic/wordcount.py | duyduc27/Google-s-Python-Class | 1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d | [
"Apache-2.0"
] | null | null | null | basic/wordcount.py | duyduc27/Google-s-Python-Class | 1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d | [
"Apache-2.0"
] | null | null | null | basic/wordcount.py | duyduc27/Google-s-Python-Class | 1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""Wordcount exercise
Google's Python class
The main() below is already defined and comp... | 28.208 | 85 | 0.67612 |
9e8502300566fe834355583417c7c53166b5b4bb | 871 | py | Python | tests/test_multicollinearity_test.py | flor14/lrasm | dd3a05f34319049f51fdfa9407ab4d5906ea82ed | [
"MIT"
] | null | null | null | tests/test_multicollinearity_test.py | flor14/lrasm | dd3a05f34319049f51fdfa9407ab4d5906ea82ed | [
"MIT"
] | 21 | 2022-01-16T23:56:32.000Z | 2022-02-05T18:51:49.000Z | tests/test_multicollinearity_test.py | flor14/lrasm | dd3a05f34319049f51fdfa9407ab4d5906ea82ed | [
"MIT"
] | 2 | 2022-01-27T20:30:01.000Z | 2022-02-26T01:32:21.000Z | from lrasm.multicollinearity_tst import multicollinearity_test
import numpy as np
import pandas as pd
from statsmodels.stats.outliers_influence import variance_inflation_factor
import pytest
def test_multicollinearity_test():
"""Test multicollinearity test outputs from dataset"""
X_proper = pd.DataFrame({"hea... | 39.590909 | 112 | 0.699196 |
9e86f093b3ddd416fb693a33a299a63023c78c4a | 1,014 | py | Python | src/entry_point.py | TaikiInoue/KaoruRecognition | 9e42944d89abeea3a754b8ce858b0aa66119565f | [
"MIT"
] | null | null | null | src/entry_point.py | TaikiInoue/KaoruRecognition | 9e42944d89abeea3a754b8ce858b0aa66119565f | [
"MIT"
] | null | null | null | src/entry_point.py | TaikiInoue/KaoruRecognition | 9e42944d89abeea3a754b8ce858b0aa66119565f | [
"MIT"
] | null | null | null | # References
# https://docs.aws.amazon.com/sagemaker/latest/dg/adapt-inference-container.html
import logging
import numpy as np
import PIL
from numpy import ndarray as NDArray
from PIL.Image import Image
from six import BytesIO
from torch.nn import Module
from facenet_pytorch import MTCNN
logger = logging.getLogge... | 23.045455 | 85 | 0.732742 |
9e87ca188b43074a3794e37a50617be88767b932 | 2,528 | py | Python | opentamp/domains/namo_domain/generate_simple_sort.py | Algorithmic-Alignment-Lab/openTAMP | f0642028d551d0436b3a3dbc3bfb2f23a00adc14 | [
"MIT"
] | 4 | 2022-02-13T15:52:18.000Z | 2022-03-26T17:33:13.000Z | opentamp/domains/namo_domain/generate_simple_sort.py | Algorithmic-Alignment-Lab/OpenTAMP | eecb950bd273da8cbed4394487630e8453f2c242 | [
"MIT"
] | 1 | 2022-02-13T22:48:09.000Z | 2022-02-13T22:48:09.000Z | opentamp/domains/namo_domain/generate_simple_sort.py | Algorithmic-Alignment-Lab/OpenTAMP | eecb950bd273da8cbed4394487630e8453f2c242 | [
"MIT"
] | null | null | null | import itertools
import random
NUM_CANS = 1
filename = "namo_probs/sort_prob_{0}.prob".format(NUM_CANS)
GOAL = "(RobotAt pr2 robot_end_pose)"
HEIGHT = 5
WIDTH = 5
if __name__ == "__main__":
main()
| 37.731343 | 171 | 0.561709 |
9e87cdddbb6985c539e2f3fd8f43bf67a78297aa | 862 | py | Python | setup.py | al45tair/pygeon | 70e95f6ffc8988fa212e312452d4688e0e544966 | [
"MIT"
] | 1 | 2022-02-26T17:14:38.000Z | 2022-02-26T17:14:38.000Z | setup.py | al45tair/pygeon | 70e95f6ffc8988fa212e312452d4688e0e544966 | [
"MIT"
] | null | null | null | setup.py | al45tair/pygeon | 70e95f6ffc8988fa212e312452d4688e0e544966 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst', 'rb') as f:
long_desc = f.read().decode('utf-8')
setup(name='pygeon',
version='0.1.0',
description='IP Geolocation in Python',
long_description=long_desc,
author='Alastair Houghton',
author_email='alastair@a... | 28.733333 | 55 | 0.558005 |
9e87ed3751d6a84cde898423e624e0e29e5bc397 | 357 | py | Python | api/static_api.py | SachinKalsi/face-detection-api | 93d012a1b315d3898dbff2612e7beffabdf7d9f7 | [
"MIT"
] | 9 | 2019-02-28T09:32:39.000Z | 2021-07-06T23:12:47.000Z | api/static_api.py | SachinKalsi/face-detection-api | 93d012a1b315d3898dbff2612e7beffabdf7d9f7 | [
"MIT"
] | 2 | 2022-01-13T01:00:20.000Z | 2022-03-11T23:37:01.000Z | api/static_api.py | SachinKalsi/face-api | 93d012a1b315d3898dbff2612e7beffabdf7d9f7 | [
"MIT"
] | 4 | 2020-02-02T17:04:33.000Z | 2020-09-14T05:25:59.000Z | from flask import Blueprint, render_template, send_file
from flask_app import app
static_api = Blueprint('static_api', __name__)
# @static_api.route('/', methods=['GET'])
# def index():
# return render_template('index.html') | 29.75 | 55 | 0.714286 |
9e8817627535df6f0d585998aa24f60ff7d9791c | 365 | py | Python | skp_edu_docker/code/cluster/preprocess/pre_node_feed_fr2cnn.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 8 | 2017-06-16T00:19:12.000Z | 2020-08-13T03:15:57.000Z | skp_edu_docker/code/cluster/preprocess/pre_node_feed_fr2cnn.py | TensorMSA/tensormsa_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 21 | 2017-06-09T10:15:14.000Z | 2018-03-29T07:51:02.000Z | skp_edu_docker/code/cluster/preprocess/pre_node_feed_fr2cnn.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 4 | 2017-10-25T09:59:53.000Z | 2020-05-07T09:51:11.000Z | from cluster.preprocess.pre_node_feed import PreNodeFeed
| 19.210526 | 56 | 0.635616 |
9e8906fbd78257ce287c1863743dd186ef2262c2 | 3,535 | py | Python | Multi_Page_WebApp/services/python_worker/receive.py | Anthogr/netcdf_editor_app | e1d5fe9bcb5e9374dceec517c3532743dd7f2539 | [
"MIT"
] | 8 | 2020-11-04T15:55:02.000Z | 2021-09-02T11:12:50.000Z | Multi_Page_WebApp/services/python_worker/receive.py | Anthogr/netcdf_editor_app | e1d5fe9bcb5e9374dceec517c3532743dd7f2539 | [
"MIT"
] | 88 | 2020-10-09T14:32:12.000Z | 2021-07-21T14:09:58.000Z | Multi_Page_WebApp/services/python_worker/receive.py | Anthogr/netcdf_editor_app | e1d5fe9bcb5e9374dceec517c3532743dd7f2539 | [
"MIT"
] | 5 | 2020-11-10T17:10:24.000Z | 2021-10-05T03:11:47.000Z | #!/usr/bin/env python
from datetime import datetime
import pika
import os
import sys
import steps # noqa: F401
import json
from climate_simulation_platform.db import step_parameters, save_step, step_seen
from climate_simulation_platform import create_app
if __name__ == "__main__":
try:
main()
exce... | 33.037383 | 100 | 0.595474 |
9e8bb6044559a80cc3e9ba40b40090e9b9222e9d | 7,764 | py | Python | run_cqa_inference.py | SeonjeongHwang/coqa_cqa | 67169b62e4d213d0e61cd31d844ad9665918049b | [
"Apache-2.0"
] | 1 | 2022-02-22T07:05:40.000Z | 2022-02-22T07:05:40.000Z | run_cqa_inference.py | SeonjeongHwang/coqa_cqa | 67169b62e4d213d0e61cd31d844ad9665918049b | [
"Apache-2.0"
] | null | null | null | run_cqa_inference.py | SeonjeongHwang/coqa_cqa | 67169b62e4d213d0e61cd31d844ad9665918049b | [
"Apache-2.0"
] | null | null | null | import os
import sys
import random
import json
import tqdm
import pickle
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
import numpy as np
from transformers import BertTokenizer, BertModel, AdamW, get_linear_schedule_with_warmup
fr... | 39.015075 | 109 | 0.6212 |
9e8bde4f4893f69df667f132646ec28b77e6aaf9 | 1,542 | py | Python | anywayapp/base.py | ronreiter/anyway | 90326b7defaec062d75653729fd63a1913074064 | [
"BSD-3-Clause"
] | 8 | 2016-09-14T11:31:04.000Z | 2021-02-23T22:29:55.000Z | anywayapp/base.py | ronreiter/anyway | 90326b7defaec062d75653729fd63a1913074064 | [
"BSD-3-Clause"
] | 2 | 2015-03-02T15:16:09.000Z | 2016-11-16T11:20:15.000Z | anywayapp/base.py | ronreiter/anyway | 90326b7defaec062d75653729fd63a1913074064 | [
"BSD-3-Clause"
] | 4 | 2015-03-01T09:50:57.000Z | 2020-08-28T12:03:37.000Z | import webapp2
from models import *
from webapp2_extras import sessions
| 29.653846 | 105 | 0.610246 |
9e8d0d88791289330a7412e20650652419814d5a | 9,447 | py | Python | datasets/kitti.py | ShengyuH/PredateOverlap | 770c3063399f08b3836935212ab4c84d355b4704 | [
"MIT"
] | 153 | 2020-11-30T09:47:11.000Z | 2021-04-28T00:58:10.000Z | datasets/kitti.py | ShengyuH/PredateOverlap | 770c3063399f08b3836935212ab4c84d355b4704 | [
"MIT"
] | 31 | 2021-05-10T12:39:19.000Z | 2022-03-27T03:07:45.000Z | datasets/kitti.py | ShengyuH/PredateOverlap | 770c3063399f08b3836935212ab4c84d355b4704 | [
"MIT"
] | 22 | 2020-11-30T13:50:55.000Z | 2021-04-28T09:47:40.000Z | # Basic libs
import os, time, glob, random, pickle, copy, torch
import numpy as np
import open3d
from scipy.spatial.transform import Rotation
# Dataset parent class
from torch.utils.data import Dataset
from lib.benchmark_utils import to_tsfm, to_o3d_pcd, get_correspondences
| 40.896104 | 146 | 0.592887 |
9e8d10545762b08a28204f212d3c73b287afb2c3 | 1,344 | py | Python | bin/compare_versions.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | 2 | 2017-07-18T19:22:38.000Z | 2021-12-17T16:02:01.000Z | bin/compare_versions.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | 134 | 2016-02-07T03:48:48.000Z | 2022-02-21T17:50:09.000Z | bin/compare_versions.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | 3 | 2017-07-12T21:36:19.000Z | 2022-01-11T16:15:44.000Z | #!/usr/bin/env python
"""
Make plots to compare two different versions of desimodel
Stephen Bailey, LBL
July 2014
"""
import os, sys
import numpy as np
import pylab as P
import matplotlib.pyplot as plt
import fitsio
camcolor = dict(b='b', r='r', z='k')
#-------------------------------------------------------------... | 23.578947 | 74 | 0.554315 |
9e8e19f97e0eb39926f29ca476d7649b8872fc92 | 1,923 | py | Python | tests/graph/parallel_graphs.py | marcelotrevisani/acorns | 682749b0963ffc0a3998a7065ef505fc95123f50 | [
"MIT"
] | null | null | null | tests/graph/parallel_graphs.py | marcelotrevisani/acorns | 682749b0963ffc0a3998a7065ef505fc95123f50 | [
"MIT"
] | null | null | null | tests/graph/parallel_graphs.py | marcelotrevisani/acorns | 682749b0963ffc0a3998a7065ef505fc95123f50 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import os
import json
import seaborn as sns
import re
sns.set(style="darkgrid")
def natural_keys(text):
'''
alist.sort(key=natural_keys) sorts in human order
http://nedbatchelder.com/blog/200712/human_sorting.html
(See Toothy's implementati... | 33.736842 | 122 | 0.680707 |
9e8e6d830985755cf872faa18feca1ac284fe14d | 11,042 | py | Python | transposonmapper/transposonmapper.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 2 | 2021-11-23T09:39:35.000Z | 2022-01-25T15:49:45.000Z | transposonmapper/transposonmapper.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 76 | 2021-07-07T18:31:44.000Z | 2022-03-22T10:04:40.000Z | transposonmapper/transposonmapper.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 2 | 2021-09-16T10:56:20.000Z | 2022-01-25T12:33:25.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This is a tool developed for analysing transposon insertions for experiments using SAturated Transposon Analysis in Yeast (SATAY).
This python code contains one function called transposonmapper().
For more information about this code and the project, see https://satay-... | 46.394958 | 271 | 0.741442 |
9e8f1e152b11b2dfb1cd7fa118a719d6c95eed5d | 1,975 | py | Python | DataTable/Tool/Tool.py | BoilTask/DataTable | d49afe9c43b0a247bc9bc6cceacdd912670eeed9 | [
"MIT"
] | 5 | 2020-08-07T17:31:13.000Z | 2022-03-03T07:44:29.000Z | DataTable/Tool/Tool.py | BoilTask/DataTable | d49afe9c43b0a247bc9bc6cceacdd912670eeed9 | [
"MIT"
] | null | null | null | DataTable/Tool/Tool.py | BoilTask/DataTable | d49afe9c43b0a247bc9bc6cceacdd912670eeed9 | [
"MIT"
] | 1 | 2022-03-03T07:44:32.000Z | 2022-03-03T07:44:32.000Z | # -*- coding: UTF-8 -*-
import sys
from datatable import datatable
if __name__ == "__main__":
if datatable.is_config_file_valid():
if len(sys.argv) > 1:
if sys.argv[1] == "all":
datatable.process_all_file()
elif sys.argv[1] == "export":
datatabl... | 27.816901 | 64 | 0.571646 |
9e922e429bd689190580fd828c6525764ab943c0 | 1,268 | py | Python | tower_cli/compat.py | kedark3/tower-cli | 487a1b9a8e96509798fee108e4f7d2c187177771 | [
"Apache-2.0"
] | 363 | 2015-01-14T17:48:34.000Z | 2022-01-29T06:37:04.000Z | tower_cli/compat.py | kedark3/tower-cli | 487a1b9a8e96509798fee108e4f7d2c187177771 | [
"Apache-2.0"
] | 703 | 2015-01-06T17:17:20.000Z | 2020-09-16T15:54:17.000Z | tower_cli/compat.py | kedark3/tower-cli | 487a1b9a8e96509798fee108e4f7d2c187177771 | [
"Apache-2.0"
] | 203 | 2015-01-18T22:38:23.000Z | 2022-01-28T19:19:05.000Z | # Copyright 2015, Ansible, Inc.
# Luke Sneeringer <lsneeringer@ansible.com>
#
# 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 requi... | 36.228571 | 77 | 0.746057 |
9e92a7a7b55047819665042784eb05a1717697c3 | 19,250 | py | Python | py/tests/test_donorfy.py | samuelcolvin/nosht | 9e4d9bea8ff6bfae86cae948cc3028ccc68d0188 | [
"MIT"
] | 26 | 2018-07-28T23:11:27.000Z | 2022-02-09T13:40:33.000Z | py/tests/test_donorfy.py | samuelcolvin/nosht | 9e4d9bea8ff6bfae86cae948cc3028ccc68d0188 | [
"MIT"
] | 336 | 2018-05-25T17:57:00.000Z | 2022-03-11T23:24:36.000Z | py/tests/test_donorfy.py | samuelcolvin/nosht | 9e4d9bea8ff6bfae86cae948cc3028ccc68d0188 | [
"MIT"
] | 4 | 2018-07-18T08:37:19.000Z | 2022-01-31T14:42:48.000Z | import json
import pytest
from buildpg import Values
from pytest import fixture
from pytest_toolbox.comparison import CloseToNow, RegexStr
from shared.actions import ActionTypes
from shared.donorfy import DonorfyActor
from shared.utils import RequestError
from web.utils import encrypt_json
from .conftest import Fact... | 41.75705 | 115 | 0.720883 |
9e930c5a58d02157e9d5c759c46110f181e09d5b | 85 | py | Python | lxman/cli/__main__.py | stuxcrystal/lxman | ea0b44a8b9424b3489e393591f5384a986f583a3 | [
"MIT"
] | 1 | 2017-12-04T18:48:21.000Z | 2017-12-04T18:48:21.000Z | lxman/cli/__main__.py | stuxcrystal/lxman | ea0b44a8b9424b3489e393591f5384a986f583a3 | [
"MIT"
] | null | null | null | lxman/cli/__main__.py | stuxcrystal/lxman | ea0b44a8b9424b3489e393591f5384a986f583a3 | [
"MIT"
] | null | null | null | import colorama
from lxman.cli import cli
if __name__ == "__main__":
cli()
| 14.166667 | 27 | 0.658824 |
9e952388ffcae30ff69efaffb734ef8eaddfbd24 | 275 | py | Python | exercicios/ex047.py | mrcbnu/python-_exercicios | 773da52a227f0e9ecce998cb6b50b3fe167a4f1d | [
"MIT"
] | null | null | null | exercicios/ex047.py | mrcbnu/python-_exercicios | 773da52a227f0e9ecce998cb6b50b3fe167a4f1d | [
"MIT"
] | null | null | null | exercicios/ex047.py | mrcbnu/python-_exercicios | 773da52a227f0e9ecce998cb6b50b3fe167a4f1d | [
"MIT"
] | null | null | null | ###########################################
# EXERCICIO 047 #
###########################################
'''CRIE UM PROGRAMA QUE MOSTRE NA TELA TODOS OS NUMEROS
PARES DE 1 E 50'''
for c in range(1, 51):
if c % 2 == 0:
print(c, end=' ') | 30.555556 | 55 | 0.341818 |
9e9894afbce14bcac12775c18c8be20d7bdde76f | 333 | py | Python | src/handler.py | HobbitOfIsengard/automata | 5f3bc2c9e42ac856e1bb4ef11dd28f42f5678c20 | [
"MIT"
] | null | null | null | src/handler.py | HobbitOfIsengard/automata | 5f3bc2c9e42ac856e1bb4ef11dd28f42f5678c20 | [
"MIT"
] | null | null | null | src/handler.py | HobbitOfIsengard/automata | 5f3bc2c9e42ac856e1bb4ef11dd28f42f5678c20 | [
"MIT"
] | null | null | null | def handle(automata, result):
"""
This is a simple handler
:param automata: the automata which yielded the result
:type automata: :class:`Automata`
:param result: the result of the automata
:type result: bool
"""
print(result)
if not result:
automata.switch("ask m: try again:... | 27.75 | 58 | 0.645646 |
9e98a6268aa07a08ba6a43715f82f5d441844cbc | 2,090 | py | Python | model-optimizer/extensions/ops/bucketize.py | evgenytalanin-intel/openvino | c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36 | [
"Apache-2.0"
] | null | null | null | model-optimizer/extensions/ops/bucketize.py | evgenytalanin-intel/openvino | c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36 | [
"Apache-2.0"
] | 1 | 2021-09-09T08:43:57.000Z | 2021-09-10T12:39:16.000Z | model-optimizer/extensions/ops/bucketize.py | evgenytalanin-intel/openvino | c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36 | [
"Apache-2.0"
] | null | null | null | """
Copyright (C) 2018-2020 Intel Corporation
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 i... | 33.709677 | 113 | 0.661244 |
9e9904613297e7bec0c0b0302bbc80565d246970 | 5,470 | py | Python | app/view/winners.py | pitust/OfMagesAndMagic | e5d5d4f0a930b01b047962028e5c633f6caefe40 | [
"MIT"
] | 15 | 2016-12-11T14:30:30.000Z | 2019-12-15T13:26:57.000Z | app/view/winners.py | pitust/OfMagesAndMagic | e5d5d4f0a930b01b047962028e5c633f6caefe40 | [
"MIT"
] | 10 | 2016-12-11T14:32:30.000Z | 2016-12-12T13:30:37.000Z | app/view/winners.py | pitust/OfMagesAndMagic | e5d5d4f0a930b01b047962028e5c633f6caefe40 | [
"MIT"
] | 4 | 2016-12-11T14:30:37.000Z | 2021-03-13T12:46:20.000Z | import pygame
from app.view.animations import Delay, FadeIn, FadeOut, ChooseRandom, FrameAnimate, MovePosition, DelayCallBack, MoveValue, SequenceAnimation, ParallelAnimation, Timeout
from app.resources.event_handler import SET_GAME_STATE
from app.resources import text_renderer, colours
from app.resources.music import ... | 38.251748 | 169 | 0.668556 |
9e991333e11e3674737935eaa3ae326ec405ea15 | 7,259 | py | Python | Source Codes/Assignment1/transformations.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | Source Codes/Assignment1/transformations.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | Source Codes/Assignment1/transformations.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | import numpy as np
import math
import functools as fu
import cv2
import random as rand
def transform_points(m, points):
""" It transforms the given point/points using the given transformation matrix.
:param points: numpy array, list
The point/points to be transformed given the transformation matri... | 38.005236 | 121 | 0.609726 |
9e996e95c8e4d35efb2b156fddfb2e6b4af528f7 | 665 | py | Python | scripts/identify_circular-from-reassembled-flye.py | SeanChenHCY/metaLAS | 854db6a966a11ab628ad33fa3264a74cfc54eef9 | [
"MIT"
] | 1 | 2021-10-04T07:45:18.000Z | 2021-10-04T07:45:18.000Z | scripts/identify_circular-from-reassembled-flye.py | SeanChenHCY/metaLAS | 854db6a966a11ab628ad33fa3264a74cfc54eef9 | [
"MIT"
] | 1 | 2021-08-30T08:01:35.000Z | 2021-09-02T09:49:01.000Z | scripts/identify_circular-from-reassembled-flye.py | SeanChenHCY/metaLAS | 854db6a966a11ab628ad33fa3264a74cfc54eef9 | [
"MIT"
] | null | null | null | #sys.argv[1] = bin_dir, sys.argv[2] = flye_info, sys.argv[3] = output_dir, sys.argv[3] = output_dir
import os, sys
bin_name=sys.argv[1]
bin_dir = sys.argv[2]
output_dir = sys.argv[3]
large_circular = []
flye_info = open(bin_dir + '/assembly_info.txt','r')
read_info = True
while read_info:
read_info ... | 25.576923 | 142 | 0.628571 |
9e99d0c79aa914a0737c4a26e98e840b98a19a4a | 322 | py | Python | apps/Utils/message_constants.py | vikkyB2/UserMaintenance | 0ae9db17d694ae67ac82145524cae4a1f69d54c6 | [
"MIT"
] | null | null | null | apps/Utils/message_constants.py | vikkyB2/UserMaintenance | 0ae9db17d694ae67ac82145524cae4a1f69d54c6 | [
"MIT"
] | null | null | null | apps/Utils/message_constants.py | vikkyB2/UserMaintenance | 0ae9db17d694ae67ac82145524cae4a1f69d54c6 | [
"MIT"
] | null | null | null | LOGGEDOUT_SCSS_MSG = "User Logged out successfully"
LOGIN_SCSS_MSG = "User Logged in successfully"
INVALID_PASS = "Passowrd not valid"
INVALID_USER = "User dose not exsists"
INVALID_SESSION = "Session Invalid"
INVALID_REQUEST = "Not a valid request"
BAD_REQUEST = "Bad request"
PASSWORD_EXPIERD = "Password Expier... | 40.25 | 52 | 0.779503 |
9e9c6e139be0c60a12be6bd43fc6f12d8b899a15 | 1,611 | py | Python | intg/src/main/python/apache_atlas/model/lineage.py | alexwang789/atlas | b265f5e80e02d69ea7bbcfd9d0770361ca7fa185 | [
"Apache-2.0"
] | 4 | 2020-10-30T06:15:23.000Z | 2022-02-18T09:56:27.000Z | intg/src/main/python/apache_atlas/model/lineage.py | alexwang789/atlas | b265f5e80e02d69ea7bbcfd9d0770361ca7fa185 | [
"Apache-2.0"
] | null | null | null | intg/src/main/python/apache_atlas/model/lineage.py | alexwang789/atlas | b265f5e80e02d69ea7bbcfd9d0770361ca7fa185 | [
"Apache-2.0"
] | 4 | 2020-10-30T07:21:57.000Z | 2021-10-21T16:07:02.000Z | #!/usr/bin/env/python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | 41.307692 | 122 | 0.7455 |
9e9ef4bfbf0ebd4b0914ac2783452487117ef345 | 7,247 | py | Python | ucdev/register.py | vpetrigo/python-ucdev | d3606fd1244dfefef039c7c38acb8b4a1f086c29 | [
"MIT"
] | 11 | 2015-07-08T01:28:01.000Z | 2022-01-26T14:29:47.000Z | ucdev/register.py | vpetrigo/python-ucdev | d3606fd1244dfefef039c7c38acb8b4a1f086c29 | [
"MIT"
] | 5 | 2017-12-07T15:04:00.000Z | 2021-06-02T14:47:14.000Z | ucdev/register.py | vpetrigo/python-ucdev | d3606fd1244dfefef039c7c38acb8b4a1f086c29 | [
"MIT"
] | 4 | 2017-02-18T18:20:13.000Z | 2022-03-23T16:21:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8-unix -*-
"""
FOO = Register("A:4 B:4", 0x12)
BAR = Register("B:4 C:4", 0x23)
# evals as int which is a register address
print FOO == 0x12
# each field attribute returns a mask for that field
print FOO.B == 0b00001111
print BAR.B == 0b11110000
# ERROR: Register definition is ... | 27.660305 | 74 | 0.588519 |
9e9f1ba89714829bd8385e0bc2781953760fa2f6 | 83,916 | py | Python | pynsxv/library/nsx_dfw.py | preussal/pynsxv | 20d50236243729c0f52864825b23861ea1b664d3 | [
"MIT",
"Ruby",
"X11",
"Unlicense"
] | 2 | 2020-10-20T16:09:25.000Z | 2020-12-16T23:35:55.000Z | pynsxv/library/nsx_dfw.py | preussal/pynsxv | 20d50236243729c0f52864825b23861ea1b664d3 | [
"MIT",
"Ruby",
"X11",
"Unlicense"
] | null | null | null | pynsxv/library/nsx_dfw.py | preussal/pynsxv | 20d50236243729c0f52864825b23861ea1b664d3 | [
"MIT",
"Ruby",
"X11",
"Unlicense"
] | 2 | 2020-12-16T23:35:56.000Z | 2021-02-04T07:00:08.000Z | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2015-2016 VMware, Inc. All Rights Reserved.
#
# Licensed under the X11 (MIT) (the License) set forth below;
#
# you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in
# writing, software distributed under the... | 48.930612 | 122 | 0.631894 |
9e9f896246ab8606b9ddf1a41403635bb424c413 | 2,463 | py | Python | src/myapp/tests/test_utils.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | 1 | 2019-05-18T04:34:59.000Z | 2019-05-18T04:34:59.000Z | src/myapp/tests/test_utils.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | null | null | null | src/myapp/tests/test_utils.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | null | null | null | import pathlib
from django.conf import settings
from django.core import mail
from django.core.mail import EmailMessage
from django.test import TestCase
| 32.84 | 78 | 0.639464 |
9ea0c546a1e521014a32f12995b27d65c50cbaf0 | 34,133 | py | Python | app.py | luyaozou/conjugaison | c8d100b38e1067af17f428cba4af925465d5fd52 | [
"MIT"
] | null | null | null | app.py | luyaozou/conjugaison | c8d100b38e1067af17f428cba4af925465d5fd52 | [
"MIT"
] | null | null | null | app.py | luyaozou/conjugaison | c8d100b38e1067af17f428cba4af925465d5fd52 | [
"MIT"
] | null | null | null | #! encoding = utf-8
""" Practice French conjugaison """
import sys
from os.path import isfile
from time import sleep
from sqlite3 import Error as dbError
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtGui import QTextOption, QKeySequence
from dictionary import TENSE_MOODS, PERSONS
from dictionary import conjug, con... | 40.538005 | 103 | 0.637213 |
9ea2e6bc949b1feeca26b6c53dd72ef93834de53 | 2,515 | py | Python | python/lib/viewer/bluf/plot_func.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | python/lib/viewer/bluf/plot_func.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | python/lib/viewer/bluf/plot_func.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt, numpy as np, pandas as pd
# general functions for plotting
# Tim Tyree
# 7.23.2021
def format_plot(ax=None,xlabel=None,ylabel=None,fontsize=20,use_loglog=False,xlim=None,ylim=None,use_bigticks=True,**kwargs):
'''format plot formats the matplotlib axis instance, ax,
performing r... | 38.106061 | 137 | 0.690258 |
9eaab24d3548bb05725fadfb2ac9add9355eace8 | 331 | py | Python | box/endpoints.py | manojiitkumar93/apibox | 5e7c30da73be2179eb695148e4fe9909ac280e9e | [
"MIT"
] | null | null | null | box/endpoints.py | manojiitkumar93/apibox | 5e7c30da73be2179eb695148e4fe9909ac280e9e | [
"MIT"
] | null | null | null | box/endpoints.py | manojiitkumar93/apibox | 5e7c30da73be2179eb695148e4fe9909ac280e9e | [
"MIT"
] | null | null | null | from lambdatest import Operations
from unicode1 import convert
file_name = "ocr.json"
k = Operations()
jsonObj = k.load_Json(file_name)
dictData = convert(jsonObj)
endpoints_list = dictData["endpoints"]
enp_path = []
dfp = {}
for i in endpoints_list:
enp_path.append(i["path"])
try:
dfp[i["path"]]=i['result']
excep... | 19.470588 | 38 | 0.722054 |
9eab6ea7aa5627d7aec1c6ead82d9bb0ee0138e3 | 4,804 | py | Python | src/currency_rates.py | akinmetin/currency-rates | 586ea1205eb4a00b84bb37f85e781060383a673a | [
"MIT"
] | null | null | null | src/currency_rates.py | akinmetin/currency-rates | 586ea1205eb4a00b84bb37f85e781060383a673a | [
"MIT"
] | 2 | 2020-03-05T19:55:07.000Z | 2020-10-25T13:30:18.000Z | src/currency_rates.py | akinmetin/currency-rates | 586ea1205eb4a00b84bb37f85e781060383a673a | [
"MIT"
] | 2 | 2020-03-07T08:58:09.000Z | 2020-03-07T09:01:11.000Z | import requests
from decouple import config
import datetime
from calendar import monthrange
import psycopg2
import time
if __name__ == "__main__":
# check db table, if doesn't exists then create tables and pull last month's data into the db.
check_db_table_exits()
# endless loop, sleep until next mo... | 34.561151 | 151 | 0.622606 |
9eac32aaf34bddbfe912ad8b935101d15d22cb63 | 3,446 | py | Python | association_rules_viz/graph.py | ScenesK/association-rules-viz | 2134b0866509ae9b65f323da7972033e54ffb25f | [
"MIT"
] | 1 | 2020-06-22T09:50:26.000Z | 2020-06-22T09:50:26.000Z | association_rules_viz/graph.py | ScenesK/association-rules-viz | 2134b0866509ae9b65f323da7972033e54ffb25f | [
"MIT"
] | null | null | null | association_rules_viz/graph.py | ScenesK/association-rules-viz | 2134b0866509ae9b65f323da7972033e54ffb25f | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import networkx as nx
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
| 34.46 | 75 | 0.531631 |
9ead611c9befd61012037395d04c055fa2feabec | 1,833 | py | Python | src/herald/herald.py | Artic42/ArticUtils | 4eb3d010e2448d12edde569b600e6cd0d8f1d7a5 | [
"MIT"
] | null | null | null | src/herald/herald.py | Artic42/ArticUtils | 4eb3d010e2448d12edde569b600e6cd0d8f1d7a5 | [
"MIT"
] | null | null | null | src/herald/herald.py | Artic42/ArticUtils | 4eb3d010e2448d12edde569b600e6cd0d8f1d7a5 | [
"MIT"
] | null | null | null | import readExcel
import modifyFile
import sys
import time
import sendEmail
if __name__ == "__main__":
if len (sys.argv) < 2:
main ("HeraldConfig.xlsx")
else:
main (sys.argv [1]) | 29.095238 | 84 | 0.643208 |
9eaf5189699bfaacfc0f73117848a3fc060f8088 | 2,314 | py | Python | cvpack/extras/clustering.py | alkasm/cvtools | 7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3 | [
"MIT"
] | 10 | 2018-09-22T14:05:42.000Z | 2020-11-30T07:12:18.000Z | cvpack/extras/clustering.py | alkasm/cvmod | 7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3 | [
"MIT"
] | 3 | 2019-02-22T20:54:53.000Z | 2021-04-15T17:56:44.000Z | cvpack/extras/clustering.py | alkasm/cvpack | 7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3 | [
"MIT"
] | 1 | 2019-04-01T18:35:46.000Z | 2019-04-01T18:35:46.000Z | # type: ignore
import cv2
import numpy as np
TWO_PI = 2 * np.pi
def kmeans_periodic(columns, intervals, data, *args, **kwargs):
"""Runs kmeans with periodicity in a subset of dimensions.
Transforms columns with periodicity on the specified intervals into two
columns with coordinates on the unit circle... | 33.536232 | 81 | 0.653414 |
9eb1d479f5b09c6f55397ec22af703577ef9ccc9 | 6,599 | py | Python | models/model.py | SeungoneKim/Transformer_implementation | a52bf552eb645fc9bfb812cc26842fc147d6c008 | [
"Apache-2.0"
] | null | null | null | models/model.py | SeungoneKim/Transformer_implementation | a52bf552eb645fc9bfb812cc26842fc147d6c008 | [
"Apache-2.0"
] | null | null | null | models/model.py | SeungoneKim/Transformer_implementation | a52bf552eb645fc9bfb812cc26842fc147d6c008 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from models.embedding import TokenEmbedding, PositionalEncoding, TransformerEmbedding
from models.attention import ScaledDotProductAttention, MultiHeadAttention, FeedForward
from models.layers import EncoderLayer, DecoderLayer
def build_model(sr... | 43.993333 | 105 | 0.618882 |
9eb2558837d9b3df4ed680f126f72ec0f1a601b9 | 23,299 | py | Python | market/models/sim_trades.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | 1 | 2021-05-29T23:33:41.000Z | 2021-05-29T23:33:41.000Z | market/models/sim_trades.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | null | null | null | market/models/sim_trades.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | null | null | null | # _*_ coding:UTF-8 _*_
"""
"""
from django.db import models
import uuid
from decimal import Decimal
import time
from .clients import BaseClient
from .sim_market import SimMarket
from .sim_clients import SimHoldingElem, SimCommissionElem, SimTransactionElem
from .sim_stocks import SimStock, SimOrderBookEntry, SimOr... | 45.864173 | 120 | 0.621057 |
9eb25cb35ba11321a4478f3939055dd02c0dd60a | 906 | py | Python | project/project3/tests/q3_2_3.py | ds-modules/Colab-demo | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | [
"BSD-3-Clause"
] | null | null | null | project/project3/tests/q3_2_3.py | ds-modules/Colab-demo | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | [
"BSD-3-Clause"
] | null | null | null | project/project3/tests/q3_2_3.py | ds-modules/Colab-demo | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | [
"BSD-3-Clause"
] | null | null | null | test = { 'name': 'q3_2_3',
'points': 1,
'suites': [ { 'cases': [ { 'code': '>>> # this test just checks that your classify_feature_row works correctly.;\n'
'>>> def check(r):\n'
'... t = test_my_features.... | 60.4 | 158 | 0.324503 |
9eb59f13f0ec2dce6a8b666bbd3d7c93b0067e02 | 695 | py | Python | Lib/email/mime/nonmultipart.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/email/mime/nonmultipart.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/email/mime/nonmultipart.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | # Copyright (C) 2002-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""Base klasa dla MIME type messages that are nie multipart."""
__all__ = ['MIMENonMultipart']
z email zaimportuj errors
z email.mime.base zaimportuj MIMEBase
klasa MIMENonMultipart(MIMEBase):
"""Base ... | 30.217391 | 76 | 0.719424 |
9eb647f3ff599f7fe9aba98c470407028b7ff5b5 | 682 | py | Python | notifications/providers/slack.py | danidee10/django-notifs | 2712aad90ee1cc7b6735dad6e311e4df6a02b843 | [
"MIT"
] | 145 | 2017-06-22T20:37:14.000Z | 2022-02-03T21:18:28.000Z | notifications/providers/slack.py | danidee10/django-notifs | 2712aad90ee1cc7b6735dad6e311e4df6a02b843 | [
"MIT"
] | 67 | 2017-06-23T06:53:32.000Z | 2021-11-13T04:00:27.000Z | notifications/providers/slack.py | danidee10/django-notifs | 2712aad90ee1cc7b6735dad6e311e4df6a02b843 | [
"MIT"
] | 24 | 2017-06-22T20:37:17.000Z | 2022-02-17T19:52:35.000Z | from notifications import ImproperlyInstalledNotificationProvider
try:
from slack_sdk import WebClient
except ImportError as err:
raise ImproperlyInstalledNotificationProvider(
missing_package='slack_sdk', provider='slack'
) from err
from notifications import default_settings as settings
from . i... | 28.416667 | 83 | 0.771261 |
9eb6d151f5528cdc1c322f9b0068d09d6d965dbb | 114 | py | Python | pinax/points/signals.py | hacklabr/pinax-points | 1133c6d911e9fe9445ff45aebe118bcaf715aae0 | [
"MIT"
] | 28 | 2015-01-26T07:52:49.000Z | 2022-03-20T17:15:04.000Z | pinax/points/signals.py | hacklabr/pinax-points | 1133c6d911e9fe9445ff45aebe118bcaf715aae0 | [
"MIT"
] | 15 | 2017-12-04T07:35:49.000Z | 2020-05-21T15:53:20.000Z | pinax/points/signals.py | hacklabr/pinax-points | 1133c6d911e9fe9445ff45aebe118bcaf715aae0 | [
"MIT"
] | 14 | 2015-02-10T04:27:12.000Z | 2021-10-05T10:27:21.000Z | from django.dispatch import Signal
points_awarded = Signal(providing_args=["target", "key", "points", "source"])
| 28.5 | 77 | 0.745614 |
9eb729a54e82db494828c16cbebb47a4ee3adfae | 1,798 | py | Python | symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py | blackyblack/symplyphysics | 4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f | [
"MIT"
] | null | null | null | symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py | blackyblack/symplyphysics | 4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f | [
"MIT"
] | null | null | null | symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py | blackyblack/symplyphysics | 4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f | [
"MIT"
] | null | null | null | from sympy.functions import exp
from symplyphysics import (
symbols, Eq, pretty, solve, Quantity, units, S,
Probability, validate_input, expr_to_quantity, convert_to
)
# Description
## Ptnl (fast non-leakage factor) is the ratio of the number of fast neutrons that do not leak from the reactor
## core during th... | 47.315789 | 114 | 0.775306 |
9eb7a903f72b60e9e3df9e532475115dd09aef7e | 599 | py | Python | 3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/12. Exercise - File Handling/02_line_numbers.py | kzborisov/SoftUni | ccb2b8850adc79bfb2652a45124c3ff11183412e | [
"MIT"
] | 1 | 2021-02-07T07:51:12.000Z | 2021-02-07T07:51:12.000Z | 3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/12. Exercise - File Handling/02_line_numbers.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | 3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/12. Exercise - File Handling/02_line_numbers.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | import re
lines = []
with open("text.txt", "r") as f:
content = f.readlines()
for index, line in enumerate(content):
letters_count = count_letters(line)
punctuation = count_punctuation(line)
line = line.strip("\n")
lines.append(f"Line {index + 1}: {line} ({letters_count})({p... | 23.96 | 84 | 0.580968 |
9eb81dc7bd07da6f0a064dae1f82cb5f9f4c811b | 422 | py | Python | app/auth/forms.py | jakhax/esp9266_rfid_lock | e9c25628a023c8d6005a136e240ca1a36589fd36 | [
"MIT"
] | 2 | 2020-11-10T09:16:21.000Z | 2021-12-15T07:27:17.000Z | app/auth/forms.py | jakhax/consecutive_normal_punches | e9c25628a023c8d6005a136e240ca1a36589fd36 | [
"MIT"
] | null | null | null | app/auth/forms.py | jakhax/consecutive_normal_punches | e9c25628a023c8d6005a136e240ca1a36589fd36 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,SubmitField,BooleanField,PasswordField
from wtforms.validators import Required,DataRequired,Length | 46.888889 | 82 | 0.779621 |
9eb981e2b99c90652643fa12268a2ebf31a607f2 | 929 | py | Python | hub/sensorhub/models/user_agent.py | kblum/sensor-hub | 6b766ca59be74ae1a8d3d42afe048d04b6a0c546 | [
"MIT"
] | null | null | null | hub/sensorhub/models/user_agent.py | kblum/sensor-hub | 6b766ca59be74ae1a8d3d42afe048d04b6a0c546 | [
"MIT"
] | null | null | null | hub/sensorhub/models/user_agent.py | kblum/sensor-hub | 6b766ca59be74ae1a8d3d42afe048d04b6a0c546 | [
"MIT"
] | null | null | null | from django.db import models
from . import TimestampedModel
| 32.034483 | 93 | 0.678149 |
9eb9fac0aba71cd2544a8102ad03715608f8d6b1 | 428 | py | Python | sortingAlgorithm/pigeonHoleSort.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | sortingAlgorithm/pigeonHoleSort.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | null | null | null | sortingAlgorithm/pigeonHoleSort.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z |
nums = [12,26,77,22,88,1]
print(pigeonHoleSort(nums))
print(nums)
| 20.380952 | 40 | 0.546729 |
9eba0cf24a0b17206785479fbe34def5787d6765 | 345 | py | Python | service/utils/parsers.py | psorianom/csv_detective_api | 7c96f497374d842226a95a26cb6627ac22cd799b | [
"MIT"
] | 2 | 2020-02-04T05:24:56.000Z | 2021-05-05T17:22:55.000Z | service/utils/parsers.py | psorianom/csv_detective_api | 7c96f497374d842226a95a26cb6627ac22cd799b | [
"MIT"
] | 10 | 2019-10-24T13:29:59.000Z | 2022-02-26T17:06:15.000Z | service/utils/parsers.py | psorianom/csv_detective_api | 7c96f497374d842226a95a26cb6627ac22cd799b | [
"MIT"
] | 2 | 2019-12-30T23:26:53.000Z | 2020-03-27T17:23:28.000Z | # parsers.py
from werkzeug.datastructures import FileStorage
from flask_restplus import reqparse
file_upload = reqparse.RequestParser()
file_upload.add_argument('resource_csv',
type=FileStorage,
location='files',
required=True,
... | 34.5 | 47 | 0.585507 |
9ebb0d752144dce45cafae8a4dd28aecf263593a | 4,410 | py | Python | sdk/python/kfp/components/yaml_component_test.py | johnmacnamararseg/pipelines | 340318625c527836af1c9abc0fd0d76c0a466333 | [
"Apache-2.0"
] | null | null | null | sdk/python/kfp/components/yaml_component_test.py | johnmacnamararseg/pipelines | 340318625c527836af1c9abc0fd0d76c0a466333 | [
"Apache-2.0"
] | 1 | 2020-02-06T12:53:44.000Z | 2020-02-06T12:53:44.000Z | sdk/python/kfp/components/yaml_component_test.py | johnmacnamararseg/pipelines | 340318625c527836af1c9abc0fd0d76c0a466333 | [
"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... | 34.453125 | 111 | 0.654649 |
9ebbdb1a7760f5a35b7e2094efb06933644ff5ca | 10,548 | py | Python | cpmm.py | wallfair-organization/amm-sim | 0ae8584563dd44162a8e2407382d250b02474704 | [
"MIT"
] | null | null | null | cpmm.py | wallfair-organization/amm-sim | 0ae8584563dd44162a8e2407382d250b02474704 | [
"MIT"
] | null | null | null | cpmm.py | wallfair-organization/amm-sim | 0ae8584563dd44162a8e2407382d250b02474704 | [
"MIT"
] | null | null | null | #
# Constant Price Market Making Simulator
#
# simulate different liquidity provision and trading strategies
#
from typing import Tuple
import csv
import numpy as np
import pandas as pd
from numpy.random import binomial, default_rng
# TODO: switch to decimal type and control quantization. numeric errors will kill us... | 32.455385 | 168 | 0.724877 |
9ebc76ad7fb2ab59ef2ca50b8282c5e6935d4d06 | 1,184 | py | Python | modules/sdl2/input/__init__.py | rave-engine/rave | 0eeb956363f4d7eda92350775d7d386550361273 | [
"BSD-2-Clause"
] | 5 | 2015-03-18T01:19:56.000Z | 2020-10-23T12:44:47.000Z | modules/sdl2/input/__init__.py | rave-engine/rave | 0eeb956363f4d7eda92350775d7d386550361273 | [
"BSD-2-Clause"
] | null | null | null | modules/sdl2/input/__init__.py | rave-engine/rave | 0eeb956363f4d7eda92350775d7d386550361273 | [
"BSD-2-Clause"
] | null | null | null | """
rave input backend using the SDL2 library.
"""
import sys
import sdl2
import rave.log
import rave.events
import rave.backends
from ..common import events_for
from . import keyboard, mouse, touch, controller
BACKEND_PRIORITY = 50
## Module API.
## Backend API.
## Internal API.
_log = rave.log.get(__name__)
| 22.769231 | 113 | 0.688345 |
9ebe258aa483e065cfc04b0e3ffeede0cfc9e13c | 862 | py | Python | setup.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | setup.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | setup.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null |
try:
from setuptools import setup, find_packages
except ImportError as e:
from distutils.core import setup
dependencies = ['docopt', 'termcolor', 'requests']
setup(
name = 'pyDownload',
version = '1.0.2',
description = 'CLI based download utility',
url = 'https://github.com/Dhruv-Jauhar/pyDownload',
author = ... | 25.352941 | 53 | 0.682135 |
9ebfc8aff37fd8a9c5182bec54f14b5f742f7af5 | 792 | py | Python | todo/models.py | sanaullahaq/todo-API | fc4b3c46902ceae8b67d96195451dcfe404a2d48 | [
"MIT"
] | 2 | 2020-10-28T05:00:06.000Z | 2020-10-28T05:05:35.000Z | todo/models.py | sanaullahaq/todo-API | fc4b3c46902ceae8b67d96195451dcfe404a2d48 | [
"MIT"
] | 4 | 2021-03-30T14:09:51.000Z | 2021-06-10T20:04:28.000Z | todo/models.py | sanaullahaq/todo | afd05969b74326a72f3103f86a55225137f3faab | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
| 39.6 | 115 | 0.738636 |
7b356af2edb34b8b508b0178b0361112e9713c32 | 558 | py | Python | tests/coverage/add_perf_summary.py | olvrou/CCF | 3843ff0ccf3871dc49cf2102655404d17ed5dcaf | [
"Apache-2.0"
] | 1 | 2020-02-03T21:57:22.000Z | 2020-02-03T21:57:22.000Z | tests/coverage/add_perf_summary.py | olvrou/CCF | 3843ff0ccf3871dc49cf2102655404d17ed5dcaf | [
"Apache-2.0"
] | null | null | null | tests/coverage/add_perf_summary.py | olvrou/CCF | 3843ff0ccf3871dc49cf2102655404d17ed5dcaf | [
"Apache-2.0"
] | 1 | 2021-04-08T12:55:28.000Z | 2021-04-08T12:55:28.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
import time
import json
with open("coverage.json", "r") as file:
timestamp = str(int(time.time()))
data = json.load(file)["data"][0]
lines_covered = str(data["totals"]["lines"]["covered"])
lines_valid =... | 26.571429 | 59 | 0.594982 |
7b3573ace3d1c2705447c13d56f1be46ceaa32b4 | 1,063 | py | Python | tests/test_calculator_ui.py | ellinaMart/test_trade_calculator | d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3 | [
"Apache-2.0"
] | null | null | null | tests/test_calculator_ui.py | ellinaMart/test_trade_calculator | d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3 | [
"Apache-2.0"
] | null | null | null | tests/test_calculator_ui.py | ellinaMart/test_trade_calculator | d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3 | [
"Apache-2.0"
] | null | null | null | import pytest
import allure
from data.parameters import data_parameters
| 39.37037 | 91 | 0.718721 |
7b3a31a3ced9da114ff604217cc00699fa473e8b | 6,383 | py | Python | indy-diem/writeTransactionSimple.py | kiva/indy-diem | c015a44b15886a2a039c3b7768cf03a6295c134e | [
"Apache-2.0"
] | null | null | null | indy-diem/writeTransactionSimple.py | kiva/indy-diem | c015a44b15886a2a039c3b7768cf03a6295c134e | [
"Apache-2.0"
] | 15 | 2021-08-17T15:31:07.000Z | 2021-09-20T15:11:59.000Z | indy-diem/writeTransactionSimple.py | kiva/indy-diem | c015a44b15886a2a039c3b7768cf03a6295c134e | [
"Apache-2.0"
] | null | null | null | import asyncio
import json
import time
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from diem import AuthKey, testnet, utils
from indy import anoncreds, wallet
from indy import pool
from get_schema import get_schema
from diem_txn import create_diem_script, create_diem_raw_txn, sign_a... | 34.690217 | 116 | 0.734608 |
7b3a56677628b2dcca3ff0494700cfb7a0aa4b48 | 2,173 | py | Python | Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import pytest
from GoogleCloudFunctions import resolve_default_project_id, functions_list_command
def test_no_functions():
"""
Given:
- Google client without functions
When:
- Running functions-list command
Then:
- Ensure expected human readable response is returned
""... | 36.830508 | 120 | 0.698113 |
7b3b43938d892ce413a93aef4a822d3347566181 | 11,938 | py | Python | implementation.py | Alwaysproblem/Sentimental-Analysis | 9af282842fe32e4581065a04dd47119dbabd4b01 | [
"Apache-2.0"
] | 2 | 2019-11-06T22:57:42.000Z | 2019-11-24T04:00:21.000Z | implementation.py | Alwaysproblem/Sentimental-Analysis | 9af282842fe32e4581065a04dd47119dbabd4b01 | [
"Apache-2.0"
] | null | null | null | implementation.py | Alwaysproblem/Sentimental-Analysis | 9af282842fe32e4581065a04dd47119dbabd4b01 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
BATCH_SIZE = 128
MAX_WORDS_IN_REVIEW = 200 # Maximum length of a review to consider
EMBEDDING_SIZE = 50 # Dimensions for each word vector
stop_words = set({'ourselves', 'hers', 'between', 'yourself', 'again',
'there', 'a... | 40.467797 | 107 | 0.59608 |
7b3cc4dc345dd62020834a44def43b7e9619fb29 | 3,492 | py | Python | cssqc/parser.py | matematik7/CSSQC | f8048435e60f688fef70d1608651d31e1288b4cf | [
"MIT"
] | null | null | null | cssqc/parser.py | matematik7/CSSQC | f8048435e60f688fef70d1608651d31e1288b4cf | [
"MIT"
] | null | null | null | cssqc/parser.py | matematik7/CSSQC | f8048435e60f688fef70d1608651d31e1288b4cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------
# cssqc/__init__.py
#
# css quality control
# ----------------------------------------------------------------
# copyright (c) 2014 - Domen Ipavec
# Distributed under The MIT License, see LICENSE
# -------... | 23.28 | 69 | 0.489977 |
7b3e25ca3f02a2235c0f0ca58913370560e98207 | 3,351 | py | Python | parser/team23/instruccion/update_st.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team23/instruccion/update_st.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team23/instruccion/update_st.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from abstract.instruccion import *
from tools.console_text import *
from tools.tabla_tipos import *
from storage import jsonMode as funciones
from error.errores import *
from tools.tabla_simbolos import * | 41.37037 | 156 | 0.5661 |
7b3e6682a8f4db3e33235458e638c05f2e380911 | 1,791 | py | Python | ncfm/generate_proposals.py | kirk86/kaggle | 8178ed790bc1f8fcd2cd7a01560e5f25f01c07cc | [
"MIT"
] | null | null | null | ncfm/generate_proposals.py | kirk86/kaggle | 8178ed790bc1f8fcd2cd7a01560e5f25f01c07cc | [
"MIT"
] | null | null | null | ncfm/generate_proposals.py | kirk86/kaggle | 8178ed790bc1f8fcd2cd7a01560e5f25f01c07cc | [
"MIT"
] | null | null | null | # import sys
# sys.path.appenval.'/usr/local/lib/python2.7/site-packages')
import dlib
import scipy
import skimage as io
import numpy as np
imagenet_path = 'path/to/imagenet/val.ta/Images'
names = 'path/to/imagenet/val.ta/ImageSets/train.txt'
count = 0
all_proposals = []
imagenms = []
nameFile = open(names)
for lin... | 33.166667 | 76 | 0.634841 |
7b405010c115340a11d63243786f96de4c6d44a6 | 3,953 | py | Python | comp_prov.py | RickyMexx/ML_CompilerProvenance | ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45 | [
"Apache-2.0"
] | null | null | null | comp_prov.py | RickyMexx/ML_CompilerProvenance | ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45 | [
"Apache-2.0"
] | null | null | null | comp_prov.py | RickyMexx/ML_CompilerProvenance | ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45 | [
"Apache-2.0"
] | null | null | null | # each JSON has: {instructions}, {opt}, {compiler}
# MODEL SETTINGS: please set these before running the main #
mode = "opt" # Labels of the model: [opt] or [compiler]
samples = 3000 # Number of the blind set samples
fav_instrs_in = ["mov"] # Set of instructions of which DEST register should be extracted [IN]
fav_i... | 30.407692 | 101 | 0.625348 |
7b42bb511e27ed76adb521890d7b12af28eb727f | 206 | py | Python | project/striide/urls.py | Striide/DjangoRestApi | db4bec3bf5ac7b60021a5e28d67a054d80ed307f | [
"MIT"
] | null | null | null | project/striide/urls.py | Striide/DjangoRestApi | db4bec3bf5ac7b60021a5e28d67a054d80ed307f | [
"MIT"
] | null | null | null | project/striide/urls.py | Striide/DjangoRestApi | db4bec3bf5ac7b60021a5e28d67a054d80ed307f | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.conf.urls import url, include
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
] | 25.75 | 60 | 0.762136 |
7b42bde77e1661a4f0f1591879e395dd1510705b | 2,266 | py | Python | task.py | init-helpful/jsontasks | 2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e | [
"MIT"
] | null | null | null | task.py | init-helpful/jsontasks | 2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e | [
"MIT"
] | null | null | null | task.py | init-helpful/jsontasks | 2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e | [
"MIT"
] | null | null | null | from jsonlink import JsonLink
from globals import read_json_file
task = Task()
task.update_from_dict(read_json_file("exampletask.json"))
print(task)
| 26.97619 | 68 | 0.581642 |
7b4355b686014d85c2cc35d093973bc84723e068 | 5,252 | py | Python | sight_api/__init__.py | siftrics/sight-python | dd162b54efa856cd15955791bbdb563b3ca9cd35 | [
"Apache-2.0"
] | 1 | 2020-02-23T19:08:39.000Z | 2020-02-23T19:08:39.000Z | sight_api/__init__.py | siftrics/sight-python | dd162b54efa856cd15955791bbdb563b3ca9cd35 | [
"Apache-2.0"
] | null | null | null | sight_api/__init__.py | siftrics/sight-python | dd162b54efa856cd15955791bbdb563b3ca9cd35 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Siftrics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, s... | 40.091603 | 143 | 0.581493 |
7b443c8f7fa19307b9a833a456473a9a811c2e29 | 190 | py | Python | back-end/erasmail/emails/admin.py | SamirM-BE/ErasMail | 88602a039ae731ca8566c96c7c4d2635f82a07a5 | [
"Apache-2.0"
] | 7 | 2021-02-06T21:06:23.000Z | 2022-01-31T09:33:26.000Z | back-end/erasmail/emails/admin.py | SamirM-BE/ErasMail | 88602a039ae731ca8566c96c7c4d2635f82a07a5 | [
"Apache-2.0"
] | null | null | null | back-end/erasmail/emails/admin.py | SamirM-BE/ErasMail | 88602a039ae731ca8566c96c7c4d2635f82a07a5 | [
"Apache-2.0"
] | 5 | 2021-05-07T15:35:25.000Z | 2022-03-21T09:11:24.000Z | from django.contrib import admin
from .models import Attachment, EmailHeaders, Newsletter
admin.site.register(EmailHeaders)
admin.site.register(Attachment)
admin.site.register(Newsletter)
| 23.75 | 56 | 0.836842 |
7b47c5080977b6ed437b3d285f1ec4ab43d82e70 | 145 | py | Python | acronym.py | MathewsPeter/PythonProjects | 4ea83a317452f8abd2c9c1273753037de263f88f | [
"MIT"
] | null | null | null | acronym.py | MathewsPeter/PythonProjects | 4ea83a317452f8abd2c9c1273753037de263f88f | [
"MIT"
] | null | null | null | acronym.py | MathewsPeter/PythonProjects | 4ea83a317452f8abd2c9c1273753037de263f88f | [
"MIT"
] | null | null | null | fullform = input("Enter a full form: ")
words = fullform.split(" ")
acro = ""
for word in words:
acro+=word[0]
print("Acronym is ", acro) | 24.166667 | 39 | 0.62069 |
7b483bc7a8258807d0838c4087de8c2c75b55797 | 802 | py | Python | 10_54_sobel_filter.py | Larilok/image_processing | 331e50ecd127ba61d6a59a51b7e90f0fd31c7a29 | [
"MIT"
] | null | null | null | 10_54_sobel_filter.py | Larilok/image_processing | 331e50ecd127ba61d6a59a51b7e90f0fd31c7a29 | [
"MIT"
] | null | null | null | 10_54_sobel_filter.py | Larilok/image_processing | 331e50ecd127ba61d6a59a51b7e90f0fd31c7a29 | [
"MIT"
] | null | null | null | from skimage import img_as_int
import cv2
import numpy as np
from pylab import *
import scipy.ndimage.filters as filters
#img = cv2.imread('images/profile.jpg', 0)
img = cv2.imread('images/moon.jpg',0)
sobel_operator_v = np.array([
[-1, 0, 1],
[-2, 0 ,2],
[-1, 0, 1]
])
sobelX = cv2.Sobel(img, -1... | 22.277778 | 79 | 0.649626 |
7b4b9aebba4c243de4aa31a177c2640cf3ee6e9d | 199 | py | Python | src/gluonts/model/prophet/__init__.py | rlucas7/gluon-ts | f8572ab4daeb01a05aa88a252bb67ec9062ee150 | [
"Apache-2.0"
] | null | null | null | src/gluonts/model/prophet/__init__.py | rlucas7/gluon-ts | f8572ab4daeb01a05aa88a252bb67ec9062ee150 | [
"Apache-2.0"
] | null | null | null | src/gluonts/model/prophet/__init__.py | rlucas7/gluon-ts | f8572ab4daeb01a05aa88a252bb67ec9062ee150 | [
"Apache-2.0"
] | null | null | null | # Relative imports
from ._estimator import ProphetEstimator
from ._predictor import ProphetPredictor, PROPHET_IS_INSTALLED
__all__ = ['ProphetEstimator', 'ProphetPredictor', 'PROPHET_IS_INSTALLED']
| 33.166667 | 74 | 0.834171 |
7b4bc6101cb34fe0e28e691b6f51e4ac042ddfb6 | 4,995 | py | Python | DEPENDENCIES/seash/modules/factoids/__init__.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | null | null | null | DEPENDENCIES/seash/modules/factoids/__init__.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | null | null | null | DEPENDENCIES/seash/modules/factoids/__init__.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | null | null | null | """
<Filename>
factoids/__init__.py
<Purpose>
Used to print saesh factoids.
It implements the following command:
show factoids [number of factoids]/all
"""
import seash_exceptions
import random
import os
# List which will contain all factoids after fatching from a file.
factoids = []
def initiali... | 26.289474 | 116 | 0.680881 |