hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee256a737518580b47e962df223472702fb695b6 | 6,013 | py | Python | contest/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | contest/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | contest/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | '''
The MIT License (MIT)
Copyright (c) 2014 NTHUOJ team
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 without limitation the rights
to use,... | 38.793548 | 106 | 0.611342 | 4,456 | 0.741061 | 0 | 0 | 0 | 0 | 0 | 0 | 1,925 | 0.32014 |
ee267e6a87dffffb307c371ef839bb7bf075c746 | 618 | py | Python | wormpose/machine_learning/generic_file_writer.py | AntonioCCosta/wormpose | ebd0acf39b92072f00008731e77c5ac2b8ea4406 | [
"BSD-3-Clause"
] | 29 | 2020-05-14T02:58:59.000Z | 2022-03-16T10:06:36.000Z | wormpose/machine_learning/generic_file_writer.py | Tubbz-alt/wormpose | a92c0459f940d6e1f517b90d3a445ad3c0689ed8 | [
"BSD-3-Clause"
] | 8 | 2020-08-14T06:23:14.000Z | 2022-01-03T04:28:58.000Z | wormpose/machine_learning/generic_file_writer.py | Tubbz-alt/wormpose | a92c0459f940d6e1f517b90d3a445ad3c0689ed8 | [
"BSD-3-Clause"
] | 11 | 2020-07-18T20:43:00.000Z | 2022-03-17T18:27:57.000Z | """
Wrapper to save the training data to different file formats
"""
class GenericFileWriter(object):
"""
Write data to different file formats depending on the open_file and write_file functions
"""
def __init__(self, open_file=None, write_file=None):
self.open_file = open_file
self.wr... | 24.72 | 92 | 0.661812 | 547 | 0.885113 | 0 | 0 | 0 | 0 | 0 | 0 | 171 | 0.276699 |
ee269436a0a76c7351b420811a929b16e0ed781d | 772 | py | Python | EngLearner/users/migrations/0007_auto_20200330_2201.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/users/migrations/0007_auto_20200330_2201.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/users/migrations/0007_auto_20200330_2201.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2 on 2020-03-30 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20200330_2200'),
]
operations = [
migrations.AlterField(
model_name='boughtproduct',
name='quantity... | 26.62069 | 70 | 0.586788 | 705 | 0.885678 | 0 | 0 | 0 | 0 | 0 | 0 | 191 | 0.23995 |
ee27cbb1f5ab8ff62e70e97b161ec8429dba0d48 | 8,087 | py | Python | NeoML/Python/neoml/Dnn/ImageConversion.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/neoml/Dnn/ImageConversion.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/neoml/Dnn/ImageConversion.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Copyright (c) 2017-2020 ABBYY Production LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 33.143443 | 162 | 0.614319 | 7,032 | 0.869544 | 0 | 0 | 1,401 | 0.173241 | 0 | 0 | 5,469 | 0.676271 |
ee2a0ae02c4f7fec036fd44cc9fb937a9290c455 | 237 | py | Python | test.py | Torxed/python-pyson | 9bcbc256ec989832a0729fef06b797c9eceeaefa | [
"MIT"
] | 3 | 2020-11-03T03:40:53.000Z | 2021-01-30T08:37:16.000Z | test.py | Torxed/python-pyson | 9bcbc256ec989832a0729fef06b797c9eceeaefa | [
"MIT"
] | null | null | null | test.py | Torxed/python-pyson | 9bcbc256ec989832a0729fef06b797c9eceeaefa | [
"MIT"
] | null | null | null | import time
import random
import pyson
content = """
{
"time" : time.time(),
random.randint(0, 1) : "a random number",
"another_level" : {
"test" : 5
},
"main level" : True
}
"""
print(pyson.loads(content, globals(), locals())) | 13.941176 | 48 | 0.616034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 136 | 0.57384 |
ee2a78ecf01311256d971e67c7ba46fef93c2320 | 716 | py | Python | TV_equivalent_indicators.py | J0N3X/crypto-backtest-module | 0f2618c4538b25a78f75c7831b9ce3701f33de60 | [
"MIT"
] | 6 | 2021-08-10T14:34:11.000Z | 2022-03-03T19:14:15.000Z | TV_equivalent_indicators.py | J0N3X/crypto-backtest-module | 0f2618c4538b25a78f75c7831b9ce3701f33de60 | [
"MIT"
] | null | null | null | TV_equivalent_indicators.py | J0N3X/crypto-backtest-module | 0f2618c4538b25a78f75c7831b9ce3701f33de60 | [
"MIT"
] | 4 | 2020-11-01T19:46:56.000Z | 2022-03-24T05:47:06.000Z | import pandas as pd
import numpy as np
def rsi_tradingview(ohlc: pd.DataFrame, period):
delta = ohlc["close"].diff()
up = delta.copy()
up[up < 0] = 0
up = pd.Series.ewm(up, alpha=1/period).mean()
down = delta.copy()
down[down > 0] = 0
down *= -1
down = pd.Series.ewm(down, alpha=1/per... | 26.518519 | 123 | 0.586592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0.01676 |
ee2b80f6a26a0a00b8f295285fad069f948e9400 | 808 | py | Python | output_generator/Output.py | selcukusta/codalyze-rest-api | 2aebb7d96ea0d601af3f8dd0a995bc730621407a | [
"MIT"
] | 2 | 2020-11-16T15:53:08.000Z | 2021-06-24T07:16:15.000Z | output_generator/Output.py | selcukusta/codalyze-rest-api | 2aebb7d96ea0d601af3f8dd0a995bc730621407a | [
"MIT"
] | null | null | null | output_generator/Output.py | selcukusta/codalyze-rest-api | 2aebb7d96ea0d601af3f8dd0a995bc730621407a | [
"MIT"
] | 1 | 2021-11-25T11:57:57.000Z | 2021-11-25T11:57:57.000Z | # -*- coding: utf-8 -*-
"""
This module extends the default output formatting to include HTML.
"""
import sys
import datetime
from jinja2 import Template
def html_output(source, header, thresholds):
source_file_dict = {"filename": source.filename}
func_list = []
for source_function in source.function_li... | 27.862069 | 68 | 0.643564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 156 | 0.193069 |
ee2cb32d9eb1f15b26b978d44b78859a10f8c8d9 | 5,733 | py | Python | currnlp - deprecated.py | Elbitty/Elbitty | fafc1623ca002a6e499101b513696fecf1e894d1 | [
"MIT"
] | null | null | null | currnlp - deprecated.py | Elbitty/Elbitty | fafc1623ca002a6e499101b513696fecf1e894d1 | [
"MIT"
] | 3 | 2017-07-03T04:01:29.000Z | 2017-07-04T00:22:54.000Z | currnlp - deprecated.py | Elbitty/Elbitty | fafc1623ca002a6e499101b513696fecf1e894d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import NLP
def calculate(tags):
tmp_str = " ".join(str(val) for val in tags)
tmp_tags = NLP.calculate_also_pos(tmp_str)
print(tmp_tags)
lst_query = ["USD", "KRW"]#기본 원달러 환율로 초기화
str_humanize = ["달러", "원"]#기본 원달러 환율로 초기화
indicator = 0
cursor = ... | 30.822581 | 72 | 0.451073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 688 | 0.115108 |
ee2d5efda5124f708e91530073f276b0080ff013 | 181 | py | Python | main/schemas/request.py | vuhuycto/gotit-onboard-final-project | 44f4d29c86d841713207efc3d0b30c63f00e6084 | [
"MIT"
] | null | null | null | main/schemas/request.py | vuhuycto/gotit-onboard-final-project | 44f4d29c86d841713207efc3d0b30c63f00e6084 | [
"MIT"
] | null | null | null | main/schemas/request.py | vuhuycto/gotit-onboard-final-project | 44f4d29c86d841713207efc3d0b30c63f00e6084 | [
"MIT"
] | null | null | null | from marshmallow import fields, validate
from .base import BaseSchema
class PageParamSchema(BaseSchema):
page = fields.Integer(required=True, validate=validate.Range(min=1))
| 22.625 | 72 | 0.790055 | 107 | 0.59116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ee2dc666a79347b77adfd1d774a2855491600019 | 1,617 | py | Python | __main__.py | tinyurl-com-ItsBigBrainTimeXD/backend | 4d360ed02aa5475279af03e4f4300dde6ccc3391 | [
"MIT"
] | null | null | null | __main__.py | tinyurl-com-ItsBigBrainTimeXD/backend | 4d360ed02aa5475279af03e4f4300dde6ccc3391 | [
"MIT"
] | null | null | null | __main__.py | tinyurl-com-ItsBigBrainTimeXD/backend | 4d360ed02aa5475279af03e4f4300dde6ccc3391 | [
"MIT"
] | null | null | null | from multiprocessing import Lock
from flask import Flask, request, jsonify
from constants import HOST, PORT
from Database.database import Database
from handler.frontendHandler import frontend_handler
from handler.iotHandler import iot_handler
# Create the flask application
app = Flask(__name__)
db_name = 'test.db'
db... | 25.265625 | 68 | 0.685838 | 0 | 0 | 0 | 0 | 1,157 | 0.715523 | 0 | 0 | 425 | 0.262832 |
ee2dd69c4e68177c7e58799c681d8b2eea7e81a6 | 76 | py | Python | 03_For/Step03/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 03_For/Step03/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 03_For/Step03/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | n = int(input())
result=0
for i in range(1,n+1):
result+=i
print(result) | 15.2 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ee2fea5e9be5798ddc9725b7766369f326b358d6 | 452 | py | Python | ex055.py | LucasLCarreira/Python | 03bd64837d74315687e567261a149f0176496348 | [
"MIT"
] | 1 | 2020-04-21T19:14:50.000Z | 2020-04-21T19:14:50.000Z | ex055.py | LucasLCarreira/Python | 03bd64837d74315687e567261a149f0176496348 | [
"MIT"
] | null | null | null | ex055.py | LucasLCarreira/Python | 03bd64837d74315687e567261a149f0176496348 | [
"MIT"
] | null | null | null | # Exercício Python 055
# Leia o peso de 5 pessoas, mostre o maior e o menor
maior = 0
menor = 0
for p in range(1, 6):
peso = int(input("Digite o peso:"))
if p == 1: #com o contador na primeira posição, o maior e o menor são iguais
maior = peso
menor = peso
else:
if peso > maior:
... | 25.111111 | 80 | 0.573009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 197 | 0.430131 |
ee30562de746fae8c4e7f911bc276f4521628762 | 886 | py | Python | 1 - companies_list_downloader.py | B-Jugurtha/Project-01--Web-scraping---Data-cleaning | 981ec207c6c2d55efb10f137fec0bbf06df50cbb | [
"MIT"
] | null | null | null | 1 - companies_list_downloader.py | B-Jugurtha/Project-01--Web-scraping---Data-cleaning | 981ec207c6c2d55efb10f137fec0bbf06df50cbb | [
"MIT"
] | null | null | null | 1 - companies_list_downloader.py | B-Jugurtha/Project-01--Web-scraping---Data-cleaning | 981ec207c6c2d55efb10f137fec0bbf06df50cbb | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as bs
from pathlib import Path
import os
import glob
import time
import random
import requests
pwd = os.getcwd()
page_counter = 1
URL = "https://www.example.com/companies/?page="
# Creating 'pages' folder if this one exists deletes it's content
try:
Path(pwd + '/pages').mkdir(paren... | 23.945946 | 81 | 0.667043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 210 | 0.23702 |
ee327f2d0e55a21aaeef4a1ec21efda3fb98ce69 | 892 | py | Python | app/db_models/main.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/db_models/main.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/db_models/main.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship, backref
Base = declarative_base()
from app.db_models.accounts import Accounts
from app.db_models.association_table import AssociationTable
from app.db_models.o... | 27.030303 | 80 | 0.778027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 239 | 0.267937 |
ee33559773aa94f6134aaa49252ad4b6b825ef37 | 791 | py | Python | tests/test_apps/test_covid_preprocessing.py | jtrauer/AuTuMN | 2e1defd0104bbecfe667b8ea5ecaf4bc6741905c | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2020-03-11T06:15:30.000Z | 2022-03-09T03:38:35.000Z | tests/test_apps/test_covid_preprocessing.py | jtrauer/AuTuMN | 2e1defd0104bbecfe667b8ea5ecaf4bc6741905c | [
"BSD-2-Clause-FreeBSD"
] | 96 | 2020-01-29T05:10:29.000Z | 2022-03-31T01:48:46.000Z | tests/test_apps/test_covid_preprocessing.py | monash-emu/AuTuMN | fa3b81ef54cf561e0e7364a48f4ff96585dc3310 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2020-04-24T00:38:00.000Z | 2021-08-19T16:19:03.000Z | import numpy as np
from autumn.models.covid_19.detection import create_cdr_function
def test_cdr_intercept():
"""
Test that there is zero case detection when zero tests are performed
"""
for cdr_at_1000_tests in np.linspace(0.05, 0.5, 10):
cdr_function = create_cdr_function(1000.0, cdr_at_10... | 30.423077 | 89 | 0.672566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 161 | 0.20354 |
ee350ea74f60bf255d219e07c176125875586383 | 5,339 | py | Python | nessussearch.py | canidorichard/nessussearch | 7b4623f0b3a3fb60706eb39785ea4f7a1cebf800 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-06-30T15:53:03.000Z | 2020-06-30T15:53:03.000Z | nessussearch.py | canidorichard/nessussearch | 7b4623f0b3a3fb60706eb39785ea4f7a1cebf800 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | nessussearch.py | canidorichard/nessussearch | 7b4623f0b3a3fb60706eb39785ea4f7a1cebf800 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-08-05T23:25:36.000Z | 2020-09-26T10:01:18.000Z | #!/usr/bin/env python3
# Copyright (c) 2019, Richard Hughes All rights reserved.
# Released under the BSD license. Please see LICENSE.md for more information.
import sys
import os
import argparse
import glob
import xml.dom.minidom
import re
# Define command line arguments
parms=argparse.ArgumentParser()
parms.add_ar... | 33.36875 | 179 | 0.617906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,816 | 0.340139 |
ee35e8695f1106242572ccc2f67ad6599a4046fc | 7,889 | py | Python | tests/test_format.py | Hassanchenganasseri/yara-language-server | 9ba4d820f1cabb738921e17d4489706966cb290b | [
"Apache-2.0"
] | 1 | 2021-11-13T02:04:55.000Z | 2021-11-13T02:04:55.000Z | tests/test_format.py | Hassanchenganasseri/yara-language-server | 9ba4d820f1cabb738921e17d4489706966cb290b | [
"Apache-2.0"
] | 4 | 2020-12-12T23:41:40.000Z | 2021-01-18T17:00:53.000Z | tests/test_format.py | Hassanchenganasseri/yara-language-server | 9ba4d820f1cabb738921e17d4489706966cb290b | [
"Apache-2.0"
] | 1 | 2022-02-21T15:36:21.000Z | 2022-02-21T15:36:21.000Z | ''' Format Provider Tests '''
from textwrap import dedent
import pytest
from yarals import helpers
from yarals.base import protocol
from yarals.base import errors as ce
# don't care about pylint(protected-access) warnings since these are just tests
# pylint: disable=W0212
@pytest.mark.asyncio
async def test_format(... | 31.556 | 100 | 0.615667 | 0 | 0 | 0 | 0 | 7,595 | 0.962733 | 7,305 | 0.925973 | 2,555 | 0.323869 |
ee36deec1ce296c7314b585757c03cbcb17ed182 | 5,109 | py | Python | pykitml/fceux.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 34 | 2020-03-06T07:53:43.000Z | 2022-03-13T06:12:29.000Z | pykitml/fceux.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 6 | 2021-06-08T22:43:23.000Z | 2022-03-08T13:57:33.000Z | pykitml/fceux.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 1 | 2020-11-30T21:20:32.000Z | 2020-11-30T21:20:32.000Z | import warnings
import socket
class FCEUXServer:
'''
Server class for making NES bots. Uses FCEUX emulator.
Visit https://www.fceux.com for info. You will also need to
load client lua script in the emulator.
'''
def __init__(self, frame_func, quit_func=None, ip='localhost', port=1234):
... | 26.609375 | 78 | 0.533372 | 4,845 | 0.948326 | 0 | 0 | 125 | 0.024467 | 0 | 0 | 2,510 | 0.49129 |
ee383dc672da93812bf7e31171a62575ecb25dfe | 905 | py | Python | orchestra/forms/fields.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/forms/fields.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/forms/fields.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | from django import forms
from .widgets import SpanWidget
class MultiSelectFormField(forms.MultipleChoiceField):
""" http://djangosnippets.org/snippets/1200/ """
widget = forms.CheckboxSelectMultiple
def __init__(self, *args, **kwargs):
self.max_choices = kwargs.pop('max_choices', 0)
... | 30.166667 | 82 | 0.667403 | 841 | 0.929282 | 0 | 0 | 0 | 0 | 0 | 0 | 245 | 0.270718 |
ee38deebe1bb8166653f041ac6b217f4fdba49db | 5,480 | py | Python | gossipcat/dev/CAT.py | Ewen2015/GossipCat | 6792c2ddee16515d9724583c9b57f332cff4b206 | [
"Apache-2.0"
] | 2 | 2017-12-17T06:24:43.000Z | 2018-01-17T08:27:52.000Z | gossipcat/dev/CAT.py | Ewen2015/GossipCat | 6792c2ddee16515d9724583c9b57f332cff4b206 | [
"Apache-2.0"
] | null | null | null | gossipcat/dev/CAT.py | Ewen2015/GossipCat | 6792c2ddee16515d9724583c9b57f332cff4b206 | [
"Apache-2.0"
] | 1 | 2017-12-12T16:00:48.000Z | 2017-12-12T16:00:48.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
author: Ewen Wang
email: [email protected]
license: Apache License 2.0
"""
import warnings
warnings.filterwarnings('ignore')
import random
random.seed(0)
import time
import json
import pandas as pd
import matplotlib.pyplot as plt
import catboo... | 33.82716 | 144 | 0.578102 | 5,146 | 0.939051 | 0 | 0 | 0 | 0 | 0 | 0 | 898 | 0.163869 |
ee39158935f040d9514500c148f834c9e0815920 | 4,698 | py | Python | kiss.py | QuantumEF/AX25-Chat | d2f8f8b5b3a968c6982dd013c5860aab461e4dc6 | [
"MIT"
] | null | null | null | kiss.py | QuantumEF/AX25-Chat | d2f8f8b5b3a968c6982dd013c5860aab461e4dc6 | [
"MIT"
] | null | null | null | kiss.py | QuantumEF/AX25-Chat | d2f8f8b5b3a968c6982dd013c5860aab461e4dc6 | [
"MIT"
] | 1 | 2020-09-16T03:19:18.000Z | 2020-09-16T03:19:18.000Z | #!/usr/bin/python
import sys
import socket
import asyncio
import select
from hexdump import hexdump
KISS_FEND = 0xC0 # Frame start/end marker
KISS_FESC = 0xDB # Escape character
KISS_TFEND = 0xDC # If after an escape, means there was an 0xC0 in the source message
KISS_TFESC = 0xDD # If after an escape, means... | 33.557143 | 108 | 0.686037 | 1,894 | 0.40315 | 0 | 0 | 0 | 0 | 0 | 0 | 1,432 | 0.304811 |
ee3a458bc0b453128e0670c2c4878e148f4fd267 | 2,903 | py | Python | wall/models.py | viral85/test_wall_app | 5487297e3dcd5971c4f8778fe0bc49e35efad587 | [
"MIT"
] | null | null | null | wall/models.py | viral85/test_wall_app | 5487297e3dcd5971c4f8778fe0bc49e35efad587 | [
"MIT"
] | null | null | null | wall/models.py | viral85/test_wall_app | 5487297e3dcd5971c4f8778fe0bc49e35efad587 | [
"MIT"
] | null | null | null | from django.db import models
from users.models import User, BaseModel
class CommonModel(models.Model):
"""This is common model which we are using for common attributes not
included in Database as a table
:param models.Model: Class to create a new instance of a model,
instantiate it like any other Pyt... | 32.255556 | 108 | 0.695143 | 2,791 | 0.961419 | 0 | 0 | 168 | 0.057871 | 0 | 0 | 1,299 | 0.447468 |
ee3b32d88b8afd4ca09f0005b74b567acf3d93ca | 2,171 | py | Python | src/main/python/generate.py | gpanther/fastutil-guava-tests | 8606eb1126874695e58f263610787b7775c98ffb | [
"Apache-2.0"
] | 1 | 2016-03-16T08:36:51.000Z | 2016-03-16T08:36:51.000Z | src/main/python/generate.py | gpanther/fastutil-guava-tests | 8606eb1126874695e58f263610787b7775c98ffb | [
"Apache-2.0"
] | null | null | null | src/main/python/generate.py | gpanther/fastutil-guava-tests | 8606eb1126874695e58f263610787b7775c98ffb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import re
import jinja2
def generate_metadata(name, additional_dict=None):
result = {
'package': 'it.unimi.dsi.fastutil.%ss' % name.lower(),
'primitive': name.lower(),
'boxed_class': name
}
result.update(additional_dict or {})
return name, result
kin... | 35.590164 | 104 | 0.634731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 640 | 0.294795 |
ee3b8a11298be38df1b9a7e27b57f8559c0985a3 | 60 | py | Python | app/tests/__init__.py | victorlomi/News-Catchup | 214b4e92b0cf90c7e4906c3b2316578918645dac | [
"Unlicense"
] | null | null | null | app/tests/__init__.py | victorlomi/News-Catchup | 214b4e92b0cf90c7e4906c3b2316578918645dac | [
"Unlicense"
] | null | null | null | app/tests/__init__.py | victorlomi/News-Catchup | 214b4e92b0cf90c7e4906c3b2316578918645dac | [
"Unlicense"
] | null | null | null | from tests import test_article
from tests import test_source | 30 | 30 | 0.883333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ee3cb7c19d0619f9abd1c5afe9d9065a4239aee4 | 7,451 | py | Python | Tree_test.py | nelliesnoodles/PythonBinaryTree | a5964cbb991cbd5007a5253bd48bc83eb56dc0ca | [
"MIT"
] | null | null | null | Tree_test.py | nelliesnoodles/PythonBinaryTree | a5964cbb991cbd5007a5253bd48bc83eb56dc0ca | [
"MIT"
] | null | null | null | Tree_test.py | nelliesnoodles/PythonBinaryTree | a5964cbb991cbd5007a5253bd48bc83eb56dc0ca | [
"MIT"
] | null | null | null | from random import randint
from BST_version_3 import BinaryTreeNode, BinaryTree
# I have to keep the build of lists under 3,000 total
# my computer starts to freak out about memory at 10,000
# it slows at 3000.
# recursion depth happens on count at 2000 items
def test_set():
oaktree = BinaryTree(50.5)
for i in range(... | 27.596296 | 80 | 0.68219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,317 | 0.176755 |
ee3d2db0fde263da3c3eb73afde2fa65a46b2a9d | 445 | py | Python | models/batchnorm.py | JingweiJ/JointActorActionSeg | d33904f3f2c02094bb0a32bfec3105affff59426 | [
"MIT"
] | 11 | 2018-12-12T00:44:09.000Z | 2022-01-24T13:25:37.000Z | models/batchnorm.py | JingweiJ/JointActorActionSeg | d33904f3f2c02094bb0a32bfec3105affff59426 | [
"MIT"
] | 1 | 2019-04-24T08:25:12.000Z | 2019-04-24T08:25:12.000Z | models/batchnorm.py | JingweiJ/JointActorActionSeg | d33904f3f2c02094bb0a32bfec3105affff59426 | [
"MIT"
] | 3 | 2018-12-21T08:13:20.000Z | 2020-07-08T22:54:09.000Z | import keras.layers as KL
class BatchNorm(KL.BatchNormalization):
"""Batch Normalization class. Subclasses the Keras BN class and
hardcodes training=False so the BN layer doesn't update
during training.
Batch normalization has a negative effect on training if batches are small
so we disable it her... | 37.083333 | 78 | 0.732584 | 418 | 0.939326 | 0 | 0 | 0 | 0 | 0 | 0 | 259 | 0.582022 |
ee3d3b33e7d00e0c127a259c954eabf576b5a09b | 523 | py | Python | shadow-hunters/tests/integration_tests/test_utils.py | dolphonie/shadow-hunters | 2257a67f965cf43e1e5c9c8e7af87fe9ae16f5c9 | [
"MIT"
] | 17 | 2019-05-04T13:25:33.000Z | 2022-01-22T14:50:49.000Z | shadow-hunters/tests/integration_tests/test_utils.py | dolphonie/shadow-hunters | 2257a67f965cf43e1e5c9c8e7af87fe9ae16f5c9 | [
"MIT"
] | 25 | 2020-05-24T03:29:42.000Z | 2021-03-29T07:07:47.000Z | shadow-hunters/tests/integration_tests/test_utils.py | dolphonie/shadow-hunters | 2257a67f965cf43e1e5c9c8e7af87fe9ae16f5c9 | [
"MIT"
] | 7 | 2019-05-30T00:15:58.000Z | 2022-01-16T14:37:25.000Z | import pytest
from utils import make_hash_sha256
# test_utils.py
def test_make_hash_sha256():
w = {'a': ['b', None, dict(c=dict(), d=(1, 2))], (3, 4): 'e'}
x = {'a': ['b', None, dict(c=dict(), d=(1, 2))], (3, 4): 'e'}
y = {'b': ['b', None, dict(c=dict(), d=(1, 2))], (3, 4): 'e'}
z = {(3, 4): 'e', 'b'... | 34.866667 | 65 | 0.548757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 51 | 0.097514 |
ee3f1dab5bbae9fc4ca6f9d759f36e46c7e4b97c | 62 | py | Python | SECRET-TEMPLATE.py | matousc89/nk-bot | bde87d74ea00b6f947641242b282f2ce40cfc7b9 | [
"MIT"
] | null | null | null | SECRET-TEMPLATE.py | matousc89/nk-bot | bde87d74ea00b6f947641242b282f2ce40cfc7b9 | [
"MIT"
] | null | null | null | SECRET-TEMPLATE.py | matousc89/nk-bot | bde87d74ea00b6f947641242b282f2ce40cfc7b9 | [
"MIT"
] | null | null | null | TOKEN = ""
GUILD = ""
# crypto bot
API_KEY_COINMARKETCAP = "" | 12.4 | 26 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 0.290323 |
ee404e6979393de5363253ef67e712dee62d98a1 | 543 | py | Python | loans/migrations/0002_product_organization.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | 1 | 2022-02-25T18:39:44.000Z | 2022-02-25T18:39:44.000Z | loans/migrations/0002_product_organization.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | loans/migrations/0002_product_organization.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2022-02-25 05:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organizations', '0002_organizationcustomer'),
('loans', '0001_initial'),
]
operations = [
migration... | 25.857143 | 126 | 0.64825 | 417 | 0.767956 | 0 | 0 | 0 | 0 | 0 | 0 | 161 | 0.296501 |
ee407797b83ac396b3980aeaad4d8b956d5e4e23 | 4,026 | py | Python | writeups/2020/CyberStakes/party-roppin/solve.py | welchbj/ctf | fd4e2cea692b134163cc9bd66c2b4796bdefed8c | [
"MIT"
] | 65 | 2019-10-07T01:29:16.000Z | 2022-03-18T14:20:40.000Z | writeups/2020/CyberStakes/party-roppin/solve.py | welchbj/ctf | fd4e2cea692b134163cc9bd66c2b4796bdefed8c | [
"MIT"
] | null | null | null | writeups/2020/CyberStakes/party-roppin/solve.py | welchbj/ctf | fd4e2cea692b134163cc9bd66c2b4796bdefed8c | [
"MIT"
] | 12 | 2020-05-04T01:16:53.000Z | 2022-01-02T14:33:41.000Z | #!/usr/bin/env python2
"""
Run exploit locally with:
./solve.py
./solve.py REMOTE HOST=challenge.acictf.com PORT=45110
"""
import ast
import struct
import subprocess
from pwn import *
PROG_PATH = './challenge'
PROT_RWX = constants.PROT_READ | constants.PROT_WRITE | constants.PROT_EXEC
EGG_SIZE = 0x1000
def init... | 23.682353 | 102 | 0.619722 | 78 | 0.019374 | 0 | 0 | 0 | 0 | 0 | 0 | 934 | 0.231992 |
ee40c9e058cfde444787c36d7ef8a53e584dde9c | 403 | py | Python | run_tests.py | andres-nieves-endava/djsonb | 5fc1ef3a10cb313af7e1c04c25acac81e81c7096 | [
"BSD-3-Clause"
] | 3 | 2016-03-08T20:55:54.000Z | 2019-06-13T14:31:50.000Z | run_tests.py | andres-nieves-endava/djsonb | 5fc1ef3a10cb313af7e1c04c25acac81e81c7096 | [
"BSD-3-Clause"
] | 13 | 2015-10-07T18:21:37.000Z | 2018-07-30T12:51:40.000Z | run_tests.py | andres-nieves-endava/djsonb | 5fc1ef3a10cb313af7e1c04c25acac81e81c7096 | [
"BSD-3-Clause"
] | 4 | 2016-03-14T18:12:33.000Z | 2020-07-08T15:41:50.000Z | #!/usr/bin/env python
import os
import sys
import time
import django
sys.path.insert(0, './tests')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
if __name__ == '__main__':
from django.core.management import execute_from_command_line
args = sys.argv
args.insert(1, 'test')
if len(args) ... | 19.190476 | 64 | 0.704715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 95 | 0.235732 |
ee42ab06df137bb5158c466e211b9c061a500ecf | 1,485 | py | Python | utils/mongo_seed/csv_to_json.py | Abdoul1996/superteam2 | 3ba558f9dfd652007a1f80ee01543c266c87bc0d | [
"MIT"
] | null | null | null | utils/mongo_seed/csv_to_json.py | Abdoul1996/superteam2 | 3ba558f9dfd652007a1f80ee01543c266c87bc0d | [
"MIT"
] | null | null | null | utils/mongo_seed/csv_to_json.py | Abdoul1996/superteam2 | 3ba558f9dfd652007a1f80ee01543c266c87bc0d | [
"MIT"
] | null | null | null | from os import path
import csv
import json
import random
# Our dataset was created from http://www2.informatik.uni-freiburg.de/~cziegler/BX/ and reduced down to 1,000 records
# The CSV file has semicolon delimiters due to book titles containing commas
SCRIPT_DIR = path.dirname(path.realpath(__file__)) + '/'
DB_FILE =... | 38.076923 | 129 | 0.576431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 635 | 0.427609 |
ee4520a20396d2ea6e82b1e5331b895e66992d37 | 286 | py | Python | service/routing.py | ademuk/features-service | 2c5b448435c7491c0952fd38f31dd8cc987788c4 | [
"MIT"
] | null | null | null | service/routing.py | ademuk/features-service | 2c5b448435c7491c0952fd38f31dd8cc987788c4 | [
"MIT"
] | null | null | null | service/routing.py | ademuk/features-service | 2c5b448435c7491c0952fd38f31dd8cc987788c4 | [
"MIT"
] | null | null | null | from channels import route
from .features import consumers
path = r'^/api/projects/(?P<id>[0-9a-f-]+)/stream/$'
channel_routing = [
route("websocket.connect", consumers.connect_to_project, path=path),
route("websocket.receive", consumers.disconnect_from_project, path=path)
]
| 28.6 | 76 | 0.737762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.29021 |
ee464501d973897e3ed2b4d73bd1727f9c46ec63 | 4,923 | py | Python | hearts_navigation/scripts/location_goal.py | HeartsBRL/hearts_navigation | 0f1434675bd200741ea8b21381f35b83692de986 | [
"MIT"
] | null | null | null | hearts_navigation/scripts/location_goal.py | HeartsBRL/hearts_navigation | 0f1434675bd200741ea8b21381f35b83692de986 | [
"MIT"
] | null | null | null | hearts_navigation/scripts/location_goal.py | HeartsBRL/hearts_navigation | 0f1434675bd200741ea8b21381f35b83692de986 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# https://github.com/studioimaginaire/phue
import rospy
from geometry_msgs.msg import PoseStamped, Pose, Pose2D
from std_msgs.msg import String
import json
import io
import os
# pose = Pose value
# location = string value
class Location():
def __init__(self):
self.PATH = rospy.ge... | 27.198895 | 109 | 0.549868 | 4,551 | 0.924436 | 0 | 0 | 0 | 0 | 0 | 0 | 991 | 0.2013 |
ee46f59058bfd66eb8f015628cb6a304ce257ecc | 3,471 | py | Python | scripts/kinova_joy_teleop.py | Gregory-Baker/kinova_joy_teleop | 42666022662fdcf7985ca5d4598eecb5e18eb8b6 | [
"MIT"
] | null | null | null | scripts/kinova_joy_teleop.py | Gregory-Baker/kinova_joy_teleop | 42666022662fdcf7985ca5d4598eecb5e18eb8b6 | [
"MIT"
] | null | null | null | scripts/kinova_joy_teleop.py | Gregory-Baker/kinova_joy_teleop | 42666022662fdcf7985ca5d4598eecb5e18eb8b6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Node to convert joystick commands to kinova arm cartesian movements
"""
import rospy
from sensor_msgs.msg import Joy
#from geometry_msgs.msg import Pose
from kortex_driver.msg import TwistCommand, Finger, Empty, Pose
from kortex_driver.srv import SendGripperCommand, SendGripperCommandRequest... | 35.418367 | 135 | 0.675886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 655 | 0.188706 |
ee476c7b28e95c420c92669fa0909df9dee5dae3 | 576 | py | Python | ausgesondert/dammitJim.py | Coding-for-the-Arts/drawbot-samples-solutions | 7191610d6efd7d788056070e7826d255b7ef496b | [
"CC0-1.0"
] | null | null | null | ausgesondert/dammitJim.py | Coding-for-the-Arts/drawbot-samples-solutions | 7191610d6efd7d788056070e7826d255b7ef496b | [
"CC0-1.0"
] | null | null | null | ausgesondert/dammitJim.py | Coding-for-the-Arts/drawbot-samples-solutions | 7191610d6efd7d788056070e7826d255b7ef496b | [
"CC0-1.0"
] | null | null | null | kraftausdruecke = [
"Mist",
"Verdammt",
"Mannmannmann",
"Herrgottnochmal",
"Echt jetzt",
"Zum Teufel"
]
berufe = [
"Baggerführer",
"Velokurier",
"Tierärztin",
"Verkehrspolizist",
"Schreinerin",
"Apotheker",
"Komponist",
"Physikerin",
"Buchhändlerin"
]
... | 20.571429 | 59 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 327 | 0.562823 |
ee4a673bdc3ecbf54bdd00a403e289703d72c886 | 2,429 | py | Python | python/652_find_duplicated_subtrees.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | 17 | 2016-03-01T22:40:53.000Z | 2021-04-19T02:15:03.000Z | python/652_find_duplicated_subtrees.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | null | null | null | python/652_find_duplicated_subtrees.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | 3 | 2019-03-07T03:48:43.000Z | 2020-04-05T01:11:36.000Z | # 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
class Solution:
def findDuplicateSubtrees(self, root: TreeNode) -> List[TreeNode]:
# set of all node strings
... | 26.402174 | 83 | 0.539728 | 2,035 | 0.837793 | 0 | 0 | 0 | 0 | 0 | 0 | 836 | 0.344175 |
ee4ac13afb88b80f6571f8b3cdd5af07771ebb6c | 3,391 | py | Python | main.py | rajanant49/Streamlit-Demo-App | 894e0e2dbdf33148bccc6abc791221f6e7b01036 | [
"Apache-2.0"
] | null | null | null | main.py | rajanant49/Streamlit-Demo-App | 894e0e2dbdf33148bccc6abc791221f6e7b01036 | [
"Apache-2.0"
] | null | null | null | main.py | rajanant49/Streamlit-Demo-App | 894e0e2dbdf33148bccc6abc791221f6e7b01036 | [
"Apache-2.0"
] | null | null | null | import streamlit as st
from PIL import Image
import cv2
import numpy as np
from sklearn import datasets
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accu... | 30.54955 | 125 | 0.6243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 920 | 0.271306 |
ee4ba609d0784a1c68fa7c4cd767173c1520196d | 3,485 | py | Python | Face-Pixelizer/res/python/src/pixelize.py | spil3141/Pixelizer-Face | c234fe998727435d88f4b860432945c2e6a957ef | [
"MIT"
] | null | null | null | Face-Pixelizer/res/python/src/pixelize.py | spil3141/Pixelizer-Face | c234fe998727435d88f4b860432945c2e6a957ef | [
"MIT"
] | null | null | null | Face-Pixelizer/res/python/src/pixelize.py | spil3141/Pixelizer-Face | c234fe998727435d88f4b860432945c2e6a957ef | [
"MIT"
] | null | null | null | """
python3 detect.py \
--model ${TEST_DATA}/mobilenet_ssd_v2_face_quant_postprocess_edgetpu.tflite
"""
import argparse
import os
import numpy as np
import tensorflow as tf
import numpy as np
import PIL
import matplotlib.pyplot as plt
import matplotlib.image as matimage
class ConvolutionalAutoencoder(tf.keras.mod... | 34.50495 | 100 | 0.667432 | 1,029 | 0.295265 | 0 | 0 | 0 | 0 | 0 | 0 | 896 | 0.257102 |
ee4d585ac0fdab34831b9549bd00bfc84fbe7647 | 4,905 | py | Python | model_zoo/official/cv/centerface/postprocess.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | 1 | 2021-07-03T06:52:20.000Z | 2021-07-03T06:52:20.000Z | model_zoo/official/cv/centerface/postprocess.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | model_zoo/official/cv/centerface/postprocess.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 59.096386 | 119 | 0.589602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,102 | 0.428542 |
ee4ea53c9f59142caa780fc1889e82f9447f0d50 | 1,231 | py | Python | myapp/multiplication.py | TomokiEmmei/kadai | eaf3c7430aa28ca9cc00bb0dbd219999e5ebb555 | [
"MIT"
] | null | null | null | myapp/multiplication.py | TomokiEmmei/kadai | eaf3c7430aa28ca9cc00bb0dbd219999e5ebb555 | [
"MIT"
] | null | null | null | myapp/multiplication.py | TomokiEmmei/kadai | eaf3c7430aa28ca9cc00bb0dbd219999e5ebb555 | [
"MIT"
] | null | null | null | """
2018.Jan
@author: Tomoki Emmei
description: program to show multiplication and addition table
"""
import sys #read command line argument
# Display the multiplication table
def kakezan(a,b):
Seki_tab=[[0 for i in range(a)] for j in range(b)]# array for the test
for i in range(1,b+1):
for j in range(... | 27.355556 | 77 | 0.570268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 475 | 0.385865 |
ee4f325d1a129d74b4f20d86d9a69e407bc823af | 1,524 | py | Python | iliad/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Iliad | 2220e1e519f479e402072f80f4bc67e419842c4e | [
"MIT"
] | 1 | 2022-03-24T20:32:54.000Z | 2022-03-24T20:32:54.000Z | iliad/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Iliad | 2220e1e519f479e402072f80f4bc67e419842c4e | [
"MIT"
] | null | null | null | iliad/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Iliad | 2220e1e519f479e402072f80f4bc67e419842c4e | [
"MIT"
] | null | null | null | from typing import Callable
import numpy as np
from iliad.integrators.states.lagrangian_leapfrog_state import LagrangianLeapfrogState
from iliad.integrators.fields import riemannian
from iliad.linalg import solve_psd
from odyssey.distribution import Distribution
class RiemannianLeapfrogState(LagrangianLeapfrogStat... | 41.189189 | 119 | 0.740157 | 1,255 | 0.823491 | 0 | 0 | 0 | 0 | 0 | 0 | 270 | 0.177165 |
ee4ffc00f5aac29ae91942bab254cf9e630e3326 | 2,002 | py | Python | PyRods/examples/modify_user_password.py | kaldrill/irodspython | 9a1018429acf9e86af8fb7ea6f37fb397e0010da | [
"CNRI-Python"
] | null | null | null | PyRods/examples/modify_user_password.py | kaldrill/irodspython | 9a1018429acf9e86af8fb7ea6f37fb397e0010da | [
"CNRI-Python"
] | null | null | null | PyRods/examples/modify_user_password.py | kaldrill/irodspython | 9a1018429acf9e86af8fb7ea6f37fb397e0010da | [
"CNRI-Python"
] | null | null | null | # Copyright (c) 2013, University of Liverpool
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program ... | 35.75 | 84 | 0.675824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,084 | 0.541459 |
ee524291fb83e3e5c6e37a9185fb2243d6f26277 | 4,727 | py | Python | nucleus/io/bedgraph.py | gaybro8777/nucleus | 3bd27ac076a6f3f93e49a27ed60661858e727dda | [
"BSD-3-Clause"
] | 721 | 2018-03-30T14:34:17.000Z | 2022-03-23T00:09:18.000Z | nucleus/io/bedgraph.py | aktaseren/nucleus | 3cc9412be81ed86a99fd7eb086ee94afe852759b | [
"Apache-2.0"
] | 38 | 2018-03-31T09:02:23.000Z | 2022-03-23T21:16:41.000Z | nucleus/io/bedgraph.py | aktaseren/nucleus | 3cc9412be81ed86a99fd7eb086ee94afe852759b | [
"Apache-2.0"
] | 123 | 2018-03-30T21:51:18.000Z | 2021-12-13T06:59:31.000Z | # Copyright 2018 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 33.524823 | 80 | 0.767929 | 2,674 | 0.565686 | 0 | 0 | 0 | 0 | 0 | 0 | 3,041 | 0.643326 |
ee5342a6017572637126ba2afb48e284377203df | 7,625 | py | Python | gui/qt/openswap_priceinfo.py | ComputerCraftr/openswap | 7de04aa80dab79bebe4b64483011dad70a48694c | [
"MIT"
] | 16 | 2018-11-05T13:19:02.000Z | 2021-04-06T12:11:49.000Z | gui/qt/openswap_priceinfo.py | ComputerCraftr/openswap | 7de04aa80dab79bebe4b64483011dad70a48694c | [
"MIT"
] | 9 | 2018-09-19T03:37:26.000Z | 2019-04-17T21:58:27.000Z | gui/qt/openswap_priceinfo.py | ComputerCraftr/openswap | 7de04aa80dab79bebe4b64483011dad70a48694c | [
"MIT"
] | 5 | 2018-11-05T13:19:02.000Z | 2020-10-20T09:15:54.000Z | from functools import partial
import math
from electroncash.i18n import _
from electroncash.address import Address
import electroncash.web as web
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from .util import *
from .qrtextedit import ShowQRTextEdit
from electroncash import bc... | 36.658654 | 83 | 0.617574 | 6,918 | 0.907279 | 0 | 0 | 0 | 0 | 0 | 0 | 521 | 0.068328 |
ee54b64f9bc555511d62a6158fb2e8ffda3d1cc6 | 2,906 | py | Python | commons/triggering_training/retraining_defect_type_triggering.py | jibby0/service-auto-analyzer | 79a0dbf6650693a3559b484c51e97e6fac5cc3ba | [
"Apache-2.0"
] | null | null | null | commons/triggering_training/retraining_defect_type_triggering.py | jibby0/service-auto-analyzer | 79a0dbf6650693a3559b484c51e97e6fac5cc3ba | [
"Apache-2.0"
] | null | null | null | commons/triggering_training/retraining_defect_type_triggering.py | jibby0/service-auto-analyzer | 79a0dbf6650693a3559b484c51e97e6fac5cc3ba | [
"Apache-2.0"
] | null | null | null | """
* Copyright 2019 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,... | 47.639344 | 109 | 0.770131 | 2,102 | 0.723331 | 0 | 0 | 0 | 0 | 0 | 0 | 1,151 | 0.396077 |
ee56a41665eea1578283e8ab5f16b946f7b0fc97 | 1,091 | py | Python | cloudmesh-exercises/e-cloudmesh-shell-3.py | cloudmesh-community/fa19-516-159 | 4b327d28ebe9cf8bdd3ef23f1819c0ebfbd7ddbe | [
"Apache-2.0"
] | null | null | null | cloudmesh-exercises/e-cloudmesh-shell-3.py | cloudmesh-community/fa19-516-159 | 4b327d28ebe9cf8bdd3ef23f1819c0ebfbd7ddbe | [
"Apache-2.0"
] | null | null | null | cloudmesh-exercises/e-cloudmesh-shell-3.py | cloudmesh-community/fa19-516-159 | 4b327d28ebe9cf8bdd3ef23f1819c0ebfbd7ddbe | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from cloudmesh.shell.command import command
from cloudmesh.shell.command import PluginCommand
from cloudmesh.docopts_example.api.manager import Manager
from cloudmesh.common.console import Console
from cloudmesh.common.util import path_expand
from pprint import pprint
from cloudmes... | 26.609756 | 97 | 0.64528 | 739 | 0.67736 | 0 | 0 | 656 | 0.601283 | 0 | 0 | 399 | 0.36572 |
ee5de97647ec1a5a844d776fae68ad8d234a3b9c | 2,790 | py | Python | tests/test_dvg_util_funcs.py | tos-kamiya/dvg | eb2df7f4b9850543098003a07f565227cdbf11fa | [
"BSD-2-Clause"
] | null | null | null | tests/test_dvg_util_funcs.py | tos-kamiya/dvg | eb2df7f4b9850543098003a07f565227cdbf11fa | [
"BSD-2-Clause"
] | null | null | null | tests/test_dvg_util_funcs.py | tos-kamiya/dvg | eb2df7f4b9850543098003a07f565227cdbf11fa | [
"BSD-2-Clause"
] | null | null | null | from typing import *
import unittest
import contextlib
import os
import sys
import tempfile
from dvg.dvg import prune_overlapped_paragraphs, expand_file_iter
@contextlib.contextmanager
def back_to_curdir():
curdir = os.getcwd()
try:
yield
finally:
os.chdir(curdir)
def touch(file_name: ... | 28.469388 | 103 | 0.506093 | 2,336 | 0.837276 | 107 | 0.038351 | 134 | 0.048029 | 0 | 0 | 130 | 0.046595 |
ee60c5f12218481a614f45ba662c82c90fe52fd1 | 108 | py | Python | us_congress/_exceptions.py | drawjk705/us-congress | dedae9171953f770d9b6efe4f1e4db83f60dd4b4 | [
"MIT"
] | 1 | 2021-09-10T21:06:40.000Z | 2021-09-10T21:06:40.000Z | us_congress/_exceptions.py | drawjk705/us-congress | dedae9171953f770d9b6efe4f1e4db83f60dd4b4 | [
"MIT"
] | null | null | null | us_congress/_exceptions.py | drawjk705/us-congress | dedae9171953f770d9b6efe4f1e4db83f60dd4b4 | [
"MIT"
] | null | null | null | class NoCongressApiKeyException(Exception):
"""
Thrown when no Congress API key is provided
"""
| 21.6 | 47 | 0.694444 | 107 | 0.990741 | 0 | 0 | 0 | 0 | 0 | 0 | 59 | 0.546296 |
ee61b12145d3742ab35520782261592ec9adb889 | 832 | py | Python | server/api/health.py | lab-grid/labflow | 967c0ac041e2b1000a2624fc3adf1b27fce135c9 | [
"MIT"
] | 4 | 2020-10-20T00:23:28.000Z | 2021-09-14T10:31:02.000Z | server/api/health.py | lab-grid/flow | 967c0ac041e2b1000a2624fc3adf1b27fce135c9 | [
"MIT"
] | 104 | 2020-10-17T22:41:18.000Z | 2021-04-13T18:52:58.000Z | server/api/health.py | lab-grid/labflow | 967c0ac041e2b1000a2624fc3adf1b27fce135c9 | [
"MIT"
] | 2 | 2020-10-17T21:27:52.000Z | 2021-01-10T08:02:47.000Z | from typing import Union
from fastapi import Depends
from fastapi.responses import JSONResponse
from sqlalchemy.orm import Session
from authorization import get_all_roles
from server import app, get_db
from settings import settings
from models import HealthCheck
@app.get('/health', tags=['system'], response_model=He... | 26.83871 | 98 | 0.682692 | 0 | 0 | 0 | 0 | 565 | 0.679087 | 466 | 0.560096 | 110 | 0.132212 |
ee62497549e11786eed94ddaf1b321e00e07b0ad | 43 | py | Python | MultiSourceDataFeeds/Providers/Factal/factal/__init__.py | Esri/ArcGIS-Solutions-for-Business | 306b778bb6246f13766ce14245c6ba2aab42ba08 | [
"Apache-2.0"
] | 1 | 2021-01-30T04:43:31.000Z | 2021-01-30T04:43:31.000Z | MultiSourceDataFeeds/Providers/Factal/factal/__init__.py | Esri/ArcGIS-Solutions-for-Business | 306b778bb6246f13766ce14245c6ba2aab42ba08 | [
"Apache-2.0"
] | null | null | null | MultiSourceDataFeeds/Providers/Factal/factal/__init__.py | Esri/ArcGIS-Solutions-for-Business | 306b778bb6246f13766ce14245c6ba2aab42ba08 | [
"Apache-2.0"
] | null | null | null | from .factal import *
from .schema import * | 21.5 | 21 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ee625190ee933eb34ed6aced294e275dfea0c9b7 | 1,482 | py | Python | SecretPlots/managers/location/_base.py | secretBiology/SecretPlots | eca1d0e0932e605df49d1f958f98a1f41200d589 | [
"MIT"
] | null | null | null | SecretPlots/managers/location/_base.py | secretBiology/SecretPlots | eca1d0e0932e605df49d1f958f98a1f41200d589 | [
"MIT"
] | null | null | null | SecretPlots/managers/location/_base.py | secretBiology/SecretPlots | eca1d0e0932e605df49d1f958f98a1f41200d589 | [
"MIT"
] | 1 | 2022-01-14T05:43:49.000Z | 2022-01-14T05:43:49.000Z | # SecretPlots
# Copyright (c) 2019. SecretBiology
#
# Author: Rohit Suratekar
# Organisation: SecretBiology
# Website: https://github.com/secretBiology/SecretPlots
# Licence: MIT License
# Creation: 05/10/19, 7:52 PM
#
# All Location Managers will go here
from SecretPlots.managers._axis import AxisManager
from... | 23.15625 | 69 | 0.653171 | 1,037 | 0.69973 | 0 | 0 | 612 | 0.412955 | 0 | 0 | 254 | 0.17139 |
ee6420717483b3976c5a090488575b8372f61f62 | 5,279 | py | Python | scenes/flip06_obstacle.py | spockthegray/mantaflow | df72cf235e14ef4f3f8fac9141b5e0a8707406b3 | [
"Apache-2.0"
] | 158 | 2018-06-24T17:42:13.000Z | 2022-03-12T13:29:43.000Z | scenes/flip06_obstacle.py | spockthegray/mantaflow | df72cf235e14ef4f3f8fac9141b5e0a8707406b3 | [
"Apache-2.0"
] | 5 | 2018-09-05T07:30:48.000Z | 2020-07-01T08:56:28.000Z | scenes/flip06_obstacle.py | spockthegray/mantaflow | df72cf235e14ef4f3f8fac9141b5e0a8707406b3 | [
"Apache-2.0"
] | 35 | 2018-06-13T04:05:42.000Z | 2022-03-29T16:55:24.000Z | #
# This FLIP example combines narrow band flip, 2nd order wall boundary conditions, and
# adaptive time stepping.
#
from manta import *
dim = 3
res = 64
#res = 124
gs = vec3(res,res,res)
if (dim==2):
gs.z=1
s = Solver(name='main', gridSize = gs, dim=dim)
narrowBand = 3
minParticles = pow(2,dim)
s... | 32.99375 | 154 | 0.722675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,334 | 0.252699 |
ee642f13bf49e8b1507609caffabf3cbde051eab | 369 | py | Python | main.py | Sisyphus141/Password-Encoded | 3353874e0dd8665bb36891616f809aca465f9047 | [
"MIT"
] | null | null | null | main.py | Sisyphus141/Password-Encoded | 3353874e0dd8665bb36891616f809aca465f9047 | [
"MIT"
] | null | null | null | main.py | Sisyphus141/Password-Encoded | 3353874e0dd8665bb36891616f809aca465f9047 | [
"MIT"
] | null | null | null | import hashlib
#take a key
key = str(input("KEY>>> "))
#take a message
password = str(input("MESSAGE>>> "))
#function does does something
#make this more complex or something IDK
password = (key + password + key)
hash1 = hashlib.new("sha256")
password = password.encode("utf-8")
print(password)
has... | 19.421053 | 41 | 0.672087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 137 | 0.371274 |
ee646ecd75eb338880899b14fe5eafbb53b55cd1 | 38,214 | py | Python | gewittergefahr/gg_io/myrorss_and_mrms_io.py | dopplerchase/GewitterGefahr | 4415b08dd64f37eba5b1b9e8cc5aa9af24f96593 | [
"MIT"
] | 26 | 2018-10-04T01:07:35.000Z | 2022-01-29T08:49:32.000Z | gewittergefahr/gg_io/myrorss_and_mrms_io.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 4 | 2017-12-25T02:01:08.000Z | 2018-12-19T01:54:21.000Z | gewittergefahr/gg_io/myrorss_and_mrms_io.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 11 | 2017-12-10T23:05:29.000Z | 2022-01-29T08:49:33.000Z | """IO methods for radar data from MYRORSS or MRMS.
MYRORSS = Multi-year Reanalysis of Remotely Sensed Storms
MRMS = Multi-radar Multi-sensor
"""
import os
import glob
import warnings
import numpy
import pandas
from netCDF4 import Dataset
from gewittergefahr.gg_io import netcdf_io
from gewittergefahr.gg_utils import ... | 42.365854 | 80 | 0.731041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12,086 | 0.316272 |
ee66be524d32778f359946d067c84065472b72da | 94 | py | Python | node-runner-cli/setup/__init__.py | stuartbain/node-runner | 89d10986dbc79da06df402cb17f3edec736f3709 | [
"Apache-2.0"
] | 18 | 2018-11-26T13:22:10.000Z | 2022-03-28T12:41:44.000Z | node-runner-cli/setup/__init__.py | stuartbain/node-runner | 89d10986dbc79da06df402cb17f3edec736f3709 | [
"Apache-2.0"
] | 30 | 2018-09-12T06:40:03.000Z | 2021-09-24T13:46:59.000Z | node-runner-cli/setup/__init__.py | stuartbain/node-runner | 89d10986dbc79da06df402cb17f3edec736f3709 | [
"Apache-2.0"
] | 12 | 2018-09-24T01:57:02.000Z | 2022-03-07T17:55:13.000Z | from setup.Base import Base
from setup.Docker import Docker
from setup.SystemD import SystemD
| 23.5 | 33 | 0.840426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ee6793056d92226902cff484562e9055263810e1 | 10,325 | bzl | Python | config/bazel/repositories.bzl | nala-cub/coda | 581608cfc4d9b485182c6f5f40dd2ab7540cec66 | [
"Apache-2.0"
] | 1 | 2021-11-13T06:19:22.000Z | 2021-11-13T06:19:22.000Z | config/bazel/repositories.bzl | nala-cub/coda | 581608cfc4d9b485182c6f5f40dd2ab7540cec66 | [
"Apache-2.0"
] | 1 | 2021-12-21T17:56:58.000Z | 2021-12-21T18:16:27.000Z | config/bazel/repositories.bzl | nala-cub/coda | 581608cfc4d9b485182c6f5f40dd2ab7540cec66 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Cory Paik. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 43.200837 | 132 | 0.670799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,773 | 0.655981 |
ee682792cda511c74c606d02749117ec478e5c63 | 177 | py | Python | src/apps/dive_log/apps.py | GotlingSystem/apnea | 6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1 | [
"MIT"
] | null | null | null | src/apps/dive_log/apps.py | GotlingSystem/apnea | 6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1 | [
"MIT"
] | 3 | 2015-02-14T18:51:19.000Z | 2015-02-24T07:44:05.000Z | src/apps/dive_log/apps.py | GotlingSystem/apnea | 6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class DiveLogConfig(AppConfig):
name = 'dive_log'
verbose_name = _(u'Dyklog') | 25.285714 | 55 | 0.768362 | 85 | 0.480226 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 0.107345 |
ee699a71ac54286cafed23dd6c6819d85173b00b | 3,051 | py | Python | app/core/settings/settings.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | app/core/settings/settings.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | app/core/settings/settings.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | import json
import logging
import sys
from decouple import config
# general
ENVIRONMENT: str = config("ENVIRONMENT", "docker")
API_VERSION: str = config("API_VERSION", "/api")
PROJECT_NAME: str = config("PROJECT_NAME", "Stocks")
BACKEND_CORS_ORIGINS: str = config("BACKEND_CORS_ORIGINS", "*")
DATETIME_FORMAT = "%Y-%... | 25.855932 | 76 | 0.59587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,617 | 0.52999 |
ee6ce037321b65c4af02a18fbc8b39f5c8feab5e | 3,673 | py | Python | DCP_13.py | sgorlick/dailycodingproblem.com-solns | b7e006070fab3c69b0e6a95bd1ce51e642d7f0a0 | [
"MIT"
] | null | null | null | DCP_13.py | sgorlick/dailycodingproblem.com-solns | b7e006070fab3c69b0e6a95bd1ce51e642d7f0a0 | [
"MIT"
] | null | null | null | DCP_13.py | sgorlick/dailycodingproblem.com-solns | b7e006070fab3c69b0e6a95bd1ce51e642d7f0a0 | [
"MIT"
] | null | null | null | #This problem was asked by Amazon.
#Given an integer k and a string s, find the length of the longest substring that contains at most k distinct characters.
#For example, given s = "abcba" and k = 2, the longest substring with k distinct characters is "bcb".
def DCP_13(s,k):
#ciel k by the number of uni... | 26.615942 | 159 | 0.555949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,840 | 0.77321 |
ee6e8e289a9de7e4f9d0b9c903a761ab4c91411d | 4,049 | py | Python | Gathered CTF writeups/2017-11-04-hitcon/secret_server/attack.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/2017-11-04-hitcon/secret_server/attack.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/2017-11-04-hitcon/secret_server/attack.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | import base64
import hashlib
import re
import string
import itertools
from crypto_commons.netcat.netcat_commons import receive_until_match, nc, send, receive_until
from crypto_commons.symmetrical.symmetrical import set_byte_cbc, set_cbc_payload_for_block
def PoW(suffix, digest):
for prefix in itertools.product(... | 44.988889 | 141 | 0.594221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 391 | 0.096567 |
ee700eb445091218a56c4ea006f8edce90b03bd2 | 8,170 | py | Python | tarpn/settings.py | tarpn/tarpn-node-controller | f5841e9181f24935c507993500d22e9b313c0f23 | [
"MIT"
] | 4 | 2020-07-26T20:33:09.000Z | 2022-02-14T00:17:27.000Z | tarpn/settings.py | tarpn/tarpn-node-controller | f5841e9181f24935c507993500d22e9b313c0f23 | [
"MIT"
] | 9 | 2020-08-01T21:29:55.000Z | 2022-01-03T00:45:17.000Z | tarpn/settings.py | tarpn/tarpn-node-controller | f5841e9181f24935c507993500d22e9b313c0f23 | [
"MIT"
] | 3 | 2020-08-26T18:37:55.000Z | 2022-02-14T00:18:01.000Z | import configparser
import re
import sys
import os
from typing import Optional, Mapping, Iterator, Any, List, Dict
_default_settings = {
"node": {
"id.message": "Terrestrial Amateur Radio Packet Network node ${node.alias} op is ${node.call}",
"id.interval": 600,
"admin.enabled": False,
... | 30.599251 | 103 | 0.59645 | 7,113 | 0.870624 | 0 | 0 | 765 | 0.093635 | 0 | 0 | 1,280 | 0.156671 |
ee709ac2d49de9a25f6994afec04b8339c1c352a | 1,952 | py | Python | mindhome_alpha/erpnext/patches/v11_0/make_asset_finance_book_against_old_entries.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/patches/v11_0/make_asset_finance_book_against_old_entries.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/patches/v11_0/make_asset_finance_book_against_old_entries.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import rebuild_tree
def execute():
frappe.reload_doc('assets', 'doctype', 'asset_finance_book')
frappe.reload_doc('assets', 'docty... | 43.377778 | 111 | 0.76332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 931 | 0.476947 |
ee70bc7fa006c6b656696699e7b20490a6b297e1 | 1,709 | py | Python | gui/web.py | irfanchahyadi/Scraping-komikid | 79db8f4e617b489a31f4c0161d665e0d3bd47d07 | [
"MIT"
] | 3 | 2021-06-20T15:26:42.000Z | 2021-09-13T08:20:47.000Z | gui/web.py | irfanchahyadi/Scraping-komikid | 79db8f4e617b489a31f4c0161d665e0d3bd47d07 | [
"MIT"
] | 1 | 2021-11-20T11:09:41.000Z | 2021-11-20T11:09:41.000Z | gui/web.py | irfanchahyadi/Scraping-komikid | 79db8f4e617b489a31f4c0161d665e0d3bd47d07 | [
"MIT"
] | 2 | 2021-09-04T11:49:13.000Z | 2021-11-03T11:01:47.000Z |
"""
Web GUI
Author: Irfan Chahyadi
Source: github.com/irfanchahyadi/Scraping-Manga
"""
# IMPORT REQUIRED PACKAGE
from flask import Flask, render_template, request, redirect, url_for, Response
import os, webbrowser, time
from gui import web_api
import main
app = Flask(__name__)
@app.route('/tes')
def tes():
return ... | 24.768116 | 136 | 0.675834 | 0 | 0 | 322 | 0.188414 | 1,170 | 0.684611 | 0 | 0 | 523 | 0.306027 |
ee7114274f05df3d5f9b0b4f95761fdb8ac8dbcd | 4,144 | py | Python | Python/index_finder.py | jgruselius/misc | ae4aa6c72cebed1ef0160f95488e3827fbf706c9 | [
"Apache-2.0"
] | 1 | 2018-09-28T12:12:17.000Z | 2018-09-28T12:12:17.000Z | Python/index_finder.py | jgruselius/misc | ae4aa6c72cebed1ef0160f95488e3827fbf706c9 | [
"Apache-2.0"
] | null | null | null | Python/index_finder.py | jgruselius/misc | ae4aa6c72cebed1ef0160f95488e3827fbf706c9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Author: Joel Gruselius, Dec 2018
# Script for checking index clashes
# Input one or several nucleotide sequences and print any matches found in
# the index reference file. This version is only good for checking for
# full matches.
# It is pretty useful though to list overlapping indexes in th... | 33.152 | 80 | 0.602799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,240 | 0.299228 |
ee7168cfeda4b2b5f89ba093e9c94ab09fd2c935 | 658 | py | Python | AwardsApp/migrations/0007_auto_20210720_2237.py | josphat-otieno/project-reviews | 5eaf9334fbd15b95726aee922f936d83e6f3d56f | [
"MIT"
] | null | null | null | AwardsApp/migrations/0007_auto_20210720_2237.py | josphat-otieno/project-reviews | 5eaf9334fbd15b95726aee922f936d83e6f3d56f | [
"MIT"
] | null | null | null | AwardsApp/migrations/0007_auto_20210720_2237.py | josphat-otieno/project-reviews | 5eaf9334fbd15b95726aee922f936d83e6f3d56f | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-20 19:37
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('AwardsApp', '0006_userprofile_bio'),
]
operations = [
migrations.AlterField(
model_name='project',
... | 26.32 | 92 | 0.630699 | 548 | 0.832827 | 0 | 0 | 0 | 0 | 0 | 0 | 149 | 0.226444 |
ee71bab2985f3631fdcc1485aee64b956e3c9e71 | 1,022 | py | Python | Lesson 1/lesson-1-quiz.py | 2series/Data-Structures-and-Algorithms | 68d26dd1e5a21a414321fe70e6fedefd561b0ee9 | [
"MIT"
] | 1 | 2020-02-23T07:40:39.000Z | 2020-02-23T07:40:39.000Z | Lesson 1/lesson-1-quiz.py | 2series/Data-Structures-and-Algorithms | 68d26dd1e5a21a414321fe70e6fedefd561b0ee9 | [
"MIT"
] | null | null | null | Lesson 1/lesson-1-quiz.py | 2series/Data-Structures-and-Algorithms | 68d26dd1e5a21a414321fe70e6fedefd561b0ee9 | [
"MIT"
] | 3 | 2019-12-05T11:04:58.000Z | 2020-02-26T10:42:08.000Z | """input manatees: a list of "manatees", where one manatee is represented by a dictionary
a single manatee has properties like "name", "age", et cetera
n = the number of elements in "manatees"
m = the number of properties per "manatee" (i.e. the number of keys in a manatee dictionary)"""
# Efficiency: O(n)
def example... | 32.967742 | 95 | 0.657534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 426 | 0.41683 |
ee721578168ba6c38ea84e55b427798b1b341a75 | 695 | py | Python | warehouse/tests.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | null | null | null | warehouse/tests.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | 3 | 2021-07-27T13:11:36.000Z | 2021-08-10T22:54:55.000Z | warehouse/tests.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | null | null | null | from django.urls import reverse
from address.models import Address
from core.tests import BaseTestSimpleApiMixin
from thairod.utils.test_util import APITestCase
from warehouse.models import Warehouse
class WarehouseAPITestCase(BaseTestSimpleApiMixin, APITestCase):
def setUp(self):
self.model = Warehouse... | 31.590909 | 81 | 0.676259 | 491 | 0.706475 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 0.123741 |
ee727f9a4edfd776db2f6156ac18429d56618c95 | 4,490 | py | Python | src/meltano/api/app.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 4 | 2019-12-01T12:47:58.000Z | 2021-02-09T00:42:52.000Z | src/meltano/api/app.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 38 | 2019-12-09T06:53:33.000Z | 2022-03-29T22:29:19.000Z | src/meltano/api/app.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 1 | 2020-11-23T20:47:18.000Z | 2020-11-23T20:47:18.000Z | import datetime
import logging
import logging.handlers
import os
import atexit
from flask import Flask, request, g
from flask_login import current_user
from flask_cors import CORS
from importlib import reload
from urllib.parse import urlsplit
import meltano
from meltano.core.project import Project
from meltano.core.tr... | 29.346405 | 81 | 0.704677 | 0 | 0 | 0 | 0 | 1,334 | 0.297105 | 0 | 0 | 521 | 0.116036 |
ee7343721934bb1607af511c0969882332910b83 | 24,456 | py | Python | rsTools/utils/openMaya/deformer.py | robertstratton630/rigTools | cdc9530bf12ac46654860443c2c264fce619dbd0 | [
"MIT"
] | null | null | null | rsTools/utils/openMaya/deformer.py | robertstratton630/rigTools | cdc9530bf12ac46654860443c2c264fce619dbd0 | [
"MIT"
] | null | null | null | rsTools/utils/openMaya/deformer.py | robertstratton630/rigTools | cdc9530bf12ac46654860443c2c264fce619dbd0 | [
"MIT"
] | null | null | null | import maya.cmds as cmds
import re
import rsTools.utils.openMaya.dataUtils as dUtils
import maya.OpenMayaAnim as OpenMayaAnimOld
import maya.OpenMaya as OpenMayaOld
import maya.api.OpenMaya as om
import maya.api.OpenMayaAnim as oma
def isDeformer(deformer):
if not cmds.objExists(deformer):
return False
... | 33.45554 | 123 | 0.677257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8,245 | 0.337136 |
ee74b61615725492239c5444cd5387bf60c2f49c | 804 | py | Python | util/save_image_worker.py | zigonk/CMPC-Refseg | 0d59c90e9968ed836c695976ff90081e1c24378a | [
"MIT"
] | null | null | null | util/save_image_worker.py | zigonk/CMPC-Refseg | 0d59c90e9968ed836c695976ff90081e1c24378a | [
"MIT"
] | null | null | null | util/save_image_worker.py | zigonk/CMPC-Refseg | 0d59c90e9968ed836c695976ff90081e1c24378a | [
"MIT"
] | null | null | null | import logging
import os
from queue import Queue
from threading import Thread
from time import time
import cv2
class SaveThread(Thread):
def __init__(self, queue):
Thread.__init__(self)
self.queue = queue
def run(self):
while True:
# Get the work from the queue and expand t... | 27.724138 | 62 | 0.609453 | 690 | 0.858209 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0.062189 |
ee7534e127b9fb25131caade726542eb20c6bbe5 | 208 | py | Python | pesummary/utils/__init__.py | pesummary/pesummary | 99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8 | [
"MIT"
] | 1 | 2021-08-03T05:58:20.000Z | 2021-08-03T05:58:20.000Z | pesummary/utils/__init__.py | pesummary/pesummary | 99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8 | [
"MIT"
] | 1 | 2020-06-13T13:29:35.000Z | 2020-06-15T12:45:04.000Z | pesummary/utils/__init__.py | pesummary/pesummary | 99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8 | [
"MIT"
] | 3 | 2021-07-08T08:31:28.000Z | 2022-03-31T14:08:58.000Z | # Licensed under an MIT style license -- see LICENSE.md
from .utils import (
gw_results_file, functions, history_dictionary, command_line_arguments
)
__author__ = ["Charlie Hoy <[email protected]>"]
| 26 | 74 | 0.759615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.4375 |
ee777920db42ef90f8ce8a58fb13a346a19081f4 | 7,444 | py | Python | catalog/views.py | chancald/mask-ecommerce | 1907007e726f989b6d99546e1b03ad5891d65715 | [
"Apache-2.0"
] | null | null | null | catalog/views.py | chancald/mask-ecommerce | 1907007e726f989b6d99546e1b03ad5891d65715 | [
"Apache-2.0"
] | null | null | null | catalog/views.py | chancald/mask-ecommerce | 1907007e726f989b6d99546e1b03ad5891d65715 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib import messages
from django.utils import timezone
from django.views.generic import ListView, DetailView, View
from .models import Item, Order, OrderItem, Address, Promo
from .forms import AddressForm, PromoForm
from django.http import ... | 42.537143 | 171 | 0.623052 | 3,882 | 0.521354 | 0 | 0 | 0 | 0 | 0 | 0 | 1,232 | 0.165458 |
ee782ef725478d903e728b0f667018c3fa8766e7 | 20,700 | py | Python | source/scripts/common/Utils.py | hjimmy/glustermg | e43ad5f17b248fa543f0b5d4204baca3c8b18aab | [
"MulanPSL-1.0"
] | null | null | null | source/scripts/common/Utils.py | hjimmy/glustermg | e43ad5f17b248fa543f0b5d4204baca3c8b18aab | [
"MulanPSL-1.0"
] | null | null | null | source/scripts/common/Utils.py | hjimmy/glustermg | e43ad5f17b248fa543f0b5d4204baca3c8b18aab | [
"MulanPSL-1.0"
] | null | null | null | # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com>
# This file is part of Gluster Management Gateway (GlusterMG).
#
# GlusterMG is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 3 of... | 32.394366 | 204 | 0.608454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,608 | 0.222609 |
ee78cab8fb68e7a82e7fffa023da93ce159c8f3e | 1,243 | py | Python | mnd_utils/video.py | mnicolas94/python_utils | f9491fea3e73c94ef49b5bc844c39b2bc7be8318 | [
"MIT"
] | null | null | null | mnd_utils/video.py | mnicolas94/python_utils | f9491fea3e73c94ef49b5bc844c39b2bc7be8318 | [
"MIT"
] | null | null | null | mnd_utils/video.py | mnicolas94/python_utils | f9491fea3e73c94ef49b5bc844c39b2bc7be8318 | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
def generate_test_video(frames=1000):
"""
Generador de imágenes donde cada imagen tiene el índice de su posición dibujado en el centro
y codificado en el pixel superior izquierdo.
Para decodificar el índice se debe usar lo siguiente:
pixel = image[0][0]
indice = pixel[0]*25... | 30.317073 | 105 | 0.687852 | 0 | 0 | 695 | 0.556445 | 0 | 0 | 0 | 0 | 412 | 0.329864 |
ee799216d33c9ed30924cce3dbebfa13f696710c | 7,220 | py | Python | taskq/consumer.py | ipsosante/django-taskq | 933893c51bf512983b1ca0fc0b8db523d37c9996 | [
"MIT"
] | null | null | null | taskq/consumer.py | ipsosante/django-taskq | 933893c51bf512983b1ca0fc0b8db523d37c9996 | [
"MIT"
] | 5 | 2018-11-22T13:42:10.000Z | 2019-09-16T13:00:41.000Z | taskq/consumer.py | ipsosante/django-taskq | 933893c51bf512983b1ca0fc0b8db523d37c9996 | [
"MIT"
] | null | null | null | import importlib
import logging
import threading
from time import sleep
import timeout_decorator
from django_pglocks import advisory_lock
from django.conf import settings
from django.db import transaction
from django.db.models import Q
from django.utils import timezone
from .constants import TASKQ_DEFAULT_CONSUMER_... | 34.380952 | 109 | 0.635457 | 6,588 | 0.912465 | 0 | 0 | 406 | 0.056233 | 0 | 0 | 1,682 | 0.232964 |
ee7b13e3f8add887be12393c811c00fdb0fd0ddc | 14,786 | py | Python | async_message_bus_test.py | ifurusato/ros | 77b1361e78f68f00ba2d3e3db908bb5ce0f973f5 | [
"MIT"
] | 9 | 2020-10-12T08:49:55.000Z | 2021-07-23T14:20:05.000Z | async_message_bus_test.py | fanmuzhi/ros | 04534a35901341c4aaa9084bff3d46851795357d | [
"MIT"
] | 12 | 2020-07-22T19:08:58.000Z | 2022-02-03T03:17:03.000Z | async_message_bus_test.py | fanmuzhi/ros | 04534a35901341c4aaa9084bff3d46851795357d | [
"MIT"
] | 3 | 2020-07-19T20:43:19.000Z | 2022-03-02T09:15:51.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020-2021 by Murray Altheim. All rights reserved. This file is part
# of the Robot Operating System project, released under the MIT License. Please
# see the LICENSE file included as part of this package.
#
# author: Murray Altheim
# created: 2021-02-24
# ... | 42.245714 | 178 | 0.540714 | 11,632 | 0.78669 | 0 | 0 | 3,190 | 0.215745 | 2,929 | 0.198093 | 5,844 | 0.395239 |
ee7ba2306ea22a03b64701fd0713ad3f2419cb98 | 2,113 | py | Python | terrain_gen.py | MrKren/TTA | 3a677337fbcca199a88c64248af89d0889b960dd | [
"MIT"
] | null | null | null | terrain_gen.py | MrKren/TTA | 3a677337fbcca199a88c64248af89d0889b960dd | [
"MIT"
] | null | null | null | terrain_gen.py | MrKren/TTA | 3a677337fbcca199a88c64248af89d0889b960dd | [
"MIT"
] | null | null | null | import pygame
import random
class Tile(pygame.sprite.Sprite):
"""Tile class that acts as a sprite"""
# Creates sprite tile with image
def __init__(self, original_image, mask_image):
super().__init__()
self.image = original_image
self.mask_image = mask_image
self.... | 30.185714 | 77 | 0.546143 | 2,076 | 0.982489 | 0 | 0 | 0 | 0 | 0 | 0 | 286 | 0.135353 |
ee7bdfb8faa653258cb1a64cd8897b40dfd8e04b | 207 | py | Python | examples/automator/swatcher_quick_action.py | joshbduncan/swatcher | 91e459df75be4c50d38540b8cf49c6c4ed6a5764 | [
"MIT"
] | null | null | null | examples/automator/swatcher_quick_action.py | joshbduncan/swatcher | 91e459df75be4c50d38540b8cf49c6c4ed6a5764 | [
"MIT"
] | null | null | null | examples/automator/swatcher_quick_action.py | joshbduncan/swatcher | 91e459df75be4c50d38540b8cf49c6c4ed6a5764 | [
"MIT"
] | null | null | null | import sys
from swatcher import Swatcher
if __name__ == "__main__":
files = sys.argv[1:]
for file in files:
s = Swatcher(file)
s.export_ase_file()
s.export_palette_image()
| 17.25 | 32 | 0.628019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.048309 |
ee7ca142b0ca37407f34d60f1083590fe6f55203 | 1,179 | py | Python | setup.py | jjk01/muMap | fe879039d025d62b51a70a088f3b0b275e134d9b | [
"BSD-3-Clause"
] | 8 | 2021-11-23T10:44:02.000Z | 2022-02-23T20:56:05.000Z | setup.py | jjk01/muMap | fe879039d025d62b51a70a088f3b0b275e134d9b | [
"BSD-3-Clause"
] | null | null | null | setup.py | jjk01/muMap | fe879039d025d62b51a70a088f3b0b275e134d9b | [
"BSD-3-Clause"
] | 2 | 2021-12-05T16:52:15.000Z | 2022-03-31T22:15:09.000Z | #! /usr/bin/env python
from setuptools import setup
VERSION = "1.0"
AUTHOR = "James Klatzow, Virginie Uhlmann"
AUTHOR_EMAIL = "[email protected]"
setup(
name="microMatch",
version=VERSION,
description="3D shape correspondence for microscopy data",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
pa... | 29.475 | 73 | 0.605598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 749 | 0.635284 |
ee7d13ac1bfb50aa14e3d432688e96e955f612d9 | 1,615 | py | Python | scripts/python3-shell-job-example.py | pfeilbr/aws-glue-playground | 52648d527a03e32ae1cc6e2f9fcf418e0875021e | [
"MIT"
] | null | null | null | scripts/python3-shell-job-example.py | pfeilbr/aws-glue-playground | 52648d527a03e32ae1cc6e2f9fcf418e0875021e | [
"MIT"
] | null | null | null | scripts/python3-shell-job-example.py | pfeilbr/aws-glue-playground | 52648d527a03e32ae1cc6e2f9fcf418e0875021e | [
"MIT"
] | null | null | null | import datetime
import time
import boto3
import sys
import os
import importlib
print('sys.argv:\n{}\n\n'.format(sys.argv))
print('os.environ:\n{}\n\n'.format(os.environ))
# only run the following if running in aws glue environment (not availble locally)
if 'GLUE_INSTALLATION' in os.environ:
aws_glue_utils = impor... | 33.645833 | 82 | 0.712693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 495 | 0.306502 |
ee7f1ffa3ae65649a2137010308390975957d2f4 | 7,570 | py | Python | magentoclient.py | smileinnovation/snips-magento-skill | c8fe2d1615fce688bcad9258560895a5798c03c2 | [
"Apache-2.0"
] | null | null | null | magentoclient.py | smileinnovation/snips-magento-skill | c8fe2d1615fce688bcad9258560895a5798c03c2 | [
"Apache-2.0"
] | null | null | null | magentoclient.py | smileinnovation/snips-magento-skill | c8fe2d1615fce688bcad9258560895a5798c03c2 | [
"Apache-2.0"
] | null | null | null | import requests
import time
CLIENT_TOKEN_URI = "rest/V1/integration/customer/token"
GET_CART_URI = "rest/default/V1/carts/mine"
GET_CART_ITEM_URI = "rest/default/V1/carts/mine/items"
ADD_TO_CART_URI = "rest/default/V1/carts/mine/items"
ME_URI = "rest/default/V1/customers/me"
DELETE_ITEM_URI = "rest/default/V1/carts/mi... | 36.926829 | 155 | 0.634346 | 5,907 | 0.780317 | 0 | 0 | 3,696 | 0.488243 | 0 | 0 | 1,698 | 0.224306 |
ee7fcf375630b878ce593586dacd44dcf8efa3a5 | 108 | py | Python | spaghettiqueue/__main__.py | giorgioshine/SpaghettiQueue | 44944800a41f2fe041a52c6a4c1d06540ea3c834 | [
"MIT"
] | 9 | 2019-08-14T04:42:36.000Z | 2020-11-18T15:48:13.000Z | spaghettiqueue/__main__.py | Tominous/SpaghettiQueue | 44944800a41f2fe041a52c6a4c1d06540ea3c834 | [
"MIT"
] | 1 | 2019-08-15T18:03:17.000Z | 2019-08-15T18:52:06.000Z | spaghettiqueue/__main__.py | Tominous/SpaghettiQueue | 44944800a41f2fe041a52c6a4c1d06540ea3c834 | [
"MIT"
] | 1 | 2019-12-12T12:14:04.000Z | 2019-12-12T12:14:04.000Z | from spaghettiqueue.__init__ import main
main()
#Makes the code executable by doing python -m spaghettiqueue | 36 | 60 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 60 | 0.555556 |
ee810690b40aba06e4d511080b16348fc6e69b8a | 533 | py | Python | problem_3/problem_3.py | CaioTeixeira95/Euler | 90e98f4110b7e6dc7d36f53eea0b22cf455ac005 | [
"MIT"
] | null | null | null | problem_3/problem_3.py | CaioTeixeira95/Euler | 90e98f4110b7e6dc7d36f53eea0b22cf455ac005 | [
"MIT"
] | null | null | null | problem_3/problem_3.py | CaioTeixeira95/Euler | 90e98f4110b7e6dc7d36f53eea0b22cf455ac005 | [
"MIT"
] | null | null | null | import math
# A function to print all prime factors of
# a given number n
def prime_factor(n):
# Print the number of two's that divide n
while n % 2 == 0:
n = n / 2
# n must be odd at this point
# so a skip of 2 ( i = i + 2) can be used
for i in range(3, int(math.sqrt(n)) + 1, 2):
... | 20.5 | 49 | 0.553471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 262 | 0.491557 |
ee811e9426fe3dcfed1e5b99abbfc02ac9fd2eea | 8,038 | py | Python | ppdet/modeling/architectures/centernet.py | ZeHuiGong/AFSM | 54af2f072071779789ba0baa4e4270a1403fd0dd | [
"Apache-2.0"
] | 27 | 2020-12-07T10:46:39.000Z | 2021-08-01T08:56:33.000Z | ppdet/modeling/architectures/centernet.py | ZeHuiGong/AFSM | 54af2f072071779789ba0baa4e4270a1403fd0dd | [
"Apache-2.0"
] | 4 | 2020-12-18T08:06:15.000Z | 2021-08-01T02:54:50.000Z | ppdet/modeling/architectures/centernet.py | ZeHuiGong/AFSM | 54af2f072071779789ba0baa4e4270a1403fd0dd | [
"Apache-2.0"
] | 4 | 2020-12-18T04:37:42.000Z | 2020-12-31T02:08:33.000Z | # AUTHOR: Zehui Gong
# DATE: 2020/6/16
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import OrderedDict
import copy
from paddle import fluid
from paddle.fluid.param_attr import ParamAttr
from paddle.fluid.initializer import Xavier, Const... | 41.647668 | 116 | 0.58323 | 7,403 | 0.921 | 0 | 0 | 7,413 | 0.922244 | 0 | 0 | 1,605 | 0.199677 |
ee81731e37bb731eaceac3e8565f9dcaff9847fa | 55,219 | py | Python | layers.py | kiranscaria/keras_layers | 1934c4c7a13bfc0be40b224fe586d1c0ffa9f18d | [
"MIT"
] | null | null | null | layers.py | kiranscaria/keras_layers | 1934c4c7a13bfc0be40b224fe586d1c0ffa9f18d | [
"MIT"
] | null | null | null | layers.py | kiranscaria/keras_layers | 1934c4c7a13bfc0be40b224fe586d1c0ffa9f18d | [
"MIT"
] | null | null | null |
import numpy as np
import tensorflow as tf
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.layers import Layer, Lambda
from tensorflow.python.keras.layers import InputSpec
from tensorflow.python.ops import nn_ops
from tensorflow.python.keras import initializers, regularizers, constraints... | 39.869314 | 146 | 0.559264 | 53,226 | 0.963907 | 0 | 0 | 610 | 0.011047 | 0 | 0 | 11,996 | 0.217244 |
ee877e586d4bfd06ebea25a4cf5e0bb5c99e4dd0 | 1,488 | py | Python | test_update_resource_property.py | mconlon17/vivo-foundation | 202f458bc72fb76c7d89240091c4fb00522cfe3f | [
"BSD-3-Clause"
] | null | null | null | test_update_resource_property.py | mconlon17/vivo-foundation | 202f458bc72fb76c7d89240091c4fb00522cfe3f | [
"BSD-3-Clause"
] | 1 | 2015-04-04T01:38:51.000Z | 2015-04-04T01:38:51.000Z | tools/test_update_resource_property.py | mconlon17/vivo-1.5-improvement | 44d8335eb7bbe518374a53c0e1f9f39014023ee7 | [
"BSD-3-Clause"
] | null | null | null | """
test_update_resource_property.py -- Given a VIVO URI, a predicate, and two
URIs -- VIVO resource URI and the source URI, generate the add and subtract
RDF necessary to execute "five case logic" in updating VIVO with an
authoritative source URI.
Note. In common use, the source data is presented... | 33.818182 | 80 | 0.635753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 990 | 0.665323 |
ee88b24eca82ddcab181129272a9f62d15dd7605 | 36,064 | py | Python | external/pyvista/python/pyvista/spectra.py | dnidever/apogee | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | [
"BSD-3-Clause"
] | 5 | 2019-04-11T13:35:24.000Z | 2019-11-14T06:12:51.000Z | external/pyvista/python/pyvista/spectra.py | dnidever/apogee | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | [
"BSD-3-Clause"
] | null | null | null | external/pyvista/python/pyvista/spectra.py | dnidever/apogee | 83ad7496a0b4193df9e2c01b06dc36cb879ea6c1 | [
"BSD-3-Clause"
] | 5 | 2018-09-20T22:07:43.000Z | 2021-01-15T07:13:38.000Z | import matplotlib
import matplotlib.pyplot as plt
import os
import pdb
import pickle
import copy
import scipy.signal
import scipy.interpolate
import numpy as np
from astropy.modeling import models, fitting
from astropy.nddata import CCDData, StdDevUncertainty
from astropy.io import ascii, fits
from astropy.convolution ... | 41.357798 | 143 | 0.519188 | 29,871 | 0.828278 | 0 | 0 | 0 | 0 | 0 | 0 | 5,834 | 0.161768 |
ee89247ec2812106f50e8a446f7d4f2d9336cff8 | 1,075 | py | Python | tests/test_hydrated_dataclass.py | Jasha10/hydra-zen | c229ab37f9ab6be4d1c64cabb646df99d0308027 | [
"MIT"
] | 65 | 2021-06-10T00:02:57.000Z | 2022-03-26T12:31:54.000Z | tests/test_hydrated_dataclass.py | Jasha10/hydra-zen | c229ab37f9ab6be4d1c64cabb646df99d0308027 | [
"MIT"
] | 60 | 2021-06-08T14:10:17.000Z | 2022-03-31T20:51:41.000Z | tests/test_hydrated_dataclass.py | Jasha10/hydra-zen | c229ab37f9ab6be4d1c64cabb646df99d0308027 | [
"MIT"
] | 2 | 2021-07-14T21:06:15.000Z | 2021-09-11T20:16:02.000Z | # Copyright (c) 2022 Massachusetts Institute of Technology
# SPDX-License-Identifier: MIT
from dataclasses import is_dataclass
import pytest
from hydra_zen import hydrated_dataclass, instantiate
def f1(x, y):
pass
def f2(x, y, z):
return x, y, z
@pytest.mark.parametrize("conf2_sig", [True, False])
@pyt... | 21.5 | 62 | 0.686512 | 137 | 0.127442 | 0 | 0 | 740 | 0.688372 | 0 | 0 | 110 | 0.102326 |
ee89624c51890a06113ce4a0dc71ea76761f9141 | 185 | py | Python | kattis/python/hello_world.py | PixPanz/VariousTomfoolery | a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f | [
"Unlicense"
] | null | null | null | kattis/python/hello_world.py | PixPanz/VariousTomfoolery | a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f | [
"Unlicense"
] | null | null | null | kattis/python/hello_world.py | PixPanz/VariousTomfoolery | a6e7a840dd42fdd1cfac4a01d659d5fb52e2278f | [
"Unlicense"
] | null | null | null | print("Hello World!")
#because why the hell not that's why. It was like a free
#point on Kattis. Actually got a compiler error on my first
#try because I was new to Python3 at the time. | 46.25 | 59 | 0.751351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 175 | 0.945946 |
ee8a8f31356455e4042f8f9fd8906eb324b18cec | 3,165 | py | Python | countries/models.py | Valuehorizon/valuehorizon-countries | 04398f518ef5977cf4ccd2c2bffd7955d6a6e095 | [
"MIT"
] | 3 | 2015-05-27T17:11:28.000Z | 2016-07-08T18:01:28.000Z | countries/models.py | Valuehorizon/valuehorizon-countries | 04398f518ef5977cf4ccd2c2bffd7955d6a6e095 | [
"MIT"
] | 5 | 2020-02-11T22:27:18.000Z | 2021-12-13T19:40:25.000Z | countries/models.py | Valuehorizon/valuehorizon-countries | 04398f518ef5977cf4ccd2c2bffd7955d6a6e095 | [
"MIT"
] | null | null | null | from django.db import models
from forex.models import Currency
class Country(models.Model):
"""
Represents a country, such as the US, or Mexico.
"""
name = models.CharField(max_length=255, blank=True, null=True, help_text="Official Country name (ISO Full name)")
currency = models.ManyToManyField(... | 31.969697 | 133 | 0.663507 | 3,089 | 0.975987 | 0 | 0 | 0 | 0 | 0 | 0 | 897 | 0.283412 |
ee8bfc979ac28197031d9f486d5e391436cd294c | 920 | py | Python | export.py | philtgun/mediaeval-emothemes-explorer | 647fe527b719a9be72265f2855d890823c70e8ab | [
"MIT"
] | 1 | 2021-11-25T08:08:33.000Z | 2021-11-25T08:08:33.000Z | export.py | philtgun/mediaeval-emothemes-explorer | 647fe527b719a9be72265f2855d890823c70e8ab | [
"MIT"
] | null | null | null | export.py | philtgun/mediaeval-emothemes-explorer | 647fe527b719a9be72265f2855d890823c70e8ab | [
"MIT"
] | null | null | null | import argparse
from pathlib import Path
import json
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import rcParams
def main(input_file: Path, output_file: Path) -> None:
with input_file.open('r') as fp:
data = json.load(fp)
plt.figure(figsize=(20, 13))
rcParams['font.fami... | 32.857143 | 119 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 196 | 0.213043 |
ee8f0359e2f8322c643b0be99995a5abb3f922f2 | 3,436 | py | Python | tests/test_cascade_call.py | xyloon/ptrait | 88186f77feaf921c44633b1693fed1e124f99c76 | [
"MIT"
] | null | null | null | tests/test_cascade_call.py | xyloon/ptrait | 88186f77feaf921c44633b1693fed1e124f99c76 | [
"MIT"
] | 1 | 2019-04-20T08:22:04.000Z | 2019-04-20T08:22:04.000Z | tests/test_cascade_call.py | xyloon/ptrait | 88186f77feaf921c44633b1693fed1e124f99c76 | [
"MIT"
] | null | null | null | from ptrait import TraitExtends
import copy
from pytest_assertutil import assert_equal
class IntfA:
@classmethod
@TraitExtends.mark
def a_classmethodA(cls, *args, **kwargs):
kwa = copy.deepcopy(kwargs)
kwa['a'] = kwargs.get('a', 0) + 1
return args, kwa
@classmethod
@Trait... | 21.746835 | 49 | 0.568102 | 2,257 | 0.656868 | 0 | 0 | 2,197 | 0.639406 | 0 | 0 | 99 | 0.028813 |
ee9001145ae40affeb5a0f87d550d8ea5a52ee78 | 1,526 | py | Python | data_processing/download_data.py | HusseinLezzaik/Stock-Market-Prediction | 03f6b835466ebee9d4ee5ad217c4ed5c57b60a30 | [
"MIT"
] | null | null | null | data_processing/download_data.py | HusseinLezzaik/Stock-Market-Prediction | 03f6b835466ebee9d4ee5ad217c4ed5c57b60a30 | [
"MIT"
] | null | null | null | data_processing/download_data.py | HusseinLezzaik/Stock-Market-Prediction | 03f6b835466ebee9d4ee5ad217c4ed5c57b60a30 | [
"MIT"
] | null | null | null | import yahoo_fin.stock_info as si
import pandas as pd
import os
def download_data(etfs, time_frames):
# 获取数据并存储
if not os.path.exists('./Data'):
os.makedirs('./Data')
if not os.path.exists('./Data/rawdata'):
os.makedirs('./Data/rawdata')
for ticker in etfs:
for interval in time... | 35.488372 | 89 | 0.539974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 327 | 0.205402 |
c988bda85797c24c33439e544dc67c890a456828 | 7,220 | py | Python | life_line_chart/GedcomParsing.py | mustaqimM/life_line_chart | a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6 | [
"MIT"
] | null | null | null | life_line_chart/GedcomParsing.py | mustaqimM/life_line_chart | a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6 | [
"MIT"
] | null | null | null | life_line_chart/GedcomParsing.py | mustaqimM/life_line_chart | a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6 | [
"MIT"
] | null | null | null | import datetime
import re
import os
import logging
import json
_months = [
"JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
"JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC"
]
_precision = [
'ABT',
'CAL',
'EST',
'AFT',
'BEF'
]
_date_expr = re.compile('(?:(' + '|'.... | 31.666667 | 138 | 0.570083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,558 | 0.215789 |
c98a4eea5dbbc32238c561ae29365092efd245e1 | 4,020 | py | Python | lib/HimalayanDownloader.py | oldfatcrab/Himalayan | 8b879036dd33c406b48306f560f9df85c989908b | [
"MIT"
] | null | null | null | lib/HimalayanDownloader.py | oldfatcrab/Himalayan | 8b879036dd33c406b48306f560f9df85c989908b | [
"MIT"
] | null | null | null | lib/HimalayanDownloader.py | oldfatcrab/Himalayan | 8b879036dd33c406b48306f560f9df85c989908b | [
"MIT"
] | null | null | null | from HTMLParser import HTMLParser
import json
from os import makedirs
from os.path import abspath, dirname, exists, join, normpath
import pycurl
import Queue
import re
import requests
import tempfile
import urllib2
class HimalayanDownloader:
def __init__(self, eBookUrl, logger):
self._logger = logger
... | 39.029126 | 95 | 0.573632 | 3,802 | 0.945771 | 0 | 0 | 0 | 0 | 0 | 0 | 404 | 0.100498 |
c98aa4f7ed8a5b97ac39613aa73b2d33d7fcd243 | 4,962 | py | Python | 2016/python/day22.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day22.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day22.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | import re
import copy
import hashlib
class Node:
def __init__(self, line):
m = re.match(r"\/dev\/grid\/node-x(\d+)-y(\d+)\s+(\d+)T\s+(\d+)T\s+(\d+)T\s+(\d+)%", line)
if m is None:
self.valid = False
return
self.valid = True
self.x = int(m.group(1))
s... | 26.677419 | 98 | 0.414349 | 3,009 | 0.606409 | 0 | 0 | 0 | 0 | 0 | 0 | 508 | 0.102378 |
c98ae72a1a05ec62a0743c4c2fe5567276c8577b | 64 | py | Python | c2nl/objects/__init__.py | kopf-yhs/ncscos | 8248aaad32d4d19c01d070bf0dfba7aab849ba1d | [
"MIT"
] | 131 | 2020-05-05T05:29:02.000Z | 2022-03-30T13:32:42.000Z | c2nl/objects/__init__.py | kopf-yhs/ncscos | 8248aaad32d4d19c01d070bf0dfba7aab849ba1d | [
"MIT"
] | 32 | 2020-04-17T22:58:21.000Z | 2022-03-22T22:28:58.000Z | c2nl/objects/__init__.py | kopf-yhs/ncscos | 8248aaad32d4d19c01d070bf0dfba7aab849ba1d | [
"MIT"
] | 53 | 2020-05-05T06:17:25.000Z | 2022-03-22T03:19:11.000Z | __author__ = 'wasi'
from .summary import *
from .code import *
| 12.8 | 22 | 0.703125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.09375 |
c98cba25f4d6645c123d4fc4d2170d2512dffa18 | 820 | py | Python | dl/state.py | eric-erki/Prometheus | def07745ebcbe08ebb2fbba124bd07873edc8c9c | [
"MIT"
] | null | null | null | dl/state.py | eric-erki/Prometheus | def07745ebcbe08ebb2fbba124bd07873edc8c9c | [
"MIT"
] | null | null | null | dl/state.py | eric-erki/Prometheus | def07745ebcbe08ebb2fbba124bd07873edc8c9c | [
"MIT"
] | null | null | null | from collections import defaultdict
from prometheus.utils.misc import FrozenClass
class RunnerState(FrozenClass):
"""
An object that is used to pass internal state during train/valid/infer.
"""
def __init__(self, **kwargs):
# data
self.device = None
self.input = None
s... | 22.777778 | 75 | 0.570732 | 735 | 0.896341 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 0.145122 |
c991092ab3a5e6ba800ee09dfef81c31b1bd3d3c | 1,262 | py | Python | t2t_bert/pretrain_finetuning/test_green_sample.py | yyht/bert | 480c909e0835a455606e829310ff949c9dd23549 | [
"Apache-2.0"
] | 34 | 2018-12-19T01:00:57.000Z | 2021-03-26T09:36:37.000Z | t2t_bert/pretrain_finetuning/test_green_sample.py | yyht/bert | 480c909e0835a455606e829310ff949c9dd23549 | [
"Apache-2.0"
] | 11 | 2018-12-25T03:37:59.000Z | 2021-08-25T14:43:58.000Z | t2t_bert/pretrain_finetuning/test_green_sample.py | yyht/bert | 480c909e0835a455606e829310ff949c9dd23549 | [
"Apache-2.0"
] | 9 | 2018-12-27T08:00:44.000Z | 2020-06-08T03:05:14.000Z | #-*- coding: utf-8 -*-
import requests
import numpy as np
import json
import concurrent.futures
import codecs
with codecs.open('./test_1.txt', 'r', 'utf-8') as frobj:
input1 = frobj.read().strip()
with codecs.open('./candidate_1.txt', 'r', 'utf-8') as frobj:
candidate1 = frobj.read().strip()
with codecs.open('./t... | 25.755102 | 107 | 0.698891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 359 | 0.284469 |