hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
5256f8c0d04ee6af4a341be08c61fb9e7dcd7730
165
py
Python
study_notes/proga_mod.py
chicolucio/python_useful_tips
3a17a77f0f89923ba087188d4acfaadd1d1bfeea
[ "MIT" ]
null
null
null
study_notes/proga_mod.py
chicolucio/python_useful_tips
3a17a77f0f89923ba087188d4acfaadd1d1bfeea
[ "MIT" ]
null
null
null
study_notes/proga_mod.py
chicolucio/python_useful_tips
3a17a77f0f89923ba087188d4acfaadd1d1bfeea
[ "MIT" ]
null
null
null
print('Begin', __name__) print('Defines fA') def fA(): print('Inside fA') if __name__ == "__main__": print('Calls fA') fA() print('End', __name__)
11
26
0.593939
0
0
0
0
0
0
0
0
55
0.333333
52575caa64a642674717cd72e3bc72c2b83b3b27
2,238
py
Python
wdae/wdae/common_reports_api/tests/test_common_reports_api.py
iossifovlab/gpf
e556243d29666179dbcb72859845b4d6c011af2b
[ "MIT" ]
null
null
null
wdae/wdae/common_reports_api/tests/test_common_reports_api.py
iossifovlab/gpf
e556243d29666179dbcb72859845b4d6c011af2b
[ "MIT" ]
82
2019-07-22T11:44:23.000Z
2022-01-13T15:27:33.000Z
wdae/wdae/common_reports_api/tests/test_common_reports_api.py
iossifovlab/gpf
e556243d29666179dbcb72859845b4d6c011af2b
[ "MIT" ]
null
null
null
import pytest from rest_framework import status pytestmark = pytest.mark.usefixtures( "wdae_gpf_instance", "dae_calc_gene_sets", "use_common_reports" ) def test_variant_reports(admin_client): url = "/api/v3/common_reports/studies/study4" response = admin_client.get(url) assert response assert r...
26.329412
74
0.7042
0
0
0
0
672
0.300268
0
0
509
0.227435
5257bb106f5486659c2e12b6df0c6a213ab4a9ac
8,000
py
Python
ckan/tests/logic/action/test_create.py
rossjones/ckan-mini
cb39b3de7dcc9d12a64c5f37bcafe6306e9e3412
[ "Apache-2.0" ]
3
2015-09-30T20:07:52.000Z
2015-10-01T04:16:31.000Z
ckan/tests/logic/action/test_create.py
rossjones/ckan-mini
cb39b3de7dcc9d12a64c5f37bcafe6306e9e3412
[ "Apache-2.0" ]
4
2015-09-29T18:29:56.000Z
2015-10-04T14:55:22.000Z
ckan/tests/logic/action/test_create.py
rossjones/ckan-mini
cb39b3de7dcc9d12a64c5f37bcafe6306e9e3412
[ "Apache-2.0" ]
null
null
null
'''Unit tests for ckan/logic/auth/create.py. ''' from pylons import config import mock import nose.tools import ckan.tests.helpers as helpers import ckan.tests.factories as factories import ckan.model as model import ckan.logic as logic import ckan.plugins as p assert_equals = nose.tools.assert_equals assert_raises...
26.40264
75
0.550375
7,637
0.954625
0
0
832
0.104
0
0
1,403
0.175375
52580d1080b455dd0e2a017e5435bfca15bd5e74
232
py
Python
CodeWars/7 Kyu/Broken sequence.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Broken sequence.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Broken sequence.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
def find_missing_number(sequence): try: numbers = sorted(int(word) for word in sequence.split(" ") if word) except ValueError: return 1 return next((i + 1 for i, n in enumerate(numbers) if i + 1 != n), 0)
38.666667
75
0.625
0
0
0
0
0
0
0
0
3
0.012931
5258259e0cc916706a7010aa6cabfb31332042c1
4,075
py
Python
Topsis_Samarth_102083050/t_102083050.py
Samarth-Gupta-2909/Topsis_Samarth_102083050
1cd91125108bc4887ec0aebf5041ae2763cc4a31
[ "MIT" ]
null
null
null
Topsis_Samarth_102083050/t_102083050.py
Samarth-Gupta-2909/Topsis_Samarth_102083050
1cd91125108bc4887ec0aebf5041ae2763cc4a31
[ "MIT" ]
null
null
null
Topsis_Samarth_102083050/t_102083050.py
Samarth-Gupta-2909/Topsis_Samarth_102083050
1cd91125108bc4887ec0aebf5041ae2763cc4a31
[ "MIT" ]
null
null
null
import pandas as pd import os import sys def main(): # Arguments not equal to 5 if len(sys.argv) != 5: print("ERROR : NUMBER OF PARAMETERS") print("USAGE : python topsis.py inputfile.csv '1,1,1,1' '+,+,-,+' result.csv ") exit(1) # File Not Found error elif not os.pa...
34.82906
95
0.561963
0
0
0
0
0
0
0
0
1,221
0.299632
525a2422bd8be6f7826ece79661f8b6cc564ee5b
6,337
py
Python
pyrichlet/weight_models/_pitman_yor_process.py
cabo40/pyrichlet
941b84e3fcf3c92de2239767e96ee235ff165adb
[ "Apache-2.0" ]
13
2022-02-13T00:33:47.000Z
2022-03-08T16:28:27.000Z
pyrichlet/weight_models/_pitman_yor_process.py
cabo40/pyrichlet
941b84e3fcf3c92de2239767e96ee235ff165adb
[ "Apache-2.0" ]
null
null
null
pyrichlet/weight_models/_pitman_yor_process.py
cabo40/pyrichlet
941b84e3fcf3c92de2239767e96ee235ff165adb
[ "Apache-2.0" ]
null
null
null
from ._base import BaseWeight from ..exceptions import NotFittedError from ..utils.functions import mean_log_beta import numpy as np from scipy.special import loggamma class PitmanYorProcess(BaseWeight): def __init__(self, pyd=0, alpha=1, truncation_length=-1, rng=None): super().__init__(rng=rng) ...
39.117284
79
0.515544
6,165
0.972858
0
0
0
0
0
0
218
0.034401
525a8b00826a337a4c293642d7c027ab056d2b82
2,259
py
Python
nlp/router.py
kirollosHossam/MachineLearningTask
3780513af04cf7bb97432436b4714c32d1c271e6
[ "MIT" ]
null
null
null
nlp/router.py
kirollosHossam/MachineLearningTask
3780513af04cf7bb97432436b4714c32d1c271e6
[ "MIT" ]
null
null
null
nlp/router.py
kirollosHossam/MachineLearningTask
3780513af04cf7bb97432436b4714c32d1c271e6
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Dict, List, Optional, Union from fastapi import FastAPI, HTTPException from pydantic import BaseModel from nlp.nlp import Trainer app = FastAPI() trainer = Trainer() #BaseModel is used as data validator when using fast api it cares all about exception handilng and ...
30.527027
107
0.715803
345
0.152722
0
0
1,515
0.670651
0
0
412
0.182382
525ce95ea9b89a99563ce003f523651a65ff4155
2,359
py
Python
alibabacloud/endpoint/default_endpoint_resolver.py
wallisyan/alibabacloud-python-sdk-v2
6e024c97cded2403025a7dd8fea8261e41872156
[ "Apache-2.0" ]
null
null
null
alibabacloud/endpoint/default_endpoint_resolver.py
wallisyan/alibabacloud-python-sdk-v2
6e024c97cded2403025a7dd8fea8261e41872156
[ "Apache-2.0" ]
null
null
null
alibabacloud/endpoint/default_endpoint_resolver.py
wallisyan/alibabacloud-python-sdk-v2
6e024c97cded2403025a7dd8fea8261e41872156
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Alibaba Cloud Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.385965
98
0.757948
1,166
0.493023
0
0
0
0
0
0
773
0.32685
525db5cd98632fab60967c35aa4c83a509cd65b6
1,891
py
Python
src/experiment_collector.py
Context-Aware-Monitoring/Efficient-Stream-Monitoring
f08faaa87ac2ffe74014a9a6e864b641e4a160f5
[ "MIT" ]
null
null
null
src/experiment_collector.py
Context-Aware-Monitoring/Efficient-Stream-Monitoring
f08faaa87ac2ffe74014a9a6e864b641e4a160f5
[ "MIT" ]
null
null
null
src/experiment_collector.py
Context-Aware-Monitoring/Efficient-Stream-Monitoring
f08faaa87ac2ffe74014a9a6e864b641e4a160f5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import glob import os import global_config import yaml import time import sys import collections def flatten(d, parent_key='', sep='_'): items = [] for k, v in d.items(): new_key = parent_key + sep + k if parent_key else k if isinstance(v, collections.Mut...
28.651515
87
0.601269
0
0
0
0
0
0
0
0
180
0.095188
525e027715d3144b67819590485c36cad49673b9
1,757
py
Python
coord2vec/pipelines/lagoon_utils/auto_stage.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/pipelines/lagoon_utils/auto_stage.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/pipelines/lagoon_utils/auto_stage.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
1
2021-01-25T09:21:17.000Z
2021-01-25T09:21:17.000Z
from typing import Union, List from lagoon import Stage, Task from coord2vec.pipelines.lagoon_utils.lambda_task import LambdaTask class AutoStage(Stage): def __init__(self, name: str, **kwargs): super().__init__(name, **kwargs) self.output_param_to_task = dict() def update_output_params(se...
37.382979
87
0.660216
1,553
0.883893
0
0
0
0
0
0
183
0.104155
525e67e026d94931f78e27fc1fb5b2d70f989a43
19,045
py
Python
recipes/Python/576708_DVMVersusCAPM/recipe-576708.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/576708_DVMVersusCAPM/recipe-576708.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/576708_DVMVersusCAPM/recipe-576708.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#On the name of ALLAH and may the blessing and peace of Allah #be upon the Messenger of Allah Mohamed Salla Allahu Aliahi Wassalam. #Author : Fouad Teniou #Date : 07/03/09 #version :2.6.1 """ collections module's extras in python 2.6.1 were used in my program, DVMextrapolating DVMgordonsModel and CAPM subclasses of n...
35.798872
131
0.582463
7,533
0.383417
0
0
4,564
0.2323
0
0
14,265
0.726065
525e847c9953f41e6f37f2f968fe49ecb18a88d9
141,262
py
Python
nexinfosys/restful_service/service_main.py
ENVIRO-Module/nis-backend
fd86cf30f79f53cdccddd2a5479507d32f914d4e
[ "BSD-3-Clause" ]
4
2021-04-15T08:45:00.000Z
2022-02-04T18:12:06.000Z
nexinfosys/restful_service/service_main.py
ENVIRO-Module/nis-backend
fd86cf30f79f53cdccddd2a5479507d32f914d4e
[ "BSD-3-Clause" ]
null
null
null
nexinfosys/restful_service/service_main.py
ENVIRO-Module/nis-backend
fd86cf30f79f53cdccddd2a5479507d32f914d4e
[ "BSD-3-Clause" ]
null
null
null
import binascii import csv import io import json import logging import os import traceback import urllib from pathlib import Path import openpyxl import pandas as pd import pyximport import redis # from flask import (jsonify, abort, redirect, url_for, # # ) from NamedAtomicLock import NamedAtomicLoc...
38.585632
227
0.625427
0
0
0
0
106,110
0.751046
0
0
63,905
0.452319
525f8b5dc9574fa7b8d0c0648ce46ac800350ccf
3,198
py
Python
readthedocs/doc_builder/backends/mkdocs.py
storagebot/readthedocs.org
caaec6c341cfb0e99838386ae65e3042d690e38e
[ "MIT" ]
null
null
null
readthedocs/doc_builder/backends/mkdocs.py
storagebot/readthedocs.org
caaec6c341cfb0e99838386ae65e3042d690e38e
[ "MIT" ]
null
null
null
readthedocs/doc_builder/backends/mkdocs.py
storagebot/readthedocs.org
caaec6c341cfb0e99838386ae65e3042d690e38e
[ "MIT" ]
null
null
null
import os import shutil import codecs import logging import zipfile from django.template import Template, Context from django.contrib.auth.models import SiteProfileNotAvailable from django.core.exceptions import ObjectDoesNotExist from django.conf import settings from builds import utils as version_utils from core.ut...
38.071429
115
0.613196
2,668
0.834271
0
0
529
0.165416
0
0
624
0.195122
52600d13d8ef93a468c1d0ff6267509d796630cf
1,108
py
Python
resources/trials/maya/rotateOrderSym.py
adrienparis/Gapalion
35d66c2d0de05ffb493a4d8753f675999ff9eaab
[ "MIT" ]
null
null
null
resources/trials/maya/rotateOrderSym.py
adrienparis/Gapalion
35d66c2d0de05ffb493a4d8753f675999ff9eaab
[ "MIT" ]
null
null
null
resources/trials/maya/rotateOrderSym.py
adrienparis/Gapalion
35d66c2d0de05ffb493a4d8753f675999ff9eaab
[ "MIT" ]
null
null
null
#!/bin/env mayapy # -- coding: utf-8 -- u"""Ce test vérifie que le transform [LEFT] a bien le même rotateOrder que le transform [RIGHT] Les [does not exist] indique un problème dans la nomenclature des noms et donc qu'il ne peut tester la symétrie des rotateOrders""" __author__ = "Adrien PARIS" __email__ =...
34.625
131
0.548736
0
0
0
0
0
0
0
0
496
0.445242
5260b4128c7ce3de3c890338aef16057091e2b2c
898
py
Python
prompt2.py
lreicher/astr-19
1fed38bdc76c2033d97084e35fce3585148f0917
[ "MIT" ]
null
null
null
prompt2.py
lreicher/astr-19
1fed38bdc76c2033d97084e35fce3585148f0917
[ "MIT" ]
1
2022-03-31T17:57:09.000Z
2022-03-31T18:04:56.000Z
prompt2.py
lreicher/astr-19
1fed38bdc76c2033d97084e35fce3585148f0917
[ "MIT" ]
null
null
null
# Lucas Reicher Prompt #3 - Coding Journal #1 def main(): # Uses formatted strings to output the required info (result & type) # Adds floats x = 1.342 # float y = 3.433 # float z = x + y # float float_sum_string = "Addition: {0} + {1} = {2} with type = {3}".format(str(x),str(y),str(z)...
29.933333
119
0.567929
0
0
0
0
0
0
0
0
389
0.433185
5261c07136e65ccd2846c650bf8fdec8aaae6fb9
7,575
py
Python
kinbot/hir.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
kinbot/hir.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
kinbot/hir.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
################################################### ## ## ## This file is part of the KinBot code v2.0 ## ## ## ## The contents are covered by the terms of the ## ## BSD 3-clause license included in the LICENSE ## ## file,...
38.451777
134
0.525413
0
0
0
0
0
0
0
0
2,089
0.275776
52634bcaed64b83728892e97207f26eb73bea3e6
21,504
py
Python
data/ffnet.py
starrybouquet/sj-fanfic-recs
c2120c1461f53947cba4b5c5bdec634ae2b0b144
[ "MIT" ]
null
null
null
data/ffnet.py
starrybouquet/sj-fanfic-recs
c2120c1461f53947cba4b5c5bdec634ae2b0b144
[ "MIT" ]
null
null
null
data/ffnet.py
starrybouquet/sj-fanfic-recs
c2120c1461f53947cba4b5c5bdec634ae2b0b144
[ "MIT" ]
null
null
null
import re, requests, bs4, unicodedata from datetime import timedelta, date, datetime from time import time # Constants root = 'https://www.fanfiction.net' # REGEX MATCHES # STORY REGEX _STORYID_REGEX = r"var\s+storyid\s*=\s*(\d+);" _CHAPTER_REGEX = r"var\s+chapter\s*=\s*(\d+);" _CHAPTERS_REGEX = r"Chapters:\s*(\d+)\...
39.098182
248
0.606213
17,623
0.819522
269
0.012509
0
0
0
0
9,177
0.426758
52638e3a09f767e9f0fd09e303642391fc9189e4
1,506
py
Python
maglearn_back/database.py
maglearn/maglearn-back
cb5d8623f26e207b870c09c80cbc59911ab23794
[ "MIT" ]
null
null
null
maglearn_back/database.py
maglearn/maglearn-back
cb5d8623f26e207b870c09c80cbc59911ab23794
[ "MIT" ]
null
null
null
maglearn_back/database.py
maglearn/maglearn-back
cb5d8623f26e207b870c09c80cbc59911ab23794
[ "MIT" ]
null
null
null
import sqlite3 from datetime import datetime import click from flask import current_app, g from flask.cli import with_appcontext from flask_sqlalchemy import SQLAlchemy, Model from sqlalchemy import Column, Integer, TIMESTAMP, Boolean class Base(Model): # this id implementation does not support inheritance i...
23.904762
78
0.687915
398
0.264276
0
0
180
0.119522
0
0
333
0.221116
52643d3c51f0d9cbab7251a5238d3b6d7605e95b
5,667
py
Python
legacy/models/ioc_mlp.py
gsc2001/ConvexNet
a17609bd5bca0a02b6330b1ad8035f2b280109f0
[ "MIT" ]
null
null
null
legacy/models/ioc_mlp.py
gsc2001/ConvexNet
a17609bd5bca0a02b6330b1ad8035f2b280109f0
[ "MIT" ]
null
null
null
legacy/models/ioc_mlp.py
gsc2001/ConvexNet
a17609bd5bca0a02b6330b1ad8035f2b280109f0
[ "MIT" ]
null
null
null
import torch.utils.data from torch.utils.tensorboard import SummaryWriter from torch import nn from tqdm import tqdm import numpy as np from datasets.preprocess import DatasetWrapper from utils import AverageMeter class IOC_MLP(torch.nn.Module): def __init__(self, input_features, out_classes): super()._...
34.554878
81
0.498853
579
0.10217
0
0
0
0
0
0
353
0.06229
5265a4488bcea1fc3304e5e8203a8bdc21c56960
485
py
Python
Lesson04_CrypoTools_pt1/1_julius/solution.py
Alyoninthecity/Cybersecurity2021UNIPD
456a0ff70357266902556627522cc8f41888907c
[ "BSD-3-Clause" ]
null
null
null
Lesson04_CrypoTools_pt1/1_julius/solution.py
Alyoninthecity/Cybersecurity2021UNIPD
456a0ff70357266902556627522cc8f41888907c
[ "BSD-3-Clause" ]
null
null
null
Lesson04_CrypoTools_pt1/1_julius/solution.py
Alyoninthecity/Cybersecurity2021UNIPD
456a0ff70357266902556627522cc8f41888907c
[ "BSD-3-Clause" ]
null
null
null
import base64 import re def base64ToString(base64): reg = "\\x[a-z0-9][a-z0-9]" base64.b64decode() message_bytes = message.encode("ascii") base64_bytes = base64.b64encode(message_bytes) base64_message = base64_bytes.decode("ascii") def shiftASCII(string, n): r = "" for i in string: ...
21.086957
50
0.635052
0
0
0
0
0
0
0
0
77
0.158763
5265f7fb300d1d6611ad4be7e87983eb5c5ee653
568
py
Python
freyr_app/core/forms.py
blanchefort/freyrmonitoring
5bf10ba86d3f88390f91106426dd964289f5aee6
[ "MIT" ]
2
2021-06-01T20:27:14.000Z
2021-10-01T23:24:45.000Z
freyr_app/core/forms.py
blanchefort/freyrmonitoring
5bf10ba86d3f88390f91106426dd964289f5aee6
[ "MIT" ]
null
null
null
freyr_app/core/forms.py
blanchefort/freyrmonitoring
5bf10ba86d3f88390f91106426dd964289f5aee6
[ "MIT" ]
null
null
null
from django import forms class AddUrlForm(forms.Form): """Добавляем УРЛ для проверки """ url = forms.URLField(initial='https://', label='Введите ссылку для проверки') class UploadHappinessIndex(forms.Form): """Форма для загрузки файла с кастомным индексом счастья """ name = forms.CharField(max...
31.555556
81
0.705986
702
0.957708
0
0
0
0
0
0
402
0.548431
52681931ece663f1a9a6fa741b530f332c045a60
2,264
py
Python
src/putil/test/test_timer.py
scionrep/scioncc_new
086be085b69711ee24c4c86ed42f2109ca0db027
[ "BSD-2-Clause" ]
2
2015-10-05T20:36:35.000Z
2018-11-21T11:45:24.000Z
src/putil/test/test_timer.py
scionrep/scioncc_new
086be085b69711ee24c4c86ed42f2109ca0db027
[ "BSD-2-Clause" ]
21
2015-03-18T14:39:32.000Z
2016-07-01T17:16:29.000Z
src/putil/test/test_timer.py
scionrep/scioncc_new
086be085b69711ee24c4c86ed42f2109ca0db027
[ "BSD-2-Clause" ]
12
2015-03-18T10:53:49.000Z
2018-06-21T11:19:57.000Z
import time from math import fabs import putil.timer from putil.testing import UtilTest class TestTimer(UtilTest): def setUp(self): self.op1_times = iter([ .01, .02 ]) self.a1 = putil.timer.Accumulator() self.op2_step1_times = iter([ .005, .015, .005, .005]) self.op2_step2_times ...
30.186667
85
0.619258
2,172
0.959364
0
0
0
0
0
0
80
0.035336
52685c541e22ce454e9ae9ee85d7869bba20eee6
5,122
py
Python
google/api/endpoint_pb2.py
LaudateCorpus1/python-api-common-protos
d9d8a9fc3543ef90b69bc1a79467daca3a0d220e
[ "Apache-2.0" ]
null
null
null
google/api/endpoint_pb2.py
LaudateCorpus1/python-api-common-protos
d9d8a9fc3543ef90b69bc1a79467daca3a0d220e
[ "Apache-2.0" ]
1
2022-03-18T21:45:58.000Z
2022-03-18T21:45:58.000Z
google/api/endpoint_pb2.py
LaudateCorpus1/python-api-common-protos
d9d8a9fc3543ef90b69bc1a79467daca3a0d220e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.045161
398
0.641742
0
0
0
0
0
0
0
0
1,703
0.332487
5268e2e7c321088280b18102a1f9b67bb8260b9f
966
py
Python
flexget/plugins/filter/imdb_required.py
Konubinix/Flexget
1379e346370ef144b9a02f761fc187497b6097e2
[ "MIT" ]
1
2017-08-25T07:17:04.000Z
2017-08-25T07:17:04.000Z
flexget/plugins/filter/imdb_required.py
Konubinix/Flexget
1379e346370ef144b9a02f761fc187497b6097e2
[ "MIT" ]
1
2015-11-10T01:07:54.000Z
2015-11-10T01:07:54.000Z
flexget/plugins/filter/imdb_required.py
Konubinix/Flexget
1379e346370ef144b9a02f761fc187497b6097e2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event log = logging.getLogger('imdb_required') class FilterImdbRequired(object): """ Rejects entries without imdb_url or imdb_id. Makes imdb lookup / search if necessary...
25.421053
79
0.656315
660
0.68323
0
0
552
0.571429
0
0
270
0.279503
5269a1caf0be2c82d1b57ef29ea750514c38cbea
1,795
py
Python
tools/make_folders.py
leonzucchini/recipes
d11d1ee589bbea89b0d587e056c17718de25e9f3
[ "MIT" ]
8
2017-09-17T10:39:37.000Z
2021-12-29T11:46:03.000Z
tools/make_folders.py
leonzucchini/Recipes
d11d1ee589bbea89b0d587e056c17718de25e9f3
[ "MIT" ]
null
null
null
tools/make_folders.py
leonzucchini/Recipes
d11d1ee589bbea89b0d587e056c17718de25e9f3
[ "MIT" ]
null
null
null
import os import sys import shutil import re def make_output_folder(folder_path, debug=False): """ Make folder for output, checking for previous results """ # Skip if debug (avoids replace prompt) if debug: print "FolderSetup warning: Not creating directory because debug = True" ...
35.9
93
0.485794
0
0
0
0
0
0
0
0
680
0.37883
526b26f211436d7f0e5e0e9e0897c31bf38dfd65
6,748
py
Python
emit_main/workflow/l3_tasks.py
emit-sds/emit-main
7c2f6feacc68b8a962309d8a3a7f6decc571c69d
[ "Apache-2.0" ]
1
2022-02-11T17:05:52.000Z
2022-02-11T17:05:52.000Z
emit_main/workflow/l3_tasks.py
emit-sds/emit-main
7c2f6feacc68b8a962309d8a3a7f6decc571c69d
[ "Apache-2.0" ]
null
null
null
emit_main/workflow/l3_tasks.py
emit-sds/emit-main
7c2f6feacc68b8a962309d8a3a7f6decc571c69d
[ "Apache-2.0" ]
null
null
null
""" This code contains tasks for executing EMIT Level 3 PGEs and helper utilities. Author: Philip G. Brodrick, philip.brodrick@jpl.nasa.gov """ import datetime import logging import os import luigi import spectral.io.envi as envi from emit_main.workflow.output_targets import AcquisitionTarget from emit_main.workflo...
42.440252
114
0.636633
6,173
0.91479
0
0
0
0
0
0
1,963
0.290901
526b485dc264415947150a42644b3ef978ed20b1
2,843
py
Python
src/python/backends/py/runtime/graph/copy.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
1
2022-03-16T16:37:11.000Z
2022-03-16T16:37:11.000Z
src/python/backends/py/runtime/graph/copy.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
src/python/backends/py/runtime/graph/copy.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
''' Code to copy Curry expressions. ''' from __future__ import absolute_import from .....common import T_SETGRD, T_FWD from copy import copy, deepcopy from ..... import inspect from . import node __all__ = ['copygraph', 'copynode', 'GraphCopier', 'Skipper'] class GraphCopier(object): ''' Deep-copies an expressio...
26.324074
76
0.651425
1,371
0.482237
0
0
0
0
0
0
1,104
0.388322
526d20bd4beb813f088b8c300d75c3314be9fe9d
1,325
py
Python
src/dynamic_programming/python/coins/tests/test_coins.py
djeada/GraphAlgorithms
0961303ec20430f90053a4efb9074185f96dfddc
[ "MIT" ]
2
2021-05-31T13:01:33.000Z
2021-12-20T19:48:18.000Z
src/dynamic_programming/python/coins/tests/test_coins.py
djeada/GraphAlgorithms
0961303ec20430f90053a4efb9074185f96dfddc
[ "MIT" ]
null
null
null
src/dynamic_programming/python/coins/tests/test_coins.py
djeada/GraphAlgorithms
0961303ec20430f90053a4efb9074185f96dfddc
[ "MIT" ]
null
null
null
import unittest import os import sys file_dir = os.path.dirname(os.path.dirname(__file__)) sys.path.append(file_dir + "/src") from coins import coin_change_basic, coin_change_memo, coin_change_tab class TestCoinChangeBasic(unittest.TestCase): def test_negative(self): num = 0 coins = [3, 2, 1] ...
23.660714
70
0.621132
1,067
0.805283
0
0
0
0
0
0
16
0.012075
526d4d40cd6f4c695d138adad233c6be53e5ca14
359
py
Python
tutorials/W1D3_MultiLayerPerceptrons/solutions/W1D3_Tutorial1_Solution_d58d2933.py
amita-kapoor/course-content-dl
bba5c8f6fa38a83c4e452be30791f3a6399d5b83
[ "CC-BY-4.0", "BSD-3-Clause" ]
473
2021-04-13T18:27:42.000Z
2022-03-28T14:14:35.000Z
tutorials/W1D3_MultiLayerPerceptrons/solutions/W1D3_Tutorial1_Solution_d58d2933.py
amita-kapoor/course-content-dl
bba5c8f6fa38a83c4e452be30791f3a6399d5b83
[ "CC-BY-4.0", "BSD-3-Clause" ]
399
2021-06-07T20:56:59.000Z
2022-01-26T23:05:06.000Z
tutorials/W1D3_MultiLayerPerceptrons/solutions/W1D3_Tutorial1_Solution_d58d2933.py
amita-kapoor/course-content-dl
bba5c8f6fa38a83c4e452be30791f3a6399d5b83
[ "CC-BY-4.0", "BSD-3-Clause" ]
170
2021-04-16T11:09:32.000Z
2022-03-31T12:13:52.000Z
""" At infinite membrane resistance, the Neuron does not leak any current out, and hence it starts firing with the slightest input current, This shifts the transfer function towards 0, similar to ReLU activation (centered at 0). Also, when there is minimal refractory time, the neuron can keep firing at a high input cu...
44.875
88
0.788301
0
0
0
0
0
0
0
0
357
0.994429
526ee635b3e57242e052bcbb6a2a6c1ce49cfd69
1,377
py
Python
clients/listen.py
devstopfix/elixoids
df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d
[ "MIT" ]
5
2016-07-05T13:42:33.000Z
2020-12-07T14:12:16.000Z
clients/listen.py
devstopfix/elixoids
df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d
[ "MIT" ]
70
2016-06-04T11:31:27.000Z
2020-11-21T20:00:09.000Z
clients/listen.py
devstopfix/elixoids
df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d
[ "MIT" ]
1
2016-07-05T17:10:05.000Z
2016-07-05T17:10:05.000Z
# # Visualize the audio of an Elixoids game: # # pip3 install websocket-client # python3 clients/listen.py --host example.com # import argparse import sys import websocket try: import thread except ImportError: import _thread as thread import sound_pb2 def on_message(ws, message): sound = sound_...
25.036364
78
0.606391
0
0
0
0
0
0
0
0
282
0.204348
52702373891582e4ba0d662955581802a9e0d1a1
12,915
py
Python
find_duplicates.py
dallascard/LN_tools
66be00f1fd11517f7bbf2949cc70f9552f3af4f4
[ "Apache-2.0" ]
1
2019-09-29T20:48:51.000Z
2019-09-29T20:48:51.000Z
find_duplicates.py
dallascard/LN_tools
66be00f1fd11517f7bbf2949cc70f9552f3af4f4
[ "Apache-2.0" ]
null
null
null
find_duplicates.py
dallascard/LN_tools
66be00f1fd11517f7bbf2949cc70f9552f3af4f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This script looks through the JSON files created by parse_LN_to_JSON.py and looks for duplicates using the Jaccard Coefficient f k-grams of the article text (body). It creates a CSV file with all of the cases listed and duplicates marked, and optionally stores the same information in a JSO...
36.176471
170
0.602787
0
0
0
0
0
0
0
0
5,435
0.420828
527099d9e70699816c427356c1e9f6bf0065bca5
160
py
Python
QARealtimeCollector/clients/test.py
dizzy21c/QUANTAXIS_RealtimeCollector
bb55a3852fe437b51ce92a9cbbc4e89c5e317f6c
[ "MIT" ]
1
2020-02-03T14:10:38.000Z
2020-02-03T14:10:38.000Z
QARealtimeCollector/clients/test.py
daqing526533/QUANTAXIS_RealtimeCollector
e234669ac680fa59775598df2ee84a61085b79ed
[ "MIT" ]
null
null
null
QARealtimeCollector/clients/test.py
daqing526533/QUANTAXIS_RealtimeCollector
e234669ac680fa59775598df2ee84a61085b79ed
[ "MIT" ]
null
null
null
from QAPUBSUB.consumer import subscriber sub = subscriber(host='192.168.2.116',user='admin', password='admin' ,exchange= 'realtime_60min_rb1910') sub.start()
32
104
0.7625
0
0
0
0
0
0
0
0
52
0.325
5270c0102b69687b11a4659208c542e286ce0456
356
py
Python
artifacttemplates/http%3A%2F%2Fopentosca.org%2Fartifacttemplates/PennyLaneAlgo_DA_AT/files/pennylane_app_algo.py
OpenTOSCA/tosca-definitions-public
abc4240499f143b0cb0fdd8a1f1400b2172e95b9
[ "Apache-2.0" ]
null
null
null
artifacttemplates/http%3A%2F%2Fopentosca.org%2Fartifacttemplates/PennyLaneAlgo_DA_AT/files/pennylane_app_algo.py
OpenTOSCA/tosca-definitions-public
abc4240499f143b0cb0fdd8a1f1400b2172e95b9
[ "Apache-2.0" ]
null
null
null
artifacttemplates/http%3A%2F%2Fopentosca.org%2Fartifacttemplates/PennyLaneAlgo_DA_AT/files/pennylane_app_algo.py
OpenTOSCA/tosca-definitions-public
abc4240499f143b0cb0fdd8a1f1400b2172e95b9
[ "Apache-2.0" ]
1
2020-04-30T15:04:24.000Z
2020-04-30T15:04:24.000Z
import pennylane as qml import numpy as np def algo(x, y, z): qml.RZ(z, wires=[0]) qml.RY(y, wires=[0]) qml.RX(x, wires=[0]) qml.CNOT(wires=[0, 1]) return qml.expval(qml.PauliZ(wires=1)) def run_algo(device, args): print(args) circuit = qml.QNode(algo, device) result = circuit(float(args['X']), float(args['Y'...
23.733333
71
0.660112
0
0
0
0
0
0
0
0
9
0.025281
5272823ab83e4c5f82c505ea22fae1f24153577c
14,389
py
Python
baseline/deep_ed_PyTorch/deep_ed_PyTorch/ed/model/model_global.py
yifding/e2e_EL_evaluate
48e12a93c98daf99bb560efcc267749247f590ba
[ "MIT" ]
5
2021-11-30T02:19:52.000Z
2021-12-10T14:38:17.000Z
baseline/deep_ed_PyTorch/deep_ed_PyTorch/ed/model/model_global.py
yifding/e2e_EL_evaluate
48e12a93c98daf99bb560efcc267749247f590ba
[ "MIT" ]
1
2021-11-15T02:18:41.000Z
2021-12-01T13:36:26.000Z
baseline/deep_ed_PyTorch/deep_ed_PyTorch/ed/model/model_global.py
yifding/e2e_EL_evaluate
48e12a93c98daf99bb560efcc267749247f590ba
[ "MIT" ]
null
null
null
# **YD** the model to train deep-ed-global for entity disambiguation import copy import argparse import torch import torch.nn as nn import torch.nn.functional as F from deep_ed_PyTorch.utils import utils from deep_ed_PyTorch.ed.args import arg_parse class EntityContext(nn.Module): def __init__(self, args): ...
36.335859
120
0.640698
12,641
0.878518
0
0
0
0
0
0
6,814
0.473556
5273f884bdde093ed253a7bc5d4d0356e46a62b0
4,349
py
Python
11_cnnInceptionMNIST.py
cwangjiang/PyTorch_Basics
bdc4dfb2a8565c3b86320c9c56cf57ef812387f1
[ "MIT" ]
null
null
null
11_cnnInceptionMNIST.py
cwangjiang/PyTorch_Basics
bdc4dfb2a8565c3b86320c9c56cf57ef812387f1
[ "MIT" ]
null
null
null
11_cnnInceptionMNIST.py
cwangjiang/PyTorch_Basics
bdc4dfb2a8565c3b86320c9c56cf57ef812387f1
[ "MIT" ]
null
null
null
# this code use cnn with inception unit + softmax to predict handwriting 0-9 from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms batch_size = 64 # download the dataset, don't need to construc...
36.855932
184
0.721315
1,712
0.393654
0
0
0
0
0
0
1,273
0.292711
52779a9cdce9f94293477ea1630e84c3ba8660ce
2,842
py
Python
LovelyFlask/App/views.py
legendary6666/AxfFlask
a93aa8a17fd8a04e4b6510bbb66b317e0da2bdd8
[ "Apache-2.0" ]
null
null
null
LovelyFlask/App/views.py
legendary6666/AxfFlask
a93aa8a17fd8a04e4b6510bbb66b317e0da2bdd8
[ "Apache-2.0" ]
null
null
null
LovelyFlask/App/views.py
legendary6666/AxfFlask
a93aa8a17fd8a04e4b6510bbb66b317e0da2bdd8
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, request, render_template, url_for from LovelyFlask.App.models import HomeWheel, HomeNav, HomeMustBuy, HomeMainShow, HomeShop, FoodTypes, Goods, CartModel blue = Blueprint("first_blue", __name__, url_prefix="/api/") def init_first_blue(app): app.register_blueprint(blueprint=blue) A...
22.555556
119
0.63582
0
0
0
0
696
0.210272
0
0
1,064
0.32145
527a60539e80aabfa5ad82b97a6806b4bb9a6026
3,546
py
Python
tests/test_benchmark_config.py
chayim/redisbench-admin
11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f
[ "Apache-2.0" ]
null
null
null
tests/test_benchmark_config.py
chayim/redisbench-admin
11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f
[ "Apache-2.0" ]
null
null
null
tests/test_benchmark_config.py
chayim/redisbench-admin
11ca257c8d3f3af3cd1cd95ee2b2dedf366a807f
[ "Apache-2.0" ]
null
null
null
import json import yaml from redisbench_admin.utils.benchmark_config import ( results_dict_kpi_check, check_required_modules, extract_redis_dbconfig_parameters, ) def test_results_dict_kpi_check(): return_code = results_dict_kpi_check({}, {}, 0) assert return_code == 0 return_code = results_...
37.326316
88
0.64608
0
0
0
0
0
0
0
0
681
0.192047
527aa6734f670a7305701a9491f740dd20386e1e
4,982
py
Python
thornpy/utilities.py
bthornton191/thorpy
3f5ffac31ef2d6d5763eb1a1abb3328c23ce5612
[ "MIT" ]
null
null
null
thornpy/utilities.py
bthornton191/thorpy
3f5ffac31ef2d6d5763eb1a1abb3328c23ce5612
[ "MIT" ]
null
null
null
thornpy/utilities.py
bthornton191/thorpy
3f5ffac31ef2d6d5763eb1a1abb3328c23ce5612
[ "MIT" ]
null
null
null
"""Miscellaneous tools. """ import os import csv from typing import Union from subprocess import Popen from pathlib import Path from scipy.io import loadmat import pandas as pd def open_in_explorer(path : os.PathLike) -> None: if Path(path).is_dir(): _ = Popen(f'explorer.exe /root,"{path}"') elif Pat...
27.988764
153
0.580891
0
0
0
0
0
0
0
0
2,430
0.487756
527b6c5e2d8ecc9a252bf2b0696deaac0d511759
25,521
py
Python
python/paddle/fluid/tests/unittests/test_rnn_cell_api.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_rnn_cell_api.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_rnn_cell_api.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2019 PaddlePaddle Authors. 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...
39.323575
117
0.528819
22,027
0.863093
0
0
98
0.00384
0
0
2,781
0.108969
527bc4d5ab9a34fe4787a9eb7ce66708aaf90dff
4,591
py
Python
pyfsdb/dbheatmap.py
samihaija/pyfsdb
a993adf54fa5fe61fb74c544f0899fb37586fb13
[ "MIT" ]
null
null
null
pyfsdb/dbheatmap.py
samihaija/pyfsdb
a993adf54fa5fe61fb74c544f0899fb37586fb13
[ "MIT" ]
null
null
null
pyfsdb/dbheatmap.py
samihaija/pyfsdb
a993adf54fa5fe61fb74c544f0899fb37586fb13
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, FileType import matplotlib import matplotlib.pyplot as plt import numpy as np import pyfsdb def parse_args(): parser = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter, desc...
33.028777
79
0.566543
0
0
0
0
0
0
0
0
850
0.185145
527dc5a4f8f8e32f762c34d938c444eff18aaebe
1,912
py
Python
cheatsheeter/extensions/embed_img.py
jorgebg/cheatsheets
fbcb9f09d9ece79d297870ce0623c1824613aad0
[ "MIT" ]
null
null
null
cheatsheeter/extensions/embed_img.py
jorgebg/cheatsheets
fbcb9f09d9ece79d297870ce0623c1824613aad0
[ "MIT" ]
null
null
null
cheatsheeter/extensions/embed_img.py
jorgebg/cheatsheets
fbcb9f09d9ece79d297870ce0623c1824613aad0
[ "MIT" ]
null
null
null
import base64 import mimetypes import os from urllib.parse import unquote import xml.etree.ElementTree as etree from markdown.inlinepatterns import LinkInlineProcessor from markdown.extensions import Extension def remove_namespace(doc, namespace): """Remove namespace in the passed document in place.""" ns = u...
32.965517
104
0.621339
1,442
0.754184
0
0
0
0
0
0
239
0.125
527e86226640cb993df97a6dd75cf709f8f69f69
1,000
py
Python
Lintcode/Ladder_64_G_GC/1398. K Decimal Addition.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/Ladder_64_G_GC/1398. K Decimal Addition.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/Ladder_64_G_GC/1398. K Decimal Addition.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
class Solution: """ @param k: The k @param a: The A @param b: The B @return: The answer """ def addition(self, k, a, b): result = "" i = len(a) - 1 j = len(b) - 1 carry = 0 while i >= 0 and j >= 0: summ = carry + ord(a[i]) - ord('0') + ord(...
23.255814
70
0.372
1,000
1
0
0
0
0
0
0
127
0.127
527ea97496890c3d4c2ba0cde080bddf0bb1b16e
675
py
Python
algorithm/util.py
Scott-Huang/SemEval-2021-Task-6
d9dfac1b30d7926d614d18be29db3fcd4bc8f84f
[ "MIT" ]
null
null
null
algorithm/util.py
Scott-Huang/SemEval-2021-Task-6
d9dfac1b30d7926d614d18be29db3fcd4bc8f84f
[ "MIT" ]
null
null
null
algorithm/util.py
Scott-Huang/SemEval-2021-Task-6
d9dfac1b30d7926d614d18be29db3fcd4bc8f84f
[ "MIT" ]
null
null
null
import json import argparse def to_output(filepath, outpath): with open(filepath, encoding='utf-8') as f: data = json.load(f) output = [] for d in data: temp = {} temp['id'] = d['id'] temp['labels'] = d['pred_labels'] output.append(temp) with open(outpath, 'w+') ...
30.681818
100
0.634074
0
0
0
0
0
0
0
0
125
0.185185
527eb99dfa2b028f29819a3104c6f9c9adfe7aae
2,886
py
Python
pyxlsb2/cell.py
cccs-jh/pyxlsb2
6c5a2990a62e0d80a366d87eb65cbc20573c7b08
[ "Apache-2.0", "MIT" ]
16
2020-04-24T20:07:12.000Z
2022-02-03T18:58:11.000Z
pyxlsb2/cell.py
cccs-jh/pyxlsb2
6c5a2990a62e0d80a366d87eb65cbc20573c7b08
[ "Apache-2.0", "MIT" ]
12
2020-06-08T14:10:13.000Z
2022-03-31T14:58:06.000Z
pyxlsb2/cell.py
cccs-jh/pyxlsb2
6c5a2990a62e0d80a366d87eb65cbc20573c7b08
[ "Apache-2.0", "MIT" ]
13
2020-06-06T07:58:06.000Z
2021-12-24T11:39:43.000Z
import sys if sys.version_info > (3,): basestring = (str, bytes) long = int class DeprecatedCellMixin(object): """Deprecated Cell properties to preserve source compatibility with the 1.0.x releases.""" __slots__ = () @property def r(self): """The row number of this cell. .....
27.226415
94
0.582814
2,796
0.968815
0
0
1,805
0.625433
0
0
1,325
0.459113
527f0ea921ffa6f195d05d140e655588c4f82a9e
7,234
py
Python
2018/vis/simple_test.py
vais-ral/WorkExperience
74cb47645a1c524230648fce465ece25e1a4d713
[ "BSD-2-Clause" ]
null
null
null
2018/vis/simple_test.py
vais-ral/WorkExperience
74cb47645a1c524230648fce465ece25e1a4d713
[ "BSD-2-Clause" ]
1
2018-07-10T16:03:42.000Z
2018-07-10T16:03:42.000Z
2018/vis/simple_test.py
vais-ral/WorkExperience
74cb47645a1c524230648fce465ece25e1a4d713
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 27 13:59:43 2018 @author: ofn77899 """ import numpy from ccpi.segmentation.SimpleflexSegmentor import SimpleflexSegmentor from ccpi.viewer.CILViewer import CILViewer from ccpi.viewer.CILViewer2D import CILViewer2D, Converter import vtk #Text-based input s...
34.61244
105
0.64971
0
0
0
0
0
0
0
0
2,427
0.335499
528090f5687885fbfb1c8e3d60235e9fb42ea50b
1,081
py
Python
Scripts/day12.py
HarrisonGreen/Advent-of-Code-2015
6a81395882c79135548eb7984bfd98c279c5f258
[ "MIT" ]
null
null
null
Scripts/day12.py
HarrisonGreen/Advent-of-Code-2015
6a81395882c79135548eb7984bfd98c279c5f258
[ "MIT" ]
null
null
null
Scripts/day12.py
HarrisonGreen/Advent-of-Code-2015
6a81395882c79135548eb7984bfd98c279c5f258
[ "MIT" ]
null
null
null
import json def read_input(): file = open("Data/day12.json", "r") return json.load(file) def calculate_sum(accounts): if type(accounts) == str: return 0 elif type(accounts) == int: return accounts elif type(accounts) == list: return sum(calculate_sum(i...
30.027778
81
0.60407
0
0
0
0
0
0
0
0
118
0.109158
52813eb5a92147299029b6f56c0318355c220c8b
131
py
Python
backend/app/admin/components/__init__.py
griviala/garpix_page
55f1d9bc6d1de29d18e15369bebcbef18811b5a4
[ "MIT" ]
null
null
null
backend/app/admin/components/__init__.py
griviala/garpix_page
55f1d9bc6d1de29d18e15369bebcbef18811b5a4
[ "MIT" ]
null
null
null
backend/app/admin/components/__init__.py
griviala/garpix_page
55f1d9bc6d1de29d18e15369bebcbef18811b5a4
[ "MIT" ]
null
null
null
from .text_component import TextComponentAdmin # noqa from .text_description_component import TextDescriptionComponentAdmin # noqa
43.666667
76
0.877863
0
0
0
0
0
0
0
0
12
0.091603
5282a5299abff7b8701b16a10c2c45a9be1078cc
27
py
Python
portal/pulsar/__init__.py
bbhunter/pulsar
1f6384482eebc71137716e27ba7a010f3aea7241
[ "Apache-2.0", "BSD-3-Clause" ]
12
2021-12-28T14:15:27.000Z
2022-03-29T00:45:00.000Z
portal/pulsar/__init__.py
bbhunter/pulsar
1f6384482eebc71137716e27ba7a010f3aea7241
[ "Apache-2.0", "BSD-3-Clause" ]
1
2022-02-09T12:47:14.000Z
2022-02-09T12:47:14.000Z
portal/pulsar/__init__.py
bbhunter/pulsar
1f6384482eebc71137716e27ba7a010f3aea7241
[ "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-18T03:59:11.000Z
2022-01-18T03:59:11.000Z
from .celeryapp import *
6.75
24
0.703704
0
0
0
0
0
0
0
0
0
0
528428e2a5380d1c525ea3a3731e3cf65f022c14
377
py
Python
src/tests/wikipedia.py
alexseitsinger/page-scrapers
20898c487fa2dae72e17c10d51b7481e62c72202
[ "BSD-2-Clause" ]
1
2019-02-23T13:25:22.000Z
2019-02-23T13:25:22.000Z
src/tests/wikipedia.py
alexseitsinger/page_scrapers
20898c487fa2dae72e17c10d51b7481e62c72202
[ "BSD-2-Clause" ]
null
null
null
src/tests/wikipedia.py
alexseitsinger/page_scrapers
20898c487fa2dae72e17c10d51b7481e62c72202
[ "BSD-2-Clause" ]
1
2019-08-28T18:16:45.000Z
2019-08-28T18:16:45.000Z
from page_scrapers.wikipedia.scrapers.film import WikipediaFilmScraper query_1 = "hellraiser 2" scraper_1 = WikipediaFilmScraper(query_1) scraped_1 = scraper_1.scrape() filtered_1 = scraper_1.filter() print(filtered_1) query_2 = "hellraiser judgement" scraper_2 = WikipediaFilmScraper(query_2) scraped_2 = scraper_2.sc...
26.928571
70
0.816976
0
0
0
0
0
0
0
0
36
0.095491
5284ceab6fbd7910c2633d7b5d3b387b689554f1
42,835
py
Python
mobilkit/temporal.py
mindearth/mobilkit
26a426f0bc071c6cefc4a07f0901a3f9af6e62ae
[ "MIT" ]
12
2021-08-02T15:55:13.000Z
2022-03-27T12:23:59.000Z
mobilkit/temporal.py
datapartnership/mobilkit
26a426f0bc071c6cefc4a07f0901a3f9af6e62ae
[ "MIT" ]
1
2021-08-02T16:04:41.000Z
2021-08-11T14:37:55.000Z
mobilkit/temporal.py
datapartnership/mobilkit
26a426f0bc071c6cefc4a07f0901a3f9af6e62ae
[ "MIT" ]
2
2021-05-19T09:47:56.000Z
2021-09-28T15:11:48.000Z
# Copyright (C) MindEarth <enrico.ubaldi@mindearth.org> @ Mindearth 2020-2021 # # This file is part of mobilkit. # # mobilkit is distributed under the MIT license. '''Tools and functions to analyze the data in time. ''' import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns impor...
44.994748
373
0.591806
0
0
0
0
0
0
0
0
21,770
0.508229
5286e720b93035006a31236bf9586f44cd981b61
5,591
py
Python
tests/test_mat2.py
TovarnovM/easyvec
25a67a37907140c07feace02dd85d68fc59824a6
[ "MIT" ]
1
2021-06-24T18:12:51.000Z
2021-06-24T18:12:51.000Z
tests/test_mat2.py
TovarnovM/easyvec
25a67a37907140c07feace02dd85d68fc59824a6
[ "MIT" ]
null
null
null
tests/test_mat2.py
TovarnovM/easyvec
25a67a37907140c07feace02dd85d68fc59824a6
[ "MIT" ]
null
null
null
from easyvec import Mat2, Vec2 import numpy as np from pytest import approx def test_constructor1(): m = Mat2(1,2,3,4) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor2(): m = Mat2([1,2,3,4]) ...
27.273171
62
0.514398
0
0
0
0
0
0
0
0
0
0
5287530feaff051b883de6c50b928b9265f12103
1,664
py
Python
tests/test_static_maze.py
agarwalishika/two-d-nav-gym
7b16d16d6944f1ac7b832137096ab56cc5228b2f
[ "MIT" ]
2
2021-09-09T15:59:32.000Z
2021-09-09T16:03:48.000Z
tests/test_static_maze.py
agarwalishika/two-d-nav-gym
7b16d16d6944f1ac7b832137096ab56cc5228b2f
[ "MIT" ]
null
null
null
tests/test_static_maze.py
agarwalishika/two-d-nav-gym
7b16d16d6944f1ac7b832137096ab56cc5228b2f
[ "MIT" ]
null
null
null
import numpy as np from two_d_nav.envs.static_maze import StaticMazeNavigation def test_goal(): env = StaticMazeNavigation() for i in range(60): obs, reward, done, _ = env.step(np.array([1.0, -0.1])) env.render() for i in range(30): obs, reward, done, _ = env.step(np.array([-1.0...
22.794521
63
0.53125
0
0
0
0
0
0
0
0
117
0.070313
528a9e7052216cb329d6d29d4440112a9d78b9fe
146
py
Python
starter_code/api_keys.py
bjouellette/python-api-challenge
855c31769893596211ef072df8412cd47a557e19
[ "ADSL" ]
1
2022-01-27T00:04:14.000Z
2022-01-27T00:04:14.000Z
starter_code/api_keys.py
bjouellette/python-api-challenge
855c31769893596211ef072df8412cd47a557e19
[ "ADSL" ]
null
null
null
starter_code/api_keys.py
bjouellette/python-api-challenge
855c31769893596211ef072df8412cd47a557e19
[ "ADSL" ]
null
null
null
# OpenWeatherMap API Key weather_api_key = "e1067d92d6b631a16363bf4db3023b19" # Google API Key g_key = "AIzaSyA4RYdQ1nxoMTIW854C7wvVJMf0Qz5qjNk"
24.333333
52
0.842466
0
0
0
0
0
0
0
0
115
0.787671
528bb07e2da917115605e5bd86611d0e0fcfeb76
13,099
py
Python
dist-packages/dtk/ui/paned.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
null
null
null
dist-packages/dtk/ui/paned.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
null
null
null
dist-packages/dtk/ui/paned.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 ~ 2012 Deepin, Inc. # 2011 ~ 2012 Xia Bin # 2011 ~ 2012 Wang Yong # # Author: Xia Bin <xiabin@linuxdeepin.com> # Maintainer: Wang Yong <lazycat.manatee@gmail.com> # # This program is free software: you can redistribute ...
35.789617
128
0.578517
10,952
0.836094
0
0
0
0
0
0
2,661
0.203145
528ee35af89eb53ba2db896f868d4961ba685fff
801
py
Python
sghymnal/players/tests/test_drf_views.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/players/tests/test_drf_views.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/players/tests/test_drf_views.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import AnonymousUser from django.test import RequestFactory from sghymnal.players.api.views import PlayersViewSet from sghymnal.players.models import Player pytestmark = pytest.mark.django_db class TestPlayerViewSet: def test_get_queryset(self, player: Player, rf: R...
27.62069
68
0.70412
558
0.696629
0
0
0
0
0
0
45
0.05618
528f89ddb026f558a4cd118b62bb3b0e6ebc6dd4
2,351
py
Python
arviz/plots/backends/matplotlib/separationplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,159
2018-04-03T08:50:54.000Z
2022-03-31T18:03:52.000Z
arviz/plots/backends/matplotlib/separationplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,656
2018-03-23T14:15:05.000Z
2022-03-31T14:00:28.000Z
arviz/plots/backends/matplotlib/separationplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
316
2018-04-03T14:25:52.000Z
2022-03-25T10:41:29.000Z
"""Matplotlib separation plot.""" import matplotlib.pyplot as plt import numpy as np from ...plot_utils import _scale_fig_size from . import backend_kwarg_defaults, backend_show, create_axes_grid def plot_separation( y, y_hat, y_hat_line, label_y_hat, expected_events, figsize, textsize, ...
24.237113
98
0.630795
0
0
0
0
0
0
0
0
200
0.08507
528fa27732c9c401781702d54b0c3389d8dc1cbd
5,053
py
Python
mesonwrap/tools/import_from_hosted.py
Calinou/wrapweb
12ef53e9628aeb5a8db105f3a9f31d8ab4f30af3
[ "Apache-2.0" ]
null
null
null
mesonwrap/tools/import_from_hosted.py
Calinou/wrapweb
12ef53e9628aeb5a8db105f3a9f31d8ab4f30af3
[ "Apache-2.0" ]
null
null
null
mesonwrap/tools/import_from_hosted.py
Calinou/wrapweb
12ef53e9628aeb5a8db105f3a9f31d8ab4f30af3
[ "Apache-2.0" ]
null
null
null
import argparse import git import github import os.path from mesonwrap import gitutils from mesonwrap import tempfile from mesonwrap import webapi from mesonwrap import wrap from mesonwrap.tools import environment from retrying import retry class Importer: def __init__(self): self._tmp = None s...
35.090278
79
0.578864
3,843
0.760538
0
0
2,581
0.510786
0
0
365
0.072234
52905893b96180e3446a9e907db7c405fc9797c3
10,843
py
Python
Cogs/GuideCog.py
BloomAutist47/bloom-bo
e3b298dc7ba27b8e526b18c2750b494b8a66ab3b
[ "CC0-1.0" ]
1
2021-09-07T09:51:16.000Z
2021-09-07T09:51:16.000Z
Cogs/GuideCog.py
BloomAutist47/bloom-bo
e3b298dc7ba27b8e526b18c2750b494b8a66ab3b
[ "CC0-1.0" ]
null
null
null
Cogs/GuideCog.py
BloomAutist47/bloom-bo
e3b298dc7ba27b8e526b18c2750b494b8a66ab3b
[ "CC0-1.0" ]
3
2021-02-19T20:13:21.000Z
2022-02-04T03:56:43.000Z
import os from .Base import * from discord.ext import commands class GuideCog(commands.Cog, BaseTools): def __init__(self, bot): self.setup() self.bot = bot # self.bot.remove_command("help") self.fotter = "Tip: Use \";g\" to summon a list of all guides.\nType `;bhelp` to summon a li...
48.40625
120
0.507793
10,833
0.993762
0
0
10,549
0.967709
10,525
0.965508
2,061
0.189065
529075584e7e7f5b22b46ff655d558470509c089
83,766
py
Python
eden/modifier/rna/lib_forgi.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
eden/modifier/rna/lib_forgi.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
eden/modifier/rna/lib_forgi.py
zaidurrehman/EDeN
1f29d4c9d458edb2bd62a98e57254d78a1f2093f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """bulge_graph.py: A graph representation of RNA secondary structure based on its decomposition into primitive structure types: stems, hairpins, interior loops, multiloops, etc... for eden and graphlearn we stripped forgi down to this single file. forgi: https://github.com/pkerpedj...
31.69353
105
0.514899
72,941
0.870771
6,019
0.071855
267
0.003187
0
0
29,838
0.356207
52935524fdd04ab3aad5b99a96020fa25d8790c3
3,215
py
Python
tools/test_net.py
Willy0919/Evovling_Boxes
a8543227f9e715d67dde1ffe62ee6d0400cca517
[ "BSD-3-Clause" ]
74
2017-04-07T13:18:39.000Z
2021-05-20T01:35:31.000Z
tools/test_net.py
Willy0919/Evovling_Boxes
a8543227f9e715d67dde1ffe62ee6d0400cca517
[ "BSD-3-Clause" ]
10
2017-06-22T12:54:17.000Z
2021-06-28T11:28:11.000Z
tools/test_net.py
Willy0919/Evovling_Boxes
a8543227f9e715d67dde1ffe62ee6d0400cca517
[ "BSD-3-Clause" ]
26
2017-06-02T05:54:44.000Z
2021-03-12T07:53:54.000Z
#!/usr/bin/env python import _init_paths from evb.test import test_net from evb.config import cfg, cfg_from_file, cfg_from_list from datasets.factory import get_imdb import caffe import argparse import pprint import time, os, sys def parse_args(): """ Parse input arguments """ parser = argparse.Argumen...
36.954023
90
0.597823
0
0
0
0
0
0
0
0
711
0.221151
52964f8e82619896f05ff838aec7c2f18d6b3605
2,030
py
Python
GameStore/product/migrations/0001_initial.py
hossein9090/gamestore
62d20b1d32c52c68dfe587ae8b6de5c36c122a37
[ "MIT" ]
null
null
null
GameStore/product/migrations/0001_initial.py
hossein9090/gamestore
62d20b1d32c52c68dfe587ae8b6de5c36c122a37
[ "MIT" ]
null
null
null
GameStore/product/migrations/0001_initial.py
hossein9090/gamestore
62d20b1d32c52c68dfe587ae8b6de5c36c122a37
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-24 09:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
43.191489
169
0.578818
1,904
0.937931
0
0
0
0
0
0
355
0.174877
529658a483417869521cdbb5cf8a291986f401d8
85
py
Python
personal_assistant/constants.py
avryhof/personal-assistant
115b384a405ee6b2c5099619beff433b113e24ff
[ "MIT" ]
null
null
null
personal_assistant/constants.py
avryhof/personal-assistant
115b384a405ee6b2c5099619beff433b113e24ff
[ "MIT" ]
2
2021-04-06T17:59:11.000Z
2021-06-01T23:40:39.000Z
personal_assistant/constants.py
avryhof/personal-assistant
115b384a405ee6b2c5099619beff433b113e24ff
[ "MIT" ]
null
null
null
RECOGNIZER_SNOWBOY = 'snowboy' RECOGNIZER_SPHINX = 'sphinx' RECOGNIZER_WIT = 'wit.ai'
28.333333
30
0.788235
0
0
0
0
0
0
0
0
25
0.294118
5297b606a1bd8dcbc70078cca628b648831434d4
1,023
py
Python
src/content-processor.py
rionaldichandraseta/anti-clickbait
77dbaab8a64c81957d2d98b7d0b7476b814f6f49
[ "MIT" ]
null
null
null
src/content-processor.py
rionaldichandraseta/anti-clickbait
77dbaab8a64c81957d2d98b7d0b7476b814f6f49
[ "MIT" ]
null
null
null
src/content-processor.py
rionaldichandraseta/anti-clickbait
77dbaab8a64c81957d2d98b7d0b7476b814f6f49
[ "MIT" ]
null
null
null
# Processor for kompas-data-contents.txt MIN_IDX = 100 contentfile = open('../data/kompas-data-contents.txt', 'r') content_data = [] for line in contentfile: content_data.append(line) processed_contentfile = open('../data/kompas-data-contents-processed.txt', 'w+') for id, content in enumerate(content_data): ...
26.921053
80
0.602151
0
0
0
0
0
0
0
0
573
0.557936
52984fb6886845bba544a9e79802fb55bac1da12
10,296
py
Python
app/home/routes.py
ajietrid/network-monitoring-using-pysnmp
095ad60b43c1e0f165a834d167e5679b886907d6
[ "MIT" ]
null
null
null
app/home/routes.py
ajietrid/network-monitoring-using-pysnmp
095ad60b43c1e0f165a834d167e5679b886907d6
[ "MIT" ]
null
null
null
app/home/routes.py
ajietrid/network-monitoring-using-pysnmp
095ad60b43c1e0f165a834d167e5679b886907d6
[ "MIT" ]
1
2021-03-08T02:52:22.000Z
2021-03-08T02:52:22.000Z
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from app.home import blueprint from flask import render_template, redirect, url_for, request, flash, send_file from flask_login import login_required, current_user from app import login_manager from jinja2 import TemplateNotFound i...
40.535433
423
0.716783
0
0
0
0
9,496
0.9223
0
0
1,916
0.186092
52998add29338eeb164775a55420f1427cccf228
2,730
py
Python
src/aws_cloudformation_power_switch/rds_cluster.py
binxio/aws-cloudformation-stack-power-off
9faebd77e76aedb2c2cb84db47417d5a4d77bfc4
[ "Apache-2.0" ]
1
2020-01-22T21:52:13.000Z
2020-01-22T21:52:13.000Z
src/aws_cloudformation_power_switch/rds_cluster.py
binxio/aws-cloudformation-stack-power-off
9faebd77e76aedb2c2cb84db47417d5a4d77bfc4
[ "Apache-2.0" ]
3
2020-03-31T10:37:26.000Z
2021-04-07T08:26:50.000Z
src/aws_cloudformation_power_switch/rds_cluster.py
binxio/aws-cloudformation-stack-power-off
9faebd77e76aedb2c2cb84db47417d5a4d77bfc4
[ "Apache-2.0" ]
null
null
null
import logging from botocore.exceptions import ClientError from aws_cloudformation_power_switch.power_switch import PowerSwitch from aws_cloudformation_power_switch.tag import logical_id class RDSClusterPowerSwitch(PowerSwitch): def __init__(self): super(RDSClusterPowerSwitch, self).__init__() s...
35
86
0.588645
2,538
0.92967
0
0
70
0.025641
0
0
439
0.160806
bfdb1ec3bcf1251777d5b7ee5b6352813b38dd21
435
py
Python
src/organ_match_app/matchapp/migrations/0004_auto_20190509_1708.py
ajmengistu/organmatch
0b1549bde715eb2e44cbb6dcd34fc5e0ce315e4e
[ "bzip2-1.0.6" ]
1
2019-05-07T21:47:54.000Z
2019-05-07T21:47:54.000Z
src/organ_match_app/matchapp/migrations/0004_auto_20190509_1708.py
ajmengistu/organmatch
0b1549bde715eb2e44cbb6dcd34fc5e0ce315e4e
[ "bzip2-1.0.6" ]
7
2019-12-04T22:51:59.000Z
2022-02-10T08:28:35.000Z
src/organ_match_app/matchapp/migrations/0004_auto_20190509_1708.py
ajmengistu/organmatch
0b1549bde715eb2e44cbb6dcd34fc5e0ce315e4e
[ "bzip2-1.0.6" ]
1
2020-07-23T03:43:46.000Z
2020-07-23T03:43:46.000Z
# Generated by Django 2.2.1 on 2019-05-09 21:08 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('matchapp', '0003_available_doctors'), ] operations = [ ...
21.75
66
0.648276
317
0.728736
0
0
0
0
0
0
102
0.234483
bfdb50593c6e1e9d0effbbd8845a4184d945a3b0
547
py
Python
plugins/minfraud/komand_minfraud/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/minfraud/komand_minfraud/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/minfraud/komand_minfraud/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .account_lookup.action import AccountLookup from .all_lookup.action import AllLookup from .billing_lookup.action import BillingLookup from .card_lookup.action import CardLookup from .cart_lookup.action import CartLookup from .device_lookup.action import DeviceLookup from .em...
42.076923
50
0.859232
0
0
0
0
0
0
0
0
39
0.071298
bfdbb2b1ddde5a49cf9aef5ea8e6fde1ea4245c1
3,630
py
Python
catkin_ws/src/deep_learning/img_recognition/src/inference_to_reaction.py
CIRCUSPi/ROSKY
d0328e19cb65416b9353a1faabc725c1ac01c9f6
[ "MIT" ]
3
2021-08-03T07:08:24.000Z
2021-09-12T14:33:41.000Z
catkin_ws/src/deep_learning/img_recognition/src/inference_to_reaction.py
kjoelovelife/ROSKY
d0328e19cb65416b9353a1faabc725c1ac01c9f6
[ "MIT" ]
1
2021-09-03T13:27:33.000Z
2021-09-06T03:28:16.000Z
catkin_ws/src/deep_learning/img_recognition/src/inference_to_reaction.py
kjoelovelife/ROSKY
d0328e19cb65416b9353a1faabc725c1ac01c9f6
[ "MIT" ]
4
2020-12-28T08:20:07.000Z
2021-08-10T06:55:30.000Z
#!/usr/bin/env python import os, sys, argparse, errno, yaml, time, datetime import rospy, rospkg import torch, torchvision, cv2 import numpy as np from rosky_msgs.msg import WheelsCmdStamped, Twist2DStamped from img_recognition.msg import Inference from cv_bridge import CvBridge, CvBridgeError from jetcam_ros.utils imp...
40.333333
112
0.649311
3,059
0.8427
0
0
0
0
0
0
587
0.161708
bfdc8c682e1d83d06a3dc94d8bf229024b62cde2
2,395
py
Python
examples/quickstart.py
farbod1277/imitation
eba376771963ce3f13b17fe23457d7235b9afc99
[ "MIT" ]
null
null
null
examples/quickstart.py
farbod1277/imitation
eba376771963ce3f13b17fe23457d7235b9afc99
[ "MIT" ]
null
null
null
examples/quickstart.py
farbod1277/imitation
eba376771963ce3f13b17fe23457d7235b9afc99
[ "MIT" ]
null
null
null
"""Loads CartPole-v1 demonstrations and trains BC, GAIL, and AIRL models on that data. """ import os import pathlib import pickle import tempfile import seals # noqa: F401 import stable_baselines3 as sb3 from imitation.algorithms import adversarial, bc from imitation.data import rollout from imitation.util import ...
33.263889
109
0.772443
0
0
0
0
0
0
0
0
1,070
0.446764
bfde0530e9195e24f4af021d544ddf9f69b16e9f
38,456
py
Python
tests/integration/resources_permissions/test_epics_resources.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
null
null
null
tests/integration/resources_permissions/test_epics_resources.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
tests/integration/resources_permissions/test_epics_resources.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
1
2018-06-07T10:58:15.000Z
2018-06-07T10:58:15.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2017 Anler Hernández ...
42.120482
122
0.661145
0
0
0
0
6,313
0.164149
0
0
4,555
0.118438
bfe27fe9229cd07b93680b62a614ccd6ac91ab8a
208
py
Python
wmt-etl/config.py
ministryofjustice/hmpps-wmt
66a85b029e2fc2b525b299f9e2ac1803b9cf8516
[ "MIT" ]
3
2017-02-27T17:09:20.000Z
2017-03-27T08:23:50.000Z
wmt-etl/config.py
ministryofjustice/hmpps-wmt
66a85b029e2fc2b525b299f9e2ac1803b9cf8516
[ "MIT" ]
3
2017-03-03T16:08:20.000Z
2017-03-16T17:19:34.000Z
wmt-etl/config.py
ministryofjustice/noms-wmt-alpha
66a85b029e2fc2b525b299f9e2ac1803b9cf8516
[ "MIT" ]
1
2021-04-11T06:54:44.000Z
2021-04-11T06:54:44.000Z
import os DB_SERVER = os.getenv('WMT_DB_SERVER', 'localhost') DB_NAME = os.getenv('WMT_DB_NAME', 'wmt_db') DB_USERNAME = os.getenv('WMT_DB_USERNAME', 'wmt') DB_PASSWORD = os.getenv('WMT_DB_PASSWORD', 'wmt')
29.714286
51
0.735577
0
0
0
0
0
0
0
0
91
0.4375
bfe2baa9a9cbbb83b453c87c86d2b93ecfcf0cc5
484
py
Python
apps/teacheres/adminx.py
ECNU-Studio/emoc
b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c
[ "MIT" ]
1
2018-03-10T08:50:18.000Z
2018-03-10T08:50:18.000Z
apps/teacheres/adminx.py
ECNU-Studio/emoc
b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c
[ "MIT" ]
13
2018-04-28T02:33:21.000Z
2018-05-04T09:05:38.000Z
apps/teacheres/adminx.py
ECNU-Studio/emoc
b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c
[ "MIT" ]
null
null
null
# _*_ coding:utf-8 _*_ import xadmin from .models import Teacheres from courses.models import Courses class AddCourses(object): model = Courses extra = 0 #培训师 class TeacheresAdmin(object): list_display = ['name', 'username', 'email', 'phone', 'weixin', 'password'] search_fields = ['name'] list_fi...
23.047619
79
0.677686
338
0.670635
0
0
0
0
0
0
133
0.263889
bfe336aabdbb7507441477f437b0274a9584341b
1,710
py
Python
app/jitsi/main.py
RibhiEl-Zaru/jitsi-party
d51b827304f97010dcf82673d124c8f68f98cb02
[ "MIT" ]
null
null
null
app/jitsi/main.py
RibhiEl-Zaru/jitsi-party
d51b827304f97010dcf82673d124c8f68f98cb02
[ "MIT" ]
null
null
null
app/jitsi/main.py
RibhiEl-Zaru/jitsi-party
d51b827304f97010dcf82673d124c8f68f98cb02
[ "MIT" ]
null
null
null
import os import json from .models import User from flask import Blueprint, send_from_directory, redirect, url_for, current_app, request, jsonify main = Blueprint('main', __name__) @main.route('/join', methods=['GET', 'POST']) def join(): params = request.get_json()['params'] params['ip'] = compute_ip() u...
36.382979
140
0.654386
0
0
0
0
1,151
0.673099
0
0
420
0.245614
bfe38fe20ac1fc18d323396f06464e2c237b6a00
2,728
py
Python
easyai/data_loader/pc_cls/classify_pc_augment.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
1
2020-09-05T09:18:56.000Z
2020-09-05T09:18:56.000Z
easyai/data_loader/pc_cls/classify_pc_augment.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
8
2020-04-20T02:18:55.000Z
2022-03-12T00:24:50.000Z
easyai/data_loader/pc_cls/classify_pc_augment.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: import numpy as np class ClassifyPointCloudAugment(): def __init__(self): self.is_augment_rotate = True self.is_augment_dropout = True self.is_augment_scale = True self.is_augment_shift = True self.rotation = (0, 30) ...
38.422535
92
0.610337
2,650
0.971408
0
0
0
0
0
0
742
0.271994
bfe3cef09bab657f1130a7fa99db7d1c27c3b2b2
2,436
py
Python
Examples/Image/Detection/FastRCNN/BrainScript/B3_VisualizeOutputROIs.py
shyamalschandra/CNTK
0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d
[ "MIT" ]
17,702
2016-01-25T14:03:01.000Z
2019-05-06T09:23:41.000Z
Examples/Image/Detection/FastRCNN/BrainScript/B3_VisualizeOutputROIs.py
shyamalschandra/CNTK
0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d
[ "MIT" ]
3,489
2016-01-25T13:32:09.000Z
2019-05-03T11:29:15.000Z
Examples/Image/Detection/FastRCNN/BrainScript/B3_VisualizeOutputROIs.py
shyamalschandra/CNTK
0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d
[ "MIT" ]
5,180
2016-01-25T14:02:12.000Z
2019-05-06T04:24:28.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== from __future__ import print_function import os, importlib, sys from cntk_helpers i...
41.288136
142
0.654351
0
0
0
0
0
0
0
0
816
0.334975
bfe43a1f982ed9fd7da447c90684b4c6aa5f68e2
48
py
Python
src/deepke/name_entity_re/__init__.py
johncolezhang/DeepKE
ea4552ec42cb003a835f00fc14fb454f9a9a7183
[ "MIT" ]
710
2021-08-01T16:43:59.000Z
2022-03-31T08:39:17.000Z
src/deepke/name_entity_re/__init__.py
johncolezhang/DeepKE
ea4552ec42cb003a835f00fc14fb454f9a9a7183
[ "MIT" ]
66
2019-06-09T12:14:31.000Z
2021-07-27T05:54:35.000Z
src/deepke/name_entity_re/__init__.py
johncolezhang/DeepKE
ea4552ec42cb003a835f00fc14fb454f9a9a7183
[ "MIT" ]
183
2018-09-07T06:57:13.000Z
2021-08-01T08:50:15.000Z
from .standard import * from .few_shot import *
16
23
0.75
0
0
0
0
0
0
0
0
0
0
bfe632653e44b0565da8ed9cef1a5b13a8e77385
3,756
py
Python
tests/test_momentum.py
DanielDaCosta/optimization-algorithms
f06c67c218050926fd099ed255d73c19871b9a9a
[ "MIT" ]
6
2020-05-03T00:55:45.000Z
2021-06-26T15:34:57.000Z
tests/test_momentum.py
DanielDaCosta/optimization-algorithms
f06c67c218050926fd099ed255d73c19871b9a9a
[ "MIT" ]
null
null
null
tests/test_momentum.py
DanielDaCosta/optimization-algorithms
f06c67c218050926fd099ed255d73c19871b9a9a
[ "MIT" ]
2
2020-08-03T17:53:48.000Z
2020-12-24T22:05:27.000Z
import unittest import numpy as np from gradient_descent.Momentum import Momentum class TestMomentumClass(unittest.TestCase): def setUp(self): """Setting up requirements for test Params: None Returns: None """ def f(x): """Apply functio...
33.238938
79
0.502929
3,621
0.964058
0
0
0
0
0
0
1,360
0.362087
bfe67e7a43775352603cca8735626be5e0303770
2,436
py
Python
recipes/Python/299133_bubblebabble/recipe-299133.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/299133_bubblebabble/recipe-299133.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/299133_bubblebabble/recipe-299133.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#! /usr/bin/env python """Compute a (somewhat more) human readable format for message digests. This is port of the perl module Digest-BubbleBabble-0.01 (http://search.cpan.org/~btrott/Digest-BubbleBabble-0.01/) """ vowels = "aeiouy" consonants = "bcdfghklmnprstvzx" def bubblebabble(digest): """compute bubblebabb...
33.369863
101
0.610016
0
0
0
0
0
0
0
0
1,075
0.441297
bfe7c1cb3ac794391c15b7a6667e0e0823022367
657
py
Python
jq/jq/schema.py
Thousif-S/J-Q
478d69181bf22f23b56c75d50c212d9d4aa0b1a9
[ "MIT" ]
null
null
null
jq/jq/schema.py
Thousif-S/J-Q
478d69181bf22f23b56c75d50c212d9d4aa0b1a9
[ "MIT" ]
18
2020-02-12T01:05:41.000Z
2022-03-11T23:58:14.000Z
jq/jq/schema.py
Thousif-S/J-Q
478d69181bf22f23b56c75d50c212d9d4aa0b1a9
[ "MIT" ]
null
null
null
import graphene import graphql_jwt import works.schema import users.schema import works.schema_relay import people.schema class Query( users.schema.Query, works.schema.Query, works.schema_relay.RelayQuery, people.schema.Query, graphene.ObjectType, ): pass class Mutation( users.schema.Mut...
20.53125
56
0.750381
470
0.715373
0
0
0
0
0
0
0
0
bfea18a49a910958928ffae603d2f21aece25fb7
7,497
py
Python
t3f/batch_ops.py
KhrulkovV/t3f
6fb7ac695d55c302dbd6930baec8c61b5aac54e3
[ "MIT" ]
1
2021-04-25T07:10:44.000Z
2021-04-25T07:10:44.000Z
t3f/batch_ops.py
KhrulkovV/t3f
6fb7ac695d55c302dbd6930baec8c61b5aac54e3
[ "MIT" ]
null
null
null
t3f/batch_ops.py
KhrulkovV/t3f
6fb7ac695d55c302dbd6930baec8c61b5aac54e3
[ "MIT" ]
null
null
null
import tensorflow as tf from t3f.tensor_train_base import TensorTrainBase from t3f.tensor_train_batch import TensorTrainBatch from t3f import ops def concat_along_batch_dim(tt_list): """Concat all TensorTrainBatch objects along batch dimension. Args: tt_list: a list of TensorTrainBatch objects. Returns: ...
40.306452
87
0.657596
0
0
0
0
0
0
0
0
3,229
0.430706
bfea29daaa8ed7a57cb3e9e6b1260c8d7dea0cc2
3,496
py
Python
examples/python/sso/esi_oauth_native.py
Dusty-Meg/esi-docs
43d2c07a371ea5b71ed51ba4e5be7dabda18ec3c
[ "MIT" ]
130
2018-10-01T12:33:39.000Z
2022-03-16T07:26:30.000Z
examples/python/sso/esi_oauth_native.py
Dusty-Meg/esi-docs
43d2c07a371ea5b71ed51ba4e5be7dabda18ec3c
[ "MIT" ]
30
2018-10-01T14:51:43.000Z
2022-03-29T15:50:50.000Z
examples/python/sso/esi_oauth_native.py
Dusty-Meg/esi-docs
43d2c07a371ea5b71ed51ba4e5be7dabda18ec3c
[ "MIT" ]
59
2018-09-28T17:59:19.000Z
2022-03-29T14:08:24.000Z
""" Python 3 native (desktop/mobile) OAuth 2.0 example. This example can be run from the command line and will show you how the OAuth 2.0 flow should be handled if you are a web based application. Prerequisites: * Create an SSO application at developers.eveonline.com with the scope "esi-characters.re...
39.280899
80
0.678776
0
0
0
0
0
0
0
0
2,360
0.675057
bfea6d4f7615680bd982d58e764a76dea6be50fb
1,763
py
Python
queue_services/entity-emailer/tests/unit/email_processors/test_affiliation_notification.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
8
2019-06-19T16:16:15.000Z
2021-08-28T23:56:40.000Z
queue_services/entity-emailer/tests/unit/email_processors/test_affiliation_notification.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
796
2019-03-07T19:25:50.000Z
2022-03-31T20:32:57.000Z
queue_services/entity-emailer/tests/unit/email_processors/test_affiliation_notification.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
82
2019-01-30T20:06:14.000Z
2022-03-29T20:38:31.000Z
# Copyright © 2021 Province of British Columbia # # 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...
36.729167
94
0.653999
0
0
0
0
0
0
0
0
936
0.530612
bfebea815f2a5344d8b51e99f3afdbd91a02e2b8
756
py
Python
examples/resourcetracking/client.py
brubbel/Pyro4
791f5aff6e0c89e74264843defdd694cdaf99cc5
[ "MIT" ]
638
2015-01-04T14:59:55.000Z
2022-03-29T02:28:39.000Z
examples/resourcetracking/client.py
brubbel/Pyro4
791f5aff6e0c89e74264843defdd694cdaf99cc5
[ "MIT" ]
173
2015-01-05T17:29:19.000Z
2021-12-25T01:47:07.000Z
examples/resourcetracking/client.py
brubbel/Pyro4
791f5aff6e0c89e74264843defdd694cdaf99cc5
[ "MIT" ]
103
2015-01-10T10:00:08.000Z
2022-03-06T14:19:20.000Z
from __future__ import print_function import sys import random import Pyro4 if sys.version_info < (3, 0): input = raw_input uri = input("Enter the URI of the server object: ") with Pyro4.Proxy(uri) as proxy: print("currently allocated resources:", proxy.list()) name1 = hex(random.randint(0, 999999))[-4...
26.068966
97
0.685185
0
0
0
0
0
0
0
0
261
0.345238
bfecc16ed4f1a523424ef2baa4157fca46f28b44
259
py
Python
servicelayerdms/exceptions.py
DimensionDataCBUSydney/servicelayer-dms-python
9fd28223fb7a2a2bfb144d5047d3c505b5175ae4
[ "Apache-2.0" ]
null
null
null
servicelayerdms/exceptions.py
DimensionDataCBUSydney/servicelayer-dms-python
9fd28223fb7a2a2bfb144d5047d3c505b5175ae4
[ "Apache-2.0" ]
null
null
null
servicelayerdms/exceptions.py
DimensionDataCBUSydney/servicelayer-dms-python
9fd28223fb7a2a2bfb144d5047d3c505b5175ae4
[ "Apache-2.0" ]
null
null
null
class DmsRequestError(Exception): def __init__(self, error_message, status_code): self.message = "Error requesting DMS API %s with code %s" \ % (error_message, status_code) super(DmsRequestError, self).__init__(self.message)
43.166667
67
0.683398
258
0.996139
0
0
0
0
0
0
42
0.162162
bfedec9341ad808415e8f390392546b8caf1b03c
1,843
py
Python
config_manager.py
jbytes1027/notify-mirror
b4a6bb94578dd4c9130731f153f901868f26cded
[ "CC0-1.0" ]
null
null
null
config_manager.py
jbytes1027/notify-mirror
b4a6bb94578dd4c9130731f153f901868f26cded
[ "CC0-1.0" ]
null
null
null
config_manager.py
jbytes1027/notify-mirror
b4a6bb94578dd4c9130731f153f901868f26cded
[ "CC0-1.0" ]
null
null
null
import pathlib import configparser class ConfigManager: DEFAULT_CONFIG_PATH = "~/.config/notify-sync.ini" SETTING_NOTIFICATION_ICON = "icon" SETTING_NOTIFICATION_TIMEOUT = "timeout" # in ms # SETTING_NOTIFICATION_URGENCY = "urgency" # 0,1,2 low, avg, urgent SETTING_NOTIFICATION_EXEC = "exec_on...
32.910714
74
0.580033
1,805
0.979381
0
0
0
0
0
0
427
0.231687
bfeeaef350523448c6cf158714c62a0d2c908669
714
py
Python
ass_tag_parser/draw_struct.py
bubblesub/ass_tag_parser
89bd9ac47aa51a954604c41c6e633c938b2a1d62
[ "MIT" ]
10
2020-04-14T15:58:25.000Z
2022-03-26T05:38:09.000Z
ass_tag_parser/draw_struct.py
rr-/ass_tag_parser
a758a3871b8904879a2588162335aa61863b370e
[ "MIT" ]
4
2019-11-07T15:03:39.000Z
2021-08-04T21:11:20.000Z
ass_tag_parser/draw_struct.py
rr-/ass_tag_parser
a758a3871b8904879a2588162335aa61863b370e
[ "MIT" ]
1
2019-11-07T14:30:56.000Z
2019-11-07T14:30:56.000Z
from dataclasses import dataclass from typing import Optional from ass_tag_parser.common import Meta @dataclass class AssDrawPoint: x: float y: float class AssDrawCmd: meta: Optional[Meta] = None @dataclass class AssDrawCmdMove(AssDrawCmd): pos: AssDrawPoint close: bool @dataclass class Ass...
15.521739
59
0.768908
511
0.715686
0
0
539
0.754902
0
0
0
0
bfef9d0f02f12a417622fbc30f923a0fe176cb9c
166
py
Python
scripts/src/keyword.py
Artie18/goto
b31ad5044a894e33ad330fb0d01fa9e116cfddeb
[ "Apache-2.0" ]
null
null
null
scripts/src/keyword.py
Artie18/goto
b31ad5044a894e33ad330fb0d01fa9e116cfddeb
[ "Apache-2.0" ]
null
null
null
scripts/src/keyword.py
Artie18/goto
b31ad5044a894e33ad330fb0d01fa9e116cfddeb
[ "Apache-2.0" ]
null
null
null
class Keyword: def __init__(self, keyword): if keyword in ['add', 'find']: self.value = keyword else: self.value = 'find'
23.714286
38
0.512048
165
0.993976
0
0
0
0
0
0
17
0.10241
bfefe39bcfdb486b0d377809401f5593f41268c6
4,710
py
Python
feedparser/parsers/json.py
briangedev/feedparser
de4f786b0c726380af825610da833e0dc76cf282
[ "BSD-2-Clause" ]
1
2022-01-26T06:45:59.000Z
2022-01-26T06:45:59.000Z
feedparser/parsers/json.py
briangedev/feedparser
de4f786b0c726380af825610da833e0dc76cf282
[ "BSD-2-Clause" ]
null
null
null
feedparser/parsers/json.py
briangedev/feedparser
de4f786b0c726380af825610da833e0dc76cf282
[ "BSD-2-Clause" ]
null
null
null
# The JSON feed parser # Copyright 2017 Beat Bolli # All rights reserved. # # This file is a part of feedparser. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above...
35.681818
86
0.614225
3,193
0.677919
0
0
0
0
0
0
2,238
0.475159
bff00f35cfa0182f724bf836ca255a2bb5de2883
4,211
py
Python
aux/testUnicode.py
AlainLich/logtools
584e575d25f0ebcd7a51cc6d5aefb530f80f6d22
[ "Apache-2.0" ]
2
2021-06-08T21:48:18.000Z
2022-03-09T05:50:13.000Z
aux/testUnicode.py
AlainLich/logtools
584e575d25f0ebcd7a51cc6d5aefb530f80f6d22
[ "Apache-2.0" ]
null
null
null
aux/testUnicode.py
AlainLich/logtools
584e575d25f0ebcd7a51cc6d5aefb530f80f6d22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # -*- mode: Python -*- # # (C) Alain Lichnewsky, 2021 # import os import sys import re import unicodedata import unittest from hypothesis import given, assume, settings, HealthCheck import hypothesis.strategies as st # using a try block so that this makes sense if exp...
28.452703
96
0.647827
1,134
0.269167
0
0
1,049
0.248991
0
0
1,709
0.405649
bff1b2f3bc2fa9c88c4478ee4d6e6619827c343f
2,586
py
Python
pawlytics.py
damjess/ssb-bunnies-page
ef7fcfd195acaa8ef9e6630b9dacef77599d25cf
[ "MIT" ]
null
null
null
pawlytics.py
damjess/ssb-bunnies-page
ef7fcfd195acaa8ef9e6630b9dacef77599d25cf
[ "MIT" ]
null
null
null
pawlytics.py
damjess/ssb-bunnies-page
ef7fcfd195acaa8ef9e6630b9dacef77599d25cf
[ "MIT" ]
null
null
null
""" Pawlytics API retreival tool Author: jess@menidae.com Requires crontab to run tool hourly: 0 * * * * /path/to/python3 /path/to/file/pawlytics.py """ from urllib.request import Request from urllib.request import urlopen from typing import Dict from urllib.request import HTTPError import json from json import dump...
19.590909
53
0.658546
0
0
0
0
0
0
0
0
1,401
0.508715
bff34ed954bb535419e69d62635bb3311abae523
1,099
py
Python
vault_updater.py
alchem1ster/AddOns-Update-Tool
82976d1e444b03f50010ff3272f7758317168f31
[ "Unlicense" ]
8
2021-12-06T14:27:16.000Z
2022-01-17T22:17:06.000Z
vault_updater.py
alchem1ster/AddOns-Update-Tool
82976d1e444b03f50010ff3272f7758317168f31
[ "Unlicense" ]
2
2021-12-28T20:08:33.000Z
2022-01-05T22:42:32.000Z
vault_updater.py
alchem1ster/AddOns-Update-Tool
82976d1e444b03f50010ff3272f7758317168f31
[ "Unlicense" ]
null
null
null
"""Vault update CLI""" import sys from argparse import ArgumentParser, FileType, _ArgumentGroup from yaml import safe_load from utils.log import log from utils.vault import Vault parser = ArgumentParser(description="Manual update of repositories Vault") required: _ArgumentGroup = parser.add_argument_group("required...
23.382979
74
0.629663
0
0
0
0
0
0
0
0
217
0.197452
bff3b90a3063963cf92d3a3b5bb3b7ba2a7f479c
13,004
py
Python
tf-lstm-crf-batch/model.py
adapt-sjtu/novelner
a8f54ffe3360a4fdfa4b154a6668e74459a61ec3
[ "Apache-2.0" ]
8
2017-06-08T09:48:25.000Z
2020-07-09T10:51:36.000Z
tf-lstm-crf-batch/model.py
adapt-sjtu/novelner
a8f54ffe3360a4fdfa4b154a6668e74459a61ec3
[ "Apache-2.0" ]
1
2018-07-07T12:38:25.000Z
2018-07-07T12:38:25.000Z
tf-lstm-crf-batch/model.py
adapt-sjtu/novelner
a8f54ffe3360a4fdfa4b154a6668e74459a61ec3
[ "Apache-2.0" ]
4
2018-01-13T01:37:51.000Z
2019-08-05T12:25:32.000Z
import os import numpy as np import tensorflow as tf import cPickle from utils import shared, get_name from nn import HiddenLayer, EmbeddingLayer, LSTM, forward class Model(object): """ Network architecture. """ def __init__(self, parameters=None, models_path=None, model_path=None): """ ...
49.823755
163
0.607967
12,839
0.987312
0
0
0
0
0
0
2,278
0.175177
bff41132c693f640921216d313ea2aaf31ff07fc
1,076
py
Python
revolt/plugins/commands/context.py
ppotatoo/revolt.py
56d09b050e26898c6051eaee3fdd268a5b16bc22
[ "MIT" ]
null
null
null
revolt/plugins/commands/context.py
ppotatoo/revolt.py
56d09b050e26898c6051eaee3fdd268a5b16bc22
[ "MIT" ]
null
null
null
revolt/plugins/commands/context.py
ppotatoo/revolt.py
56d09b050e26898c6051eaee3fdd268a5b16bc22
[ "MIT" ]
null
null
null
from revolt.types.file import File from revolt.embed import Embed from revolt.message import Message from typing import Optional class Context: def __init__(self, message, bot): self.message = message self.bot = bot async def send(self, content: Optional[str] = None, embeds: Optional[list[Emb...
37.103448
178
0.635688
945
0.878253
0
0
0
0
833
0.774164
566
0.526022
bff7028914bc52a8b384670d2126ddb356c5fd23
2,860
py
Python
372_palanced.py
RLeary/rdp_challenges
b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05
[ "MIT" ]
null
null
null
372_palanced.py
RLeary/rdp_challenges
b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05
[ "MIT" ]
null
null
null
372_palanced.py
RLeary/rdp_challenges
b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05
[ "MIT" ]
null
null
null
"""Given a string containing only the characters x and y, find whether there are the same number of xs and ys. balanced("xxxyyy") => true balanced("yyyxxx") => true balanced("xxxyyyy") => false balanced("yyxyxxyxxyyyyxxxyxyx") => true balanced("xyxxxxyyyxyxxyxxyy") => false balanced("") => true balanced("x") =...
35.308642
193
0.662587
0
0
0
0
0
0
0
0
1,895
0.662587
bff7d21b750936973cbd6252e64cc8e48e9a1836
4,108
py
Python
src/gnnff/utils/data.py
ken2403/gnnff
13e2428ef2fe6524572356f8df8412e91a3690af
[ "MIT" ]
null
null
null
src/gnnff/utils/data.py
ken2403/gnnff
13e2428ef2fe6524572356f8df8412e91a3690af
[ "MIT" ]
null
null
null
src/gnnff/utils/data.py
ken2403/gnnff
13e2428ef2fe6524572356f8df8412e91a3690af
[ "MIT" ]
null
null
null
import numpy as np import torch from torch.utils.data import DataLoader from torch.utils.data.sampler import RandomSampler from gnnff.data.keys import Keys from gnnff.data.split import train_test_split __all__ = ["get_loader"] def get_loader(dataset, args, split_path, logging=None): """ Parameters ----...
28.136986
90
0.590798
0
0
0
0
0
0
0
0
907
0.220789
bff840c3000c3f2fd947707aa1ec3f8be36ae525
1,510
py
Python
setup.py
canvasslabs/packageurl-python
ea036912050ddeecff4741486de0d992fbe6bb0c
[ "MIT" ]
null
null
null
setup.py
canvasslabs/packageurl-python
ea036912050ddeecff4741486de0d992fbe6bb0c
[ "MIT" ]
null
null
null
setup.py
canvasslabs/packageurl-python
ea036912050ddeecff4741486de0d992fbe6bb0c
[ "MIT" ]
1
2018-10-06T21:40:41.000Z
2018-10-06T21:40:41.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # SPDX-License-Identifier: MIT from __future__ import absolute_import from __future__ import print_function from glob import glob from os.path import basename from os.path import splitext from setuptools import find_packages from setuptools import setup setup( na...
32.826087
90
0.660927
0
0
0
0
0
0
0
0
828
0.548344
bff9635e2cdc0eb91f5d1e1167976170aacd1110
747
py
Python
fduser/cms_plugins.py
ForumDev/forumdev-user
1d5e03531466c30160c2b4cb9a48ca9e7bda61ba
[ "MIT" ]
null
null
null
fduser/cms_plugins.py
ForumDev/forumdev-user
1d5e03531466c30160c2b4cb9a48ca9e7bda61ba
[ "MIT" ]
null
null
null
fduser/cms_plugins.py
ForumDev/forumdev-user
1d5e03531466c30160c2b4cb9a48ca9e7bda61ba
[ "MIT" ]
1
2020-10-12T06:28:18.000Z
2020-10-12T06:28:18.000Z
from cms.plugin_base import CMSPluginBase from cms.models.pluginmodel import CMSPlugin from cms.plugin_pool import plugin_pool from fduser import models from django.utils.translation import ugettext as _ from django.contrib.sites.models import Site class Users(CMSPluginBase): model = CMSPlugin # Model where data ...
35.571429
78
0.740295
436
0.583668
0
0
0
0
0
0
174
0.232932
bff996f616a6fc45be900334f0ea9b69e69ce5c8
5,214
py
Python
us_pls/_download/download_service.py
drawjk705/us-pls
6b9a696b18c18de81b279862f182fb990604b998
[ "MIT" ]
null
null
null
us_pls/_download/download_service.py
drawjk705/us-pls
6b9a696b18c18de81b279862f182fb990604b998
[ "MIT" ]
null
null
null
us_pls/_download/download_service.py
drawjk705/us-pls
6b9a696b18c18de81b279862f182fb990604b998
[ "MIT" ]
null
null
null
# pyright: reportUnknownMemberType=false import logging import zipfile from pathlib import Path from typing import Dict import requests from us_pls._config import Config from us_pls._download.interface import IDownloadService from us_pls._download.models import DatafileType, DownloadType from us_pls._logger.interfac...
30.670588
88
0.615075
4,722
0.905639
0
0
0
0
0
0
625
0.11987
bff9a7b958be7c7bb61197dabe8314ce6f7b3270
332
py
Python
dlbot/dlbot.py
sergyp/dlbot
6b23e14fc3022189d7ba2e7e2b70434c11e9af99
[ "MIT" ]
null
null
null
dlbot/dlbot.py
sergyp/dlbot
6b23e14fc3022189d7ba2e7e2b70434c11e9af99
[ "MIT" ]
1
2017-11-28T04:29:46.000Z
2017-11-28T04:29:46.000Z
dlbot/dlbot.py
sergyp/dlbot
6b23e14fc3022189d7ba2e7e2b70434c11e9af99
[ "MIT" ]
null
null
null
#!/usr/bin/env python from dlbot import default_settings from flask import Flask app = Flask(__name__, instance_relative_config=True) app.config.from_object(default_settings) app.config.from_pyfile('dlbot.cfg', silent=True) @app.route('/') def hello_world(): return 'Hello, World!' if __name__ == '__main__': ...
19.529412
52
0.740964
0
0
0
0
61
0.183735
0
0
60
0.180723
bffa85e9bedbc5efa7cc9534442416b01817938b
95
py
Python
sourcecode/pathwaysearch/fingerprint/__init__.py
CC-SXF/PyMiner
d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7
[ "MIT" ]
2
2022-01-20T07:38:00.000Z
2022-01-20T07:56:39.000Z
sourcecode/pathwaysearch/fingerprint/__init__.py
CC-SXF/PyMiner
d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7
[ "MIT" ]
null
null
null
sourcecode/pathwaysearch/fingerprint/__init__.py
CC-SXF/PyMiner
d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7
[ "MIT" ]
1
2022-01-11T14:29:48.000Z
2022-01-11T14:29:48.000Z
# -*- coding: utf-8 -*- """ Created on Sun Mar 28 10:15:21 2021 @author: CC-SXF """
10.555556
36
0.505263
0
0
0
0
0
0
0
0
88
0.926316