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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8afab882e2218248fa164c686ebc1e39b71d422a | 200 | py | Python | ui/context_processors.py | usgin/nrrc-repository | 057990f8baf0e3f9aa48e21447750cfd7cb8f521 | [
"BSD-3-Clause"
] | null | null | null | ui/context_processors.py | usgin/nrrc-repository | 057990f8baf0e3f9aa48e21447750cfd7cb8f521 | [
"BSD-3-Clause"
] | 2 | 2018-03-07T19:57:29.000Z | 2018-11-08T02:43:29.000Z | ui/context_processors.py | usgin/nrrc-repository | 057990f8baf0e3f9aa48e21447750cfd7cb8f521 | [
"BSD-3-Clause"
] | null | null | null | from ui.config import SITE_CONFIG
from django.contrib.sites.models import Site | 28.571429 | 56 | 0.74 |
8afc468f9e6f8599e911bf9811922722c2dee1d9 | 89 | py | Python | apps/exotics/apps.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | 2 | 2021-01-05T06:16:32.000Z | 2021-09-09T10:42:53.000Z | apps/exotics/apps.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | apps/exotics/apps.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 14.833333 | 33 | 0.752809 |
8afd314406d902d9f8db96eee672b3b6ffdb593f | 1,179 | py | Python | echo_server.py | RIDERIUS/utilities | f188046954178377dcad4ed53fc01ddd2a80a9fc | [
"MIT"
] | 2 | 2020-08-29T12:44:13.000Z | 2020-10-09T16:39:24.000Z | echo_server.py | RIDERIUS/utilities | f188046954178377dcad4ed53fc01ddd2a80a9fc | [
"MIT"
] | null | null | null | echo_server.py | RIDERIUS/utilities | f188046954178377dcad4ed53fc01ddd2a80a9fc | [
"MIT"
] | null | null | null | """An echo server that has a server thread and a client thread. ONLY 5 CONNECTIONS."""
import threading
import socket
def server() -> None:
"""A server thread that has a server thread"""
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
port = 8007
host = 'localhost'
server_socket... | 28.756098 | 86 | 0.651399 |
8afde6e05127cac5abf0ee51f5bf7d2f40c21257 | 295 | py | Python | Section 02/sec02-xlsxread-openpyxl.py | PacktPublishing/Python-Data-Visualization-Solutions | 4d279912d779cdce8ad6ea27895aa23d0599fc72 | [
"MIT"
] | null | null | null | Section 02/sec02-xlsxread-openpyxl.py | PacktPublishing/Python-Data-Visualization-Solutions | 4d279912d779cdce8ad6ea27895aa23d0599fc72 | [
"MIT"
] | null | null | null | Section 02/sec02-xlsxread-openpyxl.py | PacktPublishing/Python-Data-Visualization-Solutions | 4d279912d779cdce8ad6ea27895aa23d0599fc72 | [
"MIT"
] | 2 | 2020-09-22T18:37:46.000Z | 2021-09-02T11:02:59.000Z | from openpyxl import load_workbook
file = 'sec02-xlsxdata.xlsx'
wb = load_workbook(filename=file)
ws = wb.get_sheet_by_name('Sheet1')
dataset = []
for r in ws.rows:
col = []
for c in r:
col.append(c.value)
dataset.append(col)
from pprint import pprint
pprint(dataset)
| 14.75 | 35 | 0.681356 |
8affc160baafb1f3830bf65df88fb8437564b6c5 | 5,834 | py | Python | moves/_moves.py | blech/moves | 24792e0e5ccdedf59bf05722641e7ec5526f617a | [
"MIT",
"Unlicense"
] | null | null | null | moves/_moves.py | blech/moves | 24792e0e5ccdedf59bf05722641e7ec5526f617a | [
"MIT",
"Unlicense"
] | null | null | null | moves/_moves.py | blech/moves | 24792e0e5ccdedf59bf05722641e7ec5526f617a | [
"MIT",
"Unlicense"
] | null | null | null | import json
import urllib
import requests
import types
# Give Access to last attribute
_move_client_status = ['etag', 'x-ratelimit-hourlimit', 'x-ratelimit-hourremaining',
'x-ratelimit-minutelimit', 'x-ratelimit-minuteremaining']
for att in _move_client_status:
att = att.replace('-', '_')
... | 32.960452 | 93 | 0.581419 |
c100032b5b5a7dde6ff12319f76414fc7eba6bf6 | 772 | py | Python | core/migrations/0008_auto_20200409_0247.py | scottstanie/fashbowl | d723bd175ca37ec3d001ab01b1e552f8682c6cb6 | [
"MIT"
] | 1 | 2020-04-02T16:20:31.000Z | 2020-04-02T16:20:31.000Z | core/migrations/0008_auto_20200409_0247.py | scottstanie/fashbowl | d723bd175ca37ec3d001ab01b1e552f8682c6cb6 | [
"MIT"
] | 9 | 2020-04-02T00:14:48.000Z | 2021-06-10T20:02:14.000Z | core/migrations/0008_auto_20200409_0247.py | scottstanie/fashbowl | d723bd175ca37ec3d001ab01b1e552f8682c6cb6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-04-09 02:47
from django.db import migrations, models
| 24.125 | 61 | 0.555699 |
c10067120798c26a410ae484046af0af0dea12e7 | 4,616 | py | Python | ExperimentalData/utils.py | MurpheyLab/SmarticlesRattling2020 | b49894d169b8f05cf4c2a261426d3fe4984d9ed3 | [
"MIT"
] | null | null | null | ExperimentalData/utils.py | MurpheyLab/SmarticlesRattling2020 | b49894d169b8f05cf4c2a261426d3fe4984d9ed3 | [
"MIT"
] | null | null | null | ExperimentalData/utils.py | MurpheyLab/SmarticlesRattling2020 | b49894d169b8f05cf4c2a261426d3fe4984d9ed3 | [
"MIT"
] | null | null | null | import pickle
import numpy as np
import scipy.linalg as sci
from scipy import signal
# Rotations
# Rattling
# Rectangular windowing
def window_inds(dataset, window_sz, overlap, offset=0):
"""
Helper function that applies a rectangular window to the dataset
given some overlap percentage, s.t. ov \in [0,1)... | 29.974026 | 129 | 0.632366 |
c102ec5e1e8bbc86e993c52fbaaef1711f018ec5 | 1,111 | py | Python | tests/unit/time_manager/schemas/test_user.py | krjakbrjak/time_management | 54ed55ddf0da9500722da4d0aafbc71ebfccc205 | [
"MIT"
] | null | null | null | tests/unit/time_manager/schemas/test_user.py | krjakbrjak/time_management | 54ed55ddf0da9500722da4d0aafbc71ebfccc205 | [
"MIT"
] | 8 | 2021-11-10T11:05:34.000Z | 2021-11-14T16:07:25.000Z | tests/unit/time_manager/schemas/test_user.py | krjakbrjak/time_management | 54ed55ddf0da9500722da4d0aafbc71ebfccc205 | [
"MIT"
] | null | null | null | import pytest
from time_manager.schemas.user import (
UserBase,
UserCredentials,
UserDB,
UserDBBase,
validate_username,
)
| 24.688889 | 75 | 0.567057 |
c104157dc127ebfc72bfeee67e740df387bc5aa1 | 1,879 | py | Python | src/test/parser/template/graph/test_datetime.py | hiitsme123/python | e08309fe61fd5ed88cfb39e9f402613dd7e39269 | [
"MIT"
] | 5 | 2017-02-03T07:38:45.000Z | 2022-01-06T11:29:29.000Z | src/test/parser/template/graph/test_datetime.py | hiitsme123/python | e08309fe61fd5ed88cfb39e9f402613dd7e39269 | [
"MIT"
] | 8 | 2017-02-03T06:59:03.000Z | 2017-04-28T14:23:46.000Z | src/test/parser/template/graph/test_datetime.py | hiitsme123/python | e08309fe61fd5ed88cfb39e9f402613dd7e39269 | [
"MIT"
] | 8 | 2017-02-02T15:12:12.000Z | 2017-04-02T13:35:03.000Z | import xml.etree.ElementTree as ET
import unittest
from test.parser.template.graph.test_graph_client import TemplateGraphTestClient
if __name__ == '__main__':
unittest.main()
| 33.553571 | 80 | 0.592869 |
c10424a73e9b47e96076baec558e6fce79f127ed | 335 | py | Python | Chapter10/10_03_print_statements.py | PacktPublishing/Mastering-ArcGIS-Enterprise-Administration | 66edf0c2878f7766cdb9203a78bfa7a25218cdd0 | [
"MIT"
] | 6 | 2018-03-24T15:58:18.000Z | 2022-03-20T00:39:39.000Z | Chapter10/10_03_print_statements.py | PacktPublishing/Mastering-ArcGIS-Enterprise-Administration | 66edf0c2878f7766cdb9203a78bfa7a25218cdd0 | [
"MIT"
] | null | null | null | Chapter10/10_03_print_statements.py | PacktPublishing/Mastering-ArcGIS-Enterprise-Administration | 66edf0c2878f7766cdb9203a78bfa7a25218cdd0 | [
"MIT"
] | null | null | null | import arcpy
result = arcpy.GetCount_management(
r"C:\Projects\GDBs\Sandbox.gdb\StudyAreas"
)
record_count = int(result.getOutput(0))
if record_count > 0:
arcpy.FeatureClassToFeatureClass_conversion(
r"C:\Projects\GDBs\Sandbox.gdb\StudyAreas",
r"C:\Projects\GDBs\Sandbox.gdb",
"ActiveStu... | 25.769231 | 51 | 0.707463 |
c107527c49b130deb750446b43d6dc4fb1a68c6a | 136 | py | Python | LOBDeepPP/__init__.py | mariussterling/LOBDeepPP_code | 010782f8db9a745940753f49d953361c32ee1190 | [
"MIT"
] | 1 | 2021-07-09T08:40:58.000Z | 2021-07-09T08:40:58.000Z | LOBDeepPP/__init__.py | mariussterling/LOBDeepPP_code | 010782f8db9a745940753f49d953361c32ee1190 | [
"MIT"
] | null | null | null | LOBDeepPP/__init__.py | mariussterling/LOBDeepPP_code | 010782f8db9a745940753f49d953361c32ee1190 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from . import LOBDeepPP_class
from . import LOBDeepPP_model
from . import LOBDeepPP_params_files
| 27.2 | 38 | 0.860294 |
c1075748ba98bd7a56bc8608062117cd71f95036 | 2,132 | py | Python | Day7-HandyHaversacks.py | n-Holmes/AdventOfCode2020 | 139d0e579b64ebb3e32f678d92dfd0a0d199e880 | [
"MIT"
] | null | null | null | Day7-HandyHaversacks.py | n-Holmes/AdventOfCode2020 | 139d0e579b64ebb3e32f678d92dfd0a0d199e880 | [
"MIT"
] | null | null | null | Day7-HandyHaversacks.py | n-Holmes/AdventOfCode2020 | 139d0e579b64ebb3e32f678d92dfd0a0d199e880 | [
"MIT"
] | null | null | null | from collections import Counter
from functools import lru_cache
def get_contents(path : str) -> dict[str, dict[str, int]]:
"""Get a weighted, directed graph of bags.
No protection for the case of cycles.
"""
with open(path, "r") as f:
lines = f.readlines();
contents = {}
# Could u... | 28.426667 | 80 | 0.591463 |
c107f112ffd05b7f8748510781c36312c16ca638 | 1,279 | py | Python | tasks/develop.py | mdegans/smart-social-distancing | 91d52c4fe4fa8baba77596980ae84e79346a0a8f | [
"Apache-2.0"
] | null | null | null | tasks/develop.py | mdegans/smart-social-distancing | 91d52c4fe4fa8baba77596980ae84e79346a0a8f | [
"Apache-2.0"
] | null | null | null | tasks/develop.py | mdegans/smart-social-distancing | 91d52c4fe4fa8baba77596980ae84e79346a0a8f | [
"Apache-2.0"
] | null | null | null | from invoke import task
from .common import docker, constants, config, ROOT_DIR
valid_backend_names = constants.D_BACKENDS
| 34.567568 | 115 | 0.677873 |
c1085eff917507470a1c5b85809710109532d332 | 2,200 | py | Python | lignet/learning_curve_full_net.py | LigninTools/lignet2.0 | 62ebc786b2a4c85cf60f59b1e3347d170fa5081a | [
"BSD-2-Clause"
] | 14 | 2016-06-30T03:27:44.000Z | 2022-02-08T02:21:09.000Z | lignet/learning_curve_full_net.py | LigninTools/lignet2.0 | 62ebc786b2a4c85cf60f59b1e3347d170fa5081a | [
"BSD-2-Clause"
] | null | null | null | lignet/learning_curve_full_net.py | LigninTools/lignet2.0 | 62ebc786b2a4c85cf60f59b1e3347d170fa5081a | [
"BSD-2-Clause"
] | 5 | 2016-07-30T04:05:39.000Z | 2021-08-14T13:58:39.000Z | """
Make a learning curve for the full neural net trained on all 30 output
measures. The point of this graph is to investigate how much training data
is needed to achieve various MSE values.
"""
import matplotlib.pyplot as plt
import numpy as np
import cPickle as pickle
import lasagne
from lasagne import layers
from ... | 33.846154 | 75 | 0.711364 |
c1087e4e6a1282facdc2cf84a3f1d05aff68d0ea | 2,537 | py | Python | api/views/partials/resources.py | 9kittikul/machinaris | 08b2306d91940e2f64436184ac3acc48b9f1a803 | [
"Apache-2.0"
] | 1 | 2022-01-12T19:56:31.000Z | 2022-01-12T19:56:31.000Z | api/views/partials/resources.py | 9kittikul/machinaris | 08b2306d91940e2f64436184ac3acc48b9f1a803 | [
"Apache-2.0"
] | null | null | null | api/views/partials/resources.py | 9kittikul/machinaris | 08b2306d91940e2f64436184ac3acc48b9f1a803 | [
"Apache-2.0"
] | null | null | null | import datetime as dt
from flask.views import MethodView
from api import app
from api.extensions.api import Blueprint, SQLCursorPage
from common.extensions.database import db
from common.models import Partial
from .schemas import PartialSchema, PartialQueryArgsSchema, BatchOfPartialSchema, BatchOfPartialQueryArgsSch... | 32.525641 | 111 | 0.661017 |
c1090af76b05ed7b6549458817e0f5371f9143a3 | 5,228 | py | Python | pyrf/gui/amplitude_controls.py | Sout/pyrf | 6412d5630707632f61cfa2fae8ceafad580a207d | [
"BSD-3-Clause"
] | null | null | null | pyrf/gui/amplitude_controls.py | Sout/pyrf | 6412d5630707632f61cfa2fae8ceafad580a207d | [
"BSD-3-Clause"
] | null | null | null | pyrf/gui/amplitude_controls.py | Sout/pyrf | 6412d5630707632f61cfa2fae8ceafad580a207d | [
"BSD-3-Clause"
] | null | null | null | from PySide import QtGui, QtCore
from pyrf.gui.util import hide_layout
from pyrf.gui.fonts import GROUP_BOX_FONT
from pyrf.gui.widgets import QCheckBoxPlayback
import numpy as np
PLOT_YMAX = 40
PLOT_TOP = 0
PLOT_BOTTOM = -160
PLOT_YMIN = -240
PLOT_STEP = 5
| 35.808219 | 91 | 0.658761 |
c110e56d7751b60430de94211d3d29e2c5de6ad5 | 2,903 | py | Python | content/test/gpu/page_sets/PRESUBMIT.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-08-13T21:04:58.000Z | 2015-08-13T21:04:58.000Z | content/test/gpu/page_sets/PRESUBMIT.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | content/test/gpu/page_sets/PRESUBMIT.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import re
import sys
def _GetFilesNotInCloud(input_api):
"""Searches for .sha1 files and checks to see if they have already
been uploaded... | 31.901099 | 80 | 0.728212 |
c1119481eb7156d282fc552db269120ae81a3060 | 3,239 | py | Python | modules/action/exploit_jexboss.py | mrpnkt/apt2 | 542fb0593069c900303421f3f24a499ce8f3a6a8 | [
"MIT"
] | 37 | 2018-08-24T20:13:19.000Z | 2022-02-22T08:41:24.000Z | modules/action/exploit_jexboss.py | zu3s/apt2-1 | 67325052d2713a363183c23188a67e98a379eec7 | [
"MIT"
] | 4 | 2020-06-14T23:16:45.000Z | 2021-03-08T14:18:21.000Z | modules/action/exploit_jexboss.py | zu3s/apt2-1 | 67325052d2713a363183c23188a67e98a379eec7 | [
"MIT"
] | 23 | 2018-11-15T13:00:09.000Z | 2021-08-07T18:53:04.000Z | import os
import re
from core.actionModule import actionModule
from core.utils import Utils
from core.keystore import KeyStore as kb
| 46.942029 | 160 | 0.490584 |
c111d3a09ac1756da66c85eca94df0cc32eea5c0 | 111 | py | Python | Reliquary/src/com/duckandcover/scripting/startUp.py | NicholasWMRitchie/Roentgen | 25bab277e5a989d6c71d8228c0b409be5735e807 | [
"Apache-2.0"
] | 2 | 2020-12-03T19:11:54.000Z | 2021-01-12T00:47:35.000Z | Reliquary/src/com/duckandcover/scripting/startUp.py | NicholasWMRitchie/Roentgen | 25bab277e5a989d6c71d8228c0b409be5735e807 | [
"Apache-2.0"
] | 17 | 2020-12-21T16:44:40.000Z | 2022-02-01T00:57:13.000Z | Reliquary/src/com/duckandcover/scripting/startUp.py | usnistgov/Roentgen | 269d9195bbd15d9b68321feb7356eb71bbdb6a15 | [
"Apache-2.0"
] | null | null | null | import com.duckandcover.scripting as _dacs
sys.setClassLoader(_dacs.ScriptClassLoader(sys.getClassLoader()))
| 37 | 66 | 0.837838 |
c111daae75dabf8ede22e7abe2c53c7b2078bb36 | 1,190 | py | Python | notebooks/helpers.py | maximusKarlson/networkx | fa16fd00e154d4c800595b58f5133ed9f4ab7153 | [
"MIT"
] | 70 | 2016-10-04T19:28:15.000Z | 2022-03-23T06:37:28.000Z | notebooks/helpers.py | maximusKarlson/networkx | fa16fd00e154d4c800595b58f5133ed9f4ab7153 | [
"MIT"
] | 1 | 2019-03-06T23:07:54.000Z | 2019-03-06T23:07:54.000Z | notebooks/helpers.py | maximusKarlson/networkx | fa16fd00e154d4c800595b58f5133ed9f4ab7153 | [
"MIT"
] | 57 | 2016-09-14T13:08:41.000Z | 2021-11-06T16:47:40.000Z | import networkx as nx
from seaborn import color_palette, set_style, palplot
def create_color_map(G, attribute, seaborn_palette="colorblind"):
"""Return a list of hex color mappings for node attributes"""
attributes = [G.node[label][attribute] for label in G.nodes()]
# get the set of possible attributes
... | 34 | 77 | 0.703361 |
c1152d15cdf18227d442821b0a88491e873adea0 | 2,254 | py | Python | app/routes.py | faulty-heart/flask-microblog | 53acdd1d37f07e311ebaba73f9349482919a1c2a | [
"MIT"
] | null | null | null | app/routes.py | faulty-heart/flask-microblog | 53acdd1d37f07e311ebaba73f9349482919a1c2a | [
"MIT"
] | null | null | null | app/routes.py | faulty-heart/flask-microblog | 53acdd1d37f07e311ebaba73f9349482919a1c2a | [
"MIT"
] | null | null | null | from flask import render_template, flash, redirect, url_for
from app import flask_app
from app.forms import LoginForm
from flask_login import current_user, login_user
from app.models import User
from flask_login import logout_user
from flask_login import login_required
from flask import request
from werkzeug.urls impor... | 34.676923 | 72 | 0.665927 |
c115c37e794bc0f25c0ef9e3f86f1cbc9eea521b | 3,947 | py | Python | ephios/core/services/notifications/backends.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 14 | 2021-01-13T12:15:03.000Z | 2022-03-20T10:02:11.000Z | ephios/core/services/notifications/backends.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 570 | 2020-09-19T13:37:27.000Z | 2022-03-31T09:14:37.000Z | ephios/core/services/notifications/backends.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 5 | 2021-01-08T16:52:31.000Z | 2022-03-20T10:02:25.000Z | import logging
import traceback
from django.conf import settings
from django.core.mail import EmailMultiAlternatives, mail_admins
from django.utils.translation import gettext_lazy as _
from webpush import send_user_notification
from ephios.core.models.users import Notification
logger = logging.getLogger(__name__)
... | 33.449153 | 145 | 0.666329 |
c115d0dcb588341f74d0f27a5c67b230c70e0776 | 2,203 | py | Python | tests/extensions/aria_extension_tosca/simple_v1_0/functions/test_function_get_operation_output.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/extensions/aria_extension_tosca/simple_v1_0/functions/test_function_get_operation_output.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/extensions/aria_extension_tosca/simple_v1_0/functions/test_function_get_operation_output.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | 1 | 2020-06-16T15:13:06.000Z | 2020-06-16T15:13:06.000Z | # -*- coding: utf-8 -*-
# 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 "Lic... | 25.917647 | 99 | 0.71675 |
c11822cb6743c61b59073cf4cb4b215f60617d68 | 117 | py | Python | docs/code_snippets/hello_world_infix.py | Ying1123/pysmt | 7aa2835ba46f69bfd7ca8004a3e0d1da6a4c94fa | [
"Apache-2.0"
] | 435 | 2015-02-07T14:48:42.000Z | 2022-03-28T13:19:45.000Z | docs/code_snippets/hello_world_infix.py | Ying1123/pysmt | 7aa2835ba46f69bfd7ca8004a3e0d1da6a4c94fa | [
"Apache-2.0"
] | 490 | 2015-02-17T16:22:49.000Z | 2022-03-29T11:52:06.000Z | docs/code_snippets/hello_world_infix.py | Ying1123/pysmt | 7aa2835ba46f69bfd7ca8004a3e0d1da6a4c94fa | [
"Apache-2.0"
] | 131 | 2015-02-06T18:29:37.000Z | 2021-12-04T17:31:17.000Z | from pysmt.shortcuts import Symbol
from pysmt.typing import INT
h = Symbol("H", INT)
domain = (1 <= h) & (10 >= h)
| 16.714286 | 34 | 0.649573 |
c118f0b44128ed4108fefd9f2643f8940209777b | 1,484 | py | Python | cy/old__init__.py | techiaith/anonymeiddiwr-beta | 13391fc62674503e1476d057d787456c1cd0f743 | [
"MIT"
] | null | null | null | cy/old__init__.py | techiaith/anonymeiddiwr-beta | 13391fc62674503e1476d057d787456c1cd0f743 | [
"MIT"
] | null | null | null | cy/old__init__.py | techiaith/anonymeiddiwr-beta | 13391fc62674503e1476d057d787456c1cd0f743 | [
"MIT"
] | null | null | null | # encoding: utf8
from __future__ import unicode_literals, print_function
# Gruff
#from spacy.lang.cy.lemmatization import lemmatize_doc
#from spacy.lang.cy.dictionary_pos_tagger import rule_based_pos_tag
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .tag_map import TAG_MAP
from .stop_words import STOP_W... | 29.68 | 82 | 0.786388 |
c1190beb19fed97ac40d1f214a9763ac22f66996 | 111 | py | Python | app/main/__init__.py | krayzpipes/ACE-1 | 138bf2aecad949f0b72b66519c32893df033de39 | [
"Apache-2.0"
] | 28 | 2018-08-08T11:57:31.000Z | 2022-01-12T23:06:18.000Z | app/main/__init__.py | krayzpipes/ACE-1 | 138bf2aecad949f0b72b66519c32893df033de39 | [
"Apache-2.0"
] | 108 | 2018-08-08T12:35:06.000Z | 2019-07-19T22:57:19.000Z | app/main/__init__.py | krayzpipes/ACE-1 | 138bf2aecad949f0b72b66519c32893df033de39 | [
"Apache-2.0"
] | 16 | 2018-08-03T18:48:00.000Z | 2021-11-09T00:35:35.000Z | # vim: sw=4:ts=4:et
from flask import Blueprint
main = Blueprint('main', __name__)
from . import views, errors
| 22.2 | 34 | 0.72973 |
c11960ac1b8ded7b3acff0177a30557717e4b94f | 14,534 | py | Python | Controller/finalizar.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | Controller/finalizar.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | Controller/finalizar.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import QMainWindow
from Controller.venda import VendaTemp
from Funcoes.utils import data_hora_atual
from Model.Compra_Itens import Compra_Itens
from Model.Compra_Fin import Compra_Fin
from Model.Compra_Header import Compras_Header
from Model.Compra_Tmp import Compra_Tmp
from Model.Fornecedor import... | 40.149171 | 118 | 0.549333 |
c119da160b10abca933e1b50c08ed7330ae5156b | 1,223 | py | Python | Sketches/RJL/bittorrent/BitTorrent/BitTorrent/obsoletepythonsupport.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/RJL/bittorrent/BitTorrent/BitTorrent/obsoletepythonsupport.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/RJL/bittorrent/BitTorrent/BitTorrent/obsoletepythonsupport.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | # The contents of this file are subject to the BitTorrent Open Source License
# Version 1.1 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/license/.
#
# Software di... | 28.44186 | 77 | 0.655765 |
c11aabf05f6d2acc4db4a83b15a1c1715de7bc3e | 5,155 | py | Python | third_party/angle/src/libANGLE/renderer/vulkan/gen_vk_format_table.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/angle/src/libANGLE/renderer/vulkan/gen_vk_format_table.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/angle/src/libANGLE/renderer/vulkan/gen_vk_format_table.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/python
# Copyright 2016 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# gen_vk_format_table.py:
# Code generation for vk format map. See vk_format_map.json for data source.
from datetime import date
im... | 31.242424 | 90 | 0.700679 |
c11b82d96385898712f074e13e783e965de9c1d5 | 311 | py | Python | api/notificationserializer.py | Sinma1/tricityTrafficAPI | bb5eba5c3caa081d30883e1ee1e0b3381d3741a2 | [
"MIT"
] | null | null | null | api/notificationserializer.py | Sinma1/tricityTrafficAPI | bb5eba5c3caa081d30883e1ee1e0b3381d3741a2 | [
"MIT"
] | null | null | null | api/notificationserializer.py | Sinma1/tricityTrafficAPI | bb5eba5c3caa081d30883e1ee1e0b3381d3741a2 | [
"MIT"
] | 3 | 2018-11-25T15:46:41.000Z | 2018-11-27T11:59:38.000Z | from rest_framework import serializers
from shared.models import Notification
| 28.272727 | 53 | 0.794212 |
c11c1101c7284dfff505791ee890d86d4e6ea9a9 | 54 | py | Python | preprocessing/init_buffer.py | GPrathap/OpenBCIPython | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | [
"MIT"
] | 1 | 2021-11-07T12:01:08.000Z | 2021-11-07T12:01:08.000Z | preprocessing/init_buffer.py | GPrathap/OpenBCIPython | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | [
"MIT"
] | null | null | null | preprocessing/init_buffer.py | GPrathap/OpenBCIPython | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | [
"MIT"
] | 1 | 2020-10-15T08:35:01.000Z | 2020-10-15T08:35:01.000Z | ring_buffers = []
max_iteration = 10
channel_data = "" | 18 | 18 | 0.722222 |
c121463832381a715a2d68107e9b20f7e2fe70a4 | 1,325 | py | Python | Introduction/PythonVariaables/Python_Global_Variables.py | nayanrajani/PYTHON | 362131c450a3506ee6dd484c6d6d1827f3dc675f | [
"Apache-2.0"
] | null | null | null | Introduction/PythonVariaables/Python_Global_Variables.py | nayanrajani/PYTHON | 362131c450a3506ee6dd484c6d6d1827f3dc675f | [
"Apache-2.0"
] | null | null | null | Introduction/PythonVariaables/Python_Global_Variables.py | nayanrajani/PYTHON | 362131c450a3506ee6dd484c6d6d1827f3dc675f | [
"Apache-2.0"
] | null | null | null | '''
Global Variables
Variables that are created outside of a function (as in all of the examples above) are known as global variables.
Global variables can be used by everyone, both inside of functions and outside.
'''
#Example
#Create a variable outside of a function, and use it inside the function
x = "awesome"
... | 19.485294 | 231 | 0.713962 |
c122fb13e2179412fff65f5e6f740a35636c9100 | 374 | py | Python | core/element.py | david-wm-sanders/oeo | 1ce26ddcd83d957183eefaae508c2a6800d47e94 | [
"MIT"
] | 1 | 2019-07-28T04:40:16.000Z | 2019-07-28T04:40:16.000Z | core/element.py | david-wm-sanders/oeo | 1ce26ddcd83d957183eefaae508c2a6800d47e94 | [
"MIT"
] | null | null | null | core/element.py | david-wm-sanders/oeo | 1ce26ddcd83d957183eefaae508c2a6800d47e94 | [
"MIT"
] | null | null | null | from enum import Enum, unique
| 14.96 | 39 | 0.524064 |
c123379662e2eddb0a1b05c80adcd7fca1847567 | 193 | py | Python | libsheep/state.py | exogen/80sheep | a6da85f6c10c8088e2c86a186c2934e71e8d2d16 | [
"MIT"
] | 1 | 2016-05-09T03:32:09.000Z | 2016-05-09T03:32:09.000Z | libsheep/state.py | exogen/80sheep | a6da85f6c10c8088e2c86a186c2934e71e8d2d16 | [
"MIT"
] | null | null | null | libsheep/state.py | exogen/80sheep | a6da85f6c10c8088e2c86a186c2934e71e8d2d16 | [
"MIT"
] | null | null | null | from libsheep.filelist import FileListing
| 24.125 | 42 | 0.683938 |
c123721edfd8c62e9f1ec296682e286ee738743a | 3,349 | py | Python | task1.py | mohansah/-The_Genome_Project | 0ab6cd25f97cf0e2651e33c21819feeeb012feb2 | [
"MIT"
] | 3 | 2019-07-29T06:58:46.000Z | 2020-02-13T05:29:05.000Z | task1.py | mohansah/The_Genome_Project | 0ab6cd25f97cf0e2651e33c21819feeeb012feb2 | [
"MIT"
] | null | null | null | task1.py | mohansah/The_Genome_Project | 0ab6cd25f97cf0e2651e33c21819feeeb012feb2 | [
"MIT"
] | null | null | null | import re
import sys
import PySimpleGUI as sg
from tkinter import filedialog
from tkinter import *
#####################################
# The GUI which takes input of files
####################################
files = []
if len(sys.argv) == 1:
event, (fname,) = sg.Window('My Script').Layout([[sg.Text('... | 30.445455 | 223 | 0.491789 |
c123dc4274c6e44600413afbb9c86f417455cde2 | 5,905 | py | Python | EasyRecycle/tests/unittests/recycle/views/test_EditCommercialOrderAPIView.py | YuriyLisovskiy/EasyRecycle | 49f1b84931145a3e95224e411d22ed7701e5bfe0 | [
"MIT"
] | null | null | null | EasyRecycle/tests/unittests/recycle/views/test_EditCommercialOrderAPIView.py | YuriyLisovskiy/EasyRecycle | 49f1b84931145a3e95224e411d22ed7701e5bfe0 | [
"MIT"
] | null | null | null | EasyRecycle/tests/unittests/recycle/views/test_EditCommercialOrderAPIView.py | YuriyLisovskiy/EasyRecycle | 49f1b84931145a3e95224e411d22ed7701e5bfe0 | [
"MIT"
] | null | null | null | from django.urls import reverse
from rest_framework import status
from rest_framework.test import force_authenticate
from core.models import UserModel
from recycle import garbage
from recycle.models import CommercialRequest, Location
from recycle.views.commercial_order import EditCommercialOrderAPIView
from tests.unit... | 38.594771 | 118 | 0.77392 |
c123ed366853a75f544baf15be18e964492913c5 | 15,441 | py | Python | orangecontrib/aps/srw/widgets/_not_used/ow_thickness_error_phase_shift.py | oasys-aps-kit/OASYS1-APS-ShadowOui | c8f1f5490baf9903d68c4830a770ed4a455a35b7 | [
"Unlicense"
] | 1 | 2019-08-22T01:04:39.000Z | 2019-08-22T01:04:39.000Z | orangecontrib/aps/srw/widgets/_not_used/ow_thickness_error_phase_shift.py | oasys-aps-kit/OASYS1-APS-Extensions | c8f1f5490baf9903d68c4830a770ed4a455a35b7 | [
"Unlicense"
] | null | null | null | orangecontrib/aps/srw/widgets/_not_used/ow_thickness_error_phase_shift.py | oasys-aps-kit/OASYS1-APS-Extensions | c8f1f5490baf9903d68c4830a770ed4a455a35b7 | [
"Unlicense"
] | null | null | null | import numpy, copy
from numpy import nan
from PyQt5.QtGui import QPalette, QColor, QFont
from PyQt5.QtWidgets import QMessageBox
from orangewidget import gui
from orangewidget import widget
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui
from oasys.widgets import congruence
from oa... | 41.176 | 169 | 0.65216 |
c1240ead64de93e01a6edd3e0708079b49fa092e | 485 | py | Python | sensehat/tests/Pi_ReportHumidity.py | knightman/pi-projects | d4c124b18ab5d50b3218441972f308c474621476 | [
"MIT"
] | null | null | null | sensehat/tests/Pi_ReportHumidity.py | knightman/pi-projects | d4c124b18ab5d50b3218441972f308c474621476 | [
"MIT"
] | null | null | null | sensehat/tests/Pi_ReportHumidity.py | knightman/pi-projects | d4c124b18ab5d50b3218441972f308c474621476 | [
"MIT"
] | null | null | null | # Pi_ReportHumidity.py
#
# Created: Jan 10, 2016 by Andrew Knight
#
# Simple script to read humidity on RPi
import time
from sense_hat import SenseHat
sense = SenseHat()
#humidity = sense.get_humidity()
#print("Humidity: %s %%rH" % humidity)
# alternatives
#print(sense.humidity)
# continue to print humidity reading... | 19.4 | 64 | 0.707216 |
c124295253c904f3e19d2b7a14be8902741e9a96 | 138 | py | Python | tests/api/test_factory.py | jroquejr/nfe-reader | 277379bfb9865b2656c2576d8ccf8c3e1f3cacd1 | [
"MIT"
] | null | null | null | tests/api/test_factory.py | jroquejr/nfe-reader | 277379bfb9865b2656c2576d8ccf8c3e1f3cacd1 | [
"MIT"
] | 2 | 2021-04-21T14:57:31.000Z | 2021-04-21T14:57:32.000Z | tests/api/test_factory.py | jroquejr/nfe-reader | 277379bfb9865b2656c2576d8ccf8c3e1f3cacd1 | [
"MIT"
] | null | null | null | from api.app import create_app
| 19.714286 | 48 | 0.731884 |
c125de4c20ff54c0489638adfc6d88c63976f6dc | 703 | py | Python | episodes/templatetags/episode_extras.py | jinpark/something-sunshine-django | e5c6dcea527dce6bc6bb95d3916567e028cf6c8c | [
"MIT"
] | null | null | null | episodes/templatetags/episode_extras.py | jinpark/something-sunshine-django | e5c6dcea527dce6bc6bb95d3916567e028cf6c8c | [
"MIT"
] | null | null | null | episodes/templatetags/episode_extras.py | jinpark/something-sunshine-django | e5c6dcea527dce6bc6bb95d3916567e028cf6c8c | [
"MIT"
] | null | null | null | from django import template
from django.template.defaultfilters import stringfilter
from django.conf import settings
from urlparse import urlparse
register = template.Library()
| 33.47619 | 127 | 0.716927 |
c12e7e3e66c7d4755416d0538e77bf95c76cf51d | 1,935 | py | Python | module/tfcn.py | sc0ttms/SE-TFCN | 466a2d641c6ff4184c768c1e7aaf2b8a8158ce51 | [
"BSD-3-Clause"
] | 9 | 2022-01-18T05:30:33.000Z | 2022-03-09T02:25:11.000Z | module/tfcn.py | sc0ttms/SE-TFCN | 466a2d641c6ff4184c768c1e7aaf2b8a8158ce51 | [
"BSD-3-Clause"
] | 1 | 2022-01-22T01:52:08.000Z | 2022-01-28T03:01:33.000Z | module/tfcn.py | sc0ttms/SE-TFCN | 466a2d641c6ff4184c768c1e7aaf2b8a8158ce51 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import os
import torch
import torch.nn as nn
from torchinfo import summary
sys.path.append(os.getcwd())
from module.input_block import InputBlock
from module.repeated_block import RepeatedBlock
from module.output_block import OutputBlock
if __name__ == "__main__":
print(f"Te... | 28.043478 | 100 | 0.605685 |
c12f2595b3829a67e668842b53db23bea5e35cb5 | 3,721 | py | Python | evaluation_utils.py | Tatyana-jl/butterfly-net | bc13ba3bdcd82f8985ef4dade85af78f0a607a97 | [
"MIT"
] | 1 | 2021-10-02T17:17:09.000Z | 2021-10-02T17:17:09.000Z | evaluation_utils.py | Tatyana-jl/butterfly-net | bc13ba3bdcd82f8985ef4dade85af78f0a607a97 | [
"MIT"
] | null | null | null | evaluation_utils.py | Tatyana-jl/butterfly-net | bc13ba3bdcd82f8985ef4dade85af78f0a607a97 | [
"MIT"
] | null | null | null | import numpy as np
import torch
from matplotlib import pyplot as plt
from scipy.spatial.distance import directed_hausdorff
from numpy import linalg as LA
from sklearn import metrics
# def gt_hot_encoding(ground_truth):
# return (ground_truth-1)*-1
| 35.438095 | 142 | 0.682075 |
c1304b77fa49cd3864a7038e5f2ba835800ea461 | 1,256 | py | Python | display.py | HocRiser01/GEV-NN | a500106a33b75e78fa82b79ac2364668a3e35786 | [
"MIT"
] | null | null | null | display.py | HocRiser01/GEV-NN | a500106a33b75e78fa82b79ac2364668a3e35786 | [
"MIT"
] | null | null | null | display.py | HocRiser01/GEV-NN | a500106a33b75e78fa82b79ac2364668a3e35786 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib
import matplotlib.pyplot as plt | 31.4 | 81 | 0.56449 |
c1307624fc199ad86c91e57e39dc88177b16ecd7 | 753 | py | Python | deploy/server_demo.py | gregdelozier/swift | afaac0761f6b0082110f0a337ad63617ac161428 | [
"MIT"
] | null | null | null | deploy/server_demo.py | gregdelozier/swift | afaac0761f6b0082110f0a337ad63617ac161428 | [
"MIT"
] | null | null | null | deploy/server_demo.py | gregdelozier/swift | afaac0761f6b0082110f0a337ad63617ac161428 | [
"MIT"
] | 1 | 2022-01-20T14:38:53.000Z | 2022-01-20T14:38:53.000Z | from server import Server
import os
if __name__ == "__main__":
server = Server(host = "3.129.67.194", user="ubuntu", key_filename="/Users/greg/.ssh/lightsail-ohio-gsd.pem")
# server.run("ls -la", hide=False)
# server.run("ps", hide=False)
# server.run("echo hello >hello.txt", hide=False)
# server.r... | 32.73913 | 113 | 0.628154 |
c130e07b8542e1a60cc7e5ef83c70a1985c8da22 | 5,212 | py | Python | tests/python/pants_test/build_graph/test_build_file_address_mapper.py | qma/pants | 604f58a366b66bc5cfa83e7250cb8af8130832cf | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/build_graph/test_build_file_address_mapper.py | qma/pants | 604f58a366b66bc5cfa83e7250cb8af8130832cf | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/build_graph/test_build_file_address_mapper.py | qma/pants | 604f58a366b66bc5cfa83e7250cb8af8130832cf | [
"Apache-2.0"
] | 1 | 2019-06-10T17:24:34.000Z | 2019-06-10T17:24:34.000Z | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from textw... | 50.115385 | 98 | 0.750959 |
c131410c3f05533202b8ce122f5b07f341cad156 | 3,313 | py | Python | libpebble2/communication/transports/pulse.py | dkirker/libpebble2 | 23e2eb92cfc084e6f9e8c718711ac994ef606d18 | [
"MIT"
] | 68 | 2015-07-05T20:07:32.000Z | 2021-03-28T15:01:38.000Z | libpebble2/communication/transports/pulse.py | Katharine/libpebble2 | 23e2eb92cfc084e6f9e8c718711ac994ef606d18 | [
"MIT"
] | 23 | 2015-07-13T07:59:37.000Z | 2021-01-27T18:47:47.000Z | libpebble2/communication/transports/pulse.py | Katharine/libpebble2 | 23e2eb92cfc084e6f9e8c718711ac994ef606d18 | [
"MIT"
] | 36 | 2015-07-13T08:31:55.000Z | 2021-03-06T14:21:29.000Z | from __future__ import absolute_import
__author__ = 'Liam McLoughlin'
import time
import struct
try:
from pebble import pulse2
except ImportError:
pass
from . import BaseTransport, MessageTargetWatch
from libpebble2.exceptions import ConnectionError, PebbleError
| 30.394495 | 91 | 0.627528 |
c13152d4efb188b9f9014ada1985c451e4013c49 | 1,684 | py | Python | fairways/io/syn/oracle.py | dan-win/fairways_py | 771623c6f9ec40e8016b5cebb7951613d01e31f7 | [
"Apache-2.0"
] | null | null | null | fairways/io/syn/oracle.py | dan-win/fairways_py | 771623c6f9ec40e8016b5cebb7951613d01e31f7 | [
"Apache-2.0"
] | null | null | null | fairways/io/syn/oracle.py | dan-win/fairways_py | 771623c6f9ec40e8016b5cebb7951613d01e31f7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import cx_Oracle
import re
from collections import namedtuple
from .base import (SynDataDriver)
import logging
log = logging.getLogger(__name__)
# RE_CONN_TEMPLATE = re.compile(r"(?:(?P<user>[^/]*)/(?P<password>[^@]*)@//)?(?P<host>[^:^/]*)(?::(?P<port>[^/|^?]*))?(?:/(?P<path>.*))?")
RE_CONN_... | 28.542373 | 138 | 0.625891 |
c1317e19d3ff25338770fda62b18c750a5a95d20 | 1,162 | py | Python | mflog/syslog.py | vincentchabot/mflog | 165169f6332580e8a541c7f356b1bea8237268b2 | [
"BSD-3-Clause"
] | 2 | 2020-05-25T23:54:44.000Z | 2020-07-07T02:36:25.000Z | mflog/syslog.py | vincentchabot/mflog | 165169f6332580e8a541c7f356b1bea8237268b2 | [
"BSD-3-Clause"
] | 22 | 2019-02-01T16:40:32.000Z | 2021-01-07T10:00:07.000Z | mflog/syslog.py | vincentchabot/mflog | 165169f6332580e8a541c7f356b1bea8237268b2 | [
"BSD-3-Clause"
] | 1 | 2020-10-28T16:50:44.000Z | 2020-10-28T16:50:44.000Z | from logging.handlers import SysLogHandler
from logging import LogRecord
import json
| 27.666667 | 76 | 0.630809 |
c13319ebe56efb2e0a661c2bf9942592b7d2b856 | 706 | py | Python | galleries/sql/queries/data_retriever.py | mnicolas94/galleries | e1563764f7db699a94884f9dbae1799a0f05c4c0 | [
"MIT"
] | null | null | null | galleries/sql/queries/data_retriever.py | mnicolas94/galleries | e1563764f7db699a94884f9dbae1799a0f05c4c0 | [
"MIT"
] | null | null | null | galleries/sql/queries/data_retriever.py | mnicolas94/galleries | e1563764f7db699a94884f9dbae1799a0f05c4c0 | [
"MIT"
] | null | null | null | import abc
import numpy as np
from typing import List, Any, Dict, Optional
from galleries.annotations_filtering.filter import FilterStatement
| 25.214286 | 79 | 0.703966 |
c1359b0cad8edb5f3898299237a3223d50feda6f | 2,592 | py | Python | baiocas/transports/base.py | ViViDboarder/baiocas | c542e5febdefc62ce36ad3f3ec6358a0017de831 | [
"BSD-3-Clause"
] | null | null | null | baiocas/transports/base.py | ViViDboarder/baiocas | c542e5febdefc62ce36ad3f3ec6358a0017de831 | [
"BSD-3-Clause"
] | 1 | 2015-07-03T16:45:12.000Z | 2015-07-15T11:37:24.000Z | baiocas/transports/base.py | ViViDboarder/baiocas | c542e5febdefc62ce36ad3f3ec6358a0017de831 | [
"BSD-3-Clause"
] | 1 | 2019-07-25T00:36:19.000Z | 2019-07-25T00:36:19.000Z | import logging
import urllib.parse
from tornado.ioloop import IOLoop
from baiocas import errors
from baiocas.channel_id import ChannelId
from baiocas.message import Message
url = property(_get_url, _set_url)
| 28.173913 | 80 | 0.64429 |
c135cb816e69695f06cac9753a1bcf1475a0ce0a | 321 | py | Python | setup.py | ifigueroap/hdptest | 46ae712da290bcb561f84283bb72e356ea86bf21 | [
"MIT"
] | null | null | null | setup.py | ifigueroap/hdptest | 46ae712da290bcb561f84283bb72e356ea86bf21 | [
"MIT"
] | null | null | null | setup.py | ifigueroap/hdptest | 46ae712da290bcb561f84283bb72e356ea86bf21 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='hdptest',
version='0.3',
scripts=[],
author="Ismael Figueroa",
author_email="ifigueroap@gmail.com",
description="Mecanismo simple para tests en Jupyter Notebooks",
url="https://github.com/ifigueroap/hdptest",
packages=setuptools.find_packages()
... | 26.75 | 67 | 0.70405 |
c1378e18e14fbdc1cc01b9d6dbba154c0493c051 | 539 | py | Python | p5-b.py | preetipanwar/pylab_s4 | 6ede27c7221fe9f26560d89801343c2ebae60e16 | [
"MIT"
] | 1 | 2018-01-24T14:05:27.000Z | 2018-01-24T14:05:27.000Z | p5-b.py | preetipanwar/pylab_s4 | 6ede27c7221fe9f26560d89801343c2ebae60e16 | [
"MIT"
] | 1 | 2018-01-25T12:31:49.000Z | 2018-01-25T12:31:49.000Z | p5-b.py | preetipanwar/pylab_s4 | 6ede27c7221fe9f26560d89801343c2ebae60e16 | [
"MIT"
] | null | null | null | ''' 5. b.
To get a string from a given string where
all occurrences of its first char have been
changed to '$', except the first char itself.
'''
word = input("Enter a long word: ") #arastratiosphecomyia
first_char = word[0] # set first character of our string to first_char variable
new_string = fi... | 28.368421 | 92 | 0.671614 |
c13845257634a83842da01bc853520d54ec47163 | 11,030 | py | Python | src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 3,287 | 2016-07-26T17:34:33.000Z | 2022-03-31T09:52:13.000Z | src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 19,206 | 2016-07-26T07:04:42.000Z | 2022-03-31T23:57:09.000Z | src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 2,575 | 2016-07-26T06:44:40.000Z | 2022-03-31T22:56:06.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 47.543103 | 119 | 0.683772 |
c13b887e36889135a08e482e2008cda9a4c229da | 4,096 | py | Python | dripbot_neopixel.py | bobtiki/DripBot | f0335811cbb42744989c48f056a93d86b2a1564f | [
"MIT"
] | null | null | null | dripbot_neopixel.py | bobtiki/DripBot | f0335811cbb42744989c48f056a93d86b2a1564f | [
"MIT"
] | null | null | null | dripbot_neopixel.py | bobtiki/DripBot | f0335811cbb42744989c48f056a93d86b2a1564f | [
"MIT"
] | null | null | null | # NeoPixel library strandtest example
# Author: Tony DiCola (tony@tonydicola.com)
#
# Direct port of the Arduino NeoPixel library strandtest example. Showcases
# various animations on a strip of NeoPixels.
import time
from neopixel import *
import argparse
import signal
import sys
# LED strip configuration:
LED_COU... | 37.236364 | 123 | 0.626953 |
c13bb03938d2ea69713d0117ecf134c6fe9e8c9c | 17,594 | py | Python | core/csv_parser.py | 73k05/cfp-app-xml-generator | b9da47009c90cdf891c0d262c2f0d303c527182e | [
"MIT"
] | 1 | 2022-03-04T12:46:56.000Z | 2022-03-04T12:46:56.000Z | core/csv_parser.py | 73k05/cfp-app-xml-generator | b9da47009c90cdf891c0d262c2f0d303c527182e | [
"MIT"
] | null | null | null | core/csv_parser.py | 73k05/cfp-app-xml-generator | b9da47009c90cdf891c0d262c2f0d303c527182e | [
"MIT"
] | null | null | null | import os
import lxml.etree as ET
import chardet
import pandas as pd
from lxml.etree import CDATA
from utils.log import write_log
| 45.228792 | 117 | 0.65619 |
c13bedc7dfebd9fe9ece54a3be5162405d6f40c5 | 1,628 | py | Python | server/server/events/migrations/0002_auto_20210624_1022.py | omert-visiblerisk/connective | c6b81700b35e2d8355ad1535b182093595fff8b7 | [
"MIT"
] | 4 | 2021-07-05T10:49:26.000Z | 2021-11-24T11:34:43.000Z | server/server/events/migrations/0002_auto_20210624_1022.py | omert-visiblerisk/connective | c6b81700b35e2d8355ad1535b182093595fff8b7 | [
"MIT"
] | 39 | 2021-06-21T15:02:37.000Z | 2022-02-28T15:07:42.000Z | server/server/events/migrations/0002_auto_20210624_1022.py | Eyal-VR/connective | 46857dd79dc58f63c3afb9791ecf8adf853a6c57 | [
"MIT"
] | 17 | 2021-06-16T08:59:45.000Z | 2021-09-29T11:35:38.000Z | # Generated by Django 3.1.11 on 2021-06-24 07:22
import django.core.validators
from django.db import migrations, models
import server.utils.model_fields
| 34.638298 | 165 | 0.621007 |
c13fe5f9dc813bf82c6ed465d4f2b868ccb3b71f | 1,662 | py | Python | backend/fastapi/fastapi_tutorial/path_params.py | spideynolove/Other-repo | 34066f177994415d031183ab9dd219d787e6e13a | [
"MIT"
] | null | null | null | backend/fastapi/fastapi_tutorial/path_params.py | spideynolove/Other-repo | 34066f177994415d031183ab9dd219d787e6e13a | [
"MIT"
] | null | null | null | backend/fastapi/fastapi_tutorial/path_params.py | spideynolove/Other-repo | 34066f177994415d031183ab9dd219d787e6e13a | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from enum import Enum
rememeber = '''
- path operation decorator and function
- return the content
- Documentation
- Path Order matters
- Enum class
- render correctly
- Path parameters containing paths
- value : to get enum values
- API annotation and automatic documentation
'''
app = F... | 23.083333 | 76 | 0.68231 |
c14214c0dc196b6110325180b47e386ab69f7d00 | 7,941 | py | Python | scripts/convert_madmax_to_euroc.py | wstuerzl/granite | 8bbb6497d1b3100c25099d56672416dfa01346b4 | [
"BSD-3-Clause"
] | 20 | 2021-09-17T09:18:45.000Z | 2022-03-25T12:20:37.000Z | scripts/convert_madmax_to_euroc.py | wstuerzl/granite | 8bbb6497d1b3100c25099d56672416dfa01346b4 | [
"BSD-3-Clause"
] | 4 | 2021-09-19T08:58:11.000Z | 2022-03-18T11:42:15.000Z | scripts/convert_madmax_to_euroc.py | wstuerzl/granite | 8bbb6497d1b3100c25099d56672416dfa01346b4 | [
"BSD-3-Clause"
] | 3 | 2021-09-28T07:34:06.000Z | 2022-03-22T16:56:10.000Z | #!/usr/bin/env python3
import os
import argparse
import glob
import sophus as sp
import numpy as np
from scipy.spatial.transform import Rotation as R
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Convert morocco sequence to EuRoC format.")
parser.add_argument("--dataset_pat... | 40.93299 | 326 | 0.586702 |
c1452923d5e2f27a9f3d7752e1e60fe146f228c2 | 12,716 | py | Python | 07_Natural_Language_Processing/C0707_Doc2Vec.py | zhuyuanxiang/tensorflow_cookbook | 57d7ee719385ddd249a67c3a85bd336e884a67e5 | [
"MIT"
] | 7 | 2019-11-30T05:42:47.000Z | 2021-10-09T03:02:19.000Z | 07_Natural_Language_Processing/C0707_Doc2Vec.py | zhuyuanxiang/tensorflow_cookbook | 57d7ee719385ddd249a67c3a85bd336e884a67e5 | [
"MIT"
] | null | null | null | 07_Natural_Language_Processing/C0707_Doc2Vec.py | zhuyuanxiang/tensorflow_cookbook | 57d7ee719385ddd249a67c3a85bd336e884a67e5 | [
"MIT"
] | 2 | 2019-12-05T06:44:48.000Z | 2021-10-09T03:02:20.000Z | # -*- encoding: utf-8 -*-
"""
@Author : zYx.Tom
@Contact : 526614962@qq.com
@site : https://zhuyuanxiang.github.io
---------------------------
@Software : PyCharm
@Project : tensorflow_cookbook
@File : C0707_Doc2Vec.py
@Version : v0.1
@Time : 2019-12-06 17:12
@Licens... | 39.006135 | 115 | 0.706276 |
c14710bbb787874452cbff583a94fd65cbe78650 | 8,714 | py | Python | tensorflow/python/ipu/ops/op_util.py | pierricklee/tensorflow | c6a61d7b19a9242b06f40120ab42f0fdb0b5c462 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/ipu/ops/op_util.py | pierricklee/tensorflow | c6a61d7b19a9242b06f40120ab42f0fdb0b5c462 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/ipu/ops/op_util.py | pierricklee/tensorflow | c6a61d7b19a9242b06f40120ab42f0fdb0b5c462 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The TensorFlow Authors. 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 by applica... | 31.121429 | 104 | 0.749484 |
c147799d4bff1c7243c97a38feec6aa740d1d2bb | 3,138 | py | Python | ml_logger/ml_logger_tests/test_cloud/test_s3.py | mcx/ml_logger | 697b376d176b3b5e84272a4173e0f3b84fffbfa0 | [
"BSD-3-Clause"
] | 107 | 2018-05-26T22:51:48.000Z | 2020-04-27T09:46:36.000Z | ml_logger/ml_logger_tests/test_cloud/test_s3.py | mcx/ml_logger | 697b376d176b3b5e84272a4173e0f3b84fffbfa0 | [
"BSD-3-Clause"
] | 22 | 2018-08-05T12:45:48.000Z | 2019-12-10T01:38:28.000Z | ml_logger/ml_logger_tests/test_cloud/test_s3.py | mcx/ml_logger | 697b376d176b3b5e84272a4173e0f3b84fffbfa0 | [
"BSD-3-Clause"
] | 14 | 2018-06-30T18:50:48.000Z | 2019-12-10T01:08:44.000Z | """
# AWS S3 Tests
"""
from os.path import join as pathJoin
import pytest
from ml_logger import logger
def test_s3_upload(setup):
import os, pathlib
profile = os.environ.get('ML_LOGGER_TEST_AWS_PROFILE', None)
if profile:
os.environ['AWS_PROFILE'] = profile
s3_bucket = os.environ['ML_LOGG... | 26.369748 | 73 | 0.684831 |
c1478cb86b45b0375d733890db5a0f45770c6118 | 1,380 | py | Python | dcgan/.ipynb_checkpoints/visual-checkpoint.py | Ontheway361/ak47GAN | 7a1b4b3c2159ab0e2662f3d0a2cedccb30e62f3c | [
"MIT"
] | null | null | null | dcgan/.ipynb_checkpoints/visual-checkpoint.py | Ontheway361/ak47GAN | 7a1b4b3c2159ab0e2662f3d0a2cedccb30e62f3c | [
"MIT"
] | null | null | null | dcgan/.ipynb_checkpoints/visual-checkpoint.py | Ontheway361/ak47GAN | 7a1b4b3c2159ab0e2662f3d0a2cedccb30e62f3c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import torch
import numpy as np
from utils import Generator
import matplotlib.pyplot as plt
from IPython.display import HTML
import torchvision.utils as vutils
import matplotlib.animation as animation
from IPython import embed
if __name__ == "__main__":
... | 29.361702 | 90 | 0.635507 |
c149f1d3df3952edb9c95ade2898d3604aa38338 | 3,625 | py | Python | eval/fig5.py | tk2lab/logbesselk | 6ffbc344c0b472d307a556e50de943a380616fb2 | [
"Apache-2.0"
] | null | null | null | eval/fig5.py | tk2lab/logbesselk | 6ffbc344c0b472d307a556e50de943a380616fb2 | [
"Apache-2.0"
] | null | null | null | eval/fig5.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)
| 32.079646 | 91 | 0.516414 |
c14a5e45243918c8ecb95ac59cc1e2118d27c4f1 | 3,769 | py | Python | parser/team22/interfaz/interfaz.py | strickergt128/tytus | 93216dd9481ea0775da1d2967dc27be66872537f | [
"MIT"
] | 1 | 2021-01-09T05:32:35.000Z | 2021-01-09T05:32:35.000Z | parser/team22/interfaz/interfaz.py | strickergt128/tytus | 93216dd9481ea0775da1d2967dc27be66872537f | [
"MIT"
] | null | null | null | parser/team22/interfaz/interfaz.py | strickergt128/tytus | 93216dd9481ea0775da1d2967dc27be66872537f | [
"MIT"
] | null | null | null | from tkinter import ttk,scrolledtext,Frame,Scrollbar,Canvas,Menu,Tk,VERTICAL
from funciones import Funciones_
if __name__ == '__main__':
ventana = Tk()
app = Interfaz_Ml(ventana)
ventana.mainloop()
| 58.890625 | 159 | 0.627753 |
c14aa5619a97a25dfa92cb827d5d705545efa05e | 23 | py | Python | main_module/__init__.py | T-R0D/Smok3_Tagg3r | 87deec358a54275e440d02b2bf836550aed3b023 | [
"BSD-3-Clause"
] | 7 | 2017-03-13T17:32:26.000Z | 2021-09-27T16:51:22.000Z | main_module/__init__.py | T-R0D/Smok3_Tagg3r | 87deec358a54275e440d02b2bf836550aed3b023 | [
"BSD-3-Clause"
] | 1 | 2021-05-29T19:54:02.000Z | 2021-05-29T19:54:52.000Z | main_module/__init__.py | T-R0D/Smok3_Tagg3r | 87deec358a54275e440d02b2bf836550aed3b023 | [
"BSD-3-Clause"
] | 25 | 2016-10-18T03:31:44.000Z | 2020-12-29T13:23:10.000Z | __author__ = 'Terence'
| 11.5 | 22 | 0.73913 |
c14cb202d2f14fc0f1f8292d6bea7e64029a92e2 | 391 | py | Python | asynctb/_tests/conftest.py | shamrin/asynctb | d06a77cb2e496108e73adc65e27d1d313592685a | [
"Apache-2.0",
"MIT"
] | 6 | 2020-07-02T16:43:15.000Z | 2021-11-29T06:30:57.000Z | asynctb/_tests/conftest.py | shamrin/asynctb | d06a77cb2e496108e73adc65e27d1d313592685a | [
"Apache-2.0",
"MIT"
] | 2 | 2020-07-02T09:00:50.000Z | 2020-07-26T06:39:09.000Z | asynctb/_tests/conftest.py | shamrin/asynctb | d06a77cb2e496108e73adc65e27d1d313592685a | [
"Apache-2.0",
"MIT"
] | 2 | 2020-07-05T01:25:37.000Z | 2021-01-26T08:00:06.000Z | import pytest
from asynctb._registry import HANDLING_FOR_CODE
from asynctb._glue import ensure_installed
| 21.722222 | 51 | 0.792839 |
c14cc4c77931dee49cb9a0bf4b731e6d64d4acf0 | 9,268 | py | Python | my/core/__main__.py | ktaranov/HPI | 3aa21107465b19b8b09884fbda8326617d3324ae | [
"MIT"
] | 1 | 2021-08-04T18:54:53.000Z | 2021-08-04T18:54:53.000Z | my/core/__main__.py | ktaranov/HPI | 3aa21107465b19b8b09884fbda8326617d3324ae | [
"MIT"
] | null | null | null | my/core/__main__.py | ktaranov/HPI | 3aa21107465b19b8b09884fbda8326617d3324ae | [
"MIT"
] | null | null | null | import os
from pathlib import Path
import sys
from subprocess import run, PIPE
from typing import Optional, Sequence, Iterable, List
import importlib
import traceback
from . import LazyLogger
log = LazyLogger("HPI cli")
import functools
OK = ""
OFF = ""
# todo not gonna work on Windows... perhaps make i... | 25.391781 | 134 | 0.585563 |
c14cf7b86ce22860fd0d61156dbebfd20108ac54 | 3,548 | py | Python | tests/ov/test_utils.py | ftheoleyre/openvisualizer | bddc584ca958ecc12315920de85075a8d0f68f46 | [
"BSD-3-Clause"
] | 6 | 2018-11-11T07:38:18.000Z | 2021-09-27T18:39:01.000Z | tests/ov/test_utils.py | ftheoleyre/openvisualizer | bddc584ca958ecc12315920de85075a8d0f68f46 | [
"BSD-3-Clause"
] | 15 | 2018-09-24T18:49:30.000Z | 2021-06-26T13:26:27.000Z | tests/ov/test_utils.py | ftheoleyre/openvisualizer | bddc584ca958ecc12315920de85075a8d0f68f46 | [
"BSD-3-Clause"
] | 17 | 2018-10-01T15:19:53.000Z | 2021-09-27T18:39:05.000Z | #!/usr/bin/env python
import json
import logging.handlers
import pytest
# ============================ logging =========================================
from openvisualizer.utils import byteinverse, hex2buf, format_ipv6_addr, buf2int
LOGFILE_NAME = 'test_utils.log'
log = logging.getLogger('test_utils')
log.setLeve... | 24.985915 | 95 | 0.567362 |
c14db3ad5062d27c7939aef9b56552b19f715057 | 1,750 | py | Python | examples/wavelets.py | RandallBalestriero/TheanoXLA | d8778c2eb3254b478cef4f45d934bf921e695619 | [
"Apache-2.0"
] | 67 | 2020-02-21T21:26:46.000Z | 2020-06-14T14:25:42.000Z | examples/wavelets.py | RandallBalestriero/TheanoXLA | d8778c2eb3254b478cef4f45d934bf921e695619 | [
"Apache-2.0"
] | 8 | 2020-02-22T14:45:56.000Z | 2020-06-07T16:56:47.000Z | examples/wavelets.py | RandallBalestriero/TheanoXLA | d8778c2eb3254b478cef4f45d934bf921e695619 | [
"Apache-2.0"
] | 4 | 2020-02-21T17:34:46.000Z | 2020-05-30T08:30:14.000Z | import symjax
import symjax.tensor as T
import matplotlib.pyplot as plt
import numpy as np
J = 5
Q = 4
scales = T.power(2, T.linspace(0.1, J - 1, J * Q))
scales = scales[:, None]
print(scales.get())
wavelet = symjax.tensor.signal.complex_morlet(5 * scales, np.pi / scales)
waveletw = symjax.tensor.signal.fourier_comp... | 26.515152 | 73 | 0.618857 |
c14df36ecc98c5023fbace51e528ab56c196d926 | 150 | py | Python | random_walk/__init__.py | NishanthVAnand/new_env_gym | 6ed044e8ab9b64fb3e6b3def432609833730a60a | [
"MIT"
] | null | null | null | random_walk/__init__.py | NishanthVAnand/new_env_gym | 6ed044e8ab9b64fb3e6b3def432609833730a60a | [
"MIT"
] | null | null | null | random_walk/__init__.py | NishanthVAnand/new_env_gym | 6ed044e8ab9b64fb3e6b3def432609833730a60a | [
"MIT"
] | null | null | null | from gym.envs.registration import register
register(
id='RandomWalk-v0',
entry_point='random_walk.envs:RandomWalk',
timestep_limit=100,
) | 21.428571 | 46 | 0.746667 |
c1512b991182de5c84f4cb76bf9c7b36cfead1a2 | 7,785 | py | Python | scripts/create_catalog_for_gdal2tiles_tiles.py | granularag/pyspatial | 8c6d53eeeabf1eedd222db95812453f83a6685bb | [
"BSD-3-Clause"
] | 76 | 2016-03-23T19:47:19.000Z | 2021-04-27T21:58:16.000Z | scripts/create_catalog_for_gdal2tiles_tiles.py | granularag/pyspatial | 8c6d53eeeabf1eedd222db95812453f83a6685bb | [
"BSD-3-Clause"
] | 15 | 2016-02-27T02:33:00.000Z | 2018-01-11T18:53:39.000Z | scripts/create_catalog_for_gdal2tiles_tiles.py | granularag/pyspatial | 8c6d53eeeabf1eedd222db95812453f83a6685bb | [
"BSD-3-Clause"
] | 11 | 2016-02-10T22:53:05.000Z | 2019-01-04T21:39:53.000Z |
import os
import sys
import json
import math
import pprint
import argparse
import logging
# log = logging.getLogger('geos.py')
# log.propagate = False
log = logging.getLogger(__file__)
# logging.basicConfig(stream = sys.stderr, level=logging.DEBUG, format='%(filename)s:%(lineno)s %(levelname)s:%(message)s')
logging.ba... | 43.25 | 151 | 0.620039 |
c1554a35bab60b73f5aa060ae8181704c33ebdbb | 289 | py | Python | automated_survey/admin.py | gaganmac/d4surveyHeroku | 7331a18cb56422d1f20fb9f1c6ffa178897f9b5f | [
"MIT"
] | 55 | 2015-10-01T15:39:05.000Z | 2021-11-15T20:08:01.000Z | automated_survey/admin.py | gaganmac/d4surveyHeroku | 7331a18cb56422d1f20fb9f1c6ffa178897f9b5f | [
"MIT"
] | 151 | 2015-08-26T18:21:49.000Z | 2022-03-23T22:07:42.000Z | automated_survey/admin.py | gaganmac/d4surveyHeroku | 7331a18cb56422d1f20fb9f1c6ffa178897f9b5f | [
"MIT"
] | 34 | 2015-10-26T05:42:23.000Z | 2021-04-20T08:00:45.000Z | from django.contrib import admin
from .models import Question, QuestionResponse, Survey
# Register for models for use in admin interface
admin.site.register(Question, admin.ModelAdmin)
admin.site.register(QuestionResponse, admin.ModelAdmin)
admin.site.register(Survey, admin.ModelAdmin)
| 32.111111 | 55 | 0.82699 |
c1564ac566376df47fda69ee0037fd88d44e2e17 | 955 | py | Python | migrations/versions/8b6b0dfd41ea_batch_history_table_creation_3.py | dandud/dabl | 4e5e3c5b0e8ec582b2c2b17fe25e0bbe83c26c2f | [
"MIT"
] | 2 | 2022-01-10T00:16:39.000Z | 2022-01-23T20:55:59.000Z | migrations/versions/8b6b0dfd41ea_batch_history_table_creation_3.py | dandud/dabl | 4e5e3c5b0e8ec582b2c2b17fe25e0bbe83c26c2f | [
"MIT"
] | null | null | null | migrations/versions/8b6b0dfd41ea_batch_history_table_creation_3.py | dandud/dabl | 4e5e3c5b0e8ec582b2c2b17fe25e0bbe83c26c2f | [
"MIT"
] | null | null | null | """batch history table creation_3
Revision ID: 8b6b0dfd41ea
Revises: 03949a380153
Create Date: 2021-11-02 21:33:05.445976
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8b6b0dfd41ea'
down_revision = '03949a380153'
branch_labels = None
depends_on = None
| 27.285714 | 90 | 0.705759 |
c15823e6a5d56df3ed84662395def47c143a1b77 | 17,366 | py | Python | gost/gost.py | kste/aeshash | 985ee3a8a3e9853580ac1ab745b446c82c97a095 | [
"MIT"
] | 5 | 2015-10-09T22:23:50.000Z | 2021-02-21T22:10:38.000Z | gost/gost.py | kste/aeshash | 985ee3a8a3e9853580ac1ab745b446c82c97a095 | [
"MIT"
] | null | null | null | gost/gost.py | kste/aeshash | 985ee3a8a3e9853580ac1ab745b446c82c97a095 | [
"MIT"
] | null | null | null | '''
Created on Jan 7, 2014
@author: Stefan Koelbl
'''
import random
| 42.356098 | 139 | 0.578141 |
c15830832d9912b8424523874e9244145c0490d4 | 4,998 | py | Python | python/SerialPort.py | ptracton/project_stub | 6a2ae6cf7d611658bf3d7265d21d36e14dac8c34 | [
"MIT"
] | null | null | null | python/SerialPort.py | ptracton/project_stub | 6a2ae6cf7d611658bf3d7265d21d36e14dac8c34 | [
"MIT"
] | null | null | null | python/SerialPort.py | ptracton/project_stub | 6a2ae6cf7d611658bf3d7265d21d36e14dac8c34 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
'''
This is our Serial Port class. It inherits from PySerial. We extend it for
our needs as a packet communication system.
'''
import array
import logging
import serial
import serial.tools.list_ports
import Packet
from constants import *
| 32.454545 | 95 | 0.576631 |
c1584e1ef17fb00250d77651bb00abf18aa4c207 | 851 | py | Python | CCC/CCC '14 S5 - Lazy Fox (9 of 15).py | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 2 | 2021-04-13T00:19:56.000Z | 2021-04-13T01:19:45.000Z | CCC/CCC '14 S5 - Lazy Fox (9 of 15).py | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | null | null | null | CCC/CCC '14 S5 - Lazy Fox (9 of 15).py | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 1 | 2020-08-26T12:36:08.000Z | 2020-08-26T12:36:08.000Z | points = [[0, 0]]
n = int(input())
for i in range(n):
x, y = map(int, input().split())
points.append([x, y])
distance_pairs = []
for i in range(n + 1):
for j in range(i, n + 1):
dx = points[i][0] - points[j][0]
dy = points[i][1] - points[j][1]
distance_pairs.append([dx ** 2 + dy ** 2, i, j])
distanc... | 21.820513 | 74 | 0.500588 |
c1585ca92fd9f7c55fffd28945a50df3ac4401d8 | 1,307 | py | Python | core/simulation.py | xlcbingo1999/CloudSimPy | de515eceb5d177142bb154deff0d44c58f6aca88 | [
"MIT"
] | null | null | null | core/simulation.py | xlcbingo1999/CloudSimPy | de515eceb5d177142bb154deff0d44c58f6aca88 | [
"MIT"
] | null | null | null | core/simulation.py | xlcbingo1999/CloudSimPy | de515eceb5d177142bb154deff0d44c58f6aca88 | [
"MIT"
] | null | null | null | from core.monitor import Monitor
| 34.394737 | 89 | 0.664881 |
c15a11bff5706bd78f8d5633560270d5f1288958 | 1,198 | py | Python | Data Science With Python/22-network-analysis-in-python-(part-1)/02-important-nodes/07-networkx-betweenness-centrality-on-a-social-network.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 3 | 2019-05-12T04:49:24.000Z | 2020-05-06T00:40:28.000Z | Data Science With Python/22-network-analysis-in-python-(part-1)/02-important-nodes/07-networkx-betweenness-centrality-on-a-social-network.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | null | null | null | Data Science With Python/22-network-analysis-in-python-(part-1)/02-important-nodes/07-networkx-betweenness-centrality-on-a-social-network.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 7 | 2018-11-06T17:43:31.000Z | 2020-11-07T21:08:16.000Z | '''
NetworkX betweenness centrality on a social network
Betweenness centrality is a node importance metric that uses information about the shortest paths in a network. It is defined as the fraction of all possible shortest paths between any pair of nodes that pass through the node.
NetworkX provides the nx.betweennes... | 49.916667 | 241 | 0.803005 |
c15a5e8403813ad9bc2916dbdbb786b43c935f5d | 2,110 | py | Python | src/onegov/town6/views/files.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/town6/views/files.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/town6/views/files.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from onegov.core.security import Private, Public
from onegov.file import File
from onegov.org.views.files import view_file_details, \
view_get_image_collection, view_upload_general_file, \
view_upload_image_file, view_file_digest, handle_sign,\
view_get_file_collection
from onegov.town6 import TownApp
from... | 35.762712 | 78 | 0.770142 |
c15b395be045c74bbf78970ce90b3d9d8a773036 | 667 | py | Python | sktracker/ui/mpl/matplotlib_widget.py | bnoi/scikit-tracker | 8771006a3a682ab299e4446c800c05f36a027df7 | [
"BSD-3-Clause"
] | 6 | 2016-03-03T12:45:32.000Z | 2018-07-06T18:51:46.000Z | sktracker/ui/mpl/matplotlib_widget.py | bnoi/scikit-tracker | 8771006a3a682ab299e4446c800c05f36a027df7 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T07:54:20.000Z | 2021-05-12T07:54:20.000Z | sktracker/ui/mpl/matplotlib_widget.py | bnoi/scikit-tracker | 8771006a3a682ab299e4446c800c05f36a027df7 | [
"BSD-3-Clause"
] | 2 | 2017-11-27T13:40:43.000Z | 2020-12-12T18:31:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
import matplotlib.pyplot as plt
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
| 23 | 80 | 0.656672 |
c15bc0e32de354e3e61d123c20d9b6c3b029f90e | 1,958 | py | Python | tests/test_ilqr.py | lassepe/pyILQR | 47bda0fc2abefe26acd547b9e0c91941e2b85a55 | [
"MIT"
] | 6 | 2021-11-09T02:37:20.000Z | 2021-12-25T12:57:35.000Z | tests/test_ilqr.py | lassepe/pyILQR | 47bda0fc2abefe26acd547b9e0c91941e2b85a55 | [
"MIT"
] | null | null | null | tests/test_ilqr.py | lassepe/pyILQR | 47bda0fc2abefe26acd547b9e0c91941e2b85a55 | [
"MIT"
] | null | null | null | import numpy as np
from pyilqr.costs import QuadraticCost
from pyilqr.example_costs import SetpointTrackingCost
from pyilqr.example_dynamics import UnicycleDynamics, BicycleDynamics
from pyilqr.ocp import OptimalControlProblem
from pyilqr.ilqr import ILQRSolver
from pyilqr.strategies import FunctionStrategy
| 35.6 | 87 | 0.722676 |
c15d915fb2f7a1eeef57dff8cf3b37d511e45f85 | 665 | py | Python | xue/cms/middleware/dummylang.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | 1 | 2015-11-23T02:33:07.000Z | 2015-11-23T02:33:07.000Z | xue/cms/middleware/dummylang.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | xue/cms/middleware/dummylang.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from cms.utils.i18n import get_default_language
from django.conf import settings
from django.core.urlresolvers import reverse
from django.middleware.locale import LocaleMiddleware
from django.utils import translation
import re
import urllib
| 31.666667 | 59 | 0.736842 |
c15ddd756a84d937d952544396696c0b7fce0e3a | 7,241 | py | Python | rlpyt/agents/classic/pi_agent.py | wingbender/rlpyt | 168993d8b4bf5ce44334dd4f0722a1600bb1973a | [
"MIT"
] | null | null | null | rlpyt/agents/classic/pi_agent.py | wingbender/rlpyt | 168993d8b4bf5ce44334dd4f0722a1600bb1973a | [
"MIT"
] | null | null | null | rlpyt/agents/classic/pi_agent.py | wingbender/rlpyt | 168993d8b4bf5ce44334dd4f0722a1600bb1973a | [
"MIT"
] | null | null | null | import numpy as np
import torch
from collections import namedtuple
from torch.nn.parallel import DistributedDataParallel as DDP
# from torch.nn.parallel import DistributedDataParallelCPU as DDPC # Deprecated
from rlpyt.agents.base import BaseAgent, AgentStep
from rlpyt.models.qpg.mlp import QofMuMlpModel, PiMlpModel
... | 44.152439 | 121 | 0.658196 |
c15dfadb658affb74e738f86b7d72a2174585fa3 | 1,150 | py | Python | backend_final/apartacho/publications/models.py | cenavia/skylynx | 6286294a8cd57279e3c176d8fcae656cef4b40a8 | [
"MIT"
] | 3 | 2020-04-29T18:07:40.000Z | 2020-05-20T20:52:52.000Z | backend_final/apartacho/publications/models.py | cenavia/Apartacho | 6286294a8cd57279e3c176d8fcae656cef4b40a8 | [
"MIT"
] | 53 | 2020-05-13T03:27:41.000Z | 2022-03-12T00:32:46.000Z | backend_final/apartacho/publications/models.py | cenavia/Apartacho | 6286294a8cd57279e3c176d8fcae656cef4b40a8 | [
"MIT"
] | 2 | 2020-05-16T05:34:45.000Z | 2020-06-11T14:47:50.000Z | """Publication model."""
# Django
from django.db import models
# Utilities
from apartacho.utils.models import ApartachoModel
from apartacho.properties.models import Property
from apartacho.users.models import User
| 23.958333 | 65 | 0.665217 |
c165ed942a8a6a18c750b464de2dca9115910970 | 1,787 | py | Python | src/web/modules/entrance/migrations/0036_auto_20170426_1205.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 5 | 2018-03-08T17:22:27.000Z | 2018-03-11T14:20:53.000Z | src/web/modules/entrance/migrations/0036_auto_20170426_1205.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 263 | 2018-03-08T18:05:12.000Z | 2022-03-11T23:26:20.000Z | src/web/modules/entrance/migrations/0036_auto_20170426_1205.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 6 | 2018-03-12T19:48:19.000Z | 2022-01-14T04:58:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-26 07:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import modules.entrance.models.checking
| 34.365385 | 141 | 0.632345 |
c1664235931bcfce6e4466e168c88ec4479096df | 651 | py | Python | examples/paint-nd.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 1,345 | 2019-03-03T21:14:14.000Z | 2022-03-31T19:46:39.000Z | examples/paint-nd.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 3,904 | 2019-03-02T01:30:24.000Z | 2022-03-31T20:17:27.000Z | examples/paint-nd.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 306 | 2019-03-29T17:09:10.000Z | 2022-03-30T09:54:11.000Z | """
Display a 4D labels layer and paint only in 3D.
This is useful e.g. when proofreading segmentations within a time series.
"""
import numpy as np
from skimage import data
import napari
blobs = np.stack(
[
data.binary_blobs(
length=128, blob_size_fraction=0.05, n_dim=3, volume_fraction=f
... | 22.448276 | 75 | 0.697389 |
c16aaabc7a7c0e443d5dfb16bd02de1d7cda11b2 | 13,986 | py | Python | Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/extern/dexml/__init__.py | ekkipermana/robotframework-test | 243ca26f69962f8cf20cd7d054e0ff3e709bc7f4 | [
"bzip2-1.0.6"
] | 11 | 2017-09-30T05:47:28.000Z | 2019-04-15T11:58:40.000Z | Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/extern/dexml/__init__.py | ekkipermana/robotframework-test | 243ca26f69962f8cf20cd7d054e0ff3e709bc7f4 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/extern/dexml/__init__.py | ekkipermana/robotframework-test | 243ca26f69962f8cf20cd7d054e0ff3e709bc7f4 | [
"bzip2-1.0.6"
] | 7 | 2018-02-13T10:22:39.000Z | 2019-07-04T07:39:28.000Z | """
dexml: a dead-simple Object-XML mapper for Python
Let's face it: xml is a fact of modern life. I'd even go so far as to say
that it's *good* at what is does. But that doesn't mean it's easy to work
with and it doesn't mean that we have to like it. Most of the time, XML
just needs to get the hell out of the ... | 38.423077 | 137 | 0.573931 |
c16c436a2613e1f0827e0c6745356317b569036c | 720 | py | Python | backend/flask/app/api/database/models/RandomSubscriberChallenge.py | tvdhout/twitchess | 398e6390a456d432893a7e1e1c880c92cdcadf7c | [
"MIT"
] | 1 | 2022-01-08T05:55:37.000Z | 2022-01-08T05:55:37.000Z | backend/flask/app/api/database/models/RandomSubscriberChallenge.py | tvdhout/twitchess | 398e6390a456d432893a7e1e1c880c92cdcadf7c | [
"MIT"
] | 1 | 2022-01-08T05:53:49.000Z | 2022-01-28T15:03:33.000Z | backend/flask/app/api/database/models/RandomSubscriberChallenge.py | tvdhout/twitchess | 398e6390a456d432893a7e1e1c880c92cdcadf7c | [
"MIT"
] | null | null | null | from sqlalchemy import Column, String
from app.api.database.models import Base
def make_subscriber_table(name: str) -> type:
"""
Return a new SQLAlchemy Table object representing the lichess - twitch pairs for a certain user.
"""
return Pair
| 32.727273 | 112 | 0.665278 |
c16ecef4bb1455bf9f9d6be93c85dbd03822f406 | 239 | py | Python | nightowlcli/__main__.py | shawnoster/nightowlcli | 4d73e2c1aeec947a03aad056d90824ebdf729335 | [
"MIT"
] | null | null | null | nightowlcli/__main__.py | shawnoster/nightowlcli | 4d73e2c1aeec947a03aad056d90824ebdf729335 | [
"MIT"
] | null | null | null | nightowlcli/__main__.py | shawnoster/nightowlcli | 4d73e2c1aeec947a03aad056d90824ebdf729335 | [
"MIT"
] | null | null | null | import argparse
from .funky import get_funky
if __name__ == '__main__':
main()
| 19.916667 | 65 | 0.686192 |
c171410988f726a171d676c55f53fe69516ad39a | 244 | py | Python | ProgramacaoFuncional/desafio_mdc.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | null | null | null | ProgramacaoFuncional/desafio_mdc.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | 4 | 2021-04-08T21:54:09.000Z | 2022-02-10T14:35:13.000Z | ProgramacaoFuncional/desafio_mdc.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | null | null | null | #Desafio MDC
if __name__ == '__main__':
print(mdc([21, 7])) #7
print(mdc([125, 40])) #5
print(mdc([9, 564, 66, 3])) #3
print(mdc([55, 22])) #11
print(mdc([15, 150])) #15
print(mdc([7, 9])) #1 | 20.333333 | 34 | 0.520492 |
c1759297362dba0b7e3cda39100f3ef47493c6cb | 4,681 | py | Python | rolling/server/zone/websocket.py | coolkat64/rolling | 4c3ee2401128e993a52ac9b52cdbd32e17728129 | [
"MIT"
] | null | null | null | rolling/server/zone/websocket.py | coolkat64/rolling | 4c3ee2401128e993a52ac9b52cdbd32e17728129 | [
"MIT"
] | null | null | null | rolling/server/zone/websocket.py | coolkat64/rolling | 4c3ee2401128e993a52ac9b52cdbd32e17728129 | [
"MIT"
] | null | null | null | # coding: utf-8
import asyncio
from concurrent.futures._base import CancelledError
import json
import typing
import aiohttp
from aiohttp import web
from aiohttp.web_request import Request
from rolling.exception import DisconnectClient
from rolling.exception import UnableToProcessEvent
from rolling.exception import Un... | 40.353448 | 99 | 0.665029 |
c1786ae62d9081483038fdad01ecb610c15c6a42 | 851 | py | Python | tests/grammpy_test/terminal_tests/TerminalHaveTest.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 1 | 2021-02-04T12:41:08.000Z | 2021-02-04T12:41:08.000Z | tests/grammpy_test/terminal_tests/TerminalHaveTest.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 3 | 2017-07-08T16:28:52.000Z | 2020-04-23T18:06:24.000Z | tests/grammpy_test/terminal_tests/TerminalHaveTest.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 1 | 2021-02-04T12:41:10.000Z | 2021-02-04T12:41:10.000Z | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 10.03.2019 22:00
:Licence MIT
Part of grammpy
"""
from unittest import TestCase, main
from grammpy import Grammar
if __name__ == '__main__':
main()
| 21.820513 | 49 | 0.655699 |
c179380db66f5612563d754e13301930e214abf1 | 7,787 | py | Python | deepconcolic/recviz.py | nberth/DeepConcolic | baece182b34a50fbc781993b1d46bb293976ca9a | [
"BSD-3-Clause"
] | 102 | 2018-05-10T05:46:47.000Z | 2022-01-31T12:40:22.000Z | deepconcolic/recviz.py | eriksali/DeepConcolic | baece182b34a50fbc781993b1d46bb293976ca9a | [
"BSD-3-Clause"
] | 19 | 2018-07-29T12:45:21.000Z | 2022-03-16T13:09:00.000Z | deepconcolic/recviz.py | eriksali/DeepConcolic | baece182b34a50fbc781993b1d46bb293976ca9a | [
"BSD-3-Clause"
] | 43 | 2018-05-02T15:09:20.000Z | 2022-02-02T10:36:30.000Z | #!/usr/bin/env python3
from utils_io import *
from utils_args import *
import yaml
# ---
try:
from pyvis.network import Network
_has_pyvis = True
_pyvis_all_images = ('raw', 'pass', 'adversarial')
except:
_has_pyvis = False
# ---
ap = argparse.ArgumentParser \
(description = 'Interactive visualisat... | 31.654472 | 84 | 0.564916 |
c17aa46e6ae1b0337a5db043b62d8f5fe25f058a | 361 | py | Python | Backend/src/energytransfers/migrations/0002_auto_20200514_1708.py | Valle1806/EnergyCorp | aba09105eedcb7dc694b201e50953e19e4e2936b | [
"MIT"
] | 1 | 2021-01-21T08:30:57.000Z | 2021-01-21T08:30:57.000Z | Backend/src/energytransfers/migrations/0002_auto_20200514_1708.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | Backend/src/energytransfers/migrations/0002_auto_20200514_1708.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-05-14 17:08
from django.db import migrations
| 19 | 47 | 0.581717 |
c17af2bd5c52089ae207aeb33928eaf5571bb837 | 4,453 | py | Python | pydm/widgets/multi_axis_viewbox.py | jbellister-slac/pydm | 8b8a4c638c4310cd08cfe0ebcc20da6b70f94130 | [
"BSD-3-Clause-LBNL"
] | null | null | null | pydm/widgets/multi_axis_viewbox.py | jbellister-slac/pydm | 8b8a4c638c4310cd08cfe0ebcc20da6b70f94130 | [
"BSD-3-Clause-LBNL"
] | null | null | null | pydm/widgets/multi_axis_viewbox.py | jbellister-slac/pydm | 8b8a4c638c4310cd08cfe0ebcc20da6b70f94130 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from pyqtgraph import GraphicsWidget, ViewBox
from qtpy.QtCore import Qt, Signal
| 41.231481 | 118 | 0.621828 |
c17bd371538d14211a06f1c075157df3b2022d1a | 48 | py | Python | Coursera_HW/Week_1/task_4.py | IsFelix/ML-HLS_python_course_fall21 | 3119482d2951feb85d8a7819d2beaac947bca5db | [
"MIT"
] | null | null | null | Coursera_HW/Week_1/task_4.py | IsFelix/ML-HLS_python_course_fall21 | 3119482d2951feb85d8a7819d2beaac947bca5db | [
"MIT"
] | null | null | null | Coursera_HW/Week_1/task_4.py | IsFelix/ML-HLS_python_course_fall21 | 3119482d2951feb85d8a7819d2beaac947bca5db | [
"MIT"
] | null | null | null | N = int(input())
K = int(input())
print(K % N)
| 9.6 | 16 | 0.520833 |
c17c578fb59c57f16e0731481cccb7f178ffaef0 | 3,569 | py | Python | examples/numerical/unsupervised_num.py | stjordanis/QMLT | fc9487f89bf894576d2001abe5a5d07f35f19d7a | [
"Apache-2.0"
] | 117 | 2018-07-03T19:37:52.000Z | 2022-01-02T21:41:43.000Z | examples/numerical/unsupervised_num.py | stjordanis/QMLT | fc9487f89bf894576d2001abe5a5d07f35f19d7a | [
"Apache-2.0"
] | 10 | 2018-07-23T08:58:32.000Z | 2020-03-02T19:57:57.000Z | examples/numerical/unsupervised_num.py | stjordanis/QMLT | fc9487f89bf894576d2001abe5a5d07f35f19d7a | [
"Apache-2.0"
] | 26 | 2018-07-23T08:04:01.000Z | 2022-02-06T01:45:59.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2... | 30.767241 | 101 | 0.688148 |
c17c60fab9c88ecd3b5fc9a676b4ed6073207983 | 564 | py | Python | backend/unpp_api/apps/partner/migrations/0017_auto_20170920_0639.py | unicef/un-partner-portal | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | [
"Apache-2.0"
] | 6 | 2017-11-21T10:00:44.000Z | 2022-02-12T16:51:48.000Z | backend/unpp_api/apps/partner/migrations/0017_auto_20170920_0639.py | unicef/un-partner-portal | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | [
"Apache-2.0"
] | 995 | 2017-07-31T02:08:36.000Z | 2022-03-08T22:44:03.000Z | backend/unpp_api/apps/partner/migrations/0017_auto_20170920_0639.py | unicef/un-partner-portal | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | [
"Apache-2.0"
] | 1 | 2021-07-21T10:45:15.000Z | 2021-07-21T10:45:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-20 06:39
from __future__ import unicode_literals
from django.db import migrations, models
| 26.857143 | 143 | 0.661348 |
c17c68ae3200877db56dbf358f2554f7b5e93369 | 630 | py | Python | tests/test_key_store.py | brickgao/cos-python-sdk | 52d22553e83d0be5c73e8d71a63417e275a32c8e | [
"MIT"
] | null | null | null | tests/test_key_store.py | brickgao/cos-python-sdk | 52d22553e83d0be5c73e8d71a63417e275a32c8e | [
"MIT"
] | null | null | null | tests/test_key_store.py | brickgao/cos-python-sdk | 52d22553e83d0be5c73e8d71a63417e275a32c8e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from contentos_sdk.key_store import KeyStore
| 30 | 64 | 0.693651 |
c17cb0a339ab514cc3f39408d3eba9ae3c247b47 | 168 | py | Python | puft/constants/hints.py | ryzhovalex/omen | c3a36741b40ff28a61c1e62f3e549d39f9847feb | [
"MIT"
] | null | null | null | puft/constants/hints.py | ryzhovalex/omen | c3a36741b40ff28a61c1e62f3e549d39f9847feb | [
"MIT"
] | null | null | null | puft/constants/hints.py | ryzhovalex/omen | c3a36741b40ff28a61c1e62f3e549d39f9847feb | [
"MIT"
] | null | null | null | from .enums import (
CLIDatabaseEnum, CLIRunEnum, CLIHelperEnum, HTTPMethodEnum, TurboActionEnum
)
CLIModeEnumUnion = CLIDatabaseEnum | CLIRunEnum | CLIHelperEnum
| 28 | 79 | 0.809524 |