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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1c86881d74c59dcc1055e4123f85ff985b2a7b8 | 14,313 | py | Python | src/ecs/packing_utils_v2.py | luojie1024/Huawei_CodeCraft_2018 | f7fc6db09c65d9b19c773d3a8933109084ec0489 | [
"Apache-2.0"
] | 3 | 2019-03-01T12:16:02.000Z | 2019-12-19T07:59:07.000Z | src/ecs/packing_utils_v2.py | luojie1024/Huawei_CodeCraft_2018 | f7fc6db09c65d9b19c773d3a8933109084ec0489 | [
"Apache-2.0"
] | null | null | null | src/ecs/packing_utils_v2.py | luojie1024/Huawei_CodeCraft_2018 | f7fc6db09c65d9b19c773d3a8933109084ec0489 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import const_map
import math
import packing_method
# packing_model
pack_function = packing_method.used_func
def pack_api(dataObj, predict_result,target_c_m):
'''
:param dataObj:
:param predict_result:
'''
picker = VmWorker(predict_result)
group = ServerObj(da... | 27.107955 | 90 | 0.505485 |
c1c892c83086b1d88c5c729a393446e22f1c34cf | 1,653 | py | Python | edgedb/lang/schema/basetypes/uuid.py | jonathanslenders/edgedb | 35ad66c4bd525cd9966f8029e5b385e888323f82 | [
"Apache-2.0"
] | 1 | 2021-12-15T09:34:48.000Z | 2021-12-15T09:34:48.000Z | edgedb/lang/schema/basetypes/uuid.py | jonathanslenders/edgedb | 35ad66c4bd525cd9966f8029e5b385e888323f82 | [
"Apache-2.0"
] | null | null | null | edgedb/lang/schema/basetypes/uuid.py | jonathanslenders/edgedb | 35ad66c4bd525cd9966f8029e5b385e888323f82 | [
"Apache-2.0"
] | null | null | null | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2008-present MagicStack Inc. and the EdgeDB 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... | 30.611111 | 76 | 0.696915 |
c1c9379695253067028b6d9dd41b3f7776b4991c | 304 | py | Python | experimental/python_q_wrapper/Q/validate.py | subramon/qlu | 2fb8a2b3636dd11e2dfeae2a6477bd130316da47 | [
"MIT"
] | null | null | null | experimental/python_q_wrapper/Q/validate.py | subramon/qlu | 2fb8a2b3636dd11e2dfeae2a6477bd130316da47 | [
"MIT"
] | 7 | 2020-07-29T16:48:25.000Z | 2020-09-26T23:47:22.000Z | experimental/python_q_wrapper/Q/validate.py | subramon/qlu | 2fb8a2b3636dd11e2dfeae2a6477bd130316da47 | [
"MIT"
] | 1 | 2015-05-14T22:34:13.000Z | 2015-05-14T22:34:13.000Z |
def is_p_vector(val):
"""checks whether given value is of type P_Vector"""
from Q.p_vector import PVector
return isinstance(val, PVector)
def is_p_scalar(val):
"""checks whether given vlaue is of type P_Scalar"""
from Q.p_scalar import PScalar
return isinstance(val, PScalar) | 23.384615 | 56 | 0.710526 |
c1cbab332513a23ee2e04a851cca5c5b17c6cd1c | 9,348 | py | Python | GraphOfDocs_Representation/create.py | imis-lab/book-chapter | 8260a60ec91dd29616eeed80f34bdea00fb73cd7 | [
"MIT"
] | 2 | 2020-09-29T11:40:56.000Z | 2020-09-29T11:41:04.000Z | GraphOfDocs_Representation/create.py | imis-lab/personnel-selection | f04d78c8211f21ab53db4ecdddfc9c78ffc26a36 | [
"MIT"
] | null | null | null | GraphOfDocs_Representation/create.py | imis-lab/personnel-selection | f04d78c8211f21ab53db4ecdddfc9c78ffc26a36 | [
"MIT"
] | null | null | null | """
This script contains functions that
create data in the Neo4j database.
"""
import json
import platform
from pathlib import Path
from gensim.models import Word2Vec
from GraphOfDocs_Representation.utils import (
clear_screen, generate_words
)
# Initialize an empty set of edges.
edges = {}
# Initia... | 39.443038 | 109 | 0.586543 |
c1ce58fcb7e82f1a80b448eadcae66a5b6f084aa | 199 | py | Python | backend/reception/admin.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 4 | 2021-10-06T19:09:12.000Z | 2022-03-28T12:14:42.000Z | backend/reception/admin.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | 2 | 2021-11-30T16:07:05.000Z | 2022-02-17T23:57:00.000Z | backend/reception/admin.py | singsaker/intern | 9376732c6d537f46443ad43afa51e82df2005da8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Semester, Shift, ShiftDate
# Register your models here.
admin.site.register(Semester)
admin.site.register(Shift)
admin.site.register(ShiftDate)
| 22.111111 | 46 | 0.809045 |
c1ce88fe488c659942b6230df65f6d5d692a9484 | 3,720 | py | Python | tests/test_validator.py | MoseleyBioinformaticsLab/mwtab | 1bc1e3715538348b29a5760a9c3184fe04f568a6 | [
"BSD-3-Clause-Clear"
] | 7 | 2018-02-02T07:50:20.000Z | 2021-03-14T22:46:58.000Z | tests/test_validator.py | MoseleyBioinformaticsLab/mwtab | 1bc1e3715538348b29a5760a9c3184fe04f568a6 | [
"BSD-3-Clause-Clear"
] | 2 | 2019-02-14T08:38:54.000Z | 2020-02-19T08:08:02.000Z | tests/test_validator.py | MoseleyBioinformaticsLab/mwtab | 1bc1e3715538348b29a5760a9c3184fe04f568a6 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-10-12T23:38:44.000Z | 2019-10-12T23:38:44.000Z | import pytest
import mwtab
| 43.255814 | 121 | 0.75672 |
c1cf6fd8b07f9923a803e8e52a473b551c59d7c1 | 4,653 | py | Python | bin/star_imports.py | HansPinckaers/impsort.vim | 56e367e3e0ce5d7ea5c800492270282c3a53eda2 | [
"MIT"
] | 40 | 2016-05-31T22:19:42.000Z | 2022-01-08T15:24:23.000Z | bin/star_imports.py | HansPinckaers/impsort.vim | 56e367e3e0ce5d7ea5c800492270282c3a53eda2 | [
"MIT"
] | 35 | 2016-06-06T16:41:49.000Z | 2022-03-16T13:40:56.000Z | bin/star_imports.py | HansPinckaers/impsort.vim | 56e367e3e0ce5d7ea5c800492270282c3a53eda2 | [
"MIT"
] | 10 | 2017-04-14T07:42:06.000Z | 2022-02-24T08:45:39.000Z | #!/usr/bin/env python
"""Very simple AST parser to get star imports. Nothing more.
"""
import os
import ast
import imp
import sys
from importlib import import_module
try:
str_ = unicode # noqa F821
except:
str_ = str
modules_seen = set()
import_names = set()
if __name__ == "__main__":
if len(sys.ar... | 28.2 | 76 | 0.537073 |
c1d03ba215616beda33d94352aa9954fa9534d44 | 3,666 | py | Python | ledger/migrations/0001_initial.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 10 | 2018-05-13T18:01:57.000Z | 2018-12-23T17:11:14.000Z | ledger/migrations/0001_initial.py | moileretour/joatu | 9d18cb58b4280235688e269be6fd2d34b77ccead | [
"MIT"
] | 88 | 2018-05-04T15:33:46.000Z | 2022-03-08T21:09:21.000Z | ledger/migrations/0001_initial.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 7 | 2018-05-08T16:05:06.000Z | 2018-09-13T05:49:05.000Z | # Generated by Django 2.0.3 on 2018-03-24 03:02
from django.db import migrations, models
import django.db.models.deletion
| 50.916667 | 158 | 0.611839 |
c1d2a8d963e6ebb39bdd05cfd3af6f753ebfe074 | 821 | py | Python | cookbook/c09/p06_optarg_decorator.py | Xiao-jiuguan/python3-cookbook | 95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05 | [
"Apache-2.0"
] | 3 | 2018-05-10T01:13:08.000Z | 2018-06-17T12:34:07.000Z | cookbook/c09/p06_optarg_decorator.py | Xiao-jiuguan/python3-cookbook | 95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05 | [
"Apache-2.0"
] | 2 | 2020-09-19T17:10:23.000Z | 2020-10-17T16:43:52.000Z | cookbook/c09/p06_optarg_decorator.py | Xiao-jiuguan/python3-cookbook | 95d5a1d5cb59b5d88e816f6f10eb1e5befc25b05 | [
"Apache-2.0"
] | 1 | 2020-07-20T22:10:31.000Z | 2020-07-20T22:10:31.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic:
Desc :
"""
from functools import wraps, partial
import logging
# Example use
spam()
bbb = partial(aa, a=1,b=2,c=3)
bbb('333') | 19.093023 | 71 | 0.637028 |
c1d364f1b1140a439139d1301d9e7d4e7d3275ad | 482 | py | Python | loader.py | afsara-rahman/Quadruple | 5cc5e0007f16eb75b0368427652f671cbf78f15f | [
"MIT"
] | null | null | null | loader.py | afsara-rahman/Quadruple | 5cc5e0007f16eb75b0368427652f671cbf78f15f | [
"MIT"
] | null | null | null | loader.py | afsara-rahman/Quadruple | 5cc5e0007f16eb75b0368427652f671cbf78f15f | [
"MIT"
] | null | null | null |
#Media loader class.
#Loads images.
import os, sys, pygame
from pygame.locals import *
#Load an image. :)
| 24.1 | 46 | 0.634855 |
c1d522ea9886ba08db71b2edc7bf38ab91008a5b | 26,793 | py | Python | vespa/common/pulse_funcs/bloch_multi.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | null | null | null | vespa/common/pulse_funcs/bloch_multi.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 4 | 2021-04-17T13:58:31.000Z | 2022-01-20T14:19:57.000Z | vespa/common/pulse_funcs/bloch_multi.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 3 | 2021-06-05T16:34:57.000Z | 2022-01-19T16:13:22.000Z | # Python modules
import multiprocessing
import math
# 3rd party modules
import numpy as np
# Our modules
from pylab import *
# GAMMA = 26753.0 - replaced with user defined value
TWOPI = 6.283185
"""
Code for calculating bloch simulations. This code is independent of any GUI
and can be called from the command li... | 33.324627 | 134 | 0.556265 |
c1d8533dc5b50c1147107c9c121f06d5e5bfcd69 | 1,318 | py | Python | spectator/gauge.py | brharrington/spectator-py | 08001c29be458e3b0de24292738441c04c2b3fbc | [
"Apache-2.0"
] | 46 | 2019-02-06T13:20:54.000Z | 2021-12-05T02:33:35.000Z | spectator/gauge.py | brharrington/spectator-py | 08001c29be458e3b0de24292738441c04c2b3fbc | [
"Apache-2.0"
] | 9 | 2018-04-26T22:07:19.000Z | 2022-01-20T00:45:42.000Z | spectator/gauge.py | brharrington/spectator-py | 08001c29be458e3b0de24292738441c04c2b3fbc | [
"Apache-2.0"
] | 18 | 2018-04-26T22:00:00.000Z | 2021-10-21T04:40:42.000Z | from abc import ABCMeta, abstractmethod
from future.utils import with_metaclass
from spectator.atomicnumber import AtomicNumber
from spectator.clock import SystemClock
| 20.920635 | 77 | 0.626707 |
c1d995325cdcad39ba73751aa9937c73ab171ea8 | 2,763 | py | Python | lib/rucio/client/accountlimitclient.py | balrampariyarath/rucio | 8a68017af6b44485a9620566f1afc013838413c1 | [
"Apache-2.0"
] | 1 | 2017-08-07T13:34:55.000Z | 2017-08-07T13:34:55.000Z | lib/rucio/client/accountlimitclient.py | balrampariyarath/rucio | 8a68017af6b44485a9620566f1afc013838413c1 | [
"Apache-2.0"
] | null | null | null | lib/rucio/client/accountlimitclient.py | balrampariyarath/rucio | 8a68017af6b44485a9620566f1afc013838413c1 | [
"Apache-2.0"
] | null | null | null | # Copyright European Organization for Nuclear Research (CERN)
#
# 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
#
# Authors:
# - Mario Lassnig, <mario... | 37.337838 | 154 | 0.674267 |
c1dae57fa4e3464ff7fae0220eed527133197673 | 5,146 | py | Python | functions.py | Project3-Group10/stocker-eyes | 73fd410091348a4a358681a554b80e7c1c47b1ab | [
"FTL"
] | 1 | 2021-04-17T07:13:39.000Z | 2021-04-17T07:13:39.000Z | functions.py | Project3-Group10/stocker-eyes | 73fd410091348a4a358681a554b80e7c1c47b1ab | [
"FTL"
] | 33 | 2021-04-14T13:56:07.000Z | 2021-05-05T04:43:10.000Z | functions.py | Project3-Group10/stocker-eyes | 73fd410091348a4a358681a554b80e7c1c47b1ab | [
"FTL"
] | 1 | 2021-10-14T00:44:00.000Z | 2021-10-14T00:44:00.000Z | import os
from dotenv import load_dotenv, find_dotenv
import requests
import smtplib, ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import requests_cache
load_dotenv(find_dotenv())
ALPHA_API_KEY = os.getenv('ALPHA_API_KEY')
NEWS_API = os.getenv('GET_NEWS_KEY')
EMAIL_PASSWORD ... | 37.838235 | 136 | 0.706374 |
c1dca4278a150c965a6fa445d1242b2411276737 | 47,762 | py | Python | ice/parser/parser.py | i2y/ice | db9abf04fbd0b256f13507900a4e5129e65b71a0 | [
"MIT"
] | null | null | null | ice/parser/parser.py | i2y/ice | db9abf04fbd0b256f13507900a4e5129e65b71a0 | [
"MIT"
] | null | null | null | ice/parser/parser.py | i2y/ice | db9abf04fbd0b256f13507900a4e5129e65b71a0 | [
"MIT"
] | null | null | null | import warnings
from collections import Sequence
import rply
from rply import ParserGenerator
from ice import __version__
from . import lexer
name_seq = 0
pg = ParserGenerator(['NUMBER', 'OPPLUS', 'OPMINUS', 'OPTIMES', 'OPDIV', 'OPLEQ', 'OPGEQ', 'OPEQ', 'OPNEQ',
'OPLT', 'OPGT', 'OPBITOR... | 25.859231 | 116 | 0.653825 |
c1dd6874deb6cbc28514ef2ec2c7c714f60a5adc | 1,282 | py | Python | poetry/apps/corpus/spiders/strofa.py | IlyaGusev/PoetryCorpus | 7a5f70e6a46b4717f7c903671f9a6a917aee6162 | [
"Apache-2.0"
] | 45 | 2016-10-24T13:13:55.000Z | 2022-01-21T05:39:06.000Z | poetry/apps/corpus/spiders/strofa.py | IlyaGusev/PoetryCorpus | 7a5f70e6a46b4717f7c903671f9a6a917aee6162 | [
"Apache-2.0"
] | 23 | 2017-01-18T17:34:25.000Z | 2017-11-01T17:39:02.000Z | poetry/apps/corpus/spiders/strofa.py | IlyaGusev/PoetryCorpus | 7a5f70e6a46b4717f7c903671f9a6a917aee6162 | [
"Apache-2.0"
] | 7 | 2017-08-25T03:08:08.000Z | 2020-05-22T22:55:58.000Z | import scrapy
import re
| 33.736842 | 80 | 0.569423 |
c1e179fd88680caa02ec8f42737513b72ccb61e5 | 1,167 | py | Python | FindImmo/admin.py | sdaouda/immoniger | 85b4f23fed6e73d8df8700103723725f267e31d8 | [
"Apache-2.0"
] | null | null | null | FindImmo/admin.py | sdaouda/immoniger | 85b4f23fed6e73d8df8700103723725f267e31d8 | [
"Apache-2.0"
] | 6 | 2021-03-19T00:41:08.000Z | 2022-03-11T23:46:42.000Z | FindImmo/admin.py | sdaouda/immoniger | 85b4f23fed6e73d8df8700103723725f267e31d8 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Category, Product,Project, Vendor,Zone,Localite,TypeProject,Service,TypeService,Commodite
admin.site.register(Category, CategoryAdmin)
admin.site.register(Commodite, CommoditeAdmin)
admin.site.register(Product, ProductAdmin)
admin.site.register(Vendor, VendorAdmin)
a... | 36.46875 | 109 | 0.718937 |
c1e24833c06f938f20d6edff45d2cb02a8374976 | 145 | py | Python | real_graph_select.py | Beaconsyh08/Real_Graph_Select | a164e76102ecd5aa78763050fd05029acb0b4993 | [
"MIT"
] | null | null | null | real_graph_select.py | Beaconsyh08/Real_Graph_Select | a164e76102ecd5aa78763050fd05029acb0b4993 | [
"MIT"
] | null | null | null | real_graph_select.py | Beaconsyh08/Real_Graph_Select | a164e76102ecd5aa78763050fd05029acb0b4993 | [
"MIT"
] | null | null | null | from app import app, db
from app.models import Poem
| 18.125 | 35 | 0.731034 |
c1e31e1fa25e6136930d59b414288f8412c884ca | 3,194 | py | Python | 04 - Classes-inheritance-oops/40-classes-numeric-unary-magic-methods.py | python-demo-codes/basics | 2a151bbff4b528cefd52978829c632fd087c8f20 | [
"DOC"
] | 2 | 2019-08-23T06:05:55.000Z | 2019-08-26T03:56:07.000Z | 04 - Classes-inheritance-oops/40-classes-numeric-unary-magic-methods.py | python-lang-codes/basics | 2a151bbff4b528cefd52978829c632fd087c8f20 | [
"DOC"
] | null | null | null | 04 - Classes-inheritance-oops/40-classes-numeric-unary-magic-methods.py | python-lang-codes/basics | 2a151bbff4b528cefd52978829c632fd087c8f20 | [
"DOC"
] | 4 | 2020-10-01T07:16:07.000Z | 2021-07-17T07:55:08.000Z | # HEAD
# Classes - Magic Methods - Unary Numeric Magic Methods
# DESCRIPTION
# Describes the magic methods of classes
# pos, neg, abs, invert
# round, floor, ceil, trunc
# RESOURCES
#
# https://rszalski.github.io/magicmethods/
# Now would be a good time to note that you don't have to define
# ever... | 47.671642 | 428 | 0.715404 |
c1e580496376c92672392fa607ae6aa0fdbdf110 | 2,446 | py | Python | data/local_news_data/crawler/spmiddlewares/fake404.py | SSK-14/Covid19-Search-Engine | 2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6 | [
"Apache-2.0"
] | 1 | 2020-06-14T16:52:55.000Z | 2020-06-14T16:52:55.000Z | data/local_news_data/crawler/spmiddlewares/fake404.py | SSK-14/Covid19-Search-Engine | 2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6 | [
"Apache-2.0"
] | 1 | 2020-05-06T14:28:10.000Z | 2020-05-06T14:28:10.000Z | data/local_news_data/crawler/spmiddlewares/fake404.py | SSK-14/Covid19-Search-Engine | 2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This script was borrowed from the RISJbot repository (https://github.com/pmyteh/RISJbot)
All credit goes to original author
"""
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
# from scrapy_deltaf... | 34.450704 | 88 | 0.647588 |
c1e6cca7b165fead74a5bacc1f44b552bb2b6d04 | 954 | py | Python | tests/test_import.py | sandeep937/dvc | b3df249c9f9ae0ff2b54f58845d7c2479be86232 | [
"Apache-2.0"
] | null | null | null | tests/test_import.py | sandeep937/dvc | b3df249c9f9ae0ff2b54f58845d7c2479be86232 | [
"Apache-2.0"
] | null | null | null | tests/test_import.py | sandeep937/dvc | b3df249c9f9ae0ff2b54f58845d7c2479be86232 | [
"Apache-2.0"
] | null | null | null | import os
from uuid import uuid4
from dvc.main import main
from tests.basic_env import TestDvc
| 26.5 | 74 | 0.619497 |
c1e77797557582d8cf0f019777241dcacc17a322 | 1,620 | py | Python | wapps/factories/identity.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 7 | 2018-01-17T20:26:59.000Z | 2022-03-23T08:12:00.000Z | wapps/factories/identity.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 511 | 2017-10-21T17:59:50.000Z | 2022-03-28T18:49:21.000Z | wapps/factories/identity.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 2 | 2018-05-02T08:27:42.000Z | 2020-08-17T18:42:49.000Z | import factory
from wapps.models import IdentitySettings
from .image import ImageFactory, SvgFileField
from .site import SiteFactory
from .tag import TagFactory
| 30.566038 | 57 | 0.661728 |
c1e80041ebc0d75ee3fd1571a9a3316026d87a13 | 4,405 | py | Python | app/views/recommend.py | HunterLC/FARSystem | a8b91fcd1914e84dd2ec2b8321c51627779bb89b | [
"Apache-2.0"
] | null | null | null | app/views/recommend.py | HunterLC/FARSystem | a8b91fcd1914e84dd2ec2b8321c51627779bb89b | [
"Apache-2.0"
] | null | null | null | app/views/recommend.py | HunterLC/FARSystem | a8b91fcd1914e84dd2ec2b8321c51627779bb89b | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint, redirect, url_for
from flask import request
from flask import render_template
from flask import session
from sqlalchemy import and_
from .. import db
from app.models import Actors, Users, Likes
from ..recommend import Recommend
recommend_blue = Blueprint('recommend', __name__)
| 40.787037 | 115 | 0.638138 |
c1ea027732ae7e7ee9cb06e19892037f93c8cab4 | 1,946 | py | Python | neutron/tests/unit/agent/ovsdb/native/test_connection.py | SUSE-Cloud/neutron | 879665d3041e74df4b287b4c18b88288850cf11c | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/agent/ovsdb/native/test_connection.py | SUSE-Cloud/neutron | 879665d3041e74df4b287b4c18b88288850cf11c | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/agent/ovsdb/native/test_connection.py | SUSE-Cloud/neutron | 879665d3041e74df4b287b4c18b88288850cf11c | [
"Apache-2.0"
] | null | null | null | # Copyright 2015, Red Hat, 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 agr... | 43.244444 | 78 | 0.658787 |
c1ed06289f200a78cf33c1b5fc0ea50a0834297a | 663 | py | Python | ml-agents-envs1/mlagents/envs/communicator_objects/__init__.py | MikeWise2718/ml-agents-mod | c8393b7973be329b79cda70a7140d734205013f9 | [
"Apache-2.0"
] | null | null | null | ml-agents-envs1/mlagents/envs/communicator_objects/__init__.py | MikeWise2718/ml-agents-mod | c8393b7973be329b79cda70a7140d734205013f9 | [
"Apache-2.0"
] | null | null | null | ml-agents-envs1/mlagents/envs/communicator_objects/__init__.py | MikeWise2718/ml-agents-mod | c8393b7973be329b79cda70a7140d734205013f9 | [
"Apache-2.0"
] | null | null | null | from .agent_action_pb2 import *
from .agent_info_pb2 import *
from .brain_parameters_pb2 import *
from .command_pb2 import *
from .compressed_observation_pb2 import *
from .custom_action_pb2 import *
from .custom_observation_pb2 import *
from .custom_reset_parameters_pb2 import *
from .demonstration_meta_pb2 im... | 34.894737 | 50 | 0.809955 |
c1ed087977b1a3a244c379b67768158ed7b31bba | 3,031 | py | Python | setup.py | satvidh/batch-scoring | 13da21e813da3e757526b9c51f7dd1fe2b224603 | [
"BSD-3-Clause"
] | null | null | null | setup.py | satvidh/batch-scoring | 13da21e813da3e757526b9c51f7dd1fe2b224603 | [
"BSD-3-Clause"
] | null | null | null | setup.py | satvidh/batch-scoring | 13da21e813da3e757526b9c51f7dd1fe2b224603 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import codecs
import os.path
import re
from setuptools import setup, find_packages
extra = {}
install_requires = read_requirements_file('requirements-base.txt')
# Since futures 3.2 [1], the package enforces to be installed only in Python 2
# environments because it's basically a bac... | 34.83908 | 109 | 0.709997 |
c1ed569418f14a7b151160b01f80064045a30cb9 | 407 | py | Python | evap/results/urls.py | PFischbeck/EvaP | 33c4f07186966e0ef2636174aec1e6f330a91226 | [
"MIT"
] | null | null | null | evap/results/urls.py | PFischbeck/EvaP | 33c4f07186966e0ef2636174aec1e6f330a91226 | [
"MIT"
] | null | null | null | evap/results/urls.py | PFischbeck/EvaP | 33c4f07186966e0ef2636174aec1e6f330a91226 | [
"MIT"
] | null | null | null | from django.urls import path
from evap.results import views
app_name = "results"
urlpatterns = [
path("", views.index, name="index"),
path("semester/<int:semester_id>/evaluation/<int:evaluation_id>", views.evaluation_detail, name="evaluation_detail"),
path("evaluation/<int:evaluation_id>/text_answers_ex... | 31.307692 | 140 | 0.766585 |
c1eef54b8313d4e6d9e3bc6391a17c5d907262af | 2,513 | py | Python | Backend/home/home.py | davematias/PortfolioBackendV2 | 8fedb0cae038dda4d5c06cd2b24e17dcfee614ce | [
"MIT"
] | null | null | null | Backend/home/home.py | davematias/PortfolioBackendV2 | 8fedb0cae038dda4d5c06cd2b24e17dcfee614ce | [
"MIT"
] | 9 | 2020-09-07T07:14:00.000Z | 2022-02-18T09:55:16.000Z | Backend/home/home.py | davematias/PortfolioV2 | 8fedb0cae038dda4d5c06cd2b24e17dcfee614ce | [
"MIT"
] | null | null | null | import os
import smtplib, ssl
from email.message import EmailMessage
from typing import Tuple
from flask import Blueprint, jsonify, request
from flask_jwt_extended import jwt_required
from utils import dynamo
site_blueprint = Blueprint('site', __name__,)
def __getProfile() -> dict:
table = dynamo.getTable(os.get... | 28.556818 | 150 | 0.653004 |
c1ef6cd665d8c946e334fa3d830567b1386f5e61 | 312 | py | Python | src/helper/helper.py | JosephSalomon/GN-Core | 9baf2c49bb176a4c9ffc76ab9feb823f7ca7bd20 | [
"MIT"
] | null | null | null | src/helper/helper.py | JosephSalomon/GN-Core | 9baf2c49bb176a4c9ffc76ab9feb823f7ca7bd20 | [
"MIT"
] | null | null | null | src/helper/helper.py | JosephSalomon/GN-Core | 9baf2c49bb176a4c9ffc76ab9feb823f7ca7bd20 | [
"MIT"
] | null | null | null | ###***********************************###
'''
Grade Notifier
File: helper.py
Author: Ehud Adler
Core Maintainers: Ehud Adler, Akiva Sherman,
Yehuda Moskovits
Copyright: Copyright 2019, Ehud Adler
License: MIT
'''
###***********************************###
| 20.8 | 44 | 0.541667 |
c1eff3a6449550c9247cbee5b8aedcd969ea87e9 | 1,845 | py | Python | src/nmrezman/phase01/train/train_findings.py | mozzilab/NM_Radiology_AI | 8df83c14e88534142f43411e33913682eab26582 | [
"MIT"
] | 1 | 2022-03-17T12:28:12.000Z | 2022-03-17T12:28:12.000Z | src/nmrezman/phase01/train/train_findings.py | mozzilab/NM_Radiology_AI | 8df83c14e88534142f43411e33913682eab26582 | [
"MIT"
] | null | null | null | src/nmrezman/phase01/train/train_findings.py | mozzilab/NM_Radiology_AI | 8df83c14e88534142f43411e33913682eab26582 | [
"MIT"
] | null | null | null | # %%
# nmrezman
from .general import train_findings_model
# Misc
import argparse
# %%
desc_str = "Train Phase 01 Findings vs No Findings Model"
if __name__ == "__main__":
# Parse the arguments
parser = argparse.ArgumentParser(desc_str, parents=[get_args_parser()])
args = parser.parse_args()
# T... | 26.73913 | 135 | 0.645528 |
c1f0856e892c8089aea911b5d6e0ad351d8e20d8 | 1,474 | py | Python | setup.py | olricson/remotefreebox | 16e2a42ed7cfcfd1ab303184280564eeace77919 | [
"BSD-2-Clause"
] | 14 | 2015-01-04T22:14:07.000Z | 2020-11-11T18:53:20.000Z | setup.py | olricson/remotefreebox | 16e2a42ed7cfcfd1ab303184280564eeace77919 | [
"BSD-2-Clause"
] | 3 | 2017-11-08T14:28:32.000Z | 2021-08-30T21:58:04.000Z | setup.py | olricson/remotefreebox | 16e2a42ed7cfcfd1ab303184280564eeace77919 | [
"BSD-2-Clause"
] | 7 | 2015-03-17T12:43:09.000Z | 2020-05-10T23:47:35.000Z | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
... | 29.48 | 72 | 0.677069 |
c1f1080c356b5d730e19c3e67bf76fb079c62c16 | 2,237 | py | Python | model_main.py | yuxuan1995liu/darkflowyolo_detection | a7807e9b85833e3f877d46bb60e8fa7d0596a10b | [
"MIT"
] | null | null | null | model_main.py | yuxuan1995liu/darkflowyolo_detection | a7807e9b85833e3f877d46bb60e8fa7d0596a10b | [
"MIT"
] | null | null | null | model_main.py | yuxuan1995liu/darkflowyolo_detection | a7807e9b85833e3f877d46bb60e8fa7d0596a10b | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from darkflow.net.build import TFNet
import cv2
import pprint as pp
import os
# options = {"model": "cfg/custum_yolo.cfg",
# "batch": 8,
# "load": "bin/yolo.weights",
# "epoch": 3,
# "trainer":"adam",
# "gpu": 1... | 28.679487 | 136 | 0.599911 |
c1f245590fbe23acc3fd6f32e6491551e7d43e6a | 7,275 | py | Python | train.py | angelorodem/tensorflow2-char-rnn | f28503c61de62eade9b477bf13573988fb3807de | [
"MIT"
] | null | null | null | train.py | angelorodem/tensorflow2-char-rnn | f28503c61de62eade9b477bf13573988fb3807de | [
"MIT"
] | null | null | null | train.py | angelorodem/tensorflow2-char-rnn | f28503c61de62eade9b477bf13573988fb3807de | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import argparse
import pickle
from colorama import init, Fore
init(autoreset=True)
parser = argparse.ArgumentParser(description='List of avaible commands.')
parser.add_argument('--data_path',dest="path", type=str, nargs='?',
... | 33.680556 | 101 | 0.677938 |
c1f29d841c4f62a411df976675d972c35cfa098c | 35 | py | Python | python/testData/completion/fStringLikeCompletionNotAvailableInByteLiterals.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/fStringLikeCompletionNotAvailableInByteLiterals.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 1 | 2020-07-30T19:04:47.000Z | 2020-07-30T19:04:47.000Z | python/testData/completion/fStringLikeCompletionNotAvailableInByteLiterals.py | bradleesand/intellij-community | 750ff9c10333c9c1278c00dbe8d88c877b1b9749 | [
"Apache-2.0"
] | 1 | 2020-10-15T05:56:42.000Z | 2020-10-15T05:56:42.000Z | my_expr = 42
s = b'foo{my_e<caret>' | 17.5 | 22 | 0.657143 |
c1f2c8a367fb5a9ac50a001ff98f24d08a3663e9 | 1,023 | py | Python | spark-ml-workshop/SparkCustomMLExample/src/main/python/train.py | Code360In/spark-code-examples | 181c9906d32571ba6138e63040edfcb4c74ef4bf | [
"MIT"
] | null | null | null | spark-ml-workshop/SparkCustomMLExample/src/main/python/train.py | Code360In/spark-code-examples | 181c9906d32571ba6138e63040edfcb4c74ef4bf | [
"MIT"
] | null | null | null | spark-ml-workshop/SparkCustomMLExample/src/main/python/train.py | Code360In/spark-code-examples | 181c9906d32571ba6138e63040edfcb4c74ef4bf | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pandas as pd
import pickle
import sys
import base64
import re
from sklearn.linear_model import LinearRegression
# Here we keep input data to Dataframe constructor
rows = []
for line in sys.stdin:
line = line.replace('[', '')
line = line.replace(']', '')
line = line.replace('\n'... | 23.790698 | 72 | 0.654936 |
c1f2d237f1126654af0b97b1caec7c54058b92fe | 15,956 | py | Python | models.py | Eudorajab1/jasmin_smsc_gui | c0a240e61791e167f23c39eb4f2663e27294af0d | [
"MIT"
] | 9 | 2021-04-29T19:37:34.000Z | 2022-03-28T23:44:54.000Z | models.py | Eudorajab1/jasmin_smsc_gui | c0a240e61791e167f23c39eb4f2663e27294af0d | [
"MIT"
] | 1 | 2022-03-28T23:46:35.000Z | 2022-03-28T23:46:35.000Z | models.py | Eudorajab1/jasmin_smsc_gui | c0a240e61791e167f23c39eb4f2663e27294af0d | [
"MIT"
] | 2 | 2021-11-02T08:57:09.000Z | 2022-02-01T14:04:57.000Z | """
This file defines the database models
"""
from .common import db, Field
from pydal.validators import *
from yatl.helpers import *
from py4web.utils.form import Form, FormStyleBulma
MTROUTE_TYPES = ('DefaultRoute', 'StaticMTRoute', 'RandomRoundrobinMTRoute','FailoverMTRoute')
MOROUTE_TYPES = ('DefaultRoute', 'Stat... | 109.287671 | 327 | 0.675859 |
c1f4638cedf017f2f1d8ccd8e4707001e8f8c9ff | 27 | py | Python | Python POO/main.py | lucasjlgc/Python-POO | 56c98e7abb47a0268396f1981e58a0a2441db4fe | [
"MIT"
] | null | null | null | Python POO/main.py | lucasjlgc/Python-POO | 56c98e7abb47a0268396f1981e58a0a2441db4fe | [
"MIT"
] | null | null | null | Python POO/main.py | lucasjlgc/Python-POO | 56c98e7abb47a0268396f1981e58a0a2441db4fe | [
"MIT"
] | null | null | null | from pessoa import Pessoa
| 9 | 25 | 0.814815 |
c1f4b67816e30d74cbc32d55dadcfb14a56793f0 | 1,043 | py | Python | concurrent/futures/config.py | mikhtonyuk/rxpython | cfdd38225a3b7960bd475c6a4e380f3dd6a6a0fe | [
"MIT"
] | 2 | 2015-11-25T15:56:04.000Z | 2018-11-19T13:31:49.000Z | concurrent/futures/config.py | sergiimk/rxpython | cfdd38225a3b7960bd475c6a4e380f3dd6a6a0fe | [
"MIT"
] | null | null | null | concurrent/futures/config.py | sergiimk/rxpython | cfdd38225a3b7960bd475c6a4e380f3dd6a6a0fe | [
"MIT"
] | null | null | null | import traceback
import logging
logger = logging.getLogger(__package__)
| 28.972222 | 71 | 0.684564 |
c1f564366e13f51ec035c82bf8d6c69e97064976 | 292 | py | Python | mytest.py | chalendony/duden | bf455452ed68b4a7f39b45fec05c7236afef36e1 | [
"MIT"
] | null | null | null | mytest.py | chalendony/duden | bf455452ed68b4a7f39b45fec05c7236afef36e1 | [
"MIT"
] | null | null | null | mytest.py | chalendony/duden | bf455452ed68b4a7f39b45fec05c7236afef36e1 | [
"MIT"
] | null | null | null | import duden
if __name__ == '__main__':
main()
| 16.222222 | 49 | 0.660959 |
c1f5fa22f45bcd7c67412cd5116711d5de10540b | 1,275 | py | Python | setup.py | gocept/gocept.download | 205fc9d2f6c9dabc3081897ebb7cbaac31737f29 | [
"ZPL-2.1"
] | 1 | 2020-07-17T10:05:23.000Z | 2020-07-17T10:05:23.000Z | setup.py | gocept/gocept.download | 205fc9d2f6c9dabc3081897ebb7cbaac31737f29 | [
"ZPL-2.1"
] | null | null | null | setup.py | gocept/gocept.download | 205fc9d2f6c9dabc3081897ebb7cbaac31737f29 | [
"ZPL-2.1"
] | null | null | null | """zc.buildout recipe for downloading and extracting an archive."""
from setuptools import setup, find_packages
name = "gocept.download"
classifiers = [
"Environment :: Console",
"Environment :: Plugins",
"Framework :: Buildout",
"Intended Audience :: Developers",
"Intended Audience :: System Ad... | 31.875 | 70 | 0.644706 |
c1f67abeeac600fa8d3d5268d75de3463965e9bb | 144 | py | Python | 500.py | TebbaaX/DownTime-Score | 204f1f69e6ad46c36cc7d3a56483f4e51bf6c29b | [
"MIT"
] | 4 | 2021-05-08T00:13:47.000Z | 2021-05-10T00:47:00.000Z | 500.py | TebbaaX/DownTime-Score | 204f1f69e6ad46c36cc7d3a56483f4e51bf6c29b | [
"MIT"
] | 1,449 | 2021-10-12T20:20:57.000Z | 2022-03-31T11:40:41.000Z | 500.py | TebbaaX/DownTime-Score | 204f1f69e6ad46c36cc7d3a56483f4e51bf6c29b | [
"MIT"
] | 1 | 2021-09-15T21:41:54.000Z | 2021-09-15T21:41:54.000Z | import time
print ("this is a 500 years python dummy file")
print ("see you after 500 years")
time.sleep(15768000000)
print ("Time Travel!") | 28.8 | 48 | 0.722222 |
c1f7f53e370043972065de6da7367e0c0230a78e | 489 | py | Python | pyleecan/Methods/Slot/Slot/comp_radius_mid_active.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | pyleecan/Methods/Slot/Slot/comp_radius_mid_active.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | pyleecan/Methods/Slot/Slot/comp_radius_mid_active.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | # -*- coding: utf-8 -*-
def comp_radius_mid_active(self):
"""Compute the radius at the middle of the active part of the slot
Parameters
----------
self : Slot
A Slot object
Returns
-------
Rmw: float
Mid active radius [m]
"""
Rbo = self.get_Rbo()
Hslot = sel... | 18.807692 | 70 | 0.556237 |
c1f7fea5aff1bf06616d7084eb6453de5655b0d4 | 9,044 | py | Python | lib/roi_data_rel/minibatch_rel.py | champon1020/TRACE | 8ed0aed87e153af66f02502887a4de0d39867209 | [
"MIT"
] | 34 | 2021-08-19T05:59:58.000Z | 2022-03-26T09:26:54.000Z | lib/roi_data_rel/minibatch_rel.py | champon1020/TRACE | 8ed0aed87e153af66f02502887a4de0d39867209 | [
"MIT"
] | 8 | 2021-09-15T05:27:23.000Z | 2022-02-27T12:38:03.000Z | lib/roi_data_rel/minibatch_rel.py | champon1020/TRACE | 8ed0aed87e153af66f02502887a4de0d39867209 | [
"MIT"
] | 6 | 2021-09-16T10:51:38.000Z | 2022-03-05T22:48:54.000Z | # Adapted by Ji Zhang in 2019
#
# Based on Detectron.pytorch/lib/roi_data/minibatch.py written by Roy Tseng
import numpy as np
import cv2
import os
from core.config import cfg
import utils.blob as blob_utils
import roi_data.rpn
def get_minibatch_blob_names(is_training=True):
"""Return blob names in the order in... | 39.321739 | 148 | 0.604821 |
c1f8caf0b7bccc8a2071b61868b5c37f051d87b7 | 1,825 | py | Python | src/enamlnative/android/android_adapter.py | codelv/enaml-native | 04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc | [
"MIT"
] | 237 | 2017-09-15T19:31:45.000Z | 2022-03-17T04:22:20.000Z | src/enamlnative/android/android_adapter.py | codelv/enaml-native | 04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc | [
"MIT"
] | 74 | 2017-09-06T20:16:41.000Z | 2022-03-05T13:34:35.000Z | src/enamlnative/android/android_adapter.py | codelv/enaml-native | 04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc | [
"MIT"
] | 22 | 2017-09-15T19:32:11.000Z | 2022-03-17T18:33:39.000Z | """
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on May 20, 2017
@author: jrm
"""
from atom.api import Typed, set_default
from .android_view_group import AndroidViewGroup, ViewGroup
from .bridge i... | 34.433962 | 73 | 0.708493 |
c1f984744cc0b49bb53cce60881571379454c3b2 | 693 | py | Python | instagram_api/interfaces/media/constraints.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/interfaces/media/constraints.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/interfaces/media/constraints.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod, abstractproperty
__all__ = ['ConstraintsInterface']
| 22.354839 | 59 | 0.686869 |
c1f9b7556a7c50bccced5f81f9d0073842096cd3 | 21,532 | py | Python | forms/models.py | CodeForAfrica/gmmp | d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf | [
"Apache-2.0"
] | 4 | 2020-01-05T09:14:19.000Z | 2022-02-17T03:22:09.000Z | forms/models.py | CodeForAfrica/gmmp | d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf | [
"Apache-2.0"
] | 68 | 2019-12-23T02:19:55.000Z | 2021-04-23T06:13:36.000Z | forms/models.py | CodeForAfrica/gmmp | d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf | [
"Apache-2.0"
] | 2 | 2020-11-07T12:23:21.000Z | 2021-11-07T18:21:31.000Z | from collections import OrderedDict
from django.db import models
from django.utils.translation import gettext_lazy as _
from forms.modelutils import *
# The following necessitated for some of the channges
# https://code.djangoproject.com/ticket/19539 necessitated removal of __metaclass__
# get_fields_with_model wa... | 51.635492 | 454 | 0.711081 |
c1fa13883070fa0500e4ad32b4f9fe914e19917d | 21,559 | py | Python | tola/views.py | meetdatastory/Activity-CE | 2692e591f08cea7c869c045577b3d9e20d3ed335 | [
"Apache-2.0"
] | null | null | null | tola/views.py | meetdatastory/Activity-CE | 2692e591f08cea7c869c045577b3d9e20d3ed335 | [
"Apache-2.0"
] | null | null | null | tola/views.py | meetdatastory/Activity-CE | 2692e591f08cea7c869c045577b3d9e20d3ed335 | [
"Apache-2.0"
] | null | null | null | from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.list import ListView
from tola.forms import RegistrationForm, NewUserRegistrationForm, NewTolaUserRegistrationForm, BookmarkForm
from django.contrib import messages
from django.contrib.auth import logout
from django.http ... | 54.304786 | 353 | 0.689271 |
c1fac333c6571737c3ec2918f3ba6fbd833a009a | 1,163 | py | Python | ct8_refresh/loggers.py | jakubkazimierczak/ct8_refresh | 252f1a80a64a6a249cf4d014d19b96291e4e5ad1 | [
"Apache-2.0"
] | null | null | null | ct8_refresh/loggers.py | jakubkazimierczak/ct8_refresh | 252f1a80a64a6a249cf4d014d19b96291e4e5ad1 | [
"Apache-2.0"
] | 3 | 2021-01-27T20:46:37.000Z | 2021-04-05T23:03:15.000Z | ct8_refresh/loggers.py | jakubkazimierczak/ct8_refresh | 252f1a80a64a6a249cf4d014d19b96291e4e5ad1 | [
"Apache-2.0"
] | null | null | null | import sys
from loguru import logger
from . import LOG_PATH
| 29.820513 | 107 | 0.576096 |
c1facf349310b75831421e5671ac8c159795b995 | 60 | py | Python | thinc/neural/_classes/feed_forward.py | alephmelo/thinc | 5c4340eddbe1f21649f773bc68b4b0600cf414ba | [
"MIT"
] | 1 | 2018-10-30T07:19:27.000Z | 2018-10-30T07:19:27.000Z | thinc/neural/_classes/feed_forward.py | alephmelo/thinc | 5c4340eddbe1f21649f773bc68b4b0600cf414ba | [
"MIT"
] | 4 | 2020-07-26T02:10:42.000Z | 2021-03-31T18:48:58.000Z | thinc/neural/_classes/feed_forward.py | alephmelo/thinc | 5c4340eddbe1f21649f773bc68b4b0600cf414ba | [
"MIT"
] | 1 | 2020-11-18T06:18:15.000Z | 2020-11-18T06:18:15.000Z | from ...api import FeedForward # For backward compatibility
| 30 | 59 | 0.8 |
c1fce5796c28ca9136dea1e831dd68b25a314665 | 2,525 | py | Python | examples/low_rank_psd_matrix_approximation.py | captain-pool/pymanopt | df94ab9e03b5fa3041668defe995d93b8715a6d7 | [
"BSD-3-Clause"
] | null | null | null | examples/low_rank_psd_matrix_approximation.py | captain-pool/pymanopt | df94ab9e03b5fa3041668defe995d93b8715a6d7 | [
"BSD-3-Clause"
] | null | null | null | examples/low_rank_psd_matrix_approximation.py | captain-pool/pymanopt | df94ab9e03b5fa3041668defe995d93b8715a6d7 | [
"BSD-3-Clause"
] | null | null | null | import autograd.numpy as np
import tensorflow as tf
import torch
from numpy import linalg as la
from numpy import random as rnd
import pymanopt
from examples._tools import ExampleRunner
from pymanopt.manifolds import PSDFixedRank
from pymanopt.solvers import TrustRegions
SUPPORTED_BACKENDS = ("Autograd", "Callable",... | 27.747253 | 77 | 0.640396 |
c1ff13cd5a2a14922d1493e6df72e80cbcc12e44 | 534 | py | Python | saefportal/datasets/migrations/0020_auto_20210901_0612.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/datasets/migrations/0020_auto_20210901_0612.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/datasets/migrations/0020_auto_20210901_0612.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | 1 | 2020-12-16T15:02:52.000Z | 2020-12-16T15:02:52.000Z | # Generated by Django 3.1.6 on 2021-09-01 06:12
from django.db import migrations
| 22.25 | 48 | 0.580524 |
de01c9c6a2cc6004b6daacdf13757b0791068e89 | 343 | py | Python | cartes/__init__.py | xoolive/cartes | a9e8144e8e40eec66e2a21e96c46d09ad4f63853 | [
"MIT"
] | 20 | 2021-01-04T21:23:48.000Z | 2021-12-14T15:28:15.000Z | cartes/__init__.py | xoolive/cartes | a9e8144e8e40eec66e2a21e96c46d09ad4f63853 | [
"MIT"
] | null | null | null | cartes/__init__.py | xoolive/cartes | a9e8144e8e40eec66e2a21e96c46d09ad4f63853 | [
"MIT"
] | null | null | null | import warnings
import importlib_metadata
from tqdm import TqdmExperimentalWarning
# Monkey-patches GeoAxesSubplot for .set_extent()
from .utils import geoaxes # noqa: F401
__version__ = importlib_metadata.version("cartes")
# Silence this warning about autonotebook mode for tqdm
warnings.simplefilter("ignore", Tq... | 24.5 | 56 | 0.822157 |
de03ad9d5c100d9cf2fd590826d8994ef9cf5a4e | 3,730 | py | Python | src/experiments/sparse_experiments_bipartite_auc.py | ChristianDjurhuus/RAA | b2eb1db527bcb09f35598c2bbf8dff2689ad599b | [
"MIT"
] | 1 | 2022-03-16T16:09:22.000Z | 2022-03-16T16:09:22.000Z | src/experiments/sparse_experiments_bipartite_auc.py | ChristianDjurhuus/RAA | b2eb1db527bcb09f35598c2bbf8dff2689ad599b | [
"MIT"
] | null | null | null | src/experiments/sparse_experiments_bipartite_auc.py | ChristianDjurhuus/RAA | b2eb1db527bcb09f35598c2bbf8dff2689ad599b | [
"MIT"
] | 1 | 2022-02-18T17:10:27.000Z | 2022-02-18T17:10:27.000Z | from src.models.train_DRRAA_module import DRRAA
from src.models.train_LSM_module import LSM
from src.models.train_BDRRAA_module import BDRRAA
import torch
import matplotlib.pyplot as plt
import numpy as np
import json
import scipy.stats as st
import matplotlib as mpl
if __name__ == "__main__":
datasets = ["drug_ge... | 41.910112 | 176 | 0.617158 |
de03ce4debb8154861870509c00893c2a07d55d2 | 1,531 | py | Python | Tensorflow/XOR_multilayer_nn.py | ram1993/neuralnetwork | ef98557b07d2c08bbfb8610bb622d58ac5100ad1 | [
"MIT"
] | null | null | null | Tensorflow/XOR_multilayer_nn.py | ram1993/neuralnetwork | ef98557b07d2c08bbfb8610bb622d58ac5100ad1 | [
"MIT"
] | null | null | null | Tensorflow/XOR_multilayer_nn.py | ram1993/neuralnetwork | ef98557b07d2c08bbfb8610bb622d58ac5100ad1 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
tf.set_random_seed(234)
x_data = np.array([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=np.float32)
y_data = np.array([[0], [1], [1], [0]], dtype=np.float32)
x = tf.placeholder(tf.float32, shape = [None,2])
y = tf.placeholder(tf.float32, shape=[None, 1])
w1 = tf.Variable(tf.rando... | 28.351852 | 92 | 0.662312 |
de070afa042a313c96fb5ec549097de43204f066 | 21,498 | py | Python | health.py | elvis124/health | ead2a9031ecc422cca78d2d79f8529f708ff42f4 | [
"MIT"
] | 1 | 2019-03-06T09:37:28.000Z | 2019-03-06T09:37:28.000Z | health.py | elvis124/health | ead2a9031ecc422cca78d2d79f8529f708ff42f4 | [
"MIT"
] | null | null | null | health.py | elvis124/health | ead2a9031ecc422cca78d2d79f8529f708ff42f4 | [
"MIT"
] | null | null | null | #importing neccesary libaries and mudules needed to support functions
from __future__ import unicode_literals
from kivy.app import App
from kivy.config import Config
Config.set('input', 'multitouchscreen1', 'tuio,192.168.2.22:3306')
Config.set('postproc','desktop','1')
Config.set('kivy','exit_on_escape','1')
Config.set... | 47.041575 | 323 | 0.642618 |
de077e70e5610936c78771d56c4e95d42be457e1 | 1,055 | py | Python | locust/test/test_zmqrpc.py | ioneyed/locust | a8c0d7d8c588f3980303358298870f2ea394ab93 | [
"MIT"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | locust/test/test_zmqrpc.py | ioneyed/locust | a8c0d7d8c588f3980303358298870f2ea394ab93 | [
"MIT"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | locust/test/test_zmqrpc.py | ioneyed/locust | a8c0d7d8c588f3980303358298870f2ea394ab93 | [
"MIT"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | import unittest
from time import sleep
import zmq
from locust.rpc import zmqrpc, Message
PORT = 5557
| 31.969697 | 74 | 0.645498 |
de08caba4ef0b21f76f6627b323b97de341fa90a | 5,106 | py | Python | mangrove/bootstrap/views/measure_view_generation_times.py | mariot/mangrove | 376bca99818c6cc1d08b1c726f46b364c69b0cc7 | [
"BSD-3-Clause"
] | null | null | null | mangrove/bootstrap/views/measure_view_generation_times.py | mariot/mangrove | 376bca99818c6cc1d08b1c726f46b364c69b0cc7 | [
"BSD-3-Clause"
] | null | null | null | mangrove/bootstrap/views/measure_view_generation_times.py | mariot/mangrove | 376bca99818c6cc1d08b1c726f46b364c69b0cc7 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from mangrove.datastore.database import get_db_manager,\
_delete_db_and_remove_db_manager
from mangrove.bootstrap.initializer import _find_views
from pytz import UTC
import random
from mangrove.datastore.entity import Entity
from collections import defaultdict
if __name__ == "__main__":
divid... | 39.276923 | 110 | 0.62123 |
de08ddb186608454e8bbaacbc67356a1a3584bf7 | 14,411 | py | Python | solace/scripts.py | Plurk/Solace | 752a98e3279f1e7e0dafd6281e90ba24cb733474 | [
"BSD-3-Clause"
] | 4 | 2015-10-28T22:23:07.000Z | 2021-08-25T15:21:25.000Z | solace/scripts.py | sfermigier/solace | 32d0b398643344c797a40a094689300c364de3b0 | [
"BSD-3-Clause"
] | null | null | null | solace/scripts.py | sfermigier/solace | 32d0b398643344c797a40a094689300c364de3b0 | [
"BSD-3-Clause"
] | 1 | 2018-11-25T17:52:22.000Z | 2018-11-25T17:52:22.000Z | # -*- coding: utf-8 -*-
"""
solace.scripts
~~~~~~~~~~~~~~
Provides some setup.py commands. The js-translation compiler is taken
from Sphinx, the Python documentation tool.
:copyright: (c) 2009 by Plurk Inc.
(c) 2009 by the Sphinx Team, see AUTHORS for more details.
:license: B... | 37.334197 | 78 | 0.546319 |
de0ab5307c2122a25d2bba0938220eeea800d063 | 85 | py | Python | config.py | hjdteny/nodemcu-pyflasher-vam | 7b51f132ff52e12306b25db70fde2a54affe8a86 | [
"MIT"
] | null | null | null | config.py | hjdteny/nodemcu-pyflasher-vam | 7b51f132ff52e12306b25db70fde2a54affe8a86 | [
"MIT"
] | null | null | null | config.py | hjdteny/nodemcu-pyflasher-vam | 7b51f132ff52e12306b25db70fde2a54affe8a86 | [
"MIT"
] | null | null | null | VERSION = "1.3"
TITLE = "Speedshield VAM Flash Utility"
EXENAME = "VAM-Flash-Utility" | 28.333333 | 39 | 0.729412 |
de0b24691296a4bf0f78e47b9d82fcf62408dc87 | 20,854 | py | Python | ingest_cmorph.py | monocongo/ingest_cmorph | 4af25f3626184cfb9a89efa4da6729b9b46ebbbf | [
"BSD-3-Clause"
] | 5 | 2018-02-14T00:39:35.000Z | 2022-01-14T15:09:13.000Z | ingest_cmorph.py | monocongo/ingest_cmorph | 4af25f3626184cfb9a89efa4da6729b9b46ebbbf | [
"BSD-3-Clause"
] | 13 | 2018-01-25T23:19:04.000Z | 2019-04-12T18:15:39.000Z | ingest_cmorph.py | monocongo/ingest_cmorph | 4af25f3626184cfb9a89efa4da6729b9b46ebbbf | [
"BSD-3-Clause"
] | 1 | 2020-04-29T23:30:32.000Z | 2020-04-29T23:30:32.000Z | import argparse
import bz2
import calendar
from datetime import datetime
# import ftplib
import gzip
import logging
import netCDF4
import numpy as np
import os
import shutil
import urllib.error
import urllib.request
import warnings
#-----------------------------------------------------------------------... | 47.180995 | 197 | 0.545363 |
de0c0866e0e73f56c68f46aa289f7a3a8ae8815a | 744 | py | Python | setup.py | patthoyts/tivoctl | e780548992e71420b5734fdf4fcae8874d018d81 | [
"MIT"
] | 2 | 2019-05-06T21:04:48.000Z | 2019-05-07T04:37:49.000Z | setup.py | patthoyts/tivoctl | e780548992e71420b5734fdf4fcae8874d018d81 | [
"MIT"
] | null | null | null | setup.py | patthoyts/tivoctl | e780548992e71420b5734fdf4fcae8874d018d81 | [
"MIT"
] | 2 | 2018-12-08T23:45:54.000Z | 2021-06-01T21:32:31.000Z | #!/usr/bin/env python
import setuptools
import tivoctl
setuptools.setup(
name=tivoctl.__title__,
version=tivoctl.__version__,
description=tivoctl.__doc__,
url=tivoctl.__url__,
author=tivoctl.__author__,
author_email=tivoctl.__author_email__,
license=tivoctl.__license__,
long_descriptio... | 25.655172 | 60 | 0.647849 |
de0d3355466a1d74003a1deace60e7eaab7653de | 8,065 | py | Python | src/aslc/GLSLBackend.py | ronsaldo/aslc | 1c9570434c33b89ce7c238bee6e81dcde9c91daf | [
"MIT"
] | null | null | null | src/aslc/GLSLBackend.py | ronsaldo/aslc | 1c9570434c33b89ce7c238bee6e81dcde9c91daf | [
"MIT"
] | null | null | null | src/aslc/GLSLBackend.py | ronsaldo/aslc | 1c9570434c33b89ce7c238bee6e81dcde9c91daf | [
"MIT"
] | null | null | null | import StringIO
from HLBackend import *
BasicTypeRawMapping = (
('void', 'void'),
('int', 'int'),
(VectorType.get(BasicType_Int, 2), 'ivec2'),
(VectorType.get(BasicType_Int, 3), 'ivec3'),
(VectorType.get(BasicType_Int, 4), 'ivec4'),
('float', 'float'),
(VectorType.get(BasicType_Float, 2), 'vec2'),
(VectorTyp... | 28.199301 | 144 | 0.722505 |
de0d4fbe0dcdc845431d0fb590e975c2c855b47f | 1,078 | py | Python | geoapps/simpegPF/Utils/__init__.py | RichardScottOZ/geoapps | 5b3c1d4fd11add45992e8b2497312ac014272b69 | [
"MIT"
] | 1 | 2022-02-18T16:24:53.000Z | 2022-02-18T16:24:53.000Z | geoapps/simpegPF/Utils/__init__.py | sebhmg/geoapps | 1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4 | [
"MIT"
] | null | null | null | geoapps/simpegPF/Utils/__init__.py | sebhmg/geoapps | 1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4 | [
"MIT"
] | null | null | null | from discretize.utils.interputils import interpmat
from .matutils import (
mkvc,
sdiag,
sdInv,
speye,
kron3,
spzeros,
ddx,
av,
av_extrap,
ndgrid,
ind2sub,
sub2ind,
getSubArray,
inv3X3BlockDiagonal,
inv2X2BlockDiagonal,
TensorType,
makePropertyTensor,
... | 21.137255 | 81 | 0.730983 |
de0da2ca4c0ba12fc1befb15406b1a9d25acd3b2 | 4,229 | py | Python | domipy/messages/__init__.py | soliveira/python-domintell | 64876f9d4dae9c29f354c3cfac755c22fa980a73 | [
"MIT"
] | null | null | null | domipy/messages/__init__.py | soliveira/python-domintell | 64876f9d4dae9c29f354c3cfac755c22fa980a73 | [
"MIT"
] | null | null | null | domipy/messages/__init__.py | soliveira/python-domintell | 64876f9d4dae9c29f354c3cfac755c22fa980a73 | [
"MIT"
] | null | null | null | """
:author: Thomas Delaet <thomas@delaet.org>
"""
# pylint: disable-msg=C0301
# appifo scan messages and system messages
from domipy.messages.appinfo_request import AppInfoRequest
from domipy.messages.module_info import ModuleInfoMessage
from domipy.messages.ping import Ping
from domipy.messages.hello import Hello
fro... | 56.386667 | 80 | 0.895011 |
de11b84d64c7ee5e90a81ea6db93a10f72c41fe6 | 8,823 | py | Python | ray_shuffling_data_loader/dataset.py | richardliaw/ray_shuffling_data_loader | 055a0d47f823d878087a2a2d3fe50483b525f685 | [
"Apache-2.0"
] | null | null | null | ray_shuffling_data_loader/dataset.py | richardliaw/ray_shuffling_data_loader | 055a0d47f823d878087a2a2d3fe50483b525f685 | [
"Apache-2.0"
] | null | null | null | ray_shuffling_data_loader/dataset.py | richardliaw/ray_shuffling_data_loader | 055a0d47f823d878087a2a2d3fe50483b525f685 | [
"Apache-2.0"
] | null | null | null | import functools
from typing import List, Iterable
import pandas as pd
import ray
from ray._private.utils import get_num_cpus
from ray_shuffling_data_loader.shuffle import shuffle
from ray_shuffling_data_loader.multiqueue import MultiQueue
MULTIQUEUE_ACTOR_NAME = "MultiQueue"
REDUCER_CLUSTER_CORE_SHARE = 0.6
def b... | 39.923077 | 79 | 0.607163 |
de14580203ff2ebf6ca00267c60b3e970d34d7b5 | 93 | py | Python | divi.py | Shashanksinha9/hacktoberfest2021 | 20e66cb5d6d8d4879366cd921407d0c50eef0557 | [
"Apache-2.0"
] | 4 | 2021-10-01T17:56:54.000Z | 2021-10-11T05:49:20.000Z | divi.py | Shashanksinha9/hacktoberfest2021 | 20e66cb5d6d8d4879366cd921407d0c50eef0557 | [
"Apache-2.0"
] | 4 | 2021-10-01T13:50:00.000Z | 2021-10-11T05:52:12.000Z | divi.py | Shashanksinha9/hacktoberfest2021 | 20e66cb5d6d8d4879366cd921407d0c50eef0557 | [
"Apache-2.0"
] | 31 | 2021-09-29T14:15:57.000Z | 2021-10-16T03:32:24.000Z | name=input("Enter the name : ")
greet(name)
| 15.5 | 31 | 0.623656 |
de14812da4cbab8dfe169e0a68268beebae12f71 | 230 | py | Python | HeavyFlavorAnalysis/Skimming/python/tauTo3MuSequences_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | HeavyFlavorAnalysis/Skimming/python/tauTo3MuSequences_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | HeavyFlavorAnalysis/Skimming/python/tauTo3MuSequences_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
from HeavyFlavorAnalysis.Skimming.tauTo3MuHLTPath_cfi import *
from HeavyFlavorAnalysis.Skimming.tauTo3MuFilter_cfi import *
tauTo3MuSkim = cms.Sequence(tauTo3MuHLTFilter+tauTo3MuFilter)
| 32.857143 | 62 | 0.869565 |
de148a2bd0c9ed523e7886ae8641709d4250a936 | 693 | py | Python | dash_docs/chapters/dash_vtk/other/examples/t05_reader.py | wesleyacheng/dash-docs | c8510bf50d0ae55a56ae30f3057f2bfc6d3ca8d6 | [
"MIT"
] | 379 | 2017-06-21T14:35:52.000Z | 2022-03-20T01:47:14.000Z | dash_docs/chapters/dash_vtk/other/examples/t05_reader.py | wesleyacheng/dash-docs | c8510bf50d0ae55a56ae30f3057f2bfc6d3ca8d6 | [
"MIT"
] | 746 | 2017-06-21T19:58:17.000Z | 2022-03-23T14:51:24.000Z | dash_docs/chapters/dash_vtk/other/examples/t05_reader.py | wesleyacheng/dash-docs | c8510bf50d0ae55a56ae30f3057f2bfc6d3ca8d6 | [
"MIT"
] | 201 | 2017-06-21T21:53:19.000Z | 2022-03-17T13:23:55.000Z | import os
import dash
import dash_html_components as html
import dash_vtk
# Get it here: https://github.com/plotly/dash-vtk/blob/master/demos/data/cow-nonormals.obj
obj_file = "datasets/cow-nonormals.obj"
txt_content = None
with open(obj_file, 'r') as file:
txt_content = file.read()
content = dash_vtk.View([
... | 19.8 | 90 | 0.670996 |
de149369b41d1ec4e6f661199e6f83b94f8b5653 | 416 | py | Python | day4/00_composition.py | jduell12/CS35_IntroPython_GP | 07036f884252497a9da0cd4aaeed017f3fe741bb | [
"MIT"
] | null | null | null | day4/00_composition.py | jduell12/CS35_IntroPython_GP | 07036f884252497a9da0cd4aaeed017f3fe741bb | [
"MIT"
] | null | null | null | day4/00_composition.py | jduell12/CS35_IntroPython_GP | 07036f884252497a9da0cd4aaeed017f3fe741bb | [
"MIT"
] | 1 | 2021-04-09T17:35:57.000Z | 2021-04-09T17:35:57.000Z |
"""
Inheritance
- a base class is the 'parent' class which other classes can inherit attributes from
- sub classes inherit from a parent class and can add more attributes to themselves in addition to the attributes inherited from the parent class
- think of sub class as a 'is-a' relationship of the parent class
C... | 27.733333 | 145 | 0.762019 |
a9a5e57bf265778860430aa86749885c36d7995e | 7,281 | py | Python | traffic/build_dataset.py | daniele-canavese/fingerprinting | 180cffd8e3edda0fe99fac003832027e1388687a | [
"Apache-2.0"
] | null | null | null | traffic/build_dataset.py | daniele-canavese/fingerprinting | 180cffd8e3edda0fe99fac003832027e1388687a | [
"Apache-2.0"
] | null | null | null | traffic/build_dataset.py | daniele-canavese/fingerprinting | 180cffd8e3edda0fe99fac003832027e1388687a | [
"Apache-2.0"
] | null | null | null | from argparse import ArgumentParser
from glob import glob
from os import listdir
from os import system
from os import unlink
from os.path import isdir
from numpy import linspace
# Parses the input arguments.
from numpy import split
from pandas import DataFrame
from pandas import read_csv
parser = ArgumentParser(descr... | 41.605714 | 117 | 0.513391 |
a9a67980e424c4f01050fbfb15319a06062ec61b | 3,792 | py | Python | dfm-i.py | gmlunesa/detectfacemask | 92add56de32ab28bf9179986876407d681a5d6b6 | [
"MIT"
] | 6 | 2020-11-20T13:28:43.000Z | 2021-12-16T06:42:46.000Z | dfm-i.py | gmlunesa/detectfacemask | 92add56de32ab28bf9179986876407d681a5d6b6 | [
"MIT"
] | null | null | null | dfm-i.py | gmlunesa/detectfacemask | 92add56de32ab28bf9179986876407d681a5d6b6 | [
"MIT"
] | null | null | null | # Import the necessary packages and libraries
import numpy as np
import argparse
import cv2
import os
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
# Arguments are expected to be the ... | 31.338843 | 79 | 0.709652 |
a9a7302bf2bdc1e18b089f25ec17e63f11337e81 | 22 | py | Python | Python/BackgroundApp/BackgroundApp/PythonHome/WinRTExtension.zip/WinRT/__init__.py | Carlosgm02/UWP-Languages | b5653c8f452b204645e3b6276caa95de2432f77e | [
"MIT"
] | 6 | 2019-10-30T08:41:15.000Z | 2021-02-24T09:20:46.000Z | Python/BackgroundApp/BackgroundApp/PythonHome/WinRTExtension.zip/WinRT/__init__.py | carlosgm02/uwp-languages | b5653c8f452b204645e3b6276caa95de2432f77e | [
"MIT"
] | null | null | null | Python/BackgroundApp/BackgroundApp/PythonHome/WinRTExtension.zip/WinRT/__init__.py | carlosgm02/uwp-languages | b5653c8f452b204645e3b6276caa95de2432f77e | [
"MIT"
] | null | null | null | from _winrt import *
| 11 | 21 | 0.727273 |
a9a7bb5db5244b6878098fc53823b91f4fc0297e | 439 | py | Python | ExerciciosdePython/ex065.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex065.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex065.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | n = 0
op = ''
cont = 0
soma = 0
maior = 0
menor = 0
while op in 'Ss':
n = int(input('Digite um nmero: '))
op = str(input('Quer continuar? [S/N] ')).upper().strip()[0]
cont += 1
soma += n
media = soma / cont
if cont == 1:
maior = n
menor = n
else:
if n > maior:
... | 16.259259 | 64 | 0.457859 |
a9a915fa17967a2202dcf4b6b40dcb29d45aca39 | 4,482 | py | Python | hantek_wave_viewer/__init__.py | mattdavis90/hantek-wave-viewer | 5cb2b10ec56ef73015cd7b7a1c1d1983fa89cc07 | [
"MIT"
] | 3 | 2021-07-30T13:05:39.000Z | 2022-03-21T11:13:32.000Z | hantek_wave_viewer/__init__.py | mattdavis90/hantek-wave-viewer | 5cb2b10ec56ef73015cd7b7a1c1d1983fa89cc07 | [
"MIT"
] | 1 | 2022-01-02T13:37:45.000Z | 2022-01-02T16:18:22.000Z | hantek_wave_viewer/__init__.py | mattdavis90/hantek-wave-viewer | 5cb2b10ec56ef73015cd7b7a1c1d1983fa89cc07 | [
"MIT"
] | 2 | 2021-11-01T16:20:41.000Z | 2021-11-25T13:17:20.000Z | import click
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms
import numpy as np
from kaitaistruct import KaitaiStructError
from matplotlib.ticker import MultipleLocator, NullFormatter
from .parser.hantek import Hantek
from .parser import conversions, utils
| 45.272727 | 107 | 0.694333 |
a9aa11beddbf453f76e21bbaf090fbb954fec6e5 | 1,102 | py | Python | test/test_phones.py | miaowization/PythonTraining | 32ff6ceedc3ba15efbc86b1bb8afbf65060690a1 | [
"Apache-2.0"
] | null | null | null | test/test_phones.py | miaowization/PythonTraining | 32ff6ceedc3ba15efbc86b1bb8afbf65060690a1 | [
"Apache-2.0"
] | null | null | null | test/test_phones.py | miaowization/PythonTraining | 32ff6ceedc3ba15efbc86b1bb8afbf65060690a1 | [
"Apache-2.0"
] | null | null | null | import re
import random
| 47.913043 | 129 | 0.831216 |
a9ab13c622bacfe72e062806000e550232c0a0df | 9,672 | py | Python | scanner/vuln-creator/vulns_creator.py | mercadolibre/afip-grails | d38daa57a66d3ccc71c481a35148c1136a2d867f | [
"Apache-2.0"
] | 22 | 2019-01-28T17:47:08.000Z | 2020-05-14T21:49:49.000Z | scanner/vuln-creator/vulns_creator.py | joaquinlpereyra-ml/afip-grails | 607211959394b6f05c064732398bde58cc009489 | [
"Apache-2.0"
] | null | null | null | scanner/vuln-creator/vulns_creator.py | joaquinlpereyra-ml/afip-grails | 607211959394b6f05c064732398bde58cc009489 | [
"Apache-2.0"
] | 1 | 2021-05-19T15:18:11.000Z | 2021-05-19T15:18:11.000Z | import requests
import code
import json
import os.path
from pathlib import Path
AFIP_GROOVY_PATH = '{}/scanner'.format(Path('.'))
def pretty_print_as_supermarket_list(title, *strings):
"""Print a title (for no title, give a falsey value on first param)
and an arbitrary number of strings like it was a nice sup... | 41.689655 | 127 | 0.580438 |
a9ab94f9f5d611ce8b806cca6cd5a5489f613dbb | 543 | py | Python | heritage/migrations/0034_auto_20160223_1445.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | heritage/migrations/0034_auto_20160223_1445.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | 11 | 2020-03-24T15:29:46.000Z | 2022-03-11T23:14:48.000Z | heritage/migrations/0034_auto_20160223_1445.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
| 21.72 | 40 | 0.569061 |
a9aefe76b63591df69e485f31359a5e8e36a478c | 1,301 | py | Python | 15/tests.py | remihuguet/aoc2020 | c313c5b425dda92d949fd9ca4f18ff66f452794f | [
"MIT"
] | null | null | null | 15/tests.py | remihuguet/aoc2020 | c313c5b425dda92d949fd9ca4f18ff66f452794f | [
"MIT"
] | null | null | null | 15/tests.py | remihuguet/aoc2020 | c313c5b425dda92d949fd9ca4f18ff66f452794f | [
"MIT"
] | null | null | null | import pytest
import memory
inputs = [
(0, 3, 6, 436),
(1, 3, 2, 1),
(2, 1, 3, 10),
(1, 2, 3, 27),
(2, 3, 1, 78),
(3, 2, 1, 438),
(3, 1, 2, 1836)
]
inputs_high = [
(0, 3, 6, 175594),
(1, 3, 2, 2578),
(2, 1, 3, 3544142),
(1, 2, 3, 261214),
(2, 3, 1, 6895259),
(3,... | 23.654545 | 82 | 0.601845 |
a9b0a0692415b86e04e3728ac107f178159ea369 | 4,883 | py | Python | Tools/Asynchronous_and_Constant_Input_API_call_checker/constant_input_parse_outfile.py | mlapistudy/ICSE2021_421 | c7fca3ba7d53917b3b6de28a8cb1d343b5959118 | [
"BSD-2-Clause"
] | 9 | 2021-04-06T15:02:58.000Z | 2022-03-07T03:36:22.000Z | Tools/Asynchronous_and_Constant_Input_API_call_checker/constant_input_parse_outfile.py | mlapistudy/ICSE2021_421 | c7fca3ba7d53917b3b6de28a8cb1d343b5959118 | [
"BSD-2-Clause"
] | null | null | null | Tools/Asynchronous_and_Constant_Input_API_call_checker/constant_input_parse_outfile.py | mlapistudy/ICSE2021_421 | c7fca3ba7d53917b3b6de28a8cb1d343b5959118 | [
"BSD-2-Clause"
] | 1 | 2022-02-22T16:21:30.000Z | 2022-02-22T16:21:30.000Z | import sys
import re
from utils.utils import print_writeofd
# First argument is whether or not to proceed with manual checking:
if sys.argv[1] == '-m':
MANUAL_CHECKING = True
elif sys.argv[1] == '-a':
MANUAL_CHECKING = False
else:
print("The first argument must be either -m or -a, see README.md for details... | 37.561538 | 166 | 0.589392 |
a9b112d0bd56a41caca4c0915a3d8b20397d3e01 | 10,319 | py | Python | seaice/tools/reader.py | andypbarrett/nsidc-seaice | 167a16309f7eaadd5c613b54a7df26eb1f48c2f3 | [
"MIT"
] | 2 | 2020-08-27T08:40:22.000Z | 2021-04-14T15:42:09.000Z | seaice/tools/reader.py | andypbarrett/nsidc-seaice | 167a16309f7eaadd5c613b54a7df26eb1f48c2f3 | [
"MIT"
] | null | null | null | seaice/tools/reader.py | andypbarrett/nsidc-seaice | 167a16309f7eaadd5c613b54a7df26eb1f48c2f3 | [
"MIT"
] | null | null | null | import calendar
import os
import re
import pandas as pd
REGIONAL_SHEETS = ['Baffin-Area-km^2',
'Baffin-Extent-km^2',
'Barents-Area-km^2',
'Barents-Extent-km^2',
'Beaufort-Area-km^2',
'Beaufort-Extent-km^2',
... | 36.72242 | 98 | 0.515069 |
a9b19a34b450c33dfddc6881e62d1f7147ec860d | 599 | py | Python | examples/accelerate/numba.py | Jie-Yuan/1_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | 14 | 2019-06-25T13:46:32.000Z | 2020-10-27T02:04:59.000Z | examples/accelerate/numba.py | Jie-Yuan/2_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | null | null | null | examples/accelerate/numba.py | Jie-Yuan/2_DataMining | f5338388b4f883233f350d4fb9c5903180883430 | [
"Apache-2.0"
] | 7 | 2019-06-25T13:26:16.000Z | 2020-10-27T02:05:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : tql-Python.
# @File : numba
# @Time : 2019-12-26 14:52
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
from numba import jit, njit, vectorize
import numpy as np
x = np.arange(10... | 20.655172 | 64 | 0.597663 |
a9b2db3f369fcfd5b77d040b3bc04025ef934688 | 7,215 | py | Python | experiment-2/02_gm_correlations_across_masks.py | NBCLab/power-replication | 7a938cac6fd132f8cbd76535255680aeb2e550cb | [
"Apache-2.0"
] | 1 | 2021-12-20T13:30:23.000Z | 2021-12-20T13:30:23.000Z | experiment-2/02_gm_correlations_across_masks.py | NBCLab/power-replication | 7a938cac6fd132f8cbd76535255680aeb2e550cb | [
"Apache-2.0"
] | 14 | 2020-12-21T15:58:45.000Z | 2022-03-16T22:20:25.000Z | experiment-2/02_gm_correlations_across_masks.py | NBCLab/power-replication | 7a938cac6fd132f8cbd76535255680aeb2e550cb | [
"Apache-2.0"
] | null | null | null | """Experiment 2, Analysis Group 2.
Comparing measures of global signal.
Mean cortical signal of MEDN correlated with signal of all gray matter
- Distribution of Pearson correlation coefficients
- Page 2, right column, first paragraph
Mean cortical signal of MEDN correlated with signal of whole brain
- Distribu... | 35.195122 | 98 | 0.60693 |
a9b2fc7d45738b3e7655e81adf3bd08e96111434 | 2,119 | py | Python | scripts/dataset_processing/ljspeech/create_token2idx_dict.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | null | null | null | scripts/dataset_processing/ljspeech/create_token2idx_dict.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | null | null | null | scripts/dataset_processing/ljspeech/create_token2idx_dict.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 30.710145 | 84 | 0.641812 |
a9b47fd15b255df5f1689bdd0c7eac646455b225 | 123 | py | Python | fortnitepy/ext/commands/typedefs.py | zw5/fortnitepy | 4aa1bbb58275fcd87a0ed28d80701ecdc55e923a | [
"MIT"
] | null | null | null | fortnitepy/ext/commands/typedefs.py | zw5/fortnitepy | 4aa1bbb58275fcd87a0ed28d80701ecdc55e923a | [
"MIT"
] | null | null | null | fortnitepy/ext/commands/typedefs.py | zw5/fortnitepy | 4aa1bbb58275fcd87a0ed28d80701ecdc55e923a | [
"MIT"
] | null | null | null | from typing import Union
from fortnitepy import FriendMessage, PartyMessage
Message = Union[FriendMessage, PartyMessage]
| 20.5 | 50 | 0.837398 |
a9b4cd658e27fcad2f69590611913292ad17226d | 1,087 | py | Python | projectoAdmVeh/negocio/tipoVehiculo.py | Jofemago/Administrador_vehiculos | 9e523498b2b5bc47d05d24cd0d02ba833abd07d6 | [
"MIT"
] | null | null | null | projectoAdmVeh/negocio/tipoVehiculo.py | Jofemago/Administrador_vehiculos | 9e523498b2b5bc47d05d24cd0d02ba833abd07d6 | [
"MIT"
] | null | null | null | projectoAdmVeh/negocio/tipoVehiculo.py | Jofemago/Administrador_vehiculos | 9e523498b2b5bc47d05d24cd0d02ba833abd07d6 | [
"MIT"
] | 1 | 2019-07-18T03:49:58.000Z | 2019-07-18T03:49:58.000Z | from modelo.BD_tipoVehiculo import _TipoVehiculo
from modelo.createDatabase import makeEngine
from modelo.createDatabase import makeBase
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
if __name__ == "__main__":
#tv = TipoVehiculo()
TipoVehiculo.getAllTipos(Tipo... | 20.509434 | 70 | 0.590616 |
a9b56b0379c4118f82605a6de23ecfa9e150dac1 | 3,454 | py | Python | mt_dnn/inference.py | anlewy/mt-dnn | eeb6f01ce0630e61a52b8c9c6f7537cd34978e45 | [
"MIT"
] | 2,075 | 2019-02-25T08:54:38.000Z | 2022-03-31T10:44:50.000Z | mt_dnn/inference.py | anlewy/mt-dnn | eeb6f01ce0630e61a52b8c9c6f7537cd34978e45 | [
"MIT"
] | 176 | 2019-03-12T02:58:42.000Z | 2022-03-22T20:17:23.000Z | mt_dnn/inference.py | anlewy/mt-dnn | eeb6f01ce0630e61a52b8c9c6f7537cd34978e45 | [
"MIT"
] | 437 | 2019-03-11T21:36:21.000Z | 2022-03-29T02:40:53.000Z | # coding=utf-8
# Copyright (c) Microsoft. All rights reserved.
import enum
from numpy.lib.arraysetops import isin
from numpy.lib.function_base import insert
from data_utils.metrics import calc_metrics
from mt_dnn.batcher import Collater
from data_utils.task_def import TaskType
from data_utils.utils_qa import postproces... | 36.357895 | 120 | 0.657209 |
a9b5d1f91dcab6368915c512048ca47cccd01d6f | 2,694 | py | Python | gffpal/scripts/rnammer2gff.py | darcyabjones/gffpal | 9e195d94f5c9e259fa26f4840fbd440e3b37f777 | [
"Apache-2.0"
] | 1 | 2019-12-09T13:57:42.000Z | 2019-12-09T13:57:42.000Z | gffpal/scripts/rnammer2gff.py | darcyabjones/gffpal | 9e195d94f5c9e259fa26f4840fbd440e3b37f777 | [
"Apache-2.0"
] | 1 | 2020-02-25T04:24:52.000Z | 2020-02-27T08:02:14.000Z | gffpal/scripts/rnammer2gff.py | darcyabjones/gffpal | 9e195d94f5c9e259fa26f4840fbd440e3b37f777 | [
"Apache-2.0"
] | 1 | 2019-12-09T13:57:44.000Z | 2019-12-09T13:57:44.000Z | import sys
import argparse
from copy import deepcopy
from typing import cast
from typing import List
from gffpal.gff import GFF
from gffpal.gff import GFF3Record
from gffpal.attributes import GFF3Attributes
import logging
logger = logging.getLogger(__name__)
TYPE_MAP = {
"euk": {
"5s_rrna": "rRNA_5S",
... | 23.840708 | 73 | 0.544172 |
a9b6978fd7689a0ce662a351c5883daf559bb70f | 700 | py | Python | luiz_otavio/exercises/ex014.py | felipefdeaguiar/-LearnPython3 | c5344da713533faafb10cadb6fc26a98d7c6bea6 | [
"MIT"
] | 1 | 2021-11-21T13:56:38.000Z | 2021-11-21T13:56:38.000Z | luiz_otavio/exercises/ex014.py | felipefdeaguiar/Python | c5344da713533faafb10cadb6fc26a98d7c6bea6 | [
"MIT"
] | null | null | null | luiz_otavio/exercises/ex014.py | felipefdeaguiar/Python | c5344da713533faafb10cadb6fc26a98d7c6bea6 | [
"MIT"
] | null | null | null | """
23.12.2020 - Felipe Ferreira de Aguiar
Manipulando Strings
* Strings Indices
* Fatiamento de Strings
* Funces built-in len, abs, type, print
Documentao da aula abaixo:
https://docs.python.org/3/library/functions.html
https://docs.python.org/3/library/stdtypes.html
"""
# ! indice... | 22.580645 | 82 | 0.671429 |
a9b8040ed8f737b98e31e016b7a9276c10b17abd | 2,915 | py | Python | Python Scripts/happy-new-year.py | lazydinoz/HackFest21 | 84bfbfbb2c75a6511226a87d2e947984db878ba1 | [
"MIT"
] | 1 | 2021-11-12T10:51:19.000Z | 2021-11-12T10:51:19.000Z | Python Scripts/happy-new-year.py | lazydinoz/HackFest21 | 84bfbfbb2c75a6511226a87d2e947984db878ba1 | [
"MIT"
] | null | null | null | Python Scripts/happy-new-year.py | lazydinoz/HackFest21 | 84bfbfbb2c75a6511226a87d2e947984db878ba1 | [
"MIT"
] | null | null | null | # Visit pyGuru on Youtube
import turtle
t = turtle.Pen()
t.shape('turtle')
t.width(20)
t.speed(8)
t.up()
t.goto(-190,170)
t.down()
# writing text
h()
t.color('red')
t.up()
t.rt(90)
t.fd(30)
t.down()
a()
t.color('lime')
t.up()
t.lt(90)
t.fd(80)
t.lt(90)
t.fd(80)
t.down()
p()
t.color('fuchs... | 10.958647 | 26 | 0.501544 |
a9b847c118bf2fb5a2a27bd55f6e9604914a2fac | 1,767 | py | Python | 9_Monitor_Data_Drift/1_Creating_data_drift_monitor.py | aditagrawal/Azure_ML | 30d7021c19aef8f56b05580cba25d38a5bc0b24e | [
"Unlicense"
] | null | null | null | 9_Monitor_Data_Drift/1_Creating_data_drift_monitor.py | aditagrawal/Azure_ML | 30d7021c19aef8f56b05580cba25d38a5bc0b24e | [
"Unlicense"
] | null | null | null | 9_Monitor_Data_Drift/1_Creating_data_drift_monitor.py | aditagrawal/Azure_ML | 30d7021c19aef8f56b05580cba25d38a5bc0b24e | [
"Unlicense"
] | null | null | null | ### Creating data drift monitor
from azureml.datadrift import DataDriftDetector
monitor = DataDriftDetector.create_from_datasets(workspace=ws,
name='dataset-drift-detector',
baseline_data_set=train_ds,
... | 57 | 263 | 0.534805 |
a9b897b26ef4a2a11ab551bfa5b0cdae3273a400 | 189 | py | Python | codeforces/231ATeam.py | Fr3ud/codingProblems | 8db943f5796385a4eeacc6fb0acfc846972cb058 | [
"Apache-2.0"
] | null | null | null | codeforces/231ATeam.py | Fr3ud/codingProblems | 8db943f5796385a4eeacc6fb0acfc846972cb058 | [
"Apache-2.0"
] | null | null | null | codeforces/231ATeam.py | Fr3ud/codingProblems | 8db943f5796385a4eeacc6fb0acfc846972cb058 | [
"Apache-2.0"
] | 2 | 2021-10-30T09:58:08.000Z | 2021-10-30T11:21:00.000Z |
count = 0
for _ in range(int(input())):
prblm = input()
count += sol(prblm)
print(count)
| 12.6 | 29 | 0.534392 |
a9ba46bc07112c5c0befffe8d27b137867207f8f | 371 | py | Python | test/unit/api/test_network_provider_fullname.py | redmic-project/device-oag-buoy-modem | e905c53a5705695670512ff8f72bcc44c44421b1 | [
"MIT"
] | 2 | 2019-07-02T14:34:52.000Z | 2021-04-15T12:48:20.000Z | test/unit/api/test_network_provider_fullname.py | alzeih/python-vodem-vodafone-K4607-Z | d3b1f35d510b71b79ba9203993b5228006d9d8ee | [
"MIT"
] | null | null | null | test/unit/api/test_network_provider_fullname.py | alzeih/python-vodem-vodafone-K4607-Z | d3b1f35d510b71b79ba9203993b5228006d9d8ee | [
"MIT"
] | null | null | null | import unittest
from vodem.api import network_provider_fullname
| 21.823529 | 53 | 0.690027 |
a9bbfd75a2ef05b8db8b8c94582084bcd100e96f | 2,419 | py | Python | user_tags/migrations/0001_initial.py | bitlabstudio/django-user-tags | b3f55d46cf4943ced266c112c49f4555b7bab74e | [
"MIT"
] | 3 | 2017-11-10T19:30:12.000Z | 2019-10-27T02:23:13.000Z | user_tags/migrations/0001_initial.py | bitmazk/django-user-tags | b3f55d46cf4943ced266c112c49f4555b7bab74e | [
"MIT"
] | 4 | 2018-04-13T14:49:58.000Z | 2021-06-10T20:34:57.000Z | user_tags/migrations/0001_initial.py | bitmazk/django-user-tags | b3f55d46cf4943ced266c112c49f4555b7bab74e | [
"MIT"
] | 1 | 2021-09-23T12:42:30.000Z | 2021-09-23T12:42:30.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-14 15:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 39.016129 | 167 | 0.608929 |
a9bc2c278dd9ef86fef7b968518e3ca025ab6ba8 | 850 | py | Python | hardhat/recipes/python/hg_zipdoc.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/python/hg_zipdoc.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/python/hg_zipdoc.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | import os
import shutil
from ..base import Downloader, Extractor, Recipe
| 34 | 76 | 0.614118 |
a9bd8dbf35bce6e926afc202bb829485abcb884b | 158 | py | Python | ml/shuffle.py | thevibegod/lms | 4b7f03acb44e63a3f6294c9224d6376ad22800c2 | [
"MIT"
] | null | null | null | ml/shuffle.py | thevibegod/lms | 4b7f03acb44e63a3f6294c9224d6376ad22800c2 | [
"MIT"
] | 6 | 2021-06-09T18:28:28.000Z | 2022-03-12T00:53:22.000Z | ml/shuffle.py | thevibegod/lms | 4b7f03acb44e63a3f6294c9224d6376ad22800c2 | [
"MIT"
] | null | null | null | import pandas as pd
df = pd.read_csv('dataset.csv', header=None)
ds = df.sample(frac=1)
ds.to_csv('shuffled_dataset.csv')
print('Shuffled Dataset Generated') | 26.333333 | 44 | 0.753165 |
a9bf3baaff334d5d1c7c48eb7a8296df89e43617 | 3,616 | py | Python | tf1x/models/lca_conv_model.py | dpaiton/DeepSparseCoding | 5ea01fa8770794df5e13743aa3f2d85297c27eb1 | [
"MIT"
] | 12 | 2017-04-27T17:19:31.000Z | 2021-11-07T03:37:59.000Z | tf1x/models/lca_conv_model.py | dpaiton/DeepSparseCoding | 5ea01fa8770794df5e13743aa3f2d85297c27eb1 | [
"MIT"
] | 12 | 2018-03-21T01:16:25.000Z | 2022-02-10T00:21:58.000Z | tf1x/models/lca_conv_model.py | dpaiton/DeepSparseCoding | 5ea01fa8770794df5e13743aa3f2d85297c27eb1 | [
"MIT"
] | 12 | 2017-02-01T19:49:57.000Z | 2021-12-08T03:16:58.000Z | import numpy as np
import tensorflow as tf
import DeepSparseCoding.tf1x.utils.plot_functions as pf
import DeepSparseCoding.tf1x.utils.data_processing as dp
from DeepSparseCoding.tf1x.models.lca_model import LcaModel
from DeepSparseCoding.tf1x.modules.lca_conv_module import LcaConvModule
| 42.541176 | 96 | 0.716538 |
a9bf620f1f16041d166e420a5fdf6a5cba0d0ebe | 3,130 | py | Python | tps/problems/forms/generic.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 5 | 2019-02-26T06:10:43.000Z | 2021-07-24T17:11:45.000Z | tps/problems/forms/generic.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 3 | 2019-08-15T13:56:03.000Z | 2021-06-10T18:43:16.000Z | tps/problems/forms/generic.py | jonathanirvings/tps-web | 46519347d4fc8bdced9b5bceb6cdee5ea4e508f2 | [
"MIT"
] | 2 | 2018-12-28T13:12:59.000Z | 2020-12-25T18:42:13.000Z | from django import forms
from django.core.exceptions import ValidationError
from django.forms.models import construct_instance, InlineForeignKeyField
from problems.forms.fields import AutoFilledField
| 37.710843 | 89 | 0.667093 |
a9c0eb9661089aec6b023e06a45ffc338669fd5e | 762 | py | Python | examples/plot_regressor.py | pavelkomarov/projection-pursuit-regression | d8d4d0a72a0ba7f64d240bc3b14129ccd9c7cf9e | [
"BSD-3-Clause"
] | 29 | 2018-02-08T21:24:01.000Z | 2022-03-29T03:05:26.000Z | examples/plot_regressor.py | imanpalsingh/projection-pursuit | 307ad765d447e81dce909dfa9778db1610704315 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T00:22:05.000Z | 2022-02-09T19:59:57.000Z | examples/plot_regressor.py | imanpalsingh/projection-pursuit | 307ad765d447e81dce909dfa9778db1610704315 | [
"BSD-3-Clause"
] | 11 | 2019-02-24T00:28:53.000Z | 2022-02-10T01:48:03.000Z | """ Plotting ProjectionPursuitRegressor
This example trains a regressor to fit data in R1 against only a single
output, so it can be visualized in 2D.
"""
import numpy as np
import sys
sys.path.append("..")
from skpp import ProjectionPursuitRegressor
from matplotlib import pyplot as plt
X = np.arange(100).reshape(100... | 28.222222 | 71 | 0.74147 |
a9c12d24b96133b1aff1f7db06bdcc87c693d8f2 | 3,323 | py | Python | web/http_server.py | telesoho/htmlcapture | ef78708fc79c6001a6fbaa1616a104075b6fb811 | [
"MIT"
] | null | null | null | web/http_server.py | telesoho/htmlcapture | ef78708fc79c6001a6fbaa1616a104075b6fb811 | [
"MIT"
] | null | null | null | web/http_server.py | telesoho/htmlcapture | ef78708fc79c6001a6fbaa1616a104075b6fb811 | [
"MIT"
] | null | null | null | import os
from flask import Flask, send_from_directory, request, redirect, url_for, flash
from flask_cors import CORS
from flask import render_template
from flask import url_for
from werkzeug.utils import secure_filename
import re
import subprocess
import json
web_dir = os.path.dirname(os.path.realpath(__file__))
roo... | 31.056075 | 90 | 0.592838 |
a9c14c4a8d16221e6534d0917e8a6861680f3692 | 483 | py | Python | sm64r/Level.py | andrelikesdogs/sm64-randomizer | 8c8d2f3e3b9f6b69d3595d78669aa120056b6f98 | [
"MIT"
] | 49 | 2019-07-01T16:19:32.000Z | 2022-03-28T16:15:36.000Z | sm64r/Level.py | andrelikesdogs/sm64-randomizer | 8c8d2f3e3b9f6b69d3595d78669aa120056b6f98 | [
"MIT"
] | 44 | 2019-10-19T18:19:56.000Z | 2022-03-25T22:53:20.000Z | sm64r/Level.py | andrelikesdogs/sm64-randomizer | 8c8d2f3e3b9f6b69d3595d78669aa120056b6f98 | [
"MIT"
] | 5 | 2020-03-13T22:56:56.000Z | 2021-12-05T03:37:30.000Z | from typing import List, Dict
from .Area import Area | 32.2 | 124 | 0.660455 |