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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
217a1c4d9a24091de6f28191afa50d26888bd024 | 3,983 | py | Python | src/baxter_gui/sonar.py | HumaRobotics/baxter_evalutation_gui | eceea236286dd2548287c8df3bc9cae5800ca23e | [
"BSD-2-Clause"
] | 2 | 2017-04-06T06:14:10.000Z | 2017-10-05T22:35:58.000Z | src/baxter_gui/sonar.py | HumaRobotics/baxter_evalutation_gui | eceea236286dd2548287c8df3bc9cae5800ca23e | [
"BSD-2-Clause"
] | null | null | null | src/baxter_gui/sonar.py | HumaRobotics/baxter_evalutation_gui | eceea236286dd2548287c8df3bc9cae5800ca23e | [
"BSD-2-Clause"
] | 2 | 2017-04-06T06:13:59.000Z | 2017-11-06T12:31:53.000Z | #!/usr/bin/env python
###########################################################################
# This software is graciously provided by HumaRobotics
# under the Simplified BSD License on
# github:
# HumaRobotics is a trademark of Generation Robots.
# www.humarobotics.com
# Copyright (c) 2015, Generation Robo... | 38.669903 | 114 | 0.648004 |
217a53f692aa8c3f0575201c87b0e50ccbd4ef2e | 1,647 | py | Python | Dynamic Programming/LongestCommonSubseq.py | Jh123x/COMP-550-Algorithms-and-Analysis | 1bc0b7fb8c48dc52cf89704557795aa87290e88b | [
"MIT"
] | null | null | null | Dynamic Programming/LongestCommonSubseq.py | Jh123x/COMP-550-Algorithms-and-Analysis | 1bc0b7fb8c48dc52cf89704557795aa87290e88b | [
"MIT"
] | null | null | null | Dynamic Programming/LongestCommonSubseq.py | Jh123x/COMP-550-Algorithms-and-Analysis | 1bc0b7fb8c48dc52cf89704557795aa87290e88b | [
"MIT"
] | null | null | null | from typing import List
# Define directions
DIAGONOAL = (-1, -1)
UP = (0, -1)
LEFT = (-1, 0)
def trace_table(backtrack_table, seq1, seq2) -> List[str]:
"""Trace back the backtrack table to find the longest common subsequence"""
i, j = len(seq1)-1, len(seq2)-1
lcs = []
while i >= 0 and j >= 0:
... | 30.5 | 79 | 0.505161 |
217a965ac9c1adbe04867282d571db094f2e92da | 1,488 | py | Python | faker/providers/person/en/__init__.py | nortronthered/faker | bc55c88f911f30537c8ad1d1e1b64fe6e91428fb | [
"MIT"
] | null | null | null | faker/providers/person/en/__init__.py | nortronthered/faker | bc55c88f911f30537c8ad1d1e1b64fe6e91428fb | [
"MIT"
] | null | null | null | faker/providers/person/en/__init__.py | nortronthered/faker | bc55c88f911f30537c8ad1d1e1b64fe6e91428fb | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from .. import Provider as PersonProvider
| 35.428571 | 82 | 0.577957 |
217b4a4e53e620a12cb915d6303bb2ebe3952a08 | 1,787 | py | Python | main.py | gyyang/bio-kvm | 1db65ec3250879d16b7906edf4833670d170ec9c | [
"MIT"
] | 2 | 2022-01-01T18:42:50.000Z | 2022-03-13T16:20:12.000Z | main.py | gyyang/bio-kvm | 1db65ec3250879d16b7906edf4833670d170ec9c | [
"MIT"
] | null | null | null | main.py | gyyang/bio-kvm | 1db65ec3250879d16b7906edf4833670d170ec9c | [
"MIT"
] | 1 | 2022-03-18T16:16:32.000Z | 2022-03-18T16:16:32.000Z | """File that summarizes all key results.
To train networks in a specific experiment, run in command line
python main.py --train experiment_name
To analyze results from this experiment
python main.py --analyze experiment_name
To train and analyze all models quickly, run in command line
python main.py --train --analyze... | 31.350877 | 79 | 0.743145 |
217c3521a49c1959764a1dd372b744b03badf06e | 1,564 | py | Python | src/pyaides/tempfile/temporary_directory.py | okomestudio/pyaides | 7cb49620392812101a366dab97ebe4948b47b12a | [
"MIT"
] | null | null | null | src/pyaides/tempfile/temporary_directory.py | okomestudio/pyaides | 7cb49620392812101a366dab97ebe4948b47b12a | [
"MIT"
] | null | null | null | src/pyaides/tempfile/temporary_directory.py | okomestudio/pyaides | 7cb49620392812101a366dab97ebe4948b47b12a | [
"MIT"
] | null | null | null | from os.path import exists as path_exists
from shutil import rmtree
from tempfile import mkdtemp
from typing import Optional
| 31.28 | 88 | 0.636829 |
217c9d04d50b6d94a1a684d457eb2c81ff82f9f5 | 1,216 | py | Python | tests/gsfpy3_08/conftest.py | irewolepeter/gsfpy_USM_Implementation | c4614ac3f7d833eb86ea38c7708108b130f96612 | [
"MIT"
] | 7 | 2020-07-01T07:12:19.000Z | 2022-01-20T20:39:57.000Z | tests/gsfpy3_08/conftest.py | irewolepeter/gsfpy_USM_Implementation | c4614ac3f7d833eb86ea38c7708108b130f96612 | [
"MIT"
] | 36 | 2020-06-23T09:10:15.000Z | 2022-03-22T10:27:58.000Z | tests/gsfpy3_08/conftest.py | irewolepeter/gsfpy_USM_Implementation | c4614ac3f7d833eb86ea38c7708108b130f96612 | [
"MIT"
] | 2 | 2021-02-07T13:21:52.000Z | 2021-06-24T19:16:16.000Z | import shutil
from dataclasses import dataclass
from enum import Enum, auto
from pathlib import Path
import pytest
from pytest_cases import fixture_union
GSF_03_08_DATAFILE = GsfDatafile(
GsfVersion.V03_08,
Path(__file__).parent.parent / "test_data" / "GSF3_08_test_file.gsf",
num_beams=432,
)
fixtu... | 24.32 | 75 | 0.774671 |
217cdf7669f321ac62a49a7990e683d0c9fcc359 | 3,041 | py | Python | third_party/catapult/dashboard/dashboard/edit_test_owners.py | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | third_party/catapult/dashboard/dashboard/edit_test_owners.py | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/catapult/dashboard/dashboard/edit_test_owners.py | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides the web interface for adding and removing test owners."""
import json
from google.appengine.api import users
from dashboard import request_han... | 30.108911 | 76 | 0.680697 |
217dcf9e3ff97f5c6cd6b8522780f4c3bc9a75ab | 1,604 | py | Python | google/cloud/websecurityscanner/v1beta/websecurityscanner-v1beta-py/google/cloud/websecurityscanner_v1beta/types/crawled_url.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/websecurityscanner/v1beta/websecurityscanner-v1beta-py/google/cloud/websecurityscanner_v1beta/types/crawled_url.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/websecurityscanner/v1beta/websecurityscanner-v1beta-py/google/cloud/websecurityscanner_v1beta/types/crawled_url.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 27.186441 | 74 | 0.657107 |
217e3818a801e2f4dcb7d89636aefce07ffabdde | 5,775 | py | Python | lib/turkish_nltk/trnltk/experiments/dictionaryexperiments.py | myasiny/wordembed | d4df516a4ac6eed71d1cc6e085638e895c525de6 | [
"MIT"
] | null | null | null | lib/turkish_nltk/trnltk/experiments/dictionaryexperiments.py | myasiny/wordembed | d4df516a4ac6eed71d1cc6e085638e895c525de6 | [
"MIT"
] | null | null | null | lib/turkish_nltk/trnltk/experiments/dictionaryexperiments.py | myasiny/wordembed | d4df516a4ac6eed71d1cc6e085638e895c525de6 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Copyright 2012 Ali Ok (aliokATapacheDOTorg)
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 ... | 37.5 | 145 | 0.622338 |
218172bb8e01270d10bfb5ce4012d602f95f1b03 | 4,173 | py | Python | src/Chapters/Chapter6.py | Fennec2000GH/Python-Crash-Course | 421072c13ec4527405297af5fc7920d963cf0fda | [
"MIT"
] | null | null | null | src/Chapters/Chapter6.py | Fennec2000GH/Python-Crash-Course | 421072c13ec4527405297af5fc7920d963cf0fda | [
"MIT"
] | null | null | null | src/Chapters/Chapter6.py | Fennec2000GH/Python-Crash-Course | 421072c13ec4527405297af5fc7920d963cf0fda | [
"MIT"
] | null | null | null | # create dictionary
alien_0 = {'color': 'green', 'points': 5}
print(alien_0['color'])
print(alien_0['points'])
# assign variable to value in dictionary
new_points = alien_0['points']
print(f'You just earned {new_points} points!')
print(alien_0)
# adding new key-value pair
alien_0['x_position'] = 0
alien_0['y_position... | 26.08125 | 81 | 0.654685 |
2181c2135fcc99d7c1b53305b3e3de21dd2e227e | 6,936 | py | Python | MWW-inventory/cooperage.py | ProsperousHeart/Training-Events | 71aa6fae8e77f61924619407f34c39b3ace17fe4 | [
"MIT"
] | 6 | 2019-04-17T17:41:36.000Z | 2021-02-10T20:50:59.000Z | MWW-inventory/cooperage.py | ProsperousHeart/Training-Events | 71aa6fae8e77f61924619407f34c39b3ace17fe4 | [
"MIT"
] | 2 | 2018-11-27T06:33:06.000Z | 2019-02-20T04:35:49.000Z | MWW-inventory/cooperage.py | ProsperousHeart/Personal-Projects | 71aa6fae8e77f61924619407f34c39b3ace17fe4 | [
"MIT"
] | 3 | 2019-04-23T03:26:55.000Z | 2020-04-17T14:38:39.000Z | import cooper_item
import logging # https://docs.python.org/3/library/logging.html
import pprint
import table_mod as tables
from money import Money
# create_item = cooperidge_item.CooperageItem
# https://docs.python.org/3/library/logging.html#logrecord-attributes
#fmt = '%(asctime)s | %(levelname)s ... | 34.336634 | 108 | 0.634371 |
21827a2ebb42f575b8b66013cc122ecef6030ccc | 1,667 | py | Python | homework03/main.py | PatrickKalkman/pirplepython | d622ce4541e679d63d56115e3c6b21d39564993c | [
"MIT"
] | null | null | null | homework03/main.py | PatrickKalkman/pirplepython | d622ce4541e679d63d56115e3c6b21d39564993c | [
"MIT"
] | null | null | null | homework03/main.py | PatrickKalkman/pirplepython | d622ce4541e679d63d56115e3c6b21d39564993c | [
"MIT"
] | null | null | null | """
Python Is Easy course @Pirple.com
Homework Assignment #3: "If" Statements
Patrick Kalkman / patrick@simpletechture.nl
Details:
Create a function that accepts 3 parameters and checks for equality between
any two of them.
Your function should return True if 2 or more of the parameters are equal,
and false is no... | 26.887097 | 77 | 0.728254 |
2186314aa7aaff87c93cbec4f6a0d72a7b0791ce | 253 | py | Python | tuiuiu/tests/modeladmintest/apps.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | 3 | 2019-08-08T09:09:35.000Z | 2020-12-15T18:04:17.000Z | tuiuiu/tests/modeladmintest/apps.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | null | null | null | tuiuiu/tests/modeladmintest/apps.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T20:10:40.000Z | 2017-09-09T20:10:40.000Z | from __future__ import absolute_import, unicode_literals
from django.apps import AppConfig
| 25.3 | 56 | 0.786561 |
2188e2216c065e48a9a5262d01250046d5a64985 | 219 | py | Python | fc_view/setup.py | takanori-fujiwara/ccpca | e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110 | [
"BSD-3-Clause"
] | 14 | 2019-07-16T03:29:29.000Z | 2022-02-19T14:59:11.000Z | fc_view/setup.py | takanori-fujiwara/ccpca | e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110 | [
"BSD-3-Clause"
] | null | null | null | fc_view/setup.py | takanori-fujiwara/ccpca | e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110 | [
"BSD-3-Clause"
] | 7 | 2019-07-16T03:35:58.000Z | 2022-01-30T05:41:07.000Z | from distutils.core import setup
setup(name='fc-view',
version=0.1,
packages=[''],
package_dir={'': '.'},
install_requires=['numpy', 'scipy'],
py_modules=['opt_sign_flip', 'mat_reorder'])
| 24.333333 | 50 | 0.598174 |
21898a7d154a88e2d3cffd20cd2b52c26a47aa0f | 4,201 | py | Python | compiler.py | Hyper5phere/c-minus-compiler | 2b111f98c9f2b0ba7473f169e91e5ef7373c1929 | [
"MIT"
] | 20 | 2020-09-20T22:58:58.000Z | 2022-03-28T06:35:32.000Z | compiler.py | Hyper5phere/c-minus-compiler | 2b111f98c9f2b0ba7473f169e91e5ef7373c1929 | [
"MIT"
] | null | null | null | compiler.py | Hyper5phere/c-minus-compiler | 2b111f98c9f2b0ba7473f169e91e5ef7373c1929 | [
"MIT"
] | 15 | 2020-10-04T10:56:10.000Z | 2022-03-28T10:11:46.000Z | import os
import sys
import time
import argparse
import subprocess as sp
script_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(script_dir, "modules"))
from cparser import Parser
from scanner import Scanner, SymbolTableManager
from semantic_analyser import SemanticAnalyser
from code_... | 43.760417 | 130 | 0.645085 |
218a8e1accf1fbbcec9a82434ec70681538880eb | 4,902 | py | Python | app/main/views.py | adhoadhi/PITCH | e0e02adf32966bcc622aad4b732e7a7d2db041e5 | [
"Unlicense"
] | null | null | null | app/main/views.py | adhoadhi/PITCH | e0e02adf32966bcc622aad4b732e7a7d2db041e5 | [
"Unlicense"
] | null | null | null | app/main/views.py | adhoadhi/PITCH | e0e02adf32966bcc622aad4b732e7a7d2db041e5 | [
"Unlicense"
] | null | null | null | from flask import render_template, request, redirect, url_for, abort
from . import main
from flask_login import login_required, current_user
from ..models import User, PitchCategory, Pitches, Comments
from .forms import UpdateProfile, PitchForm, CommentForm, CategoriesForm
from .. import db, photos
# Route for adding... | 29.709091 | 91 | 0.695838 |
218aa6c3c61466a41ac33d5cb1268950318beaa1 | 1,944 | py | Python | etk/extractors/language_identification_extractor.py | varuniyer/etk | 57dc2ed2bfef0d9914747bed41fdc4123bfe4423 | [
"MIT"
] | null | null | null | etk/extractors/language_identification_extractor.py | varuniyer/etk | 57dc2ed2bfef0d9914747bed41fdc4123bfe4423 | [
"MIT"
] | null | null | null | etk/extractors/language_identification_extractor.py | varuniyer/etk | 57dc2ed2bfef0d9914747bed41fdc4123bfe4423 | [
"MIT"
] | null | null | null | from typing import List
from etk.extraction import Extraction
from etk.extractor import Extractor, InputType
from enum import Enum, auto
from langid import classify
from langdetect import detect
| 31.354839 | 106 | 0.629115 |
218b6c65cc4bb546fc7b94bf21f63dd98d3f4aef | 859 | py | Python | shifts/urls.py | Beshutaf/shift-report | d8784ba3901fcbbbe20b31d7b9435d8eb808bdc5 | [
"MIT"
] | null | null | null | shifts/urls.py | Beshutaf/shift-report | d8784ba3901fcbbbe20b31d7b9435d8eb808bdc5 | [
"MIT"
] | null | null | null | shifts/urls.py | Beshutaf/shift-report | d8784ba3901fcbbbe20b31d7b9435d8eb808bdc5 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from django.template.response import TemplateResponse
from django.views.generic import TemplateView, RedirectView
from django.contrib.staticfiles.views import serve
from shifts import settings
urlpatterns = [
url(r'^$', TemplateView.as_view... | 29.62069 | 89 | 0.657742 |
218bb6f494c5e3dd3bec32fdc93089f739ef2557 | 2,273 | py | Python | api/calculators/bridge.py | equinor/lcm | 338bf67e6eb412446e469b4c73f7000990445ebd | [
"MIT"
] | 3 | 2020-12-02T11:14:31.000Z | 2021-12-09T16:53:53.000Z | api/calculators/bridge.py | equinor/lcm | 338bf67e6eb412446e469b4c73f7000990445ebd | [
"MIT"
] | 76 | 2020-09-29T10:59:10.000Z | 2022-01-03T07:41:29.000Z | api/calculators/bridge.py | equinor/lcm | 338bf67e6eb412446e469b4c73f7000990445ebd | [
"MIT"
] | 2 | 2021-01-25T14:24:57.000Z | 2021-01-25T14:51:16.000Z | from math import sqrt
from typing import List
from cachetools import cached, LFUCache
from classes.product import Product
from util.enums import BridgeOption
SIZE_STEPS = [
0.01,
0.0114,
0.0129,
0.0147,
0.0167,
0.0189,
0.0215,
0.0244,
0.0278,
0.0315,
0.0358,
0.0407,... | 15.153333 | 76 | 0.524417 |
218dc3061d5bd2699c54d77094a85e1b5564ed76 | 3,388 | py | Python | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pyNN/neuron/nineml.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | 2 | 2020-11-01T13:22:11.000Z | 2020-11-01T13:22:20.000Z | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pyNN/neuron/nineml.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pyNN/neuron/nineml.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | """
Support cell types defined in 9ML with NEURON.
Requires the 9ml2nmodl script to be on the path.
Classes:
NineMLCell - a single neuron instance
NineMLCellType - base class for cell types, not used directly
Functions:
nineml_cell_type - return a new NineMLCellType subclass
Constants:
NMODL... | 33.88 | 108 | 0.645809 |
218e022befdbcc3b099f59fc82691e5701aaf7ed | 693 | py | Python | Network/perf.py | LunarWatcher/NN-chatbot-legacy | 50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68 | [
"Apache-2.0"
] | null | null | null | Network/perf.py | LunarWatcher/NN-chatbot-legacy | 50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68 | [
"Apache-2.0"
] | null | null | null | Network/perf.py | LunarWatcher/NN-chatbot-legacy | 50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68 | [
"Apache-2.0"
] | null | null | null | from time import *
if __name__ == "__main__":
ifOrTuple()
print("####")
updateOrManual()
print("####") | 21 | 43 | 0.52381 |
218ed007c0e968a23bde2bf831865f422fd7eba5 | 5,404 | py | Python | loris/app/views/fly.py | gucky92/loris | 6f54b7d791d473f52690380d71da0acc0352d954 | [
"MIT"
] | 1 | 2021-08-01T02:02:54.000Z | 2021-08-01T02:02:54.000Z | loris/app/views/fly.py | gucky92/loris | 6f54b7d791d473f52690380d71da0acc0352d954 | [
"MIT"
] | null | null | null | loris/app/views/fly.py | gucky92/loris | 6f54b7d791d473f52690380d71da0acc0352d954 | [
"MIT"
] | 3 | 2020-03-31T10:26:46.000Z | 2021-08-02T00:12:54.000Z | """fly specific views
"""
import os
from flask import render_template, request, flash, url_for, redirect, \
send_from_directory, session
from functools import wraps
from flask_login import current_user, login_user, login_required, logout_user
import datajoint as dj
import pandas as pd
from loris import config
fro... | 28.898396 | 78 | 0.67154 |
218faee00f37039153c65e5bb3b49bdfd694a503 | 990 | py | Python | setup.py | PostmonAPI/postmon-python | f226866622040ee03f8a73abfdcb847abbc316de | [
"MIT"
] | 5 | 2015-05-07T13:09:17.000Z | 2019-11-14T21:53:11.000Z | setup.py | PostmonAPI/postmon-python | f226866622040ee03f8a73abfdcb847abbc316de | [
"MIT"
] | null | null | null | setup.py | PostmonAPI/postmon-python | f226866622040ee03f8a73abfdcb847abbc316de | [
"MIT"
] | null | null | null | try:
import multiprocessing
except ImportError:
pass
from setuptools import setup
import postmon
setup(
name='postmon',
version=postmon.__version__,
description='Postmon service wrapper',
url='http://github.com/PostmonAPI/postmon-python',
author='Iuri de Silvio',
author_email='iurisi... | 22.5 | 71 | 0.605051 |
219016ed9395191a9d92995122f8e4aa0387fd7a | 555 | py | Python | coroutines/coroutine_finally.py | lisboaxd/python_shards | 42c28288da7f08565de43a2f118216c28c07ce92 | [
"MIT"
] | null | null | null | coroutines/coroutine_finally.py | lisboaxd/python_shards | 42c28288da7f08565de43a2f118216c28c07ce92 | [
"MIT"
] | null | null | null | coroutines/coroutine_finally.py | lisboaxd/python_shards | 42c28288da7f08565de43a2f118216c28c07ce92 | [
"MIT"
] | null | null | null |
coro_finally = demonstrate_exc_finally()
next(coro_finally)
coro_finally.send(20)
coro_finally.send(50)
| 24.130435 | 68 | 0.590991 |
21905fa948c69618781b3395191013845aaa212e | 3,031 | py | Python | mac/pyobjc-core/PyObjCTest/test_corefoundation.py | albertz/music-player | d23586f5bf657cbaea8147223be7814d117ae73d | [
"BSD-2-Clause"
] | 132 | 2015-01-01T10:02:42.000Z | 2022-03-09T12:51:01.000Z | mac/pyobjc-core/PyObjCTest/test_corefoundation.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 6 | 2015-01-06T08:23:19.000Z | 2019-03-14T12:22:06.000Z | mac/pyobjc-core/PyObjCTest/test_corefoundation.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 27 | 2015-02-23T11:51:43.000Z | 2022-03-07T02:34:18.000Z | """
Testcases for the CoreFoundation wrappers introduced in 1.5
"""
import objc
from PyObjCTools.TestSupport import *
import re
import sys
from PyObjCTest.corefoundation import *
# registerCFSignature(name, encoding, typeId [, tollfreeName]) -> type
CFUUIDRef = objc.registerCFSignature(
"CFUUIDRef",
... | 30.31 | 79 | 0.663477 |
21908533059650158231fb7a6c13d83d59c8fae2 | 555 | py | Python | examples/echo.py | megamit/discord.py | 899c5d0cd9406bd14c8299208bf37736ce6a2df1 | [
"MIT"
] | 1 | 2021-04-08T19:19:22.000Z | 2021-04-08T19:19:22.000Z | examples/echo.py | megamit/discord.py | 899c5d0cd9406bd14c8299208bf37736ce6a2df1 | [
"MIT"
] | null | null | null | examples/echo.py | megamit/discord.py | 899c5d0cd9406bd14c8299208bf37736ce6a2df1 | [
"MIT"
] | null | null | null | import discord
import logging
# Set up the logging module to output diagnostic to the console.
logging.basicConfig()
client = discord.Client()
client.login('email', 'password')
if not client.is_logged_in:
print('Logging in to Discord failed')
exit(1)
client.run()
| 21.346154 | 64 | 0.706306 |
219091666db74f486781a922effd4aee96ba013d | 8,673 | py | Python | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py | ttracx/metron | e81a5c102375d3b7f9692a561760ff8f8526a6ec | [
"Apache-2.0"
] | 1 | 2019-02-27T03:41:26.000Z | 2019-02-27T03:41:26.000Z | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py | ttracx/metron | e81a5c102375d3b7f9692a561760ff8f8526a6ec | [
"Apache-2.0"
] | 6 | 2016-05-10T15:37:06.000Z | 2019-03-21T07:15:25.000Z | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py | depshield-user-testing/metron | d749961daaa77624e1cb6878548479d86c8fe668 | [
"Apache-2.0"
] | 2 | 2016-01-25T15:51:42.000Z | 2016-01-25T15:53:37.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
"License");... | 42.935644 | 155 | 0.652485 |
21938c91ae398fd3303b1f93d2ae749d6ad8be19 | 640 | py | Python | Lab Tests/2019.1 Lab Test/Solutions/q2a.py | alphatrl/IS111 | f09fc47f5321dc4d79b9dde97399109e2a368443 | [
"MIT"
] | null | null | null | Lab Tests/2019.1 Lab Test/Solutions/q2a.py | alphatrl/IS111 | f09fc47f5321dc4d79b9dde97399109e2a368443 | [
"MIT"
] | null | null | null | Lab Tests/2019.1 Lab Test/Solutions/q2a.py | alphatrl/IS111 | f09fc47f5321dc4d79b9dde97399109e2a368443 | [
"MIT"
] | null | null | null | def get_multiples_of(num_list, n):
'''
This function returns the number of numbers in num_list that are multiples of n.
If there is no number in num_list that is a multiple of n, the function returns 0.
Parameters:
- num_list, a list of positive integers; list may be empty
- n, ... | 26.666667 | 87 | 0.6125 |
2193bc956f086678110deef9221f1ab72faae2f2 | 392 | py | Python | app_renekton/forms.py | lia0wang/Renekton-Forums | e2d6861173d2279e5b64b42abb2c921853116cc5 | [
"MIT"
] | null | null | null | app_renekton/forms.py | lia0wang/Renekton-Forums | e2d6861173d2279e5b64b42abb2c921853116cc5 | [
"MIT"
] | null | null | null | app_renekton/forms.py | lia0wang/Renekton-Forums | e2d6861173d2279e5b64b42abb2c921853116cc5 | [
"MIT"
] | null | null | null | from django import forms
from .models import Topic, Post | 26.133333 | 62 | 0.584184 |
2195736268951f73a7aaddba531d710135929ebd | 8,230 | py | Python | nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py | Jimvin/nipyapi | 826beac376d4321bd2d69491f09086474c7e7bfb | [
"Apache-2.0"
] | 199 | 2017-08-24T12:19:41.000Z | 2022-03-20T14:50:17.000Z | nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py | Jimvin/nipyapi | 826beac376d4321bd2d69491f09086474c7e7bfb | [
"Apache-2.0"
] | 275 | 2017-08-28T21:21:49.000Z | 2022-03-29T17:57:26.000Z | nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py | Jimvin/nipyapi | 826beac376d4321bd2d69491f09086474c7e7bfb | [
"Apache-2.0"
] | 73 | 2017-09-07T10:13:56.000Z | 2022-02-28T10:37:21.000Z | # coding: utf-8
"""
NiFi Rest API
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | 34.872881 | 478 | 0.655286 |
2195bbee42d1242bbd94379825795efc7049104c | 528 | py | Python | setup.py | yotammarton/TransformDF2Numpy | 3528fe2f207089186865290b9f5cbd14d91e8c82 | [
"MIT"
] | null | null | null | setup.py | yotammarton/TransformDF2Numpy | 3528fe2f207089186865290b9f5cbd14d91e8c82 | [
"MIT"
] | null | null | null | setup.py | yotammarton/TransformDF2Numpy | 3528fe2f207089186865290b9f5cbd14d91e8c82 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="df2numpy",
version="1.1.0",
description="A simple tool for quick transformation from pandas.DataFrame to numpy.array dataset containing some utilities",
long_description='./README.md',
author="Masaki Kitayama",
author_email="kitayama-mas... | 25.142857 | 128 | 0.700758 |
2195ef8dc9eef8e0680f99fe7fef7e19264acba5 | 11,726 | py | Python | blue_st_examples/read_sensors.py | cchangeur/BlueSTSDK_Python | e5c6e4bc5a58680bad0d867633dd9d92012b9baf | [
"BSD-3-Clause"
] | null | null | null | blue_st_examples/read_sensors.py | cchangeur/BlueSTSDK_Python | e5c6e4bc5a58680bad0d867633dd9d92012b9baf | [
"BSD-3-Clause"
] | null | null | null | blue_st_examples/read_sensors.py | cchangeur/BlueSTSDK_Python | e5c6e4bc5a58680bad0d867633dd9d92012b9baf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# IMPORT
from __future__ import print_function
import sys
import os
import time
from abc import abstractmethod
from blue_st_sdk.manager import Manager
from blue_st_sdk.manager import ManagerListener
from blue_st_sdk.node import NodeListener
from blue_st_sdk.feature import FeatureLi... | 36.990536 | 149 | 0.541532 |
219767503ab5c59e4efbbc9cbad8776205735bac | 540 | py | Python | adr/Components/Aerodynamic/RectangularAerodynamicSurface.py | CeuAzul/ADR | 09885062cfa79d19fa6370155d91466bda2a27d7 | [
"MIT"
] | 16 | 2019-01-31T16:40:55.000Z | 2021-09-12T15:12:35.000Z | adr/Components/Aerodynamic/RectangularAerodynamicSurface.py | CeuAzul/ADR | 09885062cfa79d19fa6370155d91466bda2a27d7 | [
"MIT"
] | 157 | 2019-01-31T16:44:27.000Z | 2020-10-05T12:48:50.000Z | adr/Components/Aerodynamic/RectangularAerodynamicSurface.py | CeuAzul/ADR | 09885062cfa79d19fa6370155d91466bda2a27d7 | [
"MIT"
] | 3 | 2020-12-12T20:27:00.000Z | 2021-03-13T18:44:52.000Z | import attr
from vec import Vector2
from adr.Components.Aerodynamic import AerodynamicSurface
| 22.5 | 62 | 0.722222 |
219815a06b42358ab44f5f67029d88d169f0dbbc | 9,934 | py | Python | mnnpy/utils.py | dbrg77/mnnpy | b6fd65aa6c7e2ad72308ba10da810e805b79298f | [
"BSD-3-Clause"
] | null | null | null | mnnpy/utils.py | dbrg77/mnnpy | b6fd65aa6c7e2ad72308ba10da810e805b79298f | [
"BSD-3-Clause"
] | null | null | null | mnnpy/utils.py | dbrg77/mnnpy | b6fd65aa6c7e2ad72308ba10da810e805b79298f | [
"BSD-3-Clause"
] | 1 | 2018-10-16T01:56:34.000Z | 2018-10-16T01:56:34.000Z | import math
import numpy as np
from multiprocessing import Pool
from scipy.spatial import cKDTree
from scipy.linalg import orth
from scipy.linalg.interpolative import svd as rsvd
from scipy.sparse import issparse
from numba import jit, float32, int32, int8
from . import settings
from .irlb import lanczos
def tran... | 37.628788 | 112 | 0.62875 |
2199fec3c4a94bc3ee9c0ccd244406c9f8fdfe01 | 15,408 | py | Python | pycharmers/utils/soup_utils.py | iwasakishuto/Py-utils | 5dc1e7d676811c2239e64f500b734bd508335256 | [
"MIT"
] | 2 | 2019-11-13T11:59:30.000Z | 2019-11-17T15:44:09.000Z | pycharmers/utils/soup_utils.py | iwasakishuto/Py-utils | 5dc1e7d676811c2239e64f500b734bd508335256 | [
"MIT"
] | 1 | 2020-09-12T18:00:30.000Z | 2020-09-12T18:00:50.000Z | pycharmers/utils/soup_utils.py | iwasakishuto/Py-utils | 5dc1e7d676811c2239e64f500b734bd508335256 | [
"MIT"
] | 1 | 2021-04-13T16:19:26.000Z | 2021-04-13T16:19:26.000Z | #coding: utf-8
import re
import requests
from bs4 import BeautifulSoup
from .generic_utils import str_strip, handleKeyError
def str2soup(string):
"""Convert strings to soup, and removed extra tags such as ``<html>``, ``<body>``, and ``<head>``.
Args:
string (str) : strings
Returns:
bs4.Be... | 43.402817 | 378 | 0.594496 |
21a00207837c0b03d9e8ba6b3b0c1c8c83c6a9d4 | 8,444 | py | Python | third_party/chromite/cli/cros/lint_autotest.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/chromite/cli/cros/lint_autotest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/chromite/cli/cros/lint_autotest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # -*- coding: utf-8 -*-
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This module is not automatically loaded by the `cros` helper. The filename
# would need a "cros_" prefix to make that happen. ... | 31.864151 | 79 | 0.71613 |
21a0c5a63555445f8c24a7d093541a3e613eb0de | 2,176 | py | Python | {{cookiecutter.directory_name}}/setup.py | farisachugthai/cookiecutter_lib | 783c3fbadcf9f8bbf8da07edd9c6df4addf16435 | [
"MIT"
] | null | null | null | {{cookiecutter.directory_name}}/setup.py | farisachugthai/cookiecutter_lib | 783c3fbadcf9f8bbf8da07edd9c6df4addf16435 | [
"MIT"
] | null | null | null | {{cookiecutter.directory_name}}/setup.py | farisachugthai/cookiecutter_lib | 783c3fbadcf9f8bbf8da07edd9c6df4addf16435 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
{%- if cookiecutter.command_line_interface|lower == 'click' %}
'Click>=7.0',
{%- endif %}
]
test_requirements = [
{%- if c... | 31.085714 | 103 | 0.653493 |
21a0c8636280ad53c71eff8b3260ed75a7d6bbee | 8,298 | py | Python | MindLink-Eumpy/data_collection_framework/util/EEG_record.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 7 | 2020-11-19T14:34:50.000Z | 2022-02-26T14:16:50.000Z | MindLink-Eumpy/data_collection_framework/util/EEG_record.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 1 | 2021-08-20T07:30:32.000Z | 2021-09-01T07:20:14.000Z | MindLink-Eumpy/data_collection_framework/util/EEG_record.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 2 | 2021-07-20T08:59:14.000Z | 2021-08-10T08:03:56.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 18 11:42:40 2018 by Yongrui Huang
Modified on Tue Oct 29th 16:16:50 2019 by Ruixin Lee
@author: Yongrui Huang
"""
import sys
sys.path.append('../')
from data_collection_framework.util import record
import configuration
import os
import platform
import time
import ctypes
... | 38.416667 | 110 | 0.626657 |
21a131fadbf256dc2fd90d0c9f6e8868b23e49f2 | 3,198 | py | Python | autophrase/pos_tag.py | QianyangPeng/AutophrasePy | 1d34a62fdf96a649f5e06fe69dc74fa8d69fc8a7 | [
"Apache-2.0"
] | 7 | 2018-08-11T07:03:07.000Z | 2022-03-18T06:33:30.000Z | autophrase/pos_tag.py | QianyangPeng/AutophrasePy | 1d34a62fdf96a649f5e06fe69dc74fa8d69fc8a7 | [
"Apache-2.0"
] | 1 | 2018-11-01T08:18:00.000Z | 2018-11-01T08:18:00.000Z | autophrase/pos_tag.py | QianyangPeng/AutophrasePy | 1d34a62fdf96a649f5e06fe69dc74fa8d69fc8a7 | [
"Apache-2.0"
] | 1 | 2020-05-05T12:54:56.000Z | 2020-05-05T12:54:56.000Z | import os
from glob import glob
from shutil import copyfile
from math import floor
import sys
import threading
# from download_parameter_files import download_parameter_files
| 31.98 | 82 | 0.693558 |
21a59aacb4bd81cb3e7cdf393821079b2b85a81e | 926 | py | Python | app/utils/try.py | yudhik11/StackOverflow_UserQuery | b3c88ed18304078901497a9a0dc99c232e1ffac4 | [
"MIT"
] | 3 | 2019-07-21T16:30:27.000Z | 2020-03-04T15:03:32.000Z | app/utils/try.py | yudhik11/StackOverflow_UserQuery | b3c88ed18304078901497a9a0dc99c232e1ffac4 | [
"MIT"
] | 11 | 2020-01-28T22:51:49.000Z | 2022-02-10T09:16:19.000Z | app/utils/try.py | yudhik11/StackOverflow_UserQuery | b3c88ed18304078901497a9a0dc99c232e1ffac4 | [
"MIT"
] | 2 | 2019-07-21T12:30:13.000Z | 2019-07-31T16:34:07.000Z | import requests, re
import numpy as np
u='https://api.stackexchange.com/2.2/similar'
tag_arr=[]
# for i in range(1,28):
for i in range(1,2):
print(i)
p={'page':str(i), 'pagesize':'100','fromdate':'1388534400','tagged':'javascript;node.js;npm','title':'node how to run node app js', 'order':'desc','sort':'votes',... | 33.071429 | 233 | 0.600432 |
21a73b6961e324b2bf36ea8c248c456445c83c7d | 832 | py | Python | infrastructure/codigos/solver/extraer_datos_yahoo.py | izmfc/MNO_finalproject | 5e25ba84708f75e98768e75a681992986efd87fc | [
"RSA-MD"
] | null | null | null | infrastructure/codigos/solver/extraer_datos_yahoo.py | izmfc/MNO_finalproject | 5e25ba84708f75e98768e75a681992986efd87fc | [
"RSA-MD"
] | 61 | 2020-04-25T01:09:22.000Z | 2020-05-29T00:18:46.000Z | infrastructure/codigos/solver/extraer_datos_yahoo.py | izmfc/MNO_finalproject | 5e25ba84708f75e98768e75a681992986efd87fc | [
"RSA-MD"
] | 4 | 2020-05-01T19:24:45.000Z | 2021-01-23T01:28:44.000Z | import yfinance as yf
def extraer_datos_yahoo(stocks, start='2015-01-01', end='2020-04-30'):
'''
Funcion para extraer precios al cierre de las acciones mediante yahoo finance de 2015-01-01 a 2020-04-30
params: stocks lista de acciones de las cuales se desea obtener el precio
start fecha inicial... | 37.818182 | 106 | 0.674279 |
21a789b34ff251b32a9332edc970b38f9ab49536 | 1,244 | py | Python | tree/htree.py | Tenbatsu24/python-data-structure | aa54edf30b70f20024111f33ab48c0d081086377 | [
"MIT"
] | null | null | null | tree/htree.py | Tenbatsu24/python-data-structure | aa54edf30b70f20024111f33ab48c0d081086377 | [
"MIT"
] | null | null | null | tree/htree.py | Tenbatsu24/python-data-structure | aa54edf30b70f20024111f33ab48c0d081086377 | [
"MIT"
] | null | null | null | import collections
| 25.387755 | 69 | 0.580386 |
21a80ca084c0768d2c462391247b55fb974a5877 | 4,530 | py | Python | data/process.py | RenchuSong/FootballAnalyzer | 2a4b619e29e3994b7956ab74217cf08c34756b22 | [
"MIT"
] | null | null | null | data/process.py | RenchuSong/FootballAnalyzer | 2a4b619e29e3994b7956ab74217cf08c34756b22 | [
"MIT"
] | null | null | null | data/process.py | RenchuSong/FootballAnalyzer | 2a4b619e29e3994b7956ab74217cf08c34756b22 | [
"MIT"
] | null | null | null | import csv
import matplotlib.pyplot as plt
import json
combine = []
with open('combine.csv', 'rb') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',')
i = 0
for row in spamreader:
i += 1
if i > 1:
if 2000 <= int(row[0]) <= 2012 and row[4] == 'WR':
combine.append({
'year' : row[0],
'n... | 31.901408 | 142 | 0.582119 |
21a81e454b5018f5bfc22e5ccbd3228cb3ba62b6 | 2,786 | py | Python | tests/unit/test_bio_metadata.py | haoyuanli/candig-server | 5f58a4ef5f58d9e91afb98d385e9213e0899e51d | [
"Apache-2.0"
] | 4 | 2019-05-08T20:42:10.000Z | 2021-08-13T16:39:38.000Z | tests/unit/test_bio_metadata.py | haoyuanli/candig-server | 5f58a4ef5f58d9e91afb98d385e9213e0899e51d | [
"Apache-2.0"
] | 102 | 2019-04-03T23:08:46.000Z | 2021-11-28T19:41:38.000Z | tests/unit/test_bio_metadata.py | haoyuanli/candig-server | 5f58a4ef5f58d9e91afb98d385e9213e0899e51d | [
"Apache-2.0"
] | 6 | 2019-05-08T20:42:16.000Z | 2021-08-21T03:15:44.000Z | """
Tests the biodata module
"""
import unittest
import candig.server.datamodel.datasets as datasets
import candig.server.exceptions as exceptions
import candig.server.datamodel.bio_metadata as bioMetadata
import candig.schemas.protocol as protocol
| 35.265823 | 71 | 0.648959 |
21a84ccfa838eca956c2bc2c4621cd9756bd544c | 4,580 | py | Python | eval/fig4.py | tk2lab/logbesselk | 6ffbc344c0b472d307a556e50de943a380616fb2 | [
"Apache-2.0"
] | null | null | null | eval/fig4.py | tk2lab/logbesselk | 6ffbc344c0b472d307a556e50de943a380616fb2 | [
"Apache-2.0"
] | null | null | null | eval/fig4.py | tk2lab/logbesselk | 6ffbc344c0b472d307a556e50de943a380616fb2 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib.colors import ListedColormap
from . import common
if __name__ == '__main__':
main(debug=False)
| 35.503876 | 99 | 0.4869 |
21a89ee632dc825af897834036510c30f557a71f | 1,660 | py | Python | yt_idv/scene_components/particles.py | sochowski/yt_idv | d840d3f80e6f5afb743f2eb9afce1f576645c731 | [
"BSD-3-Clause"
] | 3 | 2021-02-08T21:27:21.000Z | 2021-07-09T08:35:37.000Z | yt_idv/scene_components/particles.py | sochowski/yt_idv | d840d3f80e6f5afb743f2eb9afce1f576645c731 | [
"BSD-3-Clause"
] | 17 | 2020-12-22T18:45:04.000Z | 2022-02-25T20:05:50.000Z | yt_idv/scene_components/particles.py | sochowski/yt_idv | d840d3f80e6f5afb743f2eb9afce1f576645c731 | [
"BSD-3-Clause"
] | 4 | 2021-04-02T19:56:56.000Z | 2021-09-24T01:22:55.000Z | import math
import numpy as np
import traitlets
from OpenGL import GL
from yt_idv.scene_components.base_component import SceneComponent
from yt_idv.scene_data.particle_positions import ParticlePositions
| 36.086957 | 87 | 0.680723 |
21a8c687710b1e9cf2b84dde1150046d7da9a02d | 1,078 | py | Python | tests/custom/test_map_priority.py | arkhn/cleaning-scripts | ffe88598b476b2e6b53fd06e8ce6092ef0351b19 | [
"Apache-2.0"
] | 9 | 2019-03-31T03:46:51.000Z | 2020-05-20T13:05:06.000Z | tests/custom/test_map_priority.py | arkhn/cleaning-scripts | ffe88598b476b2e6b53fd06e8ce6092ef0351b19 | [
"Apache-2.0"
] | 18 | 2019-09-11T09:19:45.000Z | 2021-07-13T09:16:23.000Z | tests/custom/test_map_priority.py | arkhn/cleaning-scripts | ffe88598b476b2e6b53fd06e8ce6092ef0351b19 | [
"Apache-2.0"
] | 2 | 2019-09-18T15:20:10.000Z | 2021-07-25T06:46:57.000Z | from scripts import custom
| 23.955556 | 49 | 0.681818 |
21a941828c011cb36b4651f7351fe451889403ba | 3,332 | py | Python | uniplot/cli.py | Titas-In-Cloud/uniplot | 0d31f1c4d4d5ac24543d96ec4bfdc2cbf43406c2 | [
"MIT"
] | null | null | null | uniplot/cli.py | Titas-In-Cloud/uniplot | 0d31f1c4d4d5ac24543d96ec4bfdc2cbf43406c2 | [
"MIT"
] | null | null | null | uniplot/cli.py | Titas-In-Cloud/uniplot | 0d31f1c4d4d5ac24543d96ec4bfdc2cbf43406c2 | [
"MIT"
] | null | null | null | import argparse
from os import path
from uniplot import plot
from . import parse
from . import analysis
file = open("location.txt", "r")
LOC = file.read()
file.close()
def file_location_configuration(args):
"""Allows to set the location from where to get the data file"""
open("location.txt", "w").close()
... | 42.717949 | 103 | 0.664466 |
21aac5ef63f55e45d1b0efa2a2ae4e72550f661b | 2,709 | py | Python | tests/utils/adapters/test_source_adapter.py | damare01/novelsave | 7896e8393c944e169e3cb52a33ab81ae396dff9f | [
"Apache-2.0"
] | null | null | null | tests/utils/adapters/test_source_adapter.py | damare01/novelsave | 7896e8393c944e169e3cb52a33ab81ae396dff9f | [
"Apache-2.0"
] | null | null | null | tests/utils/adapters/test_source_adapter.py | damare01/novelsave | 7896e8393c944e169e3cb52a33ab81ae396dff9f | [
"Apache-2.0"
] | null | null | null | import pytest
from novelsave_sources import models as sm
from novelsave.core import dtos
from novelsave.utils.adapters import SourceAdapter
| 24.1875 | 78 | 0.640827 |
21abbc7937fc3a9823260699ccf02930e2b263d7 | 233 | py | Python | employeeProj/employeeApp/urls.py | cs-fullstack-2019-spring/django-formclassv2-cw-itayanna | 3c6038cd88d03df8aef6ab544c6f331acea5dc2e | [
"Apache-2.0"
] | null | null | null | employeeProj/employeeApp/urls.py | cs-fullstack-2019-spring/django-formclassv2-cw-itayanna | 3c6038cd88d03df8aef6ab544c6f331acea5dc2e | [
"Apache-2.0"
] | null | null | null | employeeProj/employeeApp/urls.py | cs-fullstack-2019-spring/django-formclassv2-cw-itayanna | 3c6038cd88d03df8aef6ab544c6f331acea5dc2e | [
"Apache-2.0"
] | null | null | null |
# importing info from views and the path function
from django.urls import path
from . import views
# defining endpoints
urlpatterns = [
path('', views.index, name='index'),
path('appInfo/', views.index, name='appInfo')
] | 17.923077 | 49 | 0.695279 |
21abd60e1f2686da401cbfb50657967001e634e4 | 593 | py | Python | common/data_refinery_common/migrations/0010_auto_20190125_1655.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 106 | 2018-03-05T16:24:47.000Z | 2022-03-19T19:12:25.000Z | common/data_refinery_common/migrations/0010_auto_20190125_1655.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 1,494 | 2018-02-27T17:02:21.000Z | 2022-03-24T15:10:30.000Z | common/data_refinery_common/migrations/0010_auto_20190125_1655.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 15 | 2019-02-03T01:34:59.000Z | 2022-03-29T01:59:13.000Z | # Generated by Django 2.1.5 on 2019-01-25 16:55
from django.db import migrations, models
| 24.708333 | 75 | 0.588533 |
21af623d6e191cda3a4a98ff6894dd3bac159239 | 570 | py | Python | Python/coins_demo.py | Kodiologist/Citematic | 03710d08d2a928f0b9bf4a37da056b5946a06c47 | [
"Unlicense"
] | 1 | 2016-12-02T20:32:34.000Z | 2016-12-02T20:32:34.000Z | Python/coins_demo.py | Kodiologist/Citematic | 03710d08d2a928f0b9bf4a37da056b5946a06c47 | [
"Unlicense"
] | null | null | null | Python/coins_demo.py | Kodiologist/Citematic | 03710d08d2a928f0b9bf4a37da056b5946a06c47 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from sys import stderr
from os import environ
import yaml, cgi
from citematic_coins import coins
bib_path = environ['DAYLIGHT_BIB_PATH']
with open(bib_path) as o:
database = yaml.load(o)
print('''<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Bibliography ... | 21.923077 | 81 | 0.633333 |
21b2b134eb876a2908c4696de72ff6c0e1d441eb | 4,694 | py | Python | wsgi/scripts/subinfo_aggrgate.py | AlexeyProskuryakov/rr | dcf598405159a48826f4214fa33abcf57418b680 | [
"MIT"
] | null | null | null | wsgi/scripts/subinfo_aggrgate.py | AlexeyProskuryakov/rr | dcf598405159a48826f4214fa33abcf57418b680 | [
"MIT"
] | null | null | null | wsgi/scripts/subinfo_aggrgate.py | AlexeyProskuryakov/rr | dcf598405159a48826f4214fa33abcf57418b680 | [
"MIT"
] | null | null | null | import logging
from Queue import Empty
from multiprocessing import Process, Event
from multiprocessing import Queue as mQ
from threading import Thread
from Queue import Queue as Q
from time import sleep
import praw
from wsgi.engine import get_reposts_count
from wsgi.scripts import GET_USER_AGENT_R
from wsgi.scripts.... | 28.448485 | 112 | 0.626545 |
21b594ae9bbaf94ccb0e9c28f5fa4f7f82326ce0 | 2,955 | py | Python | Wrapping/Generators/Python/itk_generate_pyi.py | rflanz/ITK | 7863da6db1fd541487c9e543308dcfcea26d3261 | [
"Apache-2.0"
] | 1 | 2021-03-17T14:09:24.000Z | 2021-03-17T14:09:24.000Z | Wrapping/Generators/Python/itk_generate_pyi.py | rflanz/ITK | 7863da6db1fd541487c9e543308dcfcea26d3261 | [
"Apache-2.0"
] | null | null | null | Wrapping/Generators/Python/itk_generate_pyi.py | rflanz/ITK | 7863da6db1fd541487c9e543308dcfcea26d3261 | [
"Apache-2.0"
] | null | null | null | from typing import List, Any
import inspect
import importlib
import sys
try:
# First attempt using convention of build directory
from pathlib import Path
wrap_itk_pth: Path = Path(__file__).parent / "WrapITK.pth"
if not wrap_itk_pth.is_file():
print(
"ERROR: itk_generate_pyi.py mu... | 34.360465 | 98 | 0.643655 |
21b6504873c6c422500d4a9c19f2abf9476fba3d | 314 | py | Python | utils.py | hherrerob/Automated-Resume-Screening-System | 4788024d58211b02ccdb4e9599bf08b1a5ceeb40 | [
"MIT"
] | null | null | null | utils.py | hherrerob/Automated-Resume-Screening-System | 4788024d58211b02ccdb4e9599bf08b1a5ceeb40 | [
"MIT"
] | null | null | null | utils.py | hherrerob/Automated-Resume-Screening-System | 4788024d58211b02ccdb4e9599bf08b1a5ceeb40 | [
"MIT"
] | null | null | null | from flask import jsonify
| 17.444444 | 41 | 0.624204 |
21b789e1f1b1d8c14c64211b16ff443f97bbdcbe | 33,445 | py | Python | challenge_submissions/submit_767200/supplements/bot_agent_1.py | opendilab/GoBigger-Challenge-2021 | 794897e94caf15b69635dcb36eb64e1341131db9 | [
"Apache-2.0"
] | 121 | 2021-11-01T01:24:31.000Z | 2022-03-31T10:53:47.000Z | challenge_submissions/submit_767200/supplements/bot_agent_1.py | opendilab/GoBigger-Challenge-2021 | 794897e94caf15b69635dcb36eb64e1341131db9 | [
"Apache-2.0"
] | 2 | 2021-11-06T14:13:00.000Z | 2022-01-25T09:19:41.000Z | challenge_submissions/submit_767200/supplements/bot_agent_1.py | opendilab/GoBigger-Challenge-2021 | 794897e94caf15b69635dcb36eb64e1341131db9 | [
"Apache-2.0"
] | 39 | 2021-11-01T12:48:19.000Z | 2022-03-01T11:23:38.000Z | import math
import os
import random
import logging
import copy
import queue
from pygame.math import Vector2
from gobigger.agents.base_agent import BaseAgent
# from .base_agent import BaseAgent
tabu_size=1
position_size=11
| 54.205835 | 186 | 0.554642 |
21b9e59ea383e0b587806904e6e2bc220070db5a | 682 | py | Python | dummyslurm/setup.py | tdegeus/slurm-epfl | 32def6920d9b76eea184dba4756589264498023d | [
"MIT"
] | null | null | null | dummyslurm/setup.py | tdegeus/slurm-epfl | 32def6920d9b76eea184dba4756589264498023d | [
"MIT"
] | null | null | null | dummyslurm/setup.py | tdegeus/slurm-epfl | 32def6920d9b76eea184dba4756589264498023d | [
"MIT"
] | null | null | null | from setuptools import find_packages
from setuptools import setup
setup(
name="dummyslurm",
license="MIT",
author="Tom de Geus",
author_email="tom@geus.me",
description="Dummy slurm installation",
long_description="Dummy slurm installation",
keywords="SLURM",
url="https://github.com/tde... | 27.28 | 48 | 0.623167 |
21bfdd60daace63bc8e65a94ab93a210963d26b5 | 3,576 | py | Python | examples/radial_menu.py | MiguelRobledo/workshop.py | 0159eb752e3154d4eb051fdf242a9d0157ab0887 | [
"MIT"
] | 1 | 2019-05-28T15:01:13.000Z | 2019-05-28T15:01:13.000Z | examples/radial_menu.py | MiguelRobledo/workshop.py | 0159eb752e3154d4eb051fdf242a9d0157ab0887 | [
"MIT"
] | null | null | null | examples/radial_menu.py | MiguelRobledo/workshop.py | 0159eb752e3154d4eb051fdf242a9d0157ab0887 | [
"MIT"
] | null | null | null | # Original by /u/Oran9eUtan
# https://redd.it/bq45gc
# Converted to Python by Peppermint#2241
each_player = ongoing_each_player(all, all)
n_allowed_heroes = count_of(allowed_heroes(event_player))
interact_pressed = is_button_held(event_player, interact)
eye_pos = eye_position(event_player)
rule "Reset menu positions ... | 29.311475 | 164 | 0.756991 |
21c1c1fd0d436d4aa0d902e64ebd89bf247f49da | 948 | py | Python | chapter1/problem_1_20.py | JBannwarth/OrbitalMechanics | fe3c36eba7cadf977804fb2ad866e0e28a96aab5 | [
"MIT"
] | 1 | 2020-08-29T13:34:48.000Z | 2020-08-29T13:34:48.000Z | chapter1/problem_1_20.py | JBannwarth/OrbitalMechanics | fe3c36eba7cadf977804fb2ad866e0e28a96aab5 | [
"MIT"
] | 1 | 2020-09-06T21:17:51.000Z | 2020-09-07T00:52:39.000Z | chapter1/problem_1_20.py | JBannwarth/OrbitalMechanics | fe3c36eba7cadf977804fb2ad866e0e28a96aab5 | [
"MIT"
] | null | null | null | """ Orbital Mechanics for Engineering Students Problem 1.20
Question:
Numerically solve the second order-differential equation
t*yDDot + t^2*yDot - 2*y = 0
for y at t = 4, if the initial conditions at t=1 are:
- y = 0
- yDot = 1
Written by: J.X.J. Bannwarth
"""
import numpy as np
import matplotlib... | 21.545455 | 65 | 0.607595 |
21c3e1098557143ef1907dc94df0967ca35bba38 | 6,401 | py | Python | regularized-wasserstein-estimator/optimization.py | MarinBallu/regularized-wasserstein-estimator | aeb21778180a5f7b88789ac9640bf0aa90a07552 | [
"MIT"
] | null | null | null | regularized-wasserstein-estimator/optimization.py | MarinBallu/regularized-wasserstein-estimator | aeb21778180a5f7b88789ac9640bf0aa90a07552 | [
"MIT"
] | null | null | null | regularized-wasserstein-estimator/optimization.py | MarinBallu/regularized-wasserstein-estimator | aeb21778180a5f7b88789ac9640bf0aa90a07552 | [
"MIT"
] | null | null | null | from initialize import initialize
import timeit
import numpy as np
import computations
### STOCHASTIC GRADIENT DESCENT
def sgd_entropic_regularization(a, b, M, reg1, reg2, numItermax, lr, maxTime):
r'''
Compute the sgd algorithm with one-sized batches to solve the regularized discrete measures
ot dual estim... | 32.165829 | 157 | 0.683331 |
21c44a1f70cf3b10e10c40da9f79c822ef4ae113 | 8,798 | py | Python | boilerplate_app/tests.py | rishabhst/graph_test_task | 5d342b077401903cf642bfdc8c49a1edb83ec9d7 | [
"MIT"
] | null | null | null | boilerplate_app/tests.py | rishabhst/graph_test_task | 5d342b077401903cf642bfdc8c49a1edb83ec9d7 | [
"MIT"
] | 2 | 2020-06-05T20:42:56.000Z | 2021-06-10T21:25:31.000Z | boilerplate_app/tests.py | rishabhst/graph_test_task | 5d342b077401903cf642bfdc8c49a1edb83ec9d7 | [
"MIT"
] | null | null | null | # from model_mommy import mommy
# from django.test import TestCase
# from rest_framework_jwt.serializers import JSONWebTokenSerializer
# from boilerplate_app.models import User
# from boilerplate_app.serializers import UserListSerializer, UserCreateSerializer
# class APITests(TestCase):
# def test_list_user(... | 39.630631 | 247 | 0.5599 |
21c45eed900d2bb1c867cbce3f567b86b198b8b5 | 984 | py | Python | utils.py | NeuralBending/stylegan2-ada-pytorch | c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217 | [
"BSD-Source-Code"
] | null | null | null | utils.py | NeuralBending/stylegan2-ada-pytorch | c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217 | [
"BSD-Source-Code"
] | null | null | null | utils.py | NeuralBending/stylegan2-ada-pytorch | c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217 | [
"BSD-Source-Code"
] | null | null | null | import torch
| 25.230769 | 92 | 0.627033 |
21c54b7a57604b5f308ac3aab04a31a32f5f6b7c | 1,853 | py | Python | igvm/exceptions.py | lamaral/igvm | ac44a4ba6830433b3040405d7da98067d9f025a3 | [
"MIT"
] | 14 | 2018-02-15T14:09:54.000Z | 2021-07-19T01:55:58.000Z | igvm/exceptions.py | lamaral/igvm | ac44a4ba6830433b3040405d7da98067d9f025a3 | [
"MIT"
] | 129 | 2018-02-19T09:47:18.000Z | 2022-03-02T14:08:10.000Z | igvm/exceptions.py | lamaral/igvm | ac44a4ba6830433b3040405d7da98067d9f025a3 | [
"MIT"
] | 10 | 2018-02-16T15:56:59.000Z | 2021-05-14T23:31:31.000Z | """igvm - Exceptions
Copyright (c) 2018 InnoGames GmbH
"""
| 20.820225 | 66 | 0.642742 |
21c55a05f8ceabf205b5ec79ef418e96dcbdd37a | 16,275 | py | Python | test/test.py | Kenneth-T-Moore/PlantEnergy | e0511b68e279c99a19cc88c2c1d5c61f4e7b822d | [
"Apache-2.0"
] | null | null | null | test/test.py | Kenneth-T-Moore/PlantEnergy | e0511b68e279c99a19cc88c2c1d5c61f4e7b822d | [
"Apache-2.0"
] | null | null | null | test/test.py | Kenneth-T-Moore/PlantEnergy | e0511b68e279c99a19cc88c2c1d5c61f4e7b822d | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
import cPickle as pickle
import os
from wakeexchange.OptimizationGroups import AEPGroup
from fusedwake.WindTurbine import WindTurbine
from fusedwake.WindFarm import WindFarm
from windIO.Plant import WTLayout, yaml
from openmdao.api import Problem
# class TestJensenWrapper(unitte... | 40.185185 | 133 | 0.574255 |
21c6d0b4b938001532a3640675f298b2bb5fd68b | 3,045 | py | Python | examples/ernie_sat/local/sedit_arg_parser.py | Mu-L/PaddleSpeech | 0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d | [
"Apache-2.0"
] | null | null | null | examples/ernie_sat/local/sedit_arg_parser.py | Mu-L/PaddleSpeech | 0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d | [
"Apache-2.0"
] | null | null | null | examples/ernie_sat/local/sedit_arg_parser.py | Mu-L/PaddleSpeech | 0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d | [
"Apache-2.0"
] | null | null | null | import argparse
| 35.823529 | 102 | 0.622332 |
21c6e54c53dfc95007e5b2f40fa0f3853059cf5f | 1,054 | py | Python | alg3dpy/tests/test_vector.py | saullocastro/alg3dpy | a3bf5fcef177a869447661166bf4aa7ef4365568 | [
"BSD-3-Clause"
] | 2 | 2019-02-05T06:12:27.000Z | 2020-03-15T21:37:33.000Z | alg3dpy/tests/test_vector.py | saullocastro/alg3dpy | a3bf5fcef177a869447661166bf4aa7ef4365568 | [
"BSD-3-Clause"
] | null | null | null | alg3dpy/tests/test_vector.py | saullocastro/alg3dpy | a3bf5fcef177a869447661166bf4aa7ef4365568 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
| 35.133333 | 53 | 0.594877 |
21c9f21c6cd6f96ad31cddc81cac13f24697fdd7 | 16,697 | py | Python | tool/merganser/data_retrieval2.py | ualberta-smr/conflict-prediction | 6cd2c54a8af991256d0a2f85c3ab5d828ea2c3f8 | [
"MIT"
] | 4 | 2019-08-04T03:36:51.000Z | 2020-09-17T18:13:45.000Z | tool/merganser/data_retrieval2.py | ualberta-smr/conflict-prediction | 6cd2c54a8af991256d0a2f85c3ab5d828ea2c3f8 | [
"MIT"
] | null | null | null | tool/merganser/data_retrieval2.py | ualberta-smr/conflict-prediction | 6cd2c54a8af991256d0a2f85c3ab5d828ea2c3f8 | [
"MIT"
] | 1 | 2019-06-11T21:15:34.000Z | 2019-06-11T21:15:34.000Z |
import os
import pandas as pd
import numpy as np
from io import StringIO
import config
import logging
import pandas as pd
import pymysql
from sqlalchemy import create_engine
# Logging
logging.basicConfig(level=logging.INFO,
format='%(levelname)s in %(threadName)s - %(asctime)s by %(name)-12s :... | 61.386029 | 164 | 0.605199 |
21cc703f3d4a4b8a67ee7e2ea3bf7802d6b33e52 | 977 | py | Python | testData/typeinspectionv18/overrideInit.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 238 | 2019-08-05T12:46:09.000Z | 2022-03-25T08:53:25.000Z | testData/typeinspectionv18/overrideInit.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 415 | 2019-07-15T17:39:35.000Z | 2022-03-31T01:18:38.000Z | testData/typeinspectionv18/overrideInit.py | collerek/pydantic-pycharm-plugin | 7068ece42334cc9fbe927d779d199c86d5139888 | [
"Apache-2.0",
"MIT"
] | 7 | 2019-08-09T01:03:16.000Z | 2022-02-08T03:28:19.000Z | from pydantic import BaseModel
A()
B(abc='123'<warning descr="null">)</warning>
class C(BaseModel):
abc: str = '123'
C(abc='123'<warning descr="null">)</warning>
# class D(BaseModel):
# abc: str = '123'
# def __init__(self, *a):
# pass
#
# C(abc='123')
#
# class E(BaseModel):
# abc: str = '... | 17.446429 | 47 | 0.549642 |
21cd10ec0c43a2a5245ac89b17664c6b6824fc20 | 12,948 | py | Python | gmusicapi_wrapper/utils.py | dmoebius/gmusicapi-wrapper | 8708683cd33955def1378fc28319ef37805b851d | [
"MIT"
] | 20 | 2015-08-29T15:35:22.000Z | 2018-09-29T06:16:15.000Z | gmusicapi_wrapper/utils.py | dmoebius/gmusicapi-wrapper | 8708683cd33955def1378fc28319ef37805b851d | [
"MIT"
] | 17 | 2015-02-28T17:19:30.000Z | 2018-06-08T10:33:29.000Z | gmusicapi_wrapper/utils.py | dmoebius/gmusicapi-wrapper | 8708683cd33955def1378fc28319ef37805b851d | [
"MIT"
] | 11 | 2015-12-11T15:20:24.000Z | 2019-02-13T18:54:11.000Z | # coding=utf-8
"""Utility functions for gmusicapi_wrapper.
>>> import gmusicapi_wrapper.utils as gmw_utils
>>> from gmusicapi_wrapper.utils import ...
"""
import logging
import os
import re
import subprocess
import mutagen
from .constants import CHARACTER_REPLACEMENTS, CYGPATH_RE, TEMPLATE_PATTERNS
from .decorat... | 30.902148 | 121 | 0.742431 |
21cf17efec6eb019292dc869b1f00c24149cffb4 | 4,402 | py | Python | restructuredBootstrap/custom_pygments_style.py | lakhman/restructuredBootstrap | 57002c6db2d3b5b97dc23820b91711db4f00c07e | [
"MIT"
] | 1 | 2020-08-30T08:58:46.000Z | 2020-08-30T08:58:46.000Z | restructuredBootstrap/custom_pygments_style.py | lakhman/restructuredBootstrap | 57002c6db2d3b5b97dc23820b91711db4f00c07e | [
"MIT"
] | null | null | null | restructuredBootstrap/custom_pygments_style.py | lakhman/restructuredBootstrap | 57002c6db2d3b5b97dc23820b91711db4f00c07e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2017 - Anil Lakhman - MIT License
# -----------------------------------------------------------------------------
from pygments.style import Style
from pygments.token import Keyw... | 48.911111 | 105 | 0.537483 |
21d125253f8a5cda1806b69aa7684a98a8e79afe | 161 | py | Python | best_cn_finetune/preprocess/__init__.py | you-know-who-2017/QA_MRC | 323591995ac4ca0ca39e6101f6ff1c6f88104bc8 | [
"MIT"
] | null | null | null | best_cn_finetune/preprocess/__init__.py | you-know-who-2017/QA_MRC | 323591995ac4ca0ca39e6101f6ff1c6f88104bc8 | [
"MIT"
] | null | null | null | best_cn_finetune/preprocess/__init__.py | you-know-who-2017/QA_MRC | 323591995ac4ca0ca39e6101f6ff1c6f88104bc8 | [
"MIT"
] | null | null | null | '''
Author: geekli
Date: 2020-12-28 15:53:18
LastEditTime: 2020-12-28 15:53:19
LastEditors: your name
Description:
FilePath: \QA_MRC\preprocess\__init__.py
'''
| 17.888889 | 40 | 0.745342 |
21d2b7b6aeb4285360c3d0b80011bc93dc5f393f | 1,225 | py | Python | pyleecan/Methods/Geometry/Segment/discretize.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | pyleecan/Methods/Geometry/Segment/discretize.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | pyleecan/Methods/Geometry/Segment/discretize.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | # -*- coding: utf-8 -*-
from numpy import linspace
from ....Methods.Machine import LINE_NPOINT_D
from ....Methods.Geometry.Segment import NbPointSegmentDError
def discretize(self, nb_point=LINE_NPOINT_D):
"""Return the discretize version of the Segment.
Begin and end are always returned
Parameters
-... | 26.630435 | 86 | 0.648163 |
21d5966b8848acc25706e3eb669f0243b618f52f | 5,258 | py | Python | rrtimetable/rrtimetable/gtfs2rrrr.py | oooits72/rrrr | 32e98bc593a853008864a130e5c26c113a5f2c7d | [
"BSD-2-Clause"
] | null | null | null | rrtimetable/rrtimetable/gtfs2rrrr.py | oooits72/rrrr | 32e98bc593a853008864a130e5c26c113a5f2c7d | [
"BSD-2-Clause"
] | null | null | null | rrtimetable/rrtimetable/gtfs2rrrr.py | oooits72/rrrr | 32e98bc593a853008864a130e5c26c113a5f2c7d | [
"BSD-2-Clause"
] | null | null | null | from model.transit import *
from gtfsdb import GTFSDatabase
import sys
from exporter.timetable3 import export
import exporter.timetable4
from datetime import timedelta, date
MAX_DAYS = 32
from optparse import OptionParser
if __name__=='__main__':
main()
| 38.948148 | 174 | 0.686383 |
21d6e2f4acb563e98c1f7995f076c322bbe9c38d | 329 | py | Python | images.py | rvg77/Weather_bot | 4716c7cfa22740dc05dfe768b1150e69a8d80cf4 | [
"MIT"
] | null | null | null | images.py | rvg77/Weather_bot | 4716c7cfa22740dc05dfe768b1150e69a8d80cf4 | [
"MIT"
] | null | null | null | images.py | rvg77/Weather_bot | 4716c7cfa22740dc05dfe768b1150e69a8d80cf4 | [
"MIT"
] | null | null | null | from flickrapi import FlickrAPI
import config
| 32.9 | 112 | 0.705167 |
21d6f524d8375ab9d0bc8eed28866f2443f50ef1 | 2,340 | py | Python | Grid/grid_multi_yaxis.py | pyecharts/pyecharts_gallery | 8430c37df923860b36c9d1d86f2adc9d94b9d72c | [
"MIT"
] | 759 | 2019-04-28T22:42:10.000Z | 2022-03-31T12:32:10.000Z | Grid/grid_multi_yaxis.py | pyecharts/pyecharts_gallery | 8430c37df923860b36c9d1d86f2adc9d94b9d72c | [
"MIT"
] | 65 | 2019-06-10T07:38:25.000Z | 2022-03-24T10:10:03.000Z | Grid/grid_multi_yaxis.py | pyecharts/pyecharts_gallery | 8430c37df923860b36c9d1d86f2adc9d94b9d72c | [
"MIT"
] | 505 | 2019-04-28T08:45:33.000Z | 2022-03-29T07:08:33.000Z | from pyecharts import options as opts
from pyecharts.charts import Bar, Grid, Line
x_data = ["{}".format(i) for i in range(1, 13)]
bar = (
Bar()
.add_xaxis(x_data)
.add_yaxis(
"",
[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
yaxis_index=0,
color="#d... | 28.536585 | 88 | 0.525214 |
21d9cfb9234f93c241128ce45315616d74f27dd4 | 1,128 | py | Python | ketchuporo/main.py | v0y/ketchuporo | 1e4f7e487ad2cbc36acbee5cb3271b2c20411a98 | [
"MIT"
] | null | null | null | ketchuporo/main.py | v0y/ketchuporo | 1e4f7e487ad2cbc36acbee5cb3271b2c20411a98 | [
"MIT"
] | null | null | null | ketchuporo/main.py | v0y/ketchuporo | 1e4f7e487ad2cbc36acbee5cb3271b2c20411a98 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from kivy.app import App
from kivy.core.text import LabelBase
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager
from ketchuporo.const import Files
from ketchuporo.controllers import (
BreakScreen,
BreaksOverScreen,
PomodorosOverScreen,
SettingsScree... | 25.636364 | 79 | 0.786348 |
21dbf18ded51471b26713067cee205902e797c4d | 139 | py | Python | output/models/ms_data/particles/particles_b010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/particles/particles_b010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/particles/particles_b010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.particles.particles_b010_xsd.particles_b010 import (
Doc,
Elem,
)
__all__ = [
"Doc",
"Elem",
]
| 13.9 | 79 | 0.654676 |
21dc9a19d80f7a66fcdb3bf1134d323402812861 | 379 | py | Python | reading_plan/reading_plan.py | hidenori-t/snippet | d850bd429931f9268162419d3fb8d7803e58cff3 | [
"MIT"
] | 1 | 2020-06-19T10:06:37.000Z | 2020-06-19T10:06:37.000Z | reading_plan/reading_plan.py | hidenori-t/snippet | d850bd429931f9268162419d3fb8d7803e58cff3 | [
"MIT"
] | null | null | null | reading_plan/reading_plan.py | hidenori-t/snippet | d850bd429931f9268162419d3fb8d7803e58cff3 | [
"MIT"
] | null | null | null | #
from datetime import date
| 34.454545 | 70 | 0.638522 |
21dee0f109bef7ebd1561c75c737422f8c744405 | 6,144 | py | Python | tests/benchmark/runners/test_constant.py | kambiz-aghaiepour/rally | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | [
"Apache-2.0"
] | 1 | 2020-09-09T19:01:41.000Z | 2020-09-09T19:01:41.000Z | tests/benchmark/runners/test_constant.py | kambiz-aghaiepour/rally | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | [
"Apache-2.0"
] | null | null | null | tests/benchmark/runners/test_constant.py | kambiz-aghaiepour/rally | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | [
"Apache-2.0"
] | 1 | 2020-09-09T19:01:43.000Z | 2020-09-09T19:01:43.000Z | # Copyright 2014: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 43.574468 | 79 | 0.65332 |
21e208b57e398b0bb168739f3f960a4bcb46ffb1 | 603 | py | Python | FRMinutesDiscoutRate-BS.py | henchc/web-scrapers | e9f852524fce8ba8c3948f6de242185220a436cb | [
"MIT"
] | 15 | 2017-11-03T20:44:26.000Z | 2022-01-02T22:07:15.000Z | FRMinutesDiscoutRate-BS.py | henchc/web-scrapers | e9f852524fce8ba8c3948f6de242185220a436cb | [
"MIT"
] | null | null | null | FRMinutesDiscoutRate-BS.py | henchc/web-scrapers | e9f852524fce8ba8c3948f6de242185220a436cb | [
"MIT"
] | 1 | 2020-09-26T22:52:51.000Z | 2020-09-26T22:52:51.000Z | from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.federalreserve.gov/monetarypolicy/discountrate.htm")
bsObj = BeautifulSoup(html.read(), "lxml")
d1 = bsObj.findAll("option")
urls = []
for item in d1:
if "PDF" in str(item.get_text()):
prefix = "http://ww... | 24.12 | 79 | 0.640133 |
21e2ac869244887a79d078c7ec21be9ea889f1fc | 644 | py | Python | py_analysis_quick_start/temp_line.py | jack-zheng/olm-analysis | 16bdc06ece9c2b42983722b37d1c1688eaa90e0f | [
"MIT"
] | null | null | null | py_analysis_quick_start/temp_line.py | jack-zheng/olm-analysis | 16bdc06ece9c2b42983722b37d1c1688eaa90e0f | [
"MIT"
] | null | null | null | py_analysis_quick_start/temp_line.py | jack-zheng/olm-analysis | 16bdc06ece9c2b42983722b37d1c1688eaa90e0f | [
"MIT"
] | null | null | null | import random
import matplotlib
from matplotlib import pyplot as plt
#
# Windows/Linus
font = {'family' : 'MicroSoft Yahei', 'weight': 'bold', 'size': '9'}
matplotlib.rc("font", **font)
# 20x8
fig = plt.figure(figsize=(20, 8), dpi=80)
y = [random.randint(20, 35) for i in range(120)]
x = range(120)
plt.plot(x, y)... | 21.466667 | 68 | 0.664596 |
21e471824751e8af9bd25739b53726fcca933cea | 13,846 | py | Python | src/genie/libs/parser/sros/tests/test_show_isis.py | svautour/genieparser | 7416c9a4b44582be835a0646fb7fad92a5181c7d | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/sros/tests/test_show_isis.py | svautour/genieparser | 7416c9a4b44582be835a0646fb7fad92a5181c7d | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/sros/tests/test_show_isis.py | svautour/genieparser | 7416c9a4b44582be835a0646fb7fad92a5181c7d | [
"Apache-2.0"
] | null | null | null | import unittest
import time
from unittest.mock import Mock
from pyats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError,\
SchemaMissingKeyError
from genie.libs.parser.sros.show_isis import ShowRouterIsisAdjacency,\
... | 46.619529 | 84 | 0.336776 |
21e4e94462869b5e4859a8999659718ac1c5f326 | 935 | py | Python | main.py | gaurav-karna/ReminderBot | e9c37f1c62a6b0f3e9f69ec5cc983ce2334ae6db | [
"MIT"
] | null | null | null | main.py | gaurav-karna/ReminderBot | e9c37f1c62a6b0f3e9f69ec5cc983ce2334ae6db | [
"MIT"
] | null | null | null | main.py | gaurav-karna/ReminderBot | e9c37f1c62a6b0f3e9f69ec5cc983ce2334ae6db | [
"MIT"
] | null | null | null | from sys import exit
import argparse
ALL_ARGS = None
# found a free server to execute blindly, will update with CRON if need be
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='CRON setup to send reminder texts')
parser.add_argument('--cron', action='store_true')
parser.add_ar... | 28.333333 | 91 | 0.652406 |
21e56d9e00f8e568b7ebb5d7d2e6c10697c117cb | 1,846 | py | Python | tests/test_model.py | JanCVanB/netflix | e3ff4feab832846640dbb3daa5877ef84a00adaf | [
"MIT"
] | 22 | 2016-12-14T03:58:28.000Z | 2021-03-07T00:10:05.000Z | tests/test_model.py | JanCVanB/netflix | e3ff4feab832846640dbb3daa5877ef84a00adaf | [
"MIT"
] | 1 | 2015-06-16T07:30:35.000Z | 2015-06-16T07:39:18.000Z | tests/test_model.py | jvanbrug/netflix | e3ff4feab832846640dbb3daa5877ef84a00adaf | [
"MIT"
] | 5 | 2016-12-05T08:55:15.000Z | 2017-11-01T23:33:05.000Z | import numpy as np
import os
import pickle
import random
from algorithms import model as model_algorithm
from utils import data_paths
| 33.563636 | 77 | 0.641387 |
21e5dbdb2f7dff7b8135ef888c0daf3f4d0890d1 | 2,296 | py | Python | tests/test_validate.py | leipzig/xd-cwl-utils | 28d875ad7804c0e787d46f82a67a6b9d24d73679 | [
"Apache-2.0"
] | null | null | null | tests/test_validate.py | leipzig/xd-cwl-utils | 28d875ad7804c0e787d46f82a67a6b9d24d73679 | [
"Apache-2.0"
] | null | null | null | tests/test_validate.py | leipzig/xd-cwl-utils | 28d875ad7804c0e787d46f82a67a6b9d24d73679 | [
"Apache-2.0"
] | null | null | null |
from tests.test_base import TestBase
from pathlib import Path
from xd_cwl_utils.helpers.get_paths import get_tool_metadata
from xd_cwl_utils.validate import metadata_validator_factory
from xd_cwl_utils.classes.metadata.tool_metadata import ParentToolMetadata, SubtoolMetadata
| 43.320755 | 209 | 0.752178 |
21e6f2feb888d1690e95e165f59b5155700dbb10 | 533 | py | Python | serenote/utils/alert.py | LeptoFlare/todo-bot | 5c619abe421e4731c0dbc73561fbbd4a20839422 | [
"MIT"
] | 3 | 2020-10-07T04:41:25.000Z | 2021-04-23T19:52:53.000Z | serenote/utils/alert.py | LeptoFlare/serenote | 5c619abe421e4731c0dbc73561fbbd4a20839422 | [
"MIT"
] | 8 | 2020-10-07T00:13:00.000Z | 2020-11-23T09:01:08.000Z | serenote/utils/alert.py | LeptoFlare/serenote | 5c619abe421e4731c0dbc73561fbbd4a20839422 | [
"MIT"
] | null | null | null | import discord
| 26.65 | 87 | 0.628518 |
21e79dcdcdee9f92045ac51d4e85b03f25e5e3c8 | 2,616 | py | Python | fixture/project.py | AleksandrSmoliak/mantis | be0f48a6a63a2b955755031a721db7fb8761fe97 | [
"Apache-2.0"
] | null | null | null | fixture/project.py | AleksandrSmoliak/mantis | be0f48a6a63a2b955755031a721db7fb8761fe97 | [
"Apache-2.0"
] | null | null | null | fixture/project.py | AleksandrSmoliak/mantis | be0f48a6a63a2b955755031a721db7fb8761fe97 | [
"Apache-2.0"
] | null | null | null | from model.project import Project | 42.193548 | 130 | 0.65367 |
21e821b8f988e5658b9c301ffb5c85c84dc141ff | 773 | py | Python | main.py | icarus747/DCS_MGRS_Converter | 3ce687a697f1313658726a8881c134d321d67c22 | [
"MIT"
] | null | null | null | main.py | icarus747/DCS_MGRS_Converter | 3ce687a697f1313658726a8881c134d321d67c22 | [
"MIT"
] | 1 | 2020-10-12T20:11:27.000Z | 2020-10-12T22:33:23.000Z | main.py | icarus747/DCS_MGRS_Converter | 3ce687a697f1313658726a8881c134d321d67c22 | [
"MIT"
] | 1 | 2020-10-12T16:43:15.000Z | 2020-10-12T16:43:15.000Z | #!/usr/bin/env python3
# By Icarus747
# Created 10/11/2020
# Used for converting DCS MGRS grid coordinates to Lat/Long coordinates.
import mgrs
import re
if __name__ == '__main__':
main()
| 20.342105 | 72 | 0.575679 |
21ea48feb3e6f28dc69bc7b3d03c6225f2e7de16 | 637 | py | Python | backend/management/commands/setentryfolder.py | Software-Engineering-Bachelor-Project/mycroft | 8ca3b6bfaa7b573f67def06c637f3c57838440a4 | [
"MIT"
] | 5 | 2020-03-01T11:17:09.000Z | 2021-07-08T20:45:47.000Z | backend/management/commands/setentryfolder.py | Software-Engineering-Bachelor-Project/mycroft | 8ca3b6bfaa7b573f67def06c637f3c57838440a4 | [
"MIT"
] | 245 | 2020-03-28T11:59:12.000Z | 2020-05-26T10:05:22.000Z | backend/management/commands/setentryfolder.py | Software-Engineering-Bachelor-Project/mycroft | 8ca3b6bfaa7b573f67def06c637f3c57838440a4 | [
"MIT"
] | 5 | 2020-02-03T08:15:13.000Z | 2020-04-15T07:22:47.000Z | from django.core.management.base import BaseCommand
from backend.file_manager import build_file_structure
| 33.526316 | 76 | 0.66876 |
21eb2ec30e5683c312af0b66057c5639110b2683 | 2,149 | py | Python | work/adder.py | MorrisMA/py65 | bda1553ff88fc577944bde3d7cb3e75a3b83ccfa | [
"BSD-3-Clause"
] | null | null | null | work/adder.py | MorrisMA/py65 | bda1553ff88fc577944bde3d7cb3e75a3b83ccfa | [
"BSD-3-Clause"
] | null | null | null | work/adder.py | MorrisMA/py65 | bda1553ff88fc577944bde3d7cb3e75a3b83ccfa | [
"BSD-3-Clause"
] | null | null | null | from math import *
N = 8
V = 4
Z = 2
C = 1
wordSign = 1 << 11
wordMask = (1 << 12) - 1
byteSign = 1 << 7
byteMask = (1 << 8) - 1
print(N, V, Z, C, '%04X %04X %02X %02X' % (wordSign, wordMask, \
byteSign, byteMask))
stat ={0 :'----',
1 :'---C',
2 :'--Z-',
... | 24.988372 | 69 | 0.378781 |
21eb9b89af0ad48429a382f4d21858a52a5325a0 | 324 | py | Python | serve/utils.py | bvshyam/facegeneration_gan_sagemaker | d6bdb174bf1918d3e0823777c9f61437c8418b7a | [
"MIT"
] | 9 | 2020-06-08T15:28:17.000Z | 2021-12-27T12:47:37.000Z | serve/utils.py | bvshyam/facegeneration_gan_sagemaker | d6bdb174bf1918d3e0823777c9f61437c8418b7a | [
"MIT"
] | 1 | 2021-08-28T02:50:04.000Z | 2021-08-28T02:50:04.000Z | serve/utils.py | bvshyam/facegeneration_gan_sagemaker | d6bdb174bf1918d3e0823777c9f61437c8418b7a | [
"MIT"
] | 4 | 2021-02-22T03:41:37.000Z | 2021-12-27T12:52:56.000Z | import numpy as np
import pickle
import os
import glob
import torch
| 17.052632 | 60 | 0.67284 |
21ed527c3321a9993fe603a88785851b9688cff9 | 2,289 | py | Python | optimism/contact/PenaltyContact.py | btalamini/optimism | 023e1b2a0b137900a7517e4c7ac5056255cf7bbe | [
"MIT"
] | null | null | null | optimism/contact/PenaltyContact.py | btalamini/optimism | 023e1b2a0b137900a7517e4c7ac5056255cf7bbe | [
"MIT"
] | 1 | 2022-03-12T00:01:12.000Z | 2022-03-12T00:01:12.000Z | optimism/contact/PenaltyContact.py | btalamini/optimism | 023e1b2a0b137900a7517e4c7ac5056255cf7bbe | [
"MIT"
] | 3 | 2021-12-23T19:53:31.000Z | 2022-03-27T23:12:03.000Z | from optimism.JaxConfig import *
from optimism import Mesh
from optimism import QuadratureRule
from optimism import Surface
import numpy as onp
| 40.875 | 145 | 0.7737 |
21ee589b914a86f78fa5eda580da880b00125bd4 | 1,970 | py | Python | nlplingo/oregon/event_models/uoregon/layers/elmo.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | 3 | 2020-10-22T13:28:00.000Z | 2022-03-24T19:57:22.000Z | nlplingo/oregon/event_models/uoregon/layers/elmo.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | null | null | null | nlplingo/oregon/event_models/uoregon/layers/elmo.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | 1 | 2020-10-22T13:29:51.000Z | 2020-10-22T13:29:51.000Z | import torch
from torch.nn import ParameterList, Parameter
| 34.561404 | 103 | 0.607614 |
21f0610f9c429eafbd7f7a9b6735df0089388e4e | 1,035 | py | Python | e-mail/enviar_email.py | HeyLucasLeao/HeyLucasLeao.github.io | 5c5da105763bbaeb3391ca716a09e87490b6eb1f | [
"MIT"
] | 1 | 2021-05-14T22:42:02.000Z | 2021-05-14T22:42:02.000Z | e-mail/enviar_email.py | HeyLucasLeao/HeyLucasLeao.github.io | 5c5da105763bbaeb3391ca716a09e87490b6eb1f | [
"MIT"
] | null | null | null | e-mail/enviar_email.py | HeyLucasLeao/HeyLucasLeao.github.io | 5c5da105763bbaeb3391ca716a09e87490b6eb1f | [
"MIT"
] | null | null | null | import smtplib
from email.message import EmailMessage
from os import environ
from time import sleep
from datetime import datetime
"""envio um alerta sobre atualizao do relatrio
para pessoas prximas, utilizando um gmail bot"""
enderecos_de_usuarios = environ.get("ADRESS_USERS")
emails = enderecos_de_usuarios.split(',... | 25.243902 | 77 | 0.700483 |
21f0a27826fe6d05bf6a7d288647b63d5e047d8e | 112 | py | Python | battlehack20/engine/__init__.py | cooljoseph1/battlehack20-minimal | 3a1207b7eeb48123664d870706971907bbe8c101 | [
"MIT"
] | 1 | 2021-01-01T19:02:34.000Z | 2021-01-01T19:02:34.000Z | battlehack20/engine/__init__.py | cooljoseph1/battlehack20-minimal | 3a1207b7eeb48123664d870706971907bbe8c101 | [
"MIT"
] | null | null | null | battlehack20/engine/__init__.py | cooljoseph1/battlehack20-minimal | 3a1207b7eeb48123664d870706971907bbe8c101 | [
"MIT"
] | null | null | null | from .container import CodeContainer
from .game import Game, GameConstants
from .basicviewer import BasicViewer
| 28 | 37 | 0.848214 |
21f19e371c588730cf753a1e2c9dc29cf4e55481 | 5,082 | py | Python | walter/common/walterWidgets/walterBaseVariantsMenu.py | all-in-one-of/OpenWalter | c2034f7fac20b36ffe3e500c01d40b87e84e2b97 | [
"libtiff"
] | 187 | 2018-08-14T19:06:20.000Z | 2022-03-04T06:03:25.000Z | walter/common/walterWidgets/walterBaseVariantsMenu.py | all-in-one-of/OpenWalter | c2034f7fac20b36ffe3e500c01d40b87e84e2b97 | [
"libtiff"
] | 9 | 2018-08-22T15:34:48.000Z | 2019-11-27T13:45:21.000Z | walter/common/walterWidgets/walterBaseVariantsMenu.py | all-in-one-of/OpenWalter | c2034f7fac20b36ffe3e500c01d40b87e84e2b97 | [
"libtiff"
] | 41 | 2018-08-14T19:06:09.000Z | 2021-09-04T20:01:10.000Z | """
Base classes for USD variants. It's written on Python to be
able to use complex UI and PySide.
"""
# Copyright 2017 Rodeo FX. All rights reserved.
import json
from .Qt import QtWidgets
from walterComplexMenu import ComplexMenu
| 30.987805 | 82 | 0.62436 |
21f21031be862a43049f9bef4b7aeb870a9264f2 | 173 | py | Python | Chapter12/programs/prog06.py | gits00/raspberry-pi-computer-vision-programming | dfd5588c5d3e410945f862427c0f987536b04d9f | [
"MIT"
] | 17 | 2020-08-08T20:47:29.000Z | 2022-03-12T03:08:21.000Z | Chapter12/programs/prog06.py | gits00/raspberry-pi-computer-vision-programming | dfd5588c5d3e410945f862427c0f987536b04d9f | [
"MIT"
] | 1 | 2020-07-27T09:57:19.000Z | 2020-08-18T10:57:31.000Z | Chapter12/programs/prog06.py | gits00/raspberry-pi-computer-vision-programming | dfd5588c5d3e410945f862427c0f987536b04d9f | [
"MIT"
] | 15 | 2020-06-30T01:52:06.000Z | 2022-02-08T08:28:48.000Z | import matplotlib.pyplot as plt
import mahotas
photo = mahotas.demos.load('luispedro')
photo = mahotas.colors.rgb2sepia(photo)
plt.imshow(photo)
plt.axis('off')
plt.show()
| 19.222222 | 39 | 0.768786 |
21f244a8537b9d091ee8fe82b19616dc52ef2d25 | 4,983 | py | Python | src/speechless/readers/audio.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | 1 | 2022-03-17T14:51:41.000Z | 2022-03-17T14:51:41.000Z | src/speechless/readers/audio.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | 14 | 2021-06-23T02:27:22.000Z | 2021-11-27T15:43:39.000Z | src/speechless/readers/audio.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | null | null | null | import subprocess
import av
import numpy as np
from av.audio.frame import format_dtypes
from typing import Dict, Generator, Tuple
from logging import Logger
from pathlib import Path
from enum import Enum, auto
from speechless.utils.logging import NULL_LOGGER
def read_entire_audio(file_path: str,
... | 37.75 | 100 | 0.675095 |
21f39b184cd5ca7c84021b18a3faeb579b594682 | 413 | py | Python | scripts/multi_sound.py | deeredman1991/Simple-Mod-Loader | 00fd342b43132d4ee1bd8ef9ac0910d02fece737 | [
"MIT"
] | null | null | null | scripts/multi_sound.py | deeredman1991/Simple-Mod-Loader | 00fd342b43132d4ee1bd8ef9ac0910d02fece737 | [
"MIT"
] | null | null | null | scripts/multi_sound.py | deeredman1991/Simple-Mod-Loader | 00fd342b43132d4ee1bd8ef9ac0910d02fece737 | [
"MIT"
] | null | null | null | from kivy.core.audio import SoundLoader | 31.769231 | 70 | 0.598063 |
21f3edcb7d50ea036f5a264fb5f9a7a4e6b5cf1a | 810 | py | Python | datasets/orange.py | tkemps/mklaren | d9e7890aaa26cb3877e1a82114ab1e52df595d96 | [
"BSD-2-Clause"
] | 3 | 2019-10-28T17:20:37.000Z | 2020-08-20T22:59:18.000Z | datasets/orange.py | tkemps/mklaren | d9e7890aaa26cb3877e1a82114ab1e52df595d96 | [
"BSD-2-Clause"
] | null | null | null | datasets/orange.py | tkemps/mklaren | d9e7890aaa26cb3877e1a82114ab1e52df595d96 | [
"BSD-2-Clause"
] | 1 | 2019-10-28T17:20:35.000Z | 2019-10-28T17:20:35.000Z | from numpy import genfromtxt
from os.path import join, realpath, dirname
ORANGE_PATH = join(dirname(realpath(__file__)), "orange")
def load_ionosphere(n=None):
"""
Load the ionosphere dataset.
:param n: Maximum number of examples.
:return: Dataset in standard form.
"""
header = genfromtxt(join... | 32.4 | 74 | 0.583951 |