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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0274bb01109146cf480d663260e32b7e8a8cc2d | 580 | py | Python | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | 3 | 2019-12-16T16:47:16.000Z | 2020-07-28T19:47:34.000Z | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | 15 | 2019-12-05T03:38:19.000Z | 2022-03-13T02:35:30.000Z | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.urls import path, include,re_path
from . import views
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
path('', views.index, name='index'),
path('about', views.about, name='about'),
path('projects', views.projects, name='projects'),... | 34.117647 | 92 | 0.7 |
e027abc215159b586950e87882ad8ad4be055155 | 407 | py | Python | tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py | iPieter/kiwi | 76b66872fce68873809a0dea112e2ed552ae5b63 | [
"Apache-2.0"
] | null | null | null | tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py | iPieter/kiwi | 76b66872fce68873809a0dea112e2ed552ae5b63 | [
"Apache-2.0"
] | 1 | 2021-01-24T13:34:51.000Z | 2021-01-24T13:34:51.000Z | tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py | iPieter/kiwi | 76b66872fce68873809a0dea112e2ed552ae5b63 | [
"Apache-2.0"
] | null | null | null | from six.moves import urllib
from kiwi.store.tracking.file_store import FileStore
| 31.307692 | 75 | 0.746929 |
e02820e74734d672d90f15bf093da7319a0c92ba | 12,815 | py | Python | tests/server/test_flask_api.py | YuhangCh/terracotta | 867ba5f7425fa88881f4c161d81cc7311f4f9c4e | [
"MIT"
] | null | null | null | tests/server/test_flask_api.py | YuhangCh/terracotta | 867ba5f7425fa88881f4c161d81cc7311f4f9c4e | [
"MIT"
] | null | null | null | tests/server/test_flask_api.py | YuhangCh/terracotta | 867ba5f7425fa88881f4c161d81cc7311f4f9c4e | [
"MIT"
] | null | null | null | from io import BytesIO
import json
import urllib.parse
from collections import OrderedDict
from PIL import Image
import numpy as np
import pytest
def test_get_keys(client, use_testdb):
rv = client.get('/keys')
expected_response = [
{'key': 'key1'},
{'key': 'akey'},
{'key': 'key2',... | 30.731415 | 99 | 0.65595 |
e02908fac191deeaa9eb04515ee51d7d466320c5 | 1,695 | py | Python | url.py | matthieucan/shorturl | a7f7fab61e8b23b352590797ca4959ed166c865e | [
"WTFPL"
] | 1 | 2018-10-19T01:57:29.000Z | 2018-10-19T01:57:29.000Z | url.py | matthieucan/shorturl | a7f7fab61e8b23b352590797ca4959ed166c865e | [
"WTFPL"
] | null | null | null | url.py | matthieucan/shorturl | a7f7fab61e8b23b352590797ca4959ed166c865e | [
"WTFPL"
] | null | null | null | def base_conv(n, input_base=10, output_base=10):
"""
Converts a number n from base input_base to base output_base.
The following symbols are used to represent numbers:
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
n can be an int if input_base <= 10, and a string otherwise.
... | 36.06383 | 78 | 0.640708 |
e02960393a5a94bda69769c1a73c609b148e700d | 13,612 | py | Python | src/qtt/qiskit/passes.py | codecrap/qtt | 39a8bf21f7bcab94940a66f4d553a14bf34f82b0 | [
"MIT"
] | null | null | null | src/qtt/qiskit/passes.py | codecrap/qtt | 39a8bf21f7bcab94940a66f4d553a14bf34f82b0 | [
"MIT"
] | null | null | null | src/qtt/qiskit/passes.py | codecrap/qtt | 39a8bf21f7bcab94940a66f4d553a14bf34f82b0 | [
"MIT"
] | null | null | null | import logging
from typing import Dict, List, Optional
import numpy as np
import qiskit
from qiskit.circuit import Barrier, Delay, Reset
from qiskit.circuit.library import (CRXGate, CRYGate, CRZGate, CZGate,
PhaseGate, RXGate, RYGate, RZGate, U1Gate,
... | 36.591398 | 115 | 0.563914 |
e029ad3e92c68df36a0c0c69723e696b156c5364 | 5,616 | py | Python | IAFNNESTA.py | JonathanAlis/IAFNNESTA | 6845bed7e41a162a60e65d709f37cf975c8c8a4e | [
"MIT"
] | 3 | 2021-05-13T05:51:42.000Z | 2022-02-06T13:36:52.000Z | IAFNNESTA.py | JonathanAlis/IAFNNESTA | 6845bed7e41a162a60e65d709f37cf975c8c8a4e | [
"MIT"
] | null | null | null | IAFNNESTA.py | JonathanAlis/IAFNNESTA | 6845bed7e41a162a60e65d709f37cf975c8c8a4e | [
"MIT"
] | 1 | 2022-02-06T13:36:39.000Z | 2022-02-06T13:36:39.000Z |
import IAFNNesterov
import numpy as np
from scipy import sparse
import fil2mat
if __name__ == "__main__":
print(help())
| 35.770701 | 215 | 0.51834 |
e029f3704209eae0d9983e10eec83eadf0c6a288 | 6,952 | py | Python | hypatia/util/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/util/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/util/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | import itertools
import BTrees
from persistent import Persistent
from ZODB.broken import Broken
from zope.interface import implementer
_marker = object()
from .. import exc
from ..interfaces import (
IResultSet,
STABLE,
)
| 31.174888 | 85 | 0.60889 |
e02a89e62a53d61fc9086acef78dc03df26f1de7 | 2,140 | py | Python | backend/listings/migrations/0001_initial.py | relaxxpls/Music-Control | 76f5d10904f820607b3eb756850d5c5d7d89d875 | [
"MIT"
] | null | null | null | backend/listings/migrations/0001_initial.py | relaxxpls/Music-Control | 76f5d10904f820607b3eb756850d5c5d7d89d875 | [
"MIT"
] | null | null | null | backend/listings/migrations/0001_initial.py | relaxxpls/Music-Control | 76f5d10904f820607b3eb756850d5c5d7d89d875 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-30 04:28
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
| 48.636364 | 158 | 0.583645 |
e02ae313e5c6ccbda99f1c423609cc20c6a48485 | 483 | py | Python | examples/example_without_CommandSet/my_listeners.py | LeConstellationniste/DiscordFramework | 24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af | [
"CC0-1.0"
] | 1 | 2021-01-27T14:55:03.000Z | 2021-01-27T14:55:03.000Z | examples/example_without_CommandSet/my_listeners.py | LeConstellationniste/DiscordFramework | 24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af | [
"CC0-1.0"
] | null | null | null | examples/example_without_CommandSet/my_listeners.py | LeConstellationniste/DiscordFramework | 24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af | [
"CC0-1.0"
] | null | null | null | import asyncio
import discord
# Just with a function to add to the bot.
# A Listener already created with the function
from discordEasy.objects import Listener
listener_on_message = Listener(on_message) | 28.411765 | 78 | 0.784679 |
e02beca3eabc9ebe9a2e1d16196b54fbf1a8bc1b | 4,024 | py | Python | pianonet/serving/app.py | robgon-art/pianonet | 8d8a827bc8d310b8ce3f66259bbdf72648e9ca32 | [
"MIT"
] | 14 | 2020-09-01T11:16:28.000Z | 2021-05-02T18:04:21.000Z | pianonet/serving/app.py | robgon-art/pianonet | 8d8a827bc8d310b8ce3f66259bbdf72648e9ca32 | [
"MIT"
] | 5 | 2020-11-13T18:46:05.000Z | 2022-02-10T01:16:13.000Z | pianonet/serving/app.py | robgon-art/pianonet | 8d8a827bc8d310b8ce3f66259bbdf72648e9ca32 | [
"MIT"
] | 3 | 2020-09-02T15:05:00.000Z | 2021-05-02T18:04:24.000Z | import os
import random
from flask import Flask, request, send_from_directory
from werkzeug.utils import secure_filename
from pianonet.core.pianoroll import Pianoroll
from pianonet.model_inspection.performance_from_pianoroll import get_performance_from_pianoroll
app = Flask(__name__)
base_path = "/app/"
# base_pat... | 31.685039 | 115 | 0.706511 |
e02cef0666c1161f8f7f1e91555b80b350dae71e | 4,965 | py | Python | app.py | rafalbigaj/epidemic-model-visualization | 35829180b5a53697b336e8615d854a21b3395f59 | [
"Apache-2.0"
] | null | null | null | app.py | rafalbigaj/epidemic-model-visualization | 35829180b5a53697b336e8615d854a21b3395f59 | [
"Apache-2.0"
] | null | null | null | app.py | rafalbigaj/epidemic-model-visualization | 35829180b5a53697b336e8615d854a21b3395f59 | [
"Apache-2.0"
] | null | null | null | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import logging
import json
import os
import pandas as pd
from datetime import datetime
from datetime import timedelta
fro... | 34.006849 | 132 | 0.67291 |
e02d1d4df9c56883a92d8546af5497c549276afd | 1,106 | py | Python | src/sweetrpg_library_api/application/blueprints/systems/manager.py | paulyhedral/sweetrpg-library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | null | null | null | src/sweetrpg_library_api/application/blueprints/systems/manager.py | paulyhedral/sweetrpg-library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | 33 | 2021-09-18T23:52:05.000Z | 2022-03-30T12:25:49.000Z | src/sweetrpg_library_api/application/blueprints/systems/manager.py | sweetrpg/library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = "Paul Schifferer <dm@sweetrpg.com>"
"""
"""
from flask_rest_jsonapi import ResourceList, ResourceDetail, ResourceRelationship
from sweetrpg_library_objects.api.system.schema import SystemAPISchema
from sweetrpg_api_core.data import APIData
from sweetrpg_library_objects.model.syste... | 28.358974 | 106 | 0.683544 |
e02e416aacee98cfdb91a5328f2267836f5a1229 | 6,862 | py | Python | tests/test_ordering.py | deepio-oc/pabot | ebf1894c6d35b2ddd5c4bca01bceb25189358106 | [
"Apache-2.0"
] | 379 | 2015-02-02T17:47:45.000Z | 2022-03-20T16:51:05.000Z | tests/test_ordering.py | deepio-oc/pabot | ebf1894c6d35b2ddd5c4bca01bceb25189358106 | [
"Apache-2.0"
] | 406 | 2015-02-12T07:41:53.000Z | 2022-03-28T23:35:32.000Z | tests/test_ordering.py | deepio-oc/pabot | ebf1894c6d35b2ddd5c4bca01bceb25189358106 | [
"Apache-2.0"
] | 159 | 2015-01-16T13:42:20.000Z | 2022-03-30T19:48:15.000Z | from robot import __version__ as ROBOT_VERSION
import sys
import tempfile
import textwrap
import unittest
import shutil
import subprocess
| 35.189744 | 273 | 0.557418 |
e02e814aa08f31a0fd4f302fa151aca0b7af7756 | 984 | py | Python | setup.py | Commonists/pageview-api | 39e8b3c3c82f64a500e3dd4f306451c81c7e31b7 | [
"MIT"
] | 21 | 2015-12-02T12:06:38.000Z | 2022-02-11T16:16:06.000Z | setup.py | Commonists/pageview-api | 39e8b3c3c82f64a500e3dd4f306451c81c7e31b7 | [
"MIT"
] | 3 | 2016-04-19T19:56:25.000Z | 2020-08-27T09:52:42.000Z | setup.py | Commonists/pageview-api | 39e8b3c3c82f64a500e3dd4f306451c81c7e31b7 | [
"MIT"
] | 6 | 2017-10-27T15:39:51.000Z | 2020-12-17T02:11:52.000Z | #!/usr/bin/python
# -*- coding: latin-1 -*-
"""Setup script."""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
import pageviewapi
version = pageviewapi.__version__
except ImportError:
version = 'Undefined'
classifiers = [
'Development Status :: 4... | 22.883721 | 52 | 0.670732 |
e030b341c624d43cef697abc742e82664391c682 | 416 | py | Python | task1b.py | juby-gif/assignment1 | 3d39478fdc371e80a546caac545561145afbb080 | [
"BSD-3-Clause"
] | null | null | null | task1b.py | juby-gif/assignment1 | 3d39478fdc371e80a546caac545561145afbb080 | [
"BSD-3-Clause"
] | null | null | null | task1b.py | juby-gif/assignment1 | 3d39478fdc371e80a546caac545561145afbb080 | [
"BSD-3-Clause"
] | null | null | null | #a2_t1b.py
#This program is to convert Celsius to Kelvin
c = 25.0
f = 100.0
k = c_to_k(c)
fa = f_to_c(f)
print("Celsius of " + str(c) + " is " + str(k) + " in Kelvin")
print("Farenheit of " + str(f) + " is " + str(fa) + " in Celsius")
| 24.470588 | 67 | 0.605769 |
e0315471bd1a35e31c6a9cdd93a2a2a27365d479 | 2,702 | py | Python | TWLight/emails/views.py | jajodiaraghav/TWLight | 22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70 | [
"MIT"
] | 1 | 2019-10-24T04:49:52.000Z | 2019-10-24T04:49:52.000Z | TWLight/emails/views.py | jajodiaraghav/TWLight | 22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70 | [
"MIT"
] | 1 | 2019-03-29T15:29:45.000Z | 2019-03-29T15:57:20.000Z | TWLight/emails/views.py | jajodiaraghav/TWLight | 22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70 | [
"MIT"
] | 1 | 2019-09-26T14:40:27.000Z | 2019-09-26T14:40:27.000Z | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse, reverse_lazy
from django.core.mail import BadHeaderError, send_mail
from django.http import HttpResponse, HttpResponseRedirect
f... | 43.580645 | 126 | 0.657661 |
e0322ebc94878f3dc7b69955feb764a97d3db29b | 1,997 | py | Python | frontend/config.py | lcbm/cs-data-ingestion | 314525285bfefe726d86c232937b05d273e44e7f | [
"0BSD"
] | null | null | null | frontend/config.py | lcbm/cs-data-ingestion | 314525285bfefe726d86c232937b05d273e44e7f | [
"0BSD"
] | null | null | null | frontend/config.py | lcbm/cs-data-ingestion | 314525285bfefe726d86c232937b05d273e44e7f | [
"0BSD"
] | null | null | null | """Flask App configuration file."""
import logging
import os
import dotenv
import frontend.constants as constants
dotenv.load_dotenv(os.path.join(constants.BASEDIR, "frontend.env"))
config = {
"development": "frontend.config.Development",
"staging": "frontend.config.Staging",
"production": "front... | 21.473118 | 67 | 0.667001 |
e032bc66a6f5b0a211c59ba883502067921d3427 | 2,961 | py | Python | tests/test_dsl.py | goodreferences/ElasticQuery | 579e387c5a7c1cbbeab999050c0d2faa80ded821 | [
"MIT"
] | null | null | null | tests/test_dsl.py | goodreferences/ElasticQuery | 579e387c5a7c1cbbeab999050c0d2faa80ded821 | [
"MIT"
] | null | null | null | tests/test_dsl.py | goodreferences/ElasticQuery | 579e387c5a7c1cbbeab999050c0d2faa80ded821 | [
"MIT"
] | null | null | null | # ElasticQuery
# File: tests/test_dsl.py
# Desc: tests for ElasticQuery DSL objects (Filter, Query, Aggregate)
from os import path
from unittest import TestCase
from jsontest import JsonTest
from elasticquery import Query, Aggregate, Suggester
from elasticquery.exceptions import (
NoQueryError, NoAggregateError,... | 26.675676 | 72 | 0.646066 |
e033806ab7ea22ebae1fd718d44b4fe732b6c01d | 360 | py | Python | models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py | xianjian-xie/pose-generation | ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32 | [
"MIT"
] | 445 | 2019-04-14T17:48:11.000Z | 2022-03-20T11:53:30.000Z | models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py | xianjian-xie/pose-generation | ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32 | [
"MIT"
] | 17 | 2019-06-03T11:34:22.000Z | 2022-02-28T01:26:13.000Z | models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py | xianjian-xie/pose-generation | ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32 | [
"MIT"
] | 71 | 2019-04-16T01:55:39.000Z | 2022-03-22T05:09:59.000Z | import torch
ckp_path = './checkpoints/fashion_PATN/latest_net_netG.pth'
save_path = './checkpoints/fashion_PATN_v1.0/latest_net_netG.pth'
states_dict = torch.load(ckp_path)
states_dict_new = states_dict.copy()
for key in states_dict.keys():
if "running_var" in key or "running_mean" in key:
del states_dict_new[key]... | 32.727273 | 65 | 0.794444 |
e03555c89ef682c9881524e84b3f99fb40c60411 | 3,916 | py | Python | script/dummy/arm_control.py | amazon-picking-challenge/team_pfn | 2f76524b067d816d8407f6c4fae4e6d33939c024 | [
"Apache-2.0"
] | 7 | 2016-09-04T02:07:04.000Z | 2017-05-25T02:31:07.000Z | script/dummy/arm_control.py | amazon-picking-challenge/team_pfn | 2f76524b067d816d8407f6c4fae4e6d33939c024 | [
"Apache-2.0"
] | null | null | null | script/dummy/arm_control.py | amazon-picking-challenge/team_pfn | 2f76524b067d816d8407f6c4fae4e6d33939c024 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright 2016 Preferred Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 39.959184 | 78 | 0.589122 |
e035deed8737a8c4ccc24d990b915152d4728210 | 3,115 | py | Python | cogs/events.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | cogs/events.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | cogs/events.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | import json
import discord
from utils.time import format_time
from utils import utilities
from discord.ext import commands
from discord import Embed | 39.43038 | 163 | 0.733547 |
e036c8bce2480207e7560bdb8a009054bcbca43d | 1,333 | py | Python | Task/Parallel-calculations/Python/parallel-calculations-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Parallel-calculations/Python/parallel-calculations-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Parallel-calculations/Python/parallel-calculations-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | import multiprocessing
# ========== #Python3 - concurrent
from math import floor, sqrt
numbers = [
112272537195293,
112582718962171,
112272537095293,
115280098190773,
115797840077099,
1099726829285419]
# numbers = [33, 44, 55, 275]
# ========== #Python3 - concurrent
if __name__ == '__main__':... | 28.361702 | 84 | 0.650413 |
e036f44b7fa0f2862267ed2ae2bb354dffc8bc0b | 260 | py | Python | setup.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | null | null | null | setup.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | 9 | 2020-03-24T18:12:45.000Z | 2022-02-10T00:36:57.000Z | setup.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Project: Nowcasting the air pollution using online search log',
author='Emory University(IR Lab)',
license='MIT',
)
| 23.636364 | 80 | 0.692308 |
e037cc498ab758b47d57f427145d459d775fb063 | 339 | py | Python | problems/p0048/s48.py | ahrarmonsur/euler | 4174790637806521a4ea2973abeb76c96c64a782 | [
"MIT"
] | 1 | 2017-12-19T21:18:48.000Z | 2017-12-19T21:18:48.000Z | problems/p0048/s48.py | ahrarmonsur/euler | 4174790637806521a4ea2973abeb76c96c64a782 | [
"MIT"
] | null | null | null | problems/p0048/s48.py | ahrarmonsur/euler | 4174790637806521a4ea2973abeb76c96c64a782 | [
"MIT"
] | null | null | null | """
Project Euler Problem 48
Self powers
Solved by Ahrar Monsur
The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317.
Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
"""
main() | 17.842105 | 74 | 0.575221 |
e037f80102198e6c3f910c89e80dfa13f614bfb4 | 1,109 | py | Python | BigData/sparkTask/test.py | Rainstyd/rainsty | 9a0d5f46c20faf909c4194f315fb9960652cffc6 | [
"Apache-2.0"
] | 1 | 2020-03-25T01:13:35.000Z | 2020-03-25T01:13:35.000Z | BigData/sparkTask/test.py | Rainstyed/rainsty | f74e0ccaf16d1871c9d1870bd8a7c8a63243fcf5 | [
"Apache-2.0"
] | 1 | 2022-01-06T23:49:21.000Z | 2022-01-06T23:49:21.000Z | BigData/sparkTask/test.py | rainstyd/rainsty | 9a0d5f46c20faf909c4194f315fb9960652cffc6 | [
"Apache-2.0"
] | 1 | 2020-03-20T08:48:36.000Z | 2020-03-20T08:48:36.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@author: rainsty
@file: test.py
@time: 2020-01-04 18:36:57
@description:
"""
import os
from pyspark.sql import SparkSession
os.environ['JAVA_HOME'] = '/root/jdk'
os.environ['SPARK_HOME'] = '/root/spark'
os.environ['PYTHON_HOME'] = "/root/python"
os.environ['PYSPARK_P... | 24.108696 | 60 | 0.640216 |
e03860989956f152e97aacd3a94938522a675b8e | 1,042 | py | Python | esercizi/areaSottesaCompareNumPy.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/areaSottesaCompareNumPy.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/areaSottesaCompareNumPy.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | 1 | 2019-03-26T11:14:33.000Z | 2019-03-26T11:14:33.000Z | import numpy as np
import timeit
numIntervalli = input('inserire il numero di intervalli in [0.0, 1.0] ')
deltaIntervallo = 1.0 / float(numIntervalli)
print "larghezza intervallo", deltaIntervallo
start = timeit.default_timer()
xIntervalli = []
yIntervalli = []
i = 0
while i < numIntervalli:
xIntervallo = i*de... | 24.809524 | 72 | 0.726488 |
e039092d052960d2f6c3a01770cd6d300e7b630a | 8,810 | py | Python | json_codegen/generators/python3_marshmallow/object_generator.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 21 | 2018-06-15T16:08:57.000Z | 2022-02-11T16:16:11.000Z | json_codegen/generators/python3_marshmallow/object_generator.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 14 | 2018-08-09T18:02:19.000Z | 2022-01-24T18:04:17.000Z | json_codegen/generators/python3_marshmallow/object_generator.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 4 | 2018-11-30T18:19:10.000Z | 2021-11-18T04:04:36.000Z | import ast
from json_codegen.generators.python3_marshmallow.utils import Annotations, class_name
| 34.414063 | 108 | 0.484222 |
e039c81acd8d1fcb88f92f04b6556a716666da98 | 12,736 | py | Python | testing/regrid/testEsmfGridToMeshRegridCsrv.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | testing/regrid/testEsmfGridToMeshRegridCsrv.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | testing/regrid/testEsmfGridToMeshRegridCsrv.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | #!/usr/bin/env python
#
# $Id: ESMP_GridToMeshRegridCsrv.py,v 1.5 2012/04/23 23:00:14 rokuingh Exp $
#===============================================================================
# ESMP/examples/ESMP_GridToMeshRegrid.py
#===============================================================================
"""... | 33.515789 | 86 | 0.613693 |
e03a335c46211edd43cb24ddb42d950cbfd7fa71 | 1,184 | py | Python | test/mock_module.py | ariffyasri/lale | 326012c3c3dd884fae0093fe0c45596e4f9c0d72 | [
"Apache-2.0"
] | 1 | 2020-04-28T11:27:48.000Z | 2020-04-28T11:27:48.000Z | test/mock_module.py | ariffyasri/lale | 326012c3c3dd884fae0093fe0c45596e4f9c0d72 | [
"Apache-2.0"
] | null | null | null | test/mock_module.py | ariffyasri/lale | 326012c3c3dd884fae0093fe0c45596e4f9c0d72 | [
"Apache-2.0"
] | 1 | 2020-07-30T10:06:23.000Z | 2020-07-30T10:06:23.000Z | # Copyright 2019 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.823529 | 74 | 0.72973 |
e03bee15bfc41f500be41ba4168c4029ea4dba20 | 3,770 | py | Python | scripts/beautify.py | lukaschoebel/POTUSgen | 7b88ba63f0ddab199937df909c5af3271a833cf3 | [
"MIT"
] | null | null | null | scripts/beautify.py | lukaschoebel/POTUSgen | 7b88ba63f0ddab199937df909c5af3271a833cf3 | [
"MIT"
] | 5 | 2020-03-25T08:02:45.000Z | 2020-04-08T20:07:42.000Z | scripts/beautify.py | lukaschoebel/POTUSgen | 7b88ba63f0ddab199937df909c5af3271a833cf3 | [
"MIT"
] | null | null | null | import json
import re
import sys
def beautify(name):
''' Loading, filtering and saving the JSON tweet file to a newly generated .txt file
:type: name: String
:rtype: output: .txt
'''
filename = name + '.json'
output_name = name + "_filtered.txt"
with open(filename, "r", encoding="utf-8")... | 33.963964 | 129 | 0.571088 |
e03c2a58883f30a7a78a6973c7fd5ce571d96bba | 1,746 | py | Python | result2gaofentype/pkl2txt_ggm.py | G-Naughty/Fine-grained-OBB-Detection | 8c82c4c178f0b6bba077ff9d906a81bf8e04789c | [
"Apache-2.0"
] | 2 | 2022-02-06T07:45:03.000Z | 2022-03-11T14:18:32.000Z | result2gaofentype/pkl2txt_ggm.py | G-Naughty/Fine-grained-OBB-Detection | 8c82c4c178f0b6bba077ff9d906a81bf8e04789c | [
"Apache-2.0"
] | null | null | null | result2gaofentype/pkl2txt_ggm.py | G-Naughty/Fine-grained-OBB-Detection | 8c82c4c178f0b6bba077ff9d906a81bf8e04789c | [
"Apache-2.0"
] | null | null | null | import BboxToolkit as bt
import pickle
import copy
import numpy as np
path1="/home/hnu1/GGM/OBBDetection/work_dir/oriented_obb_contrast_catbalance/dets.pkl"
path2="/home/hnu1/GGM/OBBDetection/data/FaIR1M/test/annfiles/ori_annfile.pkl"#
with open(path2,'rb') as f: #/home/disk/FAIR1M_1000_split/val/annfiles/ori_... | 40.604651 | 95 | 0.512027 |
e03e3fafddd8bfe7f29e435a8b1b27b522698dbd | 938 | py | Python | initializer_3d.py | HarperCallahan/taichi_ferrofluid | 6113f6c7d9d9d612b6dadc500cf91b576c2d05ea | [
"MIT"
] | null | null | null | initializer_3d.py | HarperCallahan/taichi_ferrofluid | 6113f6c7d9d9d612b6dadc500cf91b576c2d05ea | [
"MIT"
] | null | null | null | initializer_3d.py | HarperCallahan/taichi_ferrofluid | 6113f6c7d9d9d612b6dadc500cf91b576c2d05ea | [
"MIT"
] | null | null | null | import taichi as ti
import utils
from apic_extension import *
| 31.266667 | 136 | 0.557569 |
e03ebf0129e76590fab9b3f72a3301cc3f5c22ca | 1,265 | py | Python | copy_block_example.py | MilesCranmer/bifrost_paper | 654408cd7e34e7845cee58100fe459e1422e4859 | [
"MIT"
] | null | null | null | copy_block_example.py | MilesCranmer/bifrost_paper | 654408cd7e34e7845cee58100fe459e1422e4859 | [
"MIT"
] | null | null | null | copy_block_example.py | MilesCranmer/bifrost_paper | 654408cd7e34e7845cee58100fe459e1422e4859 | [
"MIT"
] | null | null | null | from copy import deepcopy
import bifrost as bf
from bifrost.pipeline import TransformBlock
from bifrost.ndarray import copy_array
bc = bf.BlockChainer()
bc.blocks.read_wav(['hey_jude.wav'], gulp_nframe=4096)
bc.custom(copy_block)(space='cuda')# $\tikzmark{gpu-start}$
bc.views.s... | 30.853659 | 98 | 0.674308 |
e0404632a7378b088279de3e94aac11c26a9e183 | 1,540 | py | Python | monasca_persister/conf/influxdb.py | zhangjianweibj/monasca-persister | 0c5d8a7c5553001f2d38227347f482201f92c8e1 | [
"Apache-2.0"
] | null | null | null | monasca_persister/conf/influxdb.py | zhangjianweibj/monasca-persister | 0c5d8a7c5553001f2d38227347f482201f92c8e1 | [
"Apache-2.0"
] | 1 | 2020-03-13T12:30:29.000Z | 2020-03-13T12:38:16.000Z | monasca_persister/conf/influxdb.py | zhangjianweibj/monasca-persister | 0c5d8a7c5553001f2d38227347f482201f92c8e1 | [
"Apache-2.0"
] | null | null | null | # (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# Copyright 2017 FUJITSU LIMITED
#
# 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... | 32.765957 | 69 | 0.653896 |
e040676396d83dae688cf225c1f4290cf1100f35 | 192 | py | Python | test_print_json.py | huangsen365/boto3-docker | 42d46ce4433dd037006d6b8d01db3fe444b9d8dd | [
"Apache-2.0"
] | null | null | null | test_print_json.py | huangsen365/boto3-docker | 42d46ce4433dd037006d6b8d01db3fe444b9d8dd | [
"Apache-2.0"
] | null | null | null | test_print_json.py | huangsen365/boto3-docker | 42d46ce4433dd037006d6b8d01db3fe444b9d8dd | [
"Apache-2.0"
] | null | null | null | import json
your_json = '["foo", {"bar":["baz", null, 1.0, 2]}]'
parsed = json.loads(your_json)
print(type(your_json))
print(type(parsed))
#print(json.dumps(parsed, indent=4, sort_keys=True)) | 27.428571 | 52 | 0.6875 |
e041875337916a4d8560bbab0e0b68edca74373b | 13,929 | py | Python | src/solutions/common/integrations/cirklo/api.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/integrations/cirklo/api.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/integrations/cirklo/api.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 42.858462 | 120 | 0.710604 |
e042a55525baf01a1dd738c8dd3863fa44f09d50 | 1,624 | py | Python | aplpy/tests/test_grid.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | null | null | null | aplpy/tests/test_grid.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | null | null | null | aplpy/tests/test_grid.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | 1 | 2018-02-26T03:04:19.000Z | 2018-02-26T03:04:19.000Z | import matplotlib
matplotlib.use('Agg')
import numpy as np
from astropy.tests.helper import pytest
from .. import FITSFigure
| 20.049383 | 39 | 0.618842 |
e0435a8bdb5ad3ee4a83d670d6af34fbe9094657 | 12,910 | py | Python | vz.py | ponyatov/vz | f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1 | [
"MIT"
] | null | null | null | vz.py | ponyatov/vz | f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1 | [
"MIT"
] | null | null | null | vz.py | ponyatov/vz | f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1 | [
"MIT"
] | null | null | null | import os, sys
Project(
title='ViZual language environment',
about='''
* object (hyper)graph interpreter
'''
).sync()
| 32.849873 | 96 | 0.449109 |
e044775152d95d5fb032af9b89fee05b4ac263fe | 2,630 | py | Python | src/server.py | FlakM/fastai_text_serving | 8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a | [
"Apache-2.0"
] | null | null | null | src/server.py | FlakM/fastai_text_serving | 8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a | [
"Apache-2.0"
] | null | null | null | src/server.py | FlakM/fastai_text_serving | 8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
import aiohttp
import uvicorn
from fastai.vision import *
from starlette.applications import Starlette
from starlette.middleware.cors import CORSMiddleware
from starlette.responses import JSONResponse
# put your url here here
model_file_url = 'https://www.dropbox.com/s/...?raw=1'
model_f... | 30.941176 | 107 | 0.692776 |
e0448da70febec0759bc638d5a460760c3964480 | 402 | py | Python | tcpserver.py | justforbalance/CSnet | c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6 | [
"MIT"
] | null | null | null | tcpserver.py | justforbalance/CSnet | c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6 | [
"MIT"
] | null | null | null | tcpserver.py | justforbalance/CSnet | c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6 | [
"MIT"
] | null | null | null | from socket import *
serverPort = 12001
serverSocket = socket(AF_INET, SOCK_STREAM)
serverSocket.bind(('', serverPort))
serverSocket.listen(1)
print("the server is ready to receive")
while True:
connectionSocket,addr = serverSocket.accept()
sentence = connectionSocket.recv(1024).decode()
sentence = sentence... | 33.5 | 51 | 0.753731 |
e044ab975c816db8531273f338dcef5b52d8c7ce | 1,061 | py | Python | src/geneflow/extend/local_workflow.py | jhphan/geneflow2 | a39ab97e6425ee45584cfc15b5740e94a5bf7512 | [
"Apache-2.0"
] | 7 | 2019-04-11T03:50:51.000Z | 2020-03-27T15:59:04.000Z | src/geneflow/extend/local_workflow.py | jhphan/geneflow2 | a39ab97e6425ee45584cfc15b5740e94a5bf7512 | [
"Apache-2.0"
] | 1 | 2019-05-06T14:18:42.000Z | 2019-05-08T22:06:12.000Z | src/geneflow/extend/local_workflow.py | jhphan/geneflow2 | a39ab97e6425ee45584cfc15b5740e94a5bf7512 | [
"Apache-2.0"
] | 6 | 2019-04-10T20:25:27.000Z | 2021-12-16T15:59:59.000Z | """This module contains the GeneFlow LocalWorkflow class."""
| 18.293103 | 60 | 0.524034 |
e0453a8ff093c7c5f6bb2239656a47c98c50cec7 | 2,849 | py | Python | S12/tensornet/engine/ops/lr_scheduler.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | 4 | 2020-06-18T13:07:19.000Z | 2022-01-07T10:51:10.000Z | S12/tensornet/engine/ops/lr_scheduler.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | 1 | 2021-07-31T04:34:46.000Z | 2021-08-11T05:55:57.000Z | S12/tensornet/engine/ops/lr_scheduler.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | 4 | 2020-08-09T07:10:46.000Z | 2021-01-16T14:57:23.000Z | from torch.optim.lr_scheduler import StepLR, ReduceLROnPlateau, OneCycleLR
def step_lr(optimizer, step_size, gamma=0.1, last_epoch=-1):
"""Create LR step scheduler.
Args:
optimizer (torch.optim): Model optimizer.
step_size (int): Frequency for changing learning rate.
gamma (float): Fa... | 40.7 | 102 | 0.679537 |
e045d172e3aa9769db37dd0c8977af6b2b83dca1 | 10,889 | py | Python | armi/reactor/tests/test_zones.py | youngmit/armi | 67688e4e67d2a217dfc7b1ccfa64028c20b57a5b | [
"Apache-2.0"
] | null | null | null | armi/reactor/tests/test_zones.py | youngmit/armi | 67688e4e67d2a217dfc7b1ccfa64028c20b57a5b | [
"Apache-2.0"
] | null | null | null | armi/reactor/tests/test_zones.py | youngmit/armi | 67688e4e67d2a217dfc7b1ccfa64028c20b57a5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 39.740876 | 113 | 0.629718 |
e04601e1749bc51e7e5f74ca383f947dc25e7da9 | 562 | py | Python | islam_fitz/survey/migrations/0005_auto_20210712_2132.py | OmarEhab177/Islam_fitz | 6ad0eb21549895a6fe537e8413022b82bc530c57 | [
"MIT"
] | null | null | null | islam_fitz/survey/migrations/0005_auto_20210712_2132.py | OmarEhab177/Islam_fitz | 6ad0eb21549895a6fe537e8413022b82bc530c57 | [
"MIT"
] | 2 | 2022-03-01T12:17:05.000Z | 2022-03-30T12:19:55.000Z | islam_fitz/survey/migrations/0005_auto_20210712_2132.py | OmarEhab177/Islam_fitz | 6ad0eb21549895a6fe537e8413022b82bc530c57 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-07-12 19:32
from django.db import migrations, models
| 23.416667 | 61 | 0.592527 |
e046ccaf1594be44b4bc74501cfe08b79d45a1d7 | 490 | py | Python | Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 5 | 2019-01-28T05:17:12.000Z | 2020-04-14T14:31:34.000Z | Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 1 | 2019-01-28T16:07:26.000Z | 2021-11-25T10:59:52.000Z | Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 6 | 2018-07-16T14:57:34.000Z | 2020-08-30T05:59:52.000Z | import aspose.email.mapi.msg as msg
from aspose.email.mapi import MapiNote, NoteSaveFormat, NoteColor
if __name__ == '__main__':
run()
| 25.789474 | 77 | 0.746939 |
e04830a8bb6dffa22a3b7aa461ea3221561a26cd | 6,114 | py | Python | nonebot/internal/adapter/template.py | mobyw/nonebot2 | 36663f1a8a51bd89f4a60110047e73719adcc73d | [
"MIT"
] | null | null | null | nonebot/internal/adapter/template.py | mobyw/nonebot2 | 36663f1a8a51bd89f4a60110047e73719adcc73d | [
"MIT"
] | null | null | null | nonebot/internal/adapter/template.py | mobyw/nonebot2 | 36663f1a8a51bd89f4a60110047e73719adcc73d | [
"MIT"
] | null | null | null | import functools
from string import Formatter
from typing import (
TYPE_CHECKING,
Any,
Set,
Dict,
List,
Type,
Tuple,
Union,
Generic,
Mapping,
TypeVar,
Callable,
Optional,
Sequence,
cast,
overload,
)
if TYPE_CHECKING:
from .message import Message, Mess... | 33.048649 | 85 | 0.56248 |
e048929c57d8279d48bbfdb7b6430abd2459ceab | 243 | py | Python | Others/code_festival/code-festival-2015-final-open/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | Others/code_festival/code-festival-2015-final-open/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | Others/code_festival/code-festival-2015-final-open/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
if __name__ == '__main__':
main()
| 16.2 | 52 | 0.440329 |
e048b527992db2f1543fe57b684fc1f640173519 | 328 | py | Python | python_Project/Day_16-20/test_2.py | Zzz-ww/Python-prac | c97f2c16b74a2c1df117f377a072811cc596f98b | [
"MIT"
] | null | null | null | python_Project/Day_16-20/test_2.py | Zzz-ww/Python-prac | c97f2c16b74a2c1df117f377a072811cc596f98b | [
"MIT"
] | null | null | null | python_Project/Day_16-20/test_2.py | Zzz-ww/Python-prac | c97f2c16b74a2c1df117f377a072811cc596f98b | [
"MIT"
] | null | null | null | """
"""
names = ['', '', '', '', '']
courses = ['', '', '']
#
scores = [[None] * len(courses) for _ in range(len(names))]
for row, name in enumerate(names):
for col, course in enumerate(courses):
scores[row][col] = float(input(f'{name}{course}:'))
print(scores) | 25.230769 | 66 | 0.591463 |
e04a69c5ceb81801a0a97e45ded8c53330ccbc76 | 18,672 | py | Python | asr/dataloaders/am_dataloader.py | Z-yq/audioSamples.github.io | 53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3 | [
"Apache-2.0"
] | 1 | 2022-03-03T02:51:55.000Z | 2022-03-03T02:51:55.000Z | asr/dataloaders/am_dataloader.py | Z-yq/audioSamples.github.io | 53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3 | [
"Apache-2.0"
] | null | null | null | asr/dataloaders/am_dataloader.py | Z-yq/audioSamples.github.io | 53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3 | [
"Apache-2.0"
] | null | null | null | import logging
import random
import numpy as np
import pypinyin
import tensorflow as tf
from augmentations.augments import Augmentation
from utils.speech_featurizers import SpeechFeaturizer
from utils.text_featurizers import TextFeaturizer
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(le... | 43.322506 | 152 | 0.530366 |
e04c1f351c8c0376a0ea90e165d6e346051fee43 | 7,612 | py | Python | migrations/versions/2018_04_20_data_src_refactor.py | AlexKouzy/ethnicity-facts-and-figures-publisher | 18ab2495a8633f585e18e607c7f75daa564a053d | [
"MIT"
] | null | null | null | migrations/versions/2018_04_20_data_src_refactor.py | AlexKouzy/ethnicity-facts-and-figures-publisher | 18ab2495a8633f585e18e607c7f75daa564a053d | [
"MIT"
] | null | null | null | migrations/versions/2018_04_20_data_src_refactor.py | AlexKouzy/ethnicity-facts-and-figures-publisher | 18ab2495a8633f585e18e607c7f75daa564a053d | [
"MIT"
] | null | null | null | """empty message
Revision ID: 2018_04_20_data_src_refactor
Revises: 2018_04_11_add_sandbox_topic
Create Date: 2018-04-20 13:03:32.478880
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
from sqlalchemy.dialects.postgresql import ARRAY
revision = '2018_04_20_data_src_refac... | 62.909091 | 152 | 0.759721 |
e04ce14b43e2b6f0784e3b17efec18f6e25f76d2 | 1,897 | py | Python | lib/core/parse/cmdline.py | vikas-kundu/phonedict | 6795cab0024e792340c43d95552162a985b891f6 | [
"MIT"
] | null | null | null | lib/core/parse/cmdline.py | vikas-kundu/phonedict | 6795cab0024e792340c43d95552162a985b891f6 | [
"MIT"
] | null | null | null | lib/core/parse/cmdline.py | vikas-kundu/phonedict | 6795cab0024e792340c43d95552162a985b891f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# coded by Vikas Kundu https://github.com/vikas-kundu
# -------------------------------------------
import sys
import getopt
import time
import config
from lib.core.parse import banner
from lib.core import util
from lib.core import installer
| 28.313433 | 129 | 0.461255 |
e04d583757322341dcf56eb5852389f9fd5b2748 | 1,634 | py | Python | mistral/tests/unit/utils/test_utils.py | shubhamdang/mistral | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | [
"Apache-2.0"
] | 205 | 2015-06-21T11:51:47.000Z | 2022-03-05T04:00:04.000Z | mistral/tests/unit/utils/test_utils.py | shubhamdang/mistral | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | [
"Apache-2.0"
] | 8 | 2015-06-23T14:47:58.000Z | 2021-01-28T06:06:44.000Z | mistral/tests/unit/utils/test_utils.py | shubhamdang/mistral | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | [
"Apache-2.0"
] | 110 | 2015-06-14T03:34:38.000Z | 2021-11-11T12:12:56.000Z | # Copyright 2013 - Mirantis, Inc.
# Copyright 2015 - StackStorm, Inc.
# Copyright 2015 - Huawei Technologies Co. Ltd
#
# 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:/... | 29.178571 | 77 | 0.632191 |
e04da5eb604fc61099ea52110ba3398380247444 | 2,660 | py | Python | shoutcast_api/shoutcast_request.py | scls19fr/shoutcast_api | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | [
"MIT"
] | 6 | 2020-03-03T06:07:31.000Z | 2021-11-24T19:20:12.000Z | shoutcast_api/shoutcast_request.py | scls19fr/shoutcast_api | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | [
"MIT"
] | 6 | 2020-11-17T20:30:30.000Z | 2020-11-22T04:09:36.000Z | shoutcast_api/shoutcast_request.py | scls19fr/shoutcast_api | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | [
"MIT"
] | 1 | 2020-11-17T20:11:38.000Z | 2020-11-17T20:11:38.000Z | import xmltodict
import json
from .models import Tunein
from .utils import _init_session
from .Exceptions import APIException
base_url = 'http://api.shoutcast.com'
tunein_url = 'http://yp.shoutcast.com/{base}?id={id}'
tuneins = [Tunein('/sbin/tunein-station.pls'), Tunein('/sbin/tunein-station.m3u'), Tunein('/sbin/tun... | 38.550725 | 119 | 0.697368 |
e04ec585b764ff6cb1ec40221ed614d384e735f8 | 581 | py | Python | django_app_permissions/management/commands/resolve_app_groups.py | amp89/django-app-permissions | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | [
"MIT"
] | 2 | 2020-09-04T04:12:30.000Z | 2020-10-20T00:12:01.000Z | django_app_permissions/management/commands/resolve_app_groups.py | amp89/django-app-permissions | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | [
"MIT"
] | 4 | 2020-09-06T22:29:18.000Z | 2020-09-11T01:19:50.000Z | django_app_permissions/management/commands/resolve_app_groups.py | amp89/django-app-permissions | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, no_translations
from django.contrib.auth.models import Group
from django.conf import settings
import sys | 32.277778 | 95 | 0.693632 |
e04f5b24d6bd2e775a7ec943b8b4d08de4e402bf | 34,343 | py | Python | swift/common/db.py | sunzz679/swift-2.4.0--source-read | 64355268da5265440f5f7e8d280dd8cd4c2cf2a2 | [
"Apache-2.0"
] | null | null | null | swift/common/db.py | sunzz679/swift-2.4.0--source-read | 64355268da5265440f5f7e8d280dd8cd4c2cf2a2 | [
"Apache-2.0"
] | null | null | null | swift/common/db.py | sunzz679/swift-2.4.0--source-read | 64355268da5265440f5f7e8d280dd8cd4c2cf2a2 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | 38.032115 | 79 | 0.573945 |
e0530a4b979886c9eec477ba716b7cb1d54f44a5 | 12,101 | py | Python | xdl/utils/prop_limits.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | xdl/utils/prop_limits.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | xdl/utils/prop_limits.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | """Prop limits are used to validate the input given to xdl elements. For
example, a volume property should be a positive number, optionally followed by
volume units. The prop limit is used to check that input supplied is valid for
that property.
"""
import re
from typing import List, Optional
##################
# Reg... | 35.591176 | 277 | 0.650029 |
e0531fdc3eeb8a1247c13837ac5c2a532816fd2e | 3,884 | py | Python | dit/utils/bindargs.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | 1 | 2021-03-15T08:51:42.000Z | 2021-03-15T08:51:42.000Z | dit/utils/bindargs.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | null | null | null | dit/utils/bindargs.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | null | null | null | """
Provides usable args and kwargs from inspect.getcallargs.
For Python 3.3 and above, this module is unnecessary and can be achieved using
features from PEP 362:
http://www.python.org/dev/peps/pep-0362/
For example, to override a parameter of some function:
>>> import inspect
>>> def func(a, b=1, c=2,... | 31.072 | 79 | 0.65036 |
e053d13d8a4cd7c86d2670f87f97133354905c98 | 36,370 | py | Python | tests/python/gaia-ui-tests/gaiatest/gaia_test.py | AmyYLee/gaia | a5dbae8235163d7f985bdeb7d649268f02749a8b | [
"Apache-2.0"
] | 1 | 2020-04-06T13:02:09.000Z | 2020-04-06T13:02:09.000Z | tests/python/gaia-ui-tests/gaiatest/gaia_test.py | AmyYLee/gaia | a5dbae8235163d7f985bdeb7d649268f02749a8b | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/gaia_test.py | AmyYLee/gaia | a5dbae8235163d7f985bdeb7d649268f02749a8b | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import json
import os
import sys
import time
from marionette import MarionetteTestCase
from marionette.by import By
fro... | 41.376564 | 139 | 0.648474 |
e053d242f75ab9ddd50217184c0c2cd558a9aad9 | 5,591 | py | Python | library/__mozilla__/pyjamas/DOM.py | certik/pyjamas | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | library/__mozilla__/pyjamas/DOM.py | certik/pyjamas | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | library/__mozilla__/pyjamas/DOM.py | certik/pyjamas | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-08-13T20:32:25.000Z | 2019-08-13T20:32:25.000Z |
# This is what is in GWT 1.5 for getAbsoluteLeft. err...
#"""
# // We cannot use DOMImpl here because offsetLeft/Top return erroneous
# // values when overflow is not visible. We have to difference screenX
# // here due to a change in getBoxObjectFor which causes inconsistencies
# // on whether the calcu... | 29.119792 | 84 | 0.571275 |
e05432743bd72af1411301793f19ae278f8a6b5a | 485 | py | Python | apps/vendors/migrations/0090_auto_20160610_2125.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/vendors/migrations/0090_auto_20160610_2125.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/vendors/migrations/0090_auto_20160610_2125.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-10 21:25
from __future__ import unicode_literals
from django.db import migrations, models
| 23.095238 | 86 | 0.626804 |
e0543e59c4fcb122d63759114f58b779ede6cdce | 540 | py | Python | graph/articulation_points.py | fujihiraryo/library | cdb01e710219d7111f890d09f89531916dd03533 | [
"MIT"
] | null | null | null | graph/articulation_points.py | fujihiraryo/library | cdb01e710219d7111f890d09f89531916dd03533 | [
"MIT"
] | 4 | 2020-12-16T10:00:00.000Z | 2021-02-12T12:51:50.000Z | graph/articulation_points.py | fujihiraryo/python-kyopro-library | cdb01e710219d7111f890d09f89531916dd03533 | [
"MIT"
] | null | null | null | from depth_first_search import DFS
| 25.714286 | 62 | 0.522222 |
e055245acd2ad8d01c1ab4aacd02a9a0e3b9e3b6 | 1,558 | py | Python | database.py | AndreAngelucci/popcorn_time_bot | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | [
"MIT"
] | null | null | null | database.py | AndreAngelucci/popcorn_time_bot | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | [
"MIT"
] | 1 | 2021-06-02T00:39:42.000Z | 2021-06-02T00:39:42.000Z | database.py | AndreAngelucci/popcorn_time_bot | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | [
"MIT"
] | null | null | null | import pymongo
from conf import Configuracoes
| 39.948718 | 88 | 0.617458 |
e0553357877f320fcfcfc9bb4fdd3aa6b5cc2f78 | 2,947 | py | Python | sensor_core/sleep.py | JorisHerbots/niip_iot_zombie_apocalypse | 3ff848f3dab1dde9d2417d0a2c56a76a85e18920 | [
"MIT"
] | null | null | null | sensor_core/sleep.py | JorisHerbots/niip_iot_zombie_apocalypse | 3ff848f3dab1dde9d2417d0a2c56a76a85e18920 | [
"MIT"
] | null | null | null | sensor_core/sleep.py | JorisHerbots/niip_iot_zombie_apocalypse | 3ff848f3dab1dde9d2417d0a2c56a76a85e18920 | [
"MIT"
] | null | null | null | import machine
import pycom
import utime
from exceptions import Exceptions
| 32.032609 | 121 | 0.646759 |
e0554c3395746111d418fbf380163f0e080e4265 | 1,260 | py | Python | pytorch_gleam/search/rerank_format.py | Supermaxman/pytorch-gleam | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d | [
"Apache-2.0"
] | null | null | null | pytorch_gleam/search/rerank_format.py | Supermaxman/pytorch-gleam | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d | [
"Apache-2.0"
] | null | null | null | pytorch_gleam/search/rerank_format.py | Supermaxman/pytorch-gleam | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d | [
"Apache-2.0"
] | null | null | null |
import torch
import argparse
from collections import defaultdict
import os
import json
if __name__ == '__main__':
main()
| 25.714286 | 86 | 0.743651 |
e055f89145eb203a0a63bfdad54931948d02ec37 | 388 | py | Python | des036.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | des036.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | des036.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | casa = int(input('Qual o valor da casa? '))
sal = int(input('Qual seu salario? '))
prazo = int(input('Quantos meses deseja pagar ? '))
parcela = casa/prazo
margem = sal* (30/100)
if parcela > margem:
print('Este negocio no foi aprovado, aumente o prazo .')
else:
print("Negocio aprovado pois a parcela d... | 38.8 | 111 | 0.664948 |
e05606e62a7f260ca58d2f3413562fa3ee898b64 | 1,000 | py | Python | HackBitApp/migrations/0003_roadmap.py | SukhadaM/HackBit-Interview-Preparation-Portal | f4c6b0d7168a4ea4ffcf1569183b1614752d9946 | [
"MIT"
] | null | null | null | HackBitApp/migrations/0003_roadmap.py | SukhadaM/HackBit-Interview-Preparation-Portal | f4c6b0d7168a4ea4ffcf1569183b1614752d9946 | [
"MIT"
] | null | null | null | HackBitApp/migrations/0003_roadmap.py | SukhadaM/HackBit-Interview-Preparation-Portal | f4c6b0d7168a4ea4ffcf1569183b1614752d9946 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-27 18:22
from django.db import migrations, models
| 34.482759 | 114 | 0.571 |
e0573523b4d451bef7e8afb67ef1d49c8d3db2d3 | 1,051 | py | Python | Other_Python/Kernel_Methods/matrix_operations.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | null | null | null | Other_Python/Kernel_Methods/matrix_operations.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | null | null | null | Other_Python/Kernel_Methods/matrix_operations.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 22 14:36:48 2020
@author: matth
"""
import autograd.numpy as np
#%% Kernel operations
# Returns the norm of the pairwise difference
# Returns the pairwise inner product
if __name__ == '__main__':
print('This is the matrix operations file') | 25.02381 | 79 | 0.676499 |
e0576a003dfb918c45d8ae2afa80c98a64287387 | 2,371 | py | Python | cors/resources/cors-makeheader.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | cors/resources/cors-makeheader.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | cors/resources/cors-makeheader.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | import json
from wptserve.utils import isomorphic_decode
| 33.871429 | 100 | 0.619148 |
e057de6d96dbc248f4a0c02caf3e3c52ad4ff136 | 1,053 | py | Python | device_osc_grid.py | wlfyit/PiLightsLib | 98e39af45f05d0ee44e2f166de5b654d58df33ae | [
"MIT"
] | null | null | null | device_osc_grid.py | wlfyit/PiLightsLib | 98e39af45f05d0ee44e2f166de5b654d58df33ae | [
"MIT"
] | null | null | null | device_osc_grid.py | wlfyit/PiLightsLib | 98e39af45f05d0ee44e2f166de5b654d58df33ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from pythonosc import osc_bundle_builder
from pythonosc import osc_message_builder
from pythonosc import udp_client
from .device import DeviceObj
# OSC Grid Object
| 24.488372 | 100 | 0.636277 |
e0581bc2242266c4f411267aa587a7bfd0afc840 | 965 | py | Python | main/models.py | StevenSume/EasyCMDB | c2c44c9efe2de2729659d81ef886abff242ac1c5 | [
"Apache-2.0"
] | 2 | 2019-08-23T06:04:12.000Z | 2019-09-16T07:27:16.000Z | main/models.py | StevenSume/EasyCMDB | c2c44c9efe2de2729659d81ef886abff242ac1c5 | [
"Apache-2.0"
] | null | null | null | main/models.py | StevenSume/EasyCMDB | c2c44c9efe2de2729659d81ef886abff242ac1c5 | [
"Apache-2.0"
] | null | null | null | from .app import db
| 26.805556 | 67 | 0.592746 |
e05894d94e1647d1250203e64a76b21248195718 | 1,274 | py | Python | test.py | iron-io/iron_cache_python | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | [
"BSD-2-Clause"
] | 3 | 2015-08-01T13:30:16.000Z | 2021-03-22T10:25:57.000Z | test.py | iron-io/iron_cache_python | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | [
"BSD-2-Clause"
] | 1 | 2015-06-02T08:53:44.000Z | 2015-06-02T09:59:17.000Z | test.py | iron-io/iron_cache_python | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | [
"BSD-2-Clause"
] | 3 | 2015-05-12T18:13:52.000Z | 2016-09-08T20:43:40.000Z | from iron_cache import *
import unittest
import requests
if __name__ == '__main__':
unittest.main()
| 31.073171 | 56 | 0.631868 |
e059b01690fb071d4b03811c7664f63e0007961b | 3,914 | py | Python | lib_exec/StereoPipeline/libexec/asp_image_utils.py | sebasmurphy/iarpa | aca39cc5390a153a9779a636ab2523e65cb6d3b0 | [
"MIT"
] | 20 | 2017-02-01T14:54:57.000Z | 2022-01-25T06:34:35.000Z | lib_exec/StereoPipeline/libexec/asp_image_utils.py | sebasmurphy/iarpa | aca39cc5390a153a9779a636ab2523e65cb6d3b0 | [
"MIT"
] | 3 | 2020-04-21T12:11:26.000Z | 2021-01-10T07:00:51.000Z | lib_exec/StereoPipeline/libexec/asp_image_utils.py | sebasmurphy/iarpa | aca39cc5390a153a9779a636ab2523e65cb6d3b0 | [
"MIT"
] | 10 | 2017-12-18T18:45:25.000Z | 2021-11-22T02:43:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __BEGIN_LICENSE__
# Copyright (c) 2009-2013, United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration. All
# rights reserved.
#
# The NGT platform is licensed under the Apache License, Version 2.0 (the
# "Lic... | 34.946429 | 155 | 0.67348 |
e05b4851d3707561c8c65e7a4b20ce903889be85 | 1,550 | py | Python | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | leipzig/gatk-sv | 96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a | [
"BSD-3-Clause"
] | 76 | 2020-06-18T21:31:43.000Z | 2022-03-02T18:42:58.000Z | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | iamh2o/gatk-sv | bf3704bd1d705339577530e267cd4d1b2f77a17f | [
"BSD-3-Clause"
] | 195 | 2020-06-22T15:12:28.000Z | 2022-03-28T18:06:46.000Z | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | iamh2o/gatk-sv | bf3704bd1d705339577530e267cd4d1b2f77a17f | [
"BSD-3-Clause"
] | 39 | 2020-07-03T06:47:18.000Z | 2022-03-03T03:47:25.000Z | #!/usr/bin/env python
import argparse
DELIMITER = "\t"
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('genotypes')
parser.add_argument('GQ')
parser.add_argument('fout')
... | 36.046512 | 120 | 0.627742 |
e05c65974024f19246bfde72289d00cbac7e1014 | 32 | py | Python | esperanto_analyzer/web/__init__.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | 18 | 2018-09-05T00:46:47.000Z | 2021-12-08T08:54:35.000Z | esperanto_analyzer/web/__init__.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | null | null | null | esperanto_analyzer/web/__init__.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | 3 | 2019-03-12T17:54:18.000Z | 2020-01-11T13:05:03.000Z | from .api.server import run_app
| 16 | 31 | 0.8125 |
e05cac875b2516b4ba7c777d72d8ac768173cf38 | 3,091 | py | Python | crawling/sns/main.py | CSID-DGU/2021-2-OSSP2-TwoRolless-2 | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | [
"MIT"
] | null | null | null | crawling/sns/main.py | CSID-DGU/2021-2-OSSP2-TwoRolless-2 | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | [
"MIT"
] | null | null | null | crawling/sns/main.py | CSID-DGU/2021-2-OSSP2-TwoRolless-2 | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | [
"MIT"
] | 1 | 2021-10-15T05:19:20.000Z | 2021-10-15T05:19:20.000Z | import tweepy
import traceback
import time
import pymongo
from tweepy import OAuthHandler
from pymongo import MongoClient
from pymongo.cursor import CursorType
twitter_consumer_key = ""
twitter_consumer_secret = ""
twitter_access_token = ""
twitter_access_secret = ""
auth = OAuthHandler(twitter_consumer_key, twitter_... | 29.438095 | 126 | 0.547072 |
e05cbd467aaeb3118a784785e85a274a27c23842 | 698 | py | Python | demos/interactive-classifier/config.py | jepabe/Demo_earth2 | ab20c3a9114904219688b16f8a1273e68927e6f9 | [
"Apache-2.0"
] | 1,909 | 2015-04-22T20:18:22.000Z | 2022-03-31T13:42:03.000Z | demos/interactive-classifier/config.py | jepabe/Demo_earth2 | ab20c3a9114904219688b16f8a1273e68927e6f9 | [
"Apache-2.0"
] | 171 | 2015-09-24T05:49:49.000Z | 2022-03-14T00:54:50.000Z | demos/interactive-classifier/config.py | jepabe/Demo_earth2 | ab20c3a9114904219688b16f8a1273e68927e6f9 | [
"Apache-2.0"
] | 924 | 2015-04-23T05:43:18.000Z | 2022-03-28T12:11:31.000Z | #!/usr/bin/env python
"""Handles Earth Engine service account configuration."""
import ee
# The service account email address authorized by your Google contact.
# Set up a service account as described in the README.
EE_ACCOUNT = 'your-service-account-id@developer.gserviceaccount.com'
# The private key associated wit... | 41.058824 | 79 | 0.787966 |
e05d022e20ec708234ba466419ce63a57d30ac77 | 2,716 | py | Python | PythonScripting/NumbersInPython.py | Neo-sunny/pythonProgs | a9d2359d8a09d005d0ba6f94d7d256bf91499793 | [
"MIT"
] | null | null | null | PythonScripting/NumbersInPython.py | Neo-sunny/pythonProgs | a9d2359d8a09d005d0ba6f94d7d256bf91499793 | [
"MIT"
] | null | null | null | PythonScripting/NumbersInPython.py | Neo-sunny/pythonProgs | a9d2359d8a09d005d0ba6f94d7d256bf91499793 | [
"MIT"
] | null | null | null | """
Demonstration of numbers in Python
"""
# Python has an integer type called int
print("int")
print("---")
print(0)
print(1)
print(-3)
print(70383028364830)
print("")
# Python has a real number type called float
print("float")
print("-----")
print(0.0)
print(7.35)
print(-43.2)
print("")
# Limited precision
print... | 17.522581 | 65 | 0.674521 |
e05e6c4440c357c867a4c38e37f726c4d615e768 | 1,676 | py | Python | 3DBeam/source/solving_strategies/strategies/linear_solver.py | JoZimmer/Beam-Models | e701c0bae6e3035e7a07cc590da4a132b133dcff | [
"BSD-3-Clause"
] | null | null | null | 3DBeam/source/solving_strategies/strategies/linear_solver.py | JoZimmer/Beam-Models | e701c0bae6e3035e7a07cc590da4a132b133dcff | [
"BSD-3-Clause"
] | null | null | null | 3DBeam/source/solving_strategies/strategies/linear_solver.py | JoZimmer/Beam-Models | e701c0bae6e3035e7a07cc590da4a132b133dcff | [
"BSD-3-Clause"
] | 1 | 2022-01-05T17:32:32.000Z | 2022-01-05T17:32:32.000Z | from source.solving_strategies.strategies.solver import Solver
| 38.976744 | 80 | 0.590095 |
e05ea195ece947573587efca60ad05b204af43f6 | 1,095 | py | Python | payment/migrations/0002_auto_20171125_0022.py | Littledelma/mofadog | 5a7c6672da248e400a8a5746506a6e7b273c9510 | [
"MIT"
] | null | null | null | payment/migrations/0002_auto_20171125_0022.py | Littledelma/mofadog | 5a7c6672da248e400a8a5746506a6e7b273c9510 | [
"MIT"
] | 1 | 2021-06-08T03:28:08.000Z | 2021-06-08T03:28:08.000Z | payment/migrations/0002_auto_20171125_0022.py | Littledelma/mofadog | 5a7c6672da248e400a8a5746506a6e7b273c9510 | [
"MIT"
] | 1 | 2021-06-08T03:23:34.000Z | 2021-06-08T03:23:34.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-24 16:22
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
| 33.181818 | 138 | 0.63379 |
e05fe1dabdb8d88cb6b7077a77b9ecb4a63a39fd | 841 | py | Python | src/sqlfluff/rules/L024.py | NathanHowell/sqlfluff | 9eb30226d77727cd613947e144a0abe483151f18 | [
"MIT"
] | 3,024 | 2020-10-01T11:03:51.000Z | 2022-03-31T16:42:00.000Z | src/sqlfluff/rules/L024.py | NathanHowell/sqlfluff | 9eb30226d77727cd613947e144a0abe483151f18 | [
"MIT"
] | 2,395 | 2020-09-30T12:59:21.000Z | 2022-03-31T22:05:29.000Z | src/sqlfluff/rules/L024.py | NathanHowell/sqlfluff | 9eb30226d77727cd613947e144a0abe483151f18 | [
"MIT"
] | 246 | 2020-10-02T17:08:03.000Z | 2022-03-30T17:43:51.000Z | """Implementation of Rule L024."""
from sqlfluff.core.rules.doc_decorators import document_fix_compatible
from sqlfluff.rules.L023 import Rule_L023
| 21.564103 | 70 | 0.652794 |
e061aa108e5ec8060888f9dff1215ff5763d024a | 2,847 | py | Python | projects/scocen/cmd_components_simple.py | mikeireland/chronostar | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | [
"MIT"
] | 4 | 2018-05-28T11:05:42.000Z | 2021-05-14T01:13:11.000Z | projects/scocen/cmd_components_simple.py | mikeireland/chronostar | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | [
"MIT"
] | 13 | 2019-08-14T07:30:24.000Z | 2021-11-08T23:44:29.000Z | projects/scocen/cmd_components_simple.py | mikeireland/chronostar | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | [
"MIT"
] | 4 | 2016-04-21T08:25:26.000Z | 2021-02-25T06:53:52.000Z | """
Plot CMDs for each component.
"""
import numpy as np
from astropy.table import Table
import matplotlib.pyplot as plt
import matplotlib.cm as cm
plt.ion()
# Pretty plots
from fig_settings import *
############################################
# Some things are the same for all the plotting scripts and we put
# thi... | 26.858491 | 122 | 0.601686 |
e061c15bed338723a46d4f04e8c849cc852fe7c0 | 5,326 | py | Python | test/test_cursor_binding.py | rhlahuja/snowflake-connector-python | 6abc56c970cdb698a833b7f6ac9cbe7dfa667abd | [
"Apache-2.0"
] | null | null | null | test/test_cursor_binding.py | rhlahuja/snowflake-connector-python | 6abc56c970cdb698a833b7f6ac9cbe7dfa667abd | [
"Apache-2.0"
] | null | null | null | test/test_cursor_binding.py | rhlahuja/snowflake-connector-python | 6abc56c970cdb698a833b7f6ac9cbe7dfa667abd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2018 Snowflake Computing Inc. All right reserved.
#
import pytest
from snowflake.connector.errors import (ProgrammingError)
def test_binding_security(conn_cnx, db_parameters):
"""
SQL Injection Tests
"""
try:
with conn_cnx()... | 36.731034 | 78 | 0.480473 |
e061da410580634f463731e3265faeb51909f55c | 1,071 | py | Python | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | # Natural Language Toolkit: Language Models
#
# Copyright (C) 2001-2008 University of Pennsylvania
# Author: Steven Bird <sb@csse.unimelb.edu.au>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
| 31.5 | 78 | 0.6676 |
e06275178027bd16b4be36faab1b32af531b42cb | 1,047 | py | Python | flask-graphene-sqlalchemy/models.py | JovaniPink/flask-apps | de887f15261c286986cf38d234d49f7e4eb79c1a | [
"MIT"
] | null | null | null | flask-graphene-sqlalchemy/models.py | JovaniPink/flask-apps | de887f15261c286986cf38d234d49f7e4eb79c1a | [
"MIT"
] | null | null | null | flask-graphene-sqlalchemy/models.py | JovaniPink/flask-apps | de887f15261c286986cf38d234d49f7e4eb79c1a | [
"MIT"
] | null | null | null | import os
from graphene_sqlalchemy import SQLAlchemyObjectType
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
POSTGRES_CONNECTION_STRING = (
os.environ.get("POSTGRES_CONNECTION_STRING")
... | 26.175 | 72 | 0.770774 |
e06418cb46f2f01ccc35fc22e565190b30c821ed | 16,478 | py | Python | curlypiv/synthetics/microsig.py | sean-mackenzie/curlypiv | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | [
"MIT"
] | null | null | null | curlypiv/synthetics/microsig.py | sean-mackenzie/curlypiv | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | [
"MIT"
] | 1 | 2021-06-14T17:24:43.000Z | 2021-06-14T17:24:43.000Z | curlypiv/synthetics/microsig.py | sean-mackenzie/curlypiv | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | [
"MIT"
] | null | null | null | # microsig
"""
Author: Maximilliano Rossi
More detail about the MicroSIG can be found at:
Website:
https://gitlab.com/defocustracking/microsig-python
Publication:
Rossi M, Synthetic image generator for defocusing and astigmatic PIV/PTV, Meas. Sci. Technol., 31, 017003 (2020)
DOI:10.1088/1361-6501/ab42bb.
"... | 32.956 | 119 | 0.506615 |
e0651470e7323b974d75e2d23e40d53bc5af99ea | 4,146 | py | Python | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py | kmiya/AutowareArchitectureProposal.iv | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | [
"Apache-2.0"
] | null | null | null | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py | kmiya/AutowareArchitectureProposal.iv | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | [
"Apache-2.0"
] | null | null | null | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py | kmiya/AutowareArchitectureProposal.iv | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | [
"Apache-2.0"
] | 1 | 2021-07-20T09:38:30.000Z | 2021-07-20T09:38:30.000Z | # Copyright 2020 Tier IV, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 30.485294 | 109 | 0.600338 |
e067ec51a3742d007fe87145e158ef565747647f | 2,642 | py | Python | main/forms.py | agokhale11/test2 | deddf17e7bb67777251cf73cbdb5f6970c16050a | [
"MIT"
] | null | null | null | main/forms.py | agokhale11/test2 | deddf17e7bb67777251cf73cbdb5f6970c16050a | [
"MIT"
] | 7 | 2020-06-05T18:32:16.000Z | 2022-03-11T23:24:17.000Z | main/forms.py | agokhale11/test2 | deddf17e7bb67777251cf73cbdb5f6970c16050a | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.contrib.auth.models import User
from django import forms
# If you don't do this you cannot use Bootstrap CSS
| 41.28125 | 136 | 0.62869 |
e068d2bbe0be95225acd32e5324a05a51bc85276 | 5,641 | py | Python | pandas 9 - Statistics Information on data sets.py | PythonProgramming/Pandas-Basics-with-2.7 | a6ecd5ac7c25dba83e934549903f229de89290d3 | [
"MIT"
] | 10 | 2015-07-16T05:46:10.000Z | 2020-10-28T10:35:50.000Z | pandas 9 - Statistics Information on data sets.py | PythonProgramming/Pandas-Basics-with-2.7 | a6ecd5ac7c25dba83e934549903f229de89290d3 | [
"MIT"
] | null | null | null | pandas 9 - Statistics Information on data sets.py | PythonProgramming/Pandas-Basics-with-2.7 | a6ecd5ac7c25dba83e934549903f229de89290d3 | [
"MIT"
] | 9 | 2017-01-31T18:57:25.000Z | 2019-09-10T08:52:57.000Z | import pandas as pd
from pandas import DataFrame
df = pd.read_csv('sp500_ohlc.csv', index_col = 'Date', parse_dates=True)
df['H-L'] = df.High - df.Low
# Giving us count (rows), mean (avg), std (standard deviation for the entire
# set), minimum for the set, maximum for the set, and some %s in that range.
print( df.des... | 32.606936 | 96 | 0.565148 |
e06b5b33923a9795875422db89edadd2030423bd | 292 | py | Python | working/tkinter_widget/test.py | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | working/tkinter_widget/test.py | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | working/tkinter_widget/test.py | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import threading
t1 = threading.Thread(target=test)
t1.start()
| 18.25 | 44 | 0.60274 |
e06beb7e97ea00b98e3ff8423b4c33335a68172e | 7,856 | py | Python | ceilometer/compute/virt/hyperv/utilsv2.py | aristanetworks/ceilometer | 8776b137f82f71eef1241bcb1600de10c1f77394 | [
"Apache-2.0"
] | 2 | 2015-09-07T09:15:26.000Z | 2015-09-30T02:13:23.000Z | ceilometer/compute/virt/hyperv/utilsv2.py | aristanetworks/ceilometer | 8776b137f82f71eef1241bcb1600de10c1f77394 | [
"Apache-2.0"
] | null | null | null | ceilometer/compute/virt/hyperv/utilsv2.py | aristanetworks/ceilometer | 8776b137f82f71eef1241bcb1600de10c1f77394 | [
"Apache-2.0"
] | 1 | 2019-09-16T02:11:41.000Z | 2019-09-16T02:11:41.000Z | # Copyright 2013 Cloudbase Solutions Srl
#
# Author: Claudiu Belu <cbelu@cloudbasesolutions.com>
# Alessandro Pilotti <apilotti@cloudbasesolutions.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy o... | 37.056604 | 78 | 0.66777 |
e06fed7cfa54e3e815b314104d5c76b1f273336e | 1,126 | py | Python | src/cli.py | cajones314/avocd2019 | 268e03c5d1bb5b3e14459b831916bb7846f40def | [
"MIT"
] | null | null | null | src/cli.py | cajones314/avocd2019 | 268e03c5d1bb5b3e14459b831916bb7846f40def | [
"MIT"
] | null | null | null | src/cli.py | cajones314/avocd2019 | 268e03c5d1bb5b3e14459b831916bb7846f40def | [
"MIT"
] | null | null | null | # system
from io import IOBase, StringIO
import os
# 3rd party
import click
# internal
from days import DayFactory
# import logging
# logger = logging.getLogger(__name__)
# logger.setLevel(logging.DEBUG)
# ch = logging.StreamHandler()
# logger.addHandler(ch)
if __name__ == "__main__":
# pylint: disable=no-valu... | 28.15 | 122 | 0.69627 |
e0702674ad6cf140cbb31a3b885b600b8569c9c4 | 17,033 | py | Python | option_c.py | wrosecrans/colormap | 0b6a3b7e4caa5df72e7bad8ba196acfbbe5e5946 | [
"CC0-1.0"
] | 231 | 2015-06-03T01:28:13.000Z | 2022-03-27T02:02:42.000Z | option_c.py | CatarinaL/colormap | bc549477db0c12b54a5928087552ad2cf274980f | [
"CC0-1.0"
] | 10 | 2015-06-06T23:06:06.000Z | 2019-10-25T20:10:48.000Z | option_c.py | CatarinaL/colormap | bc549477db0c12b54a5928087552ad2cf274980f | [
"CC0-1.0"
] | 97 | 2015-06-04T00:46:34.000Z | 2022-01-23T17:37:24.000Z |
from matplotlib.colors import LinearSegmentedColormap
from numpy import nan, inf
# Used to reconstruct the colormap in viscm
parameters = {'xp': [-5.4895292543686764, 14.790571669586654, 82.5546687431056, 29.15531114139253, -4.1316769886951761, -13.002076438907238],
'yp': [-35.948168839230306, -42.27337... | 60.187279 | 141 | 0.577291 |
e0709fa966341538c2d49529de984d39878ed846 | 3,885 | py | Python | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | Aditya239233/MDP | 87491e1d67e547c11f4bdd5d784d120473429eae | [
"MIT"
] | 4 | 2022-01-14T15:06:43.000Z | 2022-01-18T14:45:04.000Z | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | Aditya239233/MDP | 87491e1d67e547c11f4bdd5d784d120473429eae | [
"MIT"
] | null | null | null | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | Aditya239233/MDP | 87491e1d67e547c11f4bdd5d784d120473429eae | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import math
from algorithm.planner.utils.car_utils import Car_C
PI = np.pi
def draw_car(x, y, yaw, steer, color='black', extended_car=True):
if extended_car:
car = np.array([[-Car_C.RB, -Car_C.RB, Car_C.RF, Car_C.RF, -Car_C.RB, Car_C.ACTUAL_RF, Car_C.... | 33.491379 | 148 | 0.53565 |
e0712713ade0b6560e6616c234015a83c6ef39c9 | 696 | py | Python | models/database_models/comment_model.py | RuiCoreSci/Flask-Restful | 03f98a17487d407b69b853a9bf0ed20d2c5b003b | [
"MIT"
] | 7 | 2020-05-24T02:15:46.000Z | 2020-11-26T07:14:44.000Z | models/database_models/comment_model.py | RuiCoreSci/Flask-Restful | 03f98a17487d407b69b853a9bf0ed20d2c5b003b | [
"MIT"
] | 12 | 2020-05-17T10:46:29.000Z | 2021-05-06T20:08:37.000Z | models/database_models/comment_model.py | RuiCoreSci/Flask-Restful | 03f98a17487d407b69b853a9bf0ed20d2c5b003b | [
"MIT"
] | 4 | 2020-05-09T07:26:09.000Z | 2021-10-31T07:09:10.000Z | from sqlalchemy import Integer, Text, DateTime, func, Boolean, text
from models.database_models import Base, Column
| 40.941176 | 106 | 0.728448 |
e072653c74adbd64f985b81e9b674ad50e5a700a | 27,779 | py | Python | aws_deploy/ecs/helper.py | jmsantorum/aws-deploy | f117cff3a5440ee42470feaa2a83263c3212cf10 | [
"BSD-3-Clause"
] | null | null | null | aws_deploy/ecs/helper.py | jmsantorum/aws-deploy | f117cff3a5440ee42470feaa2a83263c3212cf10 | [
"BSD-3-Clause"
] | null | null | null | aws_deploy/ecs/helper.py | jmsantorum/aws-deploy | f117cff3a5440ee42470feaa2a83263c3212cf10 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T12:07:11.000Z | 2021-08-05T12:07:11.000Z | import json
import re
from datetime import datetime
from json.decoder import JSONDecodeError
import click
from boto3.session import Session
from boto3_type_annotations.ecs import Client
from botocore.exceptions import ClientError, NoCredentialsError
from dateutil.tz.tz import tzlocal
from dictdiffer import diff
JSON_... | 34.767209 | 119 | 0.585586 |
e07447362c2cd948e8959b2a92a8309441af1ece | 3,715 | py | Python | sbm.py | emmaling27/networks-research | be209e2b653a1fe9eec480a94538d59104e4aa23 | [
"MIT"
] | null | null | null | sbm.py | emmaling27/networks-research | be209e2b653a1fe9eec480a94538d59104e4aa23 | [
"MIT"
] | null | null | null | sbm.py | emmaling27/networks-research | be209e2b653a1fe9eec480a94538d59104e4aa23 | [
"MIT"
] | null | null | null | import networkx as nx
from scipy.special import comb
import attr
| 35.04717 | 125 | 0.54105 |
e0745cd9bd4ca77f2c09e9dd6bb425b9d75991b3 | 4,516 | py | Python | src/data/graph/ops/anagram_transform_op.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | 2 | 2020-08-18T18:43:09.000Z | 2020-08-18T20:05:59.000Z | src/data/graph/ops/anagram_transform_op.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | src/data/graph/ops/anagram_transform_op.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | from typing import Callable, Collection, Iterable, List, Union
from data.anagram import anagram_iter
from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer
Transformer = Callable[['bloom_node.BloomNode'], 'bloom_node.BloomNode']
_SPACE_MASK = bloom_mask.for_alpha(' ')
def _normalize_state(
... | 35.84127 | 79 | 0.717449 |
e074a8e70a88cdf3e39529ffdda1dc94abc0febf | 15,854 | py | Python | gogapi/api.py | tikki/pygogapi | f1b3a811444dc521ea4ad7884104086b52348995 | [
"MIT"
] | 23 | 2017-01-03T21:00:27.000Z | 2022-01-25T22:08:39.000Z | gogapi/api.py | tikki/pygogapi | f1b3a811444dc521ea4ad7884104086b52348995 | [
"MIT"
] | 3 | 2017-06-06T23:08:30.000Z | 2019-01-28T02:20:34.000Z | gogapi/api.py | tikki/pygogapi | f1b3a811444dc521ea4ad7884104086b52348995 | [
"MIT"
] | 8 | 2017-02-10T15:13:32.000Z | 2020-04-18T11:17:15.000Z | import json
import re
import logging
import html.parser
import zlib
import requests
from gogapi import urls
from gogapi.base import NotAuthorizedError, logger
from gogapi.product import Product, Series
from gogapi.search import SearchResult
DEBUG_JSON = False
GOGDATA_RE = re.compile(r"gogData\.?(.*?) = (.+);")
CLIEN... | 32.892116 | 80 | 0.628233 |
e0756c223fe0a2644bdda0e4b367139a612e5089 | 943 | py | Python | setup.py | gibsonMatt/stacks-pairwise | 8f3cde603c2bfed255f6c399557e9332072886fb | [
"MIT"
] | null | null | null | setup.py | gibsonMatt/stacks-pairwise | 8f3cde603c2bfed255f6c399557e9332072886fb | [
"MIT"
] | null | null | null | setup.py | gibsonMatt/stacks-pairwise | 8f3cde603c2bfed255f6c399557e9332072886fb | [
"MIT"
] | null | null | null | import pathlib
import os
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# specify requirements of your package here
REQUIREMENTS = ['biopython', 'numpy', 'pandas']
setup(name='stacksPairwi... | 29.46875 | 100 | 0.694592 |
e076824b715f780b36bdb8e03020e256a3cf8b8d | 156 | py | Python | csv_experiment.py | komax/spanningtree-crossingnumber | 444c8809a543905000a63c9d2ff1dcfb31835766 | [
"MIT"
] | 2 | 2019-01-07T22:12:09.000Z | 2020-05-08T06:44:19.000Z | csv_experiment.py | komax/spanningtree-crossingnumber | 444c8809a543905000a63c9d2ff1dcfb31835766 | [
"MIT"
] | null | null | null | csv_experiment.py | komax/spanningtree-crossingnumber | 444c8809a543905000a63c9d2ff1dcfb31835766 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import os
import sys
args = sys.argv[1:]
os.system('python -O -m spanningtree.csv_experiment_statistics ' +
' '.join(args))
| 19.5 | 66 | 0.673077 |