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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9610da1cf47afbf95b11be72f8e2780125e49449 | 27,544 | py | Python | functions/asmm_xml.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | functions/asmm_xml.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | 2 | 2015-06-12T09:28:29.000Z | 2015-06-12T09:34:16.000Z | functions/asmm_xml.py | eufarn7sp/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | import datetime
import xml.dom.minidom
import logging
from PyQt5 import QtCore, QtWidgets
from functions.button_functions import add_read
NAMESPACE_URI = 'http://www.eufar.net/ASMM'
| 46.37037 | 138 | 0.647255 |
9610eaf838ce8599d05cfd89f28acb8943b4bb46 | 191 | py | Python | github/models.py | pyprism/Hiren-Git-Commit-Reminder | 253ba078f63cc9bf3f39a5b735a783c4846b5ba7 | [
"MIT"
] | null | null | null | github/models.py | pyprism/Hiren-Git-Commit-Reminder | 253ba078f63cc9bf3f39a5b735a783c4846b5ba7 | [
"MIT"
] | null | null | null | github/models.py | pyprism/Hiren-Git-Commit-Reminder | 253ba078f63cc9bf3f39a5b735a783c4846b5ba7 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 19.1 | 51 | 0.759162 |
961296a2dbd17acbbeca5341d04b5200b3df15a3 | 4,973 | py | Python | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2017-03-28T06:41:51.000Z | 2017-03-28T06:41:51.000Z | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | null | null | null | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2016-12-13T21:08:58.000Z | 2016-12-13T21:08:58.000Z | #!/usr/bin/python
#
# Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1)
# All Rights Reserved.
#
# You may only modify and redistribute this under the terms of any of the
# following licenses(2): Mozilla Public License, V1.1, GNU General
# Public License, V2.0, GNU Lesser Gener... | 31.474684 | 83 | 0.646893 |
961374e180229cec23558c1850e6a56b8464ae8b | 63,005 | py | Python | pyCEvNS/flux.py | athompson-tamu/pyCEvNS | feb3f83c706e6604608eae83c50ac79ced9140bf | [
"MIT"
] | null | null | null | pyCEvNS/flux.py | athompson-tamu/pyCEvNS | feb3f83c706e6604608eae83c50ac79ced9140bf | [
"MIT"
] | null | null | null | pyCEvNS/flux.py | athompson-tamu/pyCEvNS | feb3f83c706e6604608eae83c50ac79ced9140bf | [
"MIT"
] | null | null | null | """
flux related class and functions
"""
from scipy.integrate import quad
import pandas as pd
from .helper import LinearInterp, polar_to_cartesian, lorentz_boost, lorentz_matrix
from .oscillation import survival_solar
from .parameters import *
| 48.09542 | 163 | 0.53164 |
9613fedd3e0d7142ca8e288d57dc930f5c14893f | 7,252 | py | Python | enso/contrib/minimessages.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 7 | 2015-09-19T20:57:32.000Z | 2020-12-31T16:34:42.000Z | enso/contrib/minimessages.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 21 | 2015-11-03T23:15:25.000Z | 2018-10-11T21:57:45.000Z | enso/contrib/minimessages.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 4 | 2015-09-15T17:18:00.000Z | 2021-06-16T07:06:06.000Z | # Author : Pavel Vitis "blackdaemon"
# Email : blackdaemon@seznam.cz
#
# Copyright (c) 2010, Pavel Vitis <blackdaemon@seznam.cz>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistri... | 34.533333 | 90 | 0.59818 |
9616192a13cde5beffe85342bdb0bcbe725c8e0a | 3,597 | py | Python | article_curation/test_article_curation.py | mrkarezina/graph-recommendation-api | 8ed3895f7816b095ec27f3c1d972bf5b8e163b34 | [
"MIT"
] | null | null | null | article_curation/test_article_curation.py | mrkarezina/graph-recommendation-api | 8ed3895f7816b095ec27f3c1d972bf5b8e163b34 | [
"MIT"
] | null | null | null | article_curation/test_article_curation.py | mrkarezina/graph-recommendation-api | 8ed3895f7816b095ec27f3c1d972bf5b8e163b34 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import Mock
import json
from processor import scrape_article
import main
| 34.586538 | 186 | 0.633584 |
9616936f76e77083ea419e018de9e5eaec39224e | 4,715 | py | Python | test.py | chdre/noise-randomized | c803fd6c6fd641a0b1c0f4880920584a647587bc | [
"MIT"
] | null | null | null | test.py | chdre/noise-randomized | c803fd6c6fd641a0b1c0f4880920584a647587bc | [
"MIT"
] | null | null | null | test.py | chdre/noise-randomized | c803fd6c6fd641a0b1c0f4880920584a647587bc | [
"MIT"
] | 3 | 2021-10-05T09:01:51.000Z | 2021-10-05T09:37:06.000Z | import unittest
if __name__ == '__main__':
unittest.main()
| 32.972028 | 79 | 0.487381 |
961a0eab590ae86fe03daebff4911d080dc4f38a | 3,829 | py | Python | pipelines/controllers/datasets.py | platiagro/pipeline-generator | d84b9512c39970c469154eaed56f08780ebf21eb | [
"Apache-2.0"
] | 1 | 2020-05-19T14:57:55.000Z | 2020-05-19T14:57:55.000Z | pipelines/controllers/datasets.py | platiagro/pipelines | d84b9512c39970c469154eaed56f08780ebf21eb | [
"Apache-2.0"
] | 93 | 2020-04-25T21:10:49.000Z | 2020-12-15T18:25:49.000Z | pipelines/controllers/datasets.py | platiagro/pipelines | d84b9512c39970c469154eaed56f08780ebf21eb | [
"Apache-2.0"
] | 6 | 2019-09-05T12:37:59.000Z | 2020-08-08T00:08:25.000Z | # -*- coding: utf-8 -*-
import platiagro
import pandas as pd
from werkzeug.exceptions import NotFound
from pipelines.database import db_session
from pipelines.models import Operator
from pipelines.models.utils import raise_if_experiment_does_not_exist
def get_dataset_name(experiment_id, operator_id,):
"""Retrie... | 32.176471 | 91 | 0.58527 |
961b41ac7e12348d2cd9bb21a06c9a3f33d3b4af | 4,545 | py | Python | tests/test_message.py | jfkinslow/flask-mailing | dda99214b783b60fabc7dfad209fff4438eaf61c | [
"MIT"
] | null | null | null | tests/test_message.py | jfkinslow/flask-mailing | dda99214b783b60fabc7dfad209fff4438eaf61c | [
"MIT"
] | null | null | null | tests/test_message.py | jfkinslow/flask-mailing | dda99214b783b60fabc7dfad209fff4438eaf61c | [
"MIT"
] | null | null | null | import pytest
from flask_mailing.schemas import Message, MultipartSubtypeEnum
from flask_mailing.msg import MailMsg
import os
CONTENT = "file test content"
| 24.175532 | 105 | 0.59824 |
961ccfb0c6fb46c865492bed7af363f36b450b4b | 1,239 | py | Python | utils/checks.py | JDJGInc/JDBot | 057bcc5c80452c9282606e9bf66219e614aac5e1 | [
"MIT"
] | 12 | 2021-01-09T06:17:51.000Z | 2022-03-18T06:30:15.000Z | utils/checks.py | JDJGInc/JDBot | 057bcc5c80452c9282606e9bf66219e614aac5e1 | [
"MIT"
] | 21 | 2021-03-21T16:43:45.000Z | 2022-02-01T16:02:26.000Z | utils/checks.py | JDJGInc/JDBot | 057bcc5c80452c9282606e9bf66219e614aac5e1 | [
"MIT"
] | 25 | 2021-03-21T16:33:56.000Z | 2022-03-12T16:52:25.000Z | import discord
| 27.533333 | 158 | 0.742534 |
961ceec2cadcdefd7771e879e51fe43976210c30 | 46,670 | py | Python | scripts/mgear/rigbits/eye_rigger.py | stormstudios/rigbits | 37ce738952a3cd31ba8a18b8989f5ea491d03bf0 | [
"MIT"
] | 1 | 2020-08-11T01:17:19.000Z | 2020-08-11T01:17:19.000Z | scripts/mgear/rigbits/eye_rigger.py | stormstudios/rigbits | 37ce738952a3cd31ba8a18b8989f5ea491d03bf0 | [
"MIT"
] | null | null | null | scripts/mgear/rigbits/eye_rigger.py | stormstudios/rigbits | 37ce738952a3cd31ba8a18b8989f5ea491d03bf0 | [
"MIT"
] | null | null | null | """Rigbits eye rigger tool"""
import json
import traceback
from functools import partial
import mgear.core.pyqt as gqt
import pymel.core as pm
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
from mgear.core import meshNavigation, curve, applyop, node, primitive, icon
from mgear.core import transform, ... | 38.698176 | 79 | 0.541526 |
961d4ae687b3642af37cc358422318fe31255362 | 3,260 | py | Python | Python/expert/interact_with_linux/solution.py | fpichl/ProgrammingTasks | da494022455dd77de1c99a6c6e4962616e9764e6 | [
"Unlicense"
] | 2 | 2018-10-18T16:35:56.000Z | 2019-03-07T06:16:18.000Z | Python/expert/interact_with_linux/solution.py | fpichl/ProgrammingTasks | da494022455dd77de1c99a6c6e4962616e9764e6 | [
"Unlicense"
] | 2 | 2019-11-13T09:25:54.000Z | 2021-08-19T08:23:32.000Z | Python/expert/interact_with_linux/solution.py | fpichl/ProgrammingTasks | da494022455dd77de1c99a6c6e4962616e9764e6 | [
"Unlicense"
] | 3 | 2019-05-22T12:20:05.000Z | 2019-08-30T12:57:56.000Z | #!/usr/bin/env python3
import os
import shutil
import sys
import pathlib
import logging
# I will NEVER EVER use subproccess again
# At least not for something like Popen
try:
from sh import wget
except Exception:
print('[!] Just install sh right now!(pip install --user sh)')
sys.exit(0)
# Dumb Python2 sup... | 33.958333 | 91 | 0.674233 |
961e5e18627878c209a335c0392cc2286e8803ad | 323 | py | Python | Asap-3.8.4/Projects/NanoparticleMC/misc/viewatomsmc.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Projects/NanoparticleMC/misc/viewatomsmc.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Projects/NanoparticleMC/misc/viewatomsmc.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | import ase
from ase import Atoms
from ase.atom import Atom
import sys
from ase.visualize import view
import pickle
f = open(sys.argv[1],'r') #The .amc file
p = pickle.load(f)
positions = p['atomspositions']
atms = Atoms()
for p0 in positions:
a = Atom('Au',position=p0)
atms.append(a)
atms.center(vacuum=2)
view(atm... | 17 | 40 | 0.721362 |
961e930045b962f6aec047adbd1d0fd8f14a977a | 453 | py | Python | bot_settings_example.py | nikmedoed/BalanceBot | 731e6d09d71bbf8d7802d0b42a570947343d3ce6 | [
"MIT"
] | null | null | null | bot_settings_example.py | nikmedoed/BalanceBot | 731e6d09d71bbf8d7802d0b42a570947343d3ce6 | [
"MIT"
] | null | null | null | bot_settings_example.py | nikmedoed/BalanceBot | 731e6d09d71bbf8d7802d0b42a570947343d3ce6 | [
"MIT"
] | null | null | null | # dev
TELEGRAM_TOKEN = "..."
RELATIVE_CHAT_IDS = [ "...", '...']
TEXT = {
"bot_info": (', , .\n\n'
' , '),
"get_link": " ",
"new_room": " \n%s",
"nothing_to_change": " "
} | 30.2 | 107 | 0.655629 |
961f8e0ded1739e7f84175c2bdac8bbf64966432 | 8,270 | py | Python | test/xslt/borrowed/sm_20000304.py | zepheira/amara | d3ffe07d6e2266b34d72b012a82d572c8edbf1e7 | [
"Apache-2.0"
] | 6 | 2015-01-30T03:50:36.000Z | 2022-03-20T16:09:58.000Z | test/xslt/borrowed/sm_20000304.py | zepheira/amara | d3ffe07d6e2266b34d72b012a82d572c8edbf1e7 | [
"Apache-2.0"
] | 2 | 2015-02-04T17:18:47.000Z | 2019-09-27T23:39:52.000Z | test/xslt/borrowed/sm_20000304.py | zepheira/amara | d3ffe07d6e2266b34d72b012a82d572c8edbf1e7 | [
"Apache-2.0"
] | 6 | 2015-02-04T16:16:18.000Z | 2019-10-30T20:07:48.000Z | ########################################################################
# test/xslt/sm20000304.py
# Example from Steve Muench <smuench@us.oracle.com>
# to Jon Smirl <jonsmirl@mediaone.net>
# on 4 March 2000
"""
From: "Steve Muench" <smuench@us.oracle.com>
To: <xsl-list@mulberrytech.com>
Subject: Re: SVG charts and gr... | 32.687747 | 143 | 0.606167 |
961fc04d55a2472f650b925e3c30b289d25af832 | 123 | py | Python | model-server/config.py | campos537/deep-fashion-system | 1de31dd6260cc967e1832cff63ae7e537a3a4e9d | [
"Unlicense"
] | 1 | 2021-04-06T00:43:26.000Z | 2021-04-06T00:43:26.000Z | model-server/config.py | campos537/deep-fashion-system | 1de31dd6260cc967e1832cff63ae7e537a3a4e9d | [
"Unlicense"
] | null | null | null | model-server/config.py | campos537/deep-fashion-system | 1de31dd6260cc967e1832cff63ae7e537a3a4e9d | [
"Unlicense"
] | null | null | null | import json
| 20.5 | 42 | 0.707317 |
9623258b0aadd8546b69b628ca22ab142e622094 | 1,642 | py | Python | pmfp/entrypoint/grpc/build_/build_pb_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 4 | 2017-09-15T03:38:56.000Z | 2019-12-16T02:03:14.000Z | pmfp/entrypoint/grpc/build_/build_pb_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 1 | 2021-04-27T10:51:42.000Z | 2021-04-27T10:51:42.000Z | pmfp/entrypoint/grpc/build_/build_pb_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | null | null | null | """go."""
import warnings
from typing import List, Optional
from pathlib import Path
from pmfp.utils.run_command_utils import run
def build_pb_go(serv_file: str, includes: List[str], to: str,
source_relative: bool, cwd: Path, files: Optional[List[str]] = None, **kwargs: str) -> None:
"""grpcproto... | 32.84 | 108 | 0.626066 |
962392189f97293112a65685c141235eaa945995 | 369 | py | Python | instapp/migrations/0003_auto_20190522_0007.py | imekenye/Instagram-clone | 19c895a7bc4d5137f8df6eab7ade3920dfc3eb39 | [
"Unlicense"
] | null | null | null | instapp/migrations/0003_auto_20190522_0007.py | imekenye/Instagram-clone | 19c895a7bc4d5137f8df6eab7ade3920dfc3eb39 | [
"Unlicense"
] | 13 | 2020-02-12T00:19:23.000Z | 2022-03-11T23:47:08.000Z | instapp/migrations/0003_auto_20190522_0007.py | imekenye/Instagram-clone | 19c895a7bc4d5137f8df6eab7ade3920dfc3eb39 | [
"Unlicense"
] | 1 | 2019-06-07T10:01:06.000Z | 2019-06-07T10:01:06.000Z | # Generated by Django 2.2.1 on 2019-05-22 00:07
from django.db import migrations
| 19.421053 | 47 | 0.590786 |
9624816b19d6ea779fa1433613690a1826c3af03 | 4,007 | py | Python | app/api/v1_0/users.py | daichi-yoshikawa/flask-boilerplate | 2a136eb713a698955dc78ce07364ac333806e6da | [
"MIT"
] | 1 | 2021-01-04T21:25:24.000Z | 2021-01-04T21:25:24.000Z | app/api/v1_0/users.py | daichi-yoshikawa/flask-boilerplate | 2a136eb713a698955dc78ce07364ac333806e6da | [
"MIT"
] | null | null | null | app/api/v1_0/users.py | daichi-yoshikawa/flask-boilerplate | 2a136eb713a698955dc78ce07364ac333806e6da | [
"MIT"
] | null | null | null | import json
import logging
from flask import jsonify, make_response, request
from flask_jwt_extended import jwt_required
from flask_restful import Resource
from http import HTTPStatus
from marshmallow import ValidationError, Schema
from werkzeug.security import generate_password_hash
from app.models import db
from ap... | 30.356061 | 82 | 0.660344 |
9625303d504fb10bd57521a4e704cb6335319f31 | 984 | py | Python | src/count_targets.py | kahvel/MAProject | 1c17d0c3fde6d9acc7dd3861f926e8af0ddac222 | [
"MIT"
] | null | null | null | src/count_targets.py | kahvel/MAProject | 1c17d0c3fde6d9acc7dd3861f926e8af0ddac222 | [
"MIT"
] | null | null | null | src/count_targets.py | kahvel/MAProject | 1c17d0c3fde6d9acc7dd3861f926e8af0ddac222 | [
"MIT"
] | null | null | null | from main import readData, getTrueLabels, binariseLabels, removePacketsAfterChange
label_data = list()
label_data.append(readData("..\\data\\test5_targets_1.csv"))
label_data.append(readData("..\\data\\test5_targets_2.csv"))
label_data.append(readData("..\\data\\test5_targets_3.csv"))
labels = [getTrueLabels(label) ... | 41 | 132 | 0.727642 |
962533cca6da11f2ce0eaecf148aa3437a906a76 | 14,183 | py | Python | src/imagine/goal_sampler.py | jordyantunes/Imagine | 783cedaa53635b21e18ef41ab1524d56e368d120 | [
"MIT"
] | 20 | 2020-11-06T10:54:08.000Z | 2022-02-24T15:23:31.000Z | src/imagine/goal_sampler.py | jordyantunes/Imagine | 783cedaa53635b21e18ef41ab1524d56e368d120 | [
"MIT"
] | null | null | null | src/imagine/goal_sampler.py | jordyantunes/Imagine | 783cedaa53635b21e18ef41ab1524d56e368d120 | [
"MIT"
] | 4 | 2020-11-17T17:00:02.000Z | 2021-07-08T22:51:14.000Z | import numpy as np
from mpi4py import MPI
from src.imagine.goal_generator.simple_sentence_generator import SentenceGeneratorHeuristic
from src import logger
| 47.434783 | 140 | 0.585419 |
96262446beb9d081c0d44d53817c947e2939b91a | 711 | py | Python | src/actionsold.py | Grumpy-Old-Tech/WorkshopAssistant | 704e8080e76ba6feabd6eee3e1965439336306ad | [
"MIT"
] | null | null | null | src/actionsold.py | Grumpy-Old-Tech/WorkshopAssistant | 704e8080e76ba6feabd6eee3e1965439336306ad | [
"MIT"
] | null | null | null | src/actionsold.py | Grumpy-Old-Tech/WorkshopAssistant | 704e8080e76ba6feabd6eee3e1965439336306ad | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#This is different from AIY Kit's actions
#Copying and Pasting AIY Kit's actions commands will not work
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from gmusicapi import Mobileclient
from googletrans import Translator
from gtts import gTTS
import req... | 19.75 | 61 | 0.819972 |
96275facff37f1002cea2272aef725bd9db2358a | 2,358 | py | Python | openpype/tools/settings/settings/widgets/window.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/tools/settings/settings/widgets/window.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/tools/settings/settings/widgets/window.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | from Qt import QtWidgets, QtGui
from .categories import (
CategoryState,
SystemWidget,
ProjectWidget
)
from .widgets import ShadowWidget
from .. import style
| 29.111111 | 72 | 0.656064 |
824894a056e2da4cc1ec1c9dd0d07d94594ced73 | 6,093 | py | Python | azkaban_zip_uploader/tests/lambda_handler_tests.py | uk-gov-mirror/dwp.aws-azkaban | fa69ddf6e18fccba1fb96f6dd7a234b9441e96da | [
"0BSD"
] | null | null | null | azkaban_zip_uploader/tests/lambda_handler_tests.py | uk-gov-mirror/dwp.aws-azkaban | fa69ddf6e18fccba1fb96f6dd7a234b9441e96da | [
"0BSD"
] | null | null | null | azkaban_zip_uploader/tests/lambda_handler_tests.py | uk-gov-mirror/dwp.aws-azkaban | fa69ddf6e18fccba1fb96f6dd7a234b9441e96da | [
"0BSD"
] | null | null | null | import lambda_handler
from unittest import TestCase
from mock import call, patch, Mock
from datetime import datetime
import boto3
import json
from botocore.stub import Stubber
import urllib3
mock_s3_client = boto3.client('s3')
s3_stubber = Stubber(mock_s3_client)
list_objects_response = {
'IsTruncated': False,
... | 35.841176 | 129 | 0.678976 |
8249af75d4def2ae40ae7a6a262676d0c39c2b63 | 2,189 | py | Python | cripts/usernames/username.py | lakiw/cripts | 43f62891a3724e1ec60629887d97c421fb302163 | [
"MIT"
] | 2 | 2017-04-06T12:26:11.000Z | 2018-11-05T19:17:15.000Z | cripts/usernames/username.py | lakiw/cripts | 43f62891a3724e1ec60629887d97c421fb302163 | [
"MIT"
] | 9 | 2016-09-28T10:19:10.000Z | 2017-02-24T17:58:43.000Z | cripts/usernames/username.py | lakiw/cripts | 43f62891a3724e1ec60629887d97c421fb302163 | [
"MIT"
] | null | null | null | import uuid
from mongoengine import Document, StringField, ListField, UUIDField
from django.conf import settings
from cripts.core.cripts_mongoengine import CriptsBaseAttributes, CriptsSourceDocument
from cripts.core.cripts_mongoengine import CriptsActionsDocument
| 39.8 | 145 | 0.516674 |
824a4f6bf20408ed367c7e9a67c9b62aea2ab1c0 | 7,611 | py | Python | sweetpea/tests/test_encoding_diagram.py | anniecherk/sweetpea-py | 23dbad99a9213ff764ec207b456cf5d002707fd0 | [
"MIT"
] | 1 | 2018-05-06T03:54:06.000Z | 2018-05-06T03:54:06.000Z | sweetpea/tests/test_encoding_diagram.py | anniecherk/sweetpea-py | 23dbad99a9213ff764ec207b456cf5d002707fd0 | [
"MIT"
] | 5 | 2018-09-18T02:15:17.000Z | 2018-12-05T20:02:24.000Z | sweetpea/tests/test_encoding_diagram.py | anniecherk/sweetpea-py | 23dbad99a9213ff764ec207b456cf5d002707fd0 | [
"MIT"
] | null | null | null | import pytest
import operator as op
from sweetpea import fully_cross_block
from sweetpea.primitives import Factor, DerivedLevel, WithinTrial, Transition, Window
from sweetpea.encoding_diagram import __generate_encoding_diagram
color = Factor("color", ["red", "blue"])
text = Factor("text", ["red", "blue"])
con_lev... | 48.170886 | 102 | 0.411247 |
824adf7af953a3787b6ad72eca002b2f5fa3b943 | 297 | py | Python | Source_Code/Python/ConductedTest/case_generator.py | fenglwh/instruments | 7886158d1ed97fe6bfe372a55f4fca107e834311 | [
"MIT"
] | null | null | null | Source_Code/Python/ConductedTest/case_generator.py | fenglwh/instruments | 7886158d1ed97fe6bfe372a55f4fca107e834311 | [
"MIT"
] | 3 | 2018-09-21T00:57:21.000Z | 2018-09-21T01:49:40.000Z | Source_Code/Python/ConductedTest/case_generator.py | fenglwh/instruments | 7886158d1ed97fe6bfe372a55f4fca107e834311 | [
"MIT"
] | null | null | null | import json
from labinstrument.SS.CMW500.CMW500_WIFI.CMW500_WIFI import *
if __name__ == '__main__':
new_config_name='emm'
new_config=CMW_WIFI(17).get_parameters()
config=json.load(open('config.txt'))
config[new_config_name]=new_config
json.dump(config,open('config.txt','w')) | 33 | 61 | 0.737374 |
824c8df0f0e68c3c21ba270b931275c591b881bd | 9,957 | py | Python | internal-export-file/export-report-pdf/src/export-report-pdf.py | aakloul/connectors | 171bdc3441b9196ee7aef3f1f9524d8594da6425 | [
"Apache-2.0"
] | null | null | null | internal-export-file/export-report-pdf/src/export-report-pdf.py | aakloul/connectors | 171bdc3441b9196ee7aef3f1f9524d8594da6425 | [
"Apache-2.0"
] | null | null | null | internal-export-file/export-report-pdf/src/export-report-pdf.py | aakloul/connectors | 171bdc3441b9196ee7aef3f1f9524d8594da6425 | [
"Apache-2.0"
] | null | null | null | import yaml
import os
import time
import datetime
from pycti.utils.constants import StixCyberObservableTypes
from weasyprint import HTML
from pycti import OpenCTIConnectorHelper, get_config_variable
from jinja2 import Environment, FileSystemLoader
if __name__ == "__main__":
try:
connector_export_report_p... | 40.149194 | 141 | 0.610425 |
824e54bffa5be7c6d4c645bb089554003a4f25bc | 189 | py | Python | Lyft-Dental/payments/pay/urls.py | Abhik1998/Lyft-sample_project | 3f9a79fb86c7abee713ae37245f5e7971be09139 | [
"MIT"
] | 1 | 2021-01-09T08:42:24.000Z | 2021-01-09T08:42:24.000Z | Lyft-Dental/payments/pay/urls.py | Abhik1998/Lyft-sample_project | 3f9a79fb86c7abee713ae37245f5e7971be09139 | [
"MIT"
] | null | null | null | Lyft-Dental/payments/pay/urls.py | Abhik1998/Lyft-sample_project | 3f9a79fb86c7abee713ae37245f5e7971be09139 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import initiate_payment, callback
urlpatterns = [
path('', initiate_payment, name='pay'),
path('callback/', callback, name='callback'),
]
| 21 | 49 | 0.703704 |
824eb389c2a7eca319848d5d0b764477a524317f | 544 | py | Python | ibmsecurity/isam/base/overview.py | zone-zero/ibmsecurity | 7d3e38104b67e1b267e18a44845cb756a5302c3d | [
"Apache-2.0"
] | 46 | 2017-03-21T21:08:59.000Z | 2022-02-20T22:03:46.000Z | ibmsecurity/isam/base/overview.py | zone-zero/ibmsecurity | 7d3e38104b67e1b267e18a44845cb756a5302c3d | [
"Apache-2.0"
] | 201 | 2017-03-21T21:25:52.000Z | 2022-03-30T21:38:20.000Z | ibmsecurity/isam/base/overview.py | zone-zero/ibmsecurity | 7d3e38104b67e1b267e18a44845cb756a5302c3d | [
"Apache-2.0"
] | 91 | 2017-03-22T16:25:36.000Z | 2022-02-04T04:36:29.000Z | def get(isamAppliance, check_mode=False, force=False):
"""
Retrieve an overview of updates and licensing information
"""
return isamAppliance.invoke_get("Retrieve an overview of updates and licensing information",
"/updates/overview")
def get_licensing_info(isamAppl... | 36.266667 | 96 | 0.647059 |
824f686fbf01dfe1ee2beac723ed207ab4daf6b1 | 1,741 | py | Python | src/sweetrpg_library_api/application/config.py | paulyhedral/sweetrpg-library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | null | null | null | src/sweetrpg_library_api/application/config.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/config.py | sweetrpg/library-api | 0105e963ef4321398aa66d7cb3aa9c2df1c4f375 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = "Paul Schifferer <dm@sweetrpg.com>"
"""
config.py
- settings for the flask application object
"""
import os
import redis
from sweetrpg_library_api.application import constants
| 38.688889 | 115 | 0.708788 |
824f8edece08e9acdf645fa301526e669393eaed | 1,711 | py | Python | frames.py | mppc12/special_subject_tea | 945c10ac5a4f0f2fec2fbd6abeb398074801250f | [
"MIT"
] | null | null | null | frames.py | mppc12/special_subject_tea | 945c10ac5a4f0f2fec2fbd6abeb398074801250f | [
"MIT"
] | null | null | null | frames.py | mppc12/special_subject_tea | 945c10ac5a4f0f2fec2fbd6abeb398074801250f | [
"MIT"
] | null | null | null | import pandas as pd
from group import Group
| 30.017544 | 81 | 0.499123 |
82500b40709a627c2f0699d9319a5f6bbab93bb0 | 20,594 | py | Python | msm/mycroft_skills_manager.py | forslund/mycroft-skills-manager | 825e910a555e1882999647d226a56734a7b75ea4 | [
"Apache-2.0"
] | null | null | null | msm/mycroft_skills_manager.py | forslund/mycroft-skills-manager | 825e910a555e1882999647d226a56734a7b75ea4 | [
"Apache-2.0"
] | null | null | null | msm/mycroft_skills_manager.py | forslund/mycroft-skills-manager | 825e910a555e1882999647d226a56734a7b75ea4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Mycroft AI, Inc.
#
# This file is part of Mycroft Skills Manager
# (see https://github.com/MatthewScholefield/mycroft-light).
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf... | 37.240506 | 79 | 0.609838 |
8251357bc0686fc467cb6924c7a1a83a74692825 | 973 | py | Python | ietf/utils/resources.py | wpjesus/codematch | eee7405259cce9239ea0545a2a1300ee1accfe94 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-09-02T19:53:12.000Z | 2015-09-02T19:53:12.000Z | ietf/utils/resources.py | wpjesus/codematch | eee7405259cce9239ea0545a2a1300ee1accfe94 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/utils/resources.py | wpjesus/codematch | eee7405259cce9239ea0545a2a1300ee1accfe94 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Autogenerated by the mkresources management command 2014-11-13 05:39
from tastypie.resources import ModelResource
from tastypie.fields import CharField
from tastypie.constants import ALL
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from ietf import api
from ... | 27.8 | 70 | 0.70298 |
825208daaf95b00b8d7fda9692bec10b366dcc4a | 1,624 | py | Python | maskrcnn_benchmark/data/datasets/concat_dataset.py | dukebw/maskrcnn-benchmark | f6710844f8cc6b6ce5345fcdc996f05ec04c3df7 | [
"MIT"
] | null | null | null | maskrcnn_benchmark/data/datasets/concat_dataset.py | dukebw/maskrcnn-benchmark | f6710844f8cc6b6ce5345fcdc996f05ec04c3df7 | [
"MIT"
] | null | null | null | maskrcnn_benchmark/data/datasets/concat_dataset.py | dukebw/maskrcnn-benchmark | f6710844f8cc6b6ce5345fcdc996f05ec04c3df7 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import bisect
import numpy as np
from torch.utils.data.dataset import ConcatDataset as _ConcatDataset
| 32.48 | 92 | 0.639163 |
8253b8de6bfcb3c4b2705d87c3cbd83db498bfb5 | 1,129 | py | Python | 153_find_minimum_in_rotated_sorted_array.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 153_find_minimum_in_rotated_sorted_array.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 153_find_minimum_in_rotated_sorted_array.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | # 153. Find Minimum in Rotated Sorted Array
#
# Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
#
# (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
#
# Find the minimum element.
#
# You may assume no duplicate exists in the array.
if __name__ == '__main__':
print ... | 26.255814 | 96 | 0.495128 |
8254c27453fc702429a4cf3b2f9b5c4318d236f1 | 10,452 | py | Python | tests/bridge/test_bridge.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 99 | 2020-12-02T08:40:48.000Z | 2022-03-15T05:21:06.000Z | tests/bridge/test_bridge.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 115 | 2020-12-15T07:15:39.000Z | 2022-03-28T22:21:03.000Z | tests/bridge/test_bridge.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 56 | 2020-12-11T06:50:04.000Z | 2022-02-21T09:17:38.000Z | import pytest
from brownie import (
accounts,
interface,
MockVault,
BadgerBridgeAdapter,
CurveSwapStrategy,
CurveTokenWrapper,
)
from helpers.constants import AddressZero
from helpers.registry import registry
from config.badger_config import badger_config
from scripts.systems.badger_system impo... | 32.560748 | 99 | 0.604191 |
8254e7450b3c4e0f6d891fdfe8c1ab7c064377f8 | 1,423 | py | Python | babylon_server/babylon/config.py | ajponte/babylon | e743f5b3bb5b2eb864247414c4f51962eea9108e | [
"MIT"
] | null | null | null | babylon_server/babylon/config.py | ajponte/babylon | e743f5b3bb5b2eb864247414c4f51962eea9108e | [
"MIT"
] | 2 | 2021-11-08T18:09:22.000Z | 2021-11-09T19:22:33.000Z | babylon_server/babylon/config.py | ajponte/babylon | e743f5b3bb5b2eb864247414c4f51962eea9108e | [
"MIT"
] | null | null | null | import os
| 37.447368 | 185 | 0.709065 |
82559085472d1981739859824315a98440b83c6f | 131 | py | Python | etherscan_py/__init__.py | saltduck/etherscan_py | 1a4ac48733d832d6dc4c8f74fafd7af4c3ce675e | [
"MIT"
] | 6 | 2021-02-20T10:32:36.000Z | 2022-02-10T17:00:00.000Z | etherscan_py/__init__.py | saltduck/etherscan_py | 1a4ac48733d832d6dc4c8f74fafd7af4c3ce675e | [
"MIT"
] | 2 | 2020-11-19T04:39:25.000Z | 2021-03-05T12:40:21.000Z | etherscan_py/__init__.py | saltduck/etherscan_py | 1a4ac48733d832d6dc4c8f74fafd7af4c3ce675e | [
"MIT"
] | 3 | 2021-03-03T18:37:26.000Z | 2021-04-04T14:14:05.000Z | """Top-level package for etherscan-py."""
__author__ = """Julian Koh"""
__email__ = 'juliankohtx@gmail.com'
__version__ = '0.1.0'
| 21.833333 | 41 | 0.687023 |
8258e9ef419949e0cfc0082d25711b7eeaaea221 | 427 | py | Python | realtime/realtime.py | mikerah13/python_samples | c4cd8af3cee99a5199dd2231f182240c35984b97 | [
"MIT"
] | null | null | null | realtime/realtime.py | mikerah13/python_samples | c4cd8af3cee99a5199dd2231f182240c35984b97 | [
"MIT"
] | null | null | null | realtime/realtime.py | mikerah13/python_samples | c4cd8af3cee99a5199dd2231f182240c35984b97 | [
"MIT"
] | null | null | null | from subprocess import Popen, PIPE
if __name__ == "__main__":
run_command("ping google.com")
| 23.722222 | 76 | 0.627635 |
825a7d574135cde50db9d1e2e4cce7b2af3b42c9 | 923 | py | Python | resources/model/agenda.py | diegohideky/climatempoworkshop | edb50eec386d6db5ede9b28192520922ed85c55e | [
"MIT"
] | null | null | null | resources/model/agenda.py | diegohideky/climatempoworkshop | edb50eec386d6db5ede9b28192520922ed85c55e | [
"MIT"
] | null | null | null | resources/model/agenda.py | diegohideky/climatempoworkshop | edb50eec386d6db5ede9b28192520922ed85c55e | [
"MIT"
] | null | null | null | from db_connection import db
| 31.827586 | 82 | 0.658722 |
825b17f2327978290f8d614819c14bd2efe19e58 | 661 | py | Python | data/models.py | sarfarazstark/To-Do-Bot | c2d032fa69e42b651d1c574c276161eceb141981 | [
"Apache-2.0"
] | 4 | 2020-11-21T14:49:00.000Z | 2022-02-21T11:24:17.000Z | data/models.py | sarfarazstark/To-Do-Bot | c2d032fa69e42b651d1c574c276161eceb141981 | [
"Apache-2.0"
] | null | null | null | data/models.py | sarfarazstark/To-Do-Bot | c2d032fa69e42b651d1c574c276161eceb141981 | [
"Apache-2.0"
] | null | null | null | """Database models"""
from sqlalchemy import orm
import sqlalchemy
from .db_session import SqlAlchemyBase
# Task database model
# User database model
| 23.607143 | 73 | 0.753404 |
825b9506a0a8cc2c13904600639147b936af53d7 | 470 | py | Python | graduated_site/migrations/0029_auto_20191218_2109.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0029_auto_20191218_2109.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0029_auto_20191218_2109.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2019-12-18 21:09
import ckeditor.fields
from django.db import migrations
| 23.5 | 99 | 0.651064 |
825c203e1359d9feaff1e4d74ceac39a9987f062 | 4,945 | py | Python | tests/test_obj.py | runapp/M2Crypto | bc3b54758fe73dce86304663084b40fa5d6973c0 | [
"MIT"
] | 58 | 2015-04-20T01:17:37.000Z | 2022-03-31T10:55:13.000Z | tests/test_obj.py | runapp/M2Crypto | bc3b54758fe73dce86304663084b40fa5d6973c0 | [
"MIT"
] | 7 | 2015-07-08T21:59:37.000Z | 2021-04-18T12:27:41.000Z | tests/test_obj.py | runapp/M2Crypto | bc3b54758fe73dce86304663084b40fa5d6973c0 | [
"MIT"
] | 29 | 2015-02-23T17:46:31.000Z | 2022-03-15T09:57:46.000Z | #!/usr/bin/env python
"""Unit tests for M2Crypto.m2 obj_* functions.
"""
from M2Crypto import ASN1, BIO, Rand, X509, m2, six
from tests import unittest
"""
These functions must be cleaned up and moved to some python module
Taken from CA managment code
"""
if __name__ == '__main__':
Rand.load_file('randpool.... | 35.070922 | 81 | 0.591304 |
825ed7b070e5aaac9e764b86a1c9c4bdbe9ea988 | 4,656 | py | Python | new_scraper.py | Baw25/HomeSavvy | e07fb6f78e6f68fb981c92b15df5eef981e4d0ea | [
"MIT"
] | null | null | null | new_scraper.py | Baw25/HomeSavvy | e07fb6f78e6f68fb981c92b15df5eef981e4d0ea | [
"MIT"
] | null | null | null | new_scraper.py | Baw25/HomeSavvy | e07fb6f78e6f68fb981c92b15df5eef981e4d0ea | [
"MIT"
] | null | null | null | #!/bin/python
# -*- coding: utf-8 -*-
# Droplet Name: ubuntu-512mb-sfo2-01
# IP Address: 138.68.252.152
# Username: root
# Password: fbe29a96430704766b5054c4d9
# New Password: Rowing525
# https://medium.com/@hoppy/how-to-test-or-scrape-javascript-rendered-websites-with-python-selenium-a-beginner-step-by-c137892216aa
... | 27.550296 | 131 | 0.649055 |
825ff6c34b7f590f5f9226ffd0a964d853a9a998 | 532 | py | Python | gdsfactory/simulation/gmeep/__init__.py | gdsfactory/gdsfactory | ee761ae0b4429fbec7035bbea5d1e5206c66bea7 | [
"MIT"
] | 42 | 2020-05-25T09:33:45.000Z | 2022-03-29T03:41:19.000Z | gdsfactory/simulation/gmeep/__init__.py | gdsfactory/gdsfactory | ee761ae0b4429fbec7035bbea5d1e5206c66bea7 | [
"MIT"
] | 133 | 2020-05-28T18:29:04.000Z | 2022-03-31T22:21:42.000Z | gdsfactory/simulation/gmeep/__init__.py | gdsfactory/gdsfactory | ee761ae0b4429fbec7035bbea5d1e5206c66bea7 | [
"MIT"
] | 17 | 2020-06-30T07:07:50.000Z | 2022-03-17T15:45:27.000Z | from gdsfactory.simulation.gmeep.add_monitors import add_monitors
from gdsfactory.simulation.gmeep.get_simulation import get_simulation
from gdsfactory.simulation.gmeep.get_transmission_2ports import (
get_transmission_2ports,
plot2D,
plot3D,
)
from gdsfactory.simulation.gmeep.plot_xsection import plot_xsec... | 25.333333 | 69 | 0.757519 |
82602d4942f676f159704b220ea884a45a9e0b4a | 11,212 | py | Python | coreos-ostree-importer/coreos_ostree_importer.py | dustymabe/fedora-coreos-releng-automation | 654a3505f3cc0795fa192c7503858e6fc95a9093 | [
"MIT"
] | null | null | null | coreos-ostree-importer/coreos_ostree_importer.py | dustymabe/fedora-coreos-releng-automation | 654a3505f3cc0795fa192c7503858e6fc95a9093 | [
"MIT"
] | null | null | null | coreos-ostree-importer/coreos_ostree_importer.py | dustymabe/fedora-coreos-releng-automation | 654a3505f3cc0795fa192c7503858e6fc95a9093 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import boto3
import botocore
import fedora_messaging
import fedora_messaging.api
import hashlib
import json
import logging
import os
import subprocess
import sys
import tarfile
import tempfile
import traceback
# Set local logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
... | 37.249169 | 125 | 0.646539 |
8261781129ea227c5b055b630da103ca621c0fbe | 1,837 | py | Python | deepscm/datasets/medical/ukbb.py | mobarakol/deepscm | ffa5f0208c98b1f31e300f28c07c7d51090eda4a | [
"MIT"
] | null | null | null | deepscm/datasets/medical/ukbb.py | mobarakol/deepscm | ffa5f0208c98b1f31e300f28c07c7d51090eda4a | [
"MIT"
] | null | null | null | deepscm/datasets/medical/ukbb.py | mobarakol/deepscm | ffa5f0208c98b1f31e300f28c07c7d51090eda4a | [
"MIT"
] | null | null | null | from torch.utils.data.dataset import Dataset
import numpy as np
import pandas as pd
import os
import nibabel as nib
from nilearn.image import resample_img
import torch
| 41.75 | 169 | 0.645073 |
82629e49973e0be1f008350e2ac5d3d75aff0200 | 4,493 | py | Python | external/mmdetection/detection_tasks/extension/utils/pipelines.py | bes-dev/training_extensions | 7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb | [
"Apache-2.0"
] | 44 | 2018-10-27T15:28:19.000Z | 2019-02-26T12:50:39.000Z | external/mmdetection/detection_tasks/extension/utils/pipelines.py | bes-dev/training_extensions | 7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb | [
"Apache-2.0"
] | 31 | 2018-11-09T20:33:47.000Z | 2019-02-28T09:58:22.000Z | external/mmdetection/detection_tasks/extension/utils/pipelines.py | bes-dev/training_extensions | 7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb | [
"Apache-2.0"
] | 27 | 2018-11-05T21:59:34.000Z | 2019-02-28T14:28:50.000Z | # Copyright (C) 2021 Intel 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 wri... | 37.132231 | 136 | 0.665702 |
826343a77ca38151d0a290d5ea759c030e820e04 | 846 | py | Python | Leetcode/Competition/180_1.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Competition/180_1.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Competition/180_1.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | from typing import List
print(Solution().luckyNumbers([[3,7,8],[9,11,13],[15,16,17]]))
print(Solution().luckyNumbers([[1,10,4,2],[9,3,8,7],[15,16,17,12]]))
print(Solution().luckyNumbers([[7,8],[1,2]])) | 33.84 | 68 | 0.478723 |
8264bba891a9dc8d15b49f3c1fc314e278831022 | 3,282 | py | Python | GUITests/UC10.sikuli/UC10.py | gabrielganzer/EZGas | cc21dadb0001405e96a8fe298c2bbccf61d5d5a2 | [
"BSD-3-Clause"
] | null | null | null | GUITests/UC10.sikuli/UC10.py | gabrielganzer/EZGas | cc21dadb0001405e96a8fe298c2bbccf61d5d5a2 | [
"BSD-3-Clause"
] | null | null | null | GUITests/UC10.sikuli/UC10.py | gabrielganzer/EZGas | cc21dadb0001405e96a8fe298c2bbccf61d5d5a2 | [
"BSD-3-Clause"
] | 1 | 2021-04-06T14:31:08.000Z | 2021-04-06T14:31:08.000Z | # UC10 - Evaluate price
#
# User U exists and has valid account
# We create two Users, User1_UC10, User2_UC10 and one new gasStation GasStationUC10
#
# Registered on a 1920x1080p, Google Chrome 100% zoom
### SETUP
#User1
click("1590678880209.png")
click("1590678953637.png")
wait(2)
type("1... | 23.442857 | 95 | 0.720902 |
82661285c2d18985678122dfb06c00248935e316 | 540 | py | Python | basic/migrations/0003_entrypoint_entry_function.py | kgdunn/django-peer-review-system | 8d013961e00d189fbbade5283128e956a27954f8 | [
"BSD-2-Clause"
] | null | null | null | basic/migrations/0003_entrypoint_entry_function.py | kgdunn/django-peer-review-system | 8d013961e00d189fbbade5283128e956a27954f8 | [
"BSD-2-Clause"
] | 2 | 2020-03-20T11:50:04.000Z | 2020-03-20T11:50:06.000Z | basic/migrations/0003_entrypoint_entry_function.py | kgdunn/django-peer-review-system | 8d013961e00d189fbbade5283128e956a27954f8 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-27 16:14
from __future__ import unicode_literals
from django.db import migrations, models
| 25.714286 | 131 | 0.644444 |
826680004e25570292d08da9b3737a70f6cd33e6 | 29,337 | py | Python | test_net_with_srgan.py | jasonlai777/Faster-R-CNN | b5c0c18a9b5faabd4b6ef23346aff85104df7356 | [
"MIT"
] | null | null | null | test_net_with_srgan.py | jasonlai777/Faster-R-CNN | b5c0c18a9b5faabd4b6ef23346aff85104df7356 | [
"MIT"
] | null | null | null | test_net_with_srgan.py | jasonlai777/Faster-R-CNN | b5c0c18a9b5faabd4b6ef23346aff85104df7356 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Pytorch Multi-GPU Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick
# --------------------------------------------------------
from __future__ import absolute_import
... | 39.325737 | 115 | 0.590449 |
8267a45960a2743e88617d4dc273ba1a2f8b4aea | 1,231 | py | Python | app.py | iio1989/oshite | dd95eced2630929705670aaf23be5f35df3b9737 | [
"OLDAP-2.3"
] | null | null | null | app.py | iio1989/oshite | dd95eced2630929705670aaf23be5f35df3b9737 | [
"OLDAP-2.3"
] | 1 | 2020-09-24T05:15:00.000Z | 2020-09-24T05:17:06.000Z | app.py | iio1989/oshite | dd95eced2630929705670aaf23be5f35df3b9737 | [
"OLDAP-2.3"
] | null | null | null | from flask import Flask, render_template, request, redirect, url_for, Markup
import app_helper as apHelp
app = Flask(__name__)
# click convetBtn. get HttpParam.
# click homeBtn from header.
# click aboutBtn from header.
# click historyBtn from header.
if __name__ == '__main__':
app.run(debug=True) | 30.775 | 77 | 0.645004 |
826808ff1bd0ba43f535ae2091908373eab637e4 | 1,322 | py | Python | build/cls/tp/slices.py | amunoz1/mines | 106f852fe4e64ee132d74290c1a57ea716312376 | [
"MIT"
] | 1 | 2016-07-19T08:50:54.000Z | 2016-07-19T08:50:54.000Z | src/tp/slices.py | amunoz1/mines | 106f852fe4e64ee132d74290c1a57ea716312376 | [
"MIT"
] | null | null | null | src/tp/slices.py | amunoz1/mines | 106f852fe4e64ee132d74290c1a57ea716312376 | [
"MIT"
] | null | null | null | """
Makes subdirectories with slices of seismic time or depth images.
For example, the directory with name "s3_84" contains a constant-i3
slice, where i3 = 84.
"""
from tputils import *
#setupForSubset("subz_401_4_600")
setupForSubset("subt_251_4_500")
seismicDir = getSeismicDir()
#####################################... | 28.12766 | 77 | 0.618759 |
826871d70c21ce76b15c27edf3c9b2a76149c4a5 | 4,442 | py | Python | lldb/examples/summaries/cocoa/NSException.py | bytesnake/Enzyme | 247606c279920d476645d2e319e574bf8be10fc9 | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | SymbolExtractorAndRenamer/lldb/examples/summaries/cocoa/NSException.py | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | SymbolExtractorAndRenamer/lldb/examples/summaries/cocoa/NSException.py | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | """
LLDB AppKit formatters
part of The LLVM Compiler Infrastructure
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
"""
# summary provider for class NSException
import lldb.runtime.objc.objc_runtime
import lldb.formatters.metrics
import CFString
import lldb
i... | 32.903704 | 94 | 0.670419 |
8268e3ff708fceac06d057f89101a1b211a8db3a | 364 | py | Python | pacman-arch/test/pacman/tests/upgrade084.py | Maxython/pacman-for-termux | 3b208eb9274cbfc7a27fca673ea8a58f09ebad47 | [
"MIT"
] | 23 | 2021-05-21T19:11:06.000Z | 2022-03-31T18:14:20.000Z | source/pacman-6.0.1/test/pacman/tests/upgrade084.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 11 | 2021-05-21T12:08:44.000Z | 2021-12-21T08:30:08.000Z | source/pacman-6.0.1/test/pacman/tests/upgrade084.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 1 | 2021-09-26T08:44:40.000Z | 2021-09-26T08:44:40.000Z | self.description = "Install a package ('any' architecture)"
p = pmpkg("dummy")
p.files = ["bin/dummy",
"usr/man/man1/dummy.1"]
p.arch = 'any'
self.addpkg(p)
self.option["Architecture"] = ['auto']
self.args = "-U %s" % p.filename()
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=dummy")
for f in ... | 21.411765 | 59 | 0.648352 |
826924435f780ad15c0f8fe2ba2c459917504e1d | 7,995 | py | Python | Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py | FI-Mihej/FI-ASockIOCore | 82ee94e94f692511afee5aeb0d75bb7366eb9b96 | [
"Apache-2.0"
] | null | null | null | Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py | FI-Mihej/FI-ASockIOCore | 82ee94e94f692511afee5aeb0d75bb7366eb9b96 | [
"Apache-2.0"
] | null | null | null | Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py | FI-Mihej/FI-ASockIOCore | 82ee94e94f692511afee5aeb0d75bb7366eb9b96 | [
"Apache-2.0"
] | null | null | null | from simple_network.tcp_app_server import *
import httptools
"""
Module Docstring
Docstrings: http://www.python.org/dev/peps/pep-0257/
"""
__author__ = 'ButenkoMS <gtalk@butenkoms.space>'
# ======================================================================
# ===================GLOBAL SETTINGS FOR ALL TESTS=====... | 34.313305 | 115 | 0.635897 |
826a0a34399ac3cae5194033717af23bcc5eca24 | 1,066 | py | Python | bamboomba_description/launch/robot_state_publisher.launch.py | RIF-Robotics/bamboomba | 3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d | [
"BSD-3-Clause"
] | null | null | null | bamboomba_description/launch/robot_state_publisher.launch.py | RIF-Robotics/bamboomba | 3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d | [
"BSD-3-Clause"
] | null | null | null | bamboomba_description/launch/robot_state_publisher.launch.py | RIF-Robotics/bamboomba | 3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d | [
"BSD-3-Clause"
] | null | null | null | from os import path
from launch import LaunchDescription
from ament_index_python.packages import get_package_share_directory
from launch_ros.actions import Node
from launch.actions import DeclareLaunchArgument
from launch.substitutions import Command, LaunchConfiguration
| 35.533333 | 83 | 0.674484 |
826b06577ba553bf4320966964956912f51ba613 | 1,211 | py | Python | tests/test__event.py | alpha-health-ai/pyformance | 3dcf6556a070e89c783f30ddfff03c986e7a5582 | [
"Apache-2.0"
] | 4 | 2019-11-13T11:11:43.000Z | 2021-06-20T11:01:27.000Z | tests/test__event.py | alpha-health-ai/pyformance | 3dcf6556a070e89c783f30ddfff03c986e7a5582 | [
"Apache-2.0"
] | 5 | 2019-01-14T14:59:44.000Z | 2020-12-13T17:04:27.000Z | tests/test__event.py | alpha-health-ai/pyformance | 3dcf6556a070e89c783f30ddfff03c986e7a5582 | [
"Apache-2.0"
] | 6 | 2019-04-17T21:07:40.000Z | 2022-01-18T16:11:51.000Z | from pyformance.meters import Event, EventPoint
from tests import TimedTestCase
| 26.911111 | 87 | 0.620974 |
826c1e777daa6347910fda6447c0f31e1cd72324 | 4,894 | py | Python | problem_#43_30032019.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | problem_#43_30032019.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | problem_#43_30032019.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | """
Good morning! Here's your coding interview problem for today.
This problem was asked by Amazon.
Implement a stack that has the following methods:
push(val), which pushes an element onto the stack
pop(), which pops off and returns the topmost element of the stack. If there are no elements in the stack, then it sh... | 31.574194 | 152 | 0.603801 |
826c762278c3cdf3123d44a03bc4ba2f8e259b59 | 1,161 | py | Python | scrapy/contrib/linkextractors/lxmlhtml.py | emschorsch/scrapy | acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f | [
"BSD-3-Clause"
] | 1 | 2015-09-03T18:30:10.000Z | 2015-09-03T18:30:10.000Z | scrapy/contrib/linkextractors/lxmlhtml.py | emschorsch/scrapy | acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f | [
"BSD-3-Clause"
] | 2 | 2021-12-13T20:51:32.000Z | 2022-02-11T03:47:35.000Z | scrapy/contrib/linkextractors/lxmlhtml.py | emschorsch/scrapy | acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f | [
"BSD-3-Clause"
] | 1 | 2017-11-09T20:33:59.000Z | 2017-11-09T20:33:59.000Z | """
Link extractor based on lxml.html
"""
import lxml.html
from scrapy.link import Link
from scrapy.utils.python import unique as unique_list
| 31.378378 | 73 | 0.639966 |
826cefe38aada7c6d25cf287d99f1f536d838887 | 97 | py | Python | src/meetings/admin.py | Yalnyra/office-meeting-reservation | 52f558ec11a9b5d69c28acb60de132d70b0a789b | [
"bzip2-1.0.6"
] | null | null | null | src/meetings/admin.py | Yalnyra/office-meeting-reservation | 52f558ec11a9b5d69c28acb60de132d70b0a789b | [
"bzip2-1.0.6"
] | null | null | null | src/meetings/admin.py | Yalnyra/office-meeting-reservation | 52f558ec11a9b5d69c28acb60de132d70b0a789b | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib import admin
from .models import Meeting
admin.site.register(Meeting)
| 16.166667 | 33 | 0.773196 |
826e60c1e9dd5f09bf2a2eb0580dbe4ef233f970 | 578 | py | Python | app/templates/init.py | arudmin/generator-flask-heroku | 12ecd9d37b732bf5d59912c4874f1dbc6cfa63b1 | [
"MIT"
] | null | null | null | app/templates/init.py | arudmin/generator-flask-heroku | 12ecd9d37b732bf5d59912c4874f1dbc6cfa63b1 | [
"MIT"
] | null | null | null | app/templates/init.py | arudmin/generator-flask-heroku | 12ecd9d37b732bf5d59912c4874f1dbc6cfa63b1 | [
"MIT"
] | null | null | null | from flask import Flask, url_for
import os
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SECRET_KEY'] = 'SECRET_KEY_CH1ng3me'
# Determines the destination of the build. Only usefull if you're using Frozen-Flask
app.config['FREEZER_DESTINATION'] = os.path.dirname(os.path.abspath(__file__))+'/../build'
... | 32.111111 | 90 | 0.723183 |
826e7e8ce0638e411f4ad1445cfe2c06fdbae9c6 | 936 | py | Python | sigmod2021-exdra-p523/experiments/code/other/l2svm.py | damslab/reproducibility | f7804b2513859f7e6f14fa7842d81003d0758bf8 | [
"Apache-2.0"
] | 4 | 2021-12-10T17:20:26.000Z | 2021-12-27T14:38:40.000Z | sigmod2021-exdra-p523/experiments/code/other/l2svm.py | damslab/reproducibility | f7804b2513859f7e6f14fa7842d81003d0758bf8 | [
"Apache-2.0"
] | null | null | null | sigmod2021-exdra-p523/experiments/code/other/l2svm.py | damslab/reproducibility | f7804b2513859f7e6f14fa7842d81003d0758bf8 | [
"Apache-2.0"
] | null | null | null |
import numpy as np
import argparse
from sklearn.svm import LinearSVR
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.datasets import make_regression
parser = argparse.ArgumentParser()
parser.add_argument('-x', '--datapath', type=str, required=True)
parser.add_a... | 36 | 111 | 0.766026 |
826ee5078415354fd8746cf24ad960817241f697 | 4,797 | py | Python | libs/fm_mission_planner/python/fm_mission_planner/target_viz.py | ethz-asl/mav_findmine | 2835995ace0a20a30f20812437b1b066428253a9 | [
"MIT"
] | 3 | 2021-06-25T03:38:38.000Z | 2022-01-13T08:39:48.000Z | libs/fm_mission_planner/python/fm_mission_planner/target_viz.py | ethz-asl/mav_findmine | 2835995ace0a20a30f20812437b1b066428253a9 | [
"MIT"
] | null | null | null | libs/fm_mission_planner/python/fm_mission_planner/target_viz.py | ethz-asl/mav_findmine | 2835995ace0a20a30f20812437b1b066428253a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# MIT License
#
# Copyright (c) 2020 Rik Baehnemann, ASL, ETH Zurich, Switzerland
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including witho... | 36.9 | 141 | 0.64999 |
826f63c5c39c287a99f63c5f1236dbd56acc410a | 20,198 | py | Python | capirca/lib/gcp_hf.py | PhillSimonds/capirca | 26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70 | [
"Apache-2.0"
] | null | null | null | capirca/lib/gcp_hf.py | PhillSimonds/capirca | 26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70 | [
"Apache-2.0"
] | null | null | null | capirca/lib/gcp_hf.py | PhillSimonds/capirca | 26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70 | [
"Apache-2.0"
] | 1 | 2022-02-14T03:22:18.000Z | 2022-02-14T03:22:18.000Z | """Google Cloud Hierarchical Firewall Generator.
Hierarchical Firewalls (HF) are represented in a SecurityPolicy GCP resouce.
"""
import copy
import re
from typing import Dict, Any
from absl import logging
from capirca.lib import gcp
from capirca.lib import nacaddr
def GetRuleTupleCount(dict_term: Dict[str, ... | 36.392793 | 105 | 0.645608 |
82701369685666a9616bf5da9dc3d5c258f51242 | 196 | py | Python | src/caracara/_kits.py | LaudateCorpus1/caracara | 1200f56891617f15dd48616d7198c45a1e0cbe26 | [
"Unlicense"
] | 1 | 2021-12-28T05:12:33.000Z | 2021-12-28T05:12:33.000Z | src/caracara/_kits.py | CrowdStrike/caracara | 0cfc12447ee299f69e23a5d5210eab5fce8e033e | [
"Unlicense"
] | 1 | 2021-11-26T08:53:25.000Z | 2021-11-26T08:53:25.000Z | src/caracara/_kits.py | LaudateCorpus1/caracara | 1200f56891617f15dd48616d7198c45a1e0cbe26 | [
"Unlicense"
] | 2 | 2022-02-22T07:32:20.000Z | 2022-02-26T03:05:57.000Z | """Kits class defines the available Toolboxes."""
from enum import Enum
| 19.6 | 52 | 0.683673 |
827202efc4734328b2680b6cfa71b26432695ccb | 559 | py | Python | hackerrank/algorithms/time_conversion.py | ontana/mystudy | 8158550da3cdbaaa81660be73f2dfad869aae466 | [
"MIT"
] | null | null | null | hackerrank/algorithms/time_conversion.py | ontana/mystudy | 8158550da3cdbaaa81660be73f2dfad869aae466 | [
"MIT"
] | null | null | null | hackerrank/algorithms/time_conversion.py | ontana/mystudy | 8158550da3cdbaaa81660be73f2dfad869aae466 | [
"MIT"
] | null | null | null | #!/bin/python3
# https://www.hackerrank.com/challenges/time-conversion
import sys
s = input().strip()
result = timeConversion(s)
print(result) | 26.619048 | 77 | 0.563506 |
8272095e27dabd69813e44dde70f50afb8a04d0c | 5,296 | py | Python | supplychainpy/demand/economic_order_quantity.py | supplybi/supplychainpy | 821ea21adb684abba7f9a7b26eaf218f44b45ced | [
"BSD-3-Clause"
] | 5 | 2018-09-07T09:00:31.000Z | 2022-01-02T05:20:46.000Z | supplychainpy/demand/economic_order_quantity.py | supplybi/supplychainpy | 821ea21adb684abba7f9a7b26eaf218f44b45ced | [
"BSD-3-Clause"
] | null | null | null | supplychainpy/demand/economic_order_quantity.py | supplybi/supplychainpy | 821ea21adb684abba7f9a7b26eaf218f44b45ced | [
"BSD-3-Clause"
] | 3 | 2018-02-14T14:04:45.000Z | 2021-04-15T04:31:42.000Z | from decimal import Decimal, getcontext, ROUND_HALF_UP
from supplychainpy.demand import analyse_uncertain_demand
from supplychainpy.demand.eoq import minimum_variable_cost, economic_order_quantity
| 42.368 | 138 | 0.624434 |
8273cb7b96dbba2d80d2ff7f28ed04bc72f420f5 | 2,182 | py | Python | tests/test_arraymisc.py | XinYangDong/mmcv-0.2.10 | 527388ea7c5daf7149a88b3dc833373d5a5fb850 | [
"Apache-2.0"
] | 1 | 2019-04-04T07:07:55.000Z | 2019-04-04T07:07:55.000Z | tests/test_arraymisc.py | XinYangDong/mmcv-0.2.10 | 527388ea7c5daf7149a88b3dc833373d5a5fb850 | [
"Apache-2.0"
] | null | null | null | tests/test_arraymisc.py | XinYangDong/mmcv-0.2.10 | 527388ea7c5daf7149a88b3dc833373d5a5fb850 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import mmcv
import numpy as np
import pytest
| 31.171429 | 75 | 0.593951 |
82740abbd8d90d8a1d79663896c17644f40508b8 | 2,373 | py | Python | train.py | jmribeiro/NumPyNeuralNetworkFromScratch | 19c4360ef4eec91cd17142ced9fde35773d795b5 | [
"Apache-2.0"
] | 1 | 2020-07-06T18:15:34.000Z | 2020-07-06T18:15:34.000Z | train.py | jmribeiro/NumPyNeuralNetworkFromScratch | 19c4360ef4eec91cd17142ced9fde35773d795b5 | [
"Apache-2.0"
] | null | null | null | train.py | jmribeiro/NumPyNeuralNetworkFromScratch | 19c4360ef4eec91cd17142ced9fde35773d795b5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Author: Joo Ribeiro
"""
import argparse
import numpy as np
from model import FeedForwardNetwork
from utils import load_ocr_dataset, plot
if __name__ == '__main__':
parser = argparse.ArgumentParser()
# Hyperparams
parser.add_argument('-epochs', default=20, type=int, help="Nu... | 31.64 | 120 | 0.645175 |
8274f0f41fe5e911ea0767aa342d89364c6cbf67 | 3,935 | py | Python | varify/samples/views.py | chop-dbhi/varify | 5dc721e49ed9bd3582f4b117785fdd1a8b6ba777 | [
"BSD-2-Clause"
] | 6 | 2015-01-16T14:35:29.000Z | 2017-06-18T05:56:15.000Z | varify/samples/views.py | solvebio/varify | 5dc721e49ed9bd3582f4b117785fdd1a8b6ba777 | [
"BSD-2-Clause"
] | null | null | null | varify/samples/views.py | solvebio/varify | 5dc721e49ed9bd3582f4b117785fdd1a8b6ba777 | [
"BSD-2-Clause"
] | 3 | 2015-05-27T15:03:17.000Z | 2020-03-11T08:42:46.000Z | from guardian.shortcuts import get_objects_for_user
from django.http import Http404, HttpResponseRedirect
from django.db.models import Count
from django.core.urlresolvers import reverse
from django.shortcuts import render, get_object_or_404
from vdw.samples.models import Sample, Project, Batch, Cohort
from .forms impor... | 31.48 | 79 | 0.665565 |
8275090a0a26b9725fd053645507a75767690bfa | 6,656 | py | Python | dumbai.py | CapKenway/dumbai | affa89663c980177d6c1e0fef9bda7978032da4d | [
"Unlicense"
] | null | null | null | dumbai.py | CapKenway/dumbai | affa89663c980177d6c1e0fef9bda7978032da4d | [
"Unlicense"
] | null | null | null | dumbai.py | CapKenway/dumbai | affa89663c980177d6c1e0fef9bda7978032da4d | [
"Unlicense"
] | null | null | null | import sys
from pprint import pprint
import os
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------# | 35.404255 | 118 | 0.526292 |
82758db2cce35fc271964b68ef46df023933f752 | 6,079 | py | Python | napari_plugin_test/widgets/warp_image_volume.py | krentzd/napari-test | 97673f9408eab7d2cc01f4562a3deeeee7fd8bcb | [
"MIT"
] | null | null | null | napari_plugin_test/widgets/warp_image_volume.py | krentzd/napari-test | 97673f9408eab7d2cc01f4562a3deeeee7fd8bcb | [
"MIT"
] | null | null | null | napari_plugin_test/widgets/warp_image_volume.py | krentzd/napari-test | 97673f9408eab7d2cc01f4562a3deeeee7fd8bcb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
# Adapted from: https://github.com/zpincus/celltool/blob/master/celltool/numerics/image_warp.py
from scipy import ndimage
import numpy as np
from probreg import bcpd
import tifffile
import matplotlib.pyplot as plt
import napari
from magicgui import magic_factory, widgets
from nap... | 40.798658 | 147 | 0.659154 |
8275c53b65c622b02c7389ff31c415c23a469b50 | 6,235 | py | Python | main/tests/test_celery.py | OpenHumans/oh-23andme-source | 2580b0177b9caad079826305c7455ea7fb116a76 | [
"MIT"
] | null | null | null | main/tests/test_celery.py | OpenHumans/oh-23andme-source | 2580b0177b9caad079826305c7455ea7fb116a76 | [
"MIT"
] | 7 | 2018-03-26T02:09:43.000Z | 2021-06-10T17:42:26.000Z | main/tests/test_celery.py | OpenHumans/oh-23andme-source | 2580b0177b9caad079826305c7455ea7fb116a76 | [
"MIT"
] | 2 | 2018-03-29T12:51:28.000Z | 2018-12-27T18:44:35.000Z | from django.test import TestCase, RequestFactory
import vcr
from django.conf import settings
from django.core.management import call_command
from open_humans.models import OpenHumansMember
from main.celery import read_reference, clean_raw_23andme
from main.celery_helper import vcf_header
import os
import tempfile
impor... | 40.225806 | 171 | 0.563432 |
82763f4b601df981afd52e2acd04c501b896a5f2 | 168 | py | Python | apps/tracking/admin.py | Codeidea/budget-tracker | e07e8d6bb49b0a3de428942a57f090912c191d3e | [
"MIT"
] | null | null | null | apps/tracking/admin.py | Codeidea/budget-tracker | e07e8d6bb49b0a3de428942a57f090912c191d3e | [
"MIT"
] | null | null | null | apps/tracking/admin.py | Codeidea/budget-tracker | e07e8d6bb49b0a3de428942a57f090912c191d3e | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import LogCategory, BudgetLog
# Register your models here.
admin.site.register(LogCategory)
admin.site.register(BudgetLog) | 33.6 | 42 | 0.833333 |
8276d754ae9e540d8e94f8e6e543d48ce3a9e8c7 | 2,060 | py | Python | nn_model/embedding_layer.py | onlyrico/mling_sdgms | ef6015d1a815a317f16fa1e42cbb048e4fe443f7 | [
"MIT"
] | 4 | 2021-06-01T02:06:57.000Z | 2022-02-23T02:14:07.000Z | nn_model/embedding_layer.py | onlyrico/mling_sdgms | ef6015d1a815a317f16fa1e42cbb048e4fe443f7 | [
"MIT"
] | null | null | null | nn_model/embedding_layer.py | onlyrico/mling_sdgms | ef6015d1a815a317f16fa1e42cbb048e4fe443f7 | [
"MIT"
] | 2 | 2021-01-28T05:48:20.000Z | 2022-01-24T11:59:13.000Z | # -*- coding: UTF-8 -*-
#!/usr/bin/python3
"""
Embedding Layer
"""
#************************************************************
# Imported Libraries
#************************************************************
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from gensim.models i... | 30.294118 | 94 | 0.662136 |
827728c1d9e6e7856cb8f43e7465659d4d505df0 | 17,810 | py | Python | grpclib/server.py | panaetov/grpclib | 3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a | [
"BSD-3-Clause"
] | null | null | null | grpclib/server.py | panaetov/grpclib | 3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a | [
"BSD-3-Clause"
] | null | null | null | grpclib/server.py | panaetov/grpclib | 3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a | [
"BSD-3-Clause"
] | null | null | null | import abc
import socket
import logging
import asyncio
import warnings
import h2.config
import h2.exceptions
from .utils import DeadlineWrapper
from .const import Status
from .stream import send_message, recv_message
from .stream import StreamIterator
from .metadata import Metadata, Deadline
from .protocol import H2P... | 34.921569 | 80 | 0.600842 |
82789f2ad5480b27da525091f877dbbf7fb5f30c | 3,923 | py | Python | examples/vector_dot.py | Wheest/EVA | 6d19da1d454f398f0ade297d3a76a4ee9e773929 | [
"MIT"
] | null | null | null | examples/vector_dot.py | Wheest/EVA | 6d19da1d454f398f0ade297d3a76a4ee9e773929 | [
"MIT"
] | null | null | null | examples/vector_dot.py | Wheest/EVA | 6d19da1d454f398f0ade297d3a76a4ee9e773929 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
from eva import EvaProgram, Input, Output
from eva.ckks import CKKSCompiler
from eva.seal import generate_keys
import numpy as np
import time
from eva.std.numeric import horizontal_sum
def generate_vector_dot_naive(size):
"""Vector dot product with vector size of 1"""
f... | 28.845588 | 87 | 0.640836 |
8278ddae26be1d01817d1cce51811bee77e0e097 | 5,903 | py | Python | ramcache.py | Lopez6969/chromium-dashboard | b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2 | [
"Apache-2.0"
] | null | null | null | ramcache.py | Lopez6969/chromium-dashboard | b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2 | [
"Apache-2.0"
] | null | null | null | ramcache.py | Lopez6969/chromium-dashboard | b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
from __future__ import print_function
# -*- coding: utf-8 -*-
# Copyright 2020 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.a... | 34.723529 | 79 | 0.750127 |
8279df0466383aeaceedee24127f9a8045b9a674 | 401 | py | Python | src/sales/migrations/0029_auto_20191025_1058.py | vladimirtkach/yesjob | 83800f4d29bf2dab30b14fc219d3150e3bc51e15 | [
"MIT"
] | null | null | null | src/sales/migrations/0029_auto_20191025_1058.py | vladimirtkach/yesjob | 83800f4d29bf2dab30b14fc219d3150e3bc51e15 | [
"MIT"
] | 18 | 2020-02-12T00:41:40.000Z | 2022-02-10T12:00:03.000Z | src/sales/migrations/0029_auto_20191025_1058.py | vladimirtkach/yesjob | 83800f4d29bf2dab30b14fc219d3150e3bc51e15 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-10-25 10:58
from django.db import migrations, models
| 21.105263 | 64 | 0.608479 |
8279e33b741621fbcfe10f065044f83eff6d9a93 | 41,238 | py | Python | maintenance/pymelControlPanel.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | maintenance/pymelControlPanel.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | maintenance/pymelControlPanel.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | """
UI for controlling how api classes and mel commands are combined into pymel classes.
This UI modifies factories.apiToMelData which is pickled out to apiMelBridge.
It controls:
which mel methods correspond to api methods
disabling of api methods
preference for overloaded methods (since currently only o... | 42.295385 | 151 | 0.591299 |
827aae5cfb257b722009084fcdc82d1efd26e382 | 35 | py | Python | src/test/data/pa3/sample/list_get_element_oob_3.py | Leo-Enrique-Wu/chocopy_compiler_code_generation | 4606be0531b3de77411572aae98f73169f46b3b9 | [
"BSD-2-Clause"
] | 7 | 2021-08-28T18:20:45.000Z | 2022-02-01T07:35:59.000Z | src/test/data/pa3/sample/list_get_element_oob_3.py | Leo-Enrique-Wu/chocopy_compiler_code_generation | 4606be0531b3de77411572aae98f73169f46b3b9 | [
"BSD-2-Clause"
] | 4 | 2020-05-18T01:06:15.000Z | 2020-06-12T19:33:14.000Z | src/test/data/pa3/sample/list_get_element_oob_3.py | Leo-Enrique-Wu/chocopy_compiler_code_generation | 4606be0531b3de77411572aae98f73169f46b3b9 | [
"BSD-2-Clause"
] | 5 | 2019-11-27T05:11:05.000Z | 2021-06-29T14:31:14.000Z | x:[int] = None
x = []
print(x[0])
| 7 | 14 | 0.457143 |
827ac159b8342adeb18a832d9a86cfcb0600fb29 | 62 | py | Python | modules/vqvc/__init__.py | reppy4620/VCon | cac3441443cb9b28ffbaa0646ed1826d71cb16e0 | [
"MIT"
] | 4 | 2021-05-22T03:14:44.000Z | 2022-01-03T04:32:54.000Z | modules/vqvc/__init__.py | reppy4620/VCon | cac3441443cb9b28ffbaa0646ed1826d71cb16e0 | [
"MIT"
] | null | null | null | modules/vqvc/__init__.py | reppy4620/VCon | cac3441443cb9b28ffbaa0646ed1826d71cb16e0 | [
"MIT"
] | null | null | null | from .model import VQVCModel
from .pl_model import VQVCModule
| 20.666667 | 32 | 0.83871 |
827b053defe8919cad9935212546496cfc58073c | 1,040 | py | Python | kornia/constants.py | carlosb1/kornia | a2b34d497314e7ed65f114401efdd3cc9ba2077c | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-17T16:57:14.000Z | 2020-06-17T16:57:14.000Z | kornia/constants.py | carlosb1/kornia | a2b34d497314e7ed65f114401efdd3cc9ba2077c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | kornia/constants.py | carlosb1/kornia | a2b34d497314e7ed65f114401efdd3cc9ba2077c | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-26T13:39:34.000Z | 2022-01-26T13:39:34.000Z | from typing import Union, TypeVar
from enum import Enum
import torch
pi = torch.tensor(3.14159265358979323846)
T = TypeVar('T', bound='Resample')
U = TypeVar('U', bound='BorderType')
| 24.761905 | 65 | 0.567308 |
827beb02ef352cf0444f8df3acec604c0da03a1c | 1,731 | py | Python | intrepyd/tests/test_openplc.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | 2 | 2021-04-25T17:38:03.000Z | 2022-03-20T20:48:50.000Z | intrepyd/tests/test_openplc.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | 1 | 2016-11-30T22:25:00.000Z | 2017-01-16T22:43:39.000Z | intrepyd/tests/test_openplc.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | null | null | null | import intrepyd
from intrepyd.iec611312py.plcopen import parse_plc_open_file
from intrepyd.iec611312py.stmtprinter import StmtPrinter
import unittest
from . import from_fixture_path
if __name__ == "__main__":
unittest.main()
| 37.630435 | 139 | 0.688619 |
827d64df2b74d446113ab304669eb3fd477b0e80 | 3,506 | py | Python | reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py | MKLab-ITI/reveal-graph-embedding | 72d4af794536f97b8ede06c0f27f261ea85d8c4b | [
"Apache-2.0"
] | 31 | 2015-07-14T16:21:25.000Z | 2021-06-30T14:10:44.000Z | reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py | MKLab-ITI/reveal-graph-embedding | 72d4af794536f97b8ede06c0f27f261ea85d8c4b | [
"Apache-2.0"
] | null | null | null | reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py | MKLab-ITI/reveal-graph-embedding | 72d4af794536f97b8ede06c0f27f261ea85d8c4b | [
"Apache-2.0"
] | 11 | 2016-08-21T03:07:20.000Z | 2020-03-07T03:17:05.000Z | __author__ = 'Georgios Rizos (georgerizos@iti.gr)'
import numpy as np
import scipy.sparse as sparse
from reveal_graph_embedding.common import get_file_row_generator
def read_adjacency_matrix(file_path, separator):
"""
Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdina... | 33.711538 | 118 | 0.688534 |
827fbde3f6b49a475e21f72342cbd95940e44a4d | 1,255 | py | Python | create_tweet_classes.py | jmcguinness11/StockPredictor | 9dd545a11ca9beab6e108d5b8f001f69501af606 | [
"MIT"
] | null | null | null | create_tweet_classes.py | jmcguinness11/StockPredictor | 9dd545a11ca9beab6e108d5b8f001f69501af606 | [
"MIT"
] | null | null | null | create_tweet_classes.py | jmcguinness11/StockPredictor | 9dd545a11ca9beab6e108d5b8f001f69501af606 | [
"MIT"
] | null | null | null | # create_tweet_classes.py
# this assumes the existence of a get_class(day, hour, ticker) function
# that returns the class (0, 1, or -1) for a given hour and ticker
import collections
import json
import random
refined_tweets = collections.defaultdict(list)
#returns label for company and time
#parses individual json... | 24.607843 | 73 | 0.6749 |
827fdac046ac07902d8fa5e1aeb478e27e40e24c | 11,538 | py | Python | integration_tests/test_router.py | madfish-solutions/quipuswap-token2token-core | 41fd4293029e2094a564141fb389fd9a1ef19185 | [
"MIT"
] | null | null | null | integration_tests/test_router.py | madfish-solutions/quipuswap-token2token-core | 41fd4293029e2094a564141fb389fd9a1ef19185 | [
"MIT"
] | null | null | null | integration_tests/test_router.py | madfish-solutions/quipuswap-token2token-core | 41fd4293029e2094a564141fb389fd9a1ef19185 | [
"MIT"
] | null | null | null | from unittest import TestCase
import json
from helpers import *
from pytezos import ContractInterface, pytezos, MichelsonRuntimeError
from pytezos.context.mixin import ExecutionContext
token_a = "KT1AxaBxkFLCUi3f8rdDAAxBKHfzY8LfKDRA"
token_b = "KT1PgHxzUXruWG5XAahQzJAjkk4c2sPcM3Ca"
token_c = "KT1RJ6PbjHpwc3M5rw5s2Nb... | 30.68617 | 101 | 0.477639 |
8281bdb342d8804d5733ed2d9e90e2c325ef1463 | 4,013 | py | Python | run.py | evilspyboy/twitch-relay-monitor | 45c9c2f02b67f73b5baea53813d8818d673d93ba | [
"MIT"
] | 1 | 2021-03-19T15:02:38.000Z | 2021-03-19T15:02:38.000Z | run.py | evilspyboy/twitch-relay-monitor | 45c9c2f02b67f73b5baea53813d8818d673d93ba | [
"MIT"
] | null | null | null | run.py | evilspyboy/twitch-relay-monitor | 45c9c2f02b67f73b5baea53813d8818d673d93ba | [
"MIT"
] | 1 | 2021-03-19T15:02:38.000Z | 2021-03-19T15:02:38.000Z | import datetime
from datetime import timedelta
import pprint
from config import *
from helper import *
import time
import logging
from logging.handlers import RotatingFileHandler
logger = logging.getLogger('Twitch Relay Monitor')
logger.setLevel(logging.DEBUG)
handler = RotatingFileHandler('/home/pi/twitch_relay_monit... | 31.351563 | 107 | 0.76601 |
828565457c47cac1020f3188fe499892855af43c | 12,928 | py | Python | rbc/tests/test_omnisci_array.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | rbc/tests/test_omnisci_array.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | rbc/tests/test_omnisci_array.py | guilhermeleobas/rbc | 4b568b91c6ce3ef7727fee001169302c3803c4fd | [
"BSD-3-Clause"
] | null | null | null | import os
from collections import defaultdict
from rbc.omnisci_backend import Array
from rbc.errors import OmnisciServerError
from numba import types as nb_types
import pytest
rbc_omnisci = pytest.importorskip('rbc.omniscidb')
available_version, reason = rbc_omnisci.is_available()
pytestmark = pytest.mark.skipif(not a... | 27.274262 | 98 | 0.586556 |
82857e9a33dbe718b0d5cc5a60fda6fb7a1add58 | 4,666 | py | Python | env/lib/python3.8/site-packages/unidecode/x093.py | avdhari/enigma | b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c | [
"MIT"
] | 48 | 2021-11-20T08:17:53.000Z | 2022-03-19T13:57:15.000Z | venv/lib/python3.6/site-packages/unidecode/x093.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 392 | 2015-07-30T14:37:05.000Z | 2022-03-21T16:56:09.000Z | venv/lib/python3.6/site-packages/unidecode/x093.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 15 | 2015-10-01T21:31:08.000Z | 2020-05-05T00:03:27.000Z | data = (
'Lun ', # 0x00
'Kua ', # 0x01
'Ling ', # 0x02
'Bei ', # 0x03
'Lu ', # 0x04
'Li ', # 0x05
'Qiang ', # 0x06
'Pou ', # 0x07
'Juan ', # 0x08
'Min ', # 0x09
'Zui ', # 0x0a
'Peng ', # 0x0b
'An ', # 0x0c
'Pi ', # 0x0d
'Xian ', # 0x0e
'Ya ', # 0x0f
'Zhui ', # 0x10
'Le... | 18.015444 | 21 | 0.388556 |
82858d5820f148f4cd403dae133ec9b5dc1ebb08 | 1,785 | py | Python | src/core/default/commands/bucket/utils.py | cdev-framework/cdev-sdk | 06cd7b40936ab063d1d8fd1a7d9f6882750e8a96 | [
"BSD-3-Clause-Clear"
] | 2 | 2022-02-28T02:51:59.000Z | 2022-03-24T15:23:18.000Z | src/core/default/commands/bucket/utils.py | cdev-framework/cdev-sdk | 06cd7b40936ab063d1d8fd1a7d9f6882750e8a96 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/core/default/commands/bucket/utils.py | cdev-framework/cdev-sdk | 06cd7b40936ab063d1d8fd1a7d9f6882750e8a96 | [
"BSD-3-Clause-Clear"
] | null | null | null | from dataclasses import dataclass
import re
from tokenize import group
from core.constructs.resource import ResourceModel
from core.constructs.workspace import Workspace
RUUID = "cdev::simple::bucket"
remote_name_regex = "bucket://([a-z,_]+).([a-z,_]+)/?(\S+)?"
compiled_regex = re.compile(remote_name_regex)
| 25.869565 | 86 | 0.678431 |
8285973ff004a3b86ceb55d9c1d9f9899c59ee73 | 7,434 | py | Python | examples/blank_cylinders.py | reflectometry/osrefl | ddf55d542f2eab2a29fd6ffc862379820a06d5c7 | [
"BSD-3-Clause"
] | 2 | 2015-05-21T15:16:46.000Z | 2015-10-23T17:47:36.000Z | examples/blank_cylinders.py | reflectometry/osrefl | ddf55d542f2eab2a29fd6ffc862379820a06d5c7 | [
"BSD-3-Clause"
] | null | null | null | examples/blank_cylinders.py | reflectometry/osrefl | ddf55d542f2eab2a29fd6ffc862379820a06d5c7 | [
"BSD-3-Clause"
] | null | null | null | from greens_thm_form import greens_form_line, greens_form_shape
from numpy import arange, linspace, float64, indices, zeros_like, ones_like, pi, sin, complex128, array, exp, newaxis, cumsum, sum, cos, sin, log, log10
from osrefl.theory.DWBAGISANS import dwbaWavefunction
# alternating SLD
wavelength = 1.24 # x-ra... | 37.356784 | 152 | 0.644471 |
82866aa0a6c01bbd11d8219aa01d2f4e9089b2ed | 3,750 | py | Python | EXAMPLE/test_backtest/MACD_JCSC.py | evsteel/QUANTAXIS | 50e0116b2b52e6bbac6819d5f039608bf4a17367 | [
"MIT"
] | 2 | 2018-10-29T12:01:55.000Z | 2021-03-05T10:28:59.000Z | EXAMPLE/test_backtest/MACD_JCSC.py | evsteel/QUANTAXIS | 50e0116b2b52e6bbac6819d5f039608bf4a17367 | [
"MIT"
] | 1 | 2019-01-23T04:46:52.000Z | 2019-01-23T04:46:52.000Z | EXAMPLE/test_backtest/MACD_JCSC.py | evsteel/QUANTAXIS | 50e0116b2b52e6bbac6819d5f039608bf4a17367 | [
"MIT"
] | 2 | 2018-11-30T07:52:14.000Z | 2021-05-28T23:00:20.000Z | # -*- coding: utf-8 -*-
# Demo: MACD strategy
# src: ./test_backtest/MACD_JCSC.py
# jupyter: ./test_backtest/QUANTAXIS.ipynb
# paper: ./test_backtest/QUANTAXIS.md
import QUANTAXIS as QA
import numpy as np
import pandas as pd
import datetime
st1=datetime.datetime.now()
# define the MACD strategy
def MACD_JCSC(dataframe... | 32.051282 | 123 | 0.6464 |
8286a3142dc78c8279d55cc22186d074f451c53d | 6,247 | py | Python | tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py | zapatacomputing/z-quantum-qaoa | a13a99939ee41c760fdfb302e5f4944e087a09a7 | [
"Apache-2.0"
] | 3 | 2020-10-06T13:54:40.000Z | 2021-07-04T21:02:14.000Z | tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py | zapatacomputing/z-quantum-qaoa | a13a99939ee41c760fdfb302e5f4944e087a09a7 | [
"Apache-2.0"
] | 34 | 2020-04-30T02:52:31.000Z | 2022-03-30T19:19:14.000Z | tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py | zapatacomputing/z-quantum-qaoa | a13a99939ee41c760fdfb302e5f4944e087a09a7 | [
"Apache-2.0"
] | 5 | 2020-06-24T10:57:01.000Z | 2021-07-09T01:14:16.000Z | from zquantum.core.interfaces.ansatz_test import AnsatzTests
from zquantum.core.circuits import Circuit, H, RX, RZ
from zquantum.core.utils import compare_unitary
from zquantum.core.openfermion import change_operator_type
from zquantum.qaoa.ansatzes.farhi_ansatz import (
QAOAFarhiAnsatz,
create_farhi_qaoa_circu... | 29.328638 | 88 | 0.664959 |
8287b90a2bda6ffe57a0b5c598cfc436f9b7c2a3 | 3,297 | py | Python | utils/parser.py | scalar42/scholar-alerts-assistant | 5b674f3784d09ced8a6c17a653d9bdfa08947125 | [
"MIT"
] | null | null | null | utils/parser.py | scalar42/scholar-alerts-assistant | 5b674f3784d09ced8a6c17a653d9bdfa08947125 | [
"MIT"
] | null | null | null | utils/parser.py | scalar42/scholar-alerts-assistant | 5b674f3784d09ced8a6c17a653d9bdfa08947125 | [
"MIT"
] | null | null | null | from html.parser import HTMLParser
| 30.813084 | 129 | 0.578101 |
8288331b93be5bebcd8bf3d2c82ccd107597d65b | 1,067 | py | Python | ApendixI-Games/StacklessPSP-2.5.2_R1/pspsnd.py | MelroLeandro/Matematica-Discreta-para-Hackers-ipnyb | 1f9ca7db685733a3df924db1269bd852acf27602 | [
"MIT"
] | null | null | null | ApendixI-Games/StacklessPSP-2.5.2_R1/pspsnd.py | MelroLeandro/Matematica-Discreta-para-Hackers-ipnyb | 1f9ca7db685733a3df924db1269bd852acf27602 | [
"MIT"
] | 1 | 2019-08-16T12:59:01.000Z | 2019-08-18T06:36:47.000Z | ApendixI-Games/StacklessPSP-2.5.2_R1/pspsnd.py | MelroLeandro/Matematica-Discreta-para-Hackers-ipnyb | 1f9ca7db685733a3df924db1269bd852acf27602 | [
"MIT"
] | null | null | null | """Wrapper for pygame, which exports the PSP Python API on non-PSP systems."""
__author__ = "Per Olofsson, <MagerValp@cling.gu.se>"
import pygame
pygame.init()
_vol_music = 255
_vol_sound = 255
| 21.34 | 78 | 0.62418 |
82884c2f951413f34a94ee10615c1c83e1f50fe8 | 1,540 | py | Python | utility_parseCMUMovie.py | bipulkumar22/pyTextClassification | 7ed92949aa5648d3198588d0c5d6db89b48025ac | [
"Apache-2.0"
] | 11 | 2016-09-16T10:38:19.000Z | 2021-12-13T19:38:24.000Z | utility_parseCMUMovie.py | tyiannak/pyTextClassification | 7ed92949aa5648d3198588d0c5d6db89b48025ac | [
"Apache-2.0"
] | null | null | null | utility_parseCMUMovie.py | tyiannak/pyTextClassification | 7ed92949aa5648d3198588d0c5d6db89b48025ac | [
"Apache-2.0"
] | 6 | 2016-11-19T15:35:13.000Z | 2020-03-29T17:09:22.000Z | import os
import csv
import ast
# used to generate folder-seperated corpus from CMUMovie dataset
# just type python utility_parseCMUMovie.py in a terminal and the data will be downloaded and split to subfolders in the moviePlots/ path
os.system("wget http://www.cs.cmu.edu/~ark/personas/data/MovieSummaries.tar.gz")
o... | 37.560976 | 143 | 0.595455 |