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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cb23f9d984ca01ba8f682afe13184f98d4f5e92 | 389 | py | Python | qtask/utils/testing.py | LinkTsang/qtask-legacy-python | 9b264b8e33313e4d3615472d59a2a39948eeeaa1 | [
"MIT"
] | null | null | null | qtask/utils/testing.py | LinkTsang/qtask-legacy-python | 9b264b8e33313e4d3615472d59a2a39948eeeaa1 | [
"MIT"
] | null | null | null | qtask/utils/testing.py | LinkTsang/qtask-legacy-python | 9b264b8e33313e4d3615472d59a2a39948eeeaa1 | [
"MIT"
] | null | null | null | import asyncio
import traceback
import unittest
| 22.882353 | 63 | 0.62982 |
7cb2d3d2cb22c43c3c911d744e22c33bc37cdf49 | 1,661 | py | Python | landing/views.py | theflatladder/kyrsovaya | d6d661854cd955e544a199e201f325decc360cc1 | [
"MIT"
] | null | null | null | landing/views.py | theflatladder/kyrsovaya | d6d661854cd955e544a199e201f325decc360cc1 | [
"MIT"
] | null | null | null | landing/views.py | theflatladder/kyrsovaya | d6d661854cd955e544a199e201f325decc360cc1 | [
"MIT"
] | null | null | null | from django.shortcuts import render, render_to_response, redirect
from django.contrib import auth
from django.contrib.auth.forms import UserCreationForm
from django.template.context_processors import csrf
from django.http import HttpResponseRedirect
| 31.339623 | 140 | 0.668874 |
7cb376c84e1d9faf8d7802d4ab0284c278818e8c | 441 | py | Python | FPRun11.py | yecfly/DEPRESSIONEST | 21b72906aac9f310e264f7a5eea348480a647197 | [
"Unlicense"
] | null | null | null | FPRun11.py | yecfly/DEPRESSIONEST | 21b72906aac9f310e264f7a5eea348480a647197 | [
"Unlicense"
] | null | null | null | FPRun11.py | yecfly/DEPRESSIONEST | 21b72906aac9f310e264f7a5eea348480a647197 | [
"Unlicense"
] | null | null | null | from Facepatchindependenttrain import runPatch
import sys
if len(sys.argv)==6:
runPatch(GPU_Device_ID=1, FacePatchID=int(sys.argv[1]),
trainpklID=int(sys.argv[2]), testpklID=int(sys.argv[3]),
NetworkType=int(sys.argv[4]),
runs=int(sys.argv[5]))
... | 40.090909 | 113 | 0.621315 |
7cb439e7ed9a5e950d6cf894c40e5a62043d06e9 | 5,183 | py | Python | vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from translate.convert import po2tmx
from translate.convert import test_convert
from translate.misc import wStringIO
from translate.storage import tmx
from translate.storage import lisa
| 33.43871 | 128 | 0.641134 |
7cb54fa0b7a5c349c3088529c91a97ac9de21c8e | 2,684 | py | Python | plugin.video.yatp/libs/client/commands.py | mesabib/kodi.yatp | d874df43047b5b58f84cb3760fc891d9a133a69f | [
"CNRI-Python"
] | 54 | 2015-08-01T20:31:36.000Z | 2022-02-06T11:06:01.000Z | plugin.video.yatp/libs/client/commands.py | mesabib/kodi.yatp | d874df43047b5b58f84cb3760fc891d9a133a69f | [
"CNRI-Python"
] | 57 | 2015-08-31T09:54:49.000Z | 2018-08-30T20:39:12.000Z | plugin.video.yatp/libs/client/commands.py | mesabib/kodi.yatp | d874df43047b5b58f84cb3760fc891d9a133a69f | [
"CNRI-Python"
] | 16 | 2016-01-17T11:44:41.000Z | 2021-12-12T00:41:29.000Z | # coding: utf-8
# Module: commands
# Created on: 28.07.2015
# Author: Roman Miroshnychenko aka Roman V.M. (romanvm@yandex.ua)
# Licence: GPL v.3: http://www.gnu.org/copyleft/gpl.html
"""
Context menu commands
"""
import sys
import xbmc
import xbmcgui
import json_requests as jsonrq
from simpleplugin import Addon
addon... | 35.786667 | 89 | 0.554396 |
7cb5817de3a17f08a3afdfbe15a3bbd0fbe2d1d8 | 346 | py | Python | setup.py | GeorgeDittmar/MarkovTextGenerator | df6a56e23051e1f263ba22889dc3b5d0dc03e370 | [
"Apache-2.0"
] | 1 | 2021-11-26T15:49:31.000Z | 2021-11-26T15:49:31.000Z | setup.py | GeorgeDittmar/Mimic | df6a56e23051e1f263ba22889dc3b5d0dc03e370 | [
"Apache-2.0"
] | 1 | 2019-06-24T17:30:41.000Z | 2019-06-26T04:53:00.000Z | setup.py | GeorgeDittmar/MarkovTextGenerator | df6a56e23051e1f263ba22889dc3b5d0dc03e370 | [
"Apache-2.0"
] | 2 | 2020-05-04T07:57:17.000Z | 2021-02-23T05:10:11.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='Mimik',
version='1.0',
description='Python framework for markov models',
author='George Dittmar',
author_email='georgedittmar@gmail.com',
url='https://www.python.org/sigs/distutils-sig/',
packages=['distutils', 'dis... | 26.615385 | 55 | 0.65896 |
7cb5d1b6022bb826ecb887e64d632c52c31ffdb9 | 5,563 | py | Python | pipeline/scripts/package.py | deplatformr/open-images | 3726c9802bda1d7ecbbbd9920d5566daaecc9faa | [
"MIT"
] | 2 | 2020-10-12T02:37:54.000Z | 2020-10-14T15:16:49.000Z | pipeline/scripts/package.py | deplatformr/open-images | 3726c9802bda1d7ecbbbd9920d5566daaecc9faa | [
"MIT"
] | null | null | null | pipeline/scripts/package.py | deplatformr/open-images | 3726c9802bda1d7ecbbbd9920d5566daaecc9faa | [
"MIT"
] | null | null | null | import os
import shutil
import sqlite3
import tarfile
from datetime import datetime
import bagit
| 47.144068 | 735 | 0.585655 |
7cb6009fc34f03127073ead641d466f1b2a5c978 | 2,313 | py | Python | app/search/hot_eval/hl_reportable.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | app/search/hot_eval/hl_reportable.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | app/search/hot_eval/hl_reportable.py | don4apaev/anfisa | 2e4bdd83c584c0000f037413ccc1f9067c07fa70 | [
"Apache-2.0"
] | null | null | null | def evalRec(env, rec):
"""hl_reportable"""
return (len(set(rec.Genes) &
{
'ABHD12',
'ACTG1',
'ADGRV1',
'AIFM1',
'ATP6V1B1',
'BCS1L',
'BSND',
'CABP2',
'CACNA1D',
'CDC14A',
'... | 21.027273 | 32 | 0.253783 |
7cb6f4beed1a08b09244a31819b47421774b7914 | 6,486 | py | Python | eval/util/metrics.py | fau-is/grm | 78b1559ea0dda1b817283adecd58da50ca232223 | [
"MIT"
] | 5 | 2020-09-15T18:57:01.000Z | 2021-12-13T14:14:08.000Z | eval/util/metrics.py | fau-is/grm | 78b1559ea0dda1b817283adecd58da50ca232223 | [
"MIT"
] | null | null | null | eval/util/metrics.py | fau-is/grm | 78b1559ea0dda1b817283adecd58da50ca232223 | [
"MIT"
] | 1 | 2020-09-10T17:45:22.000Z | 2020-09-10T17:45:22.000Z | import sklearn
import pandas
import seaborn as sns
import matplotlib.pyplot as pyplot
from functools import reduce
# import numpy as np
| 36.234637 | 118 | 0.646007 |
7cb7c886108da63565062eb8d192b4df3da78f64 | 3,566 | py | Python | dpgs_sandbox/tests/test_bug_migrations_in_base_models.py | gabrielpiassetta/django-pgschemas | 1e76db4cef31c7534bf4ba109961e835a1dd3c96 | [
"MIT"
] | null | null | null | dpgs_sandbox/tests/test_bug_migrations_in_base_models.py | gabrielpiassetta/django-pgschemas | 1e76db4cef31c7534bf4ba109961e835a1dd3c96 | [
"MIT"
] | null | null | null | dpgs_sandbox/tests/test_bug_migrations_in_base_models.py | gabrielpiassetta/django-pgschemas | 1e76db4cef31c7534bf4ba109961e835a1dd3c96 | [
"MIT"
] | null | null | null | import warnings
from unittest.mock import patch
from django.apps import apps
from django.core import management
from django.core.management.base import CommandError
from django.db import models
from django.db.utils import ProgrammingError
from django.test import TransactionTestCase, tag
from django_pgschemas.checks i... | 37.536842 | 118 | 0.714526 |
7cb900078da95ed33cbe2fdf9bd9a465b5e9a56e | 6,330 | py | Python | tfx/components/transform/component.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | null | null | null | tfx/components/transform/component.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | null | null | null | tfx/components/transform/component.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | null | null | null | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | 43.356164 | 105 | 0.733017 |
7cb9aea67a579bf1b09555b59098bc7f2315e25f | 959 | py | Python | objects/GitIndexEntry.py | anderslatif/alg | d5902a05a4cb249e554f65a7e8016d7d050b6da9 | [
"MIT"
] | null | null | null | objects/GitIndexEntry.py | anderslatif/alg | d5902a05a4cb249e554f65a7e8016d7d050b6da9 | [
"MIT"
] | null | null | null | objects/GitIndexEntry.py | anderslatif/alg | d5902a05a4cb249e554f65a7e8016d7d050b6da9 | [
"MIT"
] | null | null | null | # https://github.com/git/git/blob/master/Documentation/technical/index-format.txt
| 22.302326 | 85 | 0.657977 |
7cba9b9fb8b398f82ae1a8d924fec2ad7e1b9ddf | 2,437 | py | Python | matdgl/layers/partitionpaddinglayer.py | huzongxiang/CrystalNetwork | a434f76fa4347d42b3c905852ce265cd0bcefca3 | [
"BSD-2-Clause"
] | 6 | 2022-03-30T13:47:03.000Z | 2022-03-31T09:27:46.000Z | matdgl/layers/partitionpaddinglayer.py | huzongxiang/CrystalNetwork | a434f76fa4347d42b3c905852ce265cd0bcefca3 | [
"BSD-2-Clause"
] | null | null | null | matdgl/layers/partitionpaddinglayer.py | huzongxiang/CrystalNetwork | a434f76fa4347d42b3c905852ce265cd0bcefca3 | [
"BSD-2-Clause"
] | 2 | 2022-03-30T20:53:11.000Z | 2022-03-31T22:20:05.000Z |
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 13 14:47:13 2021
@author: huzongxiang
"""
import tensorflow as tf
from tensorflow.keras import layers
| 27.077778 | 81 | 0.585556 |
7cbab3e957076a86de0198f2fb2ae52e8d52e634 | 173 | py | Python | lino_book/projects/min9/settings/memory.py | khchine5/book | b6272d33d49d12335d25cf0a2660f7996680b1d1 | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:58.000Z | 2018-01-12T14:09:58.000Z | lino_book/projects/min9/settings/memory.py | khchine5/book | b6272d33d49d12335d25cf0a2660f7996680b1d1 | [
"BSD-2-Clause"
] | 4 | 2018-02-06T19:53:10.000Z | 2019-08-01T21:47:44.000Z | lino_book/projects/min9/settings/memory.py | khchine5/book | b6272d33d49d12335d25cf0a2660f7996680b1d1 | [
"BSD-2-Clause"
] | null | null | null | from .demo import *
SITE.verbose_name = SITE.verbose_name + " (:memory:)"
# SITE = Site(globals(), title=Site.title+" (:memory:)")
DATABASES['default']['NAME'] = ':memory:'
| 34.6 | 56 | 0.653179 |
7cbb1dd15de4d3e88890e2caf26d07b7deb3f4b0 | 152 | py | Python | reservation/urls.py | aryamanak10/diner-restaurant-website | 6d2d9de89a73c5535ebf782c4d8bbfc6ca9489fc | [
"MIT"
] | 1 | 2020-05-07T17:18:36.000Z | 2020-05-07T17:18:36.000Z | reservation/urls.py | aryamanak10/Restaurant-Site-using-Django | 6d2d9de89a73c5535ebf782c4d8bbfc6ca9489fc | [
"MIT"
] | null | null | null | reservation/urls.py | aryamanak10/Restaurant-Site-using-Django | 6d2d9de89a73c5535ebf782c4d8bbfc6ca9489fc | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'reservation'
urlpatterns = [
path('', views.reserve_table, name = 'reserve_table'),
] | 19 | 58 | 0.710526 |
7cbb90e215684507ec88ead7205a67d14728eaf9 | 809 | py | Python | chainer/_version.py | yumetov/chainer | 522e017a18008ee00e39f4ae4b30f4f9db3824b2 | [
"MIT"
] | 3,705 | 2017-06-01T07:36:12.000Z | 2022-03-30T10:46:15.000Z | chainer/_version.py | yumetov/chainer | 522e017a18008ee00e39f4ae4b30f4f9db3824b2 | [
"MIT"
] | 5,998 | 2017-06-01T06:40:17.000Z | 2022-03-08T01:42:44.000Z | chainer/_version.py | yumetov/chainer | 522e017a18008ee00e39f4ae4b30f4f9db3824b2 | [
"MIT"
] | 1,150 | 2017-06-02T03:39:46.000Z | 2022-03-29T02:29:32.000Z | __version__ = '7.8.0'
_optional_dependencies = [
{
'name': 'CuPy',
'packages': [
'cupy-cuda120',
'cupy-cuda114',
'cupy-cuda113',
'cupy-cuda112',
'cupy-cuda111',
'cupy-cuda110',
'cupy-cuda102',
'cupy-cud... | 23.114286 | 63 | 0.410383 |
7cbc5cd567a3861d37ece4294dbac699b11bc6a2 | 10,435 | py | Python | image_aug.py | qwerasdf887/image_augmentation | 7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42 | [
"MIT"
] | null | null | null | image_aug.py | qwerasdf887/image_augmentation | 7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42 | [
"MIT"
] | null | null | null | image_aug.py | qwerasdf887/image_augmentation | 7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42 | [
"MIT"
] | null | null | null | # coding=UTF-8
# This Python file uses the following encoding: utf-8
import cv2
import numpy as np
import xml.etree.cElementTree as ET
from random import sample
#default args:
default_args = {'noise_prob': 0.1,
'gasuss_mean': 0,
'gasuss_var': 0.001,
'rand_hug': 30,
... | 31.430723 | 117 | 0.58965 |
7cbd6ca4479663e9722341b796b7cdd0073b6b18 | 1,507 | py | Python | 03_picnic/picnic.py | intimanipuchi/tiny_python_projects | 5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c | [
"MIT"
] | null | null | null | 03_picnic/picnic.py | intimanipuchi/tiny_python_projects | 5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c | [
"MIT"
] | null | null | null | 03_picnic/picnic.py | intimanipuchi/tiny_python_projects | 5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : Roman Koziy <koziyroman@gmail.com>
Date : 2021-12-15
Purpose: Working with lists
"""
import argparse
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description="Working with... | 25.116667 | 63 | 0.472462 |
7cbd753ba4fba3e640a8395f823b9af2ba40868f | 400 | py | Python | triangle.py | montyshyama/python-basics | d71156d70fdadc722a192b984e9bff66401ab894 | [
"MIT"
] | null | null | null | triangle.py | montyshyama/python-basics | d71156d70fdadc722a192b984e9bff66401ab894 | [
"MIT"
] | null | null | null | triangle.py | montyshyama/python-basics | d71156d70fdadc722a192b984e9bff66401ab894 | [
"MIT"
] | 1 | 2020-04-05T20:06:08.000Z | 2020-04-05T20:06:08.000Z | side_a=int(input("Enter the first side(a):"))
side_b=int(input("Enter the second side(b):"))
side_c=int(input("Enter the third side(c):"))
if side_a==side_b and side_a==side_c:
print("The triangle is an equilateral triangle.")
elif side_a==side_b or side_a==side_c or side_b==side_c:
print("The triangle is... | 44.444444 | 57 | 0.7075 |
7cbd766d520e1888b731cf3cea3bb5f44d830c1f | 520 | py | Python | david/modules/artist/view.py | ktmud/david | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | [
"MIT"
] | 2 | 2016-04-07T08:21:32.000Z | 2020-11-26T11:49:20.000Z | david/modules/artist/view.py | ktmud/david | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | [
"MIT"
] | null | null | null | david/modules/artist/view.py | ktmud/david | 4b8d6f804b73cdfa1a8ddf784077fa9a39f1e36f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, request
from david.lib.template import st
from .model import Artist
bp = Blueprint('artist', __name__)
| 23.636364 | 57 | 0.688462 |
7cbdd46842ad893e844a14b8fc15ffc18db30ecc | 2,832 | py | Python | Volume Estimation/volume.py | JessieRamaux/Food-Volume-Estimation | 260b0e78a3b6a7b8bbe9daf98956502beea92552 | [
"MIT"
] | 10 | 2021-02-19T09:31:43.000Z | 2022-02-09T08:29:02.000Z | Volume Estimation/volume.py | JessieRamaux/Food-Volume-Estimation | 260b0e78a3b6a7b8bbe9daf98956502beea92552 | [
"MIT"
] | null | null | null | Volume Estimation/volume.py | JessieRamaux/Food-Volume-Estimation | 260b0e78a3b6a7b8bbe9daf98956502beea92552 | [
"MIT"
] | 3 | 2021-02-16T00:05:32.000Z | 2021-06-11T13:37:10.000Z | import numpy as np
import cv2
import os
import json
import glob
from PIL import Image, ImageDraw
plate_diameter = 25 #cm
plate_depth = 1.5 #cm
plate_thickness = 0.2 #cm
img = cv2.imread("out.png",0)
print(get_volume(img,"test.json")) | 28.039604 | 116 | 0.604167 |
7cbe3198f6071ec0d541441f81f18f624a937b6f | 5,044 | py | Python | t2k/bin/cmttags.py | tianluyuan/pyutils | 2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50 | [
"MIT"
] | 1 | 2019-02-22T10:57:13.000Z | 2019-02-22T10:57:13.000Z | t2k/bin/cmttags.py | tianluyuan/pyutils | 2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50 | [
"MIT"
] | null | null | null | t2k/bin/cmttags.py | tianluyuan/pyutils | 2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
A script to create tags for CMT managed packages.
Call from within cmt/ directory
"""
import subprocess
import sys
import os
from optparse import OptionParser
__author__ = 'Tianlu Yuan'
__email__ = 'tianlu.yuan [at] colorado.edu'
# Ignore large external packages for now
IGNORES = ['CMT', ... | 28.822857 | 80 | 0.585052 |
7cbea5a7d278dcb466c16a1d3e035b7e14f3c77c | 63,630 | py | Python | salt/daemons/masterapi.py | rickh563/salt | 02822d6466c47d0daafd6e98b4e767a396b0ed48 | [
"Apache-2.0"
] | null | null | null | salt/daemons/masterapi.py | rickh563/salt | 02822d6466c47d0daafd6e98b4e767a396b0ed48 | [
"Apache-2.0"
] | null | null | null | salt/daemons/masterapi.py | rickh563/salt | 02822d6466c47d0daafd6e98b4e767a396b0ed48 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
This module contains all of the routines needed to set up a master server, this
involves preparing the three listeners and the workers needed by the master.
'''
from __future__ import absolute_import
# Import python libs
import fnmatch
import logging
import os
import re
import time
import s... | 39.253547 | 173 | 0.49604 |
7cbf3fcf677b8e93a5ef2be1bcf1c650636a93f5 | 2,003 | py | Python | core/domain/role_services_test.py | Mohitbalwani26/oppia | a3d1de8b428b8216bb61ba70315583fe077f5b8a | [
"Apache-2.0"
] | null | null | null | core/domain/role_services_test.py | Mohitbalwani26/oppia | a3d1de8b428b8216bb61ba70315583fe077f5b8a | [
"Apache-2.0"
] | null | null | null | core/domain/role_services_test.py | Mohitbalwani26/oppia | a3d1de8b428b8216bb61ba70315583fe077f5b8a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2017 The Oppia 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 requi... | 39.27451 | 79 | 0.734898 |
7cbf5d867e83bab7776ed420c8f1d228f4f2244d | 82,473 | py | Python | deep_learning/keras/keras/backend/cntk_backend.py | xpennec/applications | 50aefdf14de308fc3c132784ebba9d329e47b087 | [
"MIT"
] | 21 | 2019-01-12T17:59:41.000Z | 2022-03-08T17:42:56.000Z | deep_learning/keras/keras/backend/cntk_backend.py | farrell236/applications | 0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f | [
"MIT"
] | 7 | 2019-01-24T11:44:58.000Z | 2020-04-21T21:13:37.000Z | deep_learning/keras/keras/backend/cntk_backend.py | farrell236/applications | 0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f | [
"MIT"
] | 8 | 2019-01-24T11:36:05.000Z | 2021-06-15T20:59:50.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cntk as C
import numpy as np
from .common import floatx, epsilon, image_dim_ordering, image_data_format
from collections import defaultdict
from contextlib import contextmanager
import warnings
C.set_g... | 32.153216 | 109 | 0.584361 |
7cbfb5620b9999ebfec8396e7e566e9eef183412 | 6,946 | py | Python | Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py | nVoid/Yale-TouchDesigner-April2016 | 40eb36f515fa3935f3e9ddaa923664e88308262c | [
"MIT"
] | 39 | 2015-06-10T23:18:07.000Z | 2021-10-21T04:29:06.000Z | Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py | nVoid/Yale-TouchDesigner-April2016 | 40eb36f515fa3935f3e9ddaa923664e88308262c | [
"MIT"
] | 13 | 2020-10-28T16:02:09.000Z | 2020-11-16T13:30:05.000Z | Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py | nVoid/Yale-TouchDesigner-April2016 | 40eb36f515fa3935f3e9ddaa923664e88308262c | [
"MIT"
] | 26 | 2015-06-10T22:09:15.000Z | 2021-06-27T15:45:15.000Z | # -*- coding: utf-8 -*-
"""
oauthlib.oauth1.rfc5849.endpoints.resource
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of the resource protection provider logic of
OAuth 1.0 RFC 5849.
"""
from __future__ import absolute_import, unicode_literals
from oauthlib.common import log
from .base i... | 44.525641 | 84 | 0.6444 |
7cbffc6e03738d28e2329b530ca6fb3c25fe1127 | 1,493 | py | Python | python/ex_1.py | AymenSe/Geometric-operations-DIP | ef0b0bc86210a8da5e63136bf5a239179b869722 | [
"MIT"
] | null | null | null | python/ex_1.py | AymenSe/Geometric-operations-DIP | ef0b0bc86210a8da5e63136bf5a239179b869722 | [
"MIT"
] | null | null | null | python/ex_1.py | AymenSe/Geometric-operations-DIP | ef0b0bc86210a8da5e63136bf5a239179b869722 | [
"MIT"
] | null | null | null | ####################################################
#
# @ Authors : SEKHRI Aymen
# MOHAMMED HACENE Tarek
#
# @ Hint: you have to install all requirements
# from requirements.txt
#
####################################################
import numpy as np
import cv2 as cv
import matplotl... | 24.883333 | 59 | 0.649029 |
7cc0266db2f787f19a55358bfe261dafe0201d9d | 3,999 | py | Python | utils/hit_rate_utils.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 19 | 2020-12-14T13:53:10.000Z | 2022-02-27T09:46:15.000Z | utils/hit_rate_utils.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 3 | 2021-01-16T11:41:07.000Z | 2021-08-06T08:21:42.000Z | utils/hit_rate_utils.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 3 | 2021-01-10T15:25:29.000Z | 2021-09-26T01:38:16.000Z | from utils.misc import calculate_iou, xywh_to_xyxy
__all__ = ['NewHitRateEvaluator', 'CtxHitRateEvaluator']
| 36.688073 | 105 | 0.565141 |
7cc16e64c487a1ae6266b04c47e0496bada66d00 | 905 | py | Python | LeetCode_ReorderDataLogFiles.py | amukher3/Problem_solutions | 8fa6014a91f295d08cafb989024caa91d99211d9 | [
"Apache-2.0"
] | 1 | 2021-12-28T08:58:51.000Z | 2021-12-28T08:58:51.000Z | LeetCode_ReorderDataLogFiles.py | amukher3/Coding | a330cb04b5dd5cc1c3cf69249417a71586441bc7 | [
"Apache-2.0"
] | null | null | null | LeetCode_ReorderDataLogFiles.py | amukher3/Coding | a330cb04b5dd5cc1c3cf69249417a71586441bc7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 22 19:07:30 2020
@author: Abhishek Mukherjee
"""
| 27.424242 | 76 | 0.438674 |
7cc17f1b77efcc568026cf1d93c6a6ded983ab6a | 475 | py | Python | saleor/core/transactions.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/core/transactions.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/core/transactions.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | from contextlib import contextmanager
from django.db import DatabaseError
from ..core.tracing import traced_atomic_transaction
| 22.619048 | 65 | 0.669474 |
7cc1ccd2747eb46713eaccaf9ca6dc49d25b3128 | 3,314 | py | Python | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py | diberry/azure-cli | 302999245cbb13b890b0a74f03443c577bd4bfae | [
"MIT"
] | 1 | 2019-03-30T20:49:32.000Z | 2019-03-30T20:49:32.000Z | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py | diberry/azure-cli | 302999245cbb13b890b0a74f03443c577bd4bfae | [
"MIT"
] | 4 | 2018-08-08T20:01:17.000Z | 2018-09-17T15:20:06.000Z | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py | diberry/azure-cli | 302999245cbb13b890b0a74f03443c577bd4bfae | [
"MIT"
] | 1 | 2018-04-14T01:46:00.000Z | 2018-04-14T01:46:00.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 48.028986 | 194 | 0.545866 |
7cc20f1f6a53dbfc79dbca785199d6d05868daf1 | 25,440 | py | Python | tests/prep_post/test.py | Aslic/rmats_turbo_4.1.0 | c651509a5d32799315054fa37a2210fab2aae5e5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/prep_post/test.py | Aslic/rmats_turbo_4.1.0 | c651509a5d32799315054fa37a2210fab2aae5e5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/prep_post/test.py | Aslic/rmats_turbo_4.1.0 | c651509a5d32799315054fa37a2210fab2aae5e5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import glob
import os.path
import subprocess
import sys
import unittest
import tests.bam
import tests.base_test
import tests.gtf
import tests.output_parser as output_parser
import tests.test_config
import tests.util
if __name__ == '__main__':
unittest.main(verbosity=2)
| 39.75 | 83 | 0.553263 |
7cc57c915f6cace046e0bbe739957206038f009f | 1,527 | py | Python | nltk/align/util.py | kruskod/nltk | dba7b5431b1d57a75d50e048961c1a203b98c3da | [
"Apache-2.0"
] | 1 | 2015-11-25T00:47:58.000Z | 2015-11-25T00:47:58.000Z | nltk/align/util.py | kruskod/nltk | dba7b5431b1d57a75d50e048961c1a203b98c3da | [
"Apache-2.0"
] | null | null | null | nltk/align/util.py | kruskod/nltk | dba7b5431b1d57a75d50e048961c1a203b98c3da | [
"Apache-2.0"
] | null | null | null | # Natural Language Toolkit: Aligner Utilities
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Anna Garbar
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
from nltk.align.api import Alignment
def pharaohtext2tuples(pharaoh_text):
"""
Converts pharaoh text format into an Alignment ob... | 33.933333 | 81 | 0.642436 |
7cc70ea72109b3602fc21ef2eb53e2e3c1469770 | 1,461 | py | Python | grr/server/grr_response_server/databases/db_yara_test_lib.py | khanhgithead/grr | 8ad8a4d2c5a93c92729206b7771af19d92d4f915 | [
"Apache-2.0"
] | 4,238 | 2015-01-01T15:34:50.000Z | 2022-03-31T08:18:05.000Z | grr/server/grr_response_server/databases/db_yara_test_lib.py | khanhgithead/grr | 8ad8a4d2c5a93c92729206b7771af19d92d4f915 | [
"Apache-2.0"
] | 787 | 2015-01-02T21:34:24.000Z | 2022-03-02T13:26:38.000Z | grr/server/grr_response_server/databases/db_yara_test_lib.py | khanhgithead/grr | 8ad8a4d2c5a93c92729206b7771af19d92d4f915 | [
"Apache-2.0"
] | 856 | 2015-01-02T02:50:11.000Z | 2022-03-31T11:11:53.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""A module with test cases for the YARA database method."""
import os
from grr_response_server.databases import db
from grr_response_server.rdfvalues import objects as rdf_objects
| 33.976744 | 75 | 0.776181 |
7cc7a37d4874c578241d8fb555c025d8c962058b | 4,912 | py | Python | gpytorch/kernels/inducing_point_kernel.py | 4aHxKzD/gpytorch | 7193545f88820ea04588b983f1d7ed603a59a27c | [
"MIT"
] | 1 | 2021-03-05T07:20:58.000Z | 2021-03-05T07:20:58.000Z | gpytorch/kernels/inducing_point_kernel.py | 4aHxKzD/gpytorch | 7193545f88820ea04588b983f1d7ed603a59a27c | [
"MIT"
] | 1 | 2021-02-24T14:01:43.000Z | 2021-02-24T14:01:43.000Z | gpytorch/kernels/inducing_point_kernel.py | syncrostone/gpytorch | 4d33fbf64594aab2dd6e0cfcb3242510231b3e0e | [
"MIT"
] | 1 | 2021-03-15T12:32:24.000Z | 2021-03-15T12:32:24.000Z | #!/usr/bin/env python3
import copy
import math
import torch
from ..distributions import MultivariateNormal
from ..lazy import DiagLazyTensor, LowRankRootAddedDiagLazyTensor, LowRankRootLazyTensor, MatmulLazyTensor, delazify
from ..mlls import InducingPointKernelAddedLossTerm
from ..models import exact_prediction_str... | 36.656716 | 116 | 0.659202 |
7cc9967d7946d0cff670ce2e551feabb3ef304ce | 891 | py | Python | app/__init__.py | Jotasenpai/DigitalMediaStoreRESTfull | bb776d398e1756b1ff2fd4f392b80479ae29847d | [
"MIT"
] | null | null | null | app/__init__.py | Jotasenpai/DigitalMediaStoreRESTfull | bb776d398e1756b1ff2fd4f392b80479ae29847d | [
"MIT"
] | null | null | null | app/__init__.py | Jotasenpai/DigitalMediaStoreRESTfull | bb776d398e1756b1ff2fd4f392b80479ae29847d | [
"MIT"
] | null | null | null | import logging
import os
from flask import Flask
from flask_cors import CORS
from app.extensions import api
from app.extensions.database import db
from app.extensions.schema import ma
from app.views import albums, artists, hello, tracks
| 21.214286 | 54 | 0.679012 |
7cc9e6223af3f0ca91fd050679827da65d115102 | 18,053 | py | Python | app.py | SASHA-PAIS/A-Flask-web-app-for-inventory-management | e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3 | [
"MIT"
] | null | null | null | app.py | SASHA-PAIS/A-Flask-web-app-for-inventory-management | e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3 | [
"MIT"
] | null | null | null | app.py | SASHA-PAIS/A-Flask-web-app-for-inventory-management | e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3 | [
"MIT"
] | null | null | null | from flask import Flask, url_for, request, redirect
from flask import render_template as render
from flask_mysqldb import MySQL
import yaml
import json
import MySQLdb
import decimal
# Setting up the flask instance
app = Flask(__name__)
# Configure the database
db = yaml.load(open('db.yaml'))
app.config['MYSQL_HOST'... | 37.146091 | 218 | 0.585831 |
7ccbe673fd6019f10368e191ac41278443f5c053 | 9,554 | py | Python | python/paddle/fluid/tests/unittests/ir/inference/test_trt_reduce_mean_op.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 8 | 2016-08-15T07:02:27.000Z | 2016-08-24T09:34:00.000Z | python/paddle/fluid/tests/unittests/ir/inference/test_trt_reduce_mean_op.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 1 | 2021-11-01T06:28:16.000Z | 2021-11-01T06:28:16.000Z | python/paddle/fluid/tests/unittests/ir/inference/test_trt_reduce_mean_op.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 5 | 2021-12-10T11:20:06.000Z | 2022-02-18T05:18:12.000Z | # Copyright (c) 2021 PaddlePaddle 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 appli... | 40.483051 | 82 | 0.626125 |
7ccc10fc8c636712784281edcf93b9e16ef2ae97 | 2,202 | py | Python | configs/vinbig/detectors_resnext.py | SeHwanJoo/mmdetection_vinbig | 9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3 | [
"Apache-2.0"
] | 2 | 2021-04-01T08:17:08.000Z | 2021-07-12T11:53:53.000Z | configs/vinbig/detectors_resnext.py | SeHwanJoo/mmdetection_vinbig | 9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3 | [
"Apache-2.0"
] | null | null | null | configs/vinbig/detectors_resnext.py | SeHwanJoo/mmdetection_vinbig | 9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/models/cascade_rcnn_r50_fpn.py',
'./dataset_base.py',
'./scheduler_base.py',
'../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='DetectoRS_ResNeXt',
pretrained='open-mmlab://resnext101_32x4d',
... | 27.525 | 57 | 0.475931 |
7cccbb5b10c9e4406bbef811b8c0c86a34ddfd24 | 26,701 | py | Python | skbio/draw/tests/test_distributions.py | johnchase/scikit-bio | 340e6153b6c93053d923d344e63481860e03731e | [
"BSD-3-Clause"
] | null | null | null | skbio/draw/tests/test_distributions.py | johnchase/scikit-bio | 340e6153b6c93053d923d344e63481860e03731e | [
"BSD-3-Clause"
] | null | null | null | skbio/draw/tests/test_distributions.py | johnchase/scikit-bio | 340e6153b6c93053d923d344e63481860e03731e | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | 46.275563 | 79 | 0.562638 |
7ccec8a64f1094a2aaa4d1c42f4858ca203734a3 | 122 | py | Python | packages/gtmapi/lmsrvcore/api/interfaces/__init__.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmapi/lmsrvcore/api/interfaces/__init__.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmapi/lmsrvcore/api/interfaces/__init__.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | from lmsrvcore.api.interfaces.user import User
from lmsrvcore.api.interfaces.git import GitCommit, GitRef, GitRepository
| 30.5 | 73 | 0.844262 |
7cced65964aa995783474d3ea16a3fdb37a88182 | 3,570 | py | Python | tensorflow_probability/python/bijectors/invert_test.py | matthieucoquet/probability | 2426f4fc4743ceedc1a638a03d19ce6654ebff76 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/bijectors/invert_test.py | matthieucoquet/probability | 2426f4fc4743ceedc1a638a03d19ce6654ebff76 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/bijectors/invert_test.py | matthieucoquet/probability | 2426f4fc4743ceedc1a638a03d19ce6654ebff76 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 38.387097 | 95 | 0.693557 |
7ccf2b0c1cc9f5a9318ca8b0e302ba7e965fbb1e | 4,394 | py | Python | dayu_widgets/alert.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | null | null | null | dayu_widgets/alert.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | null | null | null | dayu_widgets/alert.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.2
# Email : muyanru345@163.com
###################################################################
"""
MAlert class.
"""
import six
import functools
from dayu_widgets.avat... | 32.072993 | 98 | 0.62244 |
7cd0a40cffa8dae1e2b1f6c63ccd1a5c2242724b | 86 | py | Python | week03/code05.py | byeongal/KMUCP | 5bafe02c40aae67fc53d9e6cdcb727929368587e | [
"MIT"
] | null | null | null | week03/code05.py | byeongal/KMUCP | 5bafe02c40aae67fc53d9e6cdcb727929368587e | [
"MIT"
] | null | null | null | week03/code05.py | byeongal/KMUCP | 5bafe02c40aae67fc53d9e6cdcb727929368587e | [
"MIT"
] | 1 | 2019-11-27T20:28:19.000Z | 2019-11-27T20:28:19.000Z | input_str = input(" . >> ")
print(" ", len(input_str), ".")
| 28.666667 | 46 | 0.639535 |
7cd14d3a6d6b9088b4271089222cd9080f058243 | 5,664 | py | Python | jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py | bibinvasudev/EBI_Project | df2560139e463d68a37e67e0bb683c06fa9ef91b | [
"CNRI-Python"
] | null | null | null | jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py | bibinvasudev/EBI_Project | df2560139e463d68a37e67e0bb683c06fa9ef91b | [
"CNRI-Python"
] | null | null | null | jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py | bibinvasudev/EBI_Project | df2560139e463d68a37e67e0bb683c06fa9ef91b | [
"CNRI-Python"
] | null | null | null | # SCH1101.sh --> JB_SALES_HIERARCHY_FLAG_N_SR.py
#**************************************************************************************************************
#
# Created by : bibin
# Version : 1.0
#
# Description :
# 1. This script will load the data into 'SALES_HIERARCHY' table based on stre... | 38.794521 | 218 | 0.625883 |
7cd1e3bcc66dd50fd9167cfd73166db8b21f6910 | 670 | py | Python | myth/util.py | amanbhandari2002/mythproto | b03764485dad5178127307a3b3e4ddc508158143 | [
"BSD-3-Clause"
] | 1 | 2020-10-01T09:17:00.000Z | 2020-10-01T09:17:00.000Z | myth/util.py | amanbhandari2002/mythproto | b03764485dad5178127307a3b3e4ddc508158143 | [
"BSD-3-Clause"
] | null | null | null | myth/util.py | amanbhandari2002/mythproto | b03764485dad5178127307a3b3e4ddc508158143 | [
"BSD-3-Clause"
] | 2 | 2020-09-30T19:53:40.000Z | 2020-10-01T09:13:08.000Z |
# t is a nine item tuple returned by the time module. This method converts it to
# MythTV's standard representation used on filenames
| 18.108108 | 80 | 0.631343 |
7cd283a215a5ab2f5c601f954e24742216c659e4 | 14,208 | py | Python | scripts/tator_tracker.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 10 | 2019-01-23T23:58:01.000Z | 2021-08-30T19:42:35.000Z | scripts/tator_tracker.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 3 | 2020-03-20T15:21:41.000Z | 2020-09-18T18:49:38.000Z | scripts/tator_tracker.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 2 | 2020-05-08T17:39:12.000Z | 2020-10-09T01:27:17.000Z | #!/usr/bin/env python3
import argparse
import openem
import os
import cv2
import numpy as np
from openem.tracking import *
import json
import sys
import datetime
import tator
from pprint import pprint
from collections import defaultdict
import yaml
import math
import subprocess
import sys
if __name__=="__main__":... | 39.248619 | 126 | 0.551943 |
7cd30f449f940b3e03ca41f6babd9a375fe19ebf | 1,167 | py | Python | hypergan/losses/multi_loss.py | Darkar25/HyperGAN | 76ef7e0c20569ceece88dc76396d92c77050692b | [
"MIT"
] | 1 | 2019-05-29T14:24:04.000Z | 2019-05-29T14:24:04.000Z | hypergan/losses/multi_loss.py | KonradLinkowski/HyperGAN | 3153daee838dbb8e8d8926b1e81419682a24f2fe | [
"MIT"
] | 218 | 2021-05-25T01:46:15.000Z | 2022-02-11T01:08:52.000Z | hypergan/losses/multi_loss.py | KonradLinkowski/HyperGAN | 3153daee838dbb8e8d8926b1e81419682a24f2fe | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import hyperchamber as hc
from hypergan.losses.base_loss import BaseLoss
from hypergan.multi_component import MultiComponent
TINY=1e-8
| 26.522727 | 99 | 0.61868 |
7cd33c8d7f17b4aa6fc5f6d3f2701686f2ce01a4 | 13,643 | py | Python | src/fidesops/api/v1/endpoints/policy_endpoints.py | mohan-pogala/fidesops | 5c686362d4fb3b85253dd7e2898be1131a5071ab | [
"Apache-2.0"
] | null | null | null | src/fidesops/api/v1/endpoints/policy_endpoints.py | mohan-pogala/fidesops | 5c686362d4fb3b85253dd7e2898be1131a5071ab | [
"Apache-2.0"
] | null | null | null | src/fidesops/api/v1/endpoints/policy_endpoints.py | mohan-pogala/fidesops | 5c686362d4fb3b85253dd7e2898be1131a5071ab | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Any, Dict, List
from fastapi import APIRouter, Body, Depends, Security
from fastapi_pagination import (
Page,
Params,
)
from fastapi_pagination.bases import AbstractPage
from fastapi_pagination.ext.sqlalchemy import paginate
from fidesops.schemas.shared_schemas import FidesOp... | 31.95082 | 113 | 0.609543 |
7cd398bd2b3034834a61ea93e2ee16c8e1011acb | 7,425 | py | Python | engage-analytics/sentiment_analysis/src/report/interface_report.py | oliveriopt/mood-analytics | c98eb8c483a05af938a2f6f49d8ea803f5711572 | [
"Apache-2.0"
] | null | null | null | engage-analytics/sentiment_analysis/src/report/interface_report.py | oliveriopt/mood-analytics | c98eb8c483a05af938a2f6f49d8ea803f5711572 | [
"Apache-2.0"
] | 2 | 2020-03-27T19:14:44.000Z | 2020-03-27T19:14:44.000Z | engage-analytics/sentiment_analysis/src/report/interface_report.py | oliveriopt/mood-analytics | c98eb8c483a05af938a2f6f49d8ea803f5711572 | [
"Apache-2.0"
] | null | null | null | import emoji
import sentiment_analysis.src.report.cons_report as cons
import sentiment_analysis.src.constants as global_cons
from utils.data_connection.api_data_manager import APISourcesFetcher
from utils.utilities import read_json_file, CUSTOM_YEAR_WEEK_AGG, extract_dimension, extract_question
from sentiment_analysis... | 40.135135 | 116 | 0.644175 |
7cd4c163b81a2a9f7a9f4fb51454b97b7933bffd | 1,565 | py | Python | dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | resource ='human ad machime'
| 27.946429 | 62 | 0.548882 |
7cd59f2bf170f30d86846848bf3c6c4bf7b96d9c | 2,491 | py | Python | lino/modlib/gfks/mixins.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | 1 | 2019-11-13T19:38:50.000Z | 2019-11-13T19:38:50.000Z | lino/modlib/gfks/mixins.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | null | null | null | lino/modlib/gfks/mixins.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2010-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from builtins import object
from django.contrib.contenttypes.models import *
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.text import format_lazy
... | 30.753086 | 71 | 0.635488 |
7cd5ad9a803e1cac21f7d6ba2961e58bea3c98da | 21,926 | py | Python | optical_form_reader/main.py | 1enes/optical_form_reader | fab99f2403c25f84fcb5bdac50148ab248432516 | [
"MIT"
] | null | null | null | optical_form_reader/main.py | 1enes/optical_form_reader | fab99f2403c25f84fcb5bdac50148ab248432516 | [
"MIT"
] | null | null | null | optical_form_reader/main.py | 1enes/optical_form_reader | fab99f2403c25f84fcb5bdac50148ab248432516 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from imutils import contours
from imutils.perspective import four_point_transform
import imutils
import cv2
import matplotlib.pyplot as plt
import numpy as np
from imutils import contours
from imutils.perspective import four_point_transform,order_points
import imutils
cevap_an... | 31.100709 | 223 | 0.622457 |
7cd6ff8a4443655a42df05eccf62b0e804763fb0 | 2,898 | py | Python | service.py | Tigge/script.filmtipset-grade | a5b438dc478d6ef40f611585e9cd196c2ff49cf6 | [
"BSD-2-Clause"
] | 1 | 2015-02-19T08:45:57.000Z | 2015-02-19T08:45:57.000Z | service.py | Tigge/script.filmtipset-grade | a5b438dc478d6ef40f611585e9cd196c2ff49cf6 | [
"BSD-2-Clause"
] | 1 | 2015-02-01T19:28:17.000Z | 2015-03-18T22:27:14.000Z | service.py | Tigge/script.filmtipset-grade | a5b438dc478d6ef40f611585e9cd196c2ff49cf6 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2013, Gustav Tiger
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and th... | 34.094118 | 82 | 0.670807 |
7cd8fbdd89ede56684cdd39b8bd8583e3ed86ea6 | 16,528 | py | Python | test/testMatrix.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T19:22:17.000Z | 2021-05-26T19:22:17.000Z | test/testMatrix.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | test/testMatrix.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null |
import unittest
from nzmath.matrix import *
import nzmath.vector as vector
import nzmath.rational as rational
import nzmath.poly.uniutil as uniutil
Ra = rational.Rational
Poly = uniutil.polynomial
Int = rational.theIntegerRing
# sub test
try:
from test.testMatrixFiniteField import *
except:
try:
from... | 35.165957 | 94 | 0.575811 |
7cd9e1b23df0b17b32715fc652a510c5c85b28ff | 372 | py | Python | python/test-nose-3.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | python/test-nose-3.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | python/test-nose-3.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | # Module Level
# Function Level
# Target Func
test_func_1.setUp = func_1_setup
test_func_1.tearDown = func_1_teardown
| 15.5 | 38 | 0.72043 |
7cda6328ac58b61f05923cca8623aa6b42f94561 | 3,591 | py | Python | lib/reindex/reporting.py | scality/utapi | 29475f1b9aa25cf3c883262bfb6f4573f846a5b7 | [
"Apache-2.0"
] | 13 | 2016-10-07T20:25:11.000Z | 2022-02-23T06:33:59.000Z | lib/reindex/reporting.py | scality/utapi | 29475f1b9aa25cf3c883262bfb6f4573f846a5b7 | [
"Apache-2.0"
] | 427 | 2016-08-17T18:03:32.000Z | 2022-03-31T10:46:12.000Z | lib/reindex/reporting.py | scality/utapi | 29475f1b9aa25cf3c883262bfb6f4573f846a5b7 | [
"Apache-2.0"
] | 5 | 2017-04-25T21:13:03.000Z | 2018-01-23T00:21:06.000Z | import requests
import redis
import json
import ast
import sys
import time
import urllib
import re
import sys
from threading import Thread
from concurrent.futures import ThreadPoolExecutor
import argparse
if __name__ == '__main__':
options = get_options()
redis_conf = dict(
ip=options.sentinel_ip,
... | 35.554455 | 114 | 0.634085 |
7cdbf4b64b3ba075f66b013f73d0f70e791b05ee | 52,272 | py | Python | src/skim/modeling/skim_attention/modeling_skim.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | 4 | 2021-09-08T17:20:59.000Z | 2021-12-08T07:49:24.000Z | src/skim/modeling/skim_attention/modeling_skim.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | null | null | null | src/skim/modeling/skim_attention/modeling_skim.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | 1 | 2021-12-09T00:02:23.000Z | 2021-12-09T00:02:23.000Z | from collections import namedtuple
import logging
from dataclasses import dataclass
from typing import Optional, Tuple
import math
import torch
from torch import nn
from torch.nn import CrossEntropyLoss, LayerNorm
from torch.autograd.function import Function
from transformers.file_utils import (
ModelOutput,
)
... | 39.540091 | 168 | 0.661674 |
7cdcd3e9c2d7e86acfb845c8d72f0dc9c0f23f7d | 2,290 | py | Python | api/routers/dashboard.py | xming521/coco_API | 51d7ac3141e58f1d6a5438af135fba3ea101bd53 | [
"MIT"
] | null | null | null | api/routers/dashboard.py | xming521/coco_API | 51d7ac3141e58f1d6a5438af135fba3ea101bd53 | [
"MIT"
] | null | null | null | api/routers/dashboard.py | xming521/coco_API | 51d7ac3141e58f1d6a5438af135fba3ea101bd53 | [
"MIT"
] | null | null | null | import time
import psutil
import pymysql
from fastapi import APIRouter
from api.utils import response_code
router = APIRouter()
| 30.533333 | 79 | 0.620524 |
7cdd5ddf7b7d2568fd208a60927251ae8e3ac857 | 10,399 | py | Python | retargeting/models/Kinematics.py | yujiatay/deep-motion-editing | 0a6fc5fd20059c5074f68a452cd49cf6ede36ea8 | [
"BSD-2-Clause"
] | 1 | 2021-07-06T14:34:12.000Z | 2021-07-06T14:34:12.000Z | retargeting/models/Kinematics.py | bmd080/deep-motion-editing | 19604abdc0ead66f8c82d9211b8c5862c6a68089 | [
"BSD-2-Clause"
] | null | null | null | retargeting/models/Kinematics.py | bmd080/deep-motion-editing | 19604abdc0ead66f8c82d9211b8c5862c6a68089 | [
"BSD-2-Clause"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
import math
| 36.233449 | 131 | 0.521877 |
7cdd5ff32b1c2238dcf9d02a8e0c07b84239dfc5 | 13,145 | py | Python | tests/operators/test_hive_operator.py | Ryan-Miao/airflow | a2aca8714fac014ed7da97229d7877f1bc6e5a59 | [
"Apache-2.0"
] | null | null | null | tests/operators/test_hive_operator.py | Ryan-Miao/airflow | a2aca8714fac014ed7da97229d7877f1bc6e5a59 | [
"Apache-2.0"
] | null | null | null | tests/operators/test_hive_operator.py | Ryan-Miao/airflow | a2aca8714fac014ed7da97229d7877f1bc6e5a59 | [
"Apache-2.0"
] | 1 | 2020-09-29T05:26:34.000Z | 2020-09-29T05:26:34.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
#... | 39.005935 | 88 | 0.617117 |
7cdde129ca347d44c4fc15ae483831b97628b1d6 | 4,553 | py | Python | main.py | OrionDark7/Alakajam12 | 4f9f8f87a05feb718baddb12aa8cbbed3e36a071 | [
"MIT"
] | null | null | null | main.py | OrionDark7/Alakajam12 | 4f9f8f87a05feb718baddb12aa8cbbed3e36a071 | [
"MIT"
] | null | null | null | main.py | OrionDark7/Alakajam12 | 4f9f8f87a05feb718baddb12aa8cbbed3e36a071 | [
"MIT"
] | null | null | null | import pygame, math
from game import map, ui
window = pygame.display.set_mode([800, 600])
ui.window = window
screen = "game"
s = {"fullscreen": False}
running = True
gamedata = {"level": 0, "coal": 0, "iron": 1, "copper":0}
tiles = pygame.sprite.Group()
rails = pygame.sprite.Group()
carts = pygame.sprite.Group()
inter... | 40.292035 | 124 | 0.573468 |
7cde0e155e222f52e34bae521e25a21b28caf52a | 550 | py | Python | Code/extract_method3.py | AbdullahNoori/CS-2.1-Trees-Sorting | 59ba182d60abe6171a3d7d64981f79ee192de3bb | [
"MIT"
] | null | null | null | Code/extract_method3.py | AbdullahNoori/CS-2.1-Trees-Sorting | 59ba182d60abe6171a3d7d64981f79ee192de3bb | [
"MIT"
] | null | null | null | Code/extract_method3.py | AbdullahNoori/CS-2.1-Trees-Sorting | 59ba182d60abe6171a3d7d64981f79ee192de3bb | [
"MIT"
] | null | null | null | # Written by Kamran Bigdely
# Example for Compose Methods: Extract Method.
import math
print('distance', get_distance())
# *** somewhere else in your program ***
print('length', get_length())
| 26.190476 | 88 | 0.670909 |
7cde5911adb7d9da7046ae21614759503f243fc8 | 51,158 | py | Python | sympy/integrals/prde.py | Abhi58/sympy | 5ca228b17a7d44ef08a268ba1fa959d5763634af | [
"BSD-3-Clause"
] | 2 | 2019-06-12T16:15:39.000Z | 2019-10-06T10:40:59.000Z | sympy/integrals/prde.py | Abhi58/sympy | 5ca228b17a7d44ef08a268ba1fa959d5763634af | [
"BSD-3-Clause"
] | null | null | null | sympy/integrals/prde.py | Abhi58/sympy | 5ca228b17a7d44ef08a268ba1fa959d5763634af | [
"BSD-3-Clause"
] | 1 | 2019-10-02T10:47:13.000Z | 2019-10-02T10:47:13.000Z | """
Algorithms for solving Parametric Risch Differential Equations.
The methods used for solving Parametric Risch Differential Equations parallel
those for solving Risch Differential Equations. See the outline in the
docstring of rde.py for more information.
The Parametric Risch Differential Equation problem is, giv... | 40.123922 | 110 | 0.561222 |
7ce07b8311ef90c93682c15fc681abf9e95c0bb7 | 1,076 | py | Python | ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-05T09:30:23.000Z | 2022-03-09T13:27:56.000Z | ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | null | null | null | ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-06T03:44:35.000Z | 2022-03-04T21:20:40.000Z | from pprint import pprint
import yaml
import netmiko
import paramiko
if __name__ == "__main__":
with open("devices.yaml") as f:
devices = yaml.safe_load(f)
r1 = devices[0]
out = send_cmd_with_prompt(
r1, "copy run start", wait_for="Destination filename", confirmation="\n"
... | 25.619048 | 84 | 0.616171 |
7ce146b894402021fe89e46e79f310a76ff9ef08 | 2,479 | py | Python | LightTestLoop.py | Growing-Beyond-Earth/GettingStarted | 04c2fd5fa36224ac25a6c6c62c4d6e558b27e700 | [
"Apache-2.0"
] | null | null | null | LightTestLoop.py | Growing-Beyond-Earth/GettingStarted | 04c2fd5fa36224ac25a6c6c62c4d6e558b27e700 | [
"Apache-2.0"
] | null | null | null | LightTestLoop.py | Growing-Beyond-Earth/GettingStarted | 04c2fd5fa36224ac25a6c6c62c4d6e558b27e700 | [
"Apache-2.0"
] | null | null | null | # GROWNG BEYOND EARTH CONTROL BOX Traning
# RASPBERRY PI PICO / MICROPYTHON
# FAIRCHILD TROPICAL BOTANIC GARDEN, Oct 18, 2021
# The Growing Beyond Earth (GBE) control box is a device that controls
# the LED lights and fan in a GBE growth chamber. It can also control
# accessories including a 12v water pump and enviro... | 38.138462 | 92 | 0.745058 |
7ce15c82ddc26277baddffb09d13b58c226ab5d6 | 3,409 | py | Python | core/known_bugs_utils.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | core/known_bugs_utils.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | core/known_bugs_utils.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | import os
import yaml
from core import plugintools
from core import constants
from core.searchtools import SearchDef
from core.issues.issue_utils import IssueEntry
LAUNCHPAD = "launchpad"
MASTER_YAML_KNOWN_BUGS_KEY = "bugs-detected"
KNOWN_BUGS = {MASTER_YAML_KNOWN_BUGS_KEY: []}
def _get_known_bugs():
"""
F... | 33.097087 | 79 | 0.680845 |
7ce16cb7ee2c1e090289468a70fd88401aba8ddc | 339 | py | Python | examples/xml-rpc/echoserver.py | keobox/yap101 | 26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9 | [
"MIT"
] | null | null | null | examples/xml-rpc/echoserver.py | keobox/yap101 | 26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9 | [
"MIT"
] | null | null | null | examples/xml-rpc/echoserver.py | keobox/yap101 | 26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9 | [
"MIT"
] | null | null | null | import SimpleXMLRPCServer as xmls
server = echoserver(('127.0.0.1', 8001))
server.register_function(echo, 'echo')
print 'Listening on port 8001'
try:
server.serve_forever()
except:
server.server_close()
| 19.941176 | 42 | 0.728614 |
7ce1993cbdc65a6d053c9478a3f9b9475d29bb5c | 7,083 | py | Python | tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py | gpspelle/pose-estimation | b817dcc120092002984d8a41431046f323bc02c8 | [
"Apache-2.0"
] | 862 | 2019-12-11T18:40:48.000Z | 2022-03-29T15:23:58.000Z | tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py | bvanelli/tf-pose-estimation | 1dec506ac8abf00616dc0fe76bf476ccdfd6b93e | [
"Apache-2.0"
] | 72 | 2019-05-07T18:33:32.000Z | 2022-03-10T07:48:39.000Z | tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py | bvanelli/tf-pose-estimation | 1dec506ac8abf00616dc0fe76bf476ccdfd6b93e | [
"Apache-2.0"
] | 165 | 2019-12-11T20:04:22.000Z | 2022-03-29T06:18:12.000Z | # Copyright 2018 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... | 37.278947 | 80 | 0.674432 |
7ce2ce6e7522a59e86a553aeb0f5ee90bd00e269 | 1,402 | py | Python | firebase-gist.py | darwin/firebase-gist | 5aa4eb89e82fbf2971d7afca07471e1f51ff6e51 | [
"MIT"
] | 1 | 2017-08-15T15:37:21.000Z | 2017-08-15T15:37:21.000Z | firebase-gist.py | darwin/firebase-gist | 5aa4eb89e82fbf2971d7afca07471e1f51ff6e51 | [
"MIT"
] | null | null | null | firebase-gist.py | darwin/firebase-gist | 5aa4eb89e82fbf2971d7afca07471e1f51ff6e51 | [
"MIT"
] | null | null | null | from firebase import firebase
import os
import datetime
import json
import logging
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from github3 import login
firebase_url = os.environ['FIREBASE_DB']
firebase_secret = os.environ['FIREBASE_SECRET']
firebase_path = os.environ['FIREBASE_PATH']
fireb... | 25.962963 | 100 | 0.738231 |
7ce32e38118a236e7f22400e28b670e7f2079e82 | 869 | py | Python | practice/2008/qualification/C-Fly_swatter/c.py | victorWeiFreelancer/CodeJam | edb8f921860a35985823cb3dbd3ebec8a8f3c12f | [
"MIT"
] | null | null | null | practice/2008/qualification/C-Fly_swatter/c.py | victorWeiFreelancer/CodeJam | edb8f921860a35985823cb3dbd3ebec8a8f3c12f | [
"MIT"
] | null | null | null | practice/2008/qualification/C-Fly_swatter/c.py | victorWeiFreelancer/CodeJam | edb8f921860a35985823cb3dbd3ebec8a8f3c12f | [
"MIT"
] | null | null | null | import sys
sys.dont_write_bytecode = True
if __name__ == '__main__':
main() | 25.558824 | 69 | 0.537399 |
7ce34380af3cdc654ec22dc00486fd1079b00edb | 25,614 | py | Python | synapse/notifier.py | rkfg/synapse | 0b3112123da5fae4964db784e3bab0c4d83d9d62 | [
"Apache-2.0"
] | 1 | 2021-09-09T08:50:13.000Z | 2021-09-09T08:50:13.000Z | synapse/notifier.py | rkfg/synapse | 0b3112123da5fae4964db784e3bab0c4d83d9d62 | [
"Apache-2.0"
] | null | null | null | synapse/notifier.py | rkfg/synapse | 0b3112123da5fae4964db784e3bab0c4d83d9d62 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014 - 2016 OpenMarket 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 36.025316 | 87 | 0.605216 |
7ce35b3e99fb727d7c2e93f64173851978f39e8c | 30,955 | py | Python | saleor/checkout/tests/test_base_calculations.py | nestfiy/saleor | 6fce3bc5c0ca72ac28db99553e6d2b49249c6dac | [
"CC-BY-4.0"
] | null | null | null | saleor/checkout/tests/test_base_calculations.py | nestfiy/saleor | 6fce3bc5c0ca72ac28db99553e6d2b49249c6dac | [
"CC-BY-4.0"
] | 76 | 2021-11-01T04:53:42.000Z | 2022-03-28T04:51:25.000Z | saleor/checkout/tests/test_base_calculations.py | nestfiy/saleor | 6fce3bc5c0ca72ac28db99553e6d2b49249c6dac | [
"CC-BY-4.0"
] | null | null | null | from decimal import Decimal
from prices import Money, TaxedMoney
from ...discount import DiscountValueType, VoucherType
from ...discount.utils import get_product_discount_on_sale
from ..base_calculations import (
base_checkout_total,
base_tax_rate,
calculate_base_line_total_price,
calculate_base_line_... | 37.475787 | 88 | 0.772767 |
7ce3c5ddd55aea55c48d0f942c54f7645b346e45 | 24,690 | py | Python | tests/test_date.py | andy-z/ged4py | 2270bd8366174dcc98424cc6671bdaecf770fda0 | [
"MIT"
] | 10 | 2017-07-25T22:39:34.000Z | 2022-03-01T04:40:38.000Z | tests/test_date.py | andy-z/ged4py | 2270bd8366174dcc98424cc6671bdaecf770fda0 | [
"MIT"
] | 20 | 2018-03-25T10:25:40.000Z | 2021-05-02T20:38:48.000Z | tests/test_date.py | andy-z/ged4py | 2270bd8366174dcc98424cc6671bdaecf770fda0 | [
"MIT"
] | 6 | 2018-04-29T12:45:34.000Z | 2021-09-14T14:30:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `ged4py.date` module."""
import unittest
from ged4py.calendar import (
CalendarType, CalendarDate, FrenchDate, GregorianDate, HebrewDate, JulianDate,
CalendarDateVisitor
)
from ged4py.date import (
DateValue, DateValueAbout, DateValueAfter, DateV... | 41.356784 | 108 | 0.637708 |
7ce3f2fa9ab64a2e056aae0886c6829b2b5285e6 | 7,722 | py | Python | src/quart/local.py | Dunkledore/quart | 803c8678b083895f4ece35fccb6aca56e189ee0a | [
"MIT"
] | 3 | 2020-03-31T10:36:31.000Z | 2020-04-23T12:01:10.000Z | venv/lib/python3.9/site-packages/quart/local.py | ryanwwest/kademlia | e1e5b84db0a7710cf372663325041850802d55f1 | [
"MIT"
] | 6 | 2020-09-05T01:40:23.000Z | 2022-03-12T00:40:58.000Z | src/quart/local.py | ccns1/ccns11 | d6edfac34fbee06fe974cda007d24a088d31ad30 | [
"MIT"
] | 1 | 2020-09-05T00:19:03.000Z | 2020-09-05T00:19:03.000Z | from __future__ import annotations
import asyncio
import copy
from contextvars import ContextVar # noqa # contextvars not understood as stdlib
from typing import Any # noqa # contextvars not understood as stdlib
from typing import Callable, Dict, Optional
| 41.740541 | 95 | 0.630536 |
7ce4682d4472c3403cd709b201e4107d5de073fb | 20,891 | py | Python | pytorch3dunet/unet3d/predictor.py | searobbersduck/pytorch-3dunet | 5bb8ed2b6966b2cd06b1dc676b62d1ad98329305 | [
"MIT"
] | null | null | null | pytorch3dunet/unet3d/predictor.py | searobbersduck/pytorch-3dunet | 5bb8ed2b6966b2cd06b1dc676b62d1ad98329305 | [
"MIT"
] | null | null | null | pytorch3dunet/unet3d/predictor.py | searobbersduck/pytorch-3dunet | 5bb8ed2b6966b2cd06b1dc676b62d1ad98329305 | [
"MIT"
] | null | null | null | import time
import h5py
import hdbscan
import numpy as np
import torch
from sklearn.cluster import MeanShift
from pytorch3dunet.datasets.hdf5 import SliceBuilder
from pytorch3dunet.unet3d.utils import get_logger
from pytorch3dunet.unet3d.utils import unpad
logger = get_logger('UNet3DPredictor')
class StandardPred... | 49.387707 | 134 | 0.631372 |
7ce4ea0979a0d8bcdfade749e59f8ad94da264f2 | 3,487 | py | Python | var/spack/repos/builtin/packages/visionary-dev-tools/package.py | electronicvisions/spack | d6121eb35b4948f7d8aef7ec7a305a5123a7439e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-10T13:47:48.000Z | 2019-04-17T13:05:17.000Z | var/spack/repos/builtin/packages/visionary-dev-tools/package.py | einc-eu/spack | 15468b92ed21d970c0111ae19144e85e66746433 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-05-28T06:39:59.000Z | 2022-03-30T15:12:35.000Z | var/spack/repos/builtin/packages/visionary-dev-tools/package.py | einc-eu/spack | 15468b92ed21d970c0111ae19144e85e66746433 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2018-04-06T09:04:11.000Z | 2020-01-24T12:52:12.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os.path as osp
| 33.854369 | 124 | 0.677086 |
7ce65373a75b86fe5dcecdc0e2146bc5ea3033e1 | 3,593 | py | Python | extra/convertBAMtoPILFER.py | MartaLoBalastegui/XICRA | 74a7e74379c7e1b3fc1360d2c609994e884ee37a | [
"MIT"
] | 3 | 2021-05-16T21:13:22.000Z | 2022-01-23T08:47:48.000Z | extra/convertBAMtoPILFER.py | MartaLoBalastegui/XICRA | 74a7e74379c7e1b3fc1360d2c609994e884ee37a | [
"MIT"
] | 16 | 2021-03-11T10:51:25.000Z | 2022-03-12T01:02:00.000Z | extra/convertBAMtoPILFER.py | MartaLoBalastegui/XICRA | 74a7e74379c7e1b3fc1360d2c609994e884ee37a | [
"MIT"
] | 3 | 2021-03-05T10:07:38.000Z | 2022-01-23T08:48:06.000Z | #usr/bin/env python
## useful imports
import time
import io
import os
import re
import sys
from sys import argv
import subprocess
## ARGV
if len (sys.argv) < 5:
print ("\nUsage:")
print ("python3 %s bam_file folder bedtools_bin samtools_bin logfile\n" %os.path.realpath(__file__))
exit()
bam_file = os.path.abspath... | 27.219697 | 138 | 0.680768 |
7ce786042f57d81a5644876d6657fee00934ca96 | 154 | py | Python | day7/main5list.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day7/main5list.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day7/main5list.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | a="Betty Bought a butter the butter was bitter so betty bought a better butter which was not bitter"
v=[a[-1] for a in a.split() if(len(a)%2==0)]
print(v) | 51.333333 | 100 | 0.707792 |
7ce89a8d2a94f66d0921f4dfd7dff6f5d544c025 | 2,727 | py | Python | app/reader.py | lcarnevale/proxy-mqtt2influx | 89b3cd354b465d7451556a2d2ec49ac8688b4f17 | [
"MIT"
] | null | null | null | app/reader.py | lcarnevale/proxy-mqtt2influx | 89b3cd354b465d7451556a2d2ec49ac8688b4f17 | [
"MIT"
] | null | null | null | app/reader.py | lcarnevale/proxy-mqtt2influx | 89b3cd354b465d7451556a2d2ec49ac8688b4f17 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
"""Writer class based on InfluxDB
This implementation does its best to follow the Robert Martin's Clean code guidelines.
The comments follows the Google Python Style Guide:
https://github.com/google/styleguide/blob/gh-pages/pyguide.md
"""
__copyright__ = 'Copyright 2... | 32.464286 | 105 | 0.604694 |
7ce89c46f636fde71ee0a887ac7403a640c90ce5 | 1,781 | py | Python | example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py | DottaPaperella/TALight | 580322c3121c9acde9827f996fd4e39e31d93a6f | [
"MIT"
] | null | null | null | example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py | DottaPaperella/TALight | 580322c3121c9acde9827f996fd4e39e31d93a6f | [
"MIT"
] | null | null | null | example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py | DottaPaperella/TALight | 580322c3121c9acde9827f996fd4e39e31d93a6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from sys import stderr, exit, argv
from random import randrange
#from TALinputs import TALinput
from multilanguage import Env, Lang, TALcolors
# METADATA OF THIS TAL_SERVICE:
problem="tiling_mxn-boards_with_1x2-boards"
service="is_tilable"
args_list = [
('m',int),
('n',int),
('my_co... | 35.62 | 242 | 0.64009 |
7ceab378038506dba92e4b8d3ecd8a07fc74f4a2 | 1,469 | py | Python | tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | 1 | 2020-12-23T12:34:00.000Z | 2020-12-23T12:34:00.000Z | tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | import pytest
from jina.enums import RemoteAccessType
from jina.flow import Flow
from jina.parser import set_pea_parser, set_pod_parser
from jina.peapods.pods import BasePod
from jina.peapods.runtimes.remote.ssh import SSHRuntime
from jina.proto import jina_pb2
| 32.644444 | 96 | 0.701157 |
7ceacff0df961aecfe4df023a30c5731860a145d | 181 | py | Python | waio/factory/models/basic.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 24 | 2021-11-08T13:37:05.000Z | 2022-03-24T12:49:54.000Z | waio/factory/models/basic.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 1 | 2022-01-19T03:11:58.000Z | 2022-01-19T03:13:30.000Z | waio/factory/models/basic.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 5 | 2021-11-11T04:11:12.000Z | 2022-02-15T10:41:58.000Z | from dataclasses import dataclass
| 12.066667 | 33 | 0.740331 |
7cec971c07d5ed98dc62f84b80e44472db92d7d3 | 531 | py | Python | Uber/validExpression.py | Nithanaroy/random_scripts | 908e539e2b7050a09e03b4fc0d2621b23733d65a | [
"MIT"
] | null | null | null | Uber/validExpression.py | Nithanaroy/random_scripts | 908e539e2b7050a09e03b4fc0d2621b23733d65a | [
"MIT"
] | null | null | null | Uber/validExpression.py | Nithanaroy/random_scripts | 908e539e2b7050a09e03b4fc0d2621b23733d65a | [
"MIT"
] | null | null | null |
if __name__ =='__main__':
print main('{(abc})')
| 25.285714 | 57 | 0.551789 |
7cee12e1d9ee7123f1ed98d591b1f1a9ee9c89f2 | 10,845 | py | Python | sgains/tool.py | KrasnitzLab/sgains | 501c42bfdad4542725f00ca8199983eccf8c0b3f | [
"MIT"
] | 1 | 2017-09-08T05:09:59.000Z | 2017-09-08T05:09:59.000Z | sgains/tool.py | KrasnitzLab/sgains | 501c42bfdad4542725f00ca8199983eccf8c0b3f | [
"MIT"
] | 35 | 2017-07-31T04:13:40.000Z | 2019-09-06T13:32:17.000Z | sgains/tool.py | KrasnitzLab/sgains | 501c42bfdad4542725f00ca8199983eccf8c0b3f | [
"MIT"
] | 3 | 2017-09-08T05:10:34.000Z | 2019-06-11T09:06:41.000Z | import os
import sys
from copy import deepcopy
import traceback
import functools
from collections import defaultdict
import yaml
from argparse import ArgumentParser,\
RawDescriptionHelpFormatter, ArgumentDefaultsHelpFormatter
from sgains.configuration.parser import SgainsValidator, Config
from sgains.configurat... | 30.635593 | 79 | 0.616136 |
7cee8f95a77e8d2ded7b9467b41b6c25c5fb7cdf | 3,135 | py | Python | lib/modeling/VGG16.py | rsumner31/Detectron | 021685d42f7e8ac097e2bcf79fecb645f211378e | [
"Apache-2.0"
] | 429 | 2018-04-28T00:01:57.000Z | 2021-12-18T12:53:22.000Z | lib/modeling/VGG16.py | absorbguo/Detectron | 2f8161edc3092b0382cab535c977a180a8b3cc4d | [
"Apache-2.0"
] | 54 | 2018-12-26T13:04:32.000Z | 2020-04-24T04:09:30.000Z | lib/modeling/VGG16.py | absorbguo/Detectron | 2f8161edc3092b0382cab535c977a180a8b3cc4d | [
"Apache-2.0"
] | 96 | 2018-12-24T05:12:36.000Z | 2021-04-23T15:51:21.000Z | # Copyright (c) 2017-present, Facebook, 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... | 41.25 | 78 | 0.648166 |
7ceed4646921c1456f0b28f435da564f3dae7896 | 2,913 | py | Python | setup.py | yangjing1127/xmind2testcase | 49a581159a0d8e028f89939777399493662df111 | [
"MIT"
] | 537 | 2018-12-26T03:02:54.000Z | 2022-03-30T17:41:53.000Z | setup.py | yangjing1127/xmind2testcase | 49a581159a0d8e028f89939777399493662df111 | [
"MIT"
] | 49 | 2019-01-08T09:59:15.000Z | 2022-03-30T00:58:47.000Z | setup.py | yangjing1127/xmind2testcase | 49a581159a0d8e028f89939777399493662df111 | [
"MIT"
] | 190 | 2018-12-29T07:09:48.000Z | 2022-03-31T01:55:02.000Z | #!/usr/env/bin python
# -*- coding: utf-8 -*-
import io
import os
import sys
from shutil import rmtree
from setuptools import setup, find_packages, Command
about = {}
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'xmind2testcase', '__about__.py'), encoding='utf-8') as f: # custom
... | 28.281553 | 100 | 0.604875 |
7cef0095a10852826052b744b28e1db78c985b8d | 2,670 | py | Python | skultrafast/styles.py | Tillsten/skultrafast | 778eaf1539b6d85f21ac53b011472605673ef7e8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T15:57:51.000Z | 2021-11-15T02:00:33.000Z | skultrafast/styles.py | cZahn/skultrafast | 23572ba9ea32238f34a8a15390fb572ecd8bc6fa | [
"BSD-3-Clause"
] | 1 | 2019-01-17T11:56:38.000Z | 2019-07-11T15:30:58.000Z | skultrafast/styles.py | cZahn/skultrafast | 23572ba9ea32238f34a8a15390fb572ecd8bc6fa | [
"BSD-3-Clause"
] | 6 | 2018-11-08T14:11:06.000Z | 2021-09-01T14:53:02.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 17 21:33:24 2015
@author: Tillsten
"""
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
tableau20 = [(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120),
(44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 15... | 37.083333 | 83 | 0.522846 |
7cef6acdfa1f2191c94118bdb071a657a3a738d4 | 3,634 | py | Python | src/oci/devops/models/github_build_run_source.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-09-10T22:09:45.000Z | 2021-12-24T17:00:07.000Z | src/oci/devops/models/github_build_run_source.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/devops/models/github_build_run_source.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 33.648148 | 245 | 0.660704 |
7cf24c69a41740779ba55ee7c2d11c15c8feec7e | 12,133 | py | Python | aiida_fleur/tests/tools/test_common_fleur_wf.py | anoopkcn/aiida-fleur | 5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_common_fleur_wf.py | anoopkcn/aiida-fleur | 5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_common_fleur_wf.py | anoopkcn/aiida-fleur | 5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import pytest
import os
# is_code
def test_get_inputs_fleur():
'''
Tests if get_inputs_fleur assembles inputs correctly.
Note it is the work of FleurCalculation
to check if input types are correct i.e. 'code' is a Fleur code etc.
'''
from aiida_fleur.to... | 43.332143 | 164 | 0.597461 |
7cf2ae07e37425db960a133be2b5c330c6ba9916 | 36,957 | py | Python | src/probnum/random_variables/_random_variable.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | src/probnum/random_variables/_random_variable.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | 2 | 2020-12-28T19:37:16.000Z | 2020-12-28T19:37:31.000Z | src/probnum/random_variables/_random_variable.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | """
Random Variables.
This module implements random variables. Random variables are the main in- and outputs
of probabilistic numerical methods.
"""
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union
import numpy as np
from probnum import utils as _utils
from probnum.type import (
... | 34.668856 | 107 | 0.596152 |
7cf38c52d649f28843e5da3730409c34a52dc82f | 8,026 | py | Python | platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | 2 | 2020-07-25T05:03:06.000Z | 2020-11-04T04:55:57.000Z | # Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.362903 | 75 | 0.705457 |
7cf46d5f8307606187101597e795384399b48446 | 804 | py | Python | vote/migrations/0005_auto_20210204_1900.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | 2 | 2021-02-24T21:57:50.000Z | 2021-03-15T08:44:09.000Z | vote/migrations/0005_auto_20210204_1900.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | null | null | null | vote/migrations/0005_auto_20210204_1900.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-02-05 00:00
import django.contrib.postgres.fields
from django.db import migrations, models
| 32.16 | 163 | 0.655473 |
7cf5ba1b8968aa69e6a1b87247368728da9bf55b | 11,847 | py | Python | tools/wasm-sourcemap.py | ngzhian/emscripten | 94b1555a09f869d65354a2033da724ce77a43106 | [
"MIT"
] | 1 | 2019-08-16T23:42:09.000Z | 2019-08-16T23:42:09.000Z | tools/wasm-sourcemap.py | ngzhian/emscripten | 94b1555a09f869d65354a2033da724ce77a43106 | [
"MIT"
] | null | null | null | tools/wasm-sourcemap.py | ngzhian/emscripten | 94b1555a09f869d65354a2033da724ce77a43106 | [
"MIT"
] | 1 | 2019-09-26T20:05:46.000Z | 2019-09-26T20:05:46.000Z | #!/usr/bin/env python
# Copyright 2018 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
"""Utility tools that extracts DWARF informatio... | 35.258929 | 171 | 0.653668 |
7cf6644c8071f50f1d98ec6acd6e40c622a3ce59 | 12,540 | py | Python | pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ENTERASYS-NAC-APPLIANCE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-NAC-APPLIANCE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python versio... | 145.813953 | 1,653 | 0.817384 |
7cf7d0d22a5ee01c1d25faa33b9b8f99ef2f0210 | 3,300 | py | Python | Unsupervised/pix2pixHD/extract_frames.py | Kebniss/AutoDetect | 44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8 | [
"MIT"
] | 1 | 2019-07-25T02:16:32.000Z | 2019-07-25T02:16:32.000Z | Unsupervised/pix2pixHD/extract_frames.py | Kebniss/AutoDetect | 44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8 | [
"MIT"
] | null | null | null | Unsupervised/pix2pixHD/extract_frames.py | Kebniss/AutoDetect | 44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8 | [
"MIT"
] | null | null | null | import os
import cv2
import argparse
from utils import *
from tqdm import tqdm
from glob import glob
from pathlib import Path
parser = argparse.ArgumentParser(
description='build a "frame dataset" from a given video')
parser.add_argument('-input', dest="input", required=True,
help='''Path to a single video o... | 39.285714 | 89 | 0.677879 |
7cf872b37fe89e4b5c0f3a287b43439b1d433523 | 2,923 | py | Python | burp-filter-options/filter-options.py | parsiya/Parsia-Code | e75bd9f7f295e6d8e584de67f90dd02cb75ae915 | [
"MIT"
] | 21 | 2018-09-10T03:09:17.000Z | 2022-02-07T09:20:03.000Z | burp-filter-options/filter-options.py | parsiya/Parsia-Code | e75bd9f7f295e6d8e584de67f90dd02cb75ae915 | [
"MIT"
] | 1 | 2019-11-10T21:17:23.000Z | 2020-01-19T04:36:19.000Z | burp-filter-options/filter-options.py | parsiya/Parsia-Code | e75bd9f7f295e6d8e584de67f90dd02cb75ae915 | [
"MIT"
] | 8 | 2019-10-11T23:29:58.000Z | 2021-05-26T12:11:43.000Z | # modified "example traffic redirector"
# https://raw.githubusercontent.com/PortSwigger/example-traffic-redirector/master/python/TrafficRedirector.py
# Idea: https://github.com/pajswigger/filter-options/blob/master/src/filter-options.kt
# Usage: Put both files in a directory and add filter-options.py to Burp. Nees ... | 31.095745 | 121 | 0.659254 |
7cf8865345a71c46f4e1edec308e018d877fedb9 | 11,128 | py | Python | AppServer/google/appengine/tools/devappserver2/login.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/google/appengine/tools/devappserver2/login.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/google/appengine/tools/devappserver2/login.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | #!/usr/bin/env python
#
# Copyright 2007 Google 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 o... | 31.885387 | 80 | 0.689162 |
7cf8d4321937161cb10d000e0dbd87e721b04ad3 | 7,060 | py | Python | sdks/python/apache_beam/runners/portability/job_server.py | noah-goodrich/beam | 5a851b734f53206c20efe08d93d15760bbc15b0c | [
"Apache-2.0"
] | 1 | 2019-12-05T04:36:46.000Z | 2019-12-05T04:36:46.000Z | sdks/python/apache_beam/runners/portability/job_server.py | noah-goodrich/beam | 5a851b734f53206c20efe08d93d15760bbc15b0c | [
"Apache-2.0"
] | 14 | 2020-02-12T22:20:41.000Z | 2021-11-09T19:41:23.000Z | sdks/python/apache_beam/runners/portability/job_server.py | violalyu/beam | dd605e568d70b1a6ebea60c15b2aec3e240f3914 | [
"Apache-2.0"
] | 1 | 2021-03-21T23:28:23.000Z | 2021-03-21T23:28:23.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 33.619048 | 79 | 0.703258 |
7cf950bf294a91d7beefe8c59885eaed2c328e0e | 14,856 | py | Python | sympy/printing/pycode.py | tachycline/sympy | abf6fec12012852c7e6fae38461da9723cadc8b9 | [
"BSD-3-Clause"
] | null | null | null | sympy/printing/pycode.py | tachycline/sympy | abf6fec12012852c7e6fae38461da9723cadc8b9 | [
"BSD-3-Clause"
] | null | null | null | sympy/printing/pycode.py | tachycline/sympy | abf6fec12012852c7e6fae38461da9723cadc8b9 | [
"BSD-3-Clause"
] | null | null | null | from collections import defaultdict
from functools import wraps
from itertools import chain
from sympy.core import sympify
from .precedence import precedence
from .codeprinter import CodePrinter
_kw_py2and3 = {
'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif',
'else', 'except', 'finall... | 34.388889 | 119 | 0.601642 |