hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
13bdad06af8fe17f5289251bf06eecffa670bf1f
5,143
py
Python
localgraphclustering/spectral_clustering.py
vishalbelsare/LocalGraphClustering
a6325350997932d548a876deb259c2387fc2c809
[ "MIT" ]
106
2017-09-06T04:47:02.000Z
2022-03-30T07:43:27.000Z
localgraphclustering/spectral_clustering.py
vishalbelsare/LocalGraphClustering
a6325350997932d548a876deb259c2387fc2c809
[ "MIT" ]
51
2017-09-06T02:22:09.000Z
2021-12-15T11:39:28.000Z
localgraphclustering/spectral_clustering.py
vishalbelsare/LocalGraphClustering
a6325350997932d548a876deb259c2387fc2c809
[ "MIT" ]
38
2017-09-04T21:45:13.000Z
2022-01-19T09:48:25.000Z
from typing import * import numpy as np from .fiedler import fiedler, fiedler_local from .sweep_cut import sweep_cut from .approximate_PageRank import approximate_PageRank from .GraphLocal import GraphLocal from .pageRank_nibble import PageRank_nibble import warnings def spectral_clustering(G, ref_nodes, ...
36.21831
162
0.600622
a6e7f539f4e557310403437a1ac261dfeb97bd6e
4,005
py
Python
controllers/item.py
greyshipscode/najara
792e2960f35f061612bc7ea67396c38966e07b45
[ "Apache-2.0" ]
4
2020-11-23T04:31:28.000Z
2022-01-15T17:04:26.000Z
controllers/item.py
greynewell/najara
792e2960f35f061612bc7ea67396c38966e07b45
[ "Apache-2.0" ]
12
2020-08-16T17:44:28.000Z
2020-10-27T23:06:53.000Z
controllers/item.py
greynewell/Najara.py
792e2960f35f061612bc7ea67396c38966e07b45
[ "Apache-2.0" ]
null
null
null
import uuid, boto3, random from chalice import NotFoundError dynamo = boto3.client("dynamodb", region_name='us-east-1') target = 'ITEM' tableName ='NajaraItems' attributes = ['id', 'name', 'type', 'quantity', 'weight', 'gpvalue', 'description'] #DEVELOPMENT: create table if it doesn't exist #try: # response = dyna...
29.233577
97
0.489888
030a833bef2348554fbff2c4266a63357de3ed3e
5,992
py
Python
main/util.py
ssxenon01/contact-sharing
ad2bec5b03f123837eab6a7126896a8faf17639c
[ "MIT" ]
null
null
null
main/util.py
ssxenon01/contact-sharing
ad2bec5b03f123837eab6a7126896a8faf17639c
[ "MIT" ]
null
null
null
main/util.py
ssxenon01/contact-sharing
ad2bec5b03f123837eab6a7126896a8faf17639c
[ "MIT" ]
null
null
null
# coding: utf-8 from uuid import uuid4 import hashlib import re import unicodedata import urllib from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext import ndb import flask import config ############################################################################### # Request Pa...
30.416244
79
0.585781
91ecefa28724fc42c49157f0c1b9ea9f43475377
3,021
py
Python
napari_plot/_qt/layer_controls/qt_layer_buttons.py
lukasz-migas/napari-1d
b0f081a8711ae941b3e4b5c58c3aea56bd0e3277
[ "BSD-3-Clause" ]
13
2021-08-27T23:01:09.000Z
2022-03-22T13:51:35.000Z
napari_plot/_qt/layer_controls/qt_layer_buttons.py
lukasz-migas/napari-1d
b0f081a8711ae941b3e4b5c58c3aea56bd0e3277
[ "BSD-3-Clause" ]
71
2021-08-28T13:29:17.000Z
2022-03-28T21:22:12.000Z
napari_plot/_qt/layer_controls/qt_layer_buttons.py
lukasz-migas/napari-1d
b0f081a8711ae941b3e4b5c58c3aea56bd0e3277
[ "BSD-3-Clause" ]
null
null
null
"""Layer buttons""" from napari._qt.widgets.qt_viewer_buttons import QtDeleteButton from qtpy.QtWidgets import QFrame, QHBoxLayout from ..widgets.qt_icon_button import QtViewerPushButton class QtLayerButtons(QFrame): """Button controls for napari layers. Parameters ---------- viewer : napari.compone...
30.21
105
0.624959
6b3231f82e124587c527a75684d61cbdb9673c15
1,530
py
Python
services/Solver/approach/baseline_approach.py
fusion-jena/JenTab
0f7baf5293bb8881e39f05dafacd48089833ee3e
[ "Apache-2.0" ]
9
2021-03-23T11:32:40.000Z
2022-03-31T13:58:41.000Z
services/Solver/approach/baseline_approach.py
fusion-jena/JenTab
0f7baf5293bb8881e39f05dafacd48089833ee3e
[ "Apache-2.0" ]
null
null
null
services/Solver/approach/baseline_approach.py
fusion-jena/JenTab
0f7baf5293bb8881e39f05dafacd48089833ee3e
[ "Apache-2.0" ]
1
2021-04-29T21:27:08.000Z
2021-04-29T21:27:08.000Z
from pipeline.pipeline import Pipeline as Pipeline from approach.approach import Approach from utils import util_log from preprocessing.preprocess import prepareData class BaselineApproach(Approach): def __init__(self, table, targets): # apply the preprocessing steps ... table = prepareData(table)...
28.867925
85
0.666013
5e7825caa33a4f995c5fd08f3ff0865361c6dd79
2,330
py
Python
ConvolutionNeuralNetwork/mnist_keras_cnn.py
Scott1123/ComputerVisionLab
a588d328a6c9a4519bdaa81382968cd07711d648
[ "Apache-2.0" ]
null
null
null
ConvolutionNeuralNetwork/mnist_keras_cnn.py
Scott1123/ComputerVisionLab
a588d328a6c9a4519bdaa81382968cd07711d648
[ "Apache-2.0" ]
null
null
null
ConvolutionNeuralNetwork/mnist_keras_cnn.py
Scott1123/ComputerVisionLab
a588d328a6c9a4519bdaa81382968cd07711d648
[ "Apache-2.0" ]
null
null
null
import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D from keras.optimizers import SGD from keras import backend as K import numpy as np from datetime import datetime as dt print(K.epsilon()) # data preprocessing batch_si...
27.093023
70
0.716309
4cef66fa139ea72823329c9a50e509990c65725a
66,279
py
Python
src/libraries/brython/Lib/logging/__init__.py
coursemdetw/reeborg_tw
953217f86a7ccb1e4807cf94f6e885643a484352
[ "MIT" ]
52
2016-08-08T15:08:19.000Z
2022-03-23T09:48:53.000Z
src/libraries/brython/Lib/logging/__init__.py
coursemdetw/reeborg_tw
953217f86a7ccb1e4807cf94f6e885643a484352
[ "MIT" ]
6
2016-10-09T19:50:49.000Z
2019-08-17T15:34:21.000Z
src/libraries/brython/Lib/logging/__init__.py
coursemdetw/reeborg_tw
953217f86a7ccb1e4807cf94f6e885643a484352
[ "MIT" ]
15
2017-02-03T03:08:57.000Z
2021-08-04T06:11:15.000Z
# Copyright 2001-2013 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
34.719225
89
0.591967
b8a9099fd65b473c8a1ceb4ff2b25a60502ba794
69,939
py
Python
tests/integration/test_lambda.py
zonywhoop/localstack
673e1a23374362c64606fb36c0746ee29cbf5553
[ "Apache-2.0" ]
null
null
null
tests/integration/test_lambda.py
zonywhoop/localstack
673e1a23374362c64606fb36c0746ee29cbf5553
[ "Apache-2.0" ]
null
null
null
tests/integration/test_lambda.py
zonywhoop/localstack
673e1a23374362c64606fb36c0746ee29cbf5553
[ "Apache-2.0" ]
1
2021-01-10T03:21:47.000Z
2021-01-10T03:21:47.000Z
import re import os import json import shutil import time import unittest import six import base64 from botocore.exceptions import ClientError from io import BytesIO from localstack import config from localstack.constants import LOCALSTACK_MAVEN_VERSION, LOCALSTACK_ROOT_FOLDER, LAMBDA_TEST_ROLE from localstack.services...
40.97188
119
0.651239
c31f99d726abd4d6d184344d68ebea64808a4e97
652
py
Python
Exercícios/Ex.55.py
mattheuslima/Projetos-Curso_Python
ab4cab98fe69b70245b5bcf41edd0febe823ac6a
[ "MIT" ]
null
null
null
Exercícios/Ex.55.py
mattheuslima/Projetos-Curso_Python
ab4cab98fe69b70245b5bcf41edd0febe823ac6a
[ "MIT" ]
null
null
null
Exercícios/Ex.55.py
mattheuslima/Projetos-Curso_Python
ab4cab98fe69b70245b5bcf41edd0febe823ac6a
[ "MIT" ]
null
null
null
#Leia o peso de 5 pessoas e qual foi o maior e o menor peso print('-='*10) print('{:=^20}'.format('Desafio 55')) print('-='*10) maior=float(0) menor=float(0) for c in range (0,5): peso=float(input('Insira o peso da {}ª pessoa: '.format(c+1))) if c==0: maior=peso menor=peso elif peso>maior: ...
27.166667
71
0.616564
47d9c621089d0b2fdc11b119fbccb0aabafe0b98
86
py
Python
程序员面试经典/面试题 01.01. 判定字符是否唯一.py
fireairforce/leetCode-Record
8eab0d58d44e081d908810824d601ef8f14c979f
[ "MIT" ]
74
2019-08-29T13:34:15.000Z
2022-02-17T09:39:53.000Z
程序员面试经典/面试题 01.01. 判定字符是否唯一.py
fireairforce/leetCode-Record
8eab0d58d44e081d908810824d601ef8f14c979f
[ "MIT" ]
43
2020-02-18T12:55:36.000Z
2020-03-10T08:41:05.000Z
程序员面试经典/面试题 01.01. 判定字符是否唯一.py
fireairforce/leetCode-Record
8eab0d58d44e081d908810824d601ef8f14c979f
[ "MIT" ]
15
2019-06-14T13:55:44.000Z
2021-08-20T08:26:50.000Z
class Solution: def isUnique(self, s: str) -> bool: return len(set(s)) == len(s)
28.666667
37
0.616279
68baae144acdd0143195bfd2c2027d2383131765
17,790
py
Python
integration_core/integration_base.py
JohnOmernik/jupyter_integration_template
c680808f330c1e3f729726f19cc1e117530fe267
[ "Apache-2.0" ]
null
null
null
integration_core/integration_base.py
JohnOmernik/jupyter_integration_template
c680808f330c1e3f729726f19cc1e117530fe267
[ "Apache-2.0" ]
null
null
null
integration_core/integration_base.py
JohnOmernik/jupyter_integration_template
c680808f330c1e3f729726f19cc1e117530fe267
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Base imports for all integrations, only remove these at your own risk! import json import sys import os import time import pandas as pd from getpass import getpass from collections import OrderedDict from IPython.core.magic import (Magics, magics_class, line_magic, cell_magic, line_cell_magic) fro...
45.615385
172
0.560596
546d19a4ff8fb0227dcd9e9254fd53ee8c5ad726
4,752
py
Python
api/views.py
arcanemachine/django-time-tracker
af810e187b0658bbeec528669524a4a186629529
[ "MIT" ]
null
null
null
api/views.py
arcanemachine/django-time-tracker
af810e187b0658bbeec528669524a4a186629529
[ "MIT" ]
null
null
null
api/views.py
arcanemachine/django-time-tracker
af810e187b0658bbeec528669524a4a186629529
[ "MIT" ]
null
null
null
from datetime import datetime from rest_framework import generics from rest_framework.response import Response from rest_framework.views import APIView from django.shortcuts import get_object_or_404 from . import serializers from accounts.models import TimerUser from tracker.models import Activity, Timer class PingPo...
33.702128
78
0.623948
973e3bc3fdedded1197c3e88df70e000c1d51e25
572
py
Python
pyEX/markets.py
peterfabakker/pyEX
bd8fc41602663b3d4024cc600621ecfb41f8932f
[ "Apache-2.0" ]
null
null
null
pyEX/markets.py
peterfabakker/pyEX
bd8fc41602663b3d4024cc600621ecfb41f8932f
[ "Apache-2.0" ]
null
null
null
pyEX/markets.py
peterfabakker/pyEX
bd8fc41602663b3d4024cc600621ecfb41f8932f
[ "Apache-2.0" ]
null
null
null
import pandas as pd from deprecation import deprecated from .common import _getJson, _toDatetime @deprecated(details='Deprecated: IEX Cloud status unkown') def markets(token='', version='', filter=''): '''https://iextrading.com/developer/docs/#intraday''' return _getJson('market', token, version, filter) @d...
31.777778
58
0.715035
06bea9152f36f8c0dffcfd25024f51a69a9f7513
4,303
py
Python
main.py
mishrasanskriti802/UdemyCourseGrabber
783944aada5b4ae8ea95f2bdc12333b1a8b1d917
[ "MIT" ]
null
null
null
main.py
mishrasanskriti802/UdemyCourseGrabber
783944aada5b4ae8ea95f2bdc12333b1a8b1d917
[ "MIT" ]
null
null
null
main.py
mishrasanskriti802/UdemyCourseGrabber
783944aada5b4ae8ea95f2bdc12333b1a8b1d917
[ "MIT" ]
null
null
null
import argparse import csv import sys import time import pyperclip import validators from functions import * def write_to_file(data_dict, filename): with open(filename, mode='a+', encoding="UTF-8", newline='') as csv_file: writer = csv.DictWriter(csv_file, fieldnames=fieldnames) csv_file.seek(0,...
38.765766
129
0.634906
23e0e52de1fa77bb811f70ff174d61bdeb14d49a
639
py
Python
tests/__init__.py
tangochaser/log-generator
fdea62ef243134e6edc1a014947e0afe7aa39c80
[ "Apache-2.0" ]
17
2019-10-08T05:01:14.000Z
2022-02-12T22:20:46.000Z
tests/__init__.py
WuerthPhoenix/log_generator
700b8d6b60215070f4ee6ffd927008ff8fa49860
[ "Apache-2.0" ]
2
2020-11-23T12:25:19.000Z
2021-03-25T22:39:50.000Z
tests/__init__.py
WuerthPhoenix/log_generator
700b8d6b60215070f4ee6ffd927008ff8fa49860
[ "Apache-2.0" ]
12
2019-05-25T19:10:18.000Z
2022-02-12T22:20:48.000Z
# -*- coding: utf-8 -*- """ Copyright 2019 Würth Phoenix S.r.l. 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...
31.95
72
0.760563
6a997a34397115028427e03856e13c632f959f33
1,984
py
Python
source/machine_connector/m2c2_publisher/converters/timestream_converter.py
aws-solutions/machine-to-cloud-connectivity-framework
980f2892ea2636ace604ea8f33b594091a9f24d2
[ "Apache-2.0", "MIT" ]
1
2021-10-30T13:03:09.000Z
2021-10-30T13:03:09.000Z
source/machine_connector/m2c2_publisher/converters/timestream_converter.py
aws-solutions/machine-to-cloud-connectivity-framework
980f2892ea2636ace604ea8f33b594091a9f24d2
[ "Apache-2.0", "MIT" ]
2
2021-11-03T12:00:12.000Z
2022-03-08T06:03:51.000Z
source/machine_connector/m2c2_publisher/converters/timestream_converter.py
aws-solutions/machine-to-cloud-connectivity-framework
980f2892ea2636ace604ea8f33b594091a9f24d2
[ "Apache-2.0", "MIT" ]
2
2021-10-30T13:03:03.000Z
2022-03-21T00:11:20.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import logging from dateutil import parser from utils.custom_exception import ConverterException class TimestreamConverter: def __init__(self) -> None: self.logger = logging.getLogger(self.__class_...
33.627119
98
0.531754
b815bc0593b9e900fb8a5503238d246fdb07f10e
15,221
py
Python
grr/server/grr_response_server/worker.py
Onager/grr
646196bbfb332e4cb546b6d0fe1c09b57c675f7d
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/worker.py
Onager/grr
646196bbfb332e4cb546b6d0fe1c09b57c675f7d
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/worker.py
Onager/grr
646196bbfb332e4cb546b6d0fe1c09b57c675f7d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Module with GRRWorker implementation.""" import logging import pdb import time import traceback from grr import config from grr.lib import flags from grr.lib import queues as queues_config from grr.lib import rdfvalue from grr.lib import registry from grr.lib import stats from grr.lib import...
37.675743
80
0.687208
6014cedeec2cd695a7a0bde5ee716d6aa3973e47
204
py
Python
shop/models/defaults/cart_item.py
2000-ion/TIDPP-Lab3
3fc97e6214b6e51f40df39f1692d4deec4bb0cc2
[ "BSD-3-Clause" ]
2,160
2016-01-24T05:08:59.000Z
2022-03-31T12:15:30.000Z
shop/models/defaults/cart_item.py
2000-ion/TIDPP-Lab3
3fc97e6214b6e51f40df39f1692d4deec4bb0cc2
[ "BSD-3-Clause" ]
455
2016-01-29T22:41:33.000Z
2022-03-23T08:28:01.000Z
shop/models/defaults/cart_item.py
2000-ion/TIDPP-Lab3
3fc97e6214b6e51f40df39f1692d4deec4bb0cc2
[ "BSD-3-Clause" ]
818
2016-02-01T15:09:07.000Z
2022-03-28T19:52:26.000Z
from django.db.models import PositiveIntegerField from shop.models import cart class CartItem(cart.BaseCartItem): """Default materialized model for CartItem""" quantity = PositiveIntegerField()
25.5
49
0.784314
d6fee451591342ad67a04020d1eb723a07e964f2
5,852
py
Python
ctc-executioner/ctc_executioner/action.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
ctc-executioner/ctc_executioner/action.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
ctc-executioner/ctc_executioner/action.py
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
[ "BSD-3-Clause" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
import copy from ctc_executioner.order_side import OrderSide from ctc_executioner.order_type import OrderType from ctc_executioner.match_engine import MatchEngine import numpy as np class Action(object): def __init__(self, a, runtime): self.a = a self.runtime = runtime self.order = None ...
32.153846
100
0.628332
988f6577458be67a48b6905681104743595838b7
19,714
py
Python
wallabag_api/wallabag.py
ngosang/wallabag_api
e30e5393f09d571abe02de3049fad3d3ee8c5c50
[ "BSD-3-Clause" ]
2
2019-06-26T21:09:33.000Z
2021-01-03T13:22:08.000Z
wallabag_api/wallabag.py
ngosang/wallabag_api
e30e5393f09d571abe02de3049fad3d3ee8c5c50
[ "BSD-3-Clause" ]
null
null
null
wallabag_api/wallabag.py
ngosang/wallabag_api
e30e5393f09d571abe02de3049fad3d3ee8c5c50
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import logging import aiohttp from aiohttp.http_exceptions import HttpProcessingError from aiohttp.client_exceptions import ClientResponseError __author__ = 'foxmask' logging.basicConfig(format='%(message)s', level=logging.INFO) __all__ = ['Wallabag'] class Wallabag(object): """ Python ...
35.649186
120
0.53566
470db9ee85fa3212ae94a929710dcc3f329a937b
14,701
py
Python
networkx/algorithms/community/quality.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
1
2021-04-02T05:00:26.000Z
2021-04-02T05:00:26.000Z
networkx/algorithms/community/quality.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
25
2021-04-17T09:26:47.000Z
2022-01-02T20:06:55.000Z
networkx/algorithms/community/quality.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
1
2021-07-13T21:21:14.000Z
2021-07-13T21:21:14.000Z
"""Functions for measuring the quality of a partition (into communities). """ from functools import wraps from itertools import product, combinations import networkx as nx from networkx import NetworkXError from networkx.utils import not_implemented_for from networkx.algorithms.community.community_utils import is_pa...
32.961883
113
0.64397
6c197a82438c8d49986d84085eaceec224429fcd
4,742
py
Python
rllib/basic/workspace.py
zhangdongkun98/rl-lib
50e36c18b130cff40abc6621923becd6cdc48e2b
[ "MIT" ]
7
2021-06-10T13:48:09.000Z
2022-03-27T06:11:50.000Z
rllib/basic/workspace.py
zhangdongkun98/rl-lib
50e36c18b130cff40abc6621923becd6cdc48e2b
[ "MIT" ]
null
null
null
rllib/basic/workspace.py
zhangdongkun98/rl-lib
50e36c18b130cff40abc6621923becd6cdc48e2b
[ "MIT" ]
null
null
null
import numpy as np import os from os.path import join import time from collections import namedtuple from tensorboardX import SummaryWriter import torch from .system import prefix from .yaml import YamlConfig class Writer(SummaryWriter): def __init__(self, **kwargs): super(Writer, self).__init__(**kwar...
31.613333
136
0.62927
b7644443836ec0e83b88aeb651bee80b0c7da08d
665
py
Python
src/genie/libs/parser/bigip/get_sys_daemon_ha.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/bigip/get_sys_daemon_ha.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/bigip/get_sys_daemon_ha.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
# Global Imports import json from collections import defaultdict # Metaparser from genie.metaparser import MetaParser # ============================================= # Collection for '/mgmt/tm/sys/daemon-ha' resources # ============================================= class SysDaemonhaSchema(MetaParser): schema =...
19.558824
52
0.578947
cc5c4220c10192f9dfc2e01d253c6da5714df62b
3,145
py
Python
model-optimizer/extensions/front/onnx/priorbox_clustered_ext_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/extensions/front/onnx/priorbox_clustered_ext_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/onnx/priorbox_clustered_ext_test.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2019 Intel Corporation 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 wri...
34.56044
92
0.583148
d4cc011355bf896bcc4072446bac88c3e711eee3
64,778
py
Python
backend_server/server.py
tfrisk/Epimetheus
e2b45c9eb0a4d519c110b7efc3f7401380dfefb0
[ "Apache-2.0" ]
21
2020-02-14T13:10:02.000Z
2022-03-23T07:42:42.000Z
backend_server/server.py
tfrisk/Epimetheus
e2b45c9eb0a4d519c110b7efc3f7401380dfefb0
[ "Apache-2.0" ]
86
2020-02-14T13:17:30.000Z
2022-02-23T15:38:53.000Z
backend_server/server.py
tfrisk/Epimetheus
e2b45c9eb0a4d519c110b7efc3f7401380dfefb0
[ "Apache-2.0" ]
3
2020-04-01T11:27:53.000Z
2021-04-09T07:06:37.000Z
import argparse import json import sys import tornado.httpserver import tornado.ioloop import tornado.web from tornado.web import url from tornado_swagger.setup import setup_swagger from tornado_swagger.model import register_swagger_model import database as db def load_config_file(file_name): with open(file_na...
41.233609
163
0.460033
4fc27ba24bfa9c28343bce076430946071b37bdc
1,672
py
Python
projects/sc_server.py
xiaobailong653/scripts
c68c988f59b8b9428163f687d0116429e9a0d479
[ "Apache-2.0" ]
null
null
null
projects/sc_server.py
xiaobailong653/scripts
c68c988f59b8b9428163f687d0116429e9a0d479
[ "Apache-2.0" ]
null
null
null
projects/sc_server.py
xiaobailong653/scripts
c68c988f59b8b9428163f687d0116429e9a0d479
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import getpass from optparse import OptionParser import tornado.ioloop import tornado.web SERVER_PROT = 9701 class ScriptHandler(object): """部署virtualenv""" def __init__(self): pass def parser_args(self, argv): parser = OptionParser...
26.125
69
0.537081
4cec76d39d09a26dc2c0c7dcaa9c45e0ebc5943c
4,490
py
Python
scenes/ur10_test/launch/demo.launch.py
tanjpg/easy_manipulation_deployment
83073fcebb25306619c4958fc98a74b1bf216141
[ "Apache-2.0" ]
null
null
null
scenes/ur10_test/launch/demo.launch.py
tanjpg/easy_manipulation_deployment
83073fcebb25306619c4958fc98a74b1bf216141
[ "Apache-2.0" ]
null
null
null
scenes/ur10_test/launch/demo.launch.py
tanjpg/easy_manipulation_deployment
83073fcebb25306619c4958fc98a74b1bf216141
[ "Apache-2.0" ]
1
2021-04-01T07:11:35.000Z
2021-04-01T07:11:35.000Z
## Copyright 2020 ROS Industrial Consortium Asia Pacific ## ## 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 appl...
42.761905
323
0.716481
d50f56150ac99d1f677a50f563cd4b9a71286aff
1,327
py
Python
main.py
s3599721/continuous-deployment-demo
d8bd571977c029fcf24ee31069b6722623963a0f
[ "Apache-2.0" ]
76
2016-10-12T17:33:31.000Z
2021-12-01T15:04:36.000Z
main.py
s3599721/continuous-deployment-demo
d8bd571977c029fcf24ee31069b6722623963a0f
[ "Apache-2.0" ]
1
2020-05-29T07:46:20.000Z
2020-05-29T07:46:20.000Z
main.py
s3599721/continuous-deployment-demo
d8bd571977c029fcf24ee31069b6722623963a0f
[ "Apache-2.0" ]
58
2016-12-28T12:49:52.000Z
2022-01-25T09:00:53.000Z
# Copyright 2015, Google, 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 in writing, software d...
34.025641
98
0.715901
4df5dca9ce181a00e38052898088a43bcb757dd0
1,693
py
Python
back/web/tran/migrations/0046_advertisement_collection.py
wda43779/fine-water-flow
8f7773ee4e8fde7ebe1279842090c3c8158c634e
[ "BSD-2-Clause" ]
26
2019-08-27T13:40:58.000Z
2021-07-22T16:53:38.000Z
back/web/tran/migrations/0046_advertisement_collection.py
wda43779/fine-water-flow
8f7773ee4e8fde7ebe1279842090c3c8158c634e
[ "BSD-2-Clause" ]
5
2019-12-05T00:22:47.000Z
2022-02-10T12:55:24.000Z
back/web/tran/migrations/0046_advertisement_collection.py
wda43779/fine-water-flow
8f7773ee4e8fde7ebe1279842090c3c8158c634e
[ "BSD-2-Clause" ]
9
2019-06-07T09:41:35.000Z
2021-07-22T16:53:39.000Z
# Generated by Django 2.2.3 on 2020-06-30 14:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tran', '0045_auto_202006...
38.477273
121
0.573538
64e2b71cb4b486a766d3e4406c67632246e83e76
2,120
py
Python
datadrift/custom_expectations/continuous_expectations.py
samsonq/datadrift
c4298d588b5df27992f332c1df5b092c54823b4e
[ "MIT" ]
null
null
null
datadrift/custom_expectations/continuous_expectations.py
samsonq/datadrift
c4298d588b5df27992f332c1df5b092c54823b4e
[ "MIT" ]
null
null
null
datadrift/custom_expectations/continuous_expectations.py
samsonq/datadrift
c4298d588b5df27992f332c1df5b092c54823b4e
[ "MIT" ]
null
null
null
import os import sys import numpy as np import pandas as pd import great_expectations as ge import great_expectations.jupyter_ux from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.data_context.types.resource_identifiers import ExpectationSuiteIdentifier from ...
33.650794
97
0.670755
f958b9ff59b618e2c9b446d6e593789f9791f26f
124,615
py
Python
tests/test_cloudformation/test_cloudformation_stack_integration.py
richford/moto
3b9e6261f9d0f816bae76547c42acf4f16a36482
[ "Apache-2.0" ]
null
null
null
tests/test_cloudformation/test_cloudformation_stack_integration.py
richford/moto
3b9e6261f9d0f816bae76547c42acf4f16a36482
[ "Apache-2.0" ]
null
null
null
tests/test_cloudformation/test_cloudformation_stack_integration.py
richford/moto
3b9e6261f9d0f816bae76547c42acf4f16a36482
[ "Apache-2.0" ]
null
null
null
import json import io import zipfile from decimal import Decimal import boto import boto.cloudformation import boto.datapipeline import boto.ec2 import boto.ec2.autoscale import boto.ec2.elb from boto.exception import BotoServerError from botocore.exceptions import ClientError import boto.iam import boto.rds import b...
36.781287
124
0.563945
7fe06183319decf65872a1bfdfa05f25061136fa
765
py
Python
redash/settings/helpers.py
pkuyangchao/redash
1640b1e927a4d10ce9ae5c24b2d015734c696b08
[ "BSD-2-Clause" ]
null
null
null
redash/settings/helpers.py
pkuyangchao/redash
1640b1e927a4d10ce9ae5c24b2d015734c696b08
[ "BSD-2-Clause" ]
4
2020-06-18T15:31:02.000Z
2021-03-25T23:31:41.000Z
redash/settings/helpers.py
pkuyangchao/redash
1640b1e927a4d10ce9ae5c24b2d015734c696b08
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os def fix_assets_path(path): fullpath = os.path.join(os.path.dirname(__file__), "../", path) return fullpath def array_from_string(s): array = s.split(',') if "" in array: array.remove("") return array def set_from_string(s): r...
19.615385
71
0.594771
600b0b91b6fda543e6aa3d01e330e6922461850f
1,819
py
Python
install/app_store/tk-mari/v1.2.0/startup/init.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
bundle_cache/app_store/tk-mari/v1.2.0/startup/init.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
bundle_cache/app_store/tk-mari/v1.2.0/startup/init.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
# Copyright (c) 2014 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
30.316667
108
0.6674
0a41e2001b5afe7e65823567466939227eee447d
5,005
py
Python
tests/regressiontests/forms/localflavor/mk.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
tests/regressiontests/forms/localflavor/mk.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/forms/localflavor/mk.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
from django.contrib.localflavor.mk.forms import ( MKIdentityCardNumberField, MKMunicipalitySelect, UMCNField) from utils import LocalFlavorTestCase class MKLocalFlavorTests(LocalFlavorTestCase): def test_MKIdentityCardNumberField(self): error_invalid = [u'Identity card numbers must contain either 4...
37.916667
78
0.686513
01e5d8a85a9302e834e6ef8dac688e77c4c6ea37
2,659
py
Python
lib/config.py
Ecrypty/sentinel
86e2d14b164d4f7d01395ae661e0f465d7fd804e
[ "MIT" ]
null
null
null
lib/config.py
Ecrypty/sentinel
86e2d14b164d4f7d01395ae661e0f465d7fd804e
[ "MIT" ]
null
null
null
lib/config.py
Ecrypty/sentinel
86e2d14b164d4f7d01395ae661e0f465d7fd804e
[ "MIT" ]
null
null
null
""" Set up defaults and read sentinel.conf """ import sys import os from florijncoin_config import FlorijncoinConfig default_sentinel_config = os.path.normpath( os.path.join(os.path.dirname(__file__), '../sentinel.conf') ) sentinel_config_file = os.environ.get('SENTINEL_CONFIG', default_sentinel_config) sentin...
28.902174
113
0.681459
c4ac8188bca1f65f8c4783dbf140cb61c2a38397
2,661
py
Python
codes/mainCode/simpleLoopTest.py
cbrafter/TRB18_GPSVA
93ae6057ad4e57512ff36e2e1596543e5ad65ffb
[ "MIT" ]
1
2020-04-09T17:09:45.000Z
2020-04-09T17:09:45.000Z
codes/mainCode/simpleLoopTest.py
cbrafter/TRB18_GPSVA
93ae6057ad4e57512ff36e2e1596543e5ad65ffb
[ "MIT" ]
null
null
null
codes/mainCode/simpleLoopTest.py
cbrafter/TRB18_GPSVA
93ae6057ad4e57512ff36e2e1596543e5ad65ffb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @file simpleTest.py @author Simon Box, Craig Rafter @date 29/01/2016 test Miller's algorithm """ import sys, os sys.path.insert(0, '../sumoAPI') import fixedTimeControl import HybridVAControl import sumoConnect import readJunctionData import traci from routeGen import routeGen from s...
29.241758
117
0.746336
9c593d2737a998308db5f08010783828a6ca2c0b
18,034
py
Python
tensorflow/python/kernel_tests/distributions/categorical_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
5
2018-07-04T22:14:02.000Z
2018-07-04T22:21:43.000Z
tensorflow/python/kernel_tests/distributions/categorical_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/distributions/categorical_test.py
wenming2014/tensorflow
a102a6a71844e194f3946f6318768c5367f1f16b
[ "Apache-2.0" ]
2
2019-02-26T16:21:15.000Z
2020-12-04T17:48:17.000Z
# Copyright 2015 The TensorFlow 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 applica...
37.492723
80
0.635522
68173fbbe076b06b06b86d02d6701b273a6082e8
3,545
py
Python
spark_pipeline_framework/transformers/framework_file_downloader/v1/framework_file_downloader.py
imranq2/SparkPipelineFramework
3eb4ba959f8cbcbadc171023183044b699a00670
[ "Apache-2.0" ]
4
2020-09-21T01:05:11.000Z
2020-11-17T23:02:00.000Z
spark_pipeline_framework/transformers/framework_file_downloader/v1/framework_file_downloader.py
imranq2/SparkPipelineFramework
3eb4ba959f8cbcbadc171023183044b699a00670
[ "Apache-2.0" ]
6
2020-10-27T20:33:10.000Z
2021-06-04T01:56:32.000Z
spark_pipeline_framework/transformers/framework_file_downloader/v1/framework_file_downloader.py
imranq2/SparkPipelineFramework
3eb4ba959f8cbcbadc171023183044b699a00670
[ "Apache-2.0" ]
1
2020-10-08T16:53:25.000Z
2020-10-08T16:53:25.000Z
from typing import Optional, Dict, Any, List from pyspark import keyword_only from pyspark.ml.param import Param from pyspark.sql import DataFrame from spark_pipeline_framework.progress_logger.progress_log_metric import ( ProgressLogMetric, ) from spark_pipeline_framework.progress_logger.progress_logger import Pr...
37.712766
110
0.674471
b63760c05fed650374d44fc7d70df1114bb2750c
2,597
py
Python
venv/lib/python2.7/site-packages/pylint/checkers/stdlib.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/pylint/checkers/stdlib.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
venv/lib/python2.7/site-packages/pylint/checkers/stdlib.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
null
null
null
# Copyright 2012 Google Inc. # # http://www.logilab.fr/ -- mailto:contact@logilab.fr # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any late...
37.1
85
0.659607
a81f952ba7b4c2449e89806bac6e6771f0d4744d
7,716
py
Python
gitterpy/client.py
fernand0/GitterPy
1f4e00dc0381a164a0303d8554b3422c9f4e07ee
[ "MIT" ]
null
null
null
gitterpy/client.py
fernand0/GitterPy
1f4e00dc0381a164a0303d8554b3422c9f4e07ee
[ "MIT" ]
null
null
null
gitterpy/client.py
fernand0/GitterPy
1f4e00dc0381a164a0303d8554b3422c9f4e07ee
[ "MIT" ]
null
null
null
import requests as r from gitterpy.const import GITTER_BASE_URL, GITTER_STREAM_URL from gitterpy.errors import GitterItemsError, GitterRoomError, GitterTokenError class BaseApi: """Base Gitter API class Init: token an Gitter Token headers Headers for the HTTP methods Met...
29.227273
79
0.602514
e3052c32cc451dfa5f9ed60f60784d764eac671b
873
py
Python
1.5-one-away.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
1.5-one-away.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
1.5-one-away.py
rithvikp1998/ctci
52068e94449e61aef6bac9646a7863260acc7a05
[ "MIT" ]
null
null
null
s,s2=input().split(',') s,s2=s.strip(), s2.strip() n,n2=len(s), len(s2) if abs(n-n2)>1: print('NO') elif n==n2: # Only replace possible b=0 c=0 for i in range(n): if s[i]!=s2[i]: if b==1: c=1 print('NO') break else: ...
18.1875
77
0.368843
eebccfcd71157f97787776a35e552e3a3595b86f
15,401
py
Python
tools/iterators/base/main.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
1
2020-10-14T12:48:35.000Z
2020-10-14T12:48:35.000Z
tools/iterators/base/main.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
tools/iterators/base/main.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
import os import pandas as pd from tqdm import tqdm from time import time, sleep from screws.freeze.main import FrozenClass from screws.miscellaneous.timer import NumpyStyleDocstringReader from screws.miscellaneous.timer import MyTimer, randomStringDigits import inspect import pickle from root.config.main import * f...
36.408983
119
0.555289
1f1dd8a0a8c00bf6bf087c27b0464202e78bb73a
16,132
py
Python
sdk/python/pulumi_azure_nextgen/storagesync/v20200901/get_registered_server.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/storagesync/v20200901/get_registered_server.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/storagesync/v20200901/get_registered_server.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from ... import _utilities, _tables __a...
42.452632
618
0.689003
c79b00c72a41c703c88106f3eb9091247ccf8dfc
9,961
py
Python
aws_setup/configure_ecr.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
3
2021-04-17T10:20:26.000Z
2022-03-08T07:36:13.000Z
aws_setup/configure_ecr.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
aws_setup/configure_ecr.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
import os import subprocess import time import yaml import configparser import re import boto3 import pprint from tabulate import tabulate pp = pprint.PrettyPrinter(indent=4) # subprocess.check_call(["aws", "ecr", "get-login", ""]) # create repository def create_ecr_repo(services): obj = {} for servic...
33.426174
118
0.636884
1e36d686dbb0456a86bfa7fb0e5ecfa1d3dac228
52,873
py
Python
rihanna_bot/hot100.py
emylincon/chatbot
60bf7ab8bda0f4207cdd61e15d798ab1bbdad895
[ "MIT" ]
null
null
null
rihanna_bot/hot100.py
emylincon/chatbot
60bf7ab8bda0f4207cdd61e15d798ab1bbdad895
[ "MIT" ]
6
2021-03-19T16:09:50.000Z
2022-03-12T00:55:40.000Z
rihanna_bot/hot100.py
emylincon/chatbot
60bf7ab8bda0f4207cdd61e15d798ab1bbdad895
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import config import random as r from multiprocessing.pool import ThreadPool import billboard import datetime from rihanna_bot.ri_youtube import Youtube from rihanna_bot.hot100_data import * from rihanna_bot.similarity import sim_main dict_songs = { 'Future Featuring Dr...
75.532857
207
0.48085
b473f9cb82878a81190383163758ab8c8f770528
2,199
py
Python
bioagents/tests/bionlg_test.py
pagreene/bioagents
45cf7a0b7374c935978186d1fd83d70205a05a50
[ "BSD-2-Clause" ]
6
2016-10-29T13:53:11.000Z
2021-07-07T12:28:40.000Z
bioagents/tests/bionlg_test.py
pagreene/bioagents
45cf7a0b7374c935978186d1fd83d70205a05a50
[ "BSD-2-Clause" ]
66
2016-06-23T16:29:02.000Z
2021-11-03T18:09:34.000Z
bioagents/tests/bionlg_test.py
pagreene/bioagents
45cf7a0b7374c935978186d1fd83d70205a05a50
[ "BSD-2-Clause" ]
15
2016-03-18T20:46:22.000Z
2020-08-27T09:39:43.000Z
import json from kqml import KQMLList from indra.statements import Agent, Activation, BoundCondition, stmts_to_json, \ ActivityCondition, Phosphorylation from bioagents.tests.util import get_request from bioagents.bionlg.bionlg_module import BioNLG_Module from bioagents.tests.integration import _IntegrationTest ...
32.820896
80
0.703502
2d7c1bd38969742b5de91543910cb93b62948451
28,961
py
Python
wifiphisher/wifiphisher/pywifiphisher.py
burakbozdag/wifiphisher-docker
e5f373f63786c1a6cfeed4e9f5b00d0f986ade58
[ "Apache-2.0" ]
3
2020-09-04T14:54:30.000Z
2022-03-24T19:09:48.000Z
wifiphisher/wifiphisher/pywifiphisher.py
burakbozdag/wifiphisher-docker
e5f373f63786c1a6cfeed4e9f5b00d0f986ade58
[ "Apache-2.0" ]
null
null
null
wifiphisher/wifiphisher/pywifiphisher.py
burakbozdag/wifiphisher-docker
e5f373f63786c1a6cfeed4e9f5b00d0f986ade58
[ "Apache-2.0" ]
1
2020-12-26T20:11:22.000Z
2020-12-26T20:11:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: skip-file import argparse import curses import fcntl import logging import logging.config import os import signal import socket import struct import subprocess import sys import time from shutil import copyfile from subprocess import PIPE, Popen, check_output...
39.456403
148
0.56804
c9dc5ee37e8eb4e2fdd2dc14319a91697cd9993a
47,586
py
Python
dapper/tools/liveplotting.py
aperrin66/DAPPER
d9d09ed87ca58d59972296e317bfeea50ba6cdd0
[ "MIT" ]
null
null
null
dapper/tools/liveplotting.py
aperrin66/DAPPER
d9d09ed87ca58d59972296e317bfeea50ba6cdd0
[ "MIT" ]
null
null
null
dapper/tools/liveplotting.py
aperrin66/DAPPER
d9d09ed87ca58d59972296e317bfeea50ba6cdd0
[ "MIT" ]
1
2021-05-29T08:42:15.000Z
2021-05-29T08:42:15.000Z
"""On-line (live) plots of the DA process for various models and methods. Liveplotters are given by a list of tuples as property or arguments in `dapper.mods.HiddenMarkovModel`. - The first element of the tuple determines whether the liveplotter is shown if the names of liveplotters are not given by `liveplots` argum...
35.327394
88
0.497772
2d987edb0bc689800f7e9c0457badf6f54a6e01a
7,281
py
Python
bento/commands/hooks.py
cournape/Bento
37de23d784407a7c98a4a15770ffc570d5f32d70
[ "BSD-3-Clause" ]
55
2015-01-20T21:12:52.000Z
2021-11-23T12:29:32.000Z
bento/commands/hooks.py
esc/Bento
5e13318c0a74e956f9e80fa7617fb31ffc356088
[ "BSD-3-Clause" ]
6
2015-01-16T07:01:29.000Z
2021-08-19T20:00:17.000Z
bento/commands/hooks.py
esc/Bento
5e13318c0a74e956f9e80fa7617fb31ffc356088
[ "BSD-3-Clause" ]
6
2015-08-12T18:11:47.000Z
2019-01-05T08:36:05.000Z
import imp import os import re import sys import traceback from six.moves \ import \ StringIO from bento.commands.core \ import \ Command from bento.compat \ import \ inspect as compat_inspect from bento.utils.utils \ import \ extract_exception from bento.errors \ i...
26.67033
87
0.653207
cf1059f9b9b1568cf801e3a5bfa33d0bcd0f48d9
1,303
py
Python
custom_components/senseme/binary_sensor.py
OzGav/senseme-hacs
ff9b9a450be37e80ddb6380a4730c4526bb14c28
[ "MIT" ]
27
2017-02-20T17:49:32.000Z
2021-12-22T08:58:46.000Z
custom_components/senseme/binary_sensor.py
OzGav/senseme-hacs
ff9b9a450be37e80ddb6380a4730c4526bb14c28
[ "MIT" ]
66
2017-02-22T16:01:20.000Z
2022-03-05T15:09:56.000Z
custom_components/senseme/binary_sensor.py
OzGav/senseme-hacs
ff9b9a450be37e80ddb6380a4730c4526bb14c28
[ "MIT" ]
13
2020-02-09T22:42:38.000Z
2022-03-19T06:48:07.000Z
"""Support for Big Ass Fans SenseME occupancy sensor.""" import logging from aiosenseme import SensemeDevice from homeassistant.components.binary_sensor import ( DEVICE_CLASS_OCCUPANCY, BinarySensorEntity, ) from homeassistant.const import CONF_DEVICE from . import SensemeEntity from .const import DOMAIN _LO...
28.955556
68
0.71297
204e48c0c1ac19e964f538249d0250bae712a1ce
739
py
Python
Lib/site-packages/plotly/validators/sankey/node/_groups.py
tytanya/my-first-blog
2b40adb0816c3546e90ad6ca1e7fb50d924c1536
[ "bzip2-1.0.6" ]
4
2020-02-05T11:26:47.000Z
2021-05-26T07:48:46.000Z
Lib/site-packages/plotly/validators/sankey/node/_groups.py
tytanya/my-first-blog
2b40adb0816c3546e90ad6ca1e7fb50d924c1536
[ "bzip2-1.0.6" ]
6
2021-03-18T22:27:08.000Z
2022-03-11T23:40:50.000Z
venv/lib/python3.7/site-packages/plotly/validators/sankey/node/_groups.py
kylenahas/180LoginV1
8f64be6e6016d47dff8febfcfa3bbd56e9042f89
[ "MIT" ]
1
2020-02-02T21:17:12.000Z
2020-02-02T21:17:12.000Z
import _plotly_utils.basevalidators class GroupsValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__( self, plotly_name='groups', parent_name='sankey.node', **kwargs ): super(GroupsValidator, self).__init__( plotly_name=plotly_name, parent_name=pare...
30.791667
71
0.541272
82bbd3cade437076bb17b530c901b3ee052f1f5c
253
py
Python
keyup/keyup/exporters.py
anticlockwise/key_updates
c2a954123ed2232bbf2d014a31e5b346973f4c52
[ "MIT" ]
null
null
null
keyup/keyup/exporters.py
anticlockwise/key_updates
c2a954123ed2232bbf2d014a31e5b346973f4c52
[ "MIT" ]
null
null
null
keyup/keyup/exporters.py
anticlockwise/key_updates
c2a954123ed2232bbf2d014a31e5b346973f4c52
[ "MIT" ]
null
null
null
from scrapy.exporters import CsvItemExporter class HeadlessCsvItemExporter(CsvItemExporter): def __init__(self, *args, **kwargs): kwargs['include_headers_line'] = False super(HeadlessCsvItemExporter, self).__init__(*args, **kwargs)
36.142857
70
0.747036
3a6a2f6ce7bafe0a7c8893fabfd6724217be1b70
3,823
py
Python
python/http_client/v1/polyaxon_sdk/models/v1_schedule_kind.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_schedule_kind.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_schedule_kind.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
1
2021-12-03T07:12:03.000Z
2021-12-03T07:12:03.000Z
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
29.407692
76
0.605807
8a92e76b94be0f60fccc94b9c388dd12923726ce
38,023
py
Python
pwnlib/adb/adb.py
6tudent/pwntools
930f2a4a32c533fc4da8072594bf835fcb599e01
[ "MIT" ]
2
2017-03-30T08:15:43.000Z
2018-02-03T11:55:19.000Z
pwnlib/adb/adb.py
6tudent/pwntools
930f2a4a32c533fc4da8072594bf835fcb599e01
[ "MIT" ]
null
null
null
pwnlib/adb/adb.py
6tudent/pwntools
930f2a4a32c533fc4da8072594bf835fcb599e01
[ "MIT" ]
null
null
null
"""Provides utilities for interacting with Android devices via the Android Debug Bridge. Using Android Devices with Pwntools ----------------------------------- Pwntools tries to be as easy as possible to use with Android devices. If you have only one device attached, everything "just works". If you have multiple d...
27.673217
143
0.589091
8f845a7469932500cda5e556545088230c4e23c9
14,703
py
Python
proxySniffer/ProxyBase.py
TreeZhiyuan/proxyIp
992a9490fa1bc3aed140cf40e9450d8c1088bbfd
[ "MIT" ]
4
2019-01-30T06:40:27.000Z
2019-04-23T06:20:22.000Z
proxySniffer/ProxyBase.py
TreeZhiyuan/proxySniffer
992a9490fa1bc3aed140cf40e9450d8c1088bbfd
[ "MIT" ]
1
2020-04-30T08:00:33.000Z
2020-04-30T08:00:33.000Z
proxySniffer/ProxyBase.py
TreeZhiyuan/proxySniffer
992a9490fa1bc3aed140cf40e9450d8c1088bbfd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'JosePh.XRays' import os import re import requests import datetime from termcolor import colored from proxyThread import ProxyThreading # 国内高匿代理 INTERNAL_HIGHANONYMITY_PROXY = 0 # 国内普通代理 INTERNAL_COMMON_PROXY = 1 # 国内HTTP代理 INTERNAL_HTTP_PROXY = 4 # 国内HTTP...
30.440994
137
0.448276
5d683e6e481213f8a61f5d2c0968f1cc60eadd23
10,317
py
Python
astropy/io/fits/tests/test_fitsdiff.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_fitsdiff.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_fitsdiff.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
1
2020-02-18T04:10:00.000Z
2020-02-18T04:10:00.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pytest import os from . import FitsTestCase from astropy.io.fits.convenience import writeto from astropy.io.fits.hdu import PrimaryHDU, hdulist from astropy.io.fits import Header, ImageHDU, HDUList, FITSDiff from astropy.io.fits...
32.752381
82
0.555394
82af5a4ef28f1a9a76253797a1ae18795a4c8208
13,209
py
Python
ignite/engine/events.py
jonrbates/ignite
15eeb8791a2e0c2f55265e1f6b91f91dc35286c5
[ "BSD-3-Clause" ]
null
null
null
ignite/engine/events.py
jonrbates/ignite
15eeb8791a2e0c2f55265e1f6b91f91dc35286c5
[ "BSD-3-Clause" ]
null
null
null
ignite/engine/events.py
jonrbates/ignite
15eeb8791a2e0c2f55265e1f6b91f91dc35286c5
[ "BSD-3-Clause" ]
null
null
null
import numbers import weakref from enum import Enum from types import DynamicClassAttribute from typing import Any, Callable, Optional, Union from ignite.engine.utils import _check_signature __all__ = ["Events", "State"] class CallableEventWithFilter: """Single Event containing a filter, specifying whether the ...
34.220207
119
0.642214
29c0128798a884331ddb95d9a705ed2e3698bc82
263
py
Python
password_generator_01.py
lodaniel/password_generator
f3e7b984e9ae801949a64af39153a5f1274bca02
[ "Apache-2.0" ]
null
null
null
password_generator_01.py
lodaniel/password_generator
f3e7b984e9ae801949a64af39153a5f1274bca02
[ "Apache-2.0" ]
null
null
null
password_generator_01.py
lodaniel/password_generator
f3e7b984e9ae801949a64af39153a5f1274bca02
[ "Apache-2.0" ]
null
null
null
# Python code to create secure password import random n="0123456789" l="abcdefghijklmnopqrstuvxwyz" u="ABCDEFGHIJKLMNOPQRSTUVXWYZ" s="!@#$%&*(){}[]<>.,;^~-_" x=n+l+u+s lenght=18 pwd="".join(random.sample(x,lenght)) print("My new password is: ",pwd)
20.230769
40
0.657795
07b45c1986f9e8625f84dc3cc6b4a40c93c686b1
134,674
py
Python
blender/.blender/scripts/wizard_curve2tree.py
visnz/sketchfab_download
976f667d5c2c2864b2bad65aceac0dab5ce51b74
[ "Apache-2.0" ]
41
2021-02-18T05:56:26.000Z
2021-12-06T07:58:15.000Z
blender/.blender/scripts/wizard_curve2tree.py
visnz/sketchfab_download
976f667d5c2c2864b2bad65aceac0dab5ce51b74
[ "Apache-2.0" ]
19
2021-02-18T05:59:03.000Z
2022-01-13T01:00:52.000Z
blender/.blender/scripts/wizard_curve2tree.py
visnz/sketchfab_download
976f667d5c2c2864b2bad65aceac0dab5ce51b74
[ "Apache-2.0" ]
18
2021-02-22T13:32:56.000Z
2022-01-22T12:38:29.000Z
#!BPY """ Name: 'Tree from Curves' Blender: 245 Group: 'Wizards' Tip: 'Generate trees from curve shapes' """ __author__ = "Campbell Barton" __url__ = ['www.blender.org', 'blenderartists.org'] __version__ = "0.1" __bpydoc__ = """\ """ # -------------------------------------------------------------------------- # Tre...
33.261052
301
0.657633
e6ea16a817503231e4fe30228e1d9db1b1d14b55
3,862
py
Python
wallet_v3_tests.py
ndcroos/grin.py
7d54baf27d1029d4caa5750367a7a005aa5b7bfc
[ "MIT" ]
null
null
null
wallet_v3_tests.py
ndcroos/grin.py
7d54baf27d1029d4caa5750367a7a005aa5b7bfc
[ "MIT" ]
null
null
null
wallet_v3_tests.py
ndcroos/grin.py
7d54baf27d1029d4caa5750367a7a005aa5b7bfc
[ "MIT" ]
null
null
null
import os import socket import unittest from urllib.parse import urlparse # We are testing this module from wallet_v3 import WalletV3 ## # Test Configuration WalletConfig = { "owner_api_url": "http://localhost:3420/v3/owner", "owner_api_user": "grin", "owner_api_secret": open("/home/bdoyle/.gr...
37.134615
95
0.682807
2de89753409b6fe6e6db00d1fcc03bee60ac7a09
2,052
py
Python
mysite/polls/views.py
Rain981012/404-Lab4
fc4e63f60d015bab9da2905707b9f7d1bf7282a7
[ "Apache-2.0" ]
null
null
null
mysite/polls/views.py
Rain981012/404-Lab4
fc4e63f60d015bab9da2905707b9f7d1bf7282a7
[ "Apache-2.0" ]
null
null
null
mysite/polls/views.py
Rain981012/404-Lab4
fc4e63f60d015bab9da2905707b9f7d1bf7282a7
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from django.views import generic from .models import Question,Choice # Create your views here. ''' def index(request): lastest_question_list = Question.objects.order_by...
33.639344
94
0.711014
9120fa74e3ab23a0bff5d15a90303d16e5079f28
20,139
py
Python
run.py
jenspetersen/gqn-pytorch
5062a970e3c23990ca121e82222503338243302f
[ "MIT" ]
63
2019-01-11T18:43:29.000Z
2021-08-07T13:57:06.000Z
run.py
jenspetersen/gqn-pytorch
5062a970e3c23990ca121e82222503338243302f
[ "MIT" ]
3
2019-01-12T20:37:30.000Z
2020-03-06T03:25:05.000Z
run.py
jenspetersen/gqn-pytorch
5062a970e3c23990ca121e82222503338243302f
[ "MIT" ]
5
2019-01-12T08:50:04.000Z
2021-08-07T13:57:07.000Z
import numpy as np import time import torch from torch import nn, optim, distributions import torch.backends.cudnn as cudnn cudnn.benchmark = False from batchgenerators.dataloading import MultiThreadedAugmenter from trixi.util import Config, ResultLogDict from trixi.experiment import PytorchExperiment from model impo...
41.95625
156
0.55544
fcc71c06f0fc2e2aeb458db53c54f21b57c0a986
955
py
Python
tests/test_proxy_pattern.py
shu-boom/upgradability
79ea461e07739304a9d45c887ccea9a3cb373a97
[ "MIT" ]
null
null
null
tests/test_proxy_pattern.py
shu-boom/upgradability
79ea461e07739304a9d45c887ccea9a3cb373a97
[ "MIT" ]
null
null
null
tests/test_proxy_pattern.py
shu-boom/upgradability
79ea461e07739304a9d45c887ccea9a3cb373a97
[ "MIT" ]
null
null
null
from brownie import Logic, SimpleProxy, accounts, Contract import pytest def deploy_contracts(): logic_tx = Logic.deploy({"from": accounts[0]}) proxy_tx = SimpleProxy.deploy({"from": accounts[0]}) proxy_tx.setImplementationAddress(logic_tx.address) return (proxy_tx, logic_tx.address) def test_proxy_pa...
41.521739
70
0.750785
a8dc7b2b15fc6e9603247a9473f3fcac2e6a861e
2,880
py
Python
Battle_Of_Two_K/task_11_by_BOF2K_first_condition.py
Battle-Of-Two-K/NumericalMethods
88fe581fe4cb4d5e676f368e9de562f99c324674
[ "MIT" ]
null
null
null
Battle_Of_Two_K/task_11_by_BOF2K_first_condition.py
Battle-Of-Two-K/NumericalMethods
88fe581fe4cb4d5e676f368e9de562f99c324674
[ "MIT" ]
null
null
null
Battle_Of_Two_K/task_11_by_BOF2K_first_condition.py
Battle-Of-Two-K/NumericalMethods
88fe581fe4cb4d5e676f368e9de562f99c324674
[ "MIT" ]
null
null
null
from Battle_Of_Two_K.First_order_ODE import * import numpy as np try: print('_' * 70) print('Решение задачи Коши методом Эйлера'.center(70, '-')) eg1 = EulerMethod(2, 6, 2, -2, 1) print(f'Введённые данные:\na = {eg1.a}; b = {eg1.b}; x0 = {eg1.x_0}; y0 = {eg1.y_0}; h = {eg1.h}\n') print(f'--------...
33.882353
111
0.421181
b56aacb77a921e4e210db02ef0a526b7fb0bf399
1,291
py
Python
src_old/tests/test_pyccel_openacc.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/test_pyccel_openacc.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/test_pyccel_openacc.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
# coding: utf-8 # Usage: # python tests/test_pyccel_openacc.py --openacc --compiler='pgfortran' --execute import os from pyccel.commands.console import pyccel from utils import clean_tests # ... def test_core(): print('============== testing core ================') ignored = [] base_dir = os.getcwd(...
24.358491
83
0.575523
93ae25c9c4dd1b2e5e4f7da14e6a544bf00f7311
5,014
py
Python
python/paddle/distributed/auto_parallel/tuner/tunable_space.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/distributed/auto_parallel/tuner/tunable_space.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/distributed/auto_parallel/tuner/tunable_space.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2022 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 app...
30.950617
110
0.622457
2262c33e6d59d26ae85602b8d35a4e3854dd5990
6,431
py
Python
demo/demo_handmocap.py
archonic/frankmocap
eebb4591307fb46bfbc53afcf5663e758f686ab6
[ "BSD-3-Clause" ]
1,612
2020-09-23T08:45:18.000Z
2022-03-31T18:05:20.000Z
demo/demo_handmocap.py
archonic/frankmocap
eebb4591307fb46bfbc53afcf5663e758f686ab6
[ "BSD-3-Clause" ]
189
2020-09-24T11:24:27.000Z
2022-03-29T06:30:17.000Z
demo/demo_handmocap.py
archonic/frankmocap
eebb4591307fb46bfbc53afcf5663e758f686ab6
[ "BSD-3-Clause" ]
290
2020-09-23T13:40:50.000Z
2022-03-28T07:31:22.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import os, sys, shutil import os.path as osp import numpy as np import cv2 import json import torch from torchvision.transforms import Normalize from demo.demo_options import DemoOptions import mocap_utils.general_utils as gnu import mocap_utils.demo_utils as demo_ut...
35.727778
94
0.625719
bbddbc18b20bad64b6aba35d188e5c6a40a63570
2,027
py
Python
src/jk_sysinfo/get_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
src/jk_sysinfo/get_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
src/jk_sysinfo/get_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
import re from jk_cachefunccalls import cacheCalls from .parsing_utils import * from .invoke_utils import run from .get_etc_os_release import get_etc_os_release from .get_vcgencmd import get_vcgencmd_get_config # # Returns: # { # "count": 4, # "cpus": [ # { # "freq_max": 3900, # "freq_min": 800 # }...
18.261261
105
0.611248
831d823ee63166c6dbf33af255e30055abd9fc9d
3,655
py
Python
sysdescrparser/linux.py
datadope-io/sysdescrparser
c57d595707fec902f7a5bbf2a52089f6448610c4
[ "MIT" ]
1
2019-09-02T11:03:17.000Z
2019-09-02T11:03:17.000Z
sysdescrparser/linux.py
datadope-io/sysdescrparser
c57d595707fec902f7a5bbf2a52089f6448610c4
[ "MIT" ]
3
2020-05-10T09:59:08.000Z
2021-02-22T17:48:26.000Z
sysdescrparser/linux.py
datadope-io/sysdescrparser
c57d595707fec902f7a5bbf2a52089f6448610c4
[ "MIT" ]
4
2020-04-29T14:01:14.000Z
2022-03-18T11:23:16.000Z
# -*- coding: utf-8 -*- """sysdescrparser.linux.""" import re from sysdescr import SysDescr from utils.utils import os_version_names_regex, extract_version_number # pylint: disable=no-name-in-module # pylint: disable=no-member class Linux(SysDescr): """Class Linux. This class is only for vendor definition...
30.458333
104
0.477702
47ebf1b1bf7b6ea331532b6a128d3739f9a60e47
1,268
py
Python
prepare/download-mnist-data.py
shelper/mnist-docker
b9b0c505cbf6e7c525f463fd54e120b5ae97363b
[ "Apache-2.0" ]
null
null
null
prepare/download-mnist-data.py
shelper/mnist-docker
b9b0c505cbf6e7c525f463fd54e120b5ae97363b
[ "Apache-2.0" ]
null
null
null
prepare/download-mnist-data.py
shelper/mnist-docker
b9b0c505cbf6e7c525f463fd54e120b5ae97363b
[ "Apache-2.0" ]
null
null
null
import argparse import os from PIL import Image import imageio import mnist def save(subset, images, labels, out_dir): for i in range(images.shape[0]): # image = scipy.misc.toimage(images[i, :, :] * -1 + 256) image = Image.fromarray(images[i, :, :] * -1 + 256) label = labels[i] d...
29.488372
81
0.601735
3de4c36b088662dc9c9dbe00a2ecd609135c36d4
6,116
py
Python
Apps/Loader/SYS_Loader_v4.py
veekooFIN/gigatron-rom
08c9918cc111d7d2856cecae6da4137ee4641fb2
[ "BSD-2-Clause" ]
172
2018-02-26T19:56:11.000Z
2022-03-31T17:10:16.000Z
Apps/Loader/SYS_Loader_v4.py
veekooFIN/gigatron-rom
08c9918cc111d7d2856cecae6da4137ee4641fb2
[ "BSD-2-Clause" ]
140
2018-01-13T09:57:11.000Z
2022-02-15T13:22:05.000Z
Apps/Loader/SYS_Loader_v4.py
veekooFIN/gigatron-rom
08c9918cc111d7d2856cecae6da4137ee4641fb2
[ "BSD-2-Clause" ]
78
2018-01-13T01:07:37.000Z
2022-03-09T07:59:18.000Z
#----------------------------------------------------------------------- # # Loader-specific SYS extensions # #----------------------------------------------------------------------- from asm import * # Peek into the ROM's symbol table videoY = symbol('videoY') sysArgs = symbol('sysArgs0') vPC = symbol('vPC') ...
38.225
93
0.393558
9e45bf187437e417a99d92ab6109bf0bb7bb6130
207
py
Python
rotation.py
CoreyB33/tbi_ct_lesion_segmentation
7868ba94784c498f387946f19d4e75736bd6cbcb
[ "MIT" ]
null
null
null
rotation.py
CoreyB33/tbi_ct_lesion_segmentation
7868ba94784c498f387946f19d4e75736bd6cbcb
[ "MIT" ]
null
null
null
rotation.py
CoreyB33/tbi_ct_lesion_segmentation
7868ba94784c498f387946f19d4e75736bd6cbcb
[ "MIT" ]
null
null
null
import scipy from scipy import ndimage def rotateit(image, theta, isseg=False): order=0 if isseg==True else 5 return scipy.ndimage.rotate(image, float(theta),reshape=False,order=order,mode='nearest')
41.4
93
0.763285
964fb1cd78eacb9b9bc22409aab42ffb8552f048
29,808
py
Python
tests/test_formats_text.py
jbunce12/aioprometheus
d6dec47b05cab04901ffb8d2016d659927e02311
[ "MIT" ]
null
null
null
tests/test_formats_text.py
jbunce12/aioprometheus
d6dec47b05cab04901ffb8d2016d659927e02311
[ "MIT" ]
null
null
null
tests/test_formats_text.py
jbunce12/aioprometheus
d6dec47b05cab04901ffb8d2016d659927e02311
[ "MIT" ]
null
null
null
import re import unittest from aioprometheus import Collector, Counter, Gauge, Histogram, Registry, Summary from aioprometheus.formats import text class TestTextFormat(unittest.TestCase): def test_headers(self): f = text.TextFormatter() expected_result = {"Content-Type": text.TEXT_CONTENT_TYPE} ...
39.744
147
0.583602
6c7294edb4bc6fb6550f7440f44c36dc467396f3
54,455
py
Python
bzt/jmx/base.py
adrianantonypillai/taurus
a7d0ba3f212bd1e0b67961a1e1f4348e872b4ad8
[ "Apache-2.0" ]
null
null
null
bzt/jmx/base.py
adrianantonypillai/taurus
a7d0ba3f212bd1e0b67961a1e1f4348e872b4ad8
[ "Apache-2.0" ]
null
null
null
bzt/jmx/base.py
adrianantonypillai/taurus
a7d0ba3f212bd1e0b67961a1e1f4348e872b4ad8
[ "Apache-2.0" ]
null
null
null
""" Module holds base stuff regarding JMX format Copyright 2015 BlazeMeter 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 ap...
39.574855
119
0.614177
b0427f9dec6a3ab56094fea13908cfc16584b088
2,856
py
Python
mindspore_xai/explanation/attribution/attribution.py
mindspore-ai/xai
6d8046ba94cc8f319c99fb7f7e7eea163a170693
[ "Apache-2.0" ]
2
2021-07-02T15:18:26.000Z
2022-01-25T08:10:51.000Z
mindspore_xai/explanation/attribution/attribution.py
mindspore-ai/xai
6d8046ba94cc8f319c99fb7f7e7eea163a170693
[ "Apache-2.0" ]
null
null
null
mindspore_xai/explanation/attribution/attribution.py
mindspore-ai/xai
6d8046ba94cc8f319c99fb7f7e7eea163a170693
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
36.615385
119
0.651611
e70367b00cd6a18953b6cd4e3877a42c07cff938
847
py
Python
tests/Hassel_stack.py
cpvargas/stacklib
13aff05264556bbd9f8c32b8264dffe7cd336211
[ "MIT" ]
null
null
null
tests/Hassel_stack.py
cpvargas/stacklib
13aff05264556bbd9f8c32b8264dffe7cd336211
[ "MIT" ]
null
null
null
tests/Hassel_stack.py
cpvargas/stacklib
13aff05264556bbd9f8c32b8264dffe7cd336211
[ "MIT" ]
null
null
null
""" Stack of Hasselfield clusters """ from datetime import datetime startTime = datetime.now() import stacklib as sl from astropy.io import fits import os path = os.environ["HOME"] + '/FILES/' hdulist = fits.open(path +'Hassel_inside.fits') tbdata = hdulist[1].data m = path +'ACT_148_equ_season_3_1way_v3_src_fre...
16.607843
68
0.702479
7fba11957c9b1ab0cf45a93a6ccbfd7e126e88b9
4,471
py
Python
openpype/hosts/aftereffects/plugins/publish/validate_scene_settings.py
philipluk/OpenPype
103de741de5f71063a9572f0338e879b6361fb31
[ "MIT" ]
87
2021-05-07T08:40:46.000Z
2022-03-19T00:36:25.000Z
openpype/hosts/aftereffects/plugins/publish/validate_scene_settings.py
philipluk/OpenPype
103de741de5f71063a9572f0338e879b6361fb31
[ "MIT" ]
1,019
2021-04-26T06:22:56.000Z
2022-03-31T16:30:43.000Z
openpype/hosts/aftereffects/plugins/publish/validate_scene_settings.py
BigRoy/OpenPype
dd0e3657b4e66740f55feddb2693acfd14e2c9ef
[ "MIT" ]
33
2021-04-29T12:35:54.000Z
2022-03-25T14:48:42.000Z
# -*- coding: utf-8 -*- """Validate scene settings.""" import os import re import pyblish.api from avalon import aftereffects import openpype.hosts.aftereffects.api as api stub = aftereffects.stub() class ValidateSceneSettings(pyblish.api.InstancePlugin): """ Ensures that Composition Settings (right m...
35.204724
78
0.596511
8b7c7bfcb97912d5ac8ff44465da9ee2e893ceed
5,812
py
Python
quickbooks/api.py
eug3nix/django-quickbooks-online
4ab9fea4fe2a2c70cb058f723d261a0bbc7dd75d
[ "MIT" ]
null
null
null
quickbooks/api.py
eug3nix/django-quickbooks-online
4ab9fea4fe2a2c70cb058f723d261a0bbc7dd75d
[ "MIT" ]
null
null
null
quickbooks/api.py
eug3nix/django-quickbooks-online
4ab9fea4fe2a2c70cb058f723d261a0bbc7dd75d
[ "MIT" ]
1
2019-09-09T12:14:12.000Z
2019-09-09T12:14:12.000Z
try: from urllib.parse import quote except ImportError: from urllib import quote from requests.exceptions import RequestException from requests_oauthlib import OAuth1Session from django.conf import settings from django.contrib.auth import get_user_model from quickbooks.models import QuickbooksToken APPCENTER_...
40.082759
118
0.668617
e1065a7ffbafec9536561ab46f026ab2a24910ec
1,397
py
Python
pulse2percept/utils/testing.py
narenberg/pulse2percept
ca3aaf66672ccf3c9ee6a9a9d924184cdc6f031d
[ "BSD-3-Clause" ]
40
2019-11-01T14:09:34.000Z
2022-02-28T19:08:01.000Z
pulse2percept/utils/testing.py
narenberg/pulse2percept
ca3aaf66672ccf3c9ee6a9a9d924184cdc6f031d
[ "BSD-3-Clause" ]
277
2019-11-22T03:30:31.000Z
2022-03-28T00:11:03.000Z
pulse2percept/utils/testing.py
narenberg/pulse2percept
ca3aaf66672ccf3c9ee6a9a9d924184cdc6f031d
[ "BSD-3-Clause" ]
31
2020-01-22T06:36:36.000Z
2022-01-20T09:54:25.000Z
"""`assert_warns_msg`""" import pytest import numpy.testing as npt import warnings def assert_warns_msg(expected_warning, func, msg, *args, **kwargs): """Assert a call leads to a warning with a specific message Test whether a function call leads to a warning of type ``expected_warning`` with a message t...
32.488372
73
0.652827
929a38a65f0c51690da9ea557c0d2d8a9c6d38a6
3,121
py
Python
core/code_to_api.py
josepablocam/ams
4ee7fc2ad39af21a57e767cf2fcaf375792cf1f6
[ "MIT" ]
2
2021-09-10T17:00:54.000Z
2022-02-16T23:23:19.000Z
core/code_to_api.py
josepablocam/ams
4ee7fc2ad39af21a57e767cf2fcaf375792cf1f6
[ "MIT" ]
null
null
null
core/code_to_api.py
josepablocam/ams
4ee7fc2ad39af21a57e767cf2fcaf375792cf1f6
[ "MIT" ]
null
null
null
from gensim.summarization import bm25 import numpy as np from sklearn.pipeline import Pipeline from sklearn.metrics.pairwise import cosine_similarity from core import nlp from core import utils class BM25Index(object): def __init__(self, api): self.api = api self._build() def _preprocess_tex...
31.525253
79
0.666453
774c7582da59aaf81727edb1e8a77025984c1bd2
2,255
py
Python
tiebaBrowser/tieba_proto/PbPageReqIdl_pb2.py
Aimersa/Tieba-Manager
1161d99098eebc96c49cf1270d84fa7b03e6f9ed
[ "Unlicense" ]
null
null
null
tiebaBrowser/tieba_proto/PbPageReqIdl_pb2.py
Aimersa/Tieba-Manager
1161d99098eebc96c49cf1270d84fa7b03e6f9ed
[ "Unlicense" ]
null
null
null
tiebaBrowser/tieba_proto/PbPageReqIdl_pb2.py
Aimersa/Tieba-Manager
1161d99098eebc96c49cf1270d84fa7b03e6f9ed
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: PbPageReqIdl.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from...
47.978723
727
0.788914
726fbf8b26b86c3b4cc063ddee992cf11a3b46fa
2,969
py
Python
aea/connections/scaffold/connection.py
8ball030/agents-aea
fcf470e3daa9bd8e272ca66542c6003feb0fd7a8
[ "Apache-2.0" ]
1
2021-07-25T18:50:18.000Z
2021-07-25T18:50:18.000Z
aea/connections/scaffold/connection.py
8ball030/agents-aea
fcf470e3daa9bd8e272ca66542c6003feb0fd7a8
[ "Apache-2.0" ]
null
null
null
aea/connections/scaffold/connection.py
8ball030/agents-aea
fcf470e3daa9bd8e272ca66542c6003feb0fd7a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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...
32.626374
102
0.630852
a2d9fd94076ebdde7f39cb5e550f03f6c56fdf6f
1,315
py
Python
eruditio/external_apps/tagging/forms.py
genghisu/eruditio
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
[ "BSD-3-Clause", "MIT" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
eruditio/external_apps/tagging/forms.py
genghisu/eruditio
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
[ "BSD-3-Clause", "MIT" ]
1
2021-05-12T19:30:18.000Z
2021-05-12T19:33:57.000Z
eruditio/external_apps/tagging/forms.py
genghisu/eruditio
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
[ "BSD-3-Clause", "MIT" ]
16
2015-03-03T19:47:42.000Z
2019-03-02T14:44:32.000Z
""" Tagging components for Django's form library. """ from django import forms from django.utils.translation import ugettext as _ from tagging import settings from tagging.models import Tag from tagging.utils import parse_tag_input class TagAdminForm(forms.ModelForm): class Meta: model = Tag def clea...
32.073171
75
0.623574
0fe3b0c7e743dd62acf67e9a0d06fa9ac1a5e85a
3,037
py
Python
src/qinfer/unstructured_models.py
mikedeltalima/python-qinfer
8170c84a0be1723f8c6b09e0d3c7a40a886f1fe3
[ "BSD-3-Clause" ]
73
2016-01-27T18:42:22.000Z
2022-03-11T22:27:45.000Z
src/qinfer/unstructured_models.py
mikedeltalima/python-qinfer
8170c84a0be1723f8c6b09e0d3c7a40a886f1fe3
[ "BSD-3-Clause" ]
127
2016-01-22T05:05:24.000Z
2021-01-06T19:55:20.000Z
src/qinfer/unstructured_models.py
mikedeltalima/python-qinfer
8170c84a0be1723f8c6b09e0d3c7a40a886f1fe3
[ "BSD-3-Clause" ]
34
2016-01-26T22:37:10.000Z
2022-03-17T04:24:36.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ## # unstructured_models.py: Models for unstructured or minimally-structured # estimation. ## # © 2017, Chris Ferrie (csferrie@gmail.com) and # Christopher Granade (cgranade@cgranade.com). # # Redistribution and use in source and binary forms, with or without # modi...
37.9625
89
0.664801
9f69a273bc1277f3c3e78937289c998929fd3bbc
6,441
py
Python
py_pdf_term/endtoend/_endtoend/layers/method.py
kumachan-mis/pdf-slides-term
cf3319e4de723bd9424d23141803342d3c649103
[ "MIT" ]
1
2021-01-08T16:05:30.000Z
2021-01-08T16:05:30.000Z
py_pdf_term/endtoend/_endtoend/layers/method.py
kumachan-mis/py-slides-term
1e9337b97ae8968950489e728fc7aeeeb7eb1f4b
[ "MIT" ]
21
2021-01-03T13:50:59.000Z
2021-06-17T00:27:49.000Z
py_pdf_term/endtoend/_endtoend/layers/method.py
kumachan-mis/pdf-slides-term
cf3319e4de723bd9424d23141803342d3c649103
[ "MIT" ]
null
null
null
from typing import Any, List, Optional from ..caches import DEFAULT_CACHE_DIR from ..configs import MethodLayerConfig from ..mappers import ( SingleDomainRankingMethodMapper, MultiDomainRankingMethodMapper, MethodLayerRankingCacheMapper, MethodLayerDataCacheMapper, ) from ..data import DomainPDFList fr...
38.801205
88
0.679553
d599f063c4c842a435b302d56c510816a74ce6f2
241
py
Python
plugins/virtualkeyboard/__init__.py
UlordChain/uwallet-client-pro
103a3f7cf4e566e87f366739774f688339aea398
[ "MIT" ]
22
2018-05-29T01:46:24.000Z
2018-08-21T06:59:07.000Z
plugins/virtualkeyboard/__init__.py
UlordChain/uwallet-client-pro
103a3f7cf4e566e87f366739774f688339aea398
[ "MIT" ]
null
null
null
plugins/virtualkeyboard/__init__.py
UlordChain/uwallet-client-pro
103a3f7cf4e566e87f366739774f688339aea398
[ "MIT" ]
2
2018-09-15T21:59:44.000Z
2019-02-16T02:46:15.000Z
from uwallet.i18n import _ fullname = 'Virtual Keyboard' description = '%s\n%s' % (_("Add an optional virtual keyboard to the password dialog."), _("Warning: do not use this if it makes you pick a weaker password.")) available_for = ['qt']
40.166667
159
0.717842
c19371588756e620883d5f36f84284ce83a4abfe
2,871
py
Python
flashtorch/utils/imagenet.py
melodieboillet/flashtorch
d36768a96bde87241f5f158c8e3ca2d706c72bc4
[ "MIT" ]
2
2019-09-19T05:37:34.000Z
2019-09-19T05:43:30.000Z
flashtorch/utils/imagenet.py
Spijkervet/flashtorch
d36768a96bde87241f5f158c8e3ca2d706c72bc4
[ "MIT" ]
null
null
null
flashtorch/utils/imagenet.py
Spijkervet/flashtorch
d36768a96bde87241f5f158c8e3ca2d706c72bc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ import json from collections.abc import Mapping from importlib_resources import path from . import resources class ImageNetIndex(Mapping): """Interface to retrieve ImageNet class indeces from class names. This class implements a dictionary like object,...
30.542553
116
0.631139
2444dd48f0dfc43c91794d3dbac55cfd9246d4a8
1,369
py
Python
ooobuild/dyn/sheet/x_range_selection.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/sheet/x_range_selection.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/sheet/x_range_selection.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37
85
0.769905
bf6818f8f6ce8e3b9cb409a2107e055126287243
2,093
py
Python
nova/tests/integrated/v3/test_hosts.py
bopopescu/nova-35
c32c01e08dccad921b4af6fc03d971d6e74c990f
[ "Apache-2.0" ]
null
null
null
nova/tests/integrated/v3/test_hosts.py
bopopescu/nova-35
c32c01e08dccad921b4af6fc03d971d6e74c990f
[ "Apache-2.0" ]
null
null
null
nova/tests/integrated/v3/test_hosts.py
bopopescu/nova-35
c32c01e08dccad921b4af6fc03d971d6e74c990f
[ "Apache-2.0" ]
1
2020-07-24T09:13:22.000Z
2020-07-24T09:13:22.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
40.25
79
0.67893
f59c364deb8f096823f13e51301342015b10eccb
2,826
py
Python
encryption_api/encryption/compression_functions.py
lexis-project/ddi-service-apis
9e96c4159154d70613b1977a8ea28374c038b463
[ "Apache-2.0" ]
null
null
null
encryption_api/encryption/compression_functions.py
lexis-project/ddi-service-apis
9e96c4159154d70613b1977a8ea28374c038b463
[ "Apache-2.0" ]
null
null
null
encryption_api/encryption/compression_functions.py
lexis-project/ddi-service-apis
9e96c4159154d70613b1977a8ea28374c038b463
[ "Apache-2.0" ]
null
null
null
import subprocess import os import uuid import shutil import yaml import sys with open("/etc/staging_api/system.yml") as file: input_data = yaml.load(file, Loader=yaml.FullLoader) systems = input_data["systems"] def compress_data(path_to_data, move=True): if os.path.isdir(path_to_data): dataset =...
35.772152
77
0.610403
8dcc14e4cb390b353aa507bf9f214b0fe0e5c888
1,116
py
Python
tools/pyChemistry/pychemistry/chemkin_parser/parse_mechanism.py
polynomialchaos/chemistry
7d8ff9fade21ad8f1a14c05d33743d429aff4c83
[ "MIT" ]
null
null
null
tools/pyChemistry/pychemistry/chemkin_parser/parse_mechanism.py
polynomialchaos/chemistry
7d8ff9fade21ad8f1a14c05d33743d429aff4c83
[ "MIT" ]
null
null
null
tools/pyChemistry/pychemistry/chemkin_parser/parse_mechanism.py
polynomialchaos/chemistry
7d8ff9fade21ad8f1a14c05d33743d429aff4c83
[ "MIT" ]
null
null
null
################################################################################ # @file parse_mechanism.py # @author Florian Eigentler # @brief # @version 1.0.0 # @date 2022-02-22 # @copyright Copyright (c) 2022 by Florian Eigentler. # This work is licensed under terms of the MIT license (<LICENSE>). ################...
33.818182
80
0.620968
a04ae8291089ec235a88aa873a927e28523ac00b
2,670
py
Python
benchmark_runner.py
stu1130/deeplearning-benchmark
cdf816f92c9425ef1928f3149eaa544077a0c1b2
[ "Apache-2.0" ]
131
2016-11-30T05:34:28.000Z
2022-01-13T20:33:03.000Z
benchmark_runner.py
stu1130/deeplearning-benchmark
cdf816f92c9425ef1928f3149eaa544077a0c1b2
[ "Apache-2.0" ]
35
2017-04-02T02:12:00.000Z
2020-04-21T22:59:45.000Z
benchmark_runner.py
stu1130/deeplearning-benchmark
cdf816f92c9425ef1928f3149eaa544077a0c1b2
[ "Apache-2.0" ]
102
2016-11-30T05:34:46.000Z
2022-03-10T11:00:00.000Z
from __future__ import print_function import argparse from ast import literal_eval import logging from utils import metrics_manager from utils import data_manager try: import ConfigParser config = ConfigParser.ConfigParser() except ImportError: import configparser config = configparser.ConfigParser()...
36.081081
159
0.714607
43503cd869681d5d5c49acd737ae6cde5587817b
20,350
py
Python
deepliif/models/DeepLIIF_model.py
wendywwang/DeepLIIF
d30f481cf052771c2f2b49dd5ba76719e4b6590b
[ "Apache-2.0" ]
3
2022-01-25T18:17:41.000Z
2022-01-26T00:06:15.000Z
deepliif/models/DeepLIIF_model.py
wendywwang/DeepLIIF
d30f481cf052771c2f2b49dd5ba76719e4b6590b
[ "Apache-2.0" ]
10
2022-01-18T22:07:41.000Z
2022-02-11T17:40:04.000Z
deepliif/models/DeepLIIF_model.py
wendywwang/DeepLIIF
d30f481cf052771c2f2b49dd5ba76719e4b6590b
[ "Apache-2.0" ]
1
2022-01-20T21:00:52.000Z
2022-01-20T21:00:52.000Z
import torch from .base_model import BaseModel from . import networks class DeepLIIFModel(BaseModel): """ This class implements the DeepLIIF model, for learning a mapping from input images to modalities given paired data.""" def __init__(self, opt): """Initialize the DeepLIIF class. Paramete...
63.59375
311
0.648796
26d7dd67bf4d569ecbde6bf07ad0a2174ec4b4b1
10,516
py
Python
python/color/colortransform.py
nickloomis/loomsci-examples
1225e5b33804a1501b5cef6c3a793434a5ed50f9
[ "MIT" ]
3
2015-08-23T19:56:10.000Z
2020-07-07T17:39:10.000Z
python/color/colortransform.py
nickloomis/loomsci-examples
1225e5b33804a1501b5cef6c3a793434a5ed50f9
[ "MIT" ]
null
null
null
python/color/colortransform.py
nickloomis/loomsci-examples
1225e5b33804a1501b5cef6c3a793434a5ed50f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions for transforming between color spaces. Change log: 2015/10/09 -- compand, inverse_compand added; nloomis@gmail.com """ import copy import numpy import imageutils import whitepoint # # module constants # _lab_epsilon = 0.008856 _lab_kappa = 903.3 # # module utilities # def _...
34.366013
80
0.649201
aaa3d2384de665b7d0b2f7291440a37471be4176
115,325
py
Python
keras/engine/training.py
tiwarip1/keras
df23a603d5e0bd9c11c5fdcac49540a236da69c0
[ "MIT" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
keras/engine/training.py
tiwarip1/keras
df23a603d5e0bd9c11c5fdcac49540a236da69c0
[ "MIT" ]
1
2018-11-15T02:00:31.000Z
2021-12-06T02:20:32.000Z
keras/engine/training.py
tiwarip1/keras
df23a603d5e0bd9c11c5fdcac49540a236da69c0
[ "MIT" ]
1
2018-04-04T12:38:47.000Z
2018-04-04T12:38:47.000Z
# -*- coding: utf-8 -*- """Training-related part of the Keras engine. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings import copy import numpy as np from scipy.sparse import issparse from .topology import Container from .. import backend...
46.464545
108
0.531489
2045e70539a60dcc348abeacba6c72a7108086e9
1,205
py
Python
nlp_2020/classification/tool.py
ustcsse308/nlp_2020
f84eaf1853a0c50b08c31b0d2541c25ee61adccd
[ "MIT" ]
1
2020-04-21T10:20:13.000Z
2020-04-21T10:20:13.000Z
nlp_2020/classification/tool.py
ustcsse308/nlp_2020
f84eaf1853a0c50b08c31b0d2541c25ee61adccd
[ "MIT" ]
null
null
null
nlp_2020/classification/tool.py
ustcsse308/nlp_2020
f84eaf1853a0c50b08c31b0d2541c25ee61adccd
[ "MIT" ]
null
null
null
import torch.nn as nn from torchtext.data import Field, LabelField, TabularDataset #TODO: implement for train/dev/test #TODO: replace `tokenize` by jieba tokenizer def build_dataset(fpath, mode='train'): # For more info about torchtext.data, # turn to https://pytorch.org/text/data.html tokenize = lambda x...
30.125
109
0.650622
b2467bb894f650a4be3a3ca8999c454160ee8233
401
py
Python
Scripts/003_hackerrank/Python/p026.py
OrangePeelFX/Python-Tutorial
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
null
null
null
Scripts/003_hackerrank/Python/p026.py
OrangePeelFX/Python-Tutorial
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
1
2021-06-02T00:28:17.000Z
2021-06-02T00:28:17.000Z
Scripts/003_hackerrank/Python/p026.py
florianwns/python-scripts
0d47f194553666304765f5bbc928374b7aec8a48
[ "MIT" ]
1
2020-01-13T11:08:18.000Z
2020-01-13T11:08:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Problem 026 Text Wrap Source : https://www.hackerrank.com/challenges/text-wrap/problem """ def wrap(string, max_width): l = [string[i:i+max_width] for i in range(0, len(string), max_width)] return "\n".join(l) if __name__ == '__main__': string, max_widt...
21.105263
73
0.648379
ef697529a73133ae77e4ba5499308f01b366ad89
2,095
py
Python
test_code/grader_dropout.py
pl80tech/CarND-Traffic-Sign-Classifier-Project
aac1de9d2d24cb0b4280c7733579a101a13ee2fa
[ "MIT" ]
2
2018-09-24T04:43:31.000Z
2018-09-24T04:44:13.000Z
test_code/grader_dropout.py
pl80tech/CarND-Traffic-Sign-Classifier-Project
aac1de9d2d24cb0b4280c7733579a101a13ee2fa
[ "MIT" ]
null
null
null
test_code/grader_dropout.py
pl80tech/CarND-Traffic-Sign-Classifier-Project
aac1de9d2d24cb0b4280c7733579a101a13ee2fa
[ "MIT" ]
1
2018-10-11T05:16:47.000Z
2018-10-11T05:16:47.000Z
import numpy as np from tensorflow.python.framework.errors import FailedPreconditionError import re import tensorflow as tf def get_result(output): """ Run tests against output """ answer = np.array([ [9.55999947, 16.], [0.11200001, 0.67200011], [43.30000305, 48.15999985]])...
31.268657
89
0.590931
d7282fcb870b9894f5dfbc060cd55a6c6ec39ff9
6,582
py
Python
test/backend/test_backend.py
a1trl9/MQBench
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
[ "Apache-2.0" ]
51
2021-08-20T01:28:50.000Z
2021-09-22T05:34:39.000Z
test/backend/test_backend.py
a1trl9/MQBench
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
[ "Apache-2.0" ]
7
2021-08-24T09:46:31.000Z
2021-09-22T05:43:06.000Z
test/backend/test_backend.py
a1trl9/MQBench
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
[ "Apache-2.0" ]
6
2021-08-20T09:18:48.000Z
2021-09-19T04:35:13.000Z
import torch import unittest from mqbench.prepare_by_platform import prepare_by_platform, BackendType from mqbench.convert_deploy import convert_deploy from mqbench.utils.state import enable_calibration, enable_quantization class TestQuantizeBackend(unittest.TestCase): def test_quantize_acedemic(self): m...
46.027972
127
0.664844
3e99111e651355dfe4cd9386a046f067f2b58c28
1,178
py
Python
posts/migrations/0002_auto_20200914_1911.py
tcharts-boop/quiktap
ff915cd507cfd804e8258b09db07ae8c1e81cc50
[ "MIT" ]
null
null
null
posts/migrations/0002_auto_20200914_1911.py
tcharts-boop/quiktap
ff915cd507cfd804e8258b09db07ae8c1e81cc50
[ "MIT" ]
null
null
null
posts/migrations/0002_auto_20200914_1911.py
tcharts-boop/quiktap
ff915cd507cfd804e8258b09db07ae8c1e81cc50
[ "MIT" ]
null
null
null
# Generated by Django 3.0.10 on 2020-09-14 23:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0001_initial'), ] operations = [ migrations.AddField( model_name='comment', name='last_edited_date', ...
26.772727
58
0.550085