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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96e3d2507b0d0ae8602498cb1566776722035d2c | 870 | py | Python | code-challanges/401/linked_list/ll_merge/ll_merge.py | schoentr/data-structures-and-algorithms | 535ac617a2ab32293014946b043bdb40a647d43b | [
"MIT"
] | null | null | null | code-challanges/401/linked_list/ll_merge/ll_merge.py | schoentr/data-structures-and-algorithms | 535ac617a2ab32293014946b043bdb40a647d43b | [
"MIT"
] | 1 | 2019-03-11T02:13:58.000Z | 2019-03-11T02:13:58.000Z | code-challanges/401_code_challenges/linked_list/ll_merge/ll_merge.py | schoentr/data-structures-and-algorithms | 535ac617a2ab32293014946b043bdb40a647d43b | [
"MIT"
] | null | null | null | from linked_list.linked_listf import LinkedList
ones = LinkedList()
ones.insert('1')
ones.insert('2')
ones.insert('3')
ones.insert('4')
ones.insert('5')
print(ones.print())
tens = LinkedList()
tens.insert('10')
tens.insert('20')
# tens.insert('30')
# tens.insert('40')
# tens.insert('50')
print(tens.print())
ll_merge... | 21.75 | 47 | 0.636782 |
96e3e6827970c8c66b107feb95851d4718ea2a5e | 6,159 | py | Python | wr_ks_reader.py | Kevin-Prichard/werobots-kickstarter-python | aa089f66dcd7defbfd7d06a1fb5821bb59ead10f | [
"BSD-2-Clause"
] | 1 | 2020-10-27T11:06:19.000Z | 2020-10-27T11:06:19.000Z | wr_ks_reader.py | Kevin-Prichard/werobots-kickstarter-python | aa089f66dcd7defbfd7d06a1fb5821bb59ead10f | [
"BSD-2-Clause"
] | null | null | null | wr_ks_reader.py | Kevin-Prichard/werobots-kickstarter-python | aa089f66dcd7defbfd7d06a1fb5821bb59ead10f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json, sys, copy, os, re
import pprint
import locale
import csv
locale.setlocale(locale.LC_ALL, 'en_US')
from collections import defaultdict
from operator import itemgetter
pp = pprint.PrettyPrinter(indent=4)
# For MacPorts ... need to eliminate TODO
sys.path.append... | 39.993506 | 139 | 0.599448 |
96e5665a895a1fb9a756f3fb69c43aacf59d81ff | 886 | py | Python | partialflow/utils.py | jakob-bauer/partialflow | bea1b46ca66fb5c10aefbcd1570aff922a903118 | [
"MIT"
] | 3 | 2017-02-03T15:59:10.000Z | 2020-05-23T07:26:10.000Z | partialflow/utils.py | jakob-bauer/partialflow | bea1b46ca66fb5c10aefbcd1570aff922a903118 | [
"MIT"
] | null | null | null | partialflow/utils.py | jakob-bauer/partialflow | bea1b46ca66fb5c10aefbcd1570aff922a903118 | [
"MIT"
] | 1 | 2018-08-02T02:16:34.000Z | 2018-08-02T02:16:34.000Z | import time
| 24.611111 | 74 | 0.595937 |
96e61a11791baafd8b6c85cae2fa69be8d6833f2 | 11,891 | py | Python | scripts/cloud/aws/ops-ec2-add-snapshot-tag-to-ebs-volumes.py | fahlmant/openshift-tools | dbb4f16ccde3404c36c23108c45ca7b67138ee12 | [
"Apache-2.0"
] | 164 | 2015-07-29T17:35:04.000Z | 2021-12-16T16:38:04.000Z | scripts/cloud/aws/ops-ec2-add-snapshot-tag-to-ebs-volumes.py | fahlmant/openshift-tools | dbb4f16ccde3404c36c23108c45ca7b67138ee12 | [
"Apache-2.0"
] | 3,634 | 2015-06-09T13:49:15.000Z | 2022-03-23T20:55:44.000Z | scripts/cloud/aws/ops-ec2-add-snapshot-tag-to-ebs-volumes.py | fahlmant/openshift-tools | dbb4f16ccde3404c36c23108c45ca7b67138ee12 | [
"Apache-2.0"
] | 250 | 2015-06-08T19:53:11.000Z | 2022-03-01T04:51:23.000Z | #!/usr/bin/env python
# vim: expandtab:tabstop=4:shiftwidth=4
"""
This is a script that can be used to tag EBS volumes in OpenShift v3.
This script assume that your AWS credentials are setup in ~/.aws/credentials like this:
[default]
aws_access_key_id = xxxx
aws_secret_access_key = xxxx
Or that environmen... | 50.6 | 114 | 0.641241 |
96e773f3eb8d9309f3f610d7802ef89439807320 | 3,679 | py | Python | rush00/rush00/settings.py | ppichier/moviemon_game | 556948b4763879c6c88d60037e4faf5f3555e432 | [
"MIT"
] | null | null | null | rush00/rush00/settings.py | ppichier/moviemon_game | 556948b4763879c6c88d60037e4faf5f3555e432 | [
"MIT"
] | null | null | null | rush00/rush00/settings.py | ppichier/moviemon_game | 556948b4763879c6c88d60037e4faf5f3555e432 | [
"MIT"
] | null | null | null | """
Django settings for rush00 project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | 24.203947 | 91 | 0.693395 |
96e7d1ddaf507ff49c193f3c3f481b154f3b0eda | 13,122 | py | Python | test/jpypetest/test_jchar.py | baztian/jpype | 034d44e6c719995c25e9cd61348ebc1860030a9b | [
"Apache-2.0"
] | null | null | null | test/jpypetest/test_jchar.py | baztian/jpype | 034d44e6c719995c25e9cd61348ebc1860030a9b | [
"Apache-2.0"
] | null | null | null | test/jpypetest/test_jchar.py | baztian/jpype | 034d44e6c719995c25e9cd61348ebc1860030a9b | [
"Apache-2.0"
] | null | null | null | import _jpype
import jpype
import common
from jpype.types import *
class JCharTestCase(common.JPypeTestCase):
class JCharBoxedTestCase(common.JPypeTestCase):
class JCharBoxedNullTestCase(common.JPypeTestCase):
| 30.658879 | 86 | 0.601357 |
96e84b02847af097942827575530d900a0b5412e | 5,279 | py | Python | pysensors.py | zakrzem1/pysensors | bfbef5f1442d845e5fa5febf1de5a35a81e436ee | [
"Apache-2.0"
] | null | null | null | pysensors.py | zakrzem1/pysensors | bfbef5f1442d845e5fa5febf1de5a35a81e436ee | [
"Apache-2.0"
] | null | null | null | pysensors.py | zakrzem1/pysensors | bfbef5f1442d845e5fa5febf1de5a35a81e436ee | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Google Spreadsheet DHT Sensor Data-logging Example
# Depends on the 'gspread' package being installed. If you have pip installed
# execute:
# sudo pip install gspread
# Copyright (c) 2014 Adafruit Industries
# Author: Tony DiCola
# Permission is hereby granted, free of charge, to any person obt... | 37.176056 | 126 | 0.639326 |
96e9083445d26a4f829c2bf35d90cd2813d1671b | 4,287 | py | Python | compare/utils.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | null | null | null | compare/utils.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | null | null | null | compare/utils.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | null | null | null | """
Random utilities this app needs
"""
import os
import re
from buzz import Corpus as BuzzCorpus
from buzz import Collection
from django.conf import settings
from explore.models import Corpus
from .models import OCRUpdate, PDF
# from django.core.exceptions import ObjectDoesNotExist
# when doing OCR, re.findall wi... | 31.291971 | 81 | 0.623513 |
96e90e29c3780580d721f8e007e8c29d7b8c4d6c | 55 | py | Python | apps/sitemap/__init__.py | MySmile/mysmile | 5abe4baa7970674d1f8365d875519283c2e29dae | [
"BSD-3-Clause"
] | 5 | 2015-05-03T09:51:32.000Z | 2019-05-21T14:19:02.000Z | apps/sitemap/__init__.py | MySmile/mysmile | 5abe4baa7970674d1f8365d875519283c2e29dae | [
"BSD-3-Clause"
] | 24 | 2015-04-05T16:28:08.000Z | 2022-03-11T23:36:56.000Z | apps/sitemap/__init__.py | MySmile/mysmile | 5abe4baa7970674d1f8365d875519283c2e29dae | [
"BSD-3-Clause"
] | 1 | 2017-01-23T23:00:11.000Z | 2017-01-23T23:00:11.000Z | default_app_config = 'apps.sitemap.apps.SitemapConfig'
| 27.5 | 54 | 0.836364 |
96ead76583647a3211d18d56e012be5c362ce02d | 1,399 | py | Python | extra_tests/snippets/stdlib_subprocess.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 11,058 | 2018-05-29T07:40:06.000Z | 2022-03-31T11:38:42.000Z | extra_tests/snippets/stdlib_subprocess.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 2,105 | 2018-06-01T10:07:16.000Z | 2022-03-31T14:56:42.000Z | extra_tests/snippets/stdlib_subprocess.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 914 | 2018-07-27T09:36:14.000Z | 2022-03-31T19:56:34.000Z | import subprocess
import time
import sys
import signal
from testutils import assert_raises
is_unix = not sys.platform.startswith("win")
if is_unix:
else:
p = subprocess.Popen(echo("test"))
time.sleep(0.1)
assert p.returncode is None
assert p.poll() == 0
assert p.returncode == 0
p = subprocess.Popen(sleep(2))
as... | 19.985714 | 82 | 0.686919 |
96ece3d883b91ffe8949433754af0502b5ee3b91 | 341 | py | Python | pythonProject1/chap2/demo8.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | pythonProject1/chap2/demo8.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | pythonProject1/chap2/demo8.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | # MarkerJava
# 2020/10/5 17:25
scores = {'kobe': 100, 'lebron': 99, 'AD': 88}
# key
keys = scores.keys()
print(keys)
print(type(keys))
print(list(keys)) # key
#
value = scores.values()
print(value)
print(type(value)) # value
#
items = scores.items()
print(items)
print(type(items))
| 17.05 | 46 | 0.695015 |
96ed4bcf4dda34f4a0193956be88e898b8ddc8c2 | 6,579 | py | Python | src/command_modules/azure-cli-storage/tests/test_storage_blob_scenarios.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-storage/tests/test_storage_blob_scenarios.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-storage/tests/test_storage_blob_scenarios.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 47.673913 | 98 | 0.619851 |
96ee1e1fed4d3684ce5d45ae63f74a644486fff2 | 29,363 | py | Python | fmtrack/post_process.py | elejeune11/FM-Track | ce255388872f4c1f500c89f6aaacba57562d45c2 | [
"MIT"
] | 3 | 2019-11-01T06:37:36.000Z | 2019-11-08T05:13:35.000Z | fmtrack/post_process.py | elejeune11/FM-Track | ce255388872f4c1f500c89f6aaacba57562d45c2 | [
"MIT"
] | 1 | 2019-11-01T06:44:54.000Z | 2019-11-01T15:34:00.000Z | fmtrack/post_process.py | elejeune11/FM-Track | ce255388872f4c1f500c89f6aaacba57562d45c2 | [
"MIT"
] | 2 | 2019-11-01T06:38:44.000Z | 2020-02-07T09:08:23.000Z | import fmtrack
import os
import matplotlib.colors as colors
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import pickle
import pyvista
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import (RBF, Matern, RationalQuadratic,
... | 41.590652 | 172 | 0.691789 |
96eebe16c5c97601b0056f0ec84be091e97855b8 | 1,592 | py | Python | chapter_6/C.py | staguchi0703/ALDS1 | bb3d5865fb0a3f459f7a7331190e146c0e817a33 | [
"MIT"
] | null | null | null | chapter_6/C.py | staguchi0703/ALDS1 | bb3d5865fb0a3f459f7a7331190e146c0e817a33 | [
"MIT"
] | null | null | null | chapter_6/C.py | staguchi0703/ALDS1 | bb3d5865fb0a3f459f7a7331190e146c0e817a33 | [
"MIT"
] | null | null | null | # %%
# VScode
import sys
import os
f=open(r'.\chapter_6\C_input.txt', 'r', encoding="utf-8")
# input
# win10s-jisutf-8
# VScodeinput fileutf8s-jis
sys.stdin=f
#
#
# num = int(input())
# num_list = [int(item) for item in input().split()]
# num_list = [input() for _ in range(3)]
##################################
# %%
... | 21.226667 | 62 | 0.574121 |
96eece2555a7b7330f57153533780f7760ac2702 | 5,001 | py | Python | cloudformation/solution-assistant/src/lambda_function.py | NihalHarish/sagemaker-explaining-credit-decisions | e5965902d8901819a60f8c56517a82ddd17c1f95 | [
"Apache-2.0"
] | 80 | 2020-04-15T09:35:11.000Z | 2022-03-23T01:56:12.000Z | cloudformation/solution-assistant/src/lambda_function.py | IronOnet/sagemaker-explaining-credit-decisions | dbb8ea1a685412033c774c2a79cc1e5794438cf9 | [
"Apache-2.0"
] | 8 | 2020-04-16T16:53:09.000Z | 2022-02-06T17:07:02.000Z | cloudformation/solution-assistant/src/lambda_function.py | IronOnet/sagemaker-explaining-credit-decisions | dbb8ea1a685412033c774c2a79cc1e5794438cf9 | [
"Apache-2.0"
] | 28 | 2020-05-25T09:26:41.000Z | 2022-01-25T22:23:54.000Z | import boto3
from pathlib import Path
import sys
sys.path.append('./site-packages')
from crhelper import CfnResource
import datasets
helper = CfnResource()
| 31.853503 | 78 | 0.634873 |
96ef264174a3778804b0a88b93099995faf0b946 | 1,209 | py | Python | rover/controls-systems/mobility/I2C_Test_Code_Enum.py | CSUFTitanRover/TitanRover2018 | 4926d377322a37ba644d7e852faa305fb8bb9b55 | [
"Apache-2.0"
] | 16 | 2017-09-01T23:33:17.000Z | 2021-01-04T02:41:19.000Z | rover/controls-systems/mobility/I2C_Test_Code_Enum.py | WesleyBaxter/TitanRover2018 | be69fa908ed0cbb1f4fe4708d0394881b3a4b105 | [
"Apache-2.0"
] | 56 | 2017-08-30T01:14:46.000Z | 2021-02-28T22:18:44.000Z | rover/controls-systems/mobility/I2C_Test_Code_Enum.py | WesleyBaxter/TitanRover2018 | be69fa908ed0cbb1f4fe4708d0394881b3a4b105 | [
"Apache-2.0"
] | 15 | 2017-09-14T19:55:55.000Z | 2020-05-03T19:44:39.000Z | import smbus
import time
from enum import Enum
# Sets enumerators and their values
# Initializes bus to smbus
bus = smbus.SMBus(1)
# This is the slave address we setup in the Arduino Program
address = 0x04
while True:
# Stores user input as var
var = input("Enter a valid command {led, servo}: ")
if not ... | 27.477273 | 78 | 0.679901 |
96f175f0b51602c5e97137cd52bc7e95509e5606 | 423 | py | Python | tests/test_matrix.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 8 | 2021-08-08T06:06:39.000Z | 2022-02-04T18:30:38.000Z | tests/test_matrix.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 1 | 2022-01-04T02:01:36.000Z | 2022-01-04T02:01:36.000Z | tests/test_matrix.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 2 | 2021-08-18T12:28:40.000Z | 2022-01-03T23:56:41.000Z | import os
import pytest
from dsplot.errors import InputException
from dsplot.matrix import Matrix
| 23.5 | 69 | 0.669031 |
96f1aad1a0a08c20f4321ab24752eaca035e74c9 | 1,724 | py | Python | odoo-13.0/addons/board/controllers/main.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/board/controllers/main.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/board/controllers/main.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from lxml import etree as ElementTree
from odoo.http import Controller, route, request
| 42.04878 | 109 | 0.533643 |
96f23e2c5a6ab2a675fd38cb4e2d70f563a35f7e | 485 | py | Python | JSONFormatter.py | ejkim1996/Unity-JSON-Manager | 29f98247263f2bb64f6960d4aa42bfc448fda3dd | [
"MIT"
] | 2 | 2019-01-12T09:53:50.000Z | 2021-03-02T02:19:28.000Z | JSONFormatter.py | ejkim1996/Unity-JSON-Manager | 29f98247263f2bb64f6960d4aa42bfc448fda3dd | [
"MIT"
] | null | null | null | JSONFormatter.py | ejkim1996/Unity-JSON-Manager | 29f98247263f2bb64f6960d4aa42bfc448fda3dd | [
"MIT"
] | null | null | null | import json
from tkinter import Tk
from tkinter.filedialog import askopenfilename
# Python script that allows user to select JSON file using TKinter and format it properly.
root = Tk()
filename = askopenfilename()
root.destroy() # Close the window
read = open(filename, 'r')
parsed = json.load(read)
write = open(file... | 23.095238 | 90 | 0.74433 |
96f32ed1cb808038241c0062fb82667d9d2ca2d6 | 188 | py | Python | webs/douban/tasks/__init__.py | billvsme/videoSpider | e19111cc48d0a2a44c5245b0ddc9fad0c7a1824d | [
"MIT"
] | 216 | 2016-02-20T12:46:43.000Z | 2022-02-23T07:07:00.000Z | webs/douban/tasks/__init__.py | billvsme/tvCrawlers | e19111cc48d0a2a44c5245b0ddc9fad0c7a1824d | [
"MIT"
] | 3 | 2016-05-06T05:04:17.000Z | 2021-12-13T19:41:39.000Z | webs/douban/tasks/__init__.py | billvsme/tvCrawlers | e19111cc48d0a2a44c5245b0ddc9fad0c7a1824d | [
"MIT"
] | 99 | 2016-02-20T08:34:00.000Z | 2022-02-10T20:52:01.000Z | from . import get_main_movies_base_data
from . import get_main_movies_full_data
from . import get_celebrities_full_data
from . import down_video_images
from . import down_celebrity_images
| 31.333333 | 39 | 0.867021 |
96f370301695ce2890172ceee68267335e737203 | 397 | py | Python | examples/self_bot.py | LimeProgramming/defectio | ff5bbd2964a66fe44f9f1e192d0574c8db4a7404 | [
"MIT"
] | null | null | null | examples/self_bot.py | LimeProgramming/defectio | ff5bbd2964a66fe44f9f1e192d0574c8db4a7404 | [
"MIT"
] | null | null | null | examples/self_bot.py | LimeProgramming/defectio | ff5bbd2964a66fe44f9f1e192d0574c8db4a7404 | [
"MIT"
] | null | null | null | import defectio
client = defectio.Client()
client.run(
session_token="session_token",
user_id="user_id",
)
| 16.541667 | 48 | 0.680101 |
96f38ecfbeecd1933cbe011b730c71f4c32f4990 | 301 | py | Python | rtl/tests/test_log.py | kelceydamage/raspi-tasks | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | [
"Apache-2.0"
] | 1 | 2019-08-10T00:27:45.000Z | 2019-08-10T00:27:45.000Z | rtl/tests/test_log.py | kelceydamage/raspi-tasks | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | [
"Apache-2.0"
] | null | null | null | rtl/tests/test_log.py | kelceydamage/raspi-tasks | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | [
"Apache-2.0"
] | null | null | null | from rtl.tasks.log import log
from dummy_data import KWARGS, CONTENTS3
| 20.066667 | 42 | 0.465116 |
96f3a23cb8b0a87f238aa02340f2199afdec7644 | 1,970 | py | Python | CollaborativeFiltering/CollaborativeFiltering.py | darwin-b/MachineLearning | 834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3 | [
"MIT"
] | null | null | null | CollaborativeFiltering/CollaborativeFiltering.py | darwin-b/MachineLearning | 834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3 | [
"MIT"
] | null | null | null | CollaborativeFiltering/CollaborativeFiltering.py | darwin-b/MachineLearning | 834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3 | [
"MIT"
] | null | null | null |
import numpy as np
train_ratings_path = "./../Data/netflix/TrainingRatings.txt"
test_ratings_path = "./../Data/netflix/TestingRatings.txt"
map_users={}
map_titles={}
data_matrix = np.empty((28978,1821),dtype=np.float32)
data_matrix[:] = np.nan
with open(train_ratings_path,'r') as reader:
counter_titles=0
c... | 29.402985 | 104 | 0.668528 |
96f41d0268d46bff1736443eb02dd162aabd3a36 | 2,784 | py | Python | sources/lectures.py | JhoLee/ecampus-manager | 9c56678ba06b3b92f539b746d7103798592ad1ac | [
"MIT"
] | 1 | 2021-09-05T06:34:01.000Z | 2021-09-05T06:34:01.000Z | sources/lectures.py | JhoLee/BBang-Shuttle | 9c56678ba06b3b92f539b746d7103798592ad1ac | [
"MIT"
] | null | null | null | sources/lectures.py | JhoLee/BBang-Shuttle | 9c56678ba06b3b92f539b746d7103798592ad1ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/lectures.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.Qt import QMessageBox, QSize, QIcon
from PyQt5.QtWidgets import Q... | 37.12 | 105 | 0.674569 |
96f748a0816f7543ed6484d05af8d17f971b4e2c | 662 | py | Python | my_cv/gesture_recognition/demo.py | strawsyz/straw | db313c78c2e3c0355cd10c70ac25a15bb5632d41 | [
"MIT"
] | 2 | 2020-04-06T09:09:19.000Z | 2020-07-24T03:59:55.000Z | my_cv/gesture_recognition/demo.py | strawsyz/straw | db313c78c2e3c0355cd10c70ac25a15bb5632d41 | [
"MIT"
] | null | null | null | my_cv/gesture_recognition/demo.py | strawsyz/straw | db313c78c2e3c0355cd10c70ac25a15bb5632d41 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
fig, ax = plt.subplots()
text = ax.text(0.5, 0.5, 'event', ha='center', va='center', fontdict={'size': 20})
fig.canvas.mpl_connect('button_press_event', call_back)
fig.canvas.mpl_connect('button_release_event', call_back)
fig.canvas.mpl_connect('motion_notify_event', call_back)
plt.... | 33.1 | 114 | 0.622356 |
96f7b9468167fcacd877c20a27a062a48eb88c3a | 1,828 | py | Python | day16/part1.py | bugra-yilmaz/adventofcode2021 | 136cb1d4fba42af4eea934a73714c93710c8741e | [
"MIT"
] | null | null | null | day16/part1.py | bugra-yilmaz/adventofcode2021 | 136cb1d4fba42af4eea934a73714c93710c8741e | [
"MIT"
] | null | null | null | day16/part1.py | bugra-yilmaz/adventofcode2021 | 136cb1d4fba42af4eea934a73714c93710c8741e | [
"MIT"
] | null | null | null | import os.path
import pytest
INPUT_TXT = os.path.join(os.path.dirname(__file__), 'input.txt')
INPUT_S = '''\
A0016C880162017C3686B18A3D4780
'''
EXPECTED = 31
if __name__ == '__main__':
raise SystemExit(main())
| 20.311111 | 64 | 0.560722 |
96f8088f165a5d53d7971cb2268d0b92f24f5e33 | 1,193 | py | Python | tests/managers/test_equal_managers.py | microprediction/precise | 0aa7c69c3c280926cec03fb6fc0934a6193da440 | [
"MIT"
] | 40 | 2022-01-13T00:40:59.000Z | 2022-03-31T20:33:19.000Z | tests/managers/test_equal_managers.py | microprediction/precise | 0aa7c69c3c280926cec03fb6fc0934a6193da440 | [
"MIT"
] | 14 | 2022-01-08T16:00:12.000Z | 2022-03-16T00:12:04.000Z | tests/managers/test_equal_managers.py | microprediction/precise | 0aa7c69c3c280926cec03fb6fc0934a6193da440 | [
"MIT"
] | 9 | 2022-01-26T21:14:43.000Z | 2022-03-21T17:32:02.000Z | import random
from precise.skaters.managerutil.managertesting import manager_test_run
from precise.skaters.managers.equalmanagers import equal_daily_long_manager, equal_long_manager
from precise.skaters.managers.equalmanagers import equal_weekly_long_manager, equal_weekly_buy_and_hold_long_manager
from precise.skaterto... | 30.589744 | 116 | 0.788768 |
96f81fd3d9d30944b376af400b2a416db01f6a6d | 7,852 | py | Python | model/fcgn/grasp_proposal_target.py | ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch | 9dd24947db318f6e404918d4758f1d824eea3748 | [
"MIT"
] | 26 | 2019-10-31T08:21:46.000Z | 2022-03-11T13:58:43.000Z | model/fcgn/grasp_proposal_target.py | xjtAlgo/Visual-Manipulation-Relationship-Network-Pytorch | da7fffcc6bed062fa1a5dc12b4279f3456825664 | [
"MIT"
] | 12 | 2019-11-07T09:12:50.000Z | 2022-03-12T02:58:18.000Z | model/fcgn/grasp_proposal_target.py | xjtAlgo/Visual-Manipulation-Relationship-Network-Pytorch | da7fffcc6bed062fa1a5dc12b4279f3456825664 | [
"MIT"
] | 11 | 2019-10-30T08:44:47.000Z | 2022-03-11T13:58:48.000Z | # --------------------------------------------------------
# Visual Detection: State-of-the-Art
# Copyright: Hanbo Zhang
# Licensed under The MIT License [see LICENSE for details]
# Written by Hanbo Zhang
# --------------------------------------------------------
import torch
import torch.nn as nn
import torch.nn.func... | 36.691589 | 93 | 0.566989 |
96f856b12bdb1da37c38499de024996b5d7da12b | 411 | py | Python | python-advanced/webscrap/wlog.py | Rokon-Uz-Zaman/thinkdiff_python_django | 5010c5f1dd8a028fb9e5235319bb6bb434831e6c | [
"MIT"
] | 92 | 2018-04-03T20:53:07.000Z | 2022-03-04T05:53:10.000Z | python-language/python-advanced/webscrap/wlog.py | mostafijur-rahman299/thinkdiff | b0e0c01fe38c406f4dfa8cc80b2f0c5654017079 | [
"MIT"
] | 11 | 2018-10-01T15:35:33.000Z | 2021-09-01T04:59:56.000Z | python-language/python-advanced/webscrap/wlog.py | mostafijur-rahman299/thinkdiff | b0e0c01fe38c406f4dfa8cc80b2f0c5654017079 | [
"MIT"
] | 98 | 2018-03-13T08:03:54.000Z | 2022-03-22T08:11:44.000Z | # author: Mahmud Ahsan
# code: https://github.com/mahmudahsan/thinkdiff
# blog: http://thinkdiff.net
# http://pythonbangla.com
# MIT License
# --------------------------
# Reporting Logs in text file
# --------------------------
import logging
| 21.631579 | 62 | 0.63017 |
96fa22ff6672a9418b26fa05a3ae9f12341d9ea4 | 864 | py | Python | geoevents/core/management/commands/r3dumpdata.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 25 | 2015-01-06T15:37:31.000Z | 2020-12-10T19:05:22.000Z | geoevents/core/management/commands/r3dumpdata.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 2 | 2015-01-31T02:36:58.000Z | 2015-02-01T00:11:15.000Z | geoevents/core/management/commands/r3dumpdata.py | mcenirm/geoevents | f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6 | [
"MIT"
] | 5 | 2016-01-01T15:04:49.000Z | 2019-05-30T23:34:30.000Z | # This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)
from django.core.management.base import BaseCommand, CommandError
from django.core.management import call_command... | 41.142857 | 104 | 0.699074 |
96fac71ba63e9e0125078ad8dc31d6b80c225f02 | 1,343 | py | Python | src/MostrarGrafica.py | VictorVaquero/sentimentAnalysis | 947d3621db14fa28e05f328e80f1c98f6aa685ae | [
"MIT"
] | null | null | null | src/MostrarGrafica.py | VictorVaquero/sentimentAnalysis | 947d3621db14fa28e05f328e80f1c98f6aa685ae | [
"MIT"
] | null | null | null | src/MostrarGrafica.py | VictorVaquero/sentimentAnalysis | 947d3621db14fa28e05f328e80f1c98f6aa685ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[28]:
import matplotlib.pyplot as plt
import numpy as np
import csv
# In[32]:
listaHigh = []
listaLow = []
listaClose = []
contador = 0
lineas = len(open('GOOGLPrediccion.csv').readlines())
c = input()
if(int(c)!=0):
c = int(c)
else:
c = lineas
cantidad = linea... | 23.155172 | 74 | 0.658972 |
96fb71abe1597b3445be3baa69638e7080246d4f | 207 | py | Python | src/Blog/settings/production.py | sadmanbd/wagtailblog | adeccb29826200cb1bedc658a0f1c57c2f705d0e | [
"MIT"
] | 1 | 2020-04-20T05:38:01.000Z | 2020-04-20T05:38:01.000Z | src/Blog/settings/production.py | sadmanbd/wagtailblog | adeccb29826200cb1bedc658a0f1c57c2f705d0e | [
"MIT"
] | 8 | 2020-02-11T21:41:52.000Z | 2022-01-13T00:33:02.000Z | src/Blog/settings/production.py | sadmanbd/wagtailblog | adeccb29826200cb1bedc658a0f1c57c2f705d0e | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import os
from .base import *
DEBUG = False
SECRET_KEY = os.environ.get("SECRET_KEY")
try:
from .local import *
except ImportError:
pass
| 13.8 | 56 | 0.743961 |
96fbefce1bae3ccaee2952d5e7652edcc5609ce7 | 65,374 | py | Python | lookml/lookml.py | pythonruss/pylookml | 879c4c6325138295b4ce59c8663aa62da42837dc | [
"MIT"
] | null | null | null | lookml/lookml.py | pythonruss/pylookml | 879c4c6325138295b4ce59c8663aa62da42837dc | [
"MIT"
] | null | null | null | lookml/lookml.py | pythonruss/pylookml | 879c4c6325138295b4ce59c8663aa62da42837dc | [
"MIT"
] | null | null | null | import re, os, shutil
import lookml.config as conf
import lkml
import time, copy
from string import Template
from lookml.modules.project import *
import lkml, github
def tidy(string):
'''
cleans a string to remove multiple linebreaks and spaces (trims excess whitespace)
:return: returns input string, with... | 35.318206 | 233 | 0.574647 |
96fc72968950824d61acc3ae7701e624cdb6308f | 1,933 | py | Python | chapter03/python/situation.py | coco-in-bluemoon/building-recommendation-engines | b337b2ba75b6c9b08612ab1720a2858e64e9de09 | [
"MIT"
] | null | null | null | chapter03/python/situation.py | coco-in-bluemoon/building-recommendation-engines | b337b2ba75b6c9b08612ab1720a2858e64e9de09 | [
"MIT"
] | null | null | null | chapter03/python/situation.py | coco-in-bluemoon/building-recommendation-engines | b337b2ba75b6c9b08612ab1720a2858e64e9de09 | [
"MIT"
] | null | null | null | from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
import pandas as pd
# 1. Load Data and Item Profile
ratings = pd.read_csv('chapter03/data/movie_rating.csv')
movie_ratings = pd.pivot_table(
ratings,
values='rating',
index='title',
columns='critic'
)
print(movie_ratings)
# 2.... | 24.782051 | 74 | 0.649767 |
96fd1f2b486144df968599ce7e69efe106bab45c | 1,025 | py | Python | tic_tac_toe/TD_lambda_run.py | Luca-Dambra/TD_lambda_board_games | 31febd4987fe882c559bfb40b2bd9aef3326dd3f | [
"MIT"
] | null | null | null | tic_tac_toe/TD_lambda_run.py | Luca-Dambra/TD_lambda_board_games | 31febd4987fe882c559bfb40b2bd9aef3326dd3f | [
"MIT"
] | null | null | null | tic_tac_toe/TD_lambda_run.py | Luca-Dambra/TD_lambda_board_games | 31febd4987fe882c559bfb40b2bd9aef3326dd3f | [
"MIT"
] | null | null | null | import functools
import numpy as np
import pandas as pd
from NN_base import load_network, save_network, create_network
from tic_tac_toe import TicTacToeGameSpec, play_game
from TD_lambda import TD_train
NETWORK_FILE_PATH = None
NUMBER_OF_GAMES_TO_RUN = 500
NUMBER_OF_TEST = 200
NUMBER_OF_ROUNDS = 100
EPSILON = 0.1
TA... | 27.702703 | 130 | 0.712195 |
96fd8456b0b3a88b436bed5097c56c54ff0c3e18 | 7,808 | py | Python | FinalProject_SANet/demo/net.py | lev1khachatryan/ASDS_CV | c9f0c0412002e929bcb7cc2fc6e5392977a9fa76 | [
"MIT"
] | 5 | 2019-12-13T16:26:10.000Z | 2020-01-10T07:44:05.000Z | FinalProject_SANet/PyTorch/net.py | lev1khachatryan/ASDS_CV | c9f0c0412002e929bcb7cc2fc6e5392977a9fa76 | [
"MIT"
] | 1 | 2020-01-07T16:48:21.000Z | 2020-03-18T18:43:37.000Z | FinalProject_SANet/demo/net.py | lev1khachatryan/ASDS_CV | c9f0c0412002e929bcb7cc2fc6e5392977a9fa76 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch
from function import normal
from function import calc_mean_std
decoder = nn.Sequential(
nn.ReflectionPad2d((1, 1, 1, 1)),
nn.Conv2d(512, 256, (3, 3)),
nn.ReLU(),
nn.Upsample(scale_factor=2, mode='nearest'),
nn.ReflectionPad2d((1, 1, 1, 1)),
nn.Conv2d(256, 256,... | 38.653465 | 162 | 0.597848 |
96ff65371ea5fac719ab021f858179bf05875269 | 607 | py | Python | blaze/expr/scalar/interface.py | chdoig/blaze | caa5a497e1ca1ceb1cf585483312ff4cd74d0bda | [
"BSD-3-Clause"
] | 1 | 2015-01-18T23:59:57.000Z | 2015-01-18T23:59:57.000Z | blaze/expr/scalar/interface.py | chdoig/blaze | caa5a497e1ca1ceb1cf585483312ff4cd74d0bda | [
"BSD-3-Clause"
] | null | null | null | blaze/expr/scalar/interface.py | chdoig/blaze | caa5a497e1ca1ceb1cf585483312ff4cd74d0bda | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
from ..core import Expr
from datashape import dshape
from .boolean import BooleanInterface
from .numbers import NumberInterface
__hash__ = Expr.__hash__
| 21.678571 | 64 | 0.693575 |
96ff89e422270b31c5889bf32192c54fcd3d3495 | 817 | py | Python | 2019/08-kosen/rev-favorites/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 25 | 2019-03-06T11:55:56.000Z | 2021-05-21T22:07:14.000Z | 2019/08-kosen/rev-favorites/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 1 | 2020-06-25T07:27:15.000Z | 2020-06-25T07:27:15.000Z | 2019/08-kosen/rev-favorites/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 1 | 2019-02-14T00:42:28.000Z | 2019-02-14T00:42:28.000Z |
if __name__ == "__main__":
main()
| 29.178571 | 120 | 0.440636 |
96ff8d29cb8034da8d295fc63e68e0bc696f15c1 | 1,095 | py | Python | WidgetsUnlimited/model/customer_address.py | AlanHorowitz/open-ended-capstone | 80590af5b09c2245f124cec20ed7594d62cff30e | [
"MIT"
] | null | null | null | WidgetsUnlimited/model/customer_address.py | AlanHorowitz/open-ended-capstone | 80590af5b09c2245f124cec20ed7594d62cff30e | [
"MIT"
] | null | null | null | WidgetsUnlimited/model/customer_address.py | AlanHorowitz/open-ended-capstone | 80590af5b09c2245f124cec20ed7594d62cff30e | [
"MIT"
] | null | null | null | from psycopg2.extensions import TRANSACTION_STATUS_IDLE
from .metadata import Table, Column
from .customer import CustomerTable
| 34.21875 | 87 | 0.581735 |
8c005a68252d143c8872adac4f5fee4210c1275d | 1,439 | py | Python | src/data/spark/domain_length_sql.py | sheikhomar/mako | 3bf0e183e63bd86c2df4eb90486726ca4194bd9b | [
"MIT"
] | null | null | null | src/data/spark/domain_length_sql.py | sheikhomar/mako | 3bf0e183e63bd86c2df4eb90486726ca4194bd9b | [
"MIT"
] | null | null | null | src/data/spark/domain_length_sql.py | sheikhomar/mako | 3bf0e183e63bd86c2df4eb90486726ca4194bd9b | [
"MIT"
] | null | null | null |
# Command to run this script on the CTIT cluster:
# $ spark-submit --master yarn --deploy-mode cluster --packages com.databricks:spark-csv_2.10:1.5.0 src/data/spark/domain_length_sql.py
from pyspark import SparkContext
from pyspark.sql import SQLContext
from pyspark.sql.functions import udf
from pyspark.sql.types im... | 35.975 | 135 | 0.721334 |
8c00e685aea15a92f852072e47de4dda8adf42a0 | 3,305 | py | Python | api/programs/result.py | ca2315/PlasmoCount | b3c776ead5f436fa6e3ed0aca7d8f1683f5f4e49 | [
"BSD-3-Clause"
] | null | null | null | api/programs/result.py | ca2315/PlasmoCount | b3c776ead5f436fa6e3ed0aca7d8f1683f5f4e49 | [
"BSD-3-Clause"
] | null | null | null | api/programs/result.py | ca2315/PlasmoCount | b3c776ead5f436fa6e3ed0aca7d8f1683f5f4e49 | [
"BSD-3-Clause"
] | null | null | null | from programs.viz import plot_labels, make_crop
import pandas as pd
from pathlib import Path
import time
| 34.789474 | 79 | 0.540393 |
8c00e8ea0f7d20261110718e7a74f0319ddcdebd | 1,107 | py | Python | tpp_twitter/twitter.py | SuperSonicHub1/twitter_plays_pyboy | 2818245fac2faeb10fca593bdbc13d211ab7e807 | [
"Unlicense"
] | null | null | null | tpp_twitter/twitter.py | SuperSonicHub1/twitter_plays_pyboy | 2818245fac2faeb10fca593bdbc13d211ab7e807 | [
"Unlicense"
] | null | null | null | tpp_twitter/twitter.py | SuperSonicHub1/twitter_plays_pyboy | 2818245fac2faeb10fca593bdbc13d211ab7e807 | [
"Unlicense"
] | null | null | null | from dotenv import load_dotenv
import tweepy
from os import getenv
from typing import BinaryIO
BASE_BIO = "Inspired by @screenshakes. Powered by PyBoy: http://github.com/Baekalfen/PyBoy\n"
load_dotenv()
auth = tweepy.OAuthHandler(getenv('TWITTER_KEY'), getenv('TWITTER_SECRET'))
auth.set_access_token(getenv('TWITTER_... | 41 | 117 | 0.754291 |
8c0125ee7bfc57b4ed925dd722dd6fef3d05f11f | 1,805 | py | Python | ListNode.py | xinming365/LeetCode | e56097a60ddd1b5ddba7f15a726661c2aa6633e7 | [
"Apache-2.0"
] | null | null | null | ListNode.py | xinming365/LeetCode | e56097a60ddd1b5ddba7f15a726661c2aa6633e7 | [
"Apache-2.0"
] | null | null | null | ListNode.py | xinming365/LeetCode | e56097a60ddd1b5ddba7f15a726661c2aa6633e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2022/2/2 10:08
# @Author : xinming
# @File : ListNode.py
| 23.75 | 58 | 0.547368 |
8c0191528bb4a7ba7c5f50c6c5ad4f4b78812839 | 8,295 | py | Python | samples/waitforupdates.py | ArpitSharma2800/pyvmomi-community-samples | 68a0ef912cbb48f2fa498c14fbeb1bcda2ede9d8 | [
"Apache-2.0"
] | 931 | 2015-01-13T09:18:06.000Z | 2022-03-29T00:08:40.000Z | samples/waitforupdates.py | ArpitSharma2800/pyvmomi-community-samples | 68a0ef912cbb48f2fa498c14fbeb1bcda2ede9d8 | [
"Apache-2.0"
] | 494 | 2015-01-01T02:42:04.000Z | 2022-03-10T10:00:44.000Z | samples/waitforupdates.py | ArpitSharma2800/pyvmomi-community-samples | 68a0ef912cbb48f2fa498c14fbeb1bcda2ede9d8 | [
"Apache-2.0"
] | 976 | 2015-01-04T19:50:37.000Z | 2022-03-18T15:14:04.000Z | #!/usr/bin/env python
#
# VMware vSphere Python SDK
# Copyright (c) 2008-2021 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/l... | 33.857143 | 91 | 0.599879 |
8c021ebbd6408b7ecf94c20aa0fa0bab32c3828d | 1,159 | py | Python | src/tests/cli/hypergol_create_test_case.py | hypergol/hypergol | 0beee71c8f72d517ef376030baff9c840a2f7eeb | [
"MIT"
] | 49 | 2020-07-09T10:22:25.000Z | 2022-02-21T16:55:34.000Z | src/tests/cli/hypergol_create_test_case.py | hypergol/hypergol | 0beee71c8f72d517ef376030baff9c840a2f7eeb | [
"MIT"
] | 16 | 2020-08-18T17:06:05.000Z | 2022-02-19T16:30:04.000Z | src/tests/cli/hypergol_create_test_case.py | hypergol/hypergol | 0beee71c8f72d517ef376030baff9c840a2f7eeb | [
"MIT"
] | 3 | 2020-07-16T08:42:09.000Z | 2021-03-06T15:09:13.000Z | import os
import glob
from pathlib import Path
from unittest import TestCase
from hypergol.name_string import NameString
| 27.595238 | 78 | 0.633305 |
8c05b81bf47ea60ca797bd79f44d7a048d6eca52 | 223 | py | Python | examples/load_from_file/main.py | viniciuschiele/configd | f9b405cd2254f79152a13e57e2be907550ef83ed | [
"MIT"
] | 3 | 2017-03-17T15:44:26.000Z | 2021-08-31T02:45:52.000Z | examples/load_from_file/main.py | viniciuschiele/configd | f9b405cd2254f79152a13e57e2be907550ef83ed | [
"MIT"
] | 1 | 2017-07-28T23:20:15.000Z | 2017-07-29T11:13:49.000Z | examples/load_from_file/main.py | viniciuschiele/configd | f9b405cd2254f79152a13e57e2be907550ef83ed | [
"MIT"
] | 2 | 2021-06-26T20:57:24.000Z | 2021-11-21T19:29:39.000Z | from central.config.file import FileConfig
config = FileConfig('config.json')
config.load()
print(config.get('timeout'))
print(config.get('database'))
print(config.get('database.host'))
print(config.get('database.port'))
| 22.3 | 42 | 0.753363 |
8c08b48a4d80e079c5239a8398068125f720f5ce | 2,637 | py | Python | fbapp/views.py | shashank-sharma/facebook-comments | bed74d488cfbada00445d840027de89e5f005c84 | [
"MIT"
] | null | null | null | fbapp/views.py | shashank-sharma/facebook-comments | bed74d488cfbada00445d840027de89e5f005c84 | [
"MIT"
] | 3 | 2017-08-14T11:21:14.000Z | 2017-08-26T12:57:33.000Z | fbapp/views.py | shashank-sharma/facebook-comments | bed74d488cfbada00445d840027de89e5f005c84 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from getpage import *
from fbapp.models import Search, Clap
from django.http import Http404, HttpResponse
import json
# Create your views here.
| 27.185567 | 68 | 0.630641 |
8c08c4a6650e9ba67c915b77a4490106eafe823c | 1,017 | py | Python | Text_B_ocr_crnn_model_file/crnn/network_dnn.py | HAIbingshuai/chinese_ocr | 36c06226b3762b2e516427579f2c2614770e60ae | [
"MIT"
] | 21 | 2019-11-16T15:12:17.000Z | 2022-02-24T03:08:44.000Z | Text_B_ocr_crnn_model_file/crnn/network_dnn.py | HAIbingshuai/chinese_ocr | 36c06226b3762b2e516427579f2c2614770e60ae | [
"MIT"
] | 1 | 2019-12-03T00:41:09.000Z | 2020-10-16T13:46:11.000Z | Text_B_ocr_crnn_model_file/crnn/network_dnn.py | HAIbingshuai/chinese_ocr | 36c06226b3762b2e516427579f2c2614770e60ae | [
"MIT"
] | 3 | 2019-12-10T02:43:20.000Z | 2021-05-12T07:31:41.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import cv2
from Text_B_ocr_crnn_model_file.crnn.util import resizeNormalize, strLabelConverter
| 29.057143 | 83 | 0.613569 |
8c094ff4339e6253f78275942a72ff3cc8c9f8a5 | 1,724 | py | Python | venta/admin.py | darkdrei/Inventario | dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c | [
"MIT"
] | null | null | null | venta/admin.py | darkdrei/Inventario | dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c | [
"MIT"
] | null | null | null | venta/admin.py | darkdrei/Inventario | dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
import models
import forms
from inventario import models as inventario
# Register your models here.
# end class
#end class
#end class
admin.site.register(models.Factura, FacturaAdmin)
admin.site.register(models.Detalle,... | 32.528302 | 97 | 0.654872 |
8c09cfaddc4d9d32bda49a28af781c40e36a6a23 | 83 | py | Python | Recipes/rcps/apps.py | ADKosm/Recipes | 39b81091d8c5b91eeabdb99412c437a62ca5e1aa | [
"MIT"
] | null | null | null | Recipes/rcps/apps.py | ADKosm/Recipes | 39b81091d8c5b91eeabdb99412c437a62ca5e1aa | [
"MIT"
] | 1 | 2016-12-17T07:08:16.000Z | 2016-12-17T07:08:16.000Z | Recipes/rcps/apps.py | ADKosm/Recipes | 39b81091d8c5b91eeabdb99412c437a62ca5e1aa | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 13.833333 | 33 | 0.73494 |
8c0a58b707f6e1b5cb769898d9e99e268749f4f1 | 1,324 | py | Python | tests/test_dotdict.py | datakortet/dkbuild-apacheconf | 740bed45a33631144c967af5e5fc4288b33d537d | [
"Apache-2.0"
] | null | null | null | tests/test_dotdict.py | datakortet/dkbuild-apacheconf | 740bed45a33631144c967af5e5fc4288b33d537d | [
"Apache-2.0"
] | 1 | 2020-05-06T13:51:24.000Z | 2020-05-10T10:46:46.000Z | tests/test_dotdict.py | datakortet/dkbuild-apacheconf | 740bed45a33631144c967af5e5fc4288b33d537d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import textwrap
import pytest
from dkbuild_apacheconf.dotdict import dotdict
| 18.136986 | 46 | 0.508308 |
8c0a62c8b3bc8944696a2c3153f41db04a0511f7 | 1,056 | py | Python | EM_GUI/parser5(void).py | AmirKavousi/EMspice | 6799981783afa410b39f5227e7c435d106c61e6c | [
"BSD-3-Clause"
] | 2 | 2020-07-15T21:20:32.000Z | 2021-11-24T08:26:19.000Z | EM_GUI/parser5(void).py | AmirKavousi/EMspice | 6799981783afa410b39f5227e7c435d106c61e6c | [
"BSD-3-Clause"
] | 1 | 2020-11-30T06:33:23.000Z | 2020-11-30T06:33:23.000Z | EM_GUI/parser5(void).py | AmirKavousi/EMspice | 6799981783afa410b39f5227e7c435d106c61e6c | [
"BSD-3-Clause"
] | 3 | 2020-07-03T19:49:36.000Z | 2021-04-07T20:32:16.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
file1=open('data/u_Lvoid_20.txt',encoding='utf-8')
file2=open('temp2/void.txt','w',encoding='utf-8')
count=0
for line in file1:
count=count+1
if(line[0]=='R'):# 'line' here is a string
line_list=line.split( ) # 'line_list' is a list of small strings=['R4... | 34.064516 | 133 | 0.578598 |
8c0deaf91737a4e2d3e5ee024b0d61a03cfcd0d1 | 5,230 | py | Python | ebi_eva_common_pyutils/variation/contig_utils.py | itsroops/eva-common-pyutils | 4226e3800a95e8a50ff2735792382fe1a6ca4efc | [
"Apache-2.0"
] | null | null | null | ebi_eva_common_pyutils/variation/contig_utils.py | itsroops/eva-common-pyutils | 4226e3800a95e8a50ff2735792382fe1a6ca4efc | [
"Apache-2.0"
] | 4 | 2020-09-11T12:02:49.000Z | 2021-06-23T14:44:36.000Z | ebi_eva_common_pyutils/variation/contig_utils.py | itsroops/eva-common-pyutils | 4226e3800a95e8a50ff2735792382fe1a6ca4efc | [
"Apache-2.0"
] | 6 | 2020-07-18T21:06:10.000Z | 2022-01-11T08:00:26.000Z | # Copyright 2020 EMBL - European Bioinformatics Institute
#
# 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... | 45.877193 | 115 | 0.68413 |
8c0e97f1acefec6e12b9b45266f9d330feb11b47 | 355 | py | Python | pswalker/sim/sim.py | ZLLentz/pswalker | 9642489e6add37906998f09cc88290bc95686ac9 | [
"BSD-3-Clause-LBNL"
] | null | null | null | pswalker/sim/sim.py | ZLLentz/pswalker | 9642489e6add37906998f09cc88290bc95686ac9 | [
"BSD-3-Clause-LBNL"
] | 8 | 2018-04-20T21:26:02.000Z | 2021-01-11T19:31:08.000Z | pswalker/sim/sim.py | ZLLentz/pswalker | 9642489e6add37906998f09cc88290bc95686ac9 | [
"BSD-3-Clause-LBNL"
] | 2 | 2018-06-26T00:09:27.000Z | 2018-11-29T19:40:04.000Z | """
Simulated device classes
"""
from ophyd.device import Device, Component
from .signal import FakeSignal
| 22.1875 | 74 | 0.712676 |
8c11280fc4fa1a1f5cf0b54ef39c72d2dd65d7b4 | 7,824 | py | Python | clearKeys.py | kylephan/Utilities | 21b025a1cf71b4ced95243cc0cf1a8be4d316f5e | [
"MIT"
] | null | null | null | clearKeys.py | kylephan/Utilities | 21b025a1cf71b4ced95243cc0cf1a8be4d316f5e | [
"MIT"
] | null | null | null | clearKeys.py | kylephan/Utilities | 21b025a1cf71b4ced95243cc0cf1a8be4d316f5e | [
"MIT"
] | null | null | null | import maya.cmds as mc
windowID = 'deleteKeys'
if mc.window( windowID, exists = True):
mc.deleteUI(windowID)
mc.window( windowID, title = 'Delete Key' )
mc.rowColumnLayout(numberOfColumns=3)
opt = mc.optionMenu( changeCommand = changeAttr)
mc.menuItem(label = 'Choose a... | 32.330579 | 107 | 0.484279 |
8c12046b606eeaab0b8c35a25777e9fe98b1e5b5 | 1,067 | py | Python | server.py | boyuhou/security-data | 31bd1f0e9577d46124512102c4c4bf995cf36f95 | [
"Apache-2.0"
] | null | null | null | server.py | boyuhou/security-data | 31bd1f0e9577d46124512102c4c4bf995cf36f95 | [
"Apache-2.0"
] | 3 | 2017-11-30T01:22:12.000Z | 2017-12-02T22:47:39.000Z | server.py | boyuhou/security-data | 31bd1f0e9577d46124512102c4c4bf995cf36f95 | [
"Apache-2.0"
] | null | null | null | import click
import logging
import datetime
import pandas as pd
from security_data import SecurityService
DATE_FORMAT = '%Y%m%d'
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', level=logging.DEBUG, datefmt='%Y-%m-%d %I:%M:%S')
logger = logging.getLogger(__name__)
if __name__ == '__main__':
... | 34.419355 | 117 | 0.738519 |
8c1228dad2ddec0f512667f55e56e57c66f03a49 | 3,731 | py | Python | chemlib.py | nano-bio/fitlib | 299703dbc9ecafa528b965ccac538173801923b2 | [
"BSD-3-Clause"
] | null | null | null | chemlib.py | nano-bio/fitlib | 299703dbc9ecafa528b965ccac538173801923b2 | [
"BSD-3-Clause"
] | null | null | null | chemlib.py | nano-bio/fitlib | 299703dbc9ecafa528b965ccac538173801923b2 | [
"BSD-3-Clause"
] | null | null | null | from suds.client import Client
import suds
import time
import helplib as hl
#be aware that you need a chemspider_token.txt in the directory for the app to work
#the chemspider_token.txt should only contain the token (available online for free)
| 33.918182 | 115 | 0.582418 |
8c12a700a732ea2822524f81a70b50cd9e629e1d | 4,115 | py | Python | src/lib/hxPy/py/hxpy/hxpy/hxpy.py | jamesdgessel/hxpy_adjustments | 25010dd023bdc36cc08e1afc08ac16159aba5646 | [
"AFL-3.0"
] | 35 | 2021-05-04T18:50:16.000Z | 2022-02-27T05:15:35.000Z | src/lib/hxPy/py/hxpy/hxpy/hxpy.py | jamesdgessel/hxpy_adjustments | 25010dd023bdc36cc08e1afc08ac16159aba5646 | [
"AFL-3.0"
] | 7 | 2021-07-12T08:06:14.000Z | 2022-03-19T08:46:08.000Z | src/lib/hxPy/py/hxpy/hxpy/hxpy.py | jamesdgessel/hxpy_adjustments | 25010dd023bdc36cc08e1afc08ac16159aba5646 | [
"AFL-3.0"
] | 4 | 2021-05-11T18:53:16.000Z | 2022-03-17T04:15:48.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2021, SkyFoundry LLC
# Licensed under the Academic Free License version 3.0
#
# History:
# 23 Jul 2021 Matthew Giannini Creation
#
import socket
import struct
import traceback
from . import brio
from .haystack import Marker
from .haystack import GridBuilder
# HxPy
| 30.481481 | 121 | 0.509356 |
8c139b694a21d0428d056ef4776c840e99b1f37e | 10,727 | py | Python | util/legacypgsql.py | twonds/palaver | fcaa1884bc206e0aba7c88d9614e38b492c59285 | [
"MIT"
] | 4 | 2015-01-20T17:25:12.000Z | 2020-02-12T08:24:05.000Z | util/legacypgsql.py | twonds/palaver | fcaa1884bc206e0aba7c88d9614e38b492c59285 | [
"MIT"
] | 1 | 2016-01-27T16:13:18.000Z | 2016-01-27T19:11:21.000Z | util/legacypgsql.py | twonds/palaver | fcaa1884bc206e0aba7c88d9614e38b492c59285 | [
"MIT"
] | null | null | null | # Copyright (c) 2007 Christopher Zorn, OGG, LLC
# See LICENSE.txt for details
# Converts the legacy muc spool to the new dirDBM one
import sys
from twisted.words.xish import domish, xpath
from twisted.words.protocols.jabber import jid
from twisted.enterprise import adbapi
from palaver import palaver, pgsql_storage
f... | 34.38141 | 108 | 0.43535 |
8c1485cf8e092dcb4f7018714e075d4893a7a7a6 | 11,425 | py | Python | gems/simple_args.py | Beatnukem/python-gems | fa9f2c66d969e8ca7d9913c772d0c4ea3e45f930 | [
"MIT"
] | null | null | null | gems/simple_args.py | Beatnukem/python-gems | fa9f2c66d969e8ca7d9913c772d0c4ea3e45f930 | [
"MIT"
] | null | null | null | gems/simple_args.py | Beatnukem/python-gems | fa9f2c66d969e8ca7d9913c772d0c4ea3e45f930 | [
"MIT"
] | null | null | null | # Copyright (c) 2018 Paul Reindell
#
# 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, dist... | 39.261168 | 183 | 0.482451 |
8c148fde88203756452378cb9e839f75242a5e32 | 16,209 | py | Python | teetool/visual_2d.py | sfo/teetool | 24fa8691449b733f9d07d9a8f96bd40b0e50c2a5 | [
"MIT"
] | 9 | 2017-04-26T13:08:07.000Z | 2021-01-29T08:52:15.000Z | teetool/visual_2d.py | sfo/teetool | 24fa8691449b733f9d07d9a8f96bd40b0e50c2a5 | [
"MIT"
] | 1 | 2017-04-12T22:31:41.000Z | 2017-04-14T16:05:30.000Z | teetool/visual_2d.py | sfo/teetool | 24fa8691449b733f9d07d9a8f96bd40b0e50c2a5 | [
"MIT"
] | 7 | 2016-10-25T13:48:52.000Z | 2022-02-27T06:38:40.000Z | ## @package teetool
# This module contains the Visual_2d class
#
# See Visual_2d class for more details
import numpy as np
from scipy.interpolate import griddata
import matplotlib.pyplot as plt
import teetool as tt
## Visual_2d class generates the 2d output using Matplotlib
#
# Even 3-dimensional trajectories can... | 36.02 | 161 | 0.516256 |
8c16f8302199537857c9b354ec984440477f9e4f | 1,417 | py | Python | endsem/component_1/initial_parameters_estimator.py | maher460/cmu10601 | 108811a648aa5128a1e44e269a1e6e8802e3f100 | [
"MIT"
] | 1 | 2019-04-17T14:05:35.000Z | 2019-04-17T14:05:35.000Z | endsem/component_1/initial_parameters_estimator.py | maher460/cmu10601 | 108811a648aa5128a1e44e269a1e6e8802e3f100 | [
"MIT"
] | null | null | null | endsem/component_1/initial_parameters_estimator.py | maher460/cmu10601 | 108811a648aa5128a1e44e269a1e6e8802e3f100 | [
"MIT"
] | null | null | null | import kmeans
import json
import numpy as np
NUM_GAUSSIANS = 32
DO_KMEANS = False
DEBUG = True
mixture_weights = [1.0/NUM_GAUSSIANS] * NUM_GAUSSIANS
if DEBUG:
print ("mixture_weights: ", mixture_weights)
print("Loading parsed data...")
traindata_processed_file = open("parsed_data/data1.universalenrollparsed", "... | 27.784314 | 80 | 0.694425 |
8c17fa8708bb9e41eb65c6fabc304aa1f4620e52 | 492 | py | Python | backend/server/apps/endpoints/tests.py | BetikuOluwatobi/tweets_sentiment-analysis | b6a86ebbd281c1e4550211c6ff2788006728af8f | [
"MIT"
] | 1 | 2021-09-23T20:20:27.000Z | 2021-09-23T20:20:27.000Z | backend/server/apps/endpoints/tests.py | BetikuOluwatobi/tweets_sentiment-analysis | b6a86ebbd281c1e4550211c6ff2788006728af8f | [
"MIT"
] | null | null | null | backend/server/apps/endpoints/tests.py | BetikuOluwatobi/tweets_sentiment-analysis | b6a86ebbd281c1e4550211c6ff2788006728af8f | [
"MIT"
] | null | null | null | from django.test import TestCase
from .algorithm import Logistic_Regression
# Create your tests here.
| 28.941176 | 42 | 0.719512 |
8c1b1007e7ce83e67bed0e618b9207e4eb8ea15f | 9,369 | py | Python | githubly.py | kumaranvpl/githubly | 0261af92f375ad06105e2969c5e62a0db6d4b095 | [
"MIT"
] | null | null | null | githubly.py | kumaranvpl/githubly | 0261af92f375ad06105e2969c5e62a0db6d4b095 | [
"MIT"
] | 4 | 2016-10-24T18:40:54.000Z | 2016-10-25T02:34:44.000Z | githubly.py | kumaranvpl/githubly | 0261af92f375ad06105e2969c5e62a0db6d4b095 | [
"MIT"
] | null | null | null | import csv
import getpass
import json
import requests
import sys
from requests.auth import HTTPBasicAuth
if __name__ == "__main__":
print "Githublyyyyyyyyyyyyyyyyyyyyy"
print "Please enter your github username, password below. This is needed to avoid github's rate limitation. "
print "Don't worry I am ... | 41.455752 | 132 | 0.582026 |
8c1b30fbf9e603403e818a12412369bae43a8ccb | 5,562 | py | Python | heat/engine/resources/neutron/floatingip.py | NeCTAR-RC/heat | b152817f192a7b46514793633ddc968c1fe1ebf8 | [
"Apache-2.0"
] | 1 | 2015-02-26T03:23:23.000Z | 2015-02-26T03:23:23.000Z | heat/engine/resources/neutron/floatingip.py | NeCTAR-RC/heat | b152817f192a7b46514793633ddc968c1fe1ebf8 | [
"Apache-2.0"
] | null | null | null | heat/engine/resources/neutron/floatingip.py | NeCTAR-RC/heat | b152817f192a7b46514793633ddc968c1fe1ebf8 | [
"Apache-2.0"
] | null | null | null |
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | 36.116883 | 79 | 0.627292 |
8c1b7857206e2478990b4e2756556816497cca42 | 1,537 | py | Python | netgpibdata/netgpibcmd.py | daccordeon/summerSHG | 4e9254b408bb04ddd7b4b5ae1c8db0d23c72f88f | [
"BSD-3-Clause"
] | 1 | 2020-12-06T23:40:21.000Z | 2020-12-06T23:40:21.000Z | netgpibdata/netgpibcmd.py | daccordeon/summerSHG | 4e9254b408bb04ddd7b4b5ae1c8db0d23c72f88f | [
"BSD-3-Clause"
] | null | null | null | netgpibdata/netgpibcmd.py | daccordeon/summerSHG | 4e9254b408bb04ddd7b4b5ae1c8db0d23c72f88f | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
import sys
import optparse
import netgpib
# Usage text
usage = """usage: %prog [options] CMD
Issue a command or query from a network-connected GPIB device.
example:
%prog -i 192.168.113.105 -d AG4395A -a 10 'POIN?'"""
# Parse options
parser = optparse.OptionParser(usage=usage)
parser.add_opt... | 26.964912 | 65 | 0.56864 |
8c1bd682f752834d77fb93966c012c2997c2b56d | 784 | py | Python | microcosm_postgres/tests/test_toposort.py | globality-corp/microcosm-postgres | 5530a0cb3e022dfb6a93808e3397bf8beaa45b66 | [
"Apache-2.0"
] | 2 | 2018-08-17T14:52:41.000Z | 2018-09-20T01:39:21.000Z | microcosm_postgres/tests/test_toposort.py | globality-corp/microcosm-postgres | 5530a0cb3e022dfb6a93808e3397bf8beaa45b66 | [
"Apache-2.0"
] | 37 | 2016-03-08T05:34:28.000Z | 2021-04-21T03:20:18.000Z | microcosm_postgres/tests/test_toposort.py | globality-corp/microcosm-postgres | 5530a0cb3e022dfb6a93808e3397bf8beaa45b66 | [
"Apache-2.0"
] | 6 | 2016-11-16T07:30:35.000Z | 2019-06-24T19:27:33.000Z | """
Test topological sort.
"""
from hamcrest import assert_that, contains
from microcosm_postgres.dag import Edge
from microcosm_postgres.toposort import toposorted
| 20.102564 | 50 | 0.540816 |
8c1dba83b34a1c4ed784910f891d161f756f6131 | 905 | py | Python | examples/accessing_variables.py | Rory-Sullivan/yrlocationforecast | 26b66834cac4569704daf0009a9d2bba39dbfb75 | [
"MIT"
] | 13 | 2020-07-28T17:47:42.000Z | 2022-03-30T13:35:12.000Z | examples/accessing_variables.py | Rory-Sullivan/yrlocationforecast | 26b66834cac4569704daf0009a9d2bba39dbfb75 | [
"MIT"
] | 5 | 2020-10-14T11:10:13.000Z | 2022-01-01T17:35:19.000Z | examples/accessing_variables.py | Rory-Sullivan/yrlocationforecast | 26b66834cac4569704daf0009a9d2bba39dbfb75 | [
"MIT"
] | 6 | 2020-10-16T12:30:07.000Z | 2022-02-18T07:13:21.000Z | """An example of accessing individual forecast variables."""
from metno_locationforecast import Place, Forecast
USER_AGENT = "metno_locationforecast/1.0 https://github.com/Rory-Sullivan/yrlocationforecast"
new_york = Place("New York", 40.7, -74.0, 10)
new_york_forecast = Forecast(new_york, USER_AGENT, "complete")
ne... | 30.166667 | 93 | 0.781215 |
8c1fd8a545034c6706874c719b97ff2d1685083f | 1,216 | py | Python | photometry/run_simulateFITS.py | aditya-sengupta/tesscomp-prototyping | 93da86cd139c240ba5f59f187bcbc47e899c3519 | [
"MIT"
] | null | null | null | photometry/run_simulateFITS.py | aditya-sengupta/tesscomp-prototyping | 93da86cd139c240ba5f59f187bcbc47e899c3519 | [
"MIT"
] | null | null | null | photometry/run_simulateFITS.py | aditya-sengupta/tesscomp-prototyping | 93da86cd139c240ba5f59f187bcbc47e899c3519 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Command-line utility to simulate TESS FITS images for the photometry pipeline.
Structure inspired by `run_tessphot` by Rasmus Handberg.
.. codeauthor:: Jonas Svenstrup Hansen <jonas.svenstrup@gmail.com>
"""
#import os
import argparse
#import logging
from simulation.... | 33.777778 | 108 | 0.739309 |
8c1ffb243fbd46c27878c213979b249291696cf1 | 7,083 | py | Python | src/pythonScripts/DrivePart/download.py | sahilbest999/FVS-GIT-CLONE | 428ad5726a8b04d4fcd79eac22bec4395f3e2422 | [
"MIT"
] | null | null | null | src/pythonScripts/DrivePart/download.py | sahilbest999/FVS-GIT-CLONE | 428ad5726a8b04d4fcd79eac22bec4395f3e2422 | [
"MIT"
] | 1 | 2021-02-11T15:47:55.000Z | 2021-03-22T03:35:46.000Z | src/pythonScripts/DrivePart/download.py | sahilbest999/FVS-GIT-CLONE | 428ad5726a8b04d4fcd79eac22bec4395f3e2422 | [
"MIT"
] | 1 | 2020-08-12T18:32:38.000Z | 2020-08-12T18:32:38.000Z | import pickle
import os
import re
import io
import response
import upload
import authenticate
from googleapiclient.errors import HttpError
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http impo... | 33.410377 | 159 | 0.652266 |
8c22ac32d9e86be7204e958a46ee2baa1ce5b423 | 602 | py | Python | MakeRelativePaths.py | Ccantey/ArcGIS-Scripting | 464ed20e4365c5518ff6e226fb9b209de422f0dc | [
"Unlicense"
] | 11 | 2015-06-08T08:35:46.000Z | 2021-07-29T22:45:23.000Z | MakeRelativePaths.py | Ccantey/ArcGIS-Scripting | 464ed20e4365c5518ff6e226fb9b209de422f0dc | [
"Unlicense"
] | null | null | null | MakeRelativePaths.py | Ccantey/ArcGIS-Scripting | 464ed20e4365c5518ff6e226fb9b209de422f0dc | [
"Unlicense"
] | 5 | 2016-11-22T19:24:59.000Z | 2018-05-02T13:03:43.000Z | import arcpy, os
#walk through all subdirectories and change mxd to store relative paths
for root, dirs, files in os.walk(r"Q:\Geodata\shape"):
for f in files:
if f.endswith(".mxd"):
filepath = root + '\\' + f
print filepath
try:
... | 28.666667 | 71 | 0.463455 |
8c23261bdfd7bedf3419eb6c6b69a2ddfc65fe75 | 376 | py | Python | ind3.py | Nebula139/Sky3 | 16ece8db297966bc016ae6e0bbfee4e2998d1e16 | [
"MIT"
] | null | null | null | ind3.py | Nebula139/Sky3 | 16ece8db297966bc016ae6e0bbfee4e2998d1e16 | [
"MIT"
] | null | null | null | ind3.py | Nebula139/Sky3 | 16ece8db297966bc016ae6e0bbfee4e2998d1e16 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import math
if __name__ == '__main__':
a = input(' : ')
t = 0
A = 1
V = int(int(a)/3)
if V == 0:
print('')
else:
while t < int(a):
t = t + 3
A *= 2
print(' ' + a + ' '... | 18.8 | 66 | 0.420213 |
8c23962ece1baf380f89499b984bcb0464883878 | 9,971 | py | Python | src/k8s-extension/azext_k8s_extension/custom.py | anagg929/azure-cli-extensions | 5f9338bdbea4d127cde442ca1d60ee5c892aac0a | [
"MIT"
] | null | null | null | src/k8s-extension/azext_k8s_extension/custom.py | anagg929/azure-cli-extensions | 5f9338bdbea4d127cde442ca1d60ee5c892aac0a | [
"MIT"
] | null | null | null | src/k8s-extension/azext_k8s_extension/custom.py | anagg929/azure-cli-extensions | 5f9338bdbea4d127cde442ca1d60ee5c892aac0a | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 46.162037 | 119 | 0.684986 |
8c27dc6bc871f7889ddc494ac9e16b08fd6a4764 | 248 | py | Python | settings.py | arakilian0/calcupy | c0091c840cae982c9bf8816f1f8ec630dbb305ae | [
"MIT"
] | 1 | 2021-07-22T03:07:16.000Z | 2021-07-22T03:07:16.000Z | settings.py | arakilian0/calcupy | c0091c840cae982c9bf8816f1f8ec630dbb305ae | [
"MIT"
] | null | null | null | settings.py | arakilian0/calcupy | c0091c840cae982c9bf8816f1f8ec630dbb305ae | [
"MIT"
] | 1 | 2020-01-24T11:51:47.000Z | 2020-01-24T11:51:47.000Z | screen = {
"bg": "blue",
"rows": 0,
"columns": 0,
"columnspan": 4,
"padx": 5,
"pady": 5,
}
input = {
"bg": "blue",
"fg": "red",
"fs": "20px",
}
button = {
"bg": "blue",
"fg": "red",
"fs": "20px",
}
| 11.809524 | 20 | 0.366935 |
8c28212a9787a533451cf08af6ca4192b14942e2 | 7,203 | py | Python | pymcuprog/nvmpic.py | xthanhn/mcuprog | 84eb4baf82dcefe696d5d50344d7d5ca155cbefd | [
"MIT"
] | 1 | 2021-08-25T08:59:33.000Z | 2021-08-25T08:59:33.000Z | pymcuprog/nvmpic.py | xthanhn/mcuprog | 84eb4baf82dcefe696d5d50344d7d5ca155cbefd | [
"MIT"
] | null | null | null | pymcuprog/nvmpic.py | xthanhn/mcuprog | 84eb4baf82dcefe696d5d50344d7d5ca155cbefd | [
"MIT"
] | null | null | null | """
PIC NVM implementation
"""
import os
import sys
from pyedbglib.util import binary
from pymcuprog import utils
from pymcuprog.nvm import NvmAccessProviderCmsisDapTool
from pymcuprog.pymcuprog_errors import PymcuprogNotSupportedError
from pymcuprog.deviceinfo.memorynames import MemoryNames
from pymcuprog.deviceinfo... | 40.240223 | 119 | 0.627377 |
8c28407a573c7236354b86016987c0975cf4f3c6 | 502 | py | Python | 03-Simple-Neuron-Layer(Looping).py | KisanThapa/Neural-Networks-Scratch- | 4a78c2042e8575bbadaba709e50e7ad4070963f8 | [
"Apache-2.0"
] | null | null | null | 03-Simple-Neuron-Layer(Looping).py | KisanThapa/Neural-Networks-Scratch- | 4a78c2042e8575bbadaba709e50e7ad4070963f8 | [
"Apache-2.0"
] | null | null | null | 03-Simple-Neuron-Layer(Looping).py | KisanThapa/Neural-Networks-Scratch- | 4a78c2042e8575bbadaba709e50e7ad4070963f8 | [
"Apache-2.0"
] | null | null | null | # 3. Single layered 4 inputs and 3 outputs(Looping)
mInputs = [3, 4, 1, 2]
mWeights = [[0.2, -0.4, 0.6, 0.4],
[0.4, 0.3, -0.1, 0.8],
[0.7, 0.6, 0.3, -0.3]]
mBias1 = [3, 4, 2]
layer_output = []
for neuron_weights, neuron_bias in zip(mWeights, mBias1):
neuron_output = 0
for n_inputs, ... | 21.826087 | 60 | 0.621514 |
8c29f01f7753be2f1ec266b967456193a850ecb8 | 2,733 | py | Python | doubly_stochastic_dgp/layer_initializations.py | ayush29/Doubly-Stochastic-DGP | 5bf96b57a7571fe367083c8fd95e61bd1d534f55 | [
"Apache-2.0"
] | 126 | 2017-05-26T07:10:58.000Z | 2021-12-24T07:56:36.000Z | doubly_stochastic_dgp/layer_initializations.py | SourangshuGhosh/Doubly-Stochastic-DGP | e22f5c94b1a60ee04e3ebca9eb140510eab54724 | [
"Apache-2.0"
] | 39 | 2017-08-04T11:29:13.000Z | 2021-02-16T09:52:29.000Z | doubly_stochastic_dgp/layer_initializations.py | SourangshuGhosh/Doubly-Stochastic-DGP | e22f5c94b1a60ee04e3ebca9eb140510eab54724 | [
"Apache-2.0"
] | 56 | 2017-05-29T11:48:47.000Z | 2021-09-09T15:19:46.000Z |
import tensorflow as tf
import numpy as np
from gpflow.params import DataHolder, Minibatch
from gpflow import autoflow, params_as_tensors, ParamList
from gpflow.models.model import Model
from gpflow.mean_functions import Identity, Linear
from gpflow.mean_functions import Zero
from gpflow.quadrature import mvhermgauss... | 34.1625 | 95 | 0.608855 |
8c2a807f43d6eef105689c63e12efd6dbb33bdcb | 2,099 | py | Python | backend_django/login_api/serializers.py | oereo/cau-lion-server | 58ae08bba739387796a814f03c193a1eeea1b8a6 | [
"MIT"
] | 2 | 2020-04-17T07:22:55.000Z | 2020-04-20T16:45:38.000Z | backend_django/login_api/serializers.py | oereo/cau-lion-server | 58ae08bba739387796a814f03c193a1eeea1b8a6 | [
"MIT"
] | 17 | 2020-04-25T12:01:16.000Z | 2022-03-12T00:32:42.000Z | backend_django/login_api/serializers.py | minseungseon/cau-lion-server | 705d892df4746f658f903bc30e1622da35e81e69 | [
"MIT"
] | 3 | 2020-04-16T06:20:53.000Z | 2020-04-19T01:47:20.000Z | #2020-04-20 minseung seon created.
#serializer ModelSerializer
from rest_framework import serializers
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from .models import Profile
#Sign Up
#Check Valid Access on Server
#Login
# serializer | 26.56962 | 72 | 0.613626 |
8c2cb46531652620ec234711640343b0c737574c | 10,157 | py | Python | menu_view.py | MCOxford/tile_miner | eefa0c8a31cf44e9b25ee3e779bc21b7ee79212e | [
"MIT"
] | null | null | null | menu_view.py | MCOxford/tile_miner | eefa0c8a31cf44e9b25ee3e779bc21b7ee79212e | [
"MIT"
] | null | null | null | menu_view.py | MCOxford/tile_miner | eefa0c8a31cf44e9b25ee3e779bc21b7ee79212e | [
"MIT"
] | null | null | null | import arcade
import arcade.gui
from arcade.gui import UIManager
from constants import *
import os
dirname = os.path.dirname(__file__)
button_normal = arcade.load_texture(os.path.join(dirname, 'images/red_button_normal.png'))
hovered_texture = arcade.load_texture(os.path.join(dirname, 'images/red_button_hover.png'))
p... | 37.341912 | 115 | 0.608743 |
8c2d9c7411c316a5fdbc00d27ddd1f859de4e57c | 4,645 | py | Python | Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py | davidbrownell/v3-Common_Environment | 8f42f256e573cbd83cbf9813db9958025ddf12f2 | [
"BSL-1.0"
] | null | null | null | Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py | davidbrownell/v3-Common_Environment | 8f42f256e573cbd83cbf9813db9958025ddf12f2 | [
"BSL-1.0"
] | 1 | 2018-06-08T06:45:16.000Z | 2018-06-08T06:45:16.000Z | Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py | davidbrownell/v3-Common_Environment | 8f42f256e573cbd83cbf9813db9958025ddf12f2 | [
"BSL-1.0"
] | 1 | 2018-06-08T04:15:17.000Z | 2018-06-08T04:15:17.000Z | # ----------------------------------------------------------------------
# |
# | All.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2018-04-23 10:05:42
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2018-22.
# | Distributed ... | 46.919192 | 103 | 0.475996 |
8c2dc756bd57296e610b4f8de275d1147bb68d78 | 6,783 | py | Python | train.py | runhani/person-classification | 40d5199a770f40f8eea5d818645860baeb76bce7 | [
"MIT"
] | null | null | null | train.py | runhani/person-classification | 40d5199a770f40f8eea5d818645860baeb76bce7 | [
"MIT"
] | null | null | null | train.py | runhani/person-classification | 40d5199a770f40f8eea5d818645860baeb76bce7 | [
"MIT"
] | null | null | null |
import os
import matplotlib.pyplot as plt
from keras import applications
from keras.preprocessing.image import ImageDataGenerator, load_img
from keras import optimizers
from keras.models import Sequential, Model, load_model
from keras.layers import Dropout, Flatten, Dense, MaxPooling2D
from keras.regularizers import ... | 34.257576 | 162 | 0.65502 |
8c2f157870a65c3393becd00864f981eb90091df | 691 | py | Python | custom_config.py | prise-3d/Thesis-NoiseDetection-rfe-attributes | f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1 | [
"MIT"
] | null | null | null | custom_config.py | prise-3d/Thesis-NoiseDetection-rfe-attributes | f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1 | [
"MIT"
] | null | null | null | custom_config.py | prise-3d/Thesis-NoiseDetection-rfe-attributes | f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1 | [
"MIT"
] | null | null | null | from modules.config.attributes_config import *
# store all variables from global config
context_vars = vars()
# folders
logs_folder = 'logs'
backup_folder = 'backups'
## min_max_custom_folder = 'custom_norm'
## correlation_indices_folder = 'corr_in... | 32.904762 | 112 | 0.617945 |
8c2f47b6bc6e992abed62a2818205e164178fdb1 | 7,969 | py | Python | optable_submission/optable_package/optable/manipulations/target_encodings/hist_neighborhood_target_encoding.py | pfnet-research/KDD-Cup-AutoML-5 | 54202eb6aa414316a70faa8e07a68e1c8ca7bd1b | [
"MIT"
] | 18 | 2019-07-22T06:35:37.000Z | 2021-03-20T08:37:56.000Z | optable_submission/optable_package/optable/manipulations/target_encodings/hist_neighborhood_target_encoding.py | pfnet-research/KDD-Cup-AutoML-5 | 54202eb6aa414316a70faa8e07a68e1c8ca7bd1b | [
"MIT"
] | 1 | 2020-03-22T21:06:57.000Z | 2020-03-22T21:06:57.000Z | optable_submission/optable_package/optable/manipulations/target_encodings/hist_neighborhood_target_encoding.py | pfnet-research/KDD-Cup-AutoML-5 | 54202eb6aa414316a70faa8e07a68e1c8ca7bd1b | [
"MIT"
] | 11 | 2019-07-23T04:06:08.000Z | 2020-05-12T08:44:01.000Z | import numpy as np
from scipy import stats
from sklearn import metrics
from optable.synthesis import manipulation
from optable.synthesis import manipulation_candidate
from optable.dataset import feature_types
from optable import _core
# TODO: to-many, to-one
# TODO: dstlen
class HistNeighborhoodTargetEncodingCand... | 37.413146 | 79 | 0.598695 |
8c3007d2f608b3d77db169c4425877d373ee00f3 | 3,798 | py | Python | PullVectorsFromSQLandRunSimilarity.py | aktivkohle/youtube-curation | 1651eae7af29f60dc3e87bd696712b7e3848217e | [
"MIT"
] | 4 | 2017-11-14T13:30:07.000Z | 2019-06-12T16:01:15.000Z | PullVectorsFromSQLandRunSimilarity.py | aktivkohle/youtube-curation | 1651eae7af29f60dc3e87bd696712b7e3848217e | [
"MIT"
] | null | null | null | PullVectorsFromSQLandRunSimilarity.py | aktivkohle/youtube-curation | 1651eae7af29f60dc3e87bd696712b7e3848217e | [
"MIT"
] | 1 | 2019-12-03T08:57:05.000Z | 2019-12-03T08:57:05.000Z | import sys
sys.path.append('../')
import config
import pymysql.cursors
import pandas as pd
import numpy as np
from scipy import io as scipyio
from tempfile import SpooledTemporaryFile
from scipy.sparse import vstack as vstack_sparse_matrices
# Function to reassemble the p matrix from the vectors
connection = pymysql... | 37.98 | 138 | 0.650079 |
8c321b723875c29f1ae6ed62908243de66570a8e | 3,430 | py | Python | core/views.py | lcs-amorim/OPE-EasyParty | b3439bf21523d7f3fb19b12283c24f364bf54388 | [
"Apache-2.0"
] | null | null | null | core/views.py | lcs-amorim/OPE-EasyParty | b3439bf21523d7f3fb19b12283c24f364bf54388 | [
"Apache-2.0"
] | 4 | 2020-06-05T18:01:15.000Z | 2021-09-07T23:51:04.000Z | core/views.py | lcs-amorim/OPE-EasyParty | b3439bf21523d7f3fb19b12283c24f364bf54388 | [
"Apache-2.0"
] | 1 | 2018-10-02T23:45:15.000Z | 2018-10-02T23:45:15.000Z | from django.shortcuts import render, redirect , HttpResponseRedirect, get_object_or_404
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth.forms import UserCreationForm, PasswordChangeForm
from django.views.generic import View, TemplateView, CreateView, UpdateView
from ... | 27.886179 | 121 | 0.625656 |
8c32b849026f787dad3dce205fac98d12cb8e86b | 478 | py | Python | adminlte_log/tests.py | beastbikes/django-only-admin | c89b782b92edbb1f75151e71163c0708afacd4f9 | [
"MIT"
] | 32 | 2016-11-24T08:33:10.000Z | 2017-12-18T00:25:00.000Z | adminlte_log/tests.py | beastbikes/django-only-admin | c89b782b92edbb1f75151e71163c0708afacd4f9 | [
"MIT"
] | 15 | 2016-11-30T08:28:56.000Z | 2017-09-20T15:54:18.000Z | adminlte_log/tests.py | beastbikes/django-only-admin | c89b782b92edbb1f75151e71163c0708afacd4f9 | [
"MIT"
] | 9 | 2016-11-25T02:14:24.000Z | 2017-12-06T13:22:51.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from adminlte_log.models import AdminlteLogType, AdminlteLog
| 29.875 | 92 | 0.713389 |
8c3305c5267a989ec6a70f3ec4b12d3cf6b4ba05 | 9,607 | py | Python | pygmt/tests/test_text.py | tawandamoyo/pygmt | 4ef90382bfd84dfa47ce2422d2937a9b803de214 | [
"BSD-3-Clause"
] | null | null | null | pygmt/tests/test_text.py | tawandamoyo/pygmt | 4ef90382bfd84dfa47ce2422d2937a9b803de214 | [
"BSD-3-Clause"
] | 24 | 2021-02-12T08:12:30.000Z | 2022-02-08T13:04:23.000Z | pygmt/tests/test_text.py | tawandamoyo/pygmt | 4ef90382bfd84dfa47ce2422d2937a9b803de214 | [
"BSD-3-Clause"
] | 1 | 2022-01-12T20:52:52.000Z | 2022-01-12T20:52:52.000Z | # pylint: disable=redefined-outer-name
"""
Tests text.
"""
import os
import numpy as np
import pytest
from pygmt import Figure
from pygmt.exceptions import GMTCLibError, GMTInvalidInput
from pygmt.helpers import GMTTempFile
from pygmt.helpers.testing import check_figures_equal
TEST_DATA_DIR = os.path.join(os.path.dir... | 25.618667 | 85 | 0.616634 |
8c3337efda806d1e98b40346af81d2a58586f5fc | 658 | py | Python | Python/count-primes.py | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | Python/count-primes.py | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | null | null | null | Python/count-primes.py | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | # Time: O(n)
# Space: O(n)
# Description:
#
# Count the number of prime numbers less than a non-negative number, n
#
# Hint: The number n could be in the order of 100,000 to 5,000,000.
#
from math import sqrt
| 21.225806 | 70 | 0.468085 |
8c33eb4b835fe5ebadebb84d215778d0aae457a4 | 3,479 | py | Python | src/mds/api/signals.py | rryan/sana.mds | d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944 | [
"BSD-3-Clause"
] | null | null | null | src/mds/api/signals.py | rryan/sana.mds | d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944 | [
"BSD-3-Clause"
] | null | null | null | src/mds/api/signals.py | rryan/sana.mds | d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Aug 11, 2012
:author: Sana Development Team
:version: 2.0
'''
from django.dispatch import Signal
| 32.514019 | 90 | 0.61052 |
8c34dd2058c81b02d9bdb503007afab45b651249 | 2,785 | py | Python | word2vec.py | SilhouettesForYou/Word2vec | 57c22f29e319362f6a63eb9d5caaa7445ff7aa5a | [
"MIT"
] | 1 | 2017-01-17T07:41:11.000Z | 2017-01-17T07:41:11.000Z | word2vec.py | SilhouettesForYou/Word2vec | 57c22f29e319362f6a63eb9d5caaa7445ff7aa5a | [
"MIT"
] | null | null | null | word2vec.py | SilhouettesForYou/Word2vec | 57c22f29e319362f6a63eb9d5caaa7445ff7aa5a | [
"MIT"
] | 1 | 2020-12-24T04:14:50.000Z | 2020-12-24T04:14:50.000Z | from __future__ import print_function
import math
import tensorflow as tf
from sklearn.manifold import TSNE
from word2vec_input import *
from word2vec_plot import *
dataset_path = 'dataset/'
dataset = 'text8.zip'
vocabulary_size = 50000
batch_size = 128
embedding_size = 128
skip_window = 1
num_skips = 2
num_sampled =... | 27.85 | 135 | 0.735368 |
8c35b9a559288af50f129e1366cee6c00d138f00 | 621 | py | Python | citeyoursoftware/main.py | rodluger/citeyoursoftware | 8bccb33a268653a7267163ccdc67df72e191b388 | [
"MIT"
] | 3 | 2021-11-12T17:17:00.000Z | 2021-11-12T20:30:41.000Z | citeyoursoftware/main.py | rodluger/citeyoursoftware | 8bccb33a268653a7267163ccdc67df72e191b388 | [
"MIT"
] | null | null | null | citeyoursoftware/main.py | rodluger/citeyoursoftware | 8bccb33a268653a7267163ccdc67df72e191b388 | [
"MIT"
] | null | null | null | from .packages import get_packages
from .pypi import get_pypi_bib
| 27 | 65 | 0.652174 |
8c361112a2676ad3ae3884f67f664ad4e61ad19c | 179 | py | Python | Exercises/folhaDePagamento.py | JeffersonOliveira/Exercises--OO2-with-Python3 | 4c9022a06ea933cd83f30b8b60c2e947e0a3250e | [
"MIT"
] | null | null | null | Exercises/folhaDePagamento.py | JeffersonOliveira/Exercises--OO2-with-Python3 | 4c9022a06ea933cd83f30b8b60c2e947e0a3250e | [
"MIT"
] | null | null | null | Exercises/folhaDePagamento.py | JeffersonOliveira/Exercises--OO2-with-Python3 | 4c9022a06ea933cd83f30b8b60c2e947e0a3250e | [
"MIT"
] | null | null | null |
#folha = FolhaDePagamento()
#print(folha.log())
print(FolhaDePagamento.log()) | 17.9 | 41 | 0.681564 |
8c37000baf6496730973b65b17d03f9252cd094e | 3,305 | py | Python | pytorch-edu/torch_learning.py | kedaduck/Python-Projects | 1fe41789d216d6c791587696a5ba67990479d5c2 | [
"Apache-2.0"
] | null | null | null | pytorch-edu/torch_learning.py | kedaduck/Python-Projects | 1fe41789d216d6c791587696a5ba67990479d5c2 | [
"Apache-2.0"
] | null | null | null | pytorch-edu/torch_learning.py | kedaduck/Python-Projects | 1fe41789d216d6c791587696a5ba67990479d5c2 | [
"Apache-2.0"
] | null | null | null | import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
print("Python Version:", torch.__version__)
mnist_data = datasets.MNIST("./mnist_data", train=True, download=True,
transform = t... | 32.087379 | 77 | 0.621785 |
8c372a7bab044ef6bbb830a527f234fab884969a | 4,680 | py | Python | utils.py | aimir-lab/hebbian-learning-cnn | ddaf3a66c1c374960dc680f671e64f3f20387590 | [
"MIT"
] | 18 | 2019-09-13T10:19:11.000Z | 2021-11-13T22:05:06.000Z | utils.py | GabrieleLagani/HebbianLearningThesis | 0f98f7a3e380e55c9fca6340f4fb0cc5f24917d8 | [
"MIT"
] | null | null | null | utils.py | GabrieleLagani/HebbianLearningThesis | 0f98f7a3e380e55c9fca6340f4fb0cc5f24917d8 | [
"MIT"
] | 5 | 2019-11-24T08:16:14.000Z | 2021-02-15T11:41:18.000Z | import os
import csv
import matplotlib.pyplot as plt
import torch
import params as P
# Compute the shape of the output of the convolutional layers of a network. This is useful to correctly set the size of
# successive FC layers
# Compute the shape of the output feature map from any layer of a network. This is usefu... | 38.04878 | 121 | 0.738248 |
8c386151db19fdbccad2e5d5ef88164358f52445 | 181 | py | Python | Chapter 01/Chap01_Example1.92.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 01/Chap01_Example1.92.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 01/Chap01_Example1.92.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | # reading 2 numbers from the keyboard and printing maximum value
r = int(input("Enter the first number: "))
s = int(input("Enter the second number: "))
x = r if r>s else s
print(x)
| 30.166667 | 64 | 0.701657 |
8c39b0ac142ab65ce1b2aa686569be1655292566 | 63,854 | py | Python | training/model.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T09:05:11.000Z | 2022-01-24T00:48:22.000Z | training/model.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T19:12:10.000Z | 2022-02-08T14:46:34.000Z | training/model.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 25 | 2020-08-07T20:03:08.000Z | 2022-03-16T07:33:25.000Z | '''
AAA lllllll lllllll iiii
A:::A l:::::l l:::::l i::::i
A:::::A l:::::l l:::::l iiii
A:::::::A l:::::l l:::::l
... | 36.973943 | 206 | 0.674915 |
8c3b859ba3434a9c4221dd64e613da84a1bae1bc | 2,896 | py | Python | migrations/versions/a2c88ed3a94a_.py | crossgovernmentservices/csd_notes | 0d69d8cad86446327c6bcadc03f7192e7d7cfb71 | [
"MIT"
] | null | null | null | migrations/versions/a2c88ed3a94a_.py | crossgovernmentservices/csd_notes | 0d69d8cad86446327c6bcadc03f7192e7d7cfb71 | [
"MIT"
] | null | null | null | migrations/versions/a2c88ed3a94a_.py | crossgovernmentservices/csd_notes | 0d69d8cad86446327c6bcadc03f7192e7d7cfb71 | [
"MIT"
] | null | null | null | """empty message
Revision ID: a2c88ed3a94a
Revises: None
Create Date: 2016-04-27 16:54:34.185442
"""
# revision identifiers, used by Alembic.
revision = 'a2c88ed3a94a'
down_revision = None
from alembic import op
import sqlalchemy as sa
| 39.135135 | 97 | 0.66989 |
8c3bdf4d9c2e832816c1db1b0691647abd8a828a | 2,201 | py | Python | opus/opus_server.py | chezecz/research-project | 1a9c236398dc6b68967af0847b0461b390e760bd | [
"MIT"
] | null | null | null | opus/opus_server.py | chezecz/research-project | 1a9c236398dc6b68967af0847b0461b390e760bd | [
"MIT"
] | null | null | null | opus/opus_server.py | chezecz/research-project | 1a9c236398dc6b68967af0847b0461b390e760bd | [
"MIT"
] | null | null | null | import asyncio
import zlib
import queue
import threading
import audioop
from google.cloud import speech
from opuslib import Decoder
from config.config import Config
from config.config import Server
from config.config import Opus
buffer = queue.Queue()
buffer_response = queue.Queue()
dec = Decoder(Opus.rate, Opus.ch... | 28.217949 | 103 | 0.671967 |
8c3d3f0d60b1efa71f513e96282456978c895ca2 | 9,423 | py | Python | Artesian/_Query/VersionedQuery.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2022-02-21T17:03:04.000Z | 2022-02-24T17:14:02.000Z | Artesian/_Query/VersionedQuery.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2020-02-06T10:03:35.000Z | 2022-03-01T09:39:54.000Z | Artesian/_Query/VersionedQuery.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 1 | 2019-08-01T06:20:58.000Z | 2019-08-01T06:20:58.000Z | from Artesian._Query.Query import _Query
from Artesian._Query.QueryParameters.VersionedQueryParameters import VersionedQueryParameters
from Artesian._Query.Config.ExtractionRangeConfig import ExtractionRangeConfig
from Artesian._Query.Config.VersionSelectionType import VersionSelectionType
from Artesian._Configuration.... | 48.823834 | 184 | 0.685875 |
8c3d87d2655207c96ef42a62d50d37072057f3ba | 2,061 | py | Python | start.py | JoshuaMcroberts/DeliveryDilemmaLite | daac96edc140c82695b7d4103b1ecddf2742d1e6 | [
"MIT"
] | null | null | null | start.py | JoshuaMcroberts/DeliveryDilemmaLite | daac96edc140c82695b7d4103b1ecddf2742d1e6 | [
"MIT"
] | null | null | null | start.py | JoshuaMcroberts/DeliveryDilemmaLite | daac96edc140c82695b7d4103b1ecddf2742d1e6 | [
"MIT"
] | null | null | null | from libraries import *
from text import *
from game import *
from reception import recep
# DISPLAY HELP TEXT
# DISPLAY ABOUT TEXT
# DISPLAY ASCII ART
# DISPLAYS AME OVER ASCII ART
# GAME FUNCTION
# MAIN FUNCTION
if __name__ == "__main__":
main()
| 22.16129 | 81 | 0.554585 |