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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d2b9627ee560b695980d399a9b852afb9663aac | 1,593 | py | Python | tests/test_clamp.py | josemolinagarcia/maya-math-nodes | 1f83eef1d1efe0b0c3dbb1477ca31ed9f8911ee4 | [
"MIT"
] | 148 | 2018-01-12T20:30:45.000Z | 2022-02-28T05:20:46.000Z | tests/test_clamp.py | josemolinagarcia/maya-math-nodes | 1f83eef1d1efe0b0c3dbb1477ca31ed9f8911ee4 | [
"MIT"
] | 13 | 2018-01-17T18:02:13.000Z | 2021-11-23T06:06:24.000Z | tests/test_clamp.py | josemolinagarcia/maya-math-nodes | 1f83eef1d1efe0b0c3dbb1477ca31ed9f8911ee4 | [
"MIT"
] | 41 | 2018-01-16T01:41:29.000Z | 2021-08-24T01:27:56.000Z | # Copyright (c) 2018 Serguei Kalentchouk et al. All rights reserved.
# Use of this source code is governed by an MIT license that can be found in the LICENSE file.
from node_test_case import NodeTestCase, cmds
| 44.25 | 114 | 0.595731 |
8d2bec83c642f547afb331d447ae8ff19041fd5a | 1,111 | py | Python | src/tests/tests_get_formatted_items.py | kazqvaizer/checklistbot | f715280fbe7035bc2ce4f69cbf95595d9fe3a225 | [
"MIT"
] | 5 | 2020-10-06T13:42:45.000Z | 2021-12-21T07:35:08.000Z | src/tests/tests_get_formatted_items.py | kazqvaizer/checklistbot | f715280fbe7035bc2ce4f69cbf95595d9fe3a225 | [
"MIT"
] | null | null | null | src/tests/tests_get_formatted_items.py | kazqvaizer/checklistbot | f715280fbe7035bc2ce4f69cbf95595d9fe3a225 | [
"MIT"
] | null | null | null | import pytest
from models import TodoItem
pytestmark = [
pytest.mark.usefixtures("use_db"),
]
def test_format_without_strike(items, chat):
lines = chat.get_formatted_items().split("\n")
assert len(lines) == 2
assert "1. Hello" == lines[0]
assert "2. Nice!" == lines[1]
def test_format_with_s... | 20.574074 | 74 | 0.640864 |
8d2cd1060b91fea7d66c9afe4a0c6e646802593b | 3,945 | py | Python | web/multilingual/database.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | null | null | null | web/multilingual/database.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | null | null | null | web/multilingual/database.py | mahoyen/web | 1d190a86e3277315804bfcc0b8f9abd4f9c1d780 | [
"MIT"
] | null | null | null | import copy
import json
from django.contrib import admin
from django.db import models
from web.multilingual.data_structures import MultiLingualTextStructure
from web.multilingual.form import MultiLingualFormField, MultiLingualRichTextFormField, \
MultiLingualRichTextUploadingFormField
from web.multilingual.widget... | 39.848485 | 119 | 0.694043 |
8d2fec927240532eb03988da6b6277edf3bec73d | 2,859 | py | Python | cart/tests/test_views.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | cart/tests/test_views.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | cart/tests/test_views.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | from django.test import TestCase
from shop.models import Product
from django.contrib.auth.models import User
from coupons.forms import CouponForm
| 28.878788 | 77 | 0.550892 |
8d341997147380f82b39848b173c8f836285f331 | 2,134 | py | Python | tests/conftest.py | gpontesss/botus_receptus | bf29f5f70a2e7ae3548a44287c636515f78e7e77 | [
"BSD-3-Clause"
] | 3 | 2019-04-15T01:45:46.000Z | 2020-04-07T13:31:19.000Z | tests/conftest.py | gpontesss/botus_receptus | bf29f5f70a2e7ae3548a44287c636515f78e7e77 | [
"BSD-3-Clause"
] | 244 | 2020-04-20T22:10:23.000Z | 2022-03-31T23:03:48.000Z | tests/conftest.py | gpontesss/botus_receptus | bf29f5f70a2e7ae3548a44287c636515f78e7e77 | [
"BSD-3-Clause"
] | 1 | 2021-11-08T08:52:32.000Z | 2021-11-08T08:52:32.000Z | from __future__ import annotations
import asyncio
from typing import Any
import asynctest.mock # type: ignore
import pytest # type: ignore
import pytest_mock._util # type: ignore
pytest_mock._util._mock_module = asynctest.mock
| 28.837838 | 79 | 0.680412 |
8d352ba96be56207cce46e2dc458765a09de6f97 | 1,247 | py | Python | Shark_Training/pyimagesearch/preprocessing/meanpreprocessor.py | crpurcell/MQ_DPI_Release | 97444513e8b8d48ec91ff8a43b9dfaed0da029f9 | [
"MIT"
] | null | null | null | Shark_Training/pyimagesearch/preprocessing/meanpreprocessor.py | crpurcell/MQ_DPI_Release | 97444513e8b8d48ec91ff8a43b9dfaed0da029f9 | [
"MIT"
] | null | null | null | Shark_Training/pyimagesearch/preprocessing/meanpreprocessor.py | crpurcell/MQ_DPI_Release | 97444513e8b8d48ec91ff8a43b9dfaed0da029f9 | [
"MIT"
] | null | null | null | #=============================================================================#
# #
# MODIFIED: 15-Jan-2019 by C. Purcell #
# #
... | 35.628571 | 79 | 0.36648 |
8d36012ec39c8b5de0335c08778adaf22f20af3c | 985 | py | Python | aiida_quantumespresso/parsers/constants.py | unkcpz/aiida-quantumespresso | fbac0993bb8b6cdeba85717453debcf0ab062b5a | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/constants.py | unkcpz/aiida-quantumespresso | fbac0993bb8b6cdeba85717453debcf0ab062b5a | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/constants.py | unkcpz/aiida-quantumespresso | fbac0993bb8b6cdeba85717453debcf0ab062b5a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Physical or mathematical constants.
Since every code has its own conversion units, this module defines what
QE understands as for an eV or other quantities.
Whenever possible, we try to use the constants defined in
:py:mod:aiida.common.constants:, but if some constants are slightly differen... | 31.774194 | 77 | 0.700508 |
8d3e794674c7c132a4877a4a375649bf2399c45b | 2,639 | py | Python | venv/lib/python3.8/site-packages/keras/api/_v2/keras/applications/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | 1 | 2021-05-24T10:08:51.000Z | 2021-05-24T10:08:51.000Z | venv/lib/python3.8/site-packages/keras/api/_v2/keras/applications/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/keras/api/_v2/keras/applications/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.keras.applications namespace.
"""
from __future__ import print_function as _print_function
import sys as _sys
from keras.api._v2.keras.applications import densenet
fr... | 47.981818 | 82 | 0.869269 |
8d3ebf8c27b4787edb5db6336b9fad286f003b92 | 97 | py | Python | flash/vision/embedding/__init__.py | alvin-chang/lightning-flash | 481d4d369ff0a5d8c2b2d9e4970c5608a92b3ff5 | [
"Apache-2.0"
] | 2 | 2021-06-25T08:42:36.000Z | 2021-06-25T08:49:29.000Z | flash/vision/embedding/__init__.py | alvin-chang/lightning-flash | 481d4d369ff0a5d8c2b2d9e4970c5608a92b3ff5 | [
"Apache-2.0"
] | null | null | null | flash/vision/embedding/__init__.py | alvin-chang/lightning-flash | 481d4d369ff0a5d8c2b2d9e4970c5608a92b3ff5 | [
"Apache-2.0"
] | null | null | null | from flash.vision.embedding.image_embedder_model import ImageEmbedder, ImageEmbedderDataPipeline
| 48.5 | 96 | 0.907216 |
8d3f8941dd6434ce1537415533cd51f289916f52 | 5,554 | py | Python | configstruct/config_struct.py | bradrf/configstruct | aeea8fbba1e2daa0a0c38eeb9622d1716c0bb3e8 | [
"MIT"
] | null | null | null | configstruct/config_struct.py | bradrf/configstruct | aeea8fbba1e2daa0a0c38eeb9622d1716c0bb3e8 | [
"MIT"
] | 16 | 2016-10-13T09:53:46.000Z | 2022-03-24T15:04:51.000Z | configstruct/config_struct.py | bradrf/configstruct | aeea8fbba1e2daa0a0c38eeb9622d1716c0bb3e8 | [
"MIT"
] | null | null | null | import os
import sys
import logging
from configparser import ConfigParser
from .open_struct import OpenStruct
from .section_struct import SectionStruct
# TODO: use file lock when read/write
def choose_theirs(section, option, mine, theirs):
'''Always prefer values for keys from file.'''
return theirs
def c... | 40.540146 | 100 | 0.659705 |
8d4042ed9b0586457ce903d2cc6db6a880c03485 | 10,327 | py | Python | test_apps/python_app/tests/compiler_test.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | null | null | null | test_apps/python_app/tests/compiler_test.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | 127 | 2019-11-23T17:09:35.000Z | 2021-09-02T11:06:20.000Z | test_apps/python_app/tests/compiler_test.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | null | null | null | import origen # pylint: disable=import-error
import pytest, pathlib, os, stat, abc
from os import access, W_OK, X_OK, R_OK
from tests.shared import clean_falcon, clean_compiler, tmp_dir
def user_compiler():
''' End users should access the compiler via ``origen.app.compiler``. '''
return origen.app.co... | 39.117424 | 97 | 0.637165 |
8d42c2702dd5a391e27f8a389f8a934778ba0c95 | 999 | py | Python | api/api.py | devSessions/crvi | 1ecc68d6c968294bcc5ceea747604ee237f6080c | [
"MIT"
] | 25 | 2017-12-31T06:51:54.000Z | 2021-11-17T11:29:30.000Z | api/api.py | amittomar-1/crvi | 1ecc68d6c968294bcc5ceea747604ee237f6080c | [
"MIT"
] | 23 | 2020-01-28T21:34:12.000Z | 2022-03-11T23:11:54.000Z | api/api.py | amittomar-1/crvi | 1ecc68d6c968294bcc5ceea747604ee237f6080c | [
"MIT"
] | 11 | 2018-01-04T12:30:33.000Z | 2020-12-01T18:08:59.000Z | from flask import Flask, jsonify, request
import predict
import socket
app = Flask(__name__)
#to spedicy route after url
if __name__ == '__main__':
#for remote host
ip = socket.gethostbyname(socket.gethostname())
app.run(port=5000,host=ip)
#for local host
#app.run(debug=True, port=5000) | 19.211538 | 51 | 0.58959 |
8d4484e9d066b90a85e8763af3ea488f55a3ae34 | 68 | py | Python | exe/__init__.py | whisperaven/0ops.exed | ab9f14868fec664fe78edab6fb7eb572b3048c58 | [
"MIT"
] | 10 | 2017-03-17T02:15:18.000Z | 2019-10-26T23:54:21.000Z | exe/__init__.py | whisperaven/0ops | ab9f14868fec664fe78edab6fb7eb572b3048c58 | [
"MIT"
] | 1 | 2017-03-20T03:17:17.000Z | 2017-03-20T04:04:26.000Z | exe/__init__.py | whisperaven/0ops | ab9f14868fec664fe78edab6fb7eb572b3048c58 | [
"MIT"
] | 3 | 2017-03-17T02:46:23.000Z | 2018-04-14T15:49:56.000Z | # (c) 2016, Hao Feng <whisperaven@gmail.com>
__version__ = '0.1.0'
| 17 | 44 | 0.661765 |
8d4492744de35276bcea0bf1ccb409c9aa59295e | 418 | py | Python | Special_Viewer.py | Akivamelka/unsupervised_mid_semester | 5393185d7b0327bbb7cd4b3700d4d00704a5623f | [
"MIT"
] | null | null | null | Special_Viewer.py | Akivamelka/unsupervised_mid_semester | 5393185d7b0327bbb7cd4b3700d4d00704a5623f | [
"MIT"
] | null | null | null | Special_Viewer.py | Akivamelka/unsupervised_mid_semester | 5393185d7b0327bbb7cd4b3700d4d00704a5623f | [
"MIT"
] | null | null | null | from Dimension_Reduction import Viewer
import pandas as pd
view_tool = Viewer()
reduc = 'pca'
suffix = '5'
data_plot = pd.read_csv(f"{reduc}_dim2_{suffix}.csv", delimiter=",")
models = ['km', 'fuzz', 'gmm', 'dbsc', 'hier', 'spec' ]
for model in models:
print(model)
labels = pd.read_csv(f"labels_{mo... | 32.153846 | 72 | 0.669856 |
8d481fde3510821315275850b3a25299bc9b350d | 6,621 | py | Python | pytumblr/types.py | 9999years/pytumblr | fe9b2fb60866785141fc0deb5a357a773c0f4229 | [
"Apache-2.0"
] | null | null | null | pytumblr/types.py | 9999years/pytumblr | fe9b2fb60866785141fc0deb5a357a773c0f4229 | [
"Apache-2.0"
] | null | null | null | pytumblr/types.py | 9999years/pytumblr | fe9b2fb60866785141fc0deb5a357a773c0f4229 | [
"Apache-2.0"
] | null | null | null | from collections import UserList
from dataclasses import dataclass, field
from datetime import datetime
from typing import List, Dict, Any, Optional, Type
DATE_FORMAT = '%Y-%m-%d %H:%M:%S %Z'
_link_classes = {'navigation': NavigationLink,
'action': ActionLink}
# a type -... | 19.247093 | 71 | 0.661683 |
8d4876f42fc49dd8332e5b4739b6a7de0c8b9bb2 | 311 | py | Python | simple_jobs_scraper.py | Engnation/Jobs-Scraper | 6f8b1207731da9f187db406a5be6916774ba3bc5 | [
"MIT"
] | null | null | null | simple_jobs_scraper.py | Engnation/Jobs-Scraper | 6f8b1207731da9f187db406a5be6916774ba3bc5 | [
"MIT"
] | null | null | null | simple_jobs_scraper.py | Engnation/Jobs-Scraper | 6f8b1207731da9f187db406a5be6916774ba3bc5 | [
"MIT"
] | null | null | null | from jobs_scraper import JobsScraper
# Let's create a new JobsScraper object and perform the scraping for a given query.
position_var = "Python"
scraper = JobsScraper(country="ca", position=position_var, location="Toronto", pages=3)
df = scraper.scrape()
df.to_csv(rf'{position_var} jobs.csv', index = False) | 34.555556 | 87 | 0.768489 |
8d4a0164b56629bd4e65dd24b9c1a1fba70a5ea1 | 810 | py | Python | mac/redRMacUpdater.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | 1 | 2019-04-15T13:50:30.000Z | 2019-04-15T13:50:30.000Z | mac/redRMacUpdater.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | null | null | null | mac/redRMacUpdater.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | 1 | 2016-01-21T23:00:21.000Z | 2016-01-21T23:00:21.000Z | import tarfile, sys,os
from PyQt4.QtCore import *
from PyQt4.QtGui import *
app = QApplication(sys.argv)
try:
zfile = tarfile.open(sys.argv[1], "r:gz" )
zfile.extractall(sys.argv[2])
zfile.close()
mb = QMessageBox('Red-R Updated', "Red-R has been updated'",
QMessageBox.Informa... | 30 | 105 | 0.646914 |
8d4be9a3c0385e4ebdfd3712a699e128c38acafc | 9,346 | py | Python | darknet_websocket_demo.py | wutianze/darknet-superb-service | fdee5a932c8a3898701c1e302e4642fbff853630 | [
"MIT"
] | null | null | null | darknet_websocket_demo.py | wutianze/darknet-superb-service | fdee5a932c8a3898701c1e302e4642fbff853630 | [
"MIT"
] | null | null | null | darknet_websocket_demo.py | wutianze/darknet-superb-service | fdee5a932c8a3898701c1e302e4642fbff853630 | [
"MIT"
] | null | null | null | from ctypes import *
#from multiprocessing import Process, Queue
import queue
import time
from threading import Lock,Thread
from fastapi import FastAPI
from fastapi import Request
from fastapi import WebSocket, WebSocketDisconnect
import uvicorn
#from yolo_service import *
import socket
import random
from typing import... | 35.003745 | 180 | 0.652044 |
8d4d42f7498f1a4af52daeaede069016fb2ef667 | 2,389 | py | Python | tests/unit/test_sherman_morrison.py | willwheelera/pyqmc | 0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb | [
"MIT"
] | 44 | 2019-06-04T13:53:26.000Z | 2022-03-31T08:36:30.000Z | tests/unit/test_sherman_morrison.py | willwheelera/pyqmc | 0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb | [
"MIT"
] | 121 | 2019-05-13T14:05:20.000Z | 2022-02-16T19:24:37.000Z | tests/unit/test_sherman_morrison.py | willwheelera/pyqmc | 0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb | [
"MIT"
] | 35 | 2019-04-26T21:57:50.000Z | 2022-02-14T07:56:34.000Z | import numpy as np
from pyqmc.slater import sherman_morrison_row
from pyqmc.slater import sherman_morrison_ms
if __name__ == "__main__":
r_err, inv_err = list(zip(*[run_sherman_morrison() for i in range(2000)]))
print(np.amax(r_err))
print(np.amax(inv_err))
counts, bins = np.histogram(np.log10(in... | 30.628205 | 78 | 0.631226 |
8d4df1f93edc3b8bb4e583e03cb8610d1cc0439f | 1,543 | py | Python | script/licel-plotter.py | FedeVerstraeten/smn-lidar-controller | 7850fd48702d5f2e00d07b499812b3b2fb2b7676 | [
"MIT"
] | null | null | null | script/licel-plotter.py | FedeVerstraeten/smn-lidar-controller | 7850fd48702d5f2e00d07b499812b3b2fb2b7676 | [
"MIT"
] | 1 | 2021-10-05T03:53:55.000Z | 2021-10-05T03:53:55.000Z | script/licel-plotter.py | FedeVerstraeten/smnar-lidar-controller | 7850fd48702d5f2e00d07b499812b3b2fb2b7676 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import socket
import time
import numpy as np
import matplotlib.pyplot as plt
HOST = '10.49.234.234'
PORT = 2055
if __name__ == '__main__':
# Select TR
command_select='SELECT 0'
rsp=repr(command_to_licel(command_select))
print('Received',rsp)
# Clear memory
... | 24.109375 | 70 | 0.644848 |
8d500786de7e53c7c13f50132e8ecbc760d095db | 13,860 | py | Python | horizon/openstack_dashboard/dashboards/identity/account/tables.py | yianjiajia/openstack_horizon | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | [
"Apache-2.0"
] | null | null | null | horizon/openstack_dashboard/dashboards/identity/account/tables.py | yianjiajia/openstack_horizon | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | [
"Apache-2.0"
] | null | null | null | horizon/openstack_dashboard/dashboards/identity/account/tables.py | yianjiajia/openstack_horizon | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 Nebula, 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 agree... | 37.258065 | 165 | 0.581818 |
8d5291b6a1ce7e03aab2c5b10e8c178dc0212bb3 | 2,278 | py | Python | 3Sum.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | 3Sum.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | 3Sum.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | ## Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
## Note:
## The solution set must not contain duplicate triplets.
## Example:
## Given array nums = [-1, 0, 1, 2, -1, -4],
## A solution set is:
## [
## ... | 27.780488 | 164 | 0.368306 |
8d52b06f889e9040ed2102aec6867ed5ea6a3b70 | 684 | py | Python | moim/models.py | gyukebox/django-tutorial-moim | ea9bea85dadf22bff58ae26ee1ac59171bbe0240 | [
"MIT"
] | null | null | null | moim/models.py | gyukebox/django-tutorial-moim | ea9bea85dadf22bff58ae26ee1ac59171bbe0240 | [
"MIT"
] | 4 | 2018-01-01T09:26:30.000Z | 2018-01-06T07:13:01.000Z | moim/models.py | gyukebox/django-tutorial-moim | ea9bea85dadf22bff58ae26ee1ac59171bbe0240 | [
"MIT"
] | null | null | null | from django.db import models
from user.models import UserModel
| 36 | 68 | 0.730994 |
8d5338ad6760bdfbd08440494b1ea9d0eab1dc53 | 1,809 | py | Python | developers_chamber/scripts/gitlab.py | dstlmrk/developers-chamber | 93f928048f57c049f1c85446d18078b73376462a | [
"MIT"
] | 8 | 2019-08-23T15:46:30.000Z | 2021-03-23T20:12:21.000Z | developers_chamber/scripts/gitlab.py | dstlmrk/developers-chamber | 93f928048f57c049f1c85446d18078b73376462a | [
"MIT"
] | 14 | 2019-09-17T20:24:18.000Z | 2021-05-18T21:10:12.000Z | developers_chamber/scripts/gitlab.py | dstlmrk/developers-chamber | 93f928048f57c049f1c85446d18078b73376462a | [
"MIT"
] | 6 | 2019-08-23T15:46:21.000Z | 2022-02-18T11:01:18.000Z | import os
import click
from developers_chamber.git_utils import get_current_branch_name
from developers_chamber.gitlab_utils import \
create_merge_request as create_merge_request_func
from developers_chamber.scripts import cli
DEFAULT_API_URL = os.environ.get('GITLAB_API_URL', 'https://gitlab.com/api/v4')
DEFAUL... | 38.489362 | 116 | 0.726368 |
8d5577a30127caeb2ef24f4e9b841abc050103d0 | 15,790 | py | Python | tests_pytest/state_machines/autoinstall/test_autoinstall_smbase.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | 5 | 2020-06-04T10:20:33.000Z | 2020-10-26T15:09:19.000Z | tests_pytest/state_machines/autoinstall/test_autoinstall_smbase.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | null | null | null | tests_pytest/state_machines/autoinstall/test_autoinstall_smbase.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 IBM Corp.
#
# 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, sof... | 34.326087 | 82 | 0.664155 |
8d5578255a37005da9d4bcc07955742be9a91579 | 2,261 | py | Python | tests/test_command/test_cat_command.py | bbglab/openvariant | ea1e1b6edf0486b0dea34f43227ba333df1071cc | [
"BSD-3-Clause"
] | null | null | null | tests/test_command/test_cat_command.py | bbglab/openvariant | ea1e1b6edf0486b0dea34f43227ba333df1071cc | [
"BSD-3-Clause"
] | null | null | null | tests/test_command/test_cat_command.py | bbglab/openvariant | ea1e1b6edf0486b0dea34f43227ba333df1071cc | [
"BSD-3-Clause"
] | null | null | null | import unittest
from os import getcwd
from click.testing import CliRunner
from openvariant.commands.openvar import cat
| 37.065574 | 121 | 0.640867 |
8d559eab2b8075257716e7bc85f5c9d82b0d3221 | 4,766 | py | Python | resnet.py | rVSaxena/VAE | 26aa3452a0c8f663153d8cfc8bf1686e242d2fac | [
"Unlicense"
] | null | null | null | resnet.py | rVSaxena/VAE | 26aa3452a0c8f663153d8cfc8bf1686e242d2fac | [
"Unlicense"
] | null | null | null | resnet.py | rVSaxena/VAE | 26aa3452a0c8f663153d8cfc8bf1686e242d2fac | [
"Unlicense"
] | null | null | null | import torch
import torch.nn as nn
| 34.042857 | 170 | 0.640579 |
8d56bf9a638e31e26421d0d5ccd052c3c7de5f95 | 246 | py | Python | camknows/camknows.py | dreoporto/camknows | 769aeb91ff16ff654aa1b182f3564dd26a0f7ad6 | [
"MIT"
] | 2 | 2021-09-20T12:29:57.000Z | 2021-09-28T11:09:06.000Z | camknows/camknows.py | dreoporto/camknows | 769aeb91ff16ff654aa1b182f3564dd26a0f7ad6 | [
"MIT"
] | null | null | null | camknows/camknows.py | dreoporto/camknows | 769aeb91ff16ff654aa1b182f3564dd26a0f7ad6 | [
"MIT"
] | null | null | null |
from camera import Camera
if __name__ == '__main__':
main()
| 15.375 | 55 | 0.630081 |
8d58501cd2a4cf7d4be038ee750ddd345cd594fc | 196 | py | Python | src/main.py | C4theBomb/python-calendar-app | 6776403f7f2440c6497d9a53be5e8d617a2ee817 | [
"MIT"
] | null | null | null | src/main.py | C4theBomb/python-calendar-app | 6776403f7f2440c6497d9a53be5e8d617a2ee817 | [
"MIT"
] | null | null | null | src/main.py | C4theBomb/python-calendar-app | 6776403f7f2440c6497d9a53be5e8d617a2ee817 | [
"MIT"
] | null | null | null | from calendarApp import shell, models
import os
if __name__ == "__main__":
main()
| 15.076923 | 38 | 0.673469 |
8d5852ea5b1463bc9be5da885619fc756c5bd1fc | 4,329 | py | Python | personal/Ervin/Word2Vec_recommender.py | edervishaj/spotify-recsys-challenge | 4077201ac7e4ed9da433bd10a92c183614182437 | [
"Apache-2.0"
] | 3 | 2018-10-12T20:19:57.000Z | 2019-12-11T01:11:38.000Z | personal/Ervin/Word2Vec_recommender.py | kiminh/spotify-recsys-challenge | 5e7844a77ce3c26658400f161d2d74d682f30e69 | [
"Apache-2.0"
] | null | null | null | personal/Ervin/Word2Vec_recommender.py | kiminh/spotify-recsys-challenge | 5e7844a77ce3c26658400f161d2d74d682f30e69 | [
"Apache-2.0"
] | 4 | 2018-10-27T20:30:18.000Z | 2020-10-14T07:43:27.000Z | import time
import numpy as np
import scipy.sparse as sps
from gensim.models import Word2Vec
from tqdm import tqdm
from recommenders.recommender import Recommender
from utils.datareader import Datareader
from utils.evaluator import Evaluator
from utils.post_processing import eurm_to_recommendation_list
from recommender... | 37.973684 | 116 | 0.613075 |
8d58f2b0959a8386b4c708d7cc38bd2e9f103bb6 | 1,321 | py | Python | pyesasky/__init__.py | pierfra-ro/pyesasky | a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f | [
"BSD-3-Clause"
] | 13 | 2019-05-30T19:57:37.000Z | 2021-09-10T09:43:49.000Z | pyesasky/__init__.py | pierfra-ro/pyesasky | a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f | [
"BSD-3-Clause"
] | 21 | 2019-06-21T18:55:25.000Z | 2022-02-27T14:48:13.000Z | pyesasky/__init__.py | pierfra-ro/pyesasky | a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f | [
"BSD-3-Clause"
] | 8 | 2019-05-30T12:20:48.000Z | 2022-03-04T04:01:20.000Z | from ._version import __version__ # noqa
from .pyesasky import ESASkyWidget # noqa
from .catalogue import Catalogue # noqa
from .catalogueDescriptor import CatalogueDescriptor # noqa
from .cooFrame import CooFrame # noqa
from .footprintSet import FootprintSet # noqa
from .footprintSetDescriptor import FootprintSetDesc... | 33.025 | 65 | 0.711582 |
8d5933b202fa0260d94c68bc7edbd14a32abb844 | 2,930 | py | Python | visualize.py | jcamstan3370/MachineLearningPerovskites | d7bc433bac349bf53473dc6d636954cae996b8d2 | [
"MIT"
] | 6 | 2020-05-09T17:18:00.000Z | 2021-09-22T09:37:40.000Z | visualize.py | jstanai/ml_perovskites | d7bc433bac349bf53473dc6d636954cae996b8d2 | [
"MIT"
] | null | null | null | visualize.py | jstanai/ml_perovskites | d7bc433bac349bf53473dc6d636954cae996b8d2 | [
"MIT"
] | 1 | 2021-03-24T04:21:31.000Z | 2021-03-24T04:21:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Jared
"""
import numpy as np
import pandas as pd
import myConfig
import matplotlib.pyplot as plt
from ast import literal_eval
from plotter import getTrendPlot1
from matplotlib.pyplot import figure
df = pd.read_csv(myConfig.extOutput)
dffExt = pd.read_csv(my... | 23.821138 | 72 | 0.531058 |
8d5938563047da10af2e319b379482b6a7545552 | 237 | py | Python | 11-if-elif-else-condition.py | GunarakulanGunaretnam/python-basic-fundamentals | c62bf939fbaef8895d28f85af9ef6ced70801f96 | [
"Apache-2.0"
] | null | null | null | 11-if-elif-else-condition.py | GunarakulanGunaretnam/python-basic-fundamentals | c62bf939fbaef8895d28f85af9ef6ced70801f96 | [
"Apache-2.0"
] | null | null | null | 11-if-elif-else-condition.py | GunarakulanGunaretnam/python-basic-fundamentals | c62bf939fbaef8895d28f85af9ef6ced70801f96 | [
"Apache-2.0"
] | null | null | null | name = input("Enter your name? ")
if name == "guna":
print("1234567890")
elif name == "david":
print("0987654321")
elif name == "rakulan":
print("12345")
elif name == "raj":
print("1234455667")
else:
print("No contacts found")
| 13.941176 | 33 | 0.632911 |
8d595677f62dbebf986ab917f4b41f5f89af2fea | 13,409 | py | Python | InstagramCrawler.py | Bagas8015/Instagram-Posts-Crawler-Users-v1 | 82d5da12f7f6caf8c085085135134f58affb1ec7 | [
"MIT"
] | null | null | null | InstagramCrawler.py | Bagas8015/Instagram-Posts-Crawler-Users-v1 | 82d5da12f7f6caf8c085085135134f58affb1ec7 | [
"MIT"
] | null | null | null | InstagramCrawler.py | Bagas8015/Instagram-Posts-Crawler-Users-v1 | 82d5da12f7f6caf8c085085135134f58affb1ec7 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import emoji
import string
import csv
import os
browser = webdriver.Chrome()
user = input('Masukkan username akun anda: ')
passwo = input('Masukkan password akun anda: ')
url = 'https://www.instagr... | 50.220974 | 205 | 0.548736 |
8d596a354fbcf53937f22d7c7dc7a505553f0379 | 5,310 | py | Python | pages/process.py | nchibana/dash-app-template | a51ad0ac92e719b2ef60739b6c1126aebb920d47 | [
"MIT"
] | null | null | null | pages/process.py | nchibana/dash-app-template | a51ad0ac92e719b2ef60739b6c1126aebb920d47 | [
"MIT"
] | 4 | 2020-03-24T17:36:39.000Z | 2021-08-23T20:13:16.000Z | pages/process.py | nchibana/dash-app-template | a51ad0ac92e719b2ef60739b6c1126aebb920d47 | [
"MIT"
] | null | null | null | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objects as go
import plotly.express as px
import plotly.figure_factory as ff
from sklearn.metrics import roc_curve
import pandas as p... | 50.09434 | 259 | 0.688512 |
8d597279dcdef01055e59ebc350f3cf1d766f1a3 | 599 | py | Python | tests/sdk/test_service.py | kusanagi/katana-sdk-python3 | cd089409ec0d822f4d7bd6b4bebd527e003089ee | [
"MIT"
] | 2 | 2017-03-21T20:02:47.000Z | 2017-05-02T19:32:01.000Z | tests/sdk/test_service.py | kusanagi/katana-sdk-python3 | cd089409ec0d822f4d7bd6b4bebd527e003089ee | [
"MIT"
] | 19 | 2017-03-10T12:09:34.000Z | 2018-06-01T18:10:06.000Z | tests/sdk/test_service.py | kusanagi/katana-sdk-python3 | cd089409ec0d822f4d7bd6b4bebd527e003089ee | [
"MIT"
] | 5 | 2017-03-10T11:40:50.000Z | 2019-03-26T06:28:33.000Z | from katana.sdk.service import get_component
from katana.sdk.service import Service
| 27.227273 | 61 | 0.736227 |
8d5b40af3f077c2c14c5035c4efe391b9a38cc70 | 527 | py | Python | DesignPatterns/MVC/server/controllers/index.py | TigranGit/CodeBase | d58e30b1d83fab4b388ec2cdcb868fa751c62188 | [
"Apache-2.0"
] | 1 | 2020-08-13T19:09:27.000Z | 2020-08-13T19:09:27.000Z | DesignPatterns/MVC/server/controllers/index.py | TigranGit/CodeBase | d58e30b1d83fab4b388ec2cdcb868fa751c62188 | [
"Apache-2.0"
] | null | null | null | DesignPatterns/MVC/server/controllers/index.py | TigranGit/CodeBase | d58e30b1d83fab4b388ec2cdcb868fa751c62188 | [
"Apache-2.0"
] | null | null | null | from .base_controller import BaseController
from ..helper.utils import render_template
from ..helper.constants import STATUS_OK
| 27.736842 | 47 | 0.654649 |
8d5bd4af92a66ece14d4931534ffa3416cb4b661 | 3,919 | py | Python | plugins/tff_backend/bizz/payment.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | null | null | null | plugins/tff_backend/bizz/payment.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | 178 | 2017-08-02T12:58:06.000Z | 2017-12-20T15:01:12.000Z | plugins/tff_backend/bizz/payment.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | 2 | 2018-01-10T10:43:12.000Z | 2018-03-18T10:42:23.000Z | # -*- coding: utf-8 -*-
# Copyright 2017 GIG Technology NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 42.597826 | 120 | 0.720082 |
8d5f94f57caf92571a35ef22a1aa7566e2df0d65 | 1,582 | py | Python | tasks/tests/ui/conftest.py | MisterLenivec/django_simple_todo_app | 8e694a67df43de7feaae785c0b3205534c701923 | [
"MIT"
] | null | null | null | tasks/tests/ui/conftest.py | MisterLenivec/django_simple_todo_app | 8e694a67df43de7feaae785c0b3205534c701923 | [
"MIT"
] | 4 | 2020-06-07T01:25:14.000Z | 2021-06-10T18:34:10.000Z | tasks/tests/ui/conftest.py | MisterLenivec/django_simple_todo_app | 8e694a67df43de7feaae785c0b3205534c701923 | [
"MIT"
] | null | null | null | from django.conf import settings
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import pytest
import os
| 27.275862 | 77 | 0.653603 |
8d606a3efd5feb490b057183d05dc39513b2525a | 3,519 | py | Python | erp/migrations/0026_auto_20200205_0950.py | Foohx/acceslibre | 55135e096f2ec4e413ff991f01c17f5e0d5925c0 | [
"MIT"
] | 8 | 2020-07-23T08:17:28.000Z | 2022-03-09T22:31:36.000Z | erp/migrations/0026_auto_20200205_0950.py | Foohx/acceslibre | 55135e096f2ec4e413ff991f01c17f5e0d5925c0 | [
"MIT"
] | 37 | 2020-07-01T08:47:33.000Z | 2022-02-03T19:50:58.000Z | erp/migrations/0026_auto_20200205_0950.py | Foohx/acceslibre | 55135e096f2ec4e413ff991f01c17f5e0d5925c0 | [
"MIT"
] | 4 | 2021-04-08T10:57:18.000Z | 2022-01-31T13:16:31.000Z | # Generated by Django 3.0.3 on 2020-02-05 08:50
from django.db import migrations, models
| 59.644068 | 627 | 0.651321 |
8d60c377538ddae6447654f6c37f24bae517225c | 3,629 | py | Python | convert.py | Ellen7ions/bin2mem | 51e3216cbf5e78547751968ef1619a925f2f55ef | [
"MIT"
] | 3 | 2021-05-18T13:07:39.000Z | 2021-05-24T12:46:43.000Z | convert.py | Ellen7ions/bin2mem | 51e3216cbf5e78547751968ef1619a925f2f55ef | [
"MIT"
] | null | null | null | convert.py | Ellen7ions/bin2mem | 51e3216cbf5e78547751968ef1619a925f2f55ef | [
"MIT"
] | null | null | null | import os, sys
import json
if __name__ == '__main__':
c = Convert()
c.apply()
# c.mips_gcc_c()
# c.mips_objcopy()
# c.mips_bin2mem()
# config = Config()
| 28.801587 | 92 | 0.590245 |
8d61a4b35ddf035024fe7d951c745cb83a2a9d4d | 3,161 | py | Python | stats.py | DisinfoResearch/TwitterCollector | 183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb | [
"MIT"
] | null | null | null | stats.py | DisinfoResearch/TwitterCollector | 183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb | [
"MIT"
] | null | null | null | stats.py | DisinfoResearch/TwitterCollector | 183b6761cca54b5db5b98a2f9f86bd8bcc98a7cb | [
"MIT"
] | null | null | null | #!/bin/python3
# Copyright (C) 2021, Michigan State University.
#
# 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, copy,... | 45.157143 | 326 | 0.726669 |
8d61d1b5d6b0de975b9d576cfadcd886cc44204a | 10,970 | py | Python | Scratch/lstm.py | imadtoubal/MultimodalDeepfakeDetection | 46539e16c988ee9fdfb714893788bbbf72836595 | [
"MIT"
] | 2 | 2022-03-12T09:18:13.000Z | 2022-03-23T08:29:10.000Z | Scratch/lstm.py | imadtoubal/MultimodalDeepfakeDetection | 46539e16c988ee9fdfb714893788bbbf72836595 | [
"MIT"
] | null | null | null | Scratch/lstm.py | imadtoubal/MultimodalDeepfakeDetection | 46539e16c988ee9fdfb714893788bbbf72836595 | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
import torch.optim as optim
from preprocess import *
from torch.utils.data import Dataset, DataLoader
from blazeface import BlazeFace
import os
import cv2
import numpy as np
from matplotlib import pyplot as plt
import random
import pickle
... | 34.388715 | 116 | 0.591978 |
8d63217e5fdc8f7f711034a43dd2b7d398591281 | 18,373 | py | Python | analysis/plot/python/plot_groups/estimator.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | analysis/plot/python/plot_groups/estimator.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | analysis/plot/python/plot_groups/estimator.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | # Copyright 2020 Makani Technologies 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... | 46.047619 | 80 | 0.56828 |
8d633804dd70bc9958af00b42a11e0de38e402fd | 4,122 | py | Python | scripts/old/modbus_server.py | SamKaiYang/ros_modbus_nex | b698cc73df65853866112f7501432a8509a2545c | [
"BSD-2-Clause"
] | null | null | null | scripts/old/modbus_server.py | SamKaiYang/ros_modbus_nex | b698cc73df65853866112f7501432a8509a2545c | [
"BSD-2-Clause"
] | null | null | null | scripts/old/modbus_server.py | SamKaiYang/ros_modbus_nex | b698cc73df65853866112f7501432a8509a2545c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
###########################################################################
# This software is graciously provided by HumaRobotics
# under the Simplified BSD License on
# github: git@www.humarobotics.com:baxter_tasker
# HumaRobotics is a trademark of Generation Robots.
# www.humarobotics.com
#... | 40.411765 | 125 | 0.694081 |
8d638991d71730377e930b6afff8fce13cde7b4a | 4,453 | py | Python | siptrackdlib/objectregistry.py | sii/siptrackd | f124f750c5c826156c31ae8699e90ff95a964a02 | [
"Apache-2.0"
] | null | null | null | siptrackdlib/objectregistry.py | sii/siptrackd | f124f750c5c826156c31ae8699e90ff95a964a02 | [
"Apache-2.0"
] | 14 | 2016-03-18T13:28:16.000Z | 2019-06-02T21:11:29.000Z | siptrackdlib/objectregistry.py | sii/siptrackd | f124f750c5c826156c31ae8699e90ff95a964a02 | [
"Apache-2.0"
] | 7 | 2016-03-18T13:04:54.000Z | 2021-06-22T10:39:04.000Z | from siptrackdlib import errors
from siptrackdlib import log
object_registry = ObjectRegistry()
| 37.108333 | 88 | 0.650348 |
8d66576529e5704ad9e6b2d90cc87687907b8c91 | 1,139 | py | Python | src/kol/request/CombatRequest.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T13:26:56.000Z | 2016-05-08T13:26:56.000Z | src/kol/request/CombatRequest.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | null | null | null | src/kol/request/CombatRequest.py | ZJ/pykol | c0523a4a4d09bcdf16f8c86c78da96914e961076 | [
"BSD-3-Clause"
] | null | null | null | from GenericAdventuringRequest import GenericAdventuringRequest
| 32.542857 | 92 | 0.72432 |
8d683b8c02d8d22cc3724afc4a6f8b486b4fd023 | 325 | py | Python | OLD.dir/myclient1.py | romchegue/Python | 444476088e64d5da66cb00174f3d1d30ebbe38f6 | [
"bzip2-1.0.6"
] | null | null | null | OLD.dir/myclient1.py | romchegue/Python | 444476088e64d5da66cb00174f3d1d30ebbe38f6 | [
"bzip2-1.0.6"
] | null | null | null | OLD.dir/myclient1.py | romchegue/Python | 444476088e64d5da66cb00174f3d1d30ebbe38f6 | [
"bzip2-1.0.6"
] | null | null | null | '''
myclient1.py - imports mymod.py and check its operation.
'''
from mymod import test, countChars, countChars1, countLines, countLines1
text = 'test.txt'
file = open(text)
print(test(text), test(file))
print(countChars(text), countChars1(file))
print(countLines(text), countLines1(file))
print('\nedited again versio... | 23.214286 | 72 | 0.744615 |
8d6a85cb3cf62644daa8bec049af6d5de6f147e2 | 632 | py | Python | src/modules/dates/searchDates.py | leonardoleyva/api-agenda-uas | 697740a0a3feebb2ada01133db020fcf5127e1de | [
"MIT"
] | 1 | 2022-03-13T02:28:29.000Z | 2022-03-13T02:28:29.000Z | src/modules/dates/searchDates.py | leonardoleyva/api-agenda-uas | 697740a0a3feebb2ada01133db020fcf5127e1de | [
"MIT"
] | null | null | null | src/modules/dates/searchDates.py | leonardoleyva/api-agenda-uas | 697740a0a3feebb2ada01133db020fcf5127e1de | [
"MIT"
] | null | null | null | from .date import Date
from ..response import handleResponse
from datetime import datetime
| 27.478261 | 126 | 0.643987 |
8d6c38dd172b4fa935c4b931081b7a40d9bc40a8 | 6,045 | py | Python | Spark/spark_media_localidad.py | Dielam/Dielam.github.io | 19f01d693ef2c590f3ac35a3a143ae3dedf8594e | [
"MIT"
] | null | null | null | Spark/spark_media_localidad.py | Dielam/Dielam.github.io | 19f01d693ef2c590f3ac35a3a143ae3dedf8594e | [
"MIT"
] | null | null | null | Spark/spark_media_localidad.py | Dielam/Dielam.github.io | 19f01d693ef2c590f3ac35a3a143ae3dedf8594e | [
"MIT"
] | 1 | 2020-12-23T16:45:20.000Z | 2020-12-23T16:45:20.000Z | #!/usr/bin/python
import sys
from pyspark import SparkContext
from shutil import rmtree
import os.path as path
if len(sys.argv) > 1:
if path.exists("output"):
rmtree("output")
sc = SparkContext()
localidad = sys.argv[1]
localidadRDD = sc.textFile("Gasolineras.csv")
localidadRDD = localida... | 45.451128 | 235 | 0.643176 |
8d6cc5852312640c236532b7026c1ac08efbc30f | 13,148 | py | Python | core/views/misc.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 3 | 2018-02-27T13:48:28.000Z | 2018-03-03T21:57:50.000Z | core/views/misc.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 6 | 2020-02-12T00:07:46.000Z | 2022-03-11T23:25:59.000Z | core/views/misc.py | ditttu/gymkhana-Nominations | 2a0e993c1b8362c456a9369b0b549d1c809a21df | [
"MIT"
] | 1 | 2019-03-26T20:19:57.000Z | 2019-03-26T20:19:57.000Z | from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse, reverse_lazy
from django.http import HttpResponseRedirect
from django.shortcuts import render,HttpResponse
from django.views.generic.edit import CreateView, Updat... | 34.783069 | 179 | 0.6601 |
8d6deeb2db5e44e12af11dde00260d1e8aae607e | 29,706 | py | Python | make_paper_plots.py | mjbasso/asymptotic_formulae_examples | a1ba177426bf82e2a58e7b54e1874b088a86595f | [
"MIT"
] | 1 | 2021-08-06T14:58:51.000Z | 2021-08-06T14:58:51.000Z | make_paper_plots.py | mjbasso/asymptotic_formulae_examples | a1ba177426bf82e2a58e7b54e1874b088a86595f | [
"MIT"
] | null | null | null | make_paper_plots.py | mjbasso/asymptotic_formulae_examples | a1ba177426bf82e2a58e7b54e1874b088a86595f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import os
import pickle
import time
from os.path import join as pjoin
import matplotlib.pyplot as plt
import numpy as np
import scipy
from matplotlib import rc
from scipy.optimize import least_squares
import asymptotic_formulae
from asymptotic_formulae import GaussZ0
from asympto... | 46.85489 | 272 | 0.523564 |
8d6e5ae82deb7b5311529c66cb9a669824faeec2 | 2,645 | py | Python | tests/test_compliance.py | simongarisch/pytrade | 6245c0a47017a880299fa7704a49580f394fa87b | [
"MIT"
] | 2 | 2020-10-19T02:44:57.000Z | 2021-11-08T10:45:25.000Z | tests/test_compliance.py | simongarisch/pytrade | 6245c0a47017a880299fa7704a49580f394fa87b | [
"MIT"
] | 1 | 2020-12-24T02:59:58.000Z | 2020-12-24T02:59:58.000Z | tests/test_compliance.py | simongarisch/pytrade | 6245c0a47017a880299fa7704a49580f394fa87b | [
"MIT"
] | null | null | null | import pytest
from pxtrade.assets import reset, Stock, Portfolio
from pxtrade.compliance import (
Compliance,
UnitLimit,
WeightLimit,
)
| 32.654321 | 73 | 0.625331 |
8d7113f4a3fa2caf2cf878a899bd18ce82a24a1b | 103 | py | Python | article/serializers/__init__.py | mentix02/medialist-backend | 397b1a382b12bab273360dadb0b3c32de43747cd | [
"MIT"
] | 1 | 2019-11-22T19:29:39.000Z | 2019-11-22T19:29:39.000Z | article/serializers/__init__.py | mentix02/medialist-backend | 397b1a382b12bab273360dadb0b3c32de43747cd | [
"MIT"
] | 1 | 2019-11-25T09:50:07.000Z | 2021-07-15T07:05:28.000Z | article/serializers/__init__.py | mentix02/medialist-backend | 397b1a382b12bab273360dadb0b3c32de43747cd | [
"MIT"
] | null | null | null | from article.serializers.serializers import (
ArticleListSerializer,
ArticleDetailSerializer
)
| 20.6 | 45 | 0.805825 |
8d73a34deeb4110e24d2f659a64dcdc60d79219a | 1,447 | py | Python | delong_functions/initialization.py | braddelong/22-jupyter-ps01 | 95e8714e1723fb8328380a5d14aafabe2ee0795a | [
"MIT"
] | null | null | null | delong_functions/initialization.py | braddelong/22-jupyter-ps01 | 95e8714e1723fb8328380a5d14aafabe2ee0795a | [
"MIT"
] | null | null | null | delong_functions/initialization.py | braddelong/22-jupyter-ps01 | 95e8714e1723fb8328380a5d14aafabe2ee0795a | [
"MIT"
] | null | null | null | # set up the environment by reading in libraries:
# os... graphics... data manipulation... time... math... statistics...
import sys
import os
from urllib.request import urlretrieve
import matplotlib as mpl
import matplotlib.pyplot as plt
import PIL as pil
from IPython.display import Image
import pandas as pd
from p... | 32.155556 | 106 | 0.724948 |
8d74d9562cd8858adb9b65b43c92263f531590a9 | 608 | py | Python | sdk/bento/graph/value.py | bentobox-dev/bento-box | 3e10c62f586c1251529e059b6af515d4d03c60e9 | [
"MIT"
] | 1 | 2021-01-02T02:50:15.000Z | 2021-01-02T02:50:15.000Z | sdk/bento/graph/value.py | joeltio/bento-box | 3e10c62f586c1251529e059b6af515d4d03c60e9 | [
"MIT"
] | 48 | 2020-10-21T07:42:30.000Z | 2021-02-15T19:34:55.000Z | sdk/bento/graph/value.py | joeltio/bento-box | 3e10c62f586c1251529e059b6af515d4d03c60e9 | [
"MIT"
] | null | null | null | #
# Bentobox
# SDK - Graph
# Graph Value
#
from typing import Any
from bento.value import wrap
from bento.protos.graph_pb2 import Node
def wrap_const(val: Any):
"""Wrap the given native value as a Constant graph node.
If val is a Constant node, returns value as is.
Args:
val: Native value to wrap... | 25.333333 | 68 | 0.677632 |
8d76f8f9957c274ab98fcb861cac123b90567879 | 771 | py | Python | app/validators/user_validator.py | allanzi/truck-challenge | 7734a011de899184b673e99fd1c2ff92a6af65b9 | [
"CECILL-B"
] | null | null | null | app/validators/user_validator.py | allanzi/truck-challenge | 7734a011de899184b673e99fd1c2ff92a6af65b9 | [
"CECILL-B"
] | null | null | null | app/validators/user_validator.py | allanzi/truck-challenge | 7734a011de899184b673e99fd1c2ff92a6af65b9 | [
"CECILL-B"
] | null | null | null | from marshmallow import Schema, fields
from marshmallow.validate import Length, Range | 42.833333 | 75 | 0.743191 |
8d783ab1b46b55a24509d554110a68bdbb340935 | 11,660 | py | Python | montecarlo/mcpy/monte_carlo.py | v-asatha/EconML | eb9ac829e93abbc8a163ab09d905b40370b21b1a | [
"MIT"
] | null | null | null | montecarlo/mcpy/monte_carlo.py | v-asatha/EconML | eb9ac829e93abbc8a163ab09d905b40370b21b1a | [
"MIT"
] | null | null | null | montecarlo/mcpy/monte_carlo.py | v-asatha/EconML | eb9ac829e93abbc8a163ab09d905b40370b21b1a | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
import sys
import numpy as np
from joblib import Parallel, delayed
import joblib
import argparse
import importlib
from itertools import product
import collections
from copy import deepcopy
from mcpy.utils import fi... | 48.786611 | 154 | 0.660806 |
8d7ad5ef06de97e8b617443c00cdb60123831b97 | 5,845 | py | Python | MusicGame.py | kfparri/MusicGame | f2914cae7a68585ca1a569c78ac13f68c1adb827 | [
"MIT"
] | null | null | null | MusicGame.py | kfparri/MusicGame | f2914cae7a68585ca1a569c78ac13f68c1adb827 | [
"MIT"
] | null | null | null | MusicGame.py | kfparri/MusicGame | f2914cae7a68585ca1a569c78ac13f68c1adb827 | [
"MIT"
] | null | null | null | #------------------------------------------------------------------------------------------------------
# File Name: MusicGame.py
# Author: Kyle Parrish
# Date: 7/4/2014
# Description: This is a simple program that I wrote for the raspberry pi so that my daughter can
# play with. It is a simple pro... | 34.791667 | 134 | 0.609239 |
8d7d0cccfbda47460eb1aeba6470425e3ed12174 | 243 | py | Python | tests/utils/img_processing_utils_test.py | venkatakolagotla/robin | 4497bf8ffcd03182f68f9a6d7c806bfdaa4791cb | [
"MIT"
] | 4 | 2019-12-20T05:37:51.000Z | 2020-03-18T16:32:59.000Z | tests/utils/img_processing_utils_test.py | venkatakolagotla/robin | 4497bf8ffcd03182f68f9a6d7c806bfdaa4791cb | [
"MIT"
] | null | null | null | tests/utils/img_processing_utils_test.py | venkatakolagotla/robin | 4497bf8ffcd03182f68f9a6d7c806bfdaa4791cb | [
"MIT"
] | null | null | null | from __future__ import print_function
from robin.utils import img_processing_utils
import numpy as np
| 24.3 | 61 | 0.814815 |
8d7e6b625734d32d6eb3ec106401a004caa7962c | 5,763 | py | Python | DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | 1 | 2019-06-27T04:05:59.000Z | 2019-06-27T04:05:59.000Z | DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | null | null | null | DeepLearning/DeepLearning/07_Deep_LeeYS/Week_1/4. Single-Layer NN/4) Neural Network.py | ghost9023/DeepLearningPythonStudy | 4d319c8729472cc5f490935854441a2d4b4e8818 | [
"MIT"
] | null | null | null | #4)
##########KEYWORD###############
################################
# .
# ..
# (Feed Forward NN) .
# .
# () .
# Layer .
# .
# .
# 2 400% 10% .
# .
# 0 9 10 3 .
# 3 . .
#25 P35
#
#Layer ... | 36.707006 | 120 | 0.640986 |
8d7eb5aaefc17250eb9787e23ab1f5200d2d65f8 | 466 | py | Python | label_gen.py | avasid/gaze_detection | dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5 | [
"MIT"
] | 1 | 2020-02-07T21:34:10.000Z | 2020-02-07T21:34:10.000Z | label_gen.py | avasid/gaze_detection | dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5 | [
"MIT"
] | 8 | 2020-11-13T18:37:12.000Z | 2022-03-12T00:14:04.000Z | label_gen.py | avasid/gaze_detection | dbb76a2b3f3eedff5801b53bc95b3a95bc715bc5 | [
"MIT"
] | null | null | null | import os
import pandas as pd
dictt = {}
i = 0
for label in ['down', 'up', 'left', 'right']:
img_lst = os.listdir("./data/img_data/" + label + "/")
temp_label = [0] * 4
temp_label[i] = 1
for img in img_lst:
print(label + " " + img)
dictt[img] = temp_label
i += 1
label_df = pd.Dat... | 23.3 | 86 | 0.592275 |
8d7fb31d8d0c397a081d7685e96fa1bf8414f9a6 | 2,398 | py | Python | rubik_race/rubiks_race/solver_test.py | ZengLawrence/rubiks_race | 3d78484f0a68c7e483953cea68130f1edde2739a | [
"MIT"
] | null | null | null | rubik_race/rubiks_race/solver_test.py | ZengLawrence/rubiks_race | 3d78484f0a68c7e483953cea68130f1edde2739a | [
"MIT"
] | null | null | null | rubik_race/rubiks_race/solver_test.py | ZengLawrence/rubiks_race | 3d78484f0a68c7e483953cea68130f1edde2739a | [
"MIT"
] | null | null | null | '''
Created on Jun 27, 2017
@author: lawrencezeng
'''
import unittest
from rubiks_race import solver
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.test_solve']
unittest.main()
| 31.142857 | 96 | 0.27648 |
8d80488b5bce65f6332a7212b2c16986023812ef | 1,625 | py | Python | wagtail_translation/migrations/0001_initial.py | patroqueeet/wagtail2-translation | 6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74 | [
"MIT"
] | null | null | null | wagtail_translation/migrations/0001_initial.py | patroqueeet/wagtail2-translation | 6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74 | [
"MIT"
] | null | null | null | wagtail_translation/migrations/0001_initial.py | patroqueeet/wagtail2-translation | 6a7ad4eea5d900c8640f965ebf7a442dd7bc7e74 | [
"MIT"
] | 1 | 2021-01-08T19:25:46.000Z | 2021-01-08T19:25:46.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from modeltranslation import settings as mt_settings
from modeltranslation.utils import build_localized_fieldname, get_translation_fields
from django.db import migrations, models
| 37.790698 | 84 | 0.715692 |
8d8293dd05c195d7acdf3af64d74eb27c71ed3fc | 99,195 | py | Python | WORC/WORC.py | MStarmans91/WORC | b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7 | [
"ECL-2.0",
"Apache-2.0"
] | 47 | 2018-01-28T14:08:15.000Z | 2022-03-24T16:10:07.000Z | WORC/WORC.py | JZK00/WORC | 14e8099835eccb35d49b52b97c0be64ecca3809c | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2018-08-28T13:32:57.000Z | 2020-10-26T16:35:59.000Z | WORC/WORC.py | JZK00/WORC | 14e8099835eccb35d49b52b97c0be64ecca3809c | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2017-11-13T10:53:36.000Z | 2022-03-18T17:02:04.000Z | #!/usr/bin/env python
# Copyright 2016-2021 Biomedical Imaging Group Rotterdam, Departments of
# Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obt... | 53.822572 | 228 | 0.559897 |
8d832e77f438b0dd65c0dff2da0ca039538bc5cd | 2,019 | py | Python | utils/tweets_to_txt.py | magsol/datascibun | bb118eac59dc238c42f659871e25619d994f8575 | [
"Apache-2.0"
] | null | null | null | utils/tweets_to_txt.py | magsol/datascibun | bb118eac59dc238c42f659871e25619d994f8575 | [
"Apache-2.0"
] | null | null | null | utils/tweets_to_txt.py | magsol/datascibun | bb118eac59dc238c42f659871e25619d994f8575 | [
"Apache-2.0"
] | 1 | 2022-03-01T01:45:47.000Z | 2022-03-01T01:45:47.000Z | import argparse
import json
import re
if __name__ == "__main__":
parser = argparse.ArgumentParser(description = 'JSON tweet converter',
epilog = 'lol tw33tz', add_help = 'How to use',
prog = 'python json_to_txt.py <options>')
# Required arguments.
parser.add_argument("-i", "--input", requi... | 27.657534 | 91 | 0.574542 |
8d85dffad6d22403418ce3ef5e06280cc317b3e4 | 528 | py | Python | truechat/chat/migrations/0007_auto_20191026_2020.py | TrueChat/Backend | 7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac | [
"MIT"
] | 1 | 2019-12-19T19:04:33.000Z | 2019-12-19T19:04:33.000Z | truechat/chat/migrations/0007_auto_20191026_2020.py | TrueChat/Backend | 7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac | [
"MIT"
] | 6 | 2020-06-05T23:42:41.000Z | 2022-02-10T13:32:59.000Z | truechat/chat/migrations/0007_auto_20191026_2020.py | TrueChat/Backend | 7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-26 20:20
from django.db import migrations, models
| 22.956522 | 81 | 0.587121 |
8d86a97241dd9580e12d59014523e0d42f09b38e | 354 | py | Python | libs/baseclass/about_screen.py | wildscsi/ecopos | 9922bb5160227777401eb33fa9a01cfba5730781 | [
"MIT"
] | null | null | null | libs/baseclass/about_screen.py | wildscsi/ecopos | 9922bb5160227777401eb33fa9a01cfba5730781 | [
"MIT"
] | 1 | 2021-11-04T20:43:03.000Z | 2021-11-04T20:43:03.000Z | libs/baseclass/about_screen.py | wildscsi/ecopos | 9922bb5160227777401eb33fa9a01cfba5730781 | [
"MIT"
] | 1 | 2021-11-04T19:43:53.000Z | 2021-11-04T19:43:53.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020 CPV.BY
#
# For suggestions and questions:
# <7664330@gmail.com>
#
# LICENSE: Commercial
import webbrowser
from kivymd.theming import ThemableBehavior
from kivymd.uix.screen import MDScreen
| 19.666667 | 46 | 0.728814 |
8d86c9a6526d8d524710fa780972b087a3f46ac3 | 7,715 | py | Python | causal_rl/environments/multi_typed.py | vluzko/causal_rl | 92ee221bdf1932fa83955441baabb5e28b78ab9d | [
"MIT"
] | 2 | 2021-04-02T12:06:13.000Z | 2022-02-09T06:57:26.000Z | causal_rl/environments/multi_typed.py | vluzko/causal_rl | 92ee221bdf1932fa83955441baabb5e28b78ab9d | [
"MIT"
] | 11 | 2020-12-28T14:51:31.000Z | 2021-03-29T19:53:24.000Z | causal_rl/environments/multi_typed.py | vluzko/causal_rl | 92ee221bdf1932fa83955441baabb5e28b78ab9d | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from gym import Env
from scipy.spatial import distance
from typing import Optional, Tuple, Any
from causal_rl.environments import CausalEnv
| 36.738095 | 106 | 0.568762 |
8d86e19a0f7bf48d0eb61da351363ace81caa8fc | 353 | py | Python | greetings.py | ucsd-cse-spis-2016/spis16-lecture-0815 | 24e0a8ea9726f969eb357db33eb2925aabd25e43 | [
"MIT"
] | null | null | null | greetings.py | ucsd-cse-spis-2016/spis16-lecture-0815 | 24e0a8ea9726f969eb357db33eb2925aabd25e43 | [
"MIT"
] | null | null | null | greetings.py | ucsd-cse-spis-2016/spis16-lecture-0815 | 24e0a8ea9726f969eb357db33eb2925aabd25e43 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
if __name__ == "__main__":
app.run(port=5000)
| 16.045455 | 35 | 0.628895 |
8d88e96d4a71ca08ce8d66eee14e65dd7c02396c | 3,189 | py | Python | bin/makeReport.py | oxfordmmm/SARS-CoV2_workflows | a84cb0a7142684414b2f285dd27cc2ea287eecb9 | [
"MIT"
] | null | null | null | bin/makeReport.py | oxfordmmm/SARS-CoV2_workflows | a84cb0a7142684414b2f285dd27cc2ea287eecb9 | [
"MIT"
] | null | null | null | bin/makeReport.py | oxfordmmm/SARS-CoV2_workflows | a84cb0a7142684414b2f285dd27cc2ea287eecb9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pandas as pd
import sys
import json
from Bio import SeqIO
sample_name=sys.argv[1]
pango=pd.read_csv('pango.csv')
nextclade=pd.read_csv('nextclade.tsv', sep='\t')
aln2type=pd.read_csv('aln2type.csv')
pango['sampleName']=sample_name
nextclade['sampleName']=sample_name
aln2type['sampleName... | 35.831461 | 90 | 0.756977 |
8d8a5d72d65e690dc4c82341ed975187662e4c48 | 1,484 | py | Python | webhooks/statuscake/alerta_statuscake.py | frekel/alerta-contrib | d8f5c93a4ea735085b3689c2c852ecae94924d08 | [
"MIT"
] | 114 | 2015-02-05T00:22:16.000Z | 2021-11-25T13:02:44.000Z | webhooks/statuscake/alerta_statuscake.py | NeilOrley/alerta-contrib | 69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1 | [
"MIT"
] | 245 | 2016-01-09T22:29:09.000Z | 2022-03-16T10:37:02.000Z | webhooks/statuscake/alerta_statuscake.py | NeilOrley/alerta-contrib | 69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1 | [
"MIT"
] | 193 | 2015-01-30T21:22:49.000Z | 2022-03-28T05:37:14.000Z | from alerta.models.alert import Alert
from alerta.webhooks import WebhookBase
from alerta.exceptions import RejectException
import os
import hashlib
| 35.333333 | 85 | 0.624663 |
8d8b51eaca246cacfde939fcbc4a16b39dba720e | 3,738 | py | Python | ironic_discoverd/main.py | enovance/ironic-discoverd | d3df6178ca5c95943c93ff80723c86b7080bca0b | [
"Apache-2.0"
] | null | null | null | ironic_discoverd/main.py | enovance/ironic-discoverd | d3df6178ca5c95943c93ff80723c86b7080bca0b | [
"Apache-2.0"
] | null | null | null | ironic_discoverd/main.py | enovance/ironic-discoverd | d3df6178ca5c95943c93ff80723c86b7080bca0b | [
"Apache-2.0"
] | null | null | null | # 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, software
# distributed under the... | 31.411765 | 75 | 0.688604 |
8d8c7b2102958e3a921b5b5a1f32ed6750cd5ff4 | 964 | py | Python | config_translator.py | Charahiro-tan/Jurubot_Translator | d0d0db137f3ddfe06d7cd9457d22c418bdeff94c | [
"MIT"
] | 1 | 2021-07-26T11:14:05.000Z | 2021-07-26T11:14:05.000Z | config_translator.py | Charahiro-tan/Jurubot_Translator | d0d0db137f3ddfe06d7cd9457d22c418bdeff94c | [
"MIT"
] | null | null | null | config_translator.py | Charahiro-tan/Jurubot_Translator | d0d0db137f3ddfe06d7cd9457d22c418bdeff94c | [
"MIT"
] | null | null | null | ##################################################
#
#
##################################################
# []"",
#
ignore_user = ["Nightbot","Streamelements","Moobot"]
#
# URL
del_word = ["88+","+"]
#
# https://cloud.google.com/translate/docs/languages
ignore_lang = ["",""]
#
home_lang = "ja"
# home_lang
... | 22.418605 | 61 | 0.692946 |
8d8cd77924dc533eeabb54595050045f0fb725d3 | 1,489 | py | Python | wxcloudrun/dao.py | lubupang/resume_flask1 | 1ea18e88c0b667e92710096f57973a77d19e8fc6 | [
"MIT"
] | null | null | null | wxcloudrun/dao.py | lubupang/resume_flask1 | 1ea18e88c0b667e92710096f57973a77d19e8fc6 | [
"MIT"
] | null | null | null | wxcloudrun/dao.py | lubupang/resume_flask1 | 1ea18e88c0b667e92710096f57973a77d19e8fc6 | [
"MIT"
] | null | null | null | import logging
from sqlalchemy.exc import OperationalError
from wxcloudrun import db
from wxcloudrun.model import Counters
#
logger = logging.getLogger('log')
logger.info("aaaaaaa")
def query_counterbyid(id):
"""
IDCounter
:param id: CounterID
:return: Counter
"""
logger.info("bbbbbbbbb")
... | 22.560606 | 65 | 0.633983 |
8d8db8eca4cacfeb8ce07aa8011f8a4b558400b4 | 7,411 | py | Python | src/bpp/tests/tests_legacy/test_views/test_raporty.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/tests/tests_legacy/test_views/test_raporty.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/tests/tests_legacy/test_views/test_raporty.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
import os
import sys
import uuid
import pytest
from django.apps import apps
from django.contrib.auth.models import Group
from django.core.files.base import ContentFile
try:
from django.core.urlresolvers import reverse
except ImportError:
from django.urls import reverse
from django.db... | 32.221739 | 95 | 0.643233 |
8d8dfcd12be52225c59666f19fa694cef189e9ea | 1,373 | py | Python | bot/utilities/api/helpers/score.py | AiratK/kaishnik-bot | c42351611a40a04d78c8ae481b97339adbd321e5 | [
"MIT"
] | null | null | null | bot/utilities/api/helpers/score.py | AiratK/kaishnik-bot | c42351611a40a04d78c8ae481b97339adbd321e5 | [
"MIT"
] | null | null | null | bot/utilities/api/helpers/score.py | AiratK/kaishnik-bot | c42351611a40a04d78c8ae481b97339adbd321e5 | [
"MIT"
] | null | null | null | from typing import List
from typing import Tuple
from bot.utilities.api.constants import SCORE_TEMPLATE
| 39.228571 | 116 | 0.780772 |
8d8ebb77655b687ce95045239bb38a91c19a2901 | 1,192 | py | Python | manager_app/serializers/carousel_serializers.py | syz247179876/e_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 7 | 2021-04-10T13:20:56.000Z | 2022-03-29T15:00:29.000Z | manager_app/serializers/carousel_serializers.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 9 | 2021-05-11T03:53:31.000Z | 2022-03-12T00:58:03.000Z | manager_app/serializers/carousel_serializers.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 2 | 2020-11-24T08:59:22.000Z | 2020-11-24T14:10:59.000Z | # -*- coding: utf-8 -*-
# @Time : 2021/4/6 9:21
# @Author :
# @File : carousel_serializers.py
# @Software: Pycharm
from rest_framework import serializers
from Emall.exceptions import DataFormatError
from shop_app.models.commodity_models import Carousel
| 27.090909 | 97 | 0.654362 |
8d9135e1864bf2b1336ddc05e72617edb4057d7b | 7,312 | py | Python | xfbin/structure/nud.py | SutandoTsukai181/xfbin_lib | 8e2c56f354bfd868f9162f816cc528e6f830cdbc | [
"MIT"
] | 3 | 2021-07-20T09:13:13.000Z | 2021-09-06T18:08:15.000Z | xfbin/structure/nud.py | SutandoTsukai181/xfbin_lib | 8e2c56f354bfd868f9162f816cc528e6f830cdbc | [
"MIT"
] | 1 | 2021-09-06T18:07:48.000Z | 2021-09-06T18:07:48.000Z | xfbin/structure/nud.py | SutandoTsukai181/xfbin_lib | 8e2c56f354bfd868f9162f816cc528e6f830cdbc | [
"MIT"
] | null | null | null | from itertools import chain
from typing import List, Tuple
from .br.br_nud import *
| 32.642857 | 117 | 0.607358 |
8d92051bcbbae105ab8b259c257c80d404e8f4eb | 2,389 | py | Python | src/attack_surface_pypy/__main__.py | ccrvs/attack_surface_pypy | f2bc9998cf42f4764f1c495e6243d970e01bd176 | [
"CC0-1.0"
] | null | null | null | src/attack_surface_pypy/__main__.py | ccrvs/attack_surface_pypy | f2bc9998cf42f4764f1c495e6243d970e01bd176 | [
"CC0-1.0"
] | null | null | null | src/attack_surface_pypy/__main__.py | ccrvs/attack_surface_pypy | f2bc9998cf42f4764f1c495e6243d970e01bd176 | [
"CC0-1.0"
] | null | null | null | import argparse
import gc
import pathlib
import sys
import typing
import uvicorn # type: ignore
from attack_surface_pypy import __service_name__, __version__, asgi
from attack_surface_pypy import logging as app_logging
from attack_surface_pypy import settings
# logger = structlog.get_logger()
gc.disable()
parser =... | 29.493827 | 117 | 0.686061 |
8d92eb64df1700c877aeea998c716029d6df8ce0 | 391 | py | Python | subscriptions/migrations/0004_auto_20200630_1157.py | Naveendata-ux/tor_redesign | e4b5135f8b4134527ad04a097bdffd9d956d9858 | [
"BSD-2-Clause"
] | null | null | null | subscriptions/migrations/0004_auto_20200630_1157.py | Naveendata-ux/tor_redesign | e4b5135f8b4134527ad04a097bdffd9d956d9858 | [
"BSD-2-Clause"
] | null | null | null | subscriptions/migrations/0004_auto_20200630_1157.py | Naveendata-ux/tor_redesign | e4b5135f8b4134527ad04a097bdffd9d956d9858 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.5 on 2020-06-30 11:57
from django.db import migrations
| 20.578947 | 53 | 0.613811 |
8d9365bf3bc3b96e70ffdbc229d46a96e3d6b3fd | 545 | py | Python | Random_Colored/main.py | usamaahsan93/mischief-managed | 824022ecaeda46450ca1029bceb39f194c363138 | [
"MIT"
] | null | null | null | Random_Colored/main.py | usamaahsan93/mischief-managed | 824022ecaeda46450ca1029bceb39f194c363138 | [
"MIT"
] | null | null | null | Random_Colored/main.py | usamaahsan93/mischief-managed | 824022ecaeda46450ca1029bceb39f194c363138 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 2 16:54:10 2021
@author: sdn1
"""
import numpy as np
import os
i=0
while(i<1):
1/0
print(bcolors.OKGREEN + chr(np.random.randint(250,400)) + bcolors.ENDC, end='')
os.system('python $(pwd)/main.py')
i=i+1
print(i)
| 17.03125 | 83 | 0.552294 |
8d93c9fb2121a519402ceb1deef23ae520c7fdfe | 1,717 | py | Python | utils/event_store_rebuilder_for_segments.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/event_store_rebuilder_for_segments.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/event_store_rebuilder_for_segments.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | import datetime
from pathlib import Path
from typing import Optional, Tuple
from .common import _IMAGE_SUFFIXES, _PERMITTED_EXTENSIONS, PathDetails, rebuild_event_store
if __name__ == "__main__":
import argparse
from dateutil.tz import tzoffset
parser = argparse.ArgumentParser()
parser.add_argume... | 28.616667 | 92 | 0.663366 |
8d9464e17bd59a5730ae1d8d76d451408c780a27 | 4,049 | py | Python | python/src/main/python/common/threadctl.py | esnet/netshell | 4cb010b63e72610cf81112b29587d3e980612333 | [
"BSD-3-Clause-LBNL"
] | 6 | 2016-02-17T16:31:55.000Z | 2021-03-16T20:17:41.000Z | python/src/main/python/common/threadctl.py | esnet/netshell | 4cb010b63e72610cf81112b29587d3e980612333 | [
"BSD-3-Clause-LBNL"
] | 27 | 2016-04-11T19:49:04.000Z | 2016-07-14T06:05:52.000Z | python/src/main/python/common/threadctl.py | esnet/netshell | 4cb010b63e72610cf81112b29587d3e980612333 | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-07-31T19:30:50.000Z | 2017-07-31T19:30:50.000Z | # ESnet Network Operating System (ENOS) Copyright (c) 2015, The Regents
# of the University of California, through Lawrence Berkeley National
# Laboratory (subject to receipt of any required approvals from the
# U.S. Dept. of Energy). All rights reserved.
#
# If you have questions about your rights to use or distribut... | 29.772059 | 96 | 0.613732 |
8d94db8d2bb9acc8dbec349c6766ca408545196a | 599 | py | Python | python/distance/HaversineDistanceInMiles.py | jigneshoo7/AlgoBook | 8aecc9698447c0ee561a1c90d5c5ab87c4a07b79 | [
"MIT"
] | 191 | 2020-09-28T10:00:20.000Z | 2022-03-06T14:36:55.000Z | python/distance/HaversineDistanceInMiles.py | jigneshoo7/AlgoBook | 8aecc9698447c0ee561a1c90d5c5ab87c4a07b79 | [
"MIT"
] | 210 | 2020-09-28T10:06:36.000Z | 2022-03-05T03:44:24.000Z | python/distance/HaversineDistanceInMiles.py | jigneshoo7/AlgoBook | 8aecc9698447c0ee561a1c90d5c5ab87c4a07b79 | [
"MIT"
] | 320 | 2020-09-28T09:56:14.000Z | 2022-02-12T16:45:57.000Z | import math | 33.277778 | 153 | 0.651085 |
8d95a5da0117840ab07b75457380a92375c5347d | 8,837 | py | Python | i2i/util.py | thorwhalen/i2i | f967aaba28793029e3fe643c5e17ae9bc7a77732 | [
"Apache-2.0"
] | 1 | 2019-08-29T01:35:12.000Z | 2019-08-29T01:35:12.000Z | i2i/util.py | thorwhalen/i2i | f967aaba28793029e3fe643c5e17ae9bc7a77732 | [
"Apache-2.0"
] | null | null | null | i2i/util.py | thorwhalen/i2i | f967aaba28793029e3fe643c5e17ae9bc7a77732 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import inspect
import types
from functools import wraps
function_type = type(lambda x: x) # using this instead of callable() because classes are callable, for instance
no_default = NoDefault()
def inject_method(self, method_function, method_name=None):
"""
method_functio... | 34.928854 | 119 | 0.629965 |
8d97b86230f6560f3cd37b723cba275b3f968cb2 | 1,635 | py | Python | setup.py | robflintham/mippy | e642c697202acc5b96b42f62204786bf5e705c9a | [
"BSD-3-Clause"
] | null | null | null | setup.py | robflintham/mippy | e642c697202acc5b96b42f62204786bf5e705c9a | [
"BSD-3-Clause"
] | null | null | null | setup.py | robflintham/mippy | e642c697202acc5b96b42f62204786bf5e705c9a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Test version numbering before running setup
test_version()
setup( name='MIPPY',
version=get_version(),
description='Modular Image Processing in Python',
... | 29.727273 | 92 | 0.666055 |
8d98eec2f752514e211b3f9e607274f2de78ffd9 | 3,543 | py | Python | physprog/tests/test_sample_problem.py | partofthething/physprog | 8bbeb8d84697469417577c76c924dcb3a855cd2d | [
"Apache-2.0"
] | 3 | 2018-03-25T16:13:53.000Z | 2021-06-29T14:30:20.000Z | physprog/tests/test_sample_problem.py | partofthething/physprog | 8bbeb8d84697469417577c76c924dcb3a855cd2d | [
"Apache-2.0"
] | null | null | null | physprog/tests/test_sample_problem.py | partofthething/physprog | 8bbeb8d84697469417577c76c924dcb3a855cd2d | [
"Apache-2.0"
] | 2 | 2021-09-18T08:38:32.000Z | 2022-03-01T07:43:52.000Z | """Run a sample problem to test full system."""
# pylint: disable=invalid-name,missing-docstring
import unittest
from collections import namedtuple
import math
import os
from physprog import classfunctions
from physprog import optimize
THIS_DIR = os.path.dirname(__file__)
SAMPLE_INPUT = os.path.join(THIS_DIR, 'sam... | 28.804878 | 80 | 0.582275 |
8d99f51b98aee394d6e4b4f62dcc6cdca1b6db1f | 10,131 | py | Python | tutorials/seq2seq_sated/seq2seq_sated_meminf.py | rizwandel/ml_privacy_meter | 5dc4c300eadccceadd0e664a7e46099f65728628 | [
"MIT"
] | 294 | 2020-04-13T18:32:45.000Z | 2022-03-31T10:32:34.000Z | tutorials/seq2seq_sated/seq2seq_sated_meminf.py | kypomon/ml_privacy_meter | c0324e8f74cbd0cde0643a7854fa66eab47bbe53 | [
"MIT"
] | 26 | 2020-04-29T19:56:21.000Z | 2022-03-31T10:42:24.000Z | tutorials/seq2seq_sated/seq2seq_sated_meminf.py | kypomon/ml_privacy_meter | c0324e8f74cbd0cde0643a7854fa66eab47bbe53 | [
"MIT"
] | 50 | 2020-04-16T02:16:24.000Z | 2022-03-16T00:37:40.000Z | import os
import sys
from collections import defaultdict
import tensorflow as tf
import tensorflow.keras.backend as K
import numpy as np
import scipy.stats as ss
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve
from sklearn.linear_model import LogisticRegression
from utils import process_texts, ... | 35.672535 | 113 | 0.660251 |
8d9d264830cab7159205ed06b41898abec3b84f4 | 2,685 | py | Python | app/recipe/tests/test_tags_api.py | MohamedAbdelmagid/django-recipe-api | 229d3a7cff483b3cad76c70aefde6a51250b9bc8 | [
"MIT"
] | null | null | null | app/recipe/tests/test_tags_api.py | MohamedAbdelmagid/django-recipe-api | 229d3a7cff483b3cad76c70aefde6a51250b9bc8 | [
"MIT"
] | null | null | null | app/recipe/tests/test_tags_api.py | MohamedAbdelmagid/django-recipe-api | 229d3a7cff483b3cad76c70aefde6a51250b9bc8 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse
from django.contrib.auth import get_user_model
from rest_framework.test import APIClient
from rest_framework import status
from core.models import Tag
from recipe.serializers import TagSerializer
TAGS_URL = reverse("recipe:tag-list")
| 32.349398 | 85 | 0.672998 |
8d9d7d5c7ee0f28e0c8877291fb904e2d8ace2db | 5,736 | py | Python | dtlpy/entities/annotation_definitions/cube_3d.py | dataloop-ai/dtlpy | 2c73831da54686e047ab6aefd8f12a8e53ea97c2 | [
"Apache-2.0"
] | 10 | 2020-05-21T06:25:35.000Z | 2022-01-07T20:34:03.000Z | dtlpy/entities/annotation_definitions/cube_3d.py | dataloop-ai/dtlpy | 2c73831da54686e047ab6aefd8f12a8e53ea97c2 | [
"Apache-2.0"
] | 22 | 2019-11-17T17:25:16.000Z | 2022-03-10T15:14:28.000Z | dtlpy/entities/annotation_definitions/cube_3d.py | dataloop-ai/dtlpy | 2c73831da54686e047ab6aefd8f12a8e53ea97c2 | [
"Apache-2.0"
] | 8 | 2020-03-05T16:23:55.000Z | 2021-12-27T11:10:42.000Z | import numpy as np
# import open3d as o3d
from . import BaseAnnotationDefinition
# from scipy.spatial.transform import Rotation as R
import logging
logger = logging.getLogger(name=__name__)
| 38.496644 | 135 | 0.544107 |
8d9e1079bef17b6514de9131ede3ab7099ea53a4 | 3,702 | py | Python | my_module/tools.py | roki18d/sphinx_autogen-apidoc | 67ad9c716c909d89bcd813a5fa871df8850e4fd5 | [
"Apache-2.0"
] | null | null | null | my_module/tools.py | roki18d/sphinx_autogen-apidoc | 67ad9c716c909d89bcd813a5fa871df8850e4fd5 | [
"Apache-2.0"
] | null | null | null | my_module/tools.py | roki18d/sphinx_autogen-apidoc | 67ad9c716c909d89bcd813a5fa871df8850e4fd5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from my_module.exceptions import InvalidArgumentsError
if __name__ == "__main__":
my_adder = SimpleCalculator(operator="add")
print('Case01:', my_adder.execute(4, 2))
print('Case02:', my_adder.execute(5, "a"))
my_subtractor = SimpleCalculator(operator="sub")
... | 30.85 | 92 | 0.562939 |
8da38969800ff2540723920b2ba94670badb3561 | 12,114 | py | Python | PCA_ResNet50.py | liuyingbin19222/HSI_svm_pca_resNet50 | cd95d21c81e93f8b873183f10f52416f71a93d07 | [
"Apache-2.0"
] | 12 | 2020-03-13T02:39:53.000Z | 2022-02-21T03:28:33.000Z | PCA_ResNet50.py | liuyingbin19222/HSI_svm_pca_resNet50 | cd95d21c81e93f8b873183f10f52416f71a93d07 | [
"Apache-2.0"
] | 14 | 2020-02-17T12:31:08.000Z | 2022-02-10T01:07:05.000Z | PCA_ResNet50.py | liuyingbin19222/HSI_svm_pca_resNet50 | cd95d21c81e93f8b873183f10f52416f71a93d07 | [
"Apache-2.0"
] | 3 | 2020-09-06T08:19:15.000Z | 2021-03-08T10:15:40.000Z | import keras
from keras.layers import Conv2D, Conv3D, Flatten, Dense, Reshape, BatchNormalization
from keras.layers import Dropout, Input
from keras.models import Model
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
from sklearn.decomposition impo... | 34.123944 | 159 | 0.630097 |
8da4e24daba79cfc5a237fbfd0bd61228b6bdc1d | 754 | py | Python | tests/test_data/utest/setup.py | gordonmessmer/pyp2rpm | 60145ba6fa49ad5bb29eeffa5765e10ba8417f03 | [
"MIT"
] | 114 | 2015-07-13T12:38:27.000Z | 2022-03-23T15:05:11.000Z | tests/test_data/utest/setup.py | gordonmessmer/pyp2rpm | 60145ba6fa49ad5bb29eeffa5765e10ba8417f03 | [
"MIT"
] | 426 | 2015-07-13T12:09:38.000Z | 2022-01-07T16:41:32.000Z | tests/test_data/utest/setup.py | Mattlk13/pyp2rpm | f9ced95877d88c96b77b2b8c510dc4ceaa10504a | [
"MIT"
] | 51 | 2015-07-14T13:11:29.000Z | 2022-03-31T07:27:32.000Z | #!/usr/bin/env python3
from setuptools import setup, find_packages
requirements = ["pyp2rpm~=3.3.1"]
setup(
name="utest",
version="0.1.0",
description="Micro test module",
license="GPLv2+",
author="pyp2rpm Developers",
author_email='bkabrda@redhat.com, rkuska@redhat.com, mcyprian@redhat.com, ... | 30.16 | 99 | 0.66313 |
8da621c7d046b3bbba97fe0075833d24a4276a49 | 4,235 | py | Python | abstract_nas/train/preprocess.py | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | abstract_nas/train/preprocess.py | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | abstract_nas/train/preprocess.py | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 32.576923 | 79 | 0.633058 |
8da6f40241c238cd5d1aecce8bbe81273d1e484a | 5,570 | py | Python | Decission_Tree/mytree.py | luoshao23/ML_algorithm | 6e94fdd0718cd892118fd036c7c5851cf3e6d796 | [
"MIT"
] | 4 | 2017-06-19T06:33:38.000Z | 2019-01-31T12:07:12.000Z | Decission_Tree/mytree.py | luoshao23/ML_algorithm | 6e94fdd0718cd892118fd036c7c5851cf3e6d796 | [
"MIT"
] | null | null | null | Decission_Tree/mytree.py | luoshao23/ML_algorithm | 6e94fdd0718cd892118fd036c7c5851cf3e6d796 | [
"MIT"
] | 1 | 2017-12-06T08:41:06.000Z | 2017-12-06T08:41:06.000Z | from math import log
from PIL import Image, ImageDraw
from collections import Counter
import numpy as np
from pandas import DataFrame
# my_data = [['slashdot', 'USA', 'yes', 18, 213.2, 'None'],
# ['google', 'France', 'yes', 23, 121.2, 'Premium'],
# ['digg', 'USA', 'yes', 24, 21.32, 'Basic'],
# ... | 31.828571 | 89 | 0.498025 |
8da70610f3402c8b44d3fbdf21a05f4f563b016b | 488 | py | Python | hidb/wrapper.py | sk-ip/hidb | 1394000992c016607e7af15095f058cd9cce007b | [
"MIT"
] | null | null | null | hidb/wrapper.py | sk-ip/hidb | 1394000992c016607e7af15095f058cd9cce007b | [
"MIT"
] | null | null | null | hidb/wrapper.py | sk-ip/hidb | 1394000992c016607e7af15095f058cd9cce007b | [
"MIT"
] | null | null | null | from datetime import datetime
| 24.4 | 53 | 0.622951 |
8da8f86888f2ee041a3f2312c9709ef180e420d0 | 4,504 | py | Python | ion-channel-models/compare.py | sanmitraghosh/fickleheart-method-tutorials | d5ee910258a2656951201d4ada2a412804013bd5 | [
"BSD-3-Clause"
] | null | null | null | ion-channel-models/compare.py | sanmitraghosh/fickleheart-method-tutorials | d5ee910258a2656951201d4ada2a412804013bd5 | [
"BSD-3-Clause"
] | null | null | null | ion-channel-models/compare.py | sanmitraghosh/fickleheart-method-tutorials | d5ee910258a2656951201d4ada2a412804013bd5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
import sys
sys.path.append('./method')
import os
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import model as m
"""
Run fit.
"""
predict_list = ['sinewave', 'staircase', 'activation', 'ap']
try:
which_pred... | 31.277778 | 78 | 0.690941 |
8da906c8ad76ecde7a1bd94e5017709b02a7ce8e | 7,752 | py | Python | examples/services/classifier_service.py | bbbdragon/python-pype | f0618150cb4d2fae1f959127453fb6eca8db84e5 | [
"MIT"
] | 8 | 2019-07-12T03:28:10.000Z | 2019-07-19T20:34:45.000Z | examples/services/classifier_service.py | bbbdragon/python-pype | f0618150cb4d2fae1f959127453fb6eca8db84e5 | [
"MIT"
] | null | null | null | examples/services/classifier_service.py | bbbdragon/python-pype | f0618150cb4d2fae1f959127453fb6eca8db84e5 | [
"MIT"
] | null | null | null | '''
python3 classifier_service.py data.csv
This service runs a scikit-learn classifier on data provided by the csv file data.csv.
The idea of this is a simple spam detector. In the file, you will see a number, 1 or
-1, followed by a pipe, followed by a piece of text. The text is designed to be a
subject email, and... | 36.739336 | 172 | 0.68434 |
8da9192128d87d058ba7b763d377c653bfe2eb10 | 2,657 | py | Python | ida_plugin/uefi_analyser.py | fengjixuchui/UEFI_RETool | 72c5d54c1dab9f58a48294196bca5ce957f6fb24 | [
"MIT"
] | 240 | 2019-03-12T21:28:06.000Z | 2021-02-09T16:20:09.000Z | ida_plugin/uefi_analyser.py | fengjixuchui/UEFI_RETool | 72c5d54c1dab9f58a48294196bca5ce957f6fb24 | [
"MIT"
] | 10 | 2019-09-09T08:38:35.000Z | 2020-11-30T15:19:30.000Z | ida_plugin/uefi_analyser.py | fengjixuchui/UEFI_RETool | 72c5d54c1dab9f58a48294196bca5ce957f6fb24 | [
"MIT"
] | 53 | 2019-03-16T06:54:18.000Z | 2020-12-23T06:16:38.000Z | # SPDX-License-Identifier: MIT
import os
import idaapi
import idautils
from PyQt5 import QtWidgets
from uefi_analyser import dep_browser, dep_graph, prot_explorer, ui
AUTHOR = "yeggor"
VERSION = "1.2.0"
NAME = "UEFI_RETool"
WANTED_HOTKEY = "Ctrl+Alt+U"
HELP = "This plugin performs automatic analysis of the input UE... | 26.04902 | 73 | 0.616861 |