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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c96e6d193a2bd12826b74da6401e0f9ad390b78 | 17,132 | py | Python | maldives/technical_analysis/__init__.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | 1 | 2021-09-17T18:04:33.000Z | 2021-09-17T18:04:33.000Z | maldives/technical_analysis/__init__.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | null | null | null | maldives/technical_analysis/__init__.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | 3 | 2021-09-17T18:04:43.000Z | 2022-03-18T20:04:07.000Z | import numpy as np
import math
from pandas import DataFrame
def min_rw_index(prices, start, end):
"""
Searches min price index inside window [start,end]
:param prices: in list format
:param start: window start index
:param end: window end index
:return:
"""
matching_index = start
... | 36.451064 | 108 | 0.532279 |
2c97a10d31ef8e0bc20d8e7103870b10b184c4ee | 772 | py | Python | cymepy/export_manager/hooks/JSON_writer.py | GMLC-TDC/cymepy | 1f3b6011c674ef24139009fd23bb913e2453bc1d | [
"BSD-3-Clause"
] | 1 | 2021-12-31T06:11:24.000Z | 2021-12-31T06:11:24.000Z | cymepy/export_manager/hooks/JSON_writer.py | GMLC-TDC/cymepy | 1f3b6011c674ef24139009fd23bb913e2453bc1d | [
"BSD-3-Clause"
] | null | null | null | cymepy/export_manager/hooks/JSON_writer.py | GMLC-TDC/cymepy | 1f3b6011c674ef24139009fd23bb913e2453bc1d | [
"BSD-3-Clause"
] | null | null | null | from cymepy.export_manager.base_definations import ExportManager
from cymepy.common import EXPORT_FILENAME
import json
import os
| 30.88 | 85 | 0.638601 |
2c9d710486fe7c3e74c3841cde67437dfa01eebb | 5,320 | py | Python | fenrir/fenrir.py | noperaattori/Trusty-cogs | 0cca2cf2f6989087441e5304ab085a1a9288097f | [
"MIT"
] | null | null | null | fenrir/fenrir.py | noperaattori/Trusty-cogs | 0cca2cf2f6989087441e5304ab085a1a9288097f | [
"MIT"
] | null | null | null | fenrir/fenrir.py | noperaattori/Trusty-cogs | 0cca2cf2f6989087441e5304ab085a1a9288097f | [
"MIT"
] | null | null | null | import discord
from redbot.core import Config, checks, commands
listener = getattr(commands.Cog, "listener", None) # red 3.0 backwards compatibility support
if listener is None: # thanks Sinbad
| 35 | 93 | 0.578008 |
2c9e38301a32acb2dc6159e9441fa4c1000f2d7e | 140 | py | Python | my_submission/model/__init__.py | abcdcamey/Gobigger-Explore | 75864164f3e45176a652154147740c34905d1958 | [
"Apache-2.0"
] | 1 | 2021-12-28T02:47:07.000Z | 2021-12-28T02:47:07.000Z | my_submission/model/__init__.py | abcdcamey/Gobigger-Explore | 75864164f3e45176a652154147740c34905d1958 | [
"Apache-2.0"
] | null | null | null | my_submission/model/__init__.py | abcdcamey/Gobigger-Explore | 75864164f3e45176a652154147740c34905d1958 | [
"Apache-2.0"
] | null | null | null | from .gobigger_structed_simple_model import GoBiggerHybridActionSimpleV3
from .my_gobigger_structed_model_v1 import MyGoBiggerHybridActionV1 | 70 | 72 | 0.935714 |
2ca16bdb7e66900966a36a0cd4986826181aae35 | 1,967 | py | Python | CS307/testbench_log/fileDB/Client.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | CS307/testbench_log/fileDB/Client.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | CS307/testbench_log/fileDB/Client.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | # -*- coding = utf-8 -*-
# @Time: 2022/4/13 19:35
# @Author: Anshang
# @File: Client.py
# @Software: PyCharm
import socket
from multiprocessing import Process, Pipe
if __name__ == '__main__':
client = DBMSClient('anshang', '123456')
client.execute("insert into supply_center(id, director_name) values(2... | 31.222222 | 125 | 0.608033 |
2ca379a4326599a2da6af793ac7003a964e86f56 | 11,677 | py | Python | packages/core/minos-microservice-networks/tests/test_networks/test_brokers/test_messages/test_models/test_v1.py | sorasful/minos-python | 1189330eebf6444627a2af6b29f347670f95a4dd | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | packages/core/minos-microservice-networks/tests/test_networks/test_brokers/test_messages/test_models/test_v1.py | sorasful/minos-python | 1189330eebf6444627a2af6b29f347670f95a4dd | [
"MIT"
] | 168 | 2022-01-24T14:54:31.000Z | 2022-03-31T09:31:09.000Z | packages/core/minos-microservice-networks/tests/test_networks/test_brokers/test_messages/test_models/test_v1.py | sorasful/minos-python | 1189330eebf6444627a2af6b29f347670f95a4dd | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | import unittest
import warnings
from unittest.mock import (
patch,
)
from uuid import (
UUID,
uuid4,
)
from minos.common import (
Model,
)
from minos.networks import (
BrokerMessageV1,
BrokerMessageV1Payload,
BrokerMessageV1Status,
BrokerMessageV1Strategy,
)
from tests.utils import (
... | 39.717687 | 117 | 0.525649 |
2ca60d18fc13936a81ea6a0a815cdddc87a28ba9 | 231 | py | Python | tasks/__init__.py | auto-ndp/faasm-python | f144332fea6d03412d5a76501bd5a9fe4c2fa8ac | [
"Apache-2.0"
] | 3 | 2021-08-05T05:09:36.000Z | 2021-11-29T23:59:35.000Z | tasks/__init__.py | auto-ndp/faasm-python | f144332fea6d03412d5a76501bd5a9fe4c2fa8ac | [
"Apache-2.0"
] | 1 | 2021-09-09T09:19:03.000Z | 2022-02-14T13:49:10.000Z | tasks/__init__.py | auto-ndp/faasm-python | f144332fea6d03412d5a76501bd5a9fe4c2fa8ac | [
"Apache-2.0"
] | 2 | 2021-07-06T13:06:06.000Z | 2021-08-21T00:02:02.000Z | from invoke import Collection
from . import (
container,
cpython,
func,
git,
libs,
mxnet,
runtime,
)
ns = Collection(
container,
cpython,
func,
git,
libs,
mxnet,
runtime,
)
| 10.5 | 29 | 0.545455 |
2cab7c782174400d830c6863e839dd45a2ff2d54 | 2,416 | py | Python | face.py | 1MT3J45/DS-StockAnalysis | 20de4270a31e41324adc2c67ecb2343ff0c208c7 | [
"Apache-2.0"
] | null | null | null | face.py | 1MT3J45/DS-StockAnalysis | 20de4270a31e41324adc2c67ecb2343ff0c208c7 | [
"Apache-2.0"
] | null | null | null | face.py | 1MT3J45/DS-StockAnalysis | 20de4270a31e41324adc2c67ecb2343ff0c208c7 | [
"Apache-2.0"
] | null | null | null | from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder
from kivy.app import App
import YP03
import sys
import dfgui
import pandas as pd
Builder.load_string('''
<faceTool>:
num1: num1
result: result
orientation: 'vertical'
BoxLayout:
orientation: 'horizontal'
Label:
... | 23.456311 | 68 | 0.500414 |
2cacb2562c5435003dd88d26fe7c1f1e9dad64af | 3,196 | py | Python | src/evaluation.py | Macho000/T5-for-KGQG | af139ff38ab2965560e809d5ab5182a0cfff6f71 | [
"Apache-2.0"
] | null | null | null | src/evaluation.py | Macho000/T5-for-KGQG | af139ff38ab2965560e809d5ab5182a0cfff6f71 | [
"Apache-2.0"
] | null | null | null | src/evaluation.py | Macho000/T5-for-KGQG | af139ff38ab2965560e809d5ab5182a0cfff6f71 | [
"Apache-2.0"
] | 1 | 2021-11-18T08:03:28.000Z | 2021-11-18T08:03:28.000Z | from AdjacencyAttentionWithoutSelfloopTransformers import (
AdamW,
T5ForConditionalGeneration,
T5Tokenizer,
get_linear_schedule_with_warmup
)
from torch.utils.data import DataLoader
from src.dataset import JsonDatasetWQ, JsonDatasetPQ
from datetime import strftime, localtime
from tqdm.auto import tqdm
from om... | 36.318182 | 101 | 0.673967 |
2cad739bc31ee265b9975569c0caf1767fa299a5 | 7,344 | py | Python | microraiden/proxy/resources/paywall_decorator.py | andrevmatos/microraiden | 2d51e78afaf3c0a8ddab87e59a5260c0064cdbdd | [
"MIT"
] | 417 | 2017-09-19T19:06:23.000Z | 2021-11-28T05:39:23.000Z | microraiden/proxy/resources/paywall_decorator.py | andrevmatos/microraiden | 2d51e78afaf3c0a8ddab87e59a5260c0064cdbdd | [
"MIT"
] | 259 | 2017-09-19T20:42:57.000Z | 2020-11-18T01:31:41.000Z | microraiden/proxy/resources/paywall_decorator.py | andrevmatos/microraiden | 2d51e78afaf3c0a8ddab87e59a5260c0064cdbdd | [
"MIT"
] | 126 | 2017-09-19T17:11:39.000Z | 2020-12-17T17:05:27.000Z | import logging
from flask import Response, make_response, request
from microraiden import HTTPHeaders as header
from flask_restful.utils import unpack
from microraiden.channel_manager import (
ChannelManager,
)
from microraiden.exceptions import (
NoOpenChannel,
InvalidBalanceProof,
InvalidBalanceAmoun... | 37.661538 | 91 | 0.623094 |
2cade70f70dd65b64ba83b86b7c197557db3d502 | 4,241 | py | Python | aiowinreg/filestruct/nk.py | skelsec/aiowinreg | fdffebefb355fb773a0c3f30b2439774db930ba1 | [
"MIT"
] | 6 | 2019-08-20T21:40:28.000Z | 2021-05-22T18:45:41.000Z | aiowinreg/filestruct/nk.py | skelsec/aiowinreg | fdffebefb355fb773a0c3f30b2439774db930ba1 | [
"MIT"
] | 3 | 2020-01-15T17:32:23.000Z | 2021-05-22T04:07:42.000Z | aiowinreg/filestruct/nk.py | skelsec/aiowinreg | fdffebefb355fb773a0c3f30b2439774db930ba1 | [
"MIT"
] | 5 | 2019-08-09T04:03:57.000Z | 2020-03-19T10:22:56.000Z |
"""
the nk-Record
=============
Offset Size Contents
0x0000 Word ID: ASCII-"nk" = 0x6B6E
0x0002 Word for the root-key: 0x2C, otherwise 0x20
0x0004 Q-Word write-date/time in windows nt notation
0x0010 D-Word Offset of Owner/Parent key
0x0014 D-Word number of sub-Keys
0x001C D-Word Offset of the sub-key lf-Records
0x0... | 33.928 | 88 | 0.710446 |
2caf9720b899a568e29bea30f685e67528d45e67 | 85 | py | Python | src/datasets/hanitem.py | Hazoom/han | 5c97568fc052f85db3e3b643a56c782ca24044a1 | [
"Apache-2.0"
] | 25 | 2020-07-25T09:45:45.000Z | 2022-01-02T09:42:59.000Z | src/datasets/hanitem.py | Hazoom/han | 5c97568fc052f85db3e3b643a56c782ca24044a1 | [
"Apache-2.0"
] | 3 | 2020-12-14T22:32:47.000Z | 2021-04-16T01:06:44.000Z | src/datasets/hanitem.py | Hazoom/han | 5c97568fc052f85db3e3b643a56c782ca24044a1 | [
"Apache-2.0"
] | 6 | 2020-12-20T16:00:44.000Z | 2021-12-07T16:59:07.000Z | import attr
| 10.625 | 25 | 0.623529 |
2cb02c7acfe67e6e6cc10232c459c4e7541db8cc | 4,637 | py | Python | omicron/models/valuation.py | evimacs/omicron | abe77fd25a93cf3d0d17661ae957373474724535 | [
"MIT"
] | 4 | 2020-11-09T02:23:51.000Z | 2021-01-24T00:45:21.000Z | omicron/models/valuation.py | evimacs/omicron | abe77fd25a93cf3d0d17661ae957373474724535 | [
"MIT"
] | 14 | 2020-11-09T02:31:34.000Z | 2021-12-22T10:15:47.000Z | omicron/models/valuation.py | evimacs/omicron | abe77fd25a93cf3d0d17661ae957373474724535 | [
"MIT"
] | 2 | 2021-01-24T00:45:25.000Z | 2021-12-24T06:18:37.000Z | import datetime
from typing import List, Union
import numpy as np
from sqlalchemy.dialects.postgresql import insert
from sqlalchemy.types import Date, Float, Integer, Numeric, String
import omicron
from omicron import db
from omicron.client.quotes_fetcher import get_valuation
| 31.331081 | 88 | 0.563727 |
2cb12c4d4584cf6f238a2a2f0fe96c07ce3365fd | 8,064 | py | Python | examples/resnet-v1/resnet_v1.py | statisticszhang/Image-classification-caffe-model | 33084ca0841e768dae84db582e15bb29ffeeaaec | [
"MIT"
] | 1 | 2020-06-03T12:53:43.000Z | 2020-06-03T12:53:43.000Z | examples/resnet-v1/resnet_v1.py | statisticszhang/Image-classification-caffe-model | 33084ca0841e768dae84db582e15bb29ffeeaaec | [
"MIT"
] | null | null | null | examples/resnet-v1/resnet_v1.py | statisticszhang/Image-classification-caffe-model | 33084ca0841e768dae84db582e15bb29ffeeaaec | [
"MIT"
] | null | null | null | import caffe
from caffe import layers as L
from caffe import params as P
def residual_branch(bottom, base_output=64):
"""
input:4*base_output x n x n
output:4*base_output x n x n
:param base_output: base num_output of branch2
:param bottom: bottom layer
:return: layers
"""
branch2a,... | 51.363057 | 130 | 0.637773 |
2cb169a96cf55ed5e83fe9eb7891602b251f5fd7 | 3,145 | py | Python | app/commands/elastic.py | viert/knowledgehub | 295a66002f26d694e518af97ad80269d69d59adf | [
"MIT"
] | 8 | 2020-06-16T07:45:35.000Z | 2020-08-10T10:11:50.000Z | app/commands/elastic.py | viert/knowledgehub | 295a66002f26d694e518af97ad80269d69d59adf | [
"MIT"
] | 2 | 2021-10-06T18:31:08.000Z | 2022-02-19T03:32:29.000Z | app/commands/elastic.py | viert/knowledgehub | 295a66002f26d694e518af97ad80269d69d59adf | [
"MIT"
] | null | null | null | from datetime import datetime
from glasskit.commands import Command
from glasskit import ctx
from ask.models.post import BasePost
from ask import force_init_app
POST_INDEX_SETTINGS = {
"settings": {
"analysis": {
"normalizer": {
"lower": {
"type": "custom"... | 29.669811 | 109 | 0.480445 |
2cb4d9e9fa72ff7492cc09a76f5ecff9cc15231c | 6,350 | py | Python | PolygonLineTools/Scripts/split_by_area.py | Dan-Patterson/Tools_for_ArcGIS_Pro | b5c253d59d57bd1abe7e2433a77aed7d3ea22567 | [
"Info-ZIP"
] | 23 | 2020-05-15T18:40:25.000Z | 2022-03-31T08:44:39.000Z | PolygonLineTools/Scripts/split_by_area.py | Dan-Patterson/Tools_for_ArcGIS_Pro | b5c253d59d57bd1abe7e2433a77aed7d3ea22567 | [
"Info-ZIP"
] | 1 | 2021-12-14T16:47:00.000Z | 2021-12-15T03:06:26.000Z | PolygonLineTools/Scripts/split_by_area.py | Dan-Patterson/Tools_for_ArcGIS_Pro | b5c253d59d57bd1abe7e2433a77aed7d3ea22567 | [
"Info-ZIP"
] | 3 | 2021-08-09T05:42:19.000Z | 2022-03-31T08:44:59.000Z | # -*- coding: UTF-8 -*-
"""
split_by_area
===========
Script : split_by_area.py
Author : Dan_Patterson@carleton.ca
Modified: 2018-08-27
Purpose : tools for working with numpy arrays
Notes:
-----
The xs and ys form pairs with the first and last points being identical
The pairs are constructed ... | 31.435644 | 79 | 0.517008 |
2cb66c34c6dad5e2ecafad8d080c45ac92930ec1 | 2,081 | py | Python | clustering/utils.py | IhabBendidi/IIC-SimCLR-MoCo-clusterer | be04de5051aba1b181279eb759907ab21f480fcd | [
"Apache-2.0"
] | 12 | 2021-11-09T15:24:10.000Z | 2022-02-13T19:05:51.000Z | clustering/utils.py | IhabBendidi/IIC-SimCLR-MoCo-clusterer | be04de5051aba1b181279eb759907ab21f480fcd | [
"Apache-2.0"
] | null | null | null | clustering/utils.py | IhabBendidi/IIC-SimCLR-MoCo-clusterer | be04de5051aba1b181279eb759907ab21f480fcd | [
"Apache-2.0"
] | null | null | null | from scipy import linalg
from sklearn.decomposition import PCA
from scipy.optimize import linear_sum_assignment as linear_assignment
import numpy as np
"""
A function that takes a list of clusters, and a list of centroids for each cluster, and outputs the N max closest images in each cluster to its centroids
"""
def... | 35.87931 | 153 | 0.640077 |
2cb740471359d11f904828cc498bfc6b7c07a43b | 1,247 | py | Python | Prep/bbphone.py | armsky/Algorithms | 04fe858f001d7418f8e0eab454b779fe1e863483 | [
"Apache-2.0"
] | null | null | null | Prep/bbphone.py | armsky/Algorithms | 04fe858f001d7418f8e0eab454b779fe1e863483 | [
"Apache-2.0"
] | null | null | null | Prep/bbphone.py | armsky/Algorithms | 04fe858f001d7418f8e0eab454b779fe1e863483 | [
"Apache-2.0"
] | 2 | 2019-06-27T09:05:07.000Z | 2019-07-01T04:41:53.000Z | // This is the text editor interface.
// Anything you type or change here will be seen by the other person in real time.
import java.util.*;
public class HelloWorld {
public static boolean isSentence(String s, HashSet<String> d) {
return false;
}
public static void main(String[] args) {
... | 22.267857 | 82 | 0.597434 |
2cb9006dc93f30229a35a9a95092c8065ef3469e | 860 | py | Python | phantastes/urls.py | santeyio/phantastesproject | 5ce1e2cb59e8283fe280e01d0e185be62cd4001a | [
"MIT"
] | null | null | null | phantastes/urls.py | santeyio/phantastesproject | 5ce1e2cb59e8283fe280e01d0e185be62cd4001a | [
"MIT"
] | null | null | null | phantastes/urls.py | santeyio/phantastesproject | 5ce1e2cb59e8283fe280e01d0e185be62cd4001a | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.views.generic import TemplateView
from phantastes import views
from django.contrib import admin
urlpatterns = patterns(
"",
url(r"^$", views.index, name="home"),
url... | 35.833333 | 76 | 0.696512 |
2cba7250d153e2ae0ada8d707ceeee8f346b2d8c | 335 | py | Python | mox/manage.py | abouzek/mox | 35f1836a9aa9a320d0df8da77e3ebacaa1eb15c4 | [
"MIT"
] | null | null | null | mox/manage.py | abouzek/mox | 35f1836a9aa9a320d0df8da77e3ebacaa1eb15c4 | [
"MIT"
] | null | null | null | mox/manage.py | abouzek/mox | 35f1836a9aa9a320d0df8da77e3ebacaa1eb15c4 | [
"MIT"
] | null | null | null | import os, sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from flask.ext.script import Manager, Server
from app import app
manager = Manager(app)
manager.add_command("runserver", Server(
use_debugger = True,
use_reloader = True,
host = '0.0.0.0')
)
if __name__ == "__main__":
... | 19.705882 | 79 | 0.713433 |
2cc0826258661c4861e70f37cdbf8acd649ca6e6 | 5,035 | py | Python | train.py | sremedios/nifti_image_generator | ffd476fa3d12a2cfb12250d903efd2277dc3426b | [
"MIT"
] | 6 | 2019-07-11T18:00:19.000Z | 2022-01-27T22:50:57.000Z | train.py | sremedios/nifti_image_generator | ffd476fa3d12a2cfb12250d903efd2277dc3426b | [
"MIT"
] | 1 | 2019-02-26T14:20:32.000Z | 2019-02-26T14:20:32.000Z | train.py | sremedios/nifti_image_generator | ffd476fa3d12a2cfb12250d903efd2277dc3426b | [
"MIT"
] | 7 | 2019-01-07T19:30:51.000Z | 2021-05-17T19:23:23.000Z | '''
Samuel Remedios
NIH CC CNRM
Train PhiNet to classify MRI modalities
'''
import os
import json
from keras.callbacks import ModelCheckpoint, TensorBoard, ReduceLROnPlateau, EarlyStopping
from keras import backend as K
from keras.models import model_from_json
from models.phinet import phinet, phinet_2D
from models.mu... | 32.275641 | 94 | 0.58431 |
2cc35cd363ef4cfec9425fc3d0c72127f474a4df | 960 | py | Python | rehive/api/resources/company_resources.py | rehive/rehive-python | 72cf7208db8e99711ea8568073577be3459c79fc | [
"MIT"
] | 8 | 2017-06-23T13:33:59.000Z | 2022-01-17T10:55:23.000Z | rehive/api/resources/company_resources.py | rehive/rehive-python | 72cf7208db8e99711ea8568073577be3459c79fc | [
"MIT"
] | 59 | 2017-06-23T13:21:01.000Z | 2022-01-10T17:41:22.000Z | rehive/api/resources/company_resources.py | rehive/rehive-python | 72cf7208db8e99711ea8568073577be3459c79fc | [
"MIT"
] | 3 | 2017-10-12T18:43:29.000Z | 2018-12-26T09:38:42.000Z | from .base_resources import Resource, ResourceCollection, ResourceList
| 20.869565 | 70 | 0.667708 |
2cc3e1fe2b2d86ca07ffd45b8265bde07b843fe1 | 325,343 | py | Python | src/randomizer/randomizer/classes.py | DontBaguMe/IoGR | 3ab69c7a47133b82517aced5db5ece8f15d5727d | [
"Unlicense"
] | 12 | 2019-05-06T12:31:06.000Z | 2020-07-21T19:24:44.000Z | src/randomizer/randomizer/classes.py | DontBaguMe/IoGR | 3ab69c7a47133b82517aced5db5ece8f15d5727d | [
"Unlicense"
] | 2 | 2020-06-11T22:12:15.000Z | 2021-10-20T22:53:42.000Z | src/randomizer/randomizer/classes.py | DontBaguMe/IoGR | 3ab69c7a47133b82517aced5db5ece8f15d5727d | [
"Unlicense"
] | 7 | 2019-08-11T00:06:03.000Z | 2021-06-13T04:19:19.000Z | import copy
import time
from datetime import datetime
import binascii
import graphviz
import random
from .models.enums.start_location import StartLocation
from .models.enums.goal import Goal
from .models.enums.statue_req import StatueReq
from .models.enums.entrance_shuffle import EntranceShuffle
from .models.enums.ene... | 59.960007 | 236 | 0.462324 |
2cc43eb4f9599bc9a7ccc0a29be8b90564b75a49 | 8,938 | py | Python | src/MediaPlayer/Player/VLCPlayer.py | JKorf/MediaPi | 4b21bb9cfa692534d0098ad947dd99beb7b0c1ed | [
"MIT"
] | 2 | 2018-02-26T15:57:04.000Z | 2019-03-11T15:21:38.000Z | src/MediaPlayer/Player/VLCPlayer.py | JKorf/MediaPi | 4b21bb9cfa692534d0098ad947dd99beb7b0c1ed | [
"MIT"
] | 1 | 2018-07-25T16:36:11.000Z | 2018-07-25T16:36:11.000Z | src/MediaPlayer/Player/VLCPlayer.py | JKorf/MediaPi | 4b21bb9cfa692534d0098ad947dd99beb7b0c1ed | [
"MIT"
] | null | null | null | import datetime
import os
import time
from enum import Enum
import sys
from MediaPlayer.Player import vlc
from MediaPlayer.Player.vlc import libvlc_get_version, Media, MediaList
from Shared.Events import EventManager, EventType
from Shared.Logger import Logger, LogVerbosity
from Shared.Observable import Observable
fr... | 34.376923 | 125 | 0.634818 |
2cc4536cac3f4a836b4d31edbb9c035b10194cbe | 937 | bzl | Python | build/buildflag_header.bzl | Lynskylate/chromium-base-bazel | e68247d002809f0359e28ee7fc6c5c33de93ce9d | [
"BSD-3-Clause"
] | null | null | null | build/buildflag_header.bzl | Lynskylate/chromium-base-bazel | e68247d002809f0359e28ee7fc6c5c33de93ce9d | [
"BSD-3-Clause"
] | null | null | null | build/buildflag_header.bzl | Lynskylate/chromium-base-bazel | e68247d002809f0359e28ee7fc6c5c33de93ce9d | [
"BSD-3-Clause"
] | 1 | 2020-04-30T08:12:46.000Z | 2020-04-30T08:12:46.000Z | # Primitive reimplementation of the buildflag_header scripts used in the gn build
buildflag_header = rule(
implementation = _buildflag_header_impl,
attrs = {
"flags": attr.string_dict(mandatory = True),
"header": attr.string(mandatory = True),
"header_dir": attr.string(),
},
out... | 39.041667 | 88 | 0.638207 |
2cc49cc05dd233210db2a108c300fb21af3b9cd7 | 737 | py | Python | test/test_led_matrix.py | soundmaking/led8x8m | 383fe39c9e328951a25fd23298a4a4c11e8c964e | [
"MIT"
] | null | null | null | test/test_led_matrix.py | soundmaking/led8x8m | 383fe39c9e328951a25fd23298a4a4c11e8c964e | [
"MIT"
] | null | null | null | test/test_led_matrix.py | soundmaking/led8x8m | 383fe39c9e328951a25fd23298a4a4c11e8c964e | [
"MIT"
] | null | null | null | import unittest
from led8x8m import LedMatrix
| 35.095238 | 67 | 0.68114 |
2cc64e7427ad44d75120cd7e72ff13af6fe08245 | 1,240 | py | Python | Algorithms/0538_Convert_BST_to_Greater_Tree/Python/Convert_BST_to_Greater_Tree_Solution_1.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null | Algorithms/0538_Convert_BST_to_Greater_Tree/Python/Convert_BST_to_Greater_Tree_Solution_1.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null | Algorithms/0538_Convert_BST_to_Greater_Tree/Python/Convert_BST_to_Greater_Tree_Solution_1.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null |
# Space: O(n)
# Time: O(n)
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
| 26.956522 | 84 | 0.533065 |
2cc678dfef8cb0874fecfe2385fa62869906f077 | 14,652 | py | Python | metasploit_gym/action/exploit.py | phreakAI/MetasploitGym | 128b977ccebbbb026784cba0ecd82182fdfb0cdb | [
"MIT"
] | 6 | 2021-10-01T20:05:24.000Z | 2022-03-24T20:14:41.000Z | metasploit_gym/action/exploit.py | phreakAI/MetasploitGym | 128b977ccebbbb026784cba0ecd82182fdfb0cdb | [
"MIT"
] | 1 | 2021-12-13T09:24:56.000Z | 2022-03-27T02:08:14.000Z | metasploit_gym/action/exploit.py | phreakAI/MetasploitGym | 128b977ccebbbb026784cba0ecd82182fdfb0cdb | [
"MIT"
] | null | null | null | """Exploits currently supported
Straightforward to add more following the basic model presented here
"""
from .action import Exploit
import time
| 34.556604 | 143 | 0.628651 |
2cc7f3efda8117742ff48850a1183416a5ff0254 | 10,178 | py | Python | pennylane/templates/tensornetworks/mera.py | therooler/pennylane | 88a8a5960a2ffd218a12f85ace632021eef2abf5 | [
"Apache-2.0"
] | null | null | null | pennylane/templates/tensornetworks/mera.py | therooler/pennylane | 88a8a5960a2ffd218a12f85ace632021eef2abf5 | [
"Apache-2.0"
] | null | null | null | pennylane/templates/tensornetworks/mera.py | therooler/pennylane | 88a8a5960a2ffd218a12f85ace632021eef2abf5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | 38.996169 | 154 | 0.609255 |
2ccaa53b5e3038c5d05c44b30a9de09a9e84933a | 3,106 | py | Python | paraview/addLinePlotHopefully.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | paraview/addLinePlotHopefully.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | paraview/addLinePlotHopefully.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
PlotOverLine6 = GetActiveSource()
PlotOverLine6.Input = []
PlotOverLine6.Source = []
XYChartView1 = GetRenderView()
Delete(PlotOverLine6)
AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 1.0
Ani... | 38.345679 | 213 | 0.808113 |
2ccae3f2f4d0694e8447d48bb97cc62a0e4c0a05 | 1,420 | py | Python | Sprint-Challenge/acme_test.py | martinclehman/DS-Unit-3-Sprint-1-Software-Engineering | 7bca22a2b398ee57021bbe7efd66e3d6cd55f527 | [
"MIT"
] | null | null | null | Sprint-Challenge/acme_test.py | martinclehman/DS-Unit-3-Sprint-1-Software-Engineering | 7bca22a2b398ee57021bbe7efd66e3d6cd55f527 | [
"MIT"
] | null | null | null | Sprint-Challenge/acme_test.py | martinclehman/DS-Unit-3-Sprint-1-Software-Engineering | 7bca22a2b398ee57021bbe7efd66e3d6cd55f527 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import unittest
from acme import Product
from acme_report import generate_products, ADJECTIVES, NOUNS
if __name__ == '__main__':
unittest.main()
| 30.869565 | 68 | 0.650704 |
2ccc30297fe2bc48b79aa3af93e00e68981d2c5f | 909 | py | Python | cogs/meta.py | popop098/Teasia-Bot.py | 764c3b1cab8e07a9e98690263ad94011ee26ab72 | [
"MIT"
] | 1 | 2020-12-21T12:05:25.000Z | 2020-12-21T12:05:25.000Z | cogs/meta.py | popop098/Taesia-Bot.py | 764c3b1cab8e07a9e98690263ad94011ee26ab72 | [
"MIT"
] | null | null | null | cogs/meta.py | popop098/Taesia-Bot.py | 764c3b1cab8e07a9e98690263ad94011ee26ab72 | [
"MIT"
] | 1 | 2021-10-30T03:45:42.000Z | 2021-10-30T03:45:42.000Z | from discord.ext import commands
import discord
from datetime import datetime
from src import util
from tools.checker import Checker,Embed | 29.322581 | 75 | 0.609461 |
2ccc32a9d54e1ab42568aa7d3865a9dbd5b08751 | 2,399 | py | Python | sciencebeam_trainer_delft/utils/cloud_support.py | elifesciences/sciencebeam-trainer-delft | 0f7da96cdf32acf1538a5fded192255158883ba0 | [
"MIT"
] | 5 | 2019-10-19T13:00:34.000Z | 2022-01-16T17:31:42.000Z | sciencebeam_trainer_delft/utils/cloud_support.py | elifesciences/sciencebeam-trainer-delft | 0f7da96cdf32acf1538a5fded192255158883ba0 | [
"MIT"
] | 162 | 2019-08-22T10:28:46.000Z | 2022-03-28T17:33:16.000Z | sciencebeam_trainer_delft/utils/cloud_support.py | elifesciences/sciencebeam-trainer-delft | 0f7da96cdf32acf1538a5fded192255158883ba0 | [
"MIT"
] | null | null | null | import os
import logging
from contextlib import contextmanager
from tempfile import TemporaryDirectory, mkdtemp
from pathlib import Path
from six import string_types
from sciencebeam_trainer_delft.utils.io import copy_file, path_join
LOGGER = logging.getLogger(__name__)
def patch_cloud_support():
# de... | 31.155844 | 87 | 0.754481 |
2ccccaa55f701008cb48549110c575227e96696f | 1,048 | py | Python | gitlab/snippets.py | codeEmitter/token-hunter | 46809c64074b68bb819ea50911bc65f246425106 | [
"BSD-3-Clause"
] | 35 | 2021-01-06T08:26:38.000Z | 2022-01-18T21:18:46.000Z | gitlab/snippets.py | codeEmitter/token-hunter | 46809c64074b68bb819ea50911bc65f246425106 | [
"BSD-3-Clause"
] | null | null | null | gitlab/snippets.py | codeEmitter/token-hunter | 46809c64074b68bb819ea50911bc65f246425106 | [
"BSD-3-Clause"
] | 13 | 2020-11-04T05:37:43.000Z | 2022-01-12T10:22:59.000Z | from logging import warning
from api import gitlab
from utilities import validate, types
gitlab = gitlab.GitLab(types.Arguments().url)
| 29.942857 | 84 | 0.634542 |
2cccf7b04a13dc0853d0b836ac33f0e371b7ca36 | 670 | py | Python | login/weibo_with_known_cookie.py | bobjiangps/python-spider-example | 7021dc3052fe1a667b79b810403e8ae3f03253b3 | [
"MIT"
] | null | null | null | login/weibo_with_known_cookie.py | bobjiangps/python-spider-example | 7021dc3052fe1a667b79b810403e8ae3f03253b3 | [
"MIT"
] | 3 | 2021-03-31T19:20:41.000Z | 2022-03-12T01:03:06.000Z | login/weibo_with_known_cookie.py | bobjiangps/python-spider-example | 7021dc3052fe1a667b79b810403e8ae3f03253b3 | [
"MIT"
] | null | null | null | import requests
if __name__ == "__main__":
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
'User-Agent': 'Mozilla/5.0 (Macintosh; ... | 41.875 | 145 | 0.652239 |
2ccd33542df9831359cfe4fc038aded21af9057a | 6,708 | py | Python | wcpan/watchdog/watcher.py | legnaleurc/wcpan.watchdog | a4f5b560327f207a344aae18091ecf6bbeba8189 | [
"MIT"
] | null | null | null | wcpan/watchdog/watcher.py | legnaleurc/wcpan.watchdog | a4f5b560327f207a344aae18091ecf6bbeba8189 | [
"MIT"
] | null | null | null | wcpan/watchdog/watcher.py | legnaleurc/wcpan.watchdog | a4f5b560327f207a344aae18091ecf6bbeba8189 | [
"MIT"
] | null | null | null | from __future__ import annotations
__all__ = ('WatcherContext', 'Watcher')
import asyncio
import os
import time
from concurrent.futures import Executor, ThreadPoolExecutor
from contextlib import AsyncExitStack
from functools import partial
from typing import Awaitable, Callable, Optional, Protocol, Set, TypeVar, Un... | 33.044335 | 79 | 0.621348 |
2ccd33c7f828e66ad87c73a0b3febc441c938f51 | 2,709 | py | Python | views/orderbook.py | ZigaMr/borzaKriptovalut-master | a199a9e01ae16800d7f9267424674f23b062b593 | [
"MIT"
] | null | null | null | views/orderbook.py | ZigaMr/borzaKriptovalut-master | a199a9e01ae16800d7f9267424674f23b062b593 | [
"MIT"
] | null | null | null | views/orderbook.py | ZigaMr/borzaKriptovalut-master | a199a9e01ae16800d7f9267424674f23b062b593 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import requests
import pandas as pd
import json
data = requests.get(r'https://www.bitstamp.net/api/v2/order_book/ethbtc')
data = data.json()
bids = pd.DataFrame()
bids['quantity'] = [i[1] for i in data['bids']]
bids['price'] = [i[0] for i in data['bids']]
asks = pd.DataFrame()
asks['pr... | 30.1 | 107 | 0.601329 |
2ccdb0b6487145d0f81802a42afd953383cafac6 | 525 | py | Python | ex23.py | PhyuAye/Python_exercises-1 | 3a4049d7af5d0bb3a13b89f3040c9e26a888fea6 | [
"MIT"
] | null | null | null | ex23.py | PhyuAye/Python_exercises-1 | 3a4049d7af5d0bb3a13b89f3040c9e26a888fea6 | [
"MIT"
] | null | null | null | ex23.py | PhyuAye/Python_exercises-1 | 3a4049d7af5d0bb3a13b89f3040c9e26a888fea6 | [
"MIT"
] | 1 | 2018-06-26T08:29:44.000Z | 2018-06-26T08:29:44.000Z | import sys
script, input_encoding, error = sys.argv
line = language_file.readline()
if line:
print_line(line, encoding, errors)
return main(language_file, encoding, errors)
next_lang = line.strip()
raw_bytes = next_lang.encode(encoding, errors=errors)
cooked_string = raw_bytes.decode(encoding, errors=errors)
print(raw_... | 35 | 57 | 0.777143 |
2ccddb9cadd2a8adb62f81d94b7e34242493a393 | 5,728 | py | Python | src/imagedata/formats/__init__.py | erling6232/imagedata | 69226b317ff43eb52ed48503582e5770bcb47ec4 | [
"MIT"
] | 1 | 2021-09-02T07:20:19.000Z | 2021-09-02T07:20:19.000Z | src/imagedata/formats/__init__.py | erling6232/imagedata | 69226b317ff43eb52ed48503582e5770bcb47ec4 | [
"MIT"
] | 3 | 2018-02-28T09:54:21.000Z | 2022-03-22T10:05:39.000Z | src/imagedata/formats/__init__.py | erling6232/imagedata | 69226b317ff43eb52ed48503582e5770bcb47ec4 | [
"MIT"
] | null | null | null | """This module provides plugins for various imaging formats.
Standard plugins provides support for DICOM and Nifti image file formats.
"""
# Copyright (c) 2013-2018 Erling Andersen, Haukeland University Hospital, Bergen, Norway
import logging
import sys
import numpy as np
logger = logging.getLogger(__name__)
(SOR... | 26.155251 | 101 | 0.638268 |
2ccdff6aa866a17cd0285318cd41d8c54ce3426e | 9,652 | py | Python | webservice/monitor/autoMarkTimeOutPR.py | Jiangxinz/Paddle-bot | 87a1c381f2ca6a31d5bf665945625f6710f5292e | [
"Apache-2.0"
] | 14 | 2020-05-15T01:24:22.000Z | 2022-02-23T09:03:50.000Z | webservice/monitor/autoMarkTimeOutPR.py | Jiangxinz/Paddle-bot | 87a1c381f2ca6a31d5bf665945625f6710f5292e | [
"Apache-2.0"
] | 18 | 2020-05-06T09:45:31.000Z | 2021-12-29T13:00:51.000Z | webservice/monitor/autoMarkTimeOutPR.py | Jiangxinz/Paddle-bot | 87a1c381f2ca6a31d5bf665945625f6710f5292e | [
"Apache-2.0"
] | 11 | 2020-04-28T11:17:00.000Z | 2022-02-14T01:43:27.000Z | import os
import aiohttp
import asyncio
import json
import time
import datetime
import logging
import gidgethub
import requests
from gidgethub import aiohttp as gh_aiohttp
import sys
import pandas as pd
sys.path.append("..")
from utils.auth import get_jwt, get_installation, get_installation_access_token
from utils.test... | 40.898305 | 160 | 0.527455 |
2cce9c4cd62357908959f1447500ae87d65847f9 | 2,579 | py | Python | messaging/messaging/client.py | Cornices/example | b13acfe9cf04badb326e8c1122149a81da739371 | [
"Apache-2.0"
] | 1 | 2020-06-08T09:03:40.000Z | 2020-06-08T09:03:40.000Z | messaging/messaging/client.py | Cornices/example | b13acfe9cf04badb326e8c1122149a81da739371 | [
"Apache-2.0"
] | 2 | 2017-07-11T14:04:21.000Z | 2022-01-11T14:52:32.000Z | messaging/messaging/client.py | Cornices/example | b13acfe9cf04badb326e8c1122149a81da739371 | [
"Apache-2.0"
] | 4 | 2017-03-14T14:22:57.000Z | 2021-04-13T09:37:24.000Z | import threading
import urllib2
import json
import time
import curses
_SERVER = 'http://localhost:6543'
if __name__ == '__main__':
shell()
| 23.87963 | 64 | 0.545173 |
e2bc3af3fad8262e4f0cc2a8d1f846408ae0a6c0 | 21 | py | Python | datasets/__init__.py | zack466/autoreg-sr | 88146370c04bc299c0f4fa3a43d9dbc237bb102c | [
"BSD-3-Clause"
] | null | null | null | datasets/__init__.py | zack466/autoreg-sr | 88146370c04bc299c0f4fa3a43d9dbc237bb102c | [
"BSD-3-Clause"
] | null | null | null | datasets/__init__.py | zack466/autoreg-sr | 88146370c04bc299c0f4fa3a43d9dbc237bb102c | [
"BSD-3-Clause"
] | null | null | null | from .div2k import *
| 10.5 | 20 | 0.714286 |
e2bce366f9cb046b38a472eee939a2538e41a996 | 2,993 | py | Python | costar_models/python/costar_models/trajectory.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | costar_models/python/costar_models/trajectory.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | costar_models/python/costar_models/trajectory.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z | from .abstract import AbstractAgentBasedModel
import keras.backend as K
import numpy as np
from tensorflow import TensorShape
from keras.layers import Dense, Reshape
def AddSamplerLayer(x, num_samples, traj_length, feature_size, activation=None):
'''
Size of x must be reasonable. This turns the dense input ... | 33.255556 | 80 | 0.659205 |
e2bd10babdd8ebe01076d27ea6c764ee6769a395 | 351 | py | Python | CV0101EN-03-image_Region_of_img.py | reddyprasade/Computer-Vision-with-Python | 8eebec61f0fdacb05e122460d6845a32ae506c8f | [
"Apache-2.0"
] | null | null | null | CV0101EN-03-image_Region_of_img.py | reddyprasade/Computer-Vision-with-Python | 8eebec61f0fdacb05e122460d6845a32ae506c8f | [
"Apache-2.0"
] | null | null | null | CV0101EN-03-image_Region_of_img.py | reddyprasade/Computer-Vision-with-Python | 8eebec61f0fdacb05e122460d6845a32ae506c8f | [
"Apache-2.0"
] | null | null | null | # Image ROI(Region of Images)
import cv2 as cv
img = cv.imread('Photes/messi.jpg')
cv.imshow('Orginal Messi_Football',img)
ball = img[280:340, 330:390]
img[273:333, 100:160] = ball
cv.imshow('Change Messi_Football',img)
"""
import matplotlib.pyplot as plt
data = plt.imread('Photes/messi.jpg')
plt.... | 17.55 | 40 | 0.669516 |
e2bddb86848e5c95d116992f9ebaa02ffddfa4b9 | 26,717 | py | Python | dialect/parsetab.py | ACov96/dialect | c739a2bba6e30805b8db1f5743a1eb2faac5c578 | [
"MIT"
] | 1 | 2019-09-21T22:54:50.000Z | 2019-09-21T22:54:50.000Z | dialect/parsetab.py | ACov96/dialect | c739a2bba6e30805b8db1f5743a1eb2faac5c578 | [
"MIT"
] | 1 | 2019-09-22T22:21:00.000Z | 2019-09-22T22:36:32.000Z | dialect/parsetab.py | ACov96/dialect | c739a2bba6e30805b8db1f5743a1eb2faac5c578 | [
"MIT"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'statement_listleftPLUSMINUSleftMULTIPLYDIVIDEAND ATOM BANG BOOL COLON COMMA DIVIDE ELIF ELSE END EQUAL EXIT FUN GT ID IF IMPORT LBRACE LBRACKET LPAREN LT MAC MINUS MULT... | 249.691589 | 14,163 | 0.653966 |
e2bfcef93fc96b8dc91446c56c75aa9e0e7b89e2 | 5,253 | py | Python | hw12/myscript.py | ranstotz/ece_3822 | 0fad15070f9047a9eccdab9178e4a38cfc148987 | [
"MIT"
] | null | null | null | hw12/myscript.py | ranstotz/ece_3822 | 0fad15070f9047a9eccdab9178e4a38cfc148987 | [
"MIT"
] | null | null | null | hw12/myscript.py | ranstotz/ece_3822 | 0fad15070f9047a9eccdab9178e4a38cfc148987 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# import required modules:
#
import os
import sys
import string
import random
from random import shuffle
from pathlib2 import Path
import linecache
import time
# This class shuffles songs without repeating and keeps track of where
# it left off. See '-help' option for more details.
#
# main: th... | 30.540698 | 241 | 0.524843 |
e2c30ee2c5287f6ba3a00a3c1a67dd19f25a94b6 | 3,151 | py | Python | tests/conftest.py | RonnyPfannschmidt/python-step-series | 1ecdcac521e951a9c8615ee45bbbb73eae4c6c1f | [
"MIT"
] | null | null | null | tests/conftest.py | RonnyPfannschmidt/python-step-series | 1ecdcac521e951a9c8615ee45bbbb73eae4c6c1f | [
"MIT"
] | null | null | null | tests/conftest.py | RonnyPfannschmidt/python-step-series | 1ecdcac521e951a9c8615ee45bbbb73eae4c6c1f | [
"MIT"
] | null | null | null | """conftest.py for stepseries."""
from threading import Event
from typing import Dict, Tuple
import pytest
from stepseries.responses import DestIP
from stepseries.step400 import STEP400
# store history of failures per test class name and per index in parametrize (if parametrize used)
_test_failed_incremental: Dict[... | 31.828283 | 98 | 0.653443 |
e2c3370cf74c6e03caab93b859710a1f281a0702 | 1,334 | py | Python | scripts/run_servers.py | jeeberhardt/visualize | 9ecc01d0b46a7aaa3a6459c567ba770704a71ec4 | [
"MIT"
] | 4 | 2017-11-09T09:24:02.000Z | 2019-06-05T19:44:30.000Z | scripts/run_servers.py | jeeberhardt/visualize | 9ecc01d0b46a7aaa3a6459c567ba770704a71ec4 | [
"MIT"
] | null | null | null | scripts/run_servers.py | jeeberhardt/visualize | 9ecc01d0b46a7aaa3a6459c567ba770704a71ec4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Start Pymol and Bokeh server """
from __future__ import print_function
import time
import shlex
import subprocess
__author__ = "Jrme Eberhardt"
__copyright__ = "Copyright 2016, Jrme Eberhardt"
__lience__ = "MIT"
__maintainer__ = "Jrme Eberhardt"
__email__ = "qksone... | 23.403509 | 78 | 0.678411 |
e2c47367897a4e2e747c0d19c8cea05565be28a7 | 6,113 | py | Python | django_sso_app/core/authentication/backends/app.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | 1 | 2021-11-16T15:16:08.000Z | 2021-11-16T15:16:08.000Z | django_sso_app/core/authentication/backends/app.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | django_sso_app/core/authentication/backends/app.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | import logging
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
from ...apps.users.utils import fetch_remote_user, create_local_user_from_remote_backend, \
update_local_user_from_rem... | 35.33526 | 120 | 0.625879 |
e2c4e8315ad036c2df5dd6cac8f7608bc7be1a30 | 768 | py | Python | tds_django/creation.py | cnanyi/tds-django | 45f32b064de1403a138f67fe944270d228988ec9 | [
"BSD-3-Clause"
] | 1 | 2021-11-23T04:23:43.000Z | 2021-11-23T04:23:43.000Z | tds_django/creation.py | cnanyi/tds-django | 45f32b064de1403a138f67fe944270d228988ec9 | [
"BSD-3-Clause"
] | 1 | 2022-01-14T09:21:04.000Z | 2022-01-25T18:06:35.000Z | tds_django/creation.py | cnanyi/tds-django | 45f32b064de1403a138f67fe944270d228988ec9 | [
"BSD-3-Clause"
] | 1 | 2021-11-23T04:24:00.000Z | 2021-11-23T04:24:00.000Z | from django.db.backends.base.creation import BaseDatabaseCreation
| 34.909091 | 85 | 0.59375 |
e2c75223c441e931f761b5c72b816629ae0fb22c | 656 | py | Python | mbrl-tools/tests/small_acrobot/submissions/dummy_kit/generative_regressor.py | ramp-kits/rl_simulator | c651904b890c7e97cbb29ffae82e00a76788c88c | [
"BSD-3-Clause"
] | 11 | 2021-03-24T08:57:58.000Z | 2022-03-23T14:25:17.000Z | mbrl-tools/tests/small_acrobot/submissions/dummy_kit/generative_regressor.py | ramp-kits/rl_simulator | c651904b890c7e97cbb29ffae82e00a76788c88c | [
"BSD-3-Clause"
] | 1 | 2020-10-23T17:13:57.000Z | 2021-03-23T17:46:24.000Z | mbrl-tools/tests/small_acrobot/submissions/dummy_kit/generative_regressor.py | ramp-kits/rl_simulator | c651904b890c7e97cbb29ffae82e00a76788c88c | [
"BSD-3-Clause"
] | 1 | 2021-06-17T01:18:31.000Z | 2021-06-17T01:18:31.000Z | import numpy as np
from rampwf.utils import BaseGenerativeRegressor
| 28.521739 | 60 | 0.655488 |
e2c7ac772ba67bc802ebf29dae748fc6d17103e6 | 29,982 | py | Python | fluxcompensator/image.py | koepferl/FluxCompensator | 751cac08971845069da8c962bc83459f091ba0f8 | [
"BSD-2-Clause"
] | 9 | 2017-06-22T15:29:01.000Z | 2021-03-24T11:55:41.000Z | fluxcompensator/image.py | koepferl/FluxCompensator | 751cac08971845069da8c962bc83459f091ba0f8 | [
"BSD-2-Clause"
] | 1 | 2020-06-16T21:01:51.000Z | 2020-06-16T21:01:51.000Z | fluxcompensator/image.py | koepferl/FluxCompensator | 751cac08971845069da8c962bc83459f091ba0f8 | [
"BSD-2-Clause"
] | 5 | 2017-06-22T14:57:24.000Z | 2020-06-14T16:46:44.000Z | from copy import deepcopy
import os
ROOT = os.path.dirname(os.path.abspath(__file__)) + '/'
import numpy as np
from numpy.random import normal
from astropy import log as logger
from astropy.io import fits
from astropy.wcs import WCS
from .psf import GaussianPSF, FilePSF, FunctionPSF
from .utils.plot import MakePlots... | 33.9547 | 175 | 0.550797 |
e2c813723c1876d28ad71bddb2cb82d4afe3cc1c | 435 | py | Python | generator.py | madkira/SCXML_to_FSM_for_Arduino | 2e2443eca70ff6d5a8b8ac8c32b0c7e1d4440201 | [
"MIT"
] | 1 | 2020-05-13T23:03:19.000Z | 2020-05-13T23:03:19.000Z | generator.py | madkira/SCXML_to_FSM_for_Arduino | 2e2443eca70ff6d5a8b8ac8c32b0c7e1d4440201 | [
"MIT"
] | null | null | null | generator.py | madkira/SCXML_to_FSM_for_Arduino | 2e2443eca70ff6d5a8b8ac8c32b0c7e1d4440201 | [
"MIT"
] | 1 | 2019-01-20T12:46:37.000Z | 2019-01-20T12:46:37.000Z | #!/usr/bin/python
import argparse
from src.SCXML_Parser.Scxml_parsor import Scxml_parsor
from src.arduino_helper.generate_fsm import generate_fsm
parser = argparse.ArgumentParser()
parser.add_argument('-f', action='store', dest='file', type=str, required=False, default="fsm.xml")
inargs = parser.parse_args()
print ... | 22.894737 | 99 | 0.77931 |
e2c87ee36a16287beb7f717f937785ecfe37b5d0 | 769 | py | Python | data/external/repositories/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_full/rebuild_code.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2015-11-08T05:19:43.000Z | 2015-11-08T05:19:43.000Z | microsoft malware/Malware_Say_No_To_Overfitting/kaggle_Microsoft_malware_small/rebuild_code.py | bikash/kaggleCompetition | c168f5a713305f6cf6ef41db60d8b1f4cdceb2b1 | [
"Apache-2.0"
] | null | null | null | microsoft malware/Malware_Say_No_To_Overfitting/kaggle_Microsoft_malware_small/rebuild_code.py | bikash/kaggleCompetition | c168f5a713305f6cf6ef41db60d8b1f4cdceb2b1 | [
"Apache-2.0"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import os,array
import pickle
import numpy as np
import sys
xid=pickle.load(open(sys.argv[1]))
asm_code_path=sys.argv[2]
train_or_test=asm_code_path.split('_')[-1]
X = np.zeros((len(xid),2000))
for cc,i in enumerate(xid):
f=open(asm_code_path+'/'+i+'.asm')
ln = os.path.getsize(asm_code_path+'/'+i+'.asm') # len... | 29.576923 | 78 | 0.63329 |
e2c91d72449fad349a8ca2ab17e151f78840d950 | 1,961 | py | Python | x509_3_validation_certs.py | askpatrickw/azure_iot_x509_helpers | 2bb9f1722f8e018786fcc05589adf40f7597bfab | [
"Unlicense"
] | null | null | null | x509_3_validation_certs.py | askpatrickw/azure_iot_x509_helpers | 2bb9f1722f8e018786fcc05589adf40f7597bfab | [
"Unlicense"
] | null | null | null | x509_3_validation_certs.py | askpatrickw/azure_iot_x509_helpers | 2bb9f1722f8e018786fcc05589adf40f7597bfab | [
"Unlicense"
] | null | null | null | """
Generate Validation Certificate bases on Azure IoT Hub Verification Code
Based on sample code from the cryptography library docs:
https://cryptography.io/en/latest/x509/tutorial/#creating-a-self-signed-certificate
"""
import datetime
from pathlib import Path
from cryptography.hazmat.primitives import has... | 36.314815 | 99 | 0.704233 |
e2c9a924fe0897e10007fced991eb0673d76230d | 1,307 | py | Python | PuThresholdTuning/python/akPu4PFJetSequence10_cff.py | mverwe/JetRecoValidation | ee8b3fd94bac16390b367dc5030489738ff67958 | [
"CC0-1.0"
] | null | null | null | PuThresholdTuning/python/akPu4PFJetSequence10_cff.py | mverwe/JetRecoValidation | ee8b3fd94bac16390b367dc5030489738ff67958 | [
"CC0-1.0"
] | null | null | null | PuThresholdTuning/python/akPu4PFJetSequence10_cff.py | mverwe/JetRecoValidation | ee8b3fd94bac16390b367dc5030489738ff67958 | [
"CC0-1.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.jets.akPu4PFJetSequence_PbPb_mc_cff import *
#PU jets with 10 GeV threshold for subtraction
akPu4PFmatch10 = akPu4PFmatch.clone(src = cms.InputTag("akPu4PFJets10"))
akPu4PFparton10 = akPu4PFparton.clone(src = cms.InputTag("akPu4PFJets10"))
ak... | 52.28 | 130 | 0.561591 |
e2cb06b712c978cf2cdaaef7401e96574a50da51 | 2,796 | py | Python | annotationweb/urls.py | andreped/annotationweb | 80b0e96a4dbefdc39a83e6cf9ffb0b623cf417ee | [
"MIT"
] | null | null | null | annotationweb/urls.py | andreped/annotationweb | 80b0e96a4dbefdc39a83e6cf9ffb0b623cf417ee | [
"MIT"
] | null | null | null | annotationweb/urls.py | andreped/annotationweb | 80b0e96a4dbefdc39a83e6cf9ffb0b623cf417ee | [
"MIT"
] | null | null | null | from django.conf.urls import include
from django.urls import path
from django.contrib import admin
from . import views
app_name = 'annotationweb'
urlpatterns = [
path('', views.index, name='index'),
path('datasets/', views.datasets, name='datasets'),
path('add-image-sequence/<int:subject_id>/', views.add_i... | 60.782609 | 117 | 0.718169 |
e2cb6ee5e64d50fb394883bc6a0cf789076e9e45 | 7,015 | py | Python | vae/decoder/vae_conv_util.py | VincentStimper/hmc-hyperparameter-tuning | a0464cd80000c7cd45a388d6a5f76c0f1a76104d | [
"MIT"
] | 2 | 2021-08-08T16:39:55.000Z | 2021-08-25T09:48:22.000Z | vae/decoder/vae_conv_util.py | VincentStimper/hmc-hyperparameter-tuning | a0464cd80000c7cd45a388d6a5f76c0f1a76104d | [
"MIT"
] | null | null | null | vae/decoder/vae_conv_util.py | VincentStimper/hmc-hyperparameter-tuning | a0464cd80000c7cd45a388d6a5f76c0f1a76104d | [
"MIT"
] | 1 | 2022-02-12T16:57:32.000Z | 2022-02-12T16:57:32.000Z | import numpy as np
import tensorflow as tf
def init_weights(input_size, output_size, constant=1.0, seed=123):
""" Glorot and Bengio, 2010's initialization of network weights"""
scale = constant * np.sqrt(6.0 / (input_size + output_size))
if output_size > 0:
return tf.random_uniform((input_size, ... | 34.053398 | 93 | 0.573913 |
e2cba6d54f96928921ab9588923d5e1065f14279 | 2,237 | py | Python | basalganglia/reinforce/networks/policy_network.py | ruanguoqing/basal-ganglia | a93e4b0aa00b0335afbfada1e956d57d0877c660 | [
"Unlicense"
] | 2 | 2020-01-04T08:49:30.000Z | 2020-05-20T09:43:59.000Z | basalganglia/reinforce/networks/policy_network.py | ruanguoqing/basal-ganglia | a93e4b0aa00b0335afbfada1e956d57d0877c660 | [
"Unlicense"
] | null | null | null | basalganglia/reinforce/networks/policy_network.py | ruanguoqing/basal-ganglia | a93e4b0aa00b0335afbfada1e956d57d0877c660 | [
"Unlicense"
] | null | null | null | import torch.nn as nn, torch.nn.functional as F, torch.distributions as D, torch.nn.init as init
from basalganglia.reinforce.util.torch_util import *
| 40.672727 | 101 | 0.634332 |
e2cc20474c2caa1bc3247bfe362cc69c7776aa35 | 4,894 | py | Python | tests/frame/test_frame_publishing.py | SimLeek/displayarray | 64fe1e2094448d86d743536eedae0039ca339063 | [
"MIT"
] | 8 | 2019-11-01T19:14:36.000Z | 2021-08-18T17:55:43.000Z | tests/frame/test_frame_publishing.py | SimLeek/displayarray | 64fe1e2094448d86d743536eedae0039ca339063 | [
"MIT"
] | 12 | 2019-10-01T06:06:48.000Z | 2020-04-29T23:05:58.000Z | tests/frame/test_frame_publishing.py | SimLeek/displayarray | 64fe1e2094448d86d743536eedae0039ca339063 | [
"MIT"
] | 3 | 2018-04-03T01:29:21.000Z | 2019-06-27T02:52:34.000Z | from displayarray.frame.frame_publishing import pub_cam_loop_opencv, pub_cam_thread
import displayarray
import mock
import pytest
import cv2
from displayarray.frame.np_to_opencv import NpCam
import numpy as np
import displayarray.frame.subscriber_dictionary as subd
import displayarray.frame.frame_publishing as fpub
... | 32.410596 | 83 | 0.625868 |
e2cc67d619fea277f8b31087d0bb55dfe4a8d619 | 308 | py | Python | execicios/ex019/sorteio.py | Israel97f/Exercicios-de-Python | 5d3054187977deeb3fadbd7bb1cdee035c609a61 | [
"MIT"
] | null | null | null | execicios/ex019/sorteio.py | Israel97f/Exercicios-de-Python | 5d3054187977deeb3fadbd7bb1cdee035c609a61 | [
"MIT"
] | null | null | null | execicios/ex019/sorteio.py | Israel97f/Exercicios-de-Python | 5d3054187977deeb3fadbd7bb1cdee035c609a61 | [
"MIT"
] | null | null | null | import random
a1 = str(input(' diga o nome do aluno 1 '))
a2 = str(input(' diga o nome do aluno 2 '))
a3 = str(input(' diga o nome do aluno 3 '))
a4 = str(input(' diga o nome do aluno 4 '))
lista = [a1, a2, a3, a4]
escolhido = random.choice(lista)
print('O aluno soteado o aluno {}'.format(escolhido))
| 25.666667 | 55 | 0.646104 |
e2cd02aade65d0b6969f2b1d510da3c44e2f7198 | 563 | py | Python | rabbitmq/python/topic_producer.py | alovn/tutorials | 84f9c5fc563e042eeff9ffa4bce4eaae0fcc6e9a | [
"MIT"
] | 7 | 2019-12-20T12:37:37.000Z | 2021-12-15T08:42:10.000Z | rabbitmq/python/topic_producer.py | alovn/tutorials | 84f9c5fc563e042eeff9ffa4bce4eaae0fcc6e9a | [
"MIT"
] | null | null | null | rabbitmq/python/topic_producer.py | alovn/tutorials | 84f9c5fc563e042eeff9ffa4bce4eaae0fcc6e9a | [
"MIT"
] | 1 | 2021-12-15T08:44:55.000Z | 2021-12-15T08:44:55.000Z | # encoding:utf-8
import pika
import time
credentials = pika.PlainCredentials('guest', 'guest')
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='s1004.lab.org',
port=5672,
virtual_host='/',
credentials=credentials))
channel = connection.channel()
channel.exchange_declare(exchange='... | 24.478261 | 63 | 0.680284 |
e2cd268e8522aa01fa610bfaf6b0ddd0d937eb64 | 295 | py | Python | settings_default.py | iticus/photomap | 46ce664412bd44d5bcd6292b04191cacbee7c446 | [
"MIT"
] | null | null | null | settings_default.py | iticus/photomap | 46ce664412bd44d5bcd6292b04191cacbee7c446 | [
"MIT"
] | 2 | 2015-11-19T21:37:01.000Z | 2015-11-25T22:37:45.000Z | settings_default.py | iticus/photomap | 46ce664412bd44d5bcd6292b04191cacbee7c446 | [
"MIT"
] | null | null | null | """
Created on Nov 1, 2015
@author: ionut
"""
import logging
DEBUG = False
LOG_LEVEL = logging.INFO
DSN = "dbname=photomap user=postgres password=pwd host=127.0.0.1 port=5432"
TEMPLATE_PATH = "templates"
STATIC_PATH = "static"
MEDIA_PATH = "/home/ionut/nginx/media"
SECRET = "some_secret"
| 15.526316 | 75 | 0.725424 |
e2cd8925067691083a53320bbc702cff13ae910f | 11,031 | py | Python | tests/test_mcts_player.py | donkirkby/zero-play | 15e3afa950037cfd1f373ee4943cd8b42d4c82c9 | [
"MIT"
] | 7 | 2020-04-30T15:44:56.000Z | 2021-04-07T18:37:21.000Z | tests/test_mcts_player.py | donkirkby/zero-play | 15e3afa950037cfd1f373ee4943cd8b42d4c82c9 | [
"MIT"
] | 84 | 2019-05-07T04:37:10.000Z | 2022-03-04T18:17:57.000Z | tests/test_mcts_player.py | donkirkby/zero-play | 15e3afa950037cfd1f373ee4943cd8b42d4c82c9 | [
"MIT"
] | 1 | 2021-04-07T18:37:25.000Z | 2021-04-07T18:37:25.000Z | import typing
from collections import Counter
import numpy as np
from pytest import approx
from zero_play.connect4.game import Connect4State
from zero_play.game_state import GameState
from zero_play.heuristic import Heuristic
from zero_play.mcts_player import SearchNode, MctsPlayer, SearchManager
from zero_play.playo... | 24.900677 | 98 | 0.658327 |
e2cfc3393806f7bb4f40dc3f9cc091f1aa70db37 | 387 | py | Python | exercicios/ex 061 a 070/ex063.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 061 a 070/ex063.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 061 a 070/ex063.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | print('Sequncia de Fibonacci')
print('='*24)
t = int(input('Nmero de termos da sequncia: '))
print('='*24)
c = 3
termo1 = 0
termo2 = 1
print('A sequncia ({}, {}, '.format(termo1, termo2), end='')
while c <= t:
termo3 = termo1 + termo2
print('{}'.format(termo3), end='')
print(', ' if c < t else '', end='')
... | 22.764706 | 63 | 0.563307 |
e2cfeb3a6d764e8add262f7e0e146ac4bae2ba59 | 3,992 | py | Python | Histogram_Equalization/equalizer.py | CSEMN/FEE_Image_Processing | b060720fef44585a43307c9e81934a1877ddbc5f | [
"MIT"
] | null | null | null | Histogram_Equalization/equalizer.py | CSEMN/FEE_Image_Processing | b060720fef44585a43307c9e81934a1877ddbc5f | [
"MIT"
] | null | null | null | Histogram_Equalization/equalizer.py | CSEMN/FEE_Image_Processing | b060720fef44585a43307c9e81934a1877ddbc5f | [
"MIT"
] | null | null | null | #This code is a practice on Histogram Equalization
#Coded by: CSEMN (Mahmoud Nasser - Sec 4)
#Supervised by: Dr.Mohamed Berbar
__author__ = 'Mahmoud Nasser'
from tkinter import *
from tkinter import ttk
import cv2 as cv # if not installed please consider running : pip install opencv-python
from PIL import ImageTk,Image... | 38.384615 | 160 | 0.677605 |
e2d0618f948725a9592d18db6089a0036d0d5efa | 3,336 | py | Python | divineoasis/scenes/main_menu_manager.py | wsngamerz/Divine-Oasis-RPG | a554431f6eee65ee109d9c1d7f67c12eaba8c974 | [
"MIT"
] | 1 | 2019-07-17T23:26:10.000Z | 2019-07-17T23:26:10.000Z | divineoasis/scenes/main_menu_manager.py | wsngamerz/Divine-Oasis-RPG | a554431f6eee65ee109d9c1d7f67c12eaba8c974 | [
"MIT"
] | 8 | 2019-06-04T15:26:37.000Z | 2019-07-17T23:30:35.000Z | divineoasis/scenes/main_menu_manager.py | wsngamerz/Divine-Oasis-RPG | a554431f6eee65ee109d9c1d7f67c12eaba8c974 | [
"MIT"
] | 1 | 2019-06-04T15:17:45.000Z | 2019-06-04T15:17:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: scenes/main_menu_manager.py
# -------------------
# Divine Oasis
# Text Based RPG Game
# By wsngamerz
# -------------------
import logging
import random
from divineoasis.assets import Assets
from divineoasis.audio_manager import AudioManager
from divineoasi... | 31.17757 | 89 | 0.666067 |
e2d0873043c167f2f68be47cd5ad16d9ad3d23a9 | 469 | py | Python | myadsp/emails.py | kelockhart/myADSPipeline | 21c453a6d7c35d7ce019a71854010fb80b1bc56f | [
"MIT"
] | null | null | null | myadsp/emails.py | kelockhart/myADSPipeline | 21c453a6d7c35d7ce019a71854010fb80b1bc56f | [
"MIT"
] | null | null | null | myadsp/emails.py | kelockhart/myADSPipeline | 21c453a6d7c35d7ce019a71854010fb80b1bc56f | [
"MIT"
] | null | null | null | """email templates"""
from builtins import object
| 18.038462 | 65 | 0.575693 |
e2d0f35a2efdab82ab362a625cfe59a0e847406a | 1,914 | py | Python | getAddrFromOS.py | OpenAddressesUK/OSSpatialResearch | a0156278f35330088c6e8f89cbf32601444872d3 | [
"MIT"
] | 1 | 2015-05-13T10:52:22.000Z | 2015-05-13T10:52:22.000Z | getAddrFromOS.py | OpenAddressesUK/OSSpatialResearch | a0156278f35330088c6e8f89cbf32601444872d3 | [
"MIT"
] | null | null | null | getAddrFromOS.py | OpenAddressesUK/OSSpatialResearch | a0156278f35330088c6e8f89cbf32601444872d3 | [
"MIT"
] | null | null | null | #
# Open addresses Spatial Research
# Display Candidate Address Components From OS Open Map & Open Roads
#
#
# Version 1.0 (Python) in progress
# Author John Murray
# Licence MIT
#
# Purpose Display Candidate Address Components
#
import MySQLdb
import collections
import sys
# Database co... | 33 | 387 | 0.603448 |
e2d1181ba43764099ea9ef3959a87a0948ac70c3 | 2,645 | py | Python | ext/app/decorators.py | FNLF/fnlf-backend | 060d675d7cf8d0eff46af6eb4be7035b8cd68d36 | [
"MIT"
] | 1 | 2015-01-14T22:08:27.000Z | 2015-01-14T22:08:27.000Z | ext/app/decorators.py | FNLF/fnlf-backend | 060d675d7cf8d0eff46af6eb4be7035b8cd68d36 | [
"MIT"
] | 103 | 2015-01-08T13:45:38.000Z | 2022-01-13T00:38:39.000Z | ext/app/decorators.py | FNLF/fnlf-backend | 060d675d7cf8d0eff46af6eb4be7035b8cd68d36 | [
"MIT"
] | null | null | null | """
Custom decorators
=================
Custom decorators for various tasks and to bridge Flask with Eve
"""
from flask import current_app as app, request, Response, abort
from functools import wraps
from ext.auth.tokenauth import TokenAuth
from ext.auth.helpers import Helpers
# Because of circu... | 30.402299 | 105 | 0.579206 |
e2d1c534677315f6466e246bf5f311b6dc6c8b9a | 3,978 | py | Python | home/migrations/0046_auto_20190905_0939.py | davidjrichardson/toucans | 7446b78ec2a09ff90eb83d4a78638c909deb06e1 | [
"MIT"
] | 1 | 2020-04-20T05:37:09.000Z | 2020-04-20T05:37:09.000Z | home/migrations/0046_auto_20190905_0939.py | davidjrichardson/toucans | 7446b78ec2a09ff90eb83d4a78638c909deb06e1 | [
"MIT"
] | 23 | 2019-03-13T10:54:36.000Z | 2022-03-11T23:33:59.000Z | home/migrations/0046_auto_20190905_0939.py | davidjrichardson/toucans | 7446b78ec2a09ff90eb83d4a78638c909deb06e1 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-05 09:39
from django.db import migrations, models
| 34.894737 | 63 | 0.587733 |
e2d285ee4ae38f832b4b1c001f7a02e948846796 | 2,017 | py | Python | setup.py | mzinin/s2e2.python | 1d7776be32a34c37174bbb4257ff99f4c340b7ac | [
"MIT"
] | null | null | null | setup.py | mzinin/s2e2.python | 1d7776be32a34c37174bbb4257ff99f4c340b7ac | [
"MIT"
] | null | null | null | setup.py | mzinin/s2e2.python | 1d7776be32a34c37174bbb4257ff99f4c340b7ac | [
"MIT"
] | null | null | null | #!/bin/sh
# it's a kind of magic to run python with -B key
# https://stackoverflow.com/questions/17458528/why-does-this-snippet-with-a-shebang-bin-sh-and-exec-python-inside-4-single-q
''''exec python3 -B -- "$0" ${1+"$@"} # '''
import os
import re
import setuptools
import setuptools.command.test
import sys
base_path... | 30.104478 | 124 | 0.630144 |
e2d2993a71706a9f1b56afda9081361dce12073d | 4,613 | py | Python | graphene_mongoengine/types.py | ramarivera/graphene-mongoengine | 1020674233993bba98454b1850f184f7b79a614e | [
"MIT"
] | null | null | null | graphene_mongoengine/types.py | ramarivera/graphene-mongoengine | 1020674233993bba98454b1850f184f7b79a614e | [
"MIT"
] | null | null | null | graphene_mongoengine/types.py | ramarivera/graphene-mongoengine | 1020674233993bba98454b1850f184f7b79a614e | [
"MIT"
] | null | null | null | from collections import OrderedDict
from graphene import Field # , annotate, ResolveInfo
from graphene.relay import Connection, Node
from graphene.types.objecttype import ObjectType, ObjectTypeOptions
from graphene.types.utils import yank_fields_from_attrs
from mongoengine import DoesNotExist
from .converter import... | 34.94697 | 92 | 0.661825 |
e2d58ed4d184954f58d06c57f5681f8b2aa9469e | 1,936 | py | Python | apps/test/models.py | catveloper/dynamic_form_generator | be2704cff5ee0f93461cf6c82e47dc1a39b9a98e | [
"MIT"
] | null | null | null | apps/test/models.py | catveloper/dynamic_form_generator | be2704cff5ee0f93461cf6c82e47dc1a39b9a98e | [
"MIT"
] | null | null | null | apps/test/models.py | catveloper/dynamic_form_generator | be2704cff5ee0f93461cf6c82e47dc1a39b9a98e | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.utils.translation import gettext_lazy as _
| 27.267606 | 80 | 0.644112 |
e2d6456c256f4a60fc99dba68620b3386e945429 | 7,033 | py | Python | python/tvm/contrib/binutil.py | uwsampl/tvm | 29a85eb8f75dbd3a338db0b28c2121ca997eb2a4 | [
"Apache-2.0"
] | 2 | 2019-12-27T04:50:01.000Z | 2021-02-04T09:54:21.000Z | python/tvm/contrib/binutil.py | uwsampl/tvm | 29a85eb8f75dbd3a338db0b28c2121ca997eb2a4 | [
"Apache-2.0"
] | null | null | null | python/tvm/contrib/binutil.py | uwsampl/tvm | 29a85eb8f75dbd3a338db0b28c2121ca997eb2a4 | [
"Apache-2.0"
] | null | null | null | # 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 u... | 30.055556 | 92 | 0.60273 |
e2dbd8f583af2e25d8d0350376cb81880e383ce4 | 25 | py | Python | src/tools/__init__.py | Talengi/phase | 60ff6f37778971ae356c5b2b20e0d174a8288bfe | [
"MIT"
] | 8 | 2016-01-29T11:53:40.000Z | 2020-03-02T22:42:02.000Z | src/tools/__init__.py | PhaseDMS/phase | 4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e | [
"MIT"
] | 289 | 2015-03-23T07:42:52.000Z | 2022-03-11T23:26:10.000Z | src/tools/__init__.py | Talengi/phase | 60ff6f37778971ae356c5b2b20e0d174a8288bfe | [
"MIT"
] | 7 | 2015-12-08T09:03:20.000Z | 2020-05-11T15:36:51.000Z | """Miscelanous tools."""
| 12.5 | 24 | 0.64 |
e2dbe9c76ca624c9fbd50f0a72f93f20df4c9250 | 831 | py | Python | setup.py | myslak71/dmt | fcf892391656c02118733db6680d9e4e33b59495 | [
"MIT"
] | 1 | 2019-01-30T14:05:25.000Z | 2019-01-30T14:05:25.000Z | setup.py | myslak71/dmt | fcf892391656c02118733db6680d9e4e33b59495 | [
"MIT"
] | null | null | null | setup.py | myslak71/dmt | fcf892391656c02118733db6680d9e4e33b59495 | [
"MIT"
] | null | null | null | import os
from setuptools import setup, find_packages
DIR_PATH = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(DIR_PATH, 'README.md')) as file:
long_description = file.read()
install_requires = [line.rstrip('\n') for line in open(os.path.join(DIR_PATH, 'requirements.txt'))]
setup(
name=... | 28.655172 | 99 | 0.683514 |
e2dd7fd24d1c7212ab9397da79dd030d977de222 | 159 | py | Python | card_dispenser_test.py | Denexapp/mannequin | 400918ac77baa8c2a9b93d96ae12a5d5955275bc | [
"MIT"
] | null | null | null | card_dispenser_test.py | Denexapp/mannequin | 400918ac77baa8c2a9b93d96ae12a5d5955275bc | [
"MIT"
] | null | null | null | card_dispenser_test.py | Denexapp/mannequin | 400918ac77baa8c2a9b93d96ae12a5d5955275bc | [
"MIT"
] | null | null | null | import card_dispenser
import time
card_dispenser_object = card_dispenser.card_dispenser()
while True:
card_dispenser_object.give_card()
time.sleep(10) | 22.714286 | 55 | 0.811321 |
e2ddbc96cd11bd3a0665665c3f5416de81dbb4d5 | 4,062 | py | Python | brewtils/resolvers/manager.py | scott-taubman/brewtils | 3478e5ebd6383d7724286c9d0c7afac9ef5d7b45 | [
"MIT"
] | null | null | null | brewtils/resolvers/manager.py | scott-taubman/brewtils | 3478e5ebd6383d7724286c9d0c7afac9ef5d7b45 | [
"MIT"
] | null | null | null | brewtils/resolvers/manager.py | scott-taubman/brewtils | 3478e5ebd6383d7724286c9d0c7afac9ef5d7b45 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from typing import Any, Dict, List, Mapping
try:
from collections import Mapping as CollectionsMapping
except ImportError:
from collections.abc import Mapping as CollectionsMapping
from brewtils.models import Parameter, Resolvable
from brewtils.resolvers.bytes import By... | 37.266055 | 88 | 0.609306 |
e2de0a9341a0679887e57b9901b796e25b230e85 | 327 | py | Python | python_exercises/Curso_em_video/ex011.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_exercises/Curso_em_video/ex011.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_exercises/Curso_em_video/ex011.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | b = float(input('\033[36mQual a largura da parede? \033[m'))
h = float(input('\033[32mQual a altura da parede? \033[m'))
a = b * h
print('\033[36mSua parede tem dimenso {} x {} e sua rea de {:.3f}m.\033[m'.format(b, h, a))
print('\033[32mPara pintar essa parede, voc precisar de {}L de tinta.\033[m'.format(a / 2))
... | 54.5 | 97 | 0.642202 |
e2e02ccb6ac1cca4a93470eb0dd9419960f28e58 | 1,062 | py | Python | labs/tony-monday-10-jg113/exam_marks_4.py | TonyJenkins/lbu-python-code | d02d843290e887d016cdb05ddc1a8639874f2e06 | [
"Unlicense"
] | 2 | 2021-08-20T13:02:45.000Z | 2021-10-03T20:34:45.000Z | labs/tony-monday-10-jg113/exam_marks_4.py | TonyJenkins/lbu-python-code | d02d843290e887d016cdb05ddc1a8639874f2e06 | [
"Unlicense"
] | null | null | null | labs/tony-monday-10-jg113/exam_marks_4.py | TonyJenkins/lbu-python-code | d02d843290e887d016cdb05ddc1a8639874f2e06 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
NUMBER_OF_MARKS = 5
if __name__ == '__main__':
mark_list = read_marks(NUMBER_OF_MARKS)
print_results(mark_list)
| 19.309091 | 60 | 0.568738 |
e2e151be842d9c1c84c0a1b32ad5def096f0dfda | 8,668 | py | Python | account/migrations/0004_auto__add_field_userprofile_sjtu_id__add_field_userprofile_sjtu_initpa.py | liweitianux/django-skaschool | 2ff96ef814d1c0e4dc3464418290236797bae038 | [
"BSD-2-Clause"
] | 1 | 2018-04-09T15:45:05.000Z | 2018-04-09T15:45:05.000Z | account/migrations/0004_auto__add_field_userprofile_sjtu_id__add_field_userprofile_sjtu_initpa.py | liweitianux/django-skaschool | 2ff96ef814d1c0e4dc3464418290236797bae038 | [
"BSD-2-Clause"
] | null | null | null | account/migrations/0004_auto__add_field_userprofile_sjtu_id__add_field_userprofile_sjtu_initpa.py | liweitianux/django-skaschool | 2ff96ef814d1c0e4dc3464418290236797bae038 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 90.291667 | 1,204 | 0.62102 |
e2e18396a6d1962265c20433bef9b5473eadd7dd | 1,689 | py | Python | tests/mp.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | 5 | 2019-09-10T04:02:19.000Z | 2020-07-24T07:46:08.000Z | tests/mp.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | null | null | null | tests/mp.py | dmxj/icv | 0b074ec9475f2c70038d2e8b7166414fd5b93e61 | [
"MIT"
] | 1 | 2020-03-20T03:44:04.000Z | 2020-03-20T03:44:04.000Z | from multiprocessing import Pool, Queue
import multiprocessing
import threading
import time
if __name__ == "__main__":
# result=Queue() #
# pool = Pool()
# def pool_th():
# for i in range(50000000): ##
# try:
# result.put(pool.apply_async(test, args=(i,)))
# ... | 20.597561 | 66 | 0.503848 |
e2e2636a936283d6012ec94041d4e569e1a7ef83 | 893 | py | Python | dudes/Util.py | rababerladuseladim/dudes | aed526df8295210e82e89fef9c9bb45daae3be3e | [
"MIT"
] | 7 | 2018-01-03T12:52:28.000Z | 2022-02-15T02:49:15.000Z | dudes/Util.py | pirovc/dudes | aed526df8295210e82e89fef9c9bb45daae3be3e | [
"MIT"
] | 1 | 2019-05-01T14:54:23.000Z | 2022-02-14T12:06:20.000Z | dudes/Util.py | rababerladuseladim/dudes | aed526df8295210e82e89fef9c9bb45daae3be3e | [
"MIT"
] | 2 | 2019-05-08T19:26:21.000Z | 2021-04-15T10:20:01.000Z | from dudes.Ranks import Ranks
import numpy as np
import sys | 27.90625 | 99 | 0.714446 |
e2e28b984f3ba5f8bd9d10b8dab354d8e3919ab9 | 4,169 | py | Python | train.py | Raghavkumarkakar252/Pneumonia_Diagnosis | 0c68d78ce4855289c7e335fde5f5caec2ba5a315 | [
"MIT"
] | null | null | null | train.py | Raghavkumarkakar252/Pneumonia_Diagnosis | 0c68d78ce4855289c7e335fde5f5caec2ba5a315 | [
"MIT"
] | null | null | null | train.py | Raghavkumarkakar252/Pneumonia_Diagnosis | 0c68d78ce4855289c7e335fde5f5caec2ba5a315 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 3 10:27:25 2019
@author: alishbaimran
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from imutils import paths
from sklearn.metrics import classification_report
from sklearn.metrics import accuracy_score
f... | 31.824427 | 79 | 0.630367 |
e2e33b457fd2b88a3ff24791b4d153005a095c56 | 24,503 | py | Python | core/migrations/0001_initial.py | bpotvin-bccrc/colossus | fa5ca7ce4cfe794c7d2167acb868aa9167988941 | [
"MIT"
] | 2 | 2018-10-03T16:05:14.000Z | 2019-03-08T23:01:29.000Z | core/migrations/0001_initial.py | bpotvin-bccrc/colossus | fa5ca7ce4cfe794c7d2167acb868aa9167988941 | [
"MIT"
] | 3 | 2019-05-09T22:48:22.000Z | 2020-06-05T18:52:05.000Z | core/migrations/0001_initial.py | bpotvin-bccrc/colossus | fa5ca7ce4cfe794c7d2167acb868aa9167988941 | [
"MIT"
] | 4 | 2018-08-16T22:25:10.000Z | 2021-02-19T16:10:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-07-12 18:40
from __future__ import unicode_literals
import core.helpers
from django.db import migrations, models
import django.db.models.deletion
import simple_history.models
| 76.571875 | 317 | 0.611762 |
e2e456ab2aaa5fdcc808e3cfb4ffe47c48124124 | 213,896 | py | Python | sphinx_a4doc/syntax/gen/syntax/ANTLRv4Parser.py | sandrotosi/sphinx-a4doc | f1f30c73b8095e2bb81508f7f984d2f8fe70d899 | [
"MIT"
] | 4 | 2019-05-09T20:40:52.000Z | 2021-05-08T07:17:43.000Z | sphinx_a4doc/syntax/gen/syntax/ANTLRv4Parser.py | sandrotosi/sphinx-a4doc | f1f30c73b8095e2bb81508f7f984d2f8fe70d899 | [
"MIT"
] | 8 | 2020-07-05T12:41:31.000Z | 2020-12-27T06:40:39.000Z | sphinx_a4doc/syntax/gen/syntax/ANTLRv4Parser.py | sandrotosi/sphinx-a4doc | f1f30c73b8095e2bb81508f7f984d2f8fe70d899 | [
"MIT"
] | 1 | 2020-07-05T11:51:02.000Z | 2020-07-05T11:51:02.000Z | # encoding: utf-8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
| 36.777166 | 368 | 0.593405 |
e2e488741305886db9ebd01a54b31478a708d79b | 14,876 | py | Python | PlantDetector.py | julzerinos/python-opencv-plant_detection | f7895d42cdf6c8d8a7fa43dd624024f185542207 | [
"MIT"
] | 10 | 2020-08-29T08:30:24.000Z | 2022-02-15T14:06:19.000Z | PlantDetector.py | julzerinos/python-opencv-plant_detection | f7895d42cdf6c8d8a7fa43dd624024f185542207 | [
"MIT"
] | null | null | null | PlantDetector.py | julzerinos/python-opencv-plant_detection | f7895d42cdf6c8d8a7fa43dd624024f185542207 | [
"MIT"
] | 3 | 2020-08-29T08:30:31.000Z | 2021-01-09T07:52:45.000Z | import cv2 as cv # opencv
import copy # for deepcopy on images
import numpy as np # numpy
from random import randint # for random values
import threading # for deamon processing
from pathlib import Path # for directory information
import os # for directory information
from constants import constants # const... | 36.106796 | 103 | 0.576768 |
e2e4c9ad3d9448aaf89ca9204aebc30bfaa811af | 3,061 | py | Python | shooter_game.py | TaseeTee/shooter_game | f21e128ee12b58ac230d14868b790178d11bf7c6 | [
"CC0-1.0"
] | null | null | null | shooter_game.py | TaseeTee/shooter_game | f21e128ee12b58ac230d14868b790178d11bf7c6 | [
"CC0-1.0"
] | null | null | null | shooter_game.py | TaseeTee/shooter_game | f21e128ee12b58ac230d14868b790178d11bf7c6 | [
"CC0-1.0"
] | null | null | null | from pygame import *
from random import randint
window = display.set_mode((700, 500))
display.set_caption('')
lost = 0
c = 0
background = transform.scale(image.load('galaxy.jpg'),(700,500))
clock = time.Clock()
FPS = 60
mixer.init()
mixer.music.load('space.ogg')
mixer.music.play()
mfire = mixer.Sound('fire.ogg')
fon... | 27.827273 | 91 | 0.587716 |
e2e63f122a8263e057c7c5f1b88e244fdf783447 | 5,948 | py | Python | test_action40.py | gmayday1997/pytorch_CAM | c51a0c7f7701005b8f031ed9a0f9b3b9680cf560 | [
"MIT"
] | 23 | 2018-02-13T00:50:11.000Z | 2021-02-04T01:49:34.000Z | test_action40.py | gmayday1997/pytorch-CAM | c51a0c7f7701005b8f031ed9a0f9b3b9680cf560 | [
"MIT"
] | null | null | null | test_action40.py | gmayday1997/pytorch-CAM | c51a0c7f7701005b8f031ed9a0f9b3b9680cf560 | [
"MIT"
] | 5 | 2017-12-19T10:48:22.000Z | 2021-02-04T01:49:35.000Z | import os
import numpy as np
import torch
import torch.nn as nn
import torchvision
import torch.utils.data as Data
import torchvision.transforms as transforms
import torchvision.datasets as datasets
from torch.autograd import Variable
from torch.nn import functional as F
from action40_config import config
import vgg16_... | 33.41573 | 102 | 0.643746 |
e2e756023d59577863134604eb0ec0b5c6d80f25 | 15,627 | py | Python | scripts/loggeranalyzer.py | patymori/document-store-migracao | 1320ef58de1484ca8383c29c1fea55c4b2d89e67 | [
"BSD-2-Clause"
] | 1 | 2019-11-21T12:35:36.000Z | 2019-11-21T12:35:36.000Z | scripts/loggeranalyzer.py | patymori/document-store-migracao | 1320ef58de1484ca8383c29c1fea55c4b2d89e67 | [
"BSD-2-Clause"
] | 336 | 2019-04-01T14:06:37.000Z | 2022-03-21T22:16:55.000Z | scripts/loggeranalyzer.py | patymori/document-store-migracao | 1320ef58de1484ca8383c29c1fea55c4b2d89e67 | [
"BSD-2-Clause"
] | 4 | 2019-03-28T13:32:04.000Z | 2020-04-17T18:03:19.000Z | # Coding: utf-8
"""Script para analisar, agrupar dados provenientes dos logs da ferramenta
de migrao das colees SciELO."""
import argparse
import functools
import json
import logging
import re
import sys
from enum import Enum
from io import TextIOWrapper, IOBase
from typing import Callable, Dict, List, Optional, Unio... | 32.488565 | 112 | 0.568823 |
e2e7e55d22649bca4fb42e3ec2dfab9577ef8761 | 786 | py | Python | keepercommander/plugins/windows/windows.py | Mkn-yskz/Commandy | e360306f41112534ae71102658f560fd974a1f45 | [
"MIT"
] | 151 | 2015-11-02T02:04:46.000Z | 2022-01-20T00:07:01.000Z | keepercommander/plugins/windows/windows.py | Mkn-yskz/Commandy | e360306f41112534ae71102658f560fd974a1f45 | [
"MIT"
] | 145 | 2015-12-31T00:11:35.000Z | 2022-03-31T19:13:54.000Z | keepercommander/plugins/windows/windows.py | Mkn-yskz/Commandy | e360306f41112534ae71102658f560fd974a1f45 | [
"MIT"
] | 73 | 2015-10-30T00:53:10.000Z | 2022-03-30T03:50:53.000Z | # -*- coding: utf-8 -*-
# _ __
# | |/ /___ ___ _ __ ___ _ _
# | ' </ -_) -_) '_ \/ -_) '_|
# |_|\_\___\___| .__/\___|_|
# |_|
#
# Keeper Commander
# Copyright 2015 Keeper Security Inc.
# Contact: ops@keepersecurity.com
#
import logging
import subprocess
import re
def rotate(record, ne... | 22.457143 | 79 | 0.603053 |
e2e80352d380fdeb17dfc45676bbe0034a2b92a7 | 188 | py | Python | tests/twodim/test_synthetic.py | microprediction/punting | 5de62913f8eb9777df1d465db0f2d606a3d19c42 | [
"MIT"
] | null | null | null | tests/twodim/test_synthetic.py | microprediction/punting | 5de62913f8eb9777df1d465db0f2d606a3d19c42 | [
"MIT"
] | null | null | null | tests/twodim/test_synthetic.py | microprediction/punting | 5de62913f8eb9777df1d465db0f2d606a3d19c42 | [
"MIT"
] | null | null | null | from punting.twodim.twosynthetic import random_harville_market
if __name__=='__main__':
test_synthetic() | 18.8 | 62 | 0.728723 |
e2e85a1c47f7391da6709f39642b315c415006ac | 488 | py | Python | synapsesuggestor/pipelinefiles.py | clbarnes/CATMAID-synapsesuggestor | 7b9ffd96c034ca47a6567ebbeb0eff4ece44cb33 | [
"MIT"
] | 3 | 2017-07-27T20:33:14.000Z | 2018-11-09T11:14:24.000Z | synapsesuggestor/pipelinefiles.py | clbarnes/CATMAID-synapsesuggestor | 7b9ffd96c034ca47a6567ebbeb0eff4ece44cb33 | [
"MIT"
] | 10 | 2017-09-29T14:43:32.000Z | 2018-11-13T19:19:22.000Z | synapsesuggestor/pipelinefiles.py | clbarnes/CATMAID-synapsesuggestor | 7b9ffd96c034ca47a6567ebbeb0eff4ece44cb33 | [
"MIT"
] | 1 | 2018-06-15T19:12:55.000Z | 2018-06-15T19:12:55.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Specifies static assets (CSS, JS) required by the CATMAID front-end.
This module specifies all the static files that are required by the
synapsesuggestor front-end.
"""
from collections import OrderedDict
JAVASCRIPT = OrderedDict()
JAVASCRIPT['syna... | 24.4 | 71 | 0.733607 |
e2e89b4c74cc43eb212301d0985561c61c01688a | 3,019 | py | Python | code/tile/tile_geojson.py | kylebarron/transit-land-dump | 56114a21e4cb6edaaadc0bb220f883cf71288997 | [
"MIT"
] | 21 | 2020-02-09T08:18:16.000Z | 2022-01-07T23:38:33.000Z | code/tile/tile_geojson.py | kylebarron/all-trans | 56114a21e4cb6edaaadc0bb220f883cf71288997 | [
"MIT"
] | 49 | 2020-02-08T21:57:19.000Z | 2020-03-02T18:57:14.000Z | code/tile/tile_geojson.py | kylebarron/transit-land-dump | 56114a21e4cb6edaaadc0bb220f883cf71288997 | [
"MIT"
] | 1 | 2021-02-23T21:53:00.000Z | 2021-02-23T21:53:00.000Z | from pathlib import Path
import click
import cligj
import geojson
import mercantile
from shapely.geometry import asShape, box
from shapely.ops import split
if __name__ == '__main__':
cut_geojson()
| 29.31068 | 79 | 0.623716 |
e2e918a6f7ddc309c080d77ca6f1ab09dd2b6ed5 | 2,262 | py | Python | slk/config/network.py | QCloud-DevOps/sidechain-launch-kit | ee41524b65042b2f33ded4997fb34cea9e4e560c | [
"ISC"
] | 1 | 2021-12-12T02:15:37.000Z | 2021-12-12T02:15:37.000Z | slk/config/network.py | QCloud-DevOps/sidechain-launch-kit | ee41524b65042b2f33ded4997fb34cea9e4e560c | [
"ISC"
] | null | null | null | slk/config/network.py | QCloud-DevOps/sidechain-launch-kit | ee41524b65042b2f33ded4997fb34cea9e4e560c | [
"ISC"
] | null | null | null | from __future__ import annotations
from typing import List, Optional
from xrpl import CryptoAlgorithm
from xrpl.core.addresscodec import encode_account_public_key, encode_node_public_key
from xrpl.core.keypairs import derive_keypair, generate_seed
from xrpl.wallet import Wallet
from slk.config.helper_classes import ... | 36.483871 | 84 | 0.637931 |
e2e99f84c3210071c41b2ad1656cb8ddb4605446 | 5,132 | py | Python | realpyserver/server.py | MartinChristiaan/realpy | b53c53b3d40298d1c20118d770f52e9d8402c634 | [
"MIT"
] | null | null | null | realpyserver/server.py | MartinChristiaan/realpy | b53c53b3d40298d1c20118d770f52e9d8402c634 | [
"MIT"
] | null | null | null | realpyserver/server.py | MartinChristiaan/realpy | b53c53b3d40298d1c20118d770f52e9d8402c634 | [
"MIT"
] | null | null | null | from flask import Flask,Response
from flask import render_template
import os
from os import path,system
from flask import request
import json
from flask_cors import CORS
import shutil
# Model Definition
import math
import serialization
import numpy as np
import types
from enum import Enum
import video_capture
#pathToPy... | 36.397163 | 135 | 0.585347 |
e2eafd10b9a42cf374bccc91017038c2fb7bae6a | 1,526 | py | Python | model_lgb_hakubishin_20200317/src/models/model_lightgbm.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 35 | 2020-06-23T05:33:50.000Z | 2021-11-22T08:22:42.000Z | model_lgb_hakubishin_20200317/src/models/model_lightgbm.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 15 | 2020-12-28T05:31:06.000Z | 2021-01-22T06:49:28.000Z | model_lgb_hakubishin_20200317/src/models/model_lightgbm.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 2 | 2020-06-30T10:02:05.000Z | 2021-05-22T09:57:19.000Z | import lightgbm as lgb
from .model import Base_Model
from src.utils import Pkl
| 29.921569 | 72 | 0.60616 |
e2eba50e1eae9762f3a58281f7c829de6c02f619 | 4,031 | py | Python | cabi/archived/ebikes.py | jmillerbrooks/capital_bikeshare | 72023f9121068098e736f69605edff68bc2adff2 | [
"MIT"
] | null | null | null | cabi/archived/ebikes.py | jmillerbrooks/capital_bikeshare | 72023f9121068098e736f69605edff68bc2adff2 | [
"MIT"
] | null | null | null | cabi/archived/ebikes.py | jmillerbrooks/capital_bikeshare | 72023f9121068098e736f69605edff68bc2adff2 | [
"MIT"
] | null | null | null | ### DEPRECATE THESE? OLD VERSIONS OF CLEANING FUNCTIONS FOR JUST EBIKES
### NO LONGER WORKING WITH THESE
import pandas as pd
import numpy as np
from shapely.geometry import Point
import geopandas as gpd
from cabi.utils import which_anc, station_anc_dict
from cabi.get_data import anc_gdf
gdf = anc_gdf()
anc_dict = st... | 31.248062 | 111 | 0.65542 |
e2ecc399d23bb87715d2e0a2a17198c925eecbf0 | 1,418 | py | Python | build_world_clouds.py | amercer1/jebe | dd922f6e12c43a96c550b39a0c2eb0154ad5ec5b | [
"MIT"
] | 1 | 2015-06-28T06:35:26.000Z | 2015-06-28T06:35:26.000Z | build_world_clouds.py | amercer1/jebe | dd922f6e12c43a96c550b39a0c2eb0154ad5ec5b | [
"MIT"
] | null | null | null | build_world_clouds.py | amercer1/jebe | dd922f6e12c43a96c550b39a0c2eb0154ad5ec5b | [
"MIT"
] | null | null | null | import os
import re
import random
from scipy.misc import imread
import matplotlib.pyplot as plt
from wordcloud import WordCloud, STOPWORDS
d = os.path.dirname(__file__)
text_files = os.path.join(d, 'text_files')
images = os.path.join(d, 'images')
paths = [fn for fn in next(os.walk(text_files))[2]]
# Creat Normal w... | 32.227273 | 80 | 0.688999 |