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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04796e79a9664545eb63e6ba84915a3f7ac3d290 | 438 | py | Python | heatingcontrolstate.py | szbeni/heatingcontroller | 624538fdb8ddb88992b1dc5240b5caa7f7380255 | [
"MIT"
] | null | null | null | heatingcontrolstate.py | szbeni/heatingcontroller | 624538fdb8ddb88992b1dc5240b5caa7f7380255 | [
"MIT"
] | null | null | null | heatingcontrolstate.py | szbeni/heatingcontroller | 624538fdb8ddb88992b1dc5240b5caa7f7380255 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
sys.argv[1:]
if len(sys.argv) < 2:
print("Off")
exit()
inp = sys.argv[1]
if(inp == '00000'):
print ("Off")
elif(inp == '10000'):
print ("Gas Auto Fan")
elif(inp == '01000'):
print ("Gas Slow Fan");
elif(inp == '00100'):
print ("Fan");
elif(inp == '00010'):
... | 16.846154 | 33 | 0.538813 |
047a04459c8afd589d167d2faedd9e21c93130bd | 420 | py | Python | language_bert/losses/__init__.py | gazalpatel/Language_BERT | 92e4068c5c7c7e77244fb7f6158bb36bf1b61eed | [
"Apache-2.0"
] | 31 | 2021-04-06T16:20:30.000Z | 2022-02-16T08:29:24.000Z | language_bert/losses/__init__.py | gazalpatel/Language_BERT | 92e4068c5c7c7e77244fb7f6158bb36bf1b61eed | [
"Apache-2.0"
] | 3 | 2021-05-18T03:49:27.000Z | 2022-01-05T01:50:22.000Z | language_bert/losses/__init__.py | gazalpatel/Language_BERT | 92e4068c5c7c7e77244fb7f6158bb36bf1b61eed | [
"Apache-2.0"
] | 5 | 2021-04-07T08:35:06.000Z | 2022-03-08T08:33:05.000Z | from .CosineSimilarityLoss import *
from .SoftmaxLoss import *
from .MultipleNegativesRankingLoss import *
from .TripletLoss import *
from .MSELoss import *
from .ContrastiveLoss import *
from .OnlineContrastiveLoss import *
from .BatchHardTripletLoss import *
from .BatchHardSoftMarginTripletLoss import *
from .BatchS... | 30 | 45 | 0.82619 |
047cb5465f0509b508c436ea248be53acdef1e9f | 2,876 | py | Python | migrations/versions/b26b8edbe29a_.py | bbhunter/shadow-workers | 88619f6ac685f89ae697b4bc0dc4c04e679535d0 | [
"MIT"
] | 114 | 2019-03-28T06:59:46.000Z | 2022-03-28T21:22:23.000Z | migrations/versions/b26b8edbe29a_.py | bbhunter/shadow-workers | 88619f6ac685f89ae697b4bc0dc4c04e679535d0 | [
"MIT"
] | 3 | 2019-04-11T01:52:56.000Z | 2019-09-01T22:52:23.000Z | migrations/versions/b26b8edbe29a_.py | bbhunter/shadow-workers | 88619f6ac685f89ae697b4bc0dc4c04e679535d0 | [
"MIT"
] | 31 | 2019-03-29T15:43:43.000Z | 2021-11-25T16:33:49.000Z | """empty message
Revision ID: b26b8edbe29a
Revises:
Create Date: 2018-11-28 21:01:53.633579
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b26b8edbe29a'
down_revision = None
branch_labels = None
depends_on = None
| 37.842105 | 97 | 0.665855 |
047d17f6bf4f854c158900b4950a6ed69d11af25 | 2,919 | py | Python | user/admin.py | kthaisse/website | be0d0e0763ae2a6b8351c08b432229eae9521f1d | [
"MIT"
] | null | null | null | user/admin.py | kthaisse/website | be0d0e0763ae2a6b8351c08b432229eae9521f1d | [
"MIT"
] | null | null | null | user/admin.py | kthaisse/website | be0d0e0763ae2a6b8351c08b432229eae9521f1d | [
"MIT"
] | null | null | null | from django.contrib import admin, messages
from django.contrib.auth.models import Group
from app.settings import GROUP_BY_DIVISION_NAME
from user.models import Division, History, Role, Team, User
from user.utils import send_imported, send_slack
send_welcome.short_description = "Send welcome email"
send_slack_invit... | 28.067308 | 80 | 0.627612 |
047d1fce76502daee3bd9c513a2ef6f8cb1425bd | 11,584 | py | Python | chassisml-sdk/chassisml/chassisml.py | modzy/chassis | a147411c5a27dfee371b75d4cba8d12171d89255 | [
"Apache-2.0"
] | 29 | 2021-07-27T15:59:31.000Z | 2022-03-24T17:22:17.000Z | chassisml-sdk/chassisml/chassisml.py | modzy/chassis | a147411c5a27dfee371b75d4cba8d12171d89255 | [
"Apache-2.0"
] | 46 | 2021-07-29T08:47:21.000Z | 2022-03-28T01:59:24.000Z | chassisml-sdk/chassisml/chassisml.py | modzy/chassis | a147411c5a27dfee371b75d4cba8d12171d89255 | [
"Apache-2.0"
] | 2 | 2021-12-06T20:33:38.000Z | 2022-03-11T15:47:48.000Z | #!/usr/bin/env python
# -*- coding utf-8 -*-
import _io
import os
import time
import json
import requests
import urllib.parse
import tempfile
import shutil
import mlflow
import base64
import string
import numpy as np
from chassisml import __version__
from ._utils import zipdir,fix_dependencies,write_modzy_yaml,NumpyEn... | 41.224199 | 127 | 0.610238 |
047ffe9066fea69b5d6a121fa7e090201689c5c8 | 2,659 | py | Python | test/cli/init_command/location_files_case/test_location_files.py | openeuler-mirror/pkgship | 5aaa4953023fde8ff03892fe5608f0711a26a942 | [
"MulanPSL-1.0"
] | null | null | null | test/cli/init_command/location_files_case/test_location_files.py | openeuler-mirror/pkgship | 5aaa4953023fde8ff03892fe5608f0711a26a942 | [
"MulanPSL-1.0"
] | null | null | null | test/cli/init_command/location_files_case/test_location_files.py | openeuler-mirror/pkgship | 5aaa4953023fde8ff03892fe5608f0711a26a942 | [
"MulanPSL-1.0"
] | 1 | 2021-11-20T00:10:53.000Z | 2021-11-20T00:10:53.000Z | #!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a c... | 39.686567 | 98 | 0.616773 |
04802ec7cded7ac0ac872783dbfebaa1d973ca5f | 2,667 | py | Python | apt/transports/filesytem.py | javajawa/debian-repo-remux | b6626b268acd1743208d8a399f8c975316cfbc80 | [
"BSD-2-Clause"
] | 1 | 2019-10-31T08:36:29.000Z | 2019-10-31T08:36:29.000Z | apt/transports/filesytem.py | javajawa/debian-repo-remux | b6626b268acd1743208d8a399f8c975316cfbc80 | [
"BSD-2-Clause"
] | null | null | null | apt/transports/filesytem.py | javajawa/debian-repo-remux | b6626b268acd1743208d8a399f8c975316cfbc80 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
APT transport for a local OS accessible filesystem
"""
import os.path
import urllib.parse
from typing import IO
from apt.transport import Transport
from apt.transport.exceptions import URIMismatchError
from apt.transport.directorylisting import DirectoryListing
| 24.694444 | 66 | 0.594301 |
0482d084a543e80e3312d3162660c7d16901c30c | 7,213 | py | Python | plugin/core.py | rohankumardubey/plux | c3eae790618ef55ac41541f85fffb0c843f07308 | [
"Apache-2.0"
] | 13 | 2022-01-16T20:00:20.000Z | 2022-03-30T20:48:08.000Z | plugin/core.py | rohankumardubey/plux | c3eae790618ef55ac41541f85fffb0c843f07308 | [
"Apache-2.0"
] | 1 | 2022-03-02T22:15:21.000Z | 2022-03-03T09:58:45.000Z | plugin/core.py | localstack/plux | a412ab0a0d7d17c3b5e1f560b7b31dc1876598f7 | [
"Apache-2.0"
] | null | null | null | import abc
import functools
import inspect
from typing import Any, Callable, Dict, List, Tuple, Type, Union
PluginType = Type[Plugin]
PluginFactory = Callable[[], Plugin]
def plugin(
namespace, name=None, should_load: Union[bool, Callable[[], bool]] = None, load: Callable = None
):
"""
Expose a ... | 31.225108 | 117 | 0.652572 |
048379e73ffaf235bc1f161c9acc29e96bf1085e | 3,845 | py | Python | code/.ipynb_checkpoints/main-checkpoint.py | Bcastet/DeepReconstruction | 0a91eeda4c34350bee6ebafdfc0528060b8142fc | [
"MIT"
] | 8 | 2019-08-08T16:45:45.000Z | 2021-12-09T07:00:52.000Z | code/.ipynb_checkpoints/main-checkpoint.py | Bcastet/DeepReconstruction | 0a91eeda4c34350bee6ebafdfc0528060b8142fc | [
"MIT"
] | null | null | null | code/.ipynb_checkpoints/main-checkpoint.py | Bcastet/DeepReconstruction | 0a91eeda4c34350bee6ebafdfc0528060b8142fc | [
"MIT"
] | 4 | 2020-05-20T02:08:37.000Z | 2021-12-01T08:47:05.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 17 10:12:12 2019
@author: Phan Huy Thong
"""
import os, sys
sys.path.append(os.getcwd())
import argparse
from system import System
from config import Config as cfg
import utils
import torch
if __name__ == '__main__':
#read argument
parser = argparse.ArgumentPar... | 36.971154 | 115 | 0.527698 |
0483e1cdc5b3f0b1841bfac50271950641dfff5e | 538,763 | py | Python | pysnmp/DV2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/DV2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/DV2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DV2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DV2-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:40:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 137.404489 | 7,637 | 0.731407 |
0483e45e39338b1977f9426bbf61b9447c3130d0 | 675 | py | Python | mtp_api/apps/credit/migrations/0034_payment_status_expired.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 5 | 2016-01-05T12:21:35.000Z | 2020-10-28T17:06:02.000Z | mtp_api/apps/credit/migrations/0034_payment_status_expired.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 209 | 2015-06-12T09:39:41.000Z | 2022-03-21T16:01:19.000Z | mtp_api/apps/credit/migrations/0034_payment_status_expired.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 1 | 2021-04-11T06:19:23.000Z | 2021-04-11T06:19:23.000Z | # Generated by Django 2.0.13 on 2019-12-11 15:28
from django.db import migrations, models
| 35.526316 | 336 | 0.613333 |
0484eebaca79d9fa2793a8fa212f63ea48326d9f | 63,449 | py | Python | iclientpy/iclientpy/rest/api/model.py | SuperMap/iClientPython | 5e741c1efda9b12d321909428bd5c95e22482ea7 | [
"Apache-2.0"
] | 28 | 2018-04-19T07:11:34.000Z | 2022-02-24T08:31:08.000Z | iclientpy/iclientpy/rest/api/model.py | SuperMap/iClientPython | 5e741c1efda9b12d321909428bd5c95e22482ea7 | [
"Apache-2.0"
] | 3 | 2019-05-06T07:58:45.000Z | 2020-11-18T21:16:38.000Z | iclientpy/iclientpy/rest/api/model.py | SuperMap/iClientPython | 5e741c1efda9b12d321909428bd5c95e22482ea7 | [
"Apache-2.0"
] | 8 | 2018-06-14T02:29:53.000Z | 2020-11-03T01:36:35.000Z | from enum import Enum
from typing import List
from ._modeljsonutil import AbstractTypeParserSwitcherBuilder
class PostResultType(Enum):
AddContent = 'AddContent'
createAsynchronizedResource = 'createAsynchronizedResource'
CreateChild = 'CreateChild'
CreateChildAndReturnC... | 20.414736 | 114 | 0.674258 |
0486a0f578ea7f032eeca5a90aad890b57687059 | 1,356 | py | Python | monitors_website.py | SrinivasBeerge/monitoring-website | 0cda5181c0913a13de2f4242d4bf95aab7dad211 | [
"Apache-2.0"
] | null | null | null | monitors_website.py | SrinivasBeerge/monitoring-website | 0cda5181c0913a13de2f4242d4bf95aab7dad211 | [
"Apache-2.0"
] | null | null | null | monitors_website.py | SrinivasBeerge/monitoring-website | 0cda5181c0913a13de2f4242d4bf95aab7dad211 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import asyncio
import json
import threading
import sys
from lib.monitor import Monitor
from lib.stats_writer import StatsWriter
config = json.load(open('config.json'))
if __name__ == '__main__':
try:
monitor_thread = threading.Thread(target=run_monitor, daemon=True)
cons... | 28.851064 | 117 | 0.704277 |
0487bb220d4008a76d9487e6275983871d38df44 | 2,800 | py | Python | movielens_data.py | CLArg-group/Aspect-Item-Recommender-Systems | 6fe98657cb17bcb8f4eb4606bdea7446909f4a71 | [
"Apache-2.0"
] | 1 | 2021-02-09T21:40:08.000Z | 2021-02-09T21:40:08.000Z | movielens_data.py | CLArg-group/Aspect-Item-Recommender-Systems | 6fe98657cb17bcb8f4eb4606bdea7446909f4a71 | [
"Apache-2.0"
] | null | null | null | movielens_data.py | CLArg-group/Aspect-Item-Recommender-Systems | 6fe98657cb17bcb8f4eb4606bdea7446909f4a71 | [
"Apache-2.0"
] | 1 | 2021-02-09T21:40:55.000Z | 2021-02-09T21:40:55.000Z | ''' script to get predictions for movielens data '''
from measures import predictions
from processing import preprocessing
import time
import pickle
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--movielens_data', choices=['small', '100k'], required=True... | 37.333333 | 250 | 0.675714 |
0487ce7010d92a962a3a7ae8eef685aa4dc87679 | 11,608 | py | Python | src/main/python/widgets/syntax_highlighters/nasm_highlighter.py | michaelbradley91/NASM-Debugger | c7b5593cfa2583c48c6607ee6e7d608c486bce0a | [
"MIT"
] | null | null | null | src/main/python/widgets/syntax_highlighters/nasm_highlighter.py | michaelbradley91/NASM-Debugger | c7b5593cfa2583c48c6607ee6e7d608c486bce0a | [
"MIT"
] | null | null | null | src/main/python/widgets/syntax_highlighters/nasm_highlighter.py | michaelbradley91/NASM-Debugger | c7b5593cfa2583c48c6607ee6e7d608c486bce0a | [
"MIT"
] | null | null | null | from PyQt5.QtCore import QRegularExpression, Qt, QRegularExpressionMatchIterator, QRegularExpressionMatch, QRegExp
from PyQt5.QtGui import QSyntaxHighlighter, QTextDocument, QTextCharFormat, QFont, QColor
from widgets.syntax_highlighters.highlighting_rule import HighlightingRule
# noinspection SpellCheckingInspection... | 67.098266 | 120 | 0.504221 |
048a0ef7b9dd92a1600e7a3cea56404b05a0e29e | 923 | py | Python | hubconf.py | paulhuangkm/MiniASR | e7579a08f6fe9e7bc2a49c7ebbabe34b6679a22a | [
"MIT"
] | 11 | 2021-08-17T14:44:31.000Z | 2022-02-26T16:45:35.000Z | hubconf.py | paulhuangkm/MiniASR | e7579a08f6fe9e7bc2a49c7ebbabe34b6679a22a | [
"MIT"
] | null | null | null | hubconf.py | paulhuangkm/MiniASR | e7579a08f6fe9e7bc2a49c7ebbabe34b6679a22a | [
"MIT"
] | 4 | 2021-12-12T15:09:44.000Z | 2022-02-24T01:58:17.000Z | '''
File [ hubconf.py ]
Author [ Heng-Jui Chang (NTUEE) ]
Synopsis [ Hubconf. ]
'''
import os
import torch
from miniasr.utils import load_from_checkpoint
def asr_local(ckpt):
'''
ASR model from a local checkpoint.
'''
assert os.path.isfile(ckpt)
model, _, _ = load_from_ch... | 20.511111 | 100 | 0.628386 |
048a2c388530b970ba835f4824f7f77e7ebda823 | 1,964 | py | Python | Intuitive.py | Sundragon1993/Smart-real-estate-assistant | 3e901e86e1009bf464a44f870f3ee911217a9916 | [
"MIT"
] | null | null | null | Intuitive.py | Sundragon1993/Smart-real-estate-assistant | 3e901e86e1009bf464a44f870f3ee911217a9916 | [
"MIT"
] | null | null | null | Intuitive.py | Sundragon1993/Smart-real-estate-assistant | 3e901e86e1009bf464a44f870f3ee911217a9916 | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense
from sklearn import preprocessing
from keras.layers import Dropout
from keras import regularizers
df = pd.read_csv('housepricedata.csv')
print(df)
... | 29.757576 | 96 | 0.721996 |
048ae9bb8b1e3a03ae719af21c92a5fb4cfdf9ae | 7,934 | py | Python | arxiv_miner/mining_engine.py | valayDave/arxiv-miner | 47751ac731e797d9a0e49959d11c07857e747aee | [
"MIT"
] | 95 | 2021-05-28T23:07:13.000Z | 2022-02-08T02:44:09.000Z | arxiv_miner/mining_engine.py | valayDave/arxiv-miner | 47751ac731e797d9a0e49959d11c07857e747aee | [
"MIT"
] | 7 | 2021-05-30T01:46:49.000Z | 2021-07-15T23:18:54.000Z | arxiv_miner/mining_engine.py | valayDave/arxiv-miner | 47751ac731e797d9a0e49959d11c07857e747aee | [
"MIT"
] | 6 | 2021-05-29T09:58:34.000Z | 2021-06-10T10:32:27.000Z | """
Scraping Engine creates the Identiy Data for the papers.
The Mining Engine on Instantiation
- Will check For the New Papers to Mine.
- It will Create a ArxivPaper
--> Download Latex
--> Parse Latex
--> Sematically Parse the Paper here too.
... | 37.961722 | 136 | 0.612806 |
048b183da7874e695331f6fac93ac63e58a5596b | 3,190 | py | Python | janus/janus/analysis/tree_pairs_analysis.py | josepablocam/janus-public | 4713092b27d02386bdb408213d8edc0dc5859eec | [
"MIT"
] | null | null | null | janus/janus/analysis/tree_pairs_analysis.py | josepablocam/janus-public | 4713092b27d02386bdb408213d8edc0dc5859eec | [
"MIT"
] | null | null | null | janus/janus/analysis/tree_pairs_analysis.py | josepablocam/janus-public | 4713092b27d02386bdb408213d8edc0dc5859eec | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from argparse import ArgumentParser
from collections import defaultdict
import numpy as np
import os
import pickle
import matplotlib
matplotlib.use('pdf')
matplotlib.rcParams['pdf.fonttype'] = 42
matplotlib.rcParams['ps.fonttype'] = 42
matplotlib.rcParams['font.size'] = 12
import matplotlib.pypl... | 28.738739 | 79 | 0.638245 |
048b8a47b92597ba13d720ac05cab93a23005c88 | 5,807 | py | Python | models/ConvLarge.py | iSarmad/MeanTeacher-SNTG-HybridNet | 7ca9f8fc89a7be0524b2a0fb648678b9556f8843 | [
"MIT"
] | 24 | 2019-01-22T06:20:41.000Z | 2022-03-26T07:51:40.000Z | models/ConvLarge.py | iSarmad/MeanTeacher-SNTG-HybridNet | 7ca9f8fc89a7be0524b2a0fb648678b9556f8843 | [
"MIT"
] | 1 | 2021-04-12T06:27:43.000Z | 2021-04-12T06:27:43.000Z | models/ConvLarge.py | iSarmad/MeanTeacher-SNTG-HybridNet | 7ca9f8fc89a7be0524b2a0fb648678b9556f8843 | [
"MIT"
] | 12 | 2019-01-03T07:18:06.000Z | 2021-12-09T18:24:27.000Z | import torch.nn as nn
import torch.nn.functional as F
import torch
from torch.nn.init import kaiming_normal_
from torch.nn.utils import weight_norm
from torch.autograd.variable import Variable
import math
__all__ = ['convlarge']
# noise function taken from blog : https://ferretj.github.io/ml/2018/01/22/temporal-ense... | 37.464516 | 168 | 0.580851 |
048b9de36f4ed588142ded1ea107dfbc36e23fb6 | 932 | py | Python | track/urls.py | IJaccojwang/loop | c534051ac0a0744638624376c814e22dd62fbd08 | [
"MIT"
] | null | null | null | track/urls.py | IJaccojwang/loop | c534051ac0a0744638624376c814e22dd62fbd08 | [
"MIT"
] | 4 | 2021-03-19T01:02:03.000Z | 2021-09-08T01:01:45.000Z | track/urls.py | IJaccojwang/loop | c534051ac0a0744638624376c814e22dd62fbd08 | [
"MIT"
] | null | null | null | from django.conf.urls.static import static
from django.conf.urls import url
from django.conf import settings
from . import views
urlpatterns=[
url('^$', views.index, name = 'index'),
url(r'^profile$',views.profile,name='profile'),
url(r'^profile/edit$',views.edit_profile,name='edit'),
url(r'^profile/up... | 44.380952 | 81 | 0.716738 |
048f525023727acec650d30bcde2c29bc495c599 | 2,401 | py | Python | tests/presentation/test_create_presentation.py | abitoun-42/atpbar | fe5e4c24621b4707c5253be8ab2b5ae48f4801e3 | [
"BSD-3-Clause"
] | 72 | 2019-02-24T15:49:57.000Z | 2022-03-27T19:38:38.000Z | tests/presentation/test_create_presentation.py | abitoun-42/atpbar | fe5e4c24621b4707c5253be8ab2b5ae48f4801e3 | [
"BSD-3-Clause"
] | 24 | 2019-02-18T12:39:04.000Z | 2022-01-19T02:14:56.000Z | tests/presentation/test_create_presentation.py | abitoun-42/atpbar | fe5e4c24621b4707c5253be8ab2b5ae48f4801e3 | [
"BSD-3-Clause"
] | 10 | 2019-04-19T15:39:32.000Z | 2022-01-08T16:57:42.000Z | # Tai Sakuma <tai.sakuma@gmail.com>
import os
import sys
import pytest
import unittest.mock as mock
has_jupyter_notebook = False
try:
import ipywidgets as widgets
from IPython.display import display
has_jupyter_notebook = True
except ImportError:
pass
from atpbar.presentation.create import create_pr... | 30.392405 | 82 | 0.742191 |
048fe32428b42c9f1df5738539aa6f0a4f71bad4 | 4,652 | py | Python | GridTrader_with_db.py | wcen/Leveraged-grid-trading-bot | a6920b9c0d6aecaa6e28c6e12d760b75e5d9bff2 | [
"MIT"
] | 6 | 2021-11-20T21:47:42.000Z | 2022-03-31T05:38:27.000Z | GridTrader_with_db.py | webclinic017/Leveraged-grid-trading-bot | a698bb5bea0fed00c28dce023afa751c4f82e869 | [
"MIT"
] | null | null | null | GridTrader_with_db.py | webclinic017/Leveraged-grid-trading-bot | a698bb5bea0fed00c28dce023afa751c4f82e869 | [
"MIT"
] | 5 | 2021-10-11T20:25:38.000Z | 2022-03-04T15:02:17.000Z | import sys
import time
import datetime
import asyncio
import pytz
from GridTrader import GridTrader
from db_connector import db_connector
if __name__ == '__main__':
if len(sys.argv) > 1:
GridTrader_with_db.start(trader=GridTrader_with_db(file=f'{sys.argv[1]}'))
else:
GridTrader_with_db.start(tr... | 41.90991 | 200 | 0.557395 |
04906bc044f904359850b223172cd50440da19f9 | 1,218 | py | Python | pstests/settings/launch_scheduler.py | sj1104/Het | 81b7e9f0f593108db969fc46a1af3df74b825230 | [
"Apache-2.0"
] | 2 | 2021-12-05T07:11:04.000Z | 2021-12-15T07:53:48.000Z | pstests/settings/launch_scheduler.py | sj1104/Het | 81b7e9f0f593108db969fc46a1af3df74b825230 | [
"Apache-2.0"
] | null | null | null | pstests/settings/launch_scheduler.py | sj1104/Het | 81b7e9f0f593108db969fc46a1af3df74b825230 | [
"Apache-2.0"
] | 3 | 2021-04-01T22:39:13.000Z | 2021-04-21T11:51:57.000Z | from athena import gpu_ops as ad
import os
import sys
import yaml
import json
import multiprocessing
import signal
if __name__ == '__main__':
main()
| 26.478261 | 80 | 0.611658 |
049079e60fe29248a1254435c6e61bcfeed1a7dc | 2,030 | py | Python | venv/Lib/site-packages/streamlit/proto/Balloons_pb2.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 7 | 2022-01-16T12:28:16.000Z | 2022-03-04T15:31:45.000Z | venv/Lib/site-packages/streamlit/proto/Balloons_pb2.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 8 | 2021-09-22T12:47:32.000Z | 2022-01-14T21:30:38.000Z | venv/Lib/site-packages/streamlit/proto/Balloons_pb2.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 1 | 2021-03-30T05:02:53.000Z | 2021-03-30T05:02:53.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Balloons.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
fr... | 28.591549 | 170 | 0.759606 |
0491276565adb67c9144a9e141d865fe9de613d1 | 10,959 | py | Python | featureio/parsers.py | nijibabulu/featureio | 23c439de645a654f1e548c4ff0df409ecd3a2935 | [
"MIT"
] | null | null | null | featureio/parsers.py | nijibabulu/featureio | 23c439de645a654f1e548c4ff0df409ecd3a2935 | [
"MIT"
] | null | null | null | featureio/parsers.py | nijibabulu/featureio | 23c439de645a654f1e548c4ff0df409ecd3a2935 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import functools
from . import gene
'''
def GFF3Iterator(handle, cls=Gene):
genes = {}
children = {}
for lineno,line in enumerate(handle):
if line.startswith('#'):
continue
try:
chrom,source,ftype,start,end,score,strand,_,a = line.strip(... | 35.237942 | 94 | 0.521763 |
049138351f7eb67276a10e95ccf95b9660afd51b | 388 | py | Python | dufi/gui/boxes/tkutils.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/boxes/tkutils.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/boxes/tkutils.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | # [SublimeLinter @python:3]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
| 32.333333 | 82 | 0.690722 |
04929055f4410ade9e4497312f0a6f059a8507e0 | 8,183 | py | Python | fiber/config.py | agrimrules/fiber | e21e7dea019eae6259705b351f0e196f9eaa4835 | [
"Apache-2.0"
] | 1 | 2020-08-11T01:52:08.000Z | 2020-08-11T01:52:08.000Z | fiber/config.py | agrimrules/fiber | e21e7dea019eae6259705b351f0e196f9eaa4835 | [
"Apache-2.0"
] | null | null | null | fiber/config.py | agrimrules/fiber | e21e7dea019eae6259705b351f0e196f9eaa4835 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Uber Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 32.995968 | 246 | 0.638397 |
0493ef8fc992e579828c78f162358b41a9e24ff1 | 14,188 | py | Python | compartmental.py | burakbudanur/compartmental | 9729aa2b7a7464c7a866828b72b3a09d95e0017a | [
"MIT"
] | null | null | null | compartmental.py | burakbudanur/compartmental | 9729aa2b7a7464c7a866828b72b3a09d95e0017a | [
"MIT"
] | null | null | null | compartmental.py | burakbudanur/compartmental | 9729aa2b7a7464c7a866828b72b3a09d95e0017a | [
"MIT"
] | null | null | null | import numpy as np
import networkx as nx
import sympy as sp
import matplotlib.pyplot as plt
import matplotlib as mpl
from sys import exit
from scipy.optimize import curve_fit
from scipy.integrate import odeint
| 31.740492 | 96 | 0.518889 |
04943539255f8dbd1dd0ebb1cba90f982f64b11a | 27,133 | py | Python | library/frontend/sysadmin/inventory.py | GNHJM/lykops | ed7e35d0c1abb1eacf7ab365e041347d0862c0a7 | [
"Apache-2.0"
] | 141 | 2017-01-09T07:23:55.000Z | 2022-01-29T09:56:16.000Z | library/frontend/sysadmin/inventory.py | GNHJM/lykops | ed7e35d0c1abb1eacf7ab365e041347d0862c0a7 | [
"Apache-2.0"
] | 13 | 2018-01-09T01:49:59.000Z | 2021-09-23T23:21:29.000Z | library/frontend/sysadmin/inventory.py | GNHJM/lykops | ed7e35d0c1abb1eacf7ab365e041347d0862c0a7 | [
"Apache-2.0"
] | 68 | 2017-01-10T01:56:43.000Z | 2021-10-11T10:16:00.000Z | import time
from library.frontend import Base
from library.utils.file import write_file
from library.utils.type_conv import random_str
| 45.071429 | 225 | 0.4918 |
049436623453edf52badd7f36958c3fdba39f850 | 87 | py | Python | django_gotolong/fratio/apps.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 15 | 2019-12-06T16:19:45.000Z | 2021-08-20T13:22:22.000Z | django_gotolong/fratio/apps.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 14 | 2020-12-08T10:45:05.000Z | 2021-09-21T17:23:45.000Z | django_gotolong/fratio/apps.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 9 | 2020-01-01T03:04:29.000Z | 2021-04-18T08:42:30.000Z | from django.apps import AppConfig
| 14.5 | 33 | 0.747126 |
0495634b91f43d0e7597e99e33589f764a60171d | 13,207 | py | Python | tpx3format/read.py | M4I-nanoscopy/tpx3HitParser | 76147455a75effc1e799b6569c23320c5a4cf21a | [
"MIT"
] | 9 | 2021-03-02T12:13:54.000Z | 2022-03-23T15:36:09.000Z | tpx3format/read.py | M4I-nanoscopy/tpx3HitParser | 76147455a75effc1e799b6569c23320c5a4cf21a | [
"MIT"
] | 1 | 2020-10-08T10:45:15.000Z | 2021-02-15T15:27:56.000Z | tpx3format/read.py | M4I-nanoscopy/tpx3HitParser | 76147455a75effc1e799b6569c23320c5a4cf21a | [
"MIT"
] | 1 | 2022-03-25T08:42:54.000Z | 2022-03-25T08:42:54.000Z | import logging
import struct
import h5py
import numpy as np
from lib.constants import *
import os
# TODO: Logging does not work for multiprocessing processes on Windows
logger = logging.getLogger('root')
# TDC (Time to Digital Converter) packages can come from the external trigger
| 32.609877 | 132 | 0.602181 |
04959864b1c4805376ca408fc8be78c66f6a18b8 | 4,717 | py | Python | pysen/ext/isort_wrapper.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 423 | 2021-03-22T08:45:12.000Z | 2022-03-31T21:05:53.000Z | pysen/ext/isort_wrapper.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 1 | 2022-02-23T08:53:24.000Z | 2022-03-23T14:11:54.000Z | pysen/ext/isort_wrapper.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 9 | 2021-03-26T14:20:07.000Z | 2022-03-24T13:17:06.000Z | import copy
import dataclasses
import enum
import functools
import pathlib
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple
from pysen import process_utils
from pysen.command import check_command_installed
from pysen.dist_version import get_version
from pysen.error_lines import parse_error_diffs
from... | 32.088435 | 89 | 0.682213 |
049610794903c58c0f44445aec069ae31619a636 | 713 | py | Python | agsadmin/rest_admin/system/System.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 2 | 2015-12-07T05:53:29.000Z | 2020-09-13T18:12:15.000Z | agsadmin/rest_admin/system/System.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 4 | 2015-03-09T05:59:14.000Z | 2018-01-09T00:12:56.000Z | agsadmin/rest_admin/system/System.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 5 | 2015-03-09T01:05:24.000Z | 2019-09-09T23:01:21.000Z | from __future__ import (absolute_import, division, print_function, unicode_literals)
from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str,
super, zip)
from ..._endpoint_base import EndpointBase
from .Directories import Directories | 33.952381 | 117 | 0.692847 |
0498bc969c8391d24523c65b85a0eaca372772f0 | 1,816 | py | Python | lib/cello_util/plasmid_map/plasmid_html.py | OGalOz/cello | 1b62807e9881900daf8f3f59eafb11743ad84d6d | [
"MIT"
] | null | null | null | lib/cello_util/plasmid_map/plasmid_html.py | OGalOz/cello | 1b62807e9881900daf8f3f59eafb11743ad84d6d | [
"MIT"
] | null | null | null | lib/cello_util/plasmid_map/plasmid_html.py | OGalOz/cello | 1b62807e9881900daf8f3f59eafb11743ad84d6d | [
"MIT"
] | null | null | null | #python3
"""
Takes template and inserts javascript into template html
"""
import json
"""
Inputs:
plasmid_js: (str) filepath to file containing javascript string.
out_fp: (str) filepath to where we'll write the file out.
"""
| 25.577465 | 72 | 0.623899 |
049aa68e09eda0578871d1ae318ec877fd5826d7 | 1,985 | py | Python | tests/test_cluster_01.py | wavestoweather/enstools | d0f612b0187b0ad54dfbbb78aa678564f46eaedf | [
"Apache-2.0"
] | 5 | 2021-12-16T14:08:00.000Z | 2022-03-02T14:08:10.000Z | tests/test_cluster_01.py | wavestoweather/enstools | d0f612b0187b0ad54dfbbb78aa678564f46eaedf | [
"Apache-2.0"
] | null | null | null | tests/test_cluster_01.py | wavestoweather/enstools | d0f612b0187b0ad54dfbbb78aa678564f46eaedf | [
"Apache-2.0"
] | null | null | null | import numpy
from enstools.clustering import prepare
from enstools.clustering import cluster
from sklearn.cluster import KMeans
variables = []
ens_members = 20
n_variables = 2
def setup():
"""
create two variables for clustering
"""
for ivar in range(n_variables):
var = numpy.random.randn(en... | 28.357143 | 82 | 0.663476 |
049b2c4530e3c2a3c838d7a8ba5e4731d9eb7c02 | 96 | py | Python | venv/lib/python3.8/site-packages/numpy/f2py/__main__.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/numpy/f2py/__main__.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/numpy/f2py/__main__.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/ea/2d/a3/547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c | 96 | 96 | 0.895833 |
049b4aaa6c9b6af5b5f7a084af5bbd63b6108f08 | 17,349 | py | Python | magpylib/_src/display/display_matplotlib.py | OrtnerMichael/magPyLib | 4c7e7f56f6e0b915ec0e024c172c460fa80126e5 | [
"BSD-2-Clause"
] | null | null | null | magpylib/_src/display/display_matplotlib.py | OrtnerMichael/magPyLib | 4c7e7f56f6e0b915ec0e024c172c460fa80126e5 | [
"BSD-2-Clause"
] | null | null | null | magpylib/_src/display/display_matplotlib.py | OrtnerMichael/magPyLib | 4c7e7f56f6e0b915ec0e024c172c460fa80126e5 | [
"BSD-2-Clause"
] | null | null | null | """ matplotlib draw-functionalities"""
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
from magpylib._src.defaults.defaults_classes import default_settings as Config
from magpylib._src.display.display_utility import draw_arrow_from_vertices
from magpylib._src.... | 34.837349 | 88 | 0.560551 |
049bdf62a0d5fe27ae8813de7898e6f4dff58bd6 | 248 | py | Python | Python/rand.py | jayyok/ensiie-P | 6739c8478a0631c4c0966aad74d379df12e0bada | [
"Apache-2.0"
] | null | null | null | Python/rand.py | jayyok/ensiie-P | 6739c8478a0631c4c0966aad74d379df12e0bada | [
"Apache-2.0"
] | null | null | null | Python/rand.py | jayyok/ensiie-P | 6739c8478a0631c4c0966aad74d379df12e0bada | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
from random import randint
# Programme dliverant un nombre entre min et max
min = int(input('Veuillez entrer la valeur minimale :\t'))
max = int(input('Veuillez entrer la valeur maximale :\t'))
print(randint(min,max)) | 27.555556 | 59 | 0.717742 |
049c51b8f00635b7afe59969e4b68f6036acb2b1 | 3,493 | py | Python | solum/builder/controllers/v1/image.py | ed-/solum | 2d23edb7fb53e1bdeff510710824658575d166c4 | [
"Apache-2.0"
] | null | null | null | solum/builder/controllers/v1/image.py | ed-/solum | 2d23edb7fb53e1bdeff510710824658575d166c4 | [
"Apache-2.0"
] | null | null | null | solum/builder/controllers/v1/image.py | ed-/solum | 2d23edb7fb53e1bdeff510710824658575d166c4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 - Rackspace Hosting
#
# 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 ... | 33.912621 | 75 | 0.665331 |
049db6a644f9d8354d438e91d794bf040ae0bcbe | 1,091 | py | Python | pyAI-OpenMV4/3.机器学习/2.笑脸识别/nn_haar_smile_detection.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | 73 | 2020-05-02T13:48:27.000Z | 2022-03-26T13:15:10.000Z | pyAI-OpenMV4/3.机器学习/2.笑脸识别/nn_haar_smile_detection.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | null | null | null | pyAI-OpenMV4/3.机器学习/2.笑脸识别/nn_haar_smile_detection.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | 50 | 2020-05-15T13:57:28.000Z | 2022-03-30T14:03:33.000Z | # Haar Cascade + CNN .
#
#01Studio
import sensor, time, image, os, nn
#
sensor.reset() # Reset and initialize the sensor.
sensor.set_contrast(2)
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
sen... | 25.372093 | 91 | 0.64528 |
049e976fdc251ba040ae03bbea33cb7d8d2af1b6 | 4,093 | py | Python | tests/test_models/test_loss.py | williamcorsel/mmrotate | 00a3b9af34c4e36c82616d98fdb91b468d4cfb34 | [
"Apache-2.0"
] | 1 | 2022-02-18T11:01:19.000Z | 2022-02-18T11:01:19.000Z | tests/test_models/test_loss.py | williamcorsel/mmrotate | 00a3b9af34c4e36c82616d98fdb91b468d4cfb34 | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_loss.py | williamcorsel/mmrotate | 00a3b9af34c4e36c82616d98fdb91b468d4cfb34 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch
from mmrotate.models.losses import (BCConvexGIoULoss, ConvexGIoULoss, GDLoss,
GDLoss_v1, KFLoss, KLDRepPointsLoss)
# @pytest.mark.skipif(
# not torch.cuda.is_available(), reason='requires CUDA support'... | 31.007576 | 78 | 0.66064 |
049f07024faf94f923d6bd6f576a06c30bfbcb2d | 1,580 | py | Python | api/serializers.py | 1-0/neox_project | d3ee3b6a6d1bc11d30e2060ae8d1a389f0933338 | [
"BSD-3-Clause"
] | null | null | null | api/serializers.py | 1-0/neox_project | d3ee3b6a6d1bc11d30e2060ae8d1a389f0933338 | [
"BSD-3-Clause"
] | null | null | null | api/serializers.py | 1-0/neox_project | d3ee3b6a6d1bc11d30e2060ae8d1a389f0933338 | [
"BSD-3-Clause"
] | null | null | null | from rest_auth import serializers
from rest_framework import serializers as rf_serializers
from neox_project.models import CustomUser
from post import models
| 22.253521 | 65 | 0.586076 |
049f32d34a3c6febe0ef73ec987f383e72dcf188 | 1,170 | py | Python | mapshader/__init__.py | lex-c/mapshader | 321246b3011e36abe580d0beff4f07ec5ee38d95 | [
"MIT"
] | null | null | null | mapshader/__init__.py | lex-c/mapshader | 321246b3011e36abe580d0beff4f07ec5ee38d95 | [
"MIT"
] | null | null | null | mapshader/__init__.py | lex-c/mapshader | 321246b3011e36abe580d0beff4f07ec5ee38d95 | [
"MIT"
] | null | null | null | import sys
try:
from ._version import __version__
except ImportError:
__version__ = "Unknown"
def test():
"""Run the mapshader test suite."""
import os
try:
import pytest
except ImportError:
import sys
sys.stderr.write("You need to install py.test to run tests.\n\n")
... | 31.621622 | 109 | 0.529915 |
049f8780ded61cd749db86845928ea603541d12d | 1,357 | py | Python | server/apps/bot/dispatcher/callbacks/list_movies.py | LowerDeez/movies_finder | 3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4 | [
"MIT"
] | null | null | null | server/apps/bot/dispatcher/callbacks/list_movies.py | LowerDeez/movies_finder | 3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4 | [
"MIT"
] | null | null | null | server/apps/bot/dispatcher/callbacks/list_movies.py | LowerDeez/movies_finder | 3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
from apps.bot.dispatcher.consts import (
CONSTS,
ACTION_CHOICES,
STATE_CHOICES
)
from apps.bot.dispatcher.services import (
get_current_page,
render_movies,
get_last_movie_keyboard
)
from apps.bot.tmdb import TMDBWrapper
if TYPE_CHECKING:
from telegram impo... | 23.807018 | 71 | 0.704495 |
049fde9a13aed8026d3cfea763d0abe219861381 | 5,030 | py | Python | analysis_codes_v2/Rmax_exp_DanSeVData.py | zqwei/LIF_Vis_model | 16f651ac827ba5f0feb40a0e619e600f1251d009 | [
"MIT"
] | null | null | null | analysis_codes_v2/Rmax_exp_DanSeVData.py | zqwei/LIF_Vis_model | 16f651ac827ba5f0feb40a0e619e600f1251d009 | [
"MIT"
] | null | null | null | analysis_codes_v2/Rmax_exp_DanSeVData.py | zqwei/LIF_Vis_model | 16f651ac827ba5f0feb40a0e619e600f1251d009 | [
"MIT"
] | null | null | null | import pickle
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as scp_stats
import pandas as pd
import f_rate_t_by_type_functions as frtbt
N_trials = 15
# Decide which systems we are doing analysis for.
sys_dict = {}
sys_dict['all_mice'] = { 'cells_file': '../build/ll1.csv', 'f_1': '/data/mat... | 41.916667 | 305 | 0.665408 |
04a08737b3cd2902f639e32914df18c75d140031 | 4,248 | py | Python | scripts/build-python-env.py | tingbot/tide-electron | 1865df30125ef455c5a1e4576bf5acfc2beaa572 | [
"BSD-2-Clause"
] | 26 | 2015-12-22T18:55:13.000Z | 2020-10-27T13:54:48.000Z | scripts/build-python-env.py | tingbot/tide-electron | 1865df30125ef455c5a1e4576bf5acfc2beaa572 | [
"BSD-2-Clause"
] | 73 | 2015-12-18T18:25:17.000Z | 2020-11-14T15:38:02.000Z | scripts/build-python-env.py | tingbot/tide-electron | 1865df30125ef455c5a1e4576bf5acfc2beaa572 | [
"BSD-2-Clause"
] | 11 | 2016-04-08T17:41:32.000Z | 2021-12-07T17:20:00.000Z | import os, sys, subprocess, tempfile, shutil, urllib2, stat
python = sys.executable
# homebrew-installed python can't install with --target. use system python instead.
if sys.platform == 'darwin':
python = '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python'
if __name__ == '__main__':
mac_r... | 35.697479 | 95 | 0.678437 |
04a27c0d4d3c374f1212533d3cfbf7e2202872c1 | 1,704 | py | Python | subt/test_subt.py | robotika/osgar | 6f4f584d5553ab62c08a1c7bb493fefdc9033173 | [
"MIT"
] | 12 | 2017-02-16T10:22:59.000Z | 2022-03-20T05:48:06.000Z | subt/test_subt.py | robotika/osgar | 6f4f584d5553ab62c08a1c7bb493fefdc9033173 | [
"MIT"
] | 618 | 2016-08-30T04:46:12.000Z | 2022-03-25T16:03:10.000Z | subt/test_subt.py | robotika/osgar | 6f4f584d5553ab62c08a1c7bb493fefdc9033173 | [
"MIT"
] | 11 | 2016-08-27T20:02:55.000Z | 2022-03-07T08:53:53.000Z | import unittest
import logging
import math
from unittest.mock import MagicMock, call
from osgar.bus import Bus
from osgar.lib import quaternion
from subt.main import SubTChallenge
from subt.trace import distance3D
from subt import simulation
g_logger = logging.getLogger(__name__)
if __name__ == "__main__":
... | 29.894737 | 151 | 0.627934 |
04a511328ea6812f5cb4a82610bb9fa3c6ef7ac1 | 501 | py | Python | right_click_action.py | greatfirsty/hellopython | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | [
"Apache-2.0"
] | 1 | 2019-05-04T01:25:43.000Z | 2019-05-04T01:25:43.000Z | right_click_action.py | greatfirsty/hellopython | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | [
"Apache-2.0"
] | null | null | null | right_click_action.py | greatfirsty/hellopython | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from selenium.webdriver import ActionChains
dr = webdriver.Chrome()
dr.get('https://yunpan.360.cn/')
account = dr.find_element_by_name("account")
account.clear()
account.send_keys('183xxxx')
password = dr.find_element_by_name("password")
password.clear()
password.send_keys('hxxxxxxx')
l... | 33.4 | 112 | 0.788423 |
04a51c3634fa37cb65a083a5e078715450463600 | 260 | py | Python | registration/get_image.py | roguen/jive-derby | bc9e0f63e4298c3f1869288345d79e320fd20b65 | [
"Apache-2.0"
] | null | null | null | registration/get_image.py | roguen/jive-derby | bc9e0f63e4298c3f1869288345d79e320fd20b65 | [
"Apache-2.0"
] | null | null | null | registration/get_image.py | roguen/jive-derby | bc9e0f63e4298c3f1869288345d79e320fd20b65 | [
"Apache-2.0"
] | null | null | null | from picamera import PiCamera
import time
if __name__ == '__main__':
captureImage()
| 17.333333 | 41 | 0.730769 |
04a537a4ea9b99aa485e266be76f21169340f9a5 | 329 | py | Python | src/api/__init__.py | week-with-me/fastapi-graphql | faf0ab428e47f09c1d4d3939c03e98320962a45b | [
"MIT"
] | null | null | null | src/api/__init__.py | week-with-me/fastapi-graphql | faf0ab428e47f09c1d4d3939c03e98320962a45b | [
"MIT"
] | null | null | null | src/api/__init__.py | week-with-me/fastapi-graphql | faf0ab428e47f09c1d4d3939c03e98320962a45b | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from src.api import graphql, rest
from src.core import get_settings
router = APIRouter()
router.include_router(
router = graphql.router,
prefix = get_settings().GRAPHQL_API,
tags = ['GraphQL']
)
router.include_router(
router = rest.router,
prefix = get_settings().R... | 20.5625 | 40 | 0.723404 |
04a725fd777c3aa01c9d14a46b6d2bdbf741ca2a | 4,012 | py | Python | gpvdm_gui/gui/scan_tab_ribbon.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 12 | 2016-09-13T08:58:13.000Z | 2022-01-17T07:04:52.000Z | gpvdm_gui/gui/scan_tab_ribbon.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 3 | 2017-11-11T12:33:02.000Z | 2019-03-08T00:48:08.000Z | gpvdm_gui/gui/scan_tab_ribbon.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 6 | 2019-01-03T06:17:12.000Z | 2022-01-01T15:59:00.000Z | # -*- coding: utf-8 -*-
#
# General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall
# model for 1st, 2nd and 3rd generation solar cells.
# Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com
#
# https://www.gpvdm.com
#
# This program is free ... | 30.165414 | 166 | 0.738285 |
04a74e30d5419ee313811575840ab17653f5c839 | 43 | py | Python | ctfcli/__init__.py | MilyMilo/ctfcli | 335d7b74b8b24924e42f5d96a9a68d9327e11ceb | [
"Apache-2.0"
] | null | null | null | ctfcli/__init__.py | MilyMilo/ctfcli | 335d7b74b8b24924e42f5d96a9a68d9327e11ceb | [
"Apache-2.0"
] | null | null | null | ctfcli/__init__.py | MilyMilo/ctfcli | 335d7b74b8b24924e42f5d96a9a68d9327e11ceb | [
"Apache-2.0"
] | null | null | null | __version__ = "0.0.10"
__name__ = "ctfcli"
| 14.333333 | 22 | 0.674419 |
04a775d42c495fff1900d8dbaff701bb8784c81d | 5,666 | py | Python | sdk/python/pulumi_ucloud/udb/get_db_instance.py | AaronFriel/pulumi-ucloud | 199278786dddf46bdd370f3f805e30b279c63ff2 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-08-18T04:55:38.000Z | 2021-09-08T07:59:24.000Z | sdk/python/pulumi_ucloud/udb/get_db_instance.py | AaronFriel/pulumi-ucloud | 199278786dddf46bdd370f3f805e30b279c63ff2 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-28T17:59:37.000Z | 2022-01-29T03:44:09.000Z | sdk/python/pulumi_ucloud/udb/get_db_instance.py | AaronFriel/pulumi-ucloud | 199278786dddf46bdd370f3f805e30b279c63ff2 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-06-23T07:10:40.000Z | 2021-06-23T09:25:12.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 37.523179 | 203 | 0.666961 |
04a7d1ad3d2c4355c91792c04e9a6461198ad07a | 2,855 | py | Python | Components/text.py | amauri-bz/az_log_viewer | 3d11bf94993e34ce1253266b9bcf64db4c4ba6c4 | [
"MIT"
] | null | null | null | Components/text.py | amauri-bz/az_log_viewer | 3d11bf94993e34ce1253266b9bcf64db4c4ba6c4 | [
"MIT"
] | null | null | null | Components/text.py | amauri-bz/az_log_viewer | 3d11bf94993e34ce1253266b9bcf64db4c4ba6c4 | [
"MIT"
] | null | null | null | import re
import tkinter as tk
from tkinter import ttk
from Components.db import Database
from Components.pop_up_menu import PopUpMenu
from Components.text_sync import TextSync
from Components.custom_text import *
| 33.588235 | 96 | 0.594396 |
04a925ee94d0667d1c3744e9e776c953289f89bb | 2,376 | py | Python | test.py | JavanTang/Chinese-Text-Classification-Pytorch | d3e99ad7b4b824ebb63b6c6c7d9b29d00714a4aa | [
"MIT"
] | null | null | null | test.py | JavanTang/Chinese-Text-Classification-Pytorch | d3e99ad7b4b824ebb63b6c6c7d9b29d00714a4aa | [
"MIT"
] | null | null | null | test.py | JavanTang/Chinese-Text-Classification-Pytorch | d3e99ad7b4b824ebb63b6c6c7d9b29d00714a4aa | [
"MIT"
] | null | null | null | '''
@Author: TangZhiFeng
@Data: Do not edit
@LastEditors: TangZhiFeng
@LastEditTime: 2020-04-16 09:59:59
@Description:
'''
import numpy as np
import os
import pickle as pkl
import torch
import unittest # The test framework
from models import FastText
from utils_fasttext import sentance2ids, build_iterator
config = F... | 35.462687 | 124 | 0.639731 |
04a9860077d854d091c1198ef151308897080df1 | 1,913 | py | Python | applications/plugins/Compliant/examples/chain.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Compliant/examples/chain.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Compliant/examples/chain.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | import Sofa
from Compliant import StructuralAPI
StructuralAPI.geometric_stiffness=2
| 35.425926 | 150 | 0.651856 |
04a9cf8fa788b8c75de2f502190ad9f5825f1285 | 5,636 | py | Python | cwe_sfp_to_threatspec.py | threatspec/pythreatspec | 77c0c7d3052adaeb91ea28ae61e60538c6d3fa9b | [
"MIT"
] | 10 | 2018-01-14T22:53:29.000Z | 2019-05-22T08:26:56.000Z | cwe_sfp_to_threatspec.py | threatspec/pythreatspec | 77c0c7d3052adaeb91ea28ae61e60538c6d3fa9b | [
"MIT"
] | 1 | 2019-02-17T23:39:19.000Z | 2019-02-17T23:39:19.000Z | cwe_sfp_to_threatspec.py | threatspec/pythreatspec | 77c0c7d3052adaeb91ea28ae61e60538c6d3fa9b | [
"MIT"
] | 4 | 2018-03-03T03:16:37.000Z | 2019-02-17T03:09:33.000Z | #!/usr/bin/env python
import re
import sys
import xmltodict
import json
import time
import collections
from pprint import pprint
if len(sys.argv) != 2:
print("Usage: cwe_to_threatspec.py CWE_XML_FILE")
sys.exit(1)
filename = sys.argv[1]
print("Parsing CWE file {}".format(filename))
with open(filename) as fh... | 32.767442 | 238 | 0.617814 |
04aa7910e8cab379189e19322c7e515caccf7fc0 | 6,548 | py | Python | py-algo/sorting/comparision.py | FPGSchiba/py-algo | 35cfa6cd82585ecaf58473f0595ebfb5e2331d70 | [
"Apache-2.0"
] | null | null | null | py-algo/sorting/comparision.py | FPGSchiba/py-algo | 35cfa6cd82585ecaf58473f0595ebfb5e2331d70 | [
"Apache-2.0"
] | null | null | null | py-algo/sorting/comparision.py | FPGSchiba/py-algo | 35cfa6cd82585ecaf58473f0595ebfb5e2331d70 | [
"Apache-2.0"
] | null | null | null | """
Algorithms are from here: https://en.wikipedia.org/wiki/Sorting_algorithm#Comparison_sorts
"""
import math
from heapq import heappop, heappush
def quicksort(array: list) -> list:
"""
Quicksort Algorithm, implemented with the Explanation on: https://en.wikipedia.org/wiki/Quicksort
:param array: The arr... | 23.056338 | 111 | 0.619273 |
04aa8d5140919fcae6e3bfc59fd518b87bf275c1 | 138 | py | Python | pubmed/test.py | excelsimon/Pubmed-author_email-extract | 2936573ae3c466021a6f7686c7f9de8c329c69eb | [
"MIT"
] | 1 | 2017-08-14T03:49:03.000Z | 2017-08-14T03:49:03.000Z | pubmed/test.py | excelsimon/Pubmed-author_email-extract | 2936573ae3c466021a6f7686c7f9de8c329c69eb | [
"MIT"
] | null | null | null | pubmed/test.py | excelsimon/Pubmed-author_email-extract | 2936573ae3c466021a6f7686c7f9de8c329c69eb | [
"MIT"
] | 4 | 2017-05-13T05:27:52.000Z | 2020-11-05T16:17:20.000Z | emailList = []
f = open('test.txt','r')
for ln in f:
if ' ' in ln:
continue
emailList.append(ln)
print 'emailList: ',emailList
| 17.25 | 30 | 0.608696 |
04ad585a9a2b68ae8175682dbfc62c2645117883 | 300 | py | Python | baseline/crosswalk.py | wko/clinical-trial-criteria-translation | 1478c5bab3511c7a92313a488510641d161deeff | [
"Apache-2.0"
] | null | null | null | baseline/crosswalk.py | wko/clinical-trial-criteria-translation | 1478c5bab3511c7a92313a488510641d161deeff | [
"Apache-2.0"
] | null | null | null | baseline/crosswalk.py | wko/clinical-trial-criteria-translation | 1478c5bab3511c7a92313a488510641d161deeff | [
"Apache-2.0"
] | null | null | null | import requests
import os
# translate CUIs into SNOMED Ids
| 27.272727 | 85 | 0.683333 |
04ae09bb61ba231f35c7bc90f21c1f434a2f9b74 | 4,469 | py | Python | DAO.py | arturj9/sistema-mercearia-python | 000c7e887350768483d7a7a6058f2a5d0dcaa83d | [
"MIT"
] | null | null | null | DAO.py | arturj9/sistema-mercearia-python | 000c7e887350768483d7a7a6058f2a5d0dcaa83d | [
"MIT"
] | null | null | null | DAO.py | arturj9/sistema-mercearia-python | 000c7e887350768483d7a7a6058f2a5d0dcaa83d | [
"MIT"
] | null | null | null | from Models import * | 42.160377 | 85 | 0.55829 |
04ae9a2e77bc4446dfbf168a4becf211916997ba | 1,221 | py | Python | invenio_previewer/extensions/gis.py | nyudlts/invenio-previewer | 89da1108a8ed8c38e98bebc470d33e0447bea277 | [
"MIT"
] | null | null | null | invenio_previewer/extensions/gis.py | nyudlts/invenio-previewer | 89da1108a8ed8c38e98bebc470d33e0447bea277 | [
"MIT"
] | null | null | null | invenio_previewer/extensions/gis.py | nyudlts/invenio-previewer | 89da1108a8ed8c38e98bebc470d33e0447bea277 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""GIS data previewer"""
from __future__ import absolute_import, print_function
from flask import render_template
from ..proxies import current_previewer
import zipfile
import cchardet as chardet
from six import binary_type
previewable_extensions = ['zip']
def can_preview(file):
"""Chec... | 30.525 | 78 | 0.638002 |
04aee130a0ba58f7ca67dbf66a4de44e593214db | 485 | py | Python | utils.py | B-Trindade/Trabalho-Final | 70459a9492cb81c552e6465e846558c608102412 | [
"MIT"
] | null | null | null | utils.py | B-Trindade/Trabalho-Final | 70459a9492cb81c552e6465e846558c608102412 | [
"MIT"
] | null | null | null | utils.py | B-Trindade/Trabalho-Final | 70459a9492cb81c552e6465e846558c608102412 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from enum import Enum
TIMEOUT = 3
CMD_END = 'end'
BUFSIZE = 4096 | 14.69697 | 33 | 0.71134 |
04afe6fb467023d132550f2ffcf876586c931bf4 | 561 | py | Python | dictionary/models/kanji_reference_daikanwajiten.py | kaikeru/japanese-tools | 39ae7be0590954aae0976141a57d7ae59e85891c | [
"MIT"
] | null | null | null | dictionary/models/kanji_reference_daikanwajiten.py | kaikeru/japanese-tools | 39ae7be0590954aae0976141a57d7ae59e85891c | [
"MIT"
] | null | null | null | dictionary/models/kanji_reference_daikanwajiten.py | kaikeru/japanese-tools | 39ae7be0590954aae0976141a57d7ae59e85891c | [
"MIT"
] | null | null | null | """The version information of the kanjidict2.xml file."""
from peewee import CharField, ForeignKeyField
from models.base import BaseModel
from models.kanji_reference_index import KanjiReferenceIndex
| 26.714286 | 60 | 0.736185 |
04b09aa8713d5ab8e03aaae8e43c98c2dc1a8ee7 | 23 | py | Python | zipfanalysis/__init__.py | chasmani/zipfanalysis | ffec413522037005fa70441e7b15f9675a11cd78 | [
"MIT"
] | null | null | null | zipfanalysis/__init__.py | chasmani/zipfanalysis | ffec413522037005fa70441e7b15f9675a11cd78 | [
"MIT"
] | null | null | null | zipfanalysis/__init__.py | chasmani/zipfanalysis | ffec413522037005fa70441e7b15f9675a11cd78 | [
"MIT"
] | null | null | null | from .main import all
| 7.666667 | 21 | 0.73913 |
04b24242aa80e1798826b605b90f49e757941f2e | 4,153 | py | Python | code/entity2facts.py | Program-Bear/WalkingNetwork | b19ab91ba85e08992bf6afa865655deeaa19c509 | [
"BSD-3-Clause"
] | null | null | null | code/entity2facts.py | Program-Bear/WalkingNetwork | b19ab91ba85e08992bf6afa865655deeaa19c509 | [
"BSD-3-Clause"
] | null | null | null | code/entity2facts.py | Program-Bear/WalkingNetwork | b19ab91ba85e08992bf6afa865655deeaa19c509 | [
"BSD-3-Clause"
] | 3 | 2018-04-13T05:50:09.000Z | 2019-01-05T06:55:53.000Z | import numpy as np
import json
from tqdm import tqdm
dic = genDict()
prepare()
if __name__ == "__main__":
# file_object = open("entityInfo.txt",'r')
# lines = file_object.readlines()
# a,b,c = process(lines[0])
# print(a)
# print(b)
# print(c)
mem = get_memory([824729,824730,407779])
... | 31.462121 | 102 | 0.596196 |
04b4c42aeadb0c3faacf2f366d88c42a83a72272 | 871 | py | Python | playground.py | Hank0438/heap_tracer | 5783e605bbbb85e88767450ed1865b9aebef1bc6 | [
"BSD-2-Clause"
] | null | null | null | playground.py | Hank0438/heap_tracer | 5783e605bbbb85e88767450ed1865b9aebef1bc6 | [
"BSD-2-Clause"
] | null | null | null | playground.py | Hank0438/heap_tracer | 5783e605bbbb85e88767450ed1865b9aebef1bc6 | [
"BSD-2-Clause"
] | null | null | null | from pwn import *
r = process("./playground.c")
libc = ELF("/lib/x86_64-linux-gnu/libc-2.27.so")
# libc = ELF("/lib/x86_64-linux-gnu/libc-2.23.so")
malloc(0)
r.interactive() | 19.355556 | 51 | 0.541906 |
04b4f10598762d63bb71bbd110f945725a0e5a07 | 550 | py | Python | nodes/0.9.x/python/View.DisableTemporaryHideIsolate.py | jdehotin/Clockworkfordynamo | 59226ea8292c57acfa1aa476efd40f0e78c9b965 | [
"MIT"
] | 147 | 2016-02-24T16:37:03.000Z | 2022-02-18T12:10:34.000Z | nodes/0.9.x/python/View.DisableTemporaryHideIsolate.py | jdehotin/Clockworkfordynamo | 59226ea8292c57acfa1aa476efd40f0e78c9b965 | [
"MIT"
] | 269 | 2016-02-25T14:04:14.000Z | 2022-03-26T07:30:53.000Z | nodes/0.9.x/python/View.DisableTemporaryHideIsolate.py | jdehotin/Clockworkfordynamo | 59226ea8292c57acfa1aa476efd40f0e78c9b965 | [
"MIT"
] | 89 | 2016-03-16T18:21:56.000Z | 2022-02-03T14:34:30.000Z | import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
view = UnwrapElement(IN[0])
Tr... | 34.375 | 70 | 0.858182 |
04b54af5409bd211bebf59e0e6f1b320669915e5 | 4,533 | py | Python | EyePatterns/prepare_data/format_data.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | 1 | 2021-12-07T08:02:30.000Z | 2021-12-07T08:02:30.000Z | EyePatterns/prepare_data/format_data.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | null | null | null | EyePatterns/prepare_data/format_data.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | null | null | null | import os
import numpy as np
# collecting all csv files from forwarded directory
# filtering collected data
# clearing NaN values from the begin and the end of data sequence
# concatenating time spent on successive AOI fields in data sequence and removing ones with time spent less than 200ms
# concatenating ... | 35.139535 | 118 | 0.698875 |
04b5bdc0bd251cb1ebbbc0b150a7e991848278cf | 6,432 | py | Python | workon/utils/cache.py | devittek/django-workon | c39ddecac2649406a7a58922646478c5615d4cfd | [
"BSD-3-Clause"
] | 1 | 2018-01-19T16:08:54.000Z | 2018-01-19T16:08:54.000Z | workon/utils/cache.py | devittek/django-workon | c39ddecac2649406a7a58922646478c5615d4cfd | [
"BSD-3-Clause"
] | 1 | 2020-07-06T08:35:18.000Z | 2020-07-06T08:35:18.000Z | workon/utils/cache.py | devittek/django-workon | c39ddecac2649406a7a58922646478c5615d4cfd | [
"BSD-3-Clause"
] | 4 | 2020-04-08T06:14:46.000Z | 2020-12-11T14:28:06.000Z | from time import time
import threading
from functools import partial
from django.utils.functional import cached_property
from django.core.cache import cache
try:
import asyncio
except (ImportError, SyntaxError):
asyncio = None
__all__ = [
"cached_property",
"cached_property_with_ttl",
"memoize",... | 29.504587 | 96 | 0.632929 |
04b6786e9894f69411222677b03453691f564ef4 | 94 | py | Python | exercism/python/gigasecond/gigasecond.py | Cythun/online-judge-practice | 1205480a2ff30e2a698917a7717ffe4db2fba2a5 | [
"MIT"
] | null | null | null | exercism/python/gigasecond/gigasecond.py | Cythun/online-judge-practice | 1205480a2ff30e2a698917a7717ffe4db2fba2a5 | [
"MIT"
] | null | null | null | exercism/python/gigasecond/gigasecond.py | Cythun/online-judge-practice | 1205480a2ff30e2a698917a7717ffe4db2fba2a5 | [
"MIT"
] | null | null | null | import datetime
| 18.8 | 48 | 0.744681 |
04b6a85ac9932e9cbfd03042b0f9d5385ad450ca | 22,179 | py | Python | src/roto/roto.py | joshbriegal/roto | 58694285932e101286e407bc521b2fa80e4eed47 | [
"MIT"
] | null | null | null | src/roto/roto.py | joshbriegal/roto | 58694285932e101286e407bc521b2fa80e4eed47 | [
"MIT"
] | 3 | 2021-09-15T10:08:47.000Z | 2021-09-16T17:15:55.000Z | src/roto/roto.py | joshbriegal/roto | 58694285932e101286e407bc521b2fa80e4eed47 | [
"MIT"
] | null | null | null | import logging
from itertools import cycle
from typing import Dict, List, Optional, Tuple, Union
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from matplotlib.axes import Axes
from matplotlib.figure import Figure
from matplotlib.ticker import ScalarFormatter
from sci... | 34.927559 | 152 | 0.550881 |
04b7f98003c0b24cde19fd3cad194d882da25e7b | 4,455 | py | Python | experiments/experiment_6.py | arijitnoobstar/OnitamaDeepRL | e561b22fe7728f51c1f1a078dfb19aa008bf010e | [
"Apache-2.0"
] | 3 | 2021-05-16T08:43:09.000Z | 2021-05-31T16:23:43.000Z | experiments/experiment_6.py | mion666459/OnitamaAI | e561b22fe7728f51c1f1a078dfb19aa008bf010e | [
"Apache-2.0"
] | null | null | null | experiments/experiment_6.py | mion666459/OnitamaAI | e561b22fe7728f51c1f1a078dfb19aa008bf010e | [
"Apache-2.0"
] | 1 | 2021-05-28T10:07:50.000Z | 2021-05-28T10:07:50.000Z | # access Train.py in parent folder and set relative folder to parent folder for data saving
import os
import sys
os.chdir("..")
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from Train import *
"""
The purpose of this experiment is to lower the val constabt
for multiply to see if it can compromise validity to l... | 75.508475 | 142 | 0.707071 |
04b810df629398a8386d9f310c6d63fef1c5faa9 | 2,638 | py | Python | testPrintProfile2.py | dmsteck/paper-regularized-qn-benchmark | b07ed54ca50af4bf2cf45952c103f3f80b62f5e2 | [
"MIT"
] | null | null | null | testPrintProfile2.py | dmsteck/paper-regularized-qn-benchmark | b07ed54ca50af4bf2cf45952c103f3f80b62f5e2 | [
"MIT"
] | null | null | null | testPrintProfile2.py | dmsteck/paper-regularized-qn-benchmark | b07ed54ca50af4bf2cf45952c103f3f80b62f5e2 | [
"MIT"
] | 1 | 2019-12-05T11:55:16.000Z | 2019-12-05T11:55:16.000Z | """
...
"""
import numpy as np
import matplotlib.pyplot as plt
from utility import parameters
from utility import perfprof
algorithms = ['regLBFGS', 'armijoLBFGS', 'wolfeLBFGS']
# Read all the data in the ugliest fashion possible
nfM = np.array([np.loadtxt(f"results/{a}_solve.csv", delimiter=',')[:, 0] for a in alg... | 46.280702 | 123 | 0.690675 |
04b93f24806cca8ae65455322559cca6b35b9e43 | 5,315 | py | Python | src/train_eval.py | 1amG4bor/mlflow-for-model-improvement | 9ec653a8d20b353b1d049dd509cd1b680b6152b1 | [
"MIT"
] | 1 | 2021-11-27T23:05:36.000Z | 2021-11-27T23:05:36.000Z | src/train_eval.py | 1amG4bor/mlflow-for-model-improvement | 9ec653a8d20b353b1d049dd509cd1b680b6152b1 | [
"MIT"
] | null | null | null | src/train_eval.py | 1amG4bor/mlflow-for-model-improvement | 9ec653a8d20b353b1d049dd509cd1b680b6152b1 | [
"MIT"
] | null | null | null | """Train and evaluate Tool
The script utilizes the 2 main inputs which are the config.yml and the CLI params.
With the combination of these configuration 2 running branches are possible:
- Training workflow:
- Load the dataset
- Create a model with the provided configuration
- Train then save the model
... | 41.850394 | 118 | 0.665663 |
04b9c4193420eabe9013aae3e035a41bbd7078ad | 5,959 | py | Python | model_tools/brain_transformation/neural.py | franzigeiger/model-tools-1 | 124e1ee688161d1e671dad33c0ebefd001d78ef6 | [
"MIT"
] | null | null | null | model_tools/brain_transformation/neural.py | franzigeiger/model-tools-1 | 124e1ee688161d1e671dad33c0ebefd001d78ef6 | [
"MIT"
] | null | null | null | model_tools/brain_transformation/neural.py | franzigeiger/model-tools-1 | 124e1ee688161d1e671dad33c0ebefd001d78ef6 | [
"MIT"
] | null | null | null | import logging
from collections import Iterable
from typing import Optional, Union
from tqdm import tqdm
from brainscore.metrics import Score
from brainscore.model_interface import BrainModel
from brainscore.utils import fullname
from model_tools.activations.pca import LayerPCA
from model_tools.brain_transformation i... | 48.056452 | 120 | 0.681322 |
04b9ede065050252c3c3e4b2e6533b22f204d546 | 1,504 | py | Python | Instagram/forms.py | IsaacMurage-dev/Insta-lookalike | 0b394a3e60c669dfb78e8d538e869cebbcec70b8 | [
"MIT"
] | null | null | null | Instagram/forms.py | IsaacMurage-dev/Insta-lookalike | 0b394a3e60c669dfb78e8d538e869cebbcec70b8 | [
"MIT"
] | null | null | null | Instagram/forms.py | IsaacMurage-dev/Insta-lookalike | 0b394a3e60c669dfb78e8d538e869cebbcec70b8 | [
"MIT"
] | null | null | null | from django import forms
from .models import Profile,Image,Comment
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
| 38.564103 | 121 | 0.694149 |
04bab0fcc8f0c4e3268cebb2cb3c07963e8a3db4 | 920 | py | Python | test/test_extension/test_analytics.py | maximest-pierre/WebCore | 543bfb79c0737917d1bd2a148eb61761ab6f6319 | [
"MIT"
] | 56 | 2015-05-13T16:08:06.000Z | 2021-12-26T22:24:46.000Z | test/test_extension/test_analytics.py | maximest-pierre/WebCore | 543bfb79c0737917d1bd2a148eb61761ab6f6319 | [
"MIT"
] | 104 | 2015-01-20T23:55:28.000Z | 2021-03-01T03:29:47.000Z | test/test_extension/test_analytics.py | maximest-pierre/WebCore | 543bfb79c0737917d1bd2a148eb61761ab6f6319 | [
"MIT"
] | 12 | 2015-05-22T15:46:39.000Z | 2021-09-16T00:38:54.000Z | # encoding: utf-8
import time
import pytest
from webob import Request
from web.core import Application
from web.core.context import Context
from web.ext.analytics import AnalyticsExtension
sample = Application(endpoint, extensions=[AnalyticsExtension()])
| 20.909091 | 70 | 0.746739 |
04bca4a88f00324aeb6f010b963ad4ba1dfca984 | 441 | py | Python | BlogManage/blog/views_upload.py | ahriknow/ahriknow | 817b5670c964e01ffe19ed182ce0a7b42e17ce09 | [
"MIT"
] | null | null | null | BlogManage/blog/views_upload.py | ahriknow/ahriknow | 817b5670c964e01ffe19ed182ce0a7b42e17ce09 | [
"MIT"
] | 3 | 2021-03-19T01:28:43.000Z | 2021-04-08T19:57:19.000Z | BlogManage/blog/views_upload.py | ahriknow/ahriknow | 817b5670c964e01ffe19ed182ce0a7b42e17ce09 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.views import APIView
| 33.923077 | 116 | 0.61678 |
04bede2bb92f42742c55f231f058a89b588c7e76 | 509 | py | Python | src/app_util/__init__.py | jnsougata/app_util | 941421523d38973486321f26b38aa4735ca0a9b2 | [
"MIT"
] | null | null | null | src/app_util/__init__.py | jnsougata/app_util | 941421523d38973486321f26b38aa4735ca0a9b2 | [
"MIT"
] | null | null | null | src/app_util/__init__.py | jnsougata/app_util | 941421523d38973486321f26b38aa4735ca0a9b2 | [
"MIT"
] | null | null | null | """
Discord API Wrapper Extension
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A basic application command extension for discord.py.
:copyright: (c) 2022-present jnsougata
:license: MIT, see LICENSE for more details.
"""
from .bot import Bot
from .cog import Cog
from .errors import *
from .app import Overwrite
from .context impo... | 22.130435 | 53 | 0.744597 |
04bfca1416533395d9a700899a8b2c637f017d39 | 2,263 | py | Python | to/lang/OpenCV-2.2.0/doc/plastex/latex.py | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | null | null | null | to/lang/OpenCV-2.2.0/doc/plastex/latex.py | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | 14 | 2016-11-24T10:46:39.000Z | 2016-12-10T07:24:15.000Z | to/lang/OpenCV-2.2.0/doc/plastex/latex.py | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | null | null | null | import sys
from pyparsing import Word, CharsNotIn, Optional, OneOrMore, ZeroOrMore, Group, ParseException, Literal, replaceWith
import pyparsing
help(pyparsing)
arg = '[' + CharsNotIn("]") + ']'
arg.setParseAction(argfun)
param = '{' + Optional(CharsNotIn("}")) + '}'
param.setParseAction(paramfun)
texcmd = Word("\\",... | 29.776316 | 135 | 0.612461 |
04c01f5bb0f3d376b162b175bf648b2109a2b261 | 68 | py | Python | gconfig.py | klince/ljd | eb3f9ecef12048be5fccb85bf4cb9cdfb63df344 | [
"MIT"
] | 112 | 2018-08-10T09:09:42.000Z | 2022-03-31T02:44:02.000Z | gconfig.py | klince/ljd | eb3f9ecef12048be5fccb85bf4cb9cdfb63df344 | [
"MIT"
] | null | null | null | gconfig.py | klince/ljd | eb3f9ecef12048be5fccb85bf4cb9cdfb63df344 | [
"MIT"
] | 59 | 2018-08-17T08:50:21.000Z | 2022-02-08T19:12:04.000Z |
#zzw 20180714 support str encode
gFlagDic = {'strEncode' : 'ascii'} | 22.666667 | 34 | 0.720588 |
04c05fe0493b6c15658cd872dfc53737c5f84819 | 737 | py | Python | pymongolab/__init__.py | puentesarrin/pymongolab | 159a46c6cf88313c11522503d9243e2e16d3d72c | [
"Apache-2.0"
] | 2 | 2015-04-09T08:17:03.000Z | 2016-05-17T23:42:36.000Z | pymongolab/__init__.py | puentesarrin/pymongolab | 159a46c6cf88313c11522503d9243e2e16d3d72c | [
"Apache-2.0"
] | 1 | 2015-02-12T17:25:17.000Z | 2015-02-12T17:53:09.000Z | pymongolab/__init__.py | puentesarrin/pymongolab | 159a46c6cf88313c11522503d9243e2e16d3d72c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 *-*
"""PyMongo_-flavored package for accessing to MongoLab databases via
`MongoLabClient`.
.. _PyMongo: http://api.mongodb.org/python/current/"""
ASCENDING = 1
"""Ascending sort order."""
DESCENDING = -1
"""Descending sort order."""
OFF = 0
"""No database profiling."""
SLOW_ONLY = 1
"""Only pro... | 21.057143 | 73 | 0.694708 |
04c092098ea8bed63aafcff967ba75911ecb4e0e | 2,065 | py | Python | Week 03/exercise05.py | JessicaHamilton/PHYS-3210 | 997fb9fbc43852ed32badaca68bed39bef2a1b0b | [
"MIT"
] | null | null | null | Week 03/exercise05.py | JessicaHamilton/PHYS-3210 | 997fb9fbc43852ed32badaca68bed39bef2a1b0b | [
"MIT"
] | null | null | null | Week 03/exercise05.py | JessicaHamilton/PHYS-3210 | 997fb9fbc43852ed32badaca68bed39bef2a1b0b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 4 10:03:35 2019
@author: hamil
"""
import numpy as np
import matplotlib.pyplot as plt
#test = up_harmonic(20)
#up_sum = test[0]
#up_values = test[1]
#print("Sum up value is:", test[0])
#print("The Up values are:", up_values)
#test1 = down_harmonic(20)
#down_sum = ... | 27.905405 | 112 | 0.684746 |
04c0b65e42c25329491e1c4286e88a08b669efe7 | 2,458 | py | Python | src/cliptools/modules/data_loader.py | bigbirdcode/cliptools | 992ddf2088462477992734af8eb00453bde3ce85 | [
"MIT"
] | null | null | null | src/cliptools/modules/data_loader.py | bigbirdcode/cliptools | 992ddf2088462477992734af8eb00453bde3ce85 | [
"MIT"
] | 6 | 2019-04-02T18:25:35.000Z | 2019-08-21T20:24:16.000Z | src/cliptools/modules/data_loader.py | bigbirdcode/cliptools | 992ddf2088462477992734af8eb00453bde3ce85 | [
"MIT"
] | null | null | null | """ClipTools clipboard manager and text processing tools
with a lines based GUI interface
Data loader, search for available personal data.
WARNING, python file will be executed!
When making python personal file, take care not allow uncontrolled changes!
yaml is safer from this point of view.
Note: logging is not par... | 33.671233 | 85 | 0.702197 |
04c1820dcc2e20cd468a64c1d6ca1319a04e2cf5 | 25,660 | py | Python | sysevr/slicer/access_db_operate.py | Saleh-Ibtasham/VulScrape | 738d17e9dd7e5edc2341d106361651fd28f99c61 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 1 | 2021-04-12T12:59:33.000Z | 2021-04-12T12:59:33.000Z | sysevr/slicer/access_db_operate.py | Jokers-grin/VulScrape | 738d17e9dd7e5edc2341d106361651fd28f99c61 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | sysevr/slicer/access_db_operate.py | Jokers-grin/VulScrape | 738d17e9dd7e5edc2341d106361651fd28f99c61 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | ## -*- coding: utf-8 -*-
from joern.all import JoernSteps
from igraph import *
from .general_op import *
import pickle
from py2neo.packages.httpstream import http
http.socket_timeout = 9999
| 35.49101 | 253 | 0.539517 |
04c1a63427741f65b7771c11cc01a39bfb09f703 | 476 | py | Python | cal_tools/struct/submesh.py | hsoju/cal-tools | b6b24926d1e32ecd09dd469be20538fcdafb0e15 | [
"MIT"
] | null | null | null | cal_tools/struct/submesh.py | hsoju/cal-tools | b6b24926d1e32ecd09dd469be20538fcdafb0e15 | [
"MIT"
] | null | null | null | cal_tools/struct/submesh.py | hsoju/cal-tools | b6b24926d1e32ecd09dd469be20538fcdafb0e15 | [
"MIT"
] | null | null | null | from typing import Collection
from cal_tools.struct.face import CalFace
from cal_tools.struct.morph import CalMorph
from cal_tools.struct.vertex import CalVertex
| 34 | 98 | 0.714286 |
04c30ca6dae699405806c7919712bb4e2c2022d3 | 3,818 | py | Python | consolidate_json.py | squirrel2038/archive-archdruid-report | cd121a2466887999062e4e674998af971cd416e2 | [
"MIT"
] | 1 | 2022-01-30T11:01:11.000Z | 2022-01-30T11:01:11.000Z | consolidate_json.py | squirrel2038/thearchdruidreport-archive | cd121a2466887999062e4e674998af971cd416e2 | [
"MIT"
] | null | null | null | consolidate_json.py | squirrel2038/thearchdruidreport-archive | cd121a2466887999062e4e674998af971cd416e2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Consolidate all the raw Blogger JSON files into a single, simplified JSON file.
#
from collections import OrderedDict
import html
import io
import json
import sys
import lxml.etree as ET
import lxml.html
import re
import feeds
import util
posts = feeds.json_post_entries_list()
output = []... | 38.959184 | 124 | 0.585385 |
04ca253f5e82296a1e2958dc72286f826aff2f7b | 2,619 | py | Python | preprocess.py | wonderlr/news_aggregator | 123a6b912988013fd83080393ff978ff85a76dc0 | [
"MIT"
] | null | null | null | preprocess.py | wonderlr/news_aggregator | 123a6b912988013fd83080393ff978ff85a76dc0 | [
"MIT"
] | null | null | null | preprocess.py | wonderlr/news_aggregator | 123a6b912988013fd83080393ff978ff85a76dc0 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
import nltk
import pdb
import pickle
import pandas as pd
import numpy as np
import json
stemmer = nltk.stem.porter.PorterStemmer()
stop_words = set(nltk.corpus.stopwords.words('english'))
articles = []
article_id = 0
if __name__ == "__main__":
articles = pickle.load(open("articles.pickle", "r... | 28.78022 | 105 | 0.644139 |
04cad953622a83f0e9965ec0a898a7a9f104aa3c | 22,312 | py | Python | test/intelliflow/core/application/test_aws_application_execution_hooks.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | 4 | 2022-03-24T04:39:02.000Z | 2022-03-31T16:41:50.000Z | test/intelliflow/core/application/test_aws_application_execution_hooks.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | test/intelliflow/core/application/test_aws_application_execution_hooks.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import threading
import time
from typing import Callable
import pytest
from mock import MagicMock
import intelliflow.api_ext as flow
from intelliflow.api_ext import *
from intelliflow.core.application.applicati... | 47.777302 | 141 | 0.701327 |
04cb89b6281e761d43339b9fbbae2aa13203f250 | 6,988 | py | Python | Plot/4.13.His_Plot_Global.py | hliu119/Phenological-Dynamics-revealed-by-SIF | 2584d09837ea37387dc4d5ad39fcaba0ed714e94 | [
"Apache-2.0"
] | null | null | null | Plot/4.13.His_Plot_Global.py | hliu119/Phenological-Dynamics-revealed-by-SIF | 2584d09837ea37387dc4d5ad39fcaba0ed714e94 | [
"Apache-2.0"
] | null | null | null | Plot/4.13.His_Plot_Global.py | hliu119/Phenological-Dynamics-revealed-by-SIF | 2584d09837ea37387dc4d5ad39fcaba0ed714e94 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 26 14:58:57 2019
@author: Administrator
MCD12 LandCover Types
DBF == 4DBF,5MF
EBF == 2EBF
NF == 1ENF,3DNF
CRO == 12: CRO, 14: CRO&NV
GRA == 10: GRA
SHR == 6CSH, 7OSH
SAV == 8WSA, 9SAV
"""
import numpy as np
import matplotlib.pyplot as plt
import os
f... | 48.867133 | 306 | 0.598598 |
04cbe616581fc2cfbc97890b4ef12ba243847e7e | 6,260 | py | Python | CountryReconciler/reconciler/country_normalizer.py | weso/landportal-importers | 6edfa3c301422bbe8c09cb877b1cbddbcd902463 | [
"Unlicense"
] | null | null | null | CountryReconciler/reconciler/country_normalizer.py | weso/landportal-importers | 6edfa3c301422bbe8c09cb877b1cbddbcd902463 | [
"Unlicense"
] | 8 | 2016-02-16T13:05:37.000Z | 2017-01-04T14:38:03.000Z | CountryReconciler/reconciler/country_normalizer.py | landportal/landbook-importers | f0e246f493329b9c5741c50f3a0495d27ee5c54b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 10/02/2014
@author: Dani
"""
import re
import codecs
from reconciler.entities.normalized_country import NormalizedCountry
from reconciler.exceptions.unknown_country_error import UnknownCountryError
| 39.872611 | 116 | 0.62476 |
04cc1b1f401f8deb8162a588147e27bded2a1615 | 1,949 | py | Python | python_examples/welcome.py | kaalam/thetangle | 4c4877ebc3c6f8cce86f1a43681359c16a51e2c9 | [
"MIT"
] | 1 | 2021-11-20T12:30:02.000Z | 2021-11-20T12:30:02.000Z | python_examples/welcome.py | kaalam/thetangle | 4c4877ebc3c6f8cce86f1a43681359c16a51e2c9 | [
"MIT"
] | null | null | null | python_examples/welcome.py | kaalam/thetangle | 4c4877ebc3c6f8cce86f1a43681359c16a51e2c9 | [
"MIT"
] | null | null | null | """
Welcome to The TangleExplorer !
"""
"""
0. The first time you run the TNG server, you have to dowload and compile The Tangle
Follow the instructions in: https://kaalam.github.io/jazz_reference/reference_docker_tangle_server.html
"""
"""
I M P O R T A N T N O T E : This is just a piece of software to help ... | 31.95082 | 130 | 0.736788 |
04cc4c2755a30d4af02b82ac645949400c8f8805 | 1,573 | py | Python | tests/affine_test.py | martin-luecke/xdsl | b96d19d97a5282823e7735da06764fa57a781429 | [
"Apache-2.0"
] | null | null | null | tests/affine_test.py | martin-luecke/xdsl | b96d19d97a5282823e7735da06764fa57a781429 | [
"Apache-2.0"
] | null | null | null | tests/affine_test.py | martin-luecke/xdsl | b96d19d97a5282823e7735da06764fa57a781429 | [
"Apache-2.0"
] | null | null | null | from xdsl.dialects.builtin import *
from xdsl.dialects.std import *
from xdsl.dialects.arith import *
from xdsl.printer import Printer
from xdsl.dialects.affine import *
| 31.46 | 78 | 0.530833 |
04cd48f165a97bf20274ed413e6996f8b236819c | 1,632 | py | Python | setup.py | remifan/commplax | e8ee5bc86ab0dfd90773202579237ecf42488cd0 | [
"Apache-2.0"
] | 20 | 2021-03-09T08:33:51.000Z | 2021-11-29T05:04:55.000Z | setup.py | remifan/commplax | e8ee5bc86ab0dfd90773202579237ecf42488cd0 | [
"Apache-2.0"
] | null | null | null | setup.py | remifan/commplax | e8ee5bc86ab0dfd90773202579237ecf42488cd0 | [
"Apache-2.0"
] | 6 | 2021-03-09T08:34:01.000Z | 2021-12-03T15:14:42.000Z | # Copyright 2021 The Commplax 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 applicable law or agreed to in... | 26.322581 | 74 | 0.582721 |
04ceeae78354536a9728b323c36a0db9f0cce2c7 | 2,862 | py | Python | app/user_auth_views.py | luckyharryji/Plask | 82508b48cb393a011641ac808cfea7323cd1bdfa | [
"MIT"
] | null | null | null | app/user_auth_views.py | luckyharryji/Plask | 82508b48cb393a011641ac808cfea7323cd1bdfa | [
"MIT"
] | null | null | null | app/user_auth_views.py | luckyharryji/Plask | 82508b48cb393a011641ac808cfea7323cd1bdfa | [
"MIT"
] | null | null | null | #coding=utf-8
from flask import render_template, flash, redirect, url_for, g, request
from app import app, lm, db
from forms import LoginForm, RegisterForm
from flask.ext.login import login_user, logout_user, current_user, login_required
from models import User
import re
import sys
reload(sys)
sys.setdefaultencoding('... | 26.018182 | 90 | 0.68833 |
04cfac1d30abf2171b453cd7cf451b10c798b69d | 294 | py | Python | userlixo/handlers/bot/callback_query/any.py | AndrielFR/UserLixo | 5755b39e2bc62f72e9f76ee442b7c07f2ae4adeb | [
"MIT"
] | 65 | 2018-11-12T02:56:01.000Z | 2022-03-09T00:57:05.000Z | userlixo/handlers/bot/callback_query/any.py | AndrielFR/UserLixo | 5755b39e2bc62f72e9f76ee442b7c07f2ae4adeb | [
"MIT"
] | 93 | 2019-11-22T23:54:26.000Z | 2022-03-31T00:48:14.000Z | userlixo/handlers/bot/callback_query/any.py | HitaloSama/UserLixo | 85ef00cfc828ad6a6a28bd3c80eea07e0c4fc45a | [
"MIT"
] | 56 | 2018-12-16T17:13:38.000Z | 2022-03-30T18:40:07.000Z | # SPDX-License-Identifier: MIT
# Copyright (c) 2018-2021 Amano Team
import os
from pyrogram import Client
from userlixo.config import langs
# Getting the language to use
| 19.6 | 56 | 0.755102 |
04d06652a7efb578d1962bdee4972afa41617e98 | 2,126 | py | Python | src/file_config/handlers/yaml.py | stephen-bunn/file-config | 9de4d0aacdb7b9bc0069a2da10eb406c88e21103 | [
"0BSD"
] | 7 | 2019-01-10T02:01:05.000Z | 2021-02-21T14:10:28.000Z | src/file_config/handlers/yaml.py | stephen-bunn/file-config | 9de4d0aacdb7b9bc0069a2da10eb406c88e21103 | [
"0BSD"
] | 42 | 2018-10-03T15:15:47.000Z | 2021-12-13T19:52:04.000Z | src/file_config/handlers/yaml.py | stephen-bunn/file-config | 9de4d0aacdb7b9bc0069a2da10eb406c88e21103 | [
"0BSD"
] | 1 | 2019-02-15T12:49:43.000Z | 2019-02-15T12:49:43.000Z | # Copyright (c) 2019 Stephen Bunn <stephen@bunn.io>
# ISC License <https://choosealicense.com/licenses/isc>
from collections import OrderedDict
from ._common import BaseHandler
| 32.212121 | 78 | 0.61524 |
04d0c052c025367c548447ff41b0b30285e71781 | 1,069 | py | Python | src/MetaSeg/functions/meta_nn.py | RonMcKay/Detection-and-Retrieval-of-OOD-Objects | 561dc4362226f67b5a85d94843ee439d67fad4ab | [
"MIT"
] | null | null | null | src/MetaSeg/functions/meta_nn.py | RonMcKay/Detection-and-Retrieval-of-OOD-Objects | 561dc4362226f67b5a85d94843ee439d67fad4ab | [
"MIT"
] | null | null | null | src/MetaSeg/functions/meta_nn.py | RonMcKay/Detection-and-Retrieval-of-OOD-Objects | 561dc4362226f67b5a85d94843ee439d67fad4ab | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.utils.data import Dataset
| 25.452381 | 65 | 0.540692 |