hexsha stringlengths 40 40 | size int64 2 1.05M | ext stringclasses 9
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 193 | max_stars_repo_name stringlengths 6 109 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 36.6k ⌀ | 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 193 | max_issues_repo_name stringlengths 6 109 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 29.8k ⌀ | 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 193 | max_forks_repo_name stringlengths 6 109 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 11.2k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 1.05M | avg_line_length float64 1 404k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f709f44fde235e8c6f38256a50cbfb476ceee8e9 | 373 | py | Python | JDjangoDemo/docs/migrations/0003_auto_20201028_1758.py | JIYANG-PLUS/JDjango | 57cbb13b2b4c07f34d546c0c637c22f60c1e692a | [
"MIT"
] | 3 | 2020-12-28T05:09:02.000Z | 2021-06-23T10:02:03.000Z | JDjangoDemo/docs/migrations/0003_auto_20201028_1758.py | JIYANG-PLUS/JDjango | 57cbb13b2b4c07f34d546c0c637c22f60c1e692a | [
"MIT"
] | null | null | null | JDjangoDemo/docs/migrations/0003_auto_20201028_1758.py | JIYANG-PLUS/JDjango | 57cbb13b2b4c07f34d546c0c637c22f60c1e692a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-10-28 17:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('docs', '0002_article_version'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={'verbose_name': '插件内... | 20.722222 | 76 | 0.603217 |
f709f87c4beb8fa85bcf5d596823ca75307a6393 | 29,244 | py | Python | test/test_fnetout.py | vanderhe/fortnet-python | 118237f0ce750852d973b213161fc04623fd7f82 | [
"BSD-2-Clause"
] | null | null | null | test/test_fnetout.py | vanderhe/fortnet-python | 118237f0ce750852d973b213161fc04623fd7f82 | [
"BSD-2-Clause"
] | 1 | 2022-03-11T15:21:56.000Z | 2022-03-11T15:33:46.000Z | test/test_fnetout.py | vanderhe/fortnet-python | 118237f0ce750852d973b213161fc04623fd7f82 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
#------------------------------------------------------------------------------#
# fortnet-python: Python Tools for the Fortnet Software Package #
# Copyright (C) 2021 - 2022 T. W. van der Heide #
# ... | 45.622465 | 80 | 0.610792 |
f709ff30745f048a9069257f0e215166f25c956b | 1,509 | py | Python | msdsl/assignment.py | sgherbst/msdsl | e38d5ecdb88b3574bda62f22a4f91ce3e4173d12 | [
"MIT"
] | 15 | 2019-05-14T10:12:23.000Z | 2022-03-29T15:29:52.000Z | msdsl/assignment.py | sgherbst/msdsl | e38d5ecdb88b3574bda62f22a4f91ce3e4173d12 | [
"MIT"
] | 19 | 2020-01-22T21:44:33.000Z | 2021-06-05T02:10:41.000Z | msdsl/assignment.py | sgherbst/msdsl | e38d5ecdb88b3574bda62f22a4f91ce3e4173d12 | [
"MIT"
] | 5 | 2019-10-21T09:53:17.000Z | 2021-08-10T17:32:20.000Z | from msdsl.expr.expr import ModelExpr
from msdsl.expr.signals import Signal, DigitalSignal, AnalogSignal
from msdsl.expr.format import RealFormat
from msdsl.expr.table import Table
class Assignment:
def __init__(self, signal: Signal, expr: ModelExpr, check_format=True):
self.signal = signal
... | 33.533333 | 83 | 0.636183 |
f70a125670f78eacba803b405bf1888af7478244 | 853 | py | Python | aitlas/transforms/classification.py | tiendzung-le/aitlas | 4725693a5c073cc80a617fb9bab5a1557c3c3270 | [
"MIT"
] | 32 | 2020-12-04T19:48:19.000Z | 2022-03-16T18:18:05.000Z | aitlas/transforms/classification.py | likyoo/aitlas | 1c365e055c18e349e41670a4137c4d2b88671af9 | [
"MIT"
] | 2 | 2021-04-11T17:09:14.000Z | 2021-05-14T13:22:41.000Z | aitlas/transforms/classification.py | likyoo/aitlas | 1c365e055c18e349e41670a4137c4d2b88671af9 | [
"MIT"
] | 8 | 2021-04-06T22:06:27.000Z | 2022-01-30T06:01:39.000Z | from torchvision import transforms
from ..base import BaseTransforms
class ResizeCenterCropFlipHVToTensor(BaseTransforms):
def __call__(self, sample):
data_transforms = transforms.Compose([
transforms.ToPILImage(),
transforms.Resize(256),
transforms.CenterCro... | 28.433333 | 54 | 0.620164 |
f70a13ae6569d81bdfa4c8e185bdd5411b6c5afb | 273 | py | Python | sciwing/modules/__init__.py | sean-dingxu/sciwing | 75eca1ea43be165eab20cf8bd81bbc19cecda74c | [
"MIT"
] | 50 | 2019-09-13T10:32:29.000Z | 2022-02-14T16:52:53.000Z | sciwing/modules/__init__.py | sean-dingxu/sciwing | 75eca1ea43be165eab20cf8bd81bbc19cecda74c | [
"MIT"
] | 31 | 2019-09-03T11:06:03.000Z | 2021-08-20T14:57:09.000Z | sciwing/modules/__init__.py | sean-dingxu/sciwing | 75eca1ea43be165eab20cf8bd81bbc19cecda74c | [
"MIT"
] | 9 | 2019-09-16T03:25:15.000Z | 2021-05-11T10:28:25.000Z | from sciwing.modules.embedders import *
from sciwing.modules.bow_encoder import BOW_Encoder
from sciwing.modules.lstm2vecencoder import LSTM2VecEncoder
from sciwing.modules.lstm2seqencoder import Lstm2SeqEncoder
from sciwing.modules.charlstm_encoder import CharLSTMEncoder
| 45.5 | 60 | 0.886447 |
f70a4d8c027af9c7d598f7510fa3b661626b62ff | 4,113 | py | Python | inkscape_control.py | pkumath/datastructure | 0b440b59af73ed73c575df5cd1c67946aa510dba | [
"MIT"
] | 4 | 2020-05-19T05:38:37.000Z | 2020-05-27T04:14:17.000Z | inkscape_control.py | pkumath/datastructure | 0b440b59af73ed73c575df5cd1c67946aa510dba | [
"MIT"
] | null | null | null | inkscape_control.py | pkumath/datastructure | 0b440b59af73ed73c575df5cd1c67946aa510dba | [
"MIT"
] | 1 | 2020-05-19T05:41:53.000Z | 2020-05-19T05:41:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import paste
import subprocess
from multiprocessing import Process
from pathlib import Path
import tkinter.messagebox as messagebox
from shutil import copy
from appdirs import user_config_dir
import logging as log
from globe import Globe as globe
from util impo... | 32.132813 | 155 | 0.653538 |
f70a649a6c145f8eae91526b87cd9cfca92cdb65 | 679 | py | Python | pyglet/window/cocoa/systemcursor.py | seeminglee/pyglet64 | 3dd167b5b0d3ad132a157e404586e53c2bb21736 | [
"BSD-3-Clause"
] | 1 | 2016-01-09T03:47:39.000Z | 2016-01-09T03:47:39.000Z | pyglet/window/cocoa/systemcursor.py | seeminglee/pyglet64 | 3dd167b5b0d3ad132a157e404586e53c2bb21736 | [
"BSD-3-Clause"
] | null | null | null | pyglet/window/cocoa/systemcursor.py | seeminglee/pyglet64 | 3dd167b5b0d3ad132a157e404586e53c2bb21736 | [
"BSD-3-Clause"
] | null | null | null | from pyglet.libs.darwin.objc_runtime import *
# This class is a wrapper around NSCursor which prevents us from
# sending too many hide or unhide messages in a row. Apparently
# NSCursor treats them like retain/release messages, which can be
# problematic when we are e.g. switching between window & fullscreen.
class S... | 35.736842 | 69 | 0.693667 |
f70a73e7ec769ceacef155b98ab3be8009c63172 | 5,229 | py | Python | models/project.py | jlgoh/labeldat | 057248a22c7f022110d712dbcb61befd40e62760 | [
"MIT"
] | 1 | 2021-09-07T06:34:54.000Z | 2021-09-07T06:34:54.000Z | models/project.py | wilsonteng97/labeldat | bdca5df0af55bdd460807808861de25d762b28da | [
"MIT"
] | 5 | 2021-09-08T02:44:59.000Z | 2022-02-27T10:55:29.000Z | models/project.py | wilsonteng97/labeldat | bdca5df0af55bdd460807808861de25d762b28da | [
"MIT"
] | 1 | 2020-12-31T11:03:39.000Z | 2020-12-31T11:03:39.000Z | from extensions import db
from models.item_data_type import ItemDataType
from models.label import Label
from models.task import Task
class Project(db.Model):
id = db.Column(db.String(80), primary_key=True, nullable=False)
# 1(Project)-to-1(organisation)
org_id = db.Column(db.String(80), db.ForeignKey('org... | 42.169355 | 99 | 0.634921 |
f70a87f89311f5320018937ff535733ef8e8f539 | 10,355 | py | Python | curtsies/formatstringarray.py | toolforger/curtsies | 7f86c07d95aa22b004db9acf8f787e1abf49b581 | [
"MIT"
] | 3 | 2015-07-13T12:53:40.000Z | 2018-01-21T20:38:46.000Z | curtsies/formatstringarray.py | toolforger/curtsies | 7f86c07d95aa22b004db9acf8f787e1abf49b581 | [
"MIT"
] | null | null | null | curtsies/formatstringarray.py | toolforger/curtsies | 7f86c07d95aa22b004db9acf8f787e1abf49b581 | [
"MIT"
] | 1 | 2018-01-21T20:38:03.000Z | 2018-01-21T20:38:03.000Z | """
Format String 2D array
2d array for compositing term-formated strings
-autoexpanding vertically
-interesting get_item behavior (renders fmtstrs)
-caching behavior eventually
>>> a = FSArray(10, 14)
>>> a.shape
(10, 14)
>>> a[1] = 'i'
>>> a[3:4, :] = ['i' * 14]
>>> a[16:17, :] = ['j' * 14]
>>> a.shape, a[16, 0]
... | 33.29582 | 111 | 0.547562 |
f70acf373ecdb330c0ce11c3f2115bd7f4f066b1 | 6,494 | py | Python | toolbox/sampling/__init__.py | keunhong/toolbox | e8d1dadab4d9ccf8d78fe86ea933819ac6a07fca | [
"MIT"
] | null | null | null | toolbox/sampling/__init__.py | keunhong/toolbox | e8d1dadab4d9ccf8d78fe86ea933819ac6a07fca | [
"MIT"
] | null | null | null | toolbox/sampling/__init__.py | keunhong/toolbox | e8d1dadab4d9ccf8d78fe86ea933819ac6a07fca | [
"MIT"
] | null | null | null | import logging
import random
from typing import List, Tuple
import numpy as np
from skimage.transform import resize
from scipy.ndimage import zoom
from toolbox import images
from toolbox.images import crop, mask_bbox
from .poisson_disk import sample_poisson_uniform
logger = logging.getLogger(__name__)
class PatchT... | 33.474227 | 82 | 0.59963 |
f70b03c8718a2d81744520d6a0d9e0abea8b40a2 | 124 | py | Python | Florence/FiniteElements/Assembly/__init__.py | jdlaubrie/florence | 830dca4a34be00d6e53cbec3007c10d438b27f57 | [
"MIT"
] | 65 | 2017-08-04T10:21:13.000Z | 2022-02-21T21:45:09.000Z | Florence/FiniteElements/Assembly/__init__.py | jdlaubrie/florence | 830dca4a34be00d6e53cbec3007c10d438b27f57 | [
"MIT"
] | 6 | 2018-06-03T02:29:20.000Z | 2022-01-18T02:30:22.000Z | Florence/FiniteElements/Assembly/__init__.py | jdlaubrie/florence | 830dca4a34be00d6e53cbec3007c10d438b27f57 | [
"MIT"
] | 10 | 2018-05-30T09:44:10.000Z | 2021-05-18T08:06:51.000Z | from .Assembly import Assemble, AssembleForces, AssembleInternalTractionForces, AssembleExplicit, AssembleMass, AssembleForm | 124 | 124 | 0.887097 |
f70b18b4b2bf16ceeb39c12757922047f07bde3e | 241 | py | Python | Chapter_04/actions/admin.py | codingEzio/code_py_book_django2_by_example | d215d0c87a557685824286822186966b06fa8d59 | [
"Unlicense"
] | 1 | 2021-04-23T16:35:45.000Z | 2021-04-23T16:35:45.000Z | Chapter_04/actions/admin.py | codingEzio/code_py_book_django2_by_example | d215d0c87a557685824286822186966b06fa8d59 | [
"Unlicense"
] | null | null | null | Chapter_04/actions/admin.py | codingEzio/code_py_book_django2_by_example | d215d0c87a557685824286822186966b06fa8d59 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import Action
@admin.register(Action)
class ActionAdmin(admin.ModelAdmin):
list_display = ('user', 'verb', 'target', 'created')
list_filter = ('created',)
search_fields = ('verb',) | 24.1 | 56 | 0.697095 |
f70b36ff11e294f9ba8cdf3e7c715b9161f3372a | 9,632 | py | Python | model_tools/activations/hooks.py | BonnerLab/model-tools | ac90617cd79bb70a308e34a1e834971498329fb0 | [
"MIT"
] | null | null | null | model_tools/activations/hooks.py | BonnerLab/model-tools | ac90617cd79bb70a308e34a1e834971498329fb0 | [
"MIT"
] | null | null | null | model_tools/activations/hooks.py | BonnerLab/model-tools | ac90617cd79bb70a308e34a1e834971498329fb0 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
import logging
import os
from typing import Optional, Union, Iterable, Dict
import h5py
import numpy as np
import torch
from PIL import Image
from tqdm import tqdm
from brainio.stimuli import StimulusSet
from model_tools.activations import ActivationsModel
from model_tools.activati... | 43.781818 | 120 | 0.653758 |
f70b4d49fd7c2428414fde8a0fcb3a392c5d7289 | 7,023 | py | Python | deepsim/deepsim/core/link_state.py | aws-deepracer/deepsim | cad2639f525c2f94ec5c03d8b855cc65b0b8ee55 | [
"Apache-2.0"
] | 1 | 2022-03-25T07:20:49.000Z | 2022-03-25T07:20:49.000Z | deepsim/deepsim/core/link_state.py | aws-deepracer/deepsim | cad2639f525c2f94ec5c03d8b855cc65b0b8ee55 | [
"Apache-2.0"
] | null | null | null | deepsim/deepsim/core/link_state.py | aws-deepracer/deepsim | cad2639f525c2f94ec5c03d8b855cc65b0b8ee55 | [
"Apache-2.0"
] | null | null | null | #################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). ... | 31.922727 | 109 | 0.508472 |
f70b569498b82d470320a1d9546d114427f688b4 | 695 | py | Python | cinderclient/v3/qos_specs.py | deepanshhu/python-cinderclient | 2c0f74c708fd09c5ae813255aaa671073f2fe250 | [
"Apache-1.1"
] | null | null | null | cinderclient/v3/qos_specs.py | deepanshhu/python-cinderclient | 2c0f74c708fd09c5ae813255aaa671073f2fe250 | [
"Apache-1.1"
] | null | null | null | cinderclient/v3/qos_specs.py | deepanshhu/python-cinderclient | 2c0f74c708fd09c5ae813255aaa671073f2fe250 | [
"Apache-1.1"
] | null | null | null | # Copyright (c) 2013 eBay Inc.
# Copyright (c) OpenStack Foundation
#
# 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... | 30.217391 | 69 | 0.748201 |
f70bd2ee450be0f82157aa65881304ad6a24cb47 | 1,884 | py | Python | dask_kubernetes/conftest.py | ddelange/dask-kubernetes | 42bcf9817ea963bf048f9dd06caec1622656302a | [
"BSD-3-Clause"
] | 1 | 2022-01-20T12:38:27.000Z | 2022-01-20T12:38:27.000Z | dask_kubernetes/conftest.py | ddelange/dask-kubernetes | 42bcf9817ea963bf048f9dd06caec1622656302a | [
"BSD-3-Clause"
] | null | null | null | dask_kubernetes/conftest.py | ddelange/dask-kubernetes | 42bcf9817ea963bf048f9dd06caec1622656302a | [
"BSD-3-Clause"
] | null | null | null | import pytest
import pathlib
import os
import subprocess
import tempfile
from kopf.testing import KopfRunner
from dask_kubernetes.common.utils import check_dependency
DIR = pathlib.Path(__file__).parent.absolute()
check_dependency("helm")
check_dependency("kubectl")
check_dependency("docker")
@pytest.fixture()
a... | 25.808219 | 76 | 0.701168 |
f70bf6ee38f2719e916cda8cb70d9a8dda8c9666 | 8,303 | py | Python | whoville/cloudbreak/models/reinstall_request_v2.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | whoville/cloudbreak/models/reinstall_request_v2.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | whoville/cloudbreak/models/reinstall_request_v2.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | 34.168724 | 984 | 0.648802 |
f70c054e7f9c75daf40ce7a574ccf0b3546d13eb | 3,655 | py | Python | iotronic_lightningrod/modules/utils.py | Zakaria-Ben/iotronic-lightning-rod | 4a3eff68bd1db2d57beee0e8c51fbb14fcc0877a | [
"Apache-2.0"
] | null | null | null | iotronic_lightningrod/modules/utils.py | Zakaria-Ben/iotronic-lightning-rod | 4a3eff68bd1db2d57beee0e8c51fbb14fcc0877a | [
"Apache-2.0"
] | null | null | null | iotronic_lightningrod/modules/utils.py | Zakaria-Ben/iotronic-lightning-rod | 4a3eff68bd1db2d57beee0e8c51fbb14fcc0877a | [
"Apache-2.0"
] | 1 | 2018-05-18T13:01:03.000Z | 2018-05-18T13:01:03.000Z | # Copyright 2017 MDSLAB - University of Messina
# 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
#
# U... | 28.554688 | 78 | 0.661012 |
f70c38682f59465a9fb9eb7311497596f5bc838a | 1,201 | py | Python | operators/clip.py | ngiambla/nnflex | 7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa | [
"MIT"
] | null | null | null | operators/clip.py | ngiambla/nnflex | 7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa | [
"MIT"
] | null | null | null | operators/clip.py | ngiambla/nnflex | 7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa | [
"MIT"
] | null | null | null | ''' clip.py:
Implement's the clip ONNX node as a flexnode (for use with any accelerator)
'''
import uuid
import numpy as np
from operators.flexnode import FlexNode
from core.defines import Operator
from core.messaging import Message
class Clip(FlexNode):
def __init__(self, onnx_node, inputs, outputs):
... | 24.02 | 87 | 0.636969 |
f70c3dfba447061d7e08725b7b0184cabf89a717 | 162 | py | Python | python-port/speedclue/cards.py | sadakatsu/SpeedClueContest | f670e4e594b35e4a5111492dde31414429865ade | [
"MIT"
] | 1 | 2017-10-20T14:24:06.000Z | 2017-10-20T14:24:06.000Z | python-port/speedclue/cards.py | sadakatsu/SpeedClueContest | f670e4e594b35e4a5111492dde31414429865ade | [
"MIT"
] | null | null | null | python-port/speedclue/cards.py | sadakatsu/SpeedClueContest | f670e4e594b35e4a5111492dde31414429865ade | [
"MIT"
] | null | null | null | CARDS = (
(('Gr', 'Mu', 'Pe', 'Pl', 'Sc', 'Wh')),
(('Ca', 'Kn', 'Pi', 'Re', 'Ro', 'Wr')),
(('Ba', 'Bi', 'Co', 'Di', 'Ha', 'Ki', 'Li', 'Lo', 'St')),
)
| 27 | 61 | 0.290123 |
f70c3fb1ca6b1d6c60f6960e42fcf6161e4fb84e | 5,473 | py | Python | cnn_bin_to_csv_converter/cnn_bin_file_to_csv_converter.py | Riteshbansal/BigDataTextSummarization | 463ebc7d70d4829f4d92c33d2180eb3ae6031c71 | [
"BSD-3-Clause"
] | 1 | 2018-12-06T17:41:36.000Z | 2018-12-06T17:41:36.000Z | cnn_bin_to_csv_converter/cnn_bin_file_to_csv_converter.py | Riteshbansal/BigDataTextSummarization | 463ebc7d70d4829f4d92c33d2180eb3ae6031c71 | [
"BSD-3-Clause"
] | null | null | null | cnn_bin_to_csv_converter/cnn_bin_file_to_csv_converter.py | Riteshbansal/BigDataTextSummarization | 463ebc7d70d4829f4d92c33d2180eb3ae6031c71 | [
"BSD-3-Clause"
] | 2 | 2018-11-09T15:20:24.000Z | 2018-11-21T06:34:01.000Z | import glob, struct, random, csv
from tensorflow.core.example import example_pb2
# <s> and </s> are used in the data files to segment the abstracts into sentences. They don't receive vocab ids.
SENTENCE_START = '<s>'
SENTENCE_END = '</s>'
PAD_TOKEN = '[PAD]' # This has a vocab id, which is used to pad the encoder in... | 45.231405 | 195 | 0.655582 |
f70c3ff4abf853d2e0f73c630cdcf9d40b4f5ab7 | 983 | py | Python | Assets/GameSparks/Editor/post_process.py | dgeisert/MiniJam72AdventureDeath | 8cb7eea2111984f6f63486c54dadb7950adf9ff3 | [
"Unlicense"
] | null | null | null | Assets/GameSparks/Editor/post_process.py | dgeisert/MiniJam72AdventureDeath | 8cb7eea2111984f6f63486c54dadb7950adf9ff3 | [
"Unlicense"
] | null | null | null | Assets/GameSparks/Editor/post_process.py | dgeisert/MiniJam72AdventureDeath | 8cb7eea2111984f6f63486c54dadb7950adf9ff3 | [
"Unlicense"
] | null | null | null | import os
import re
from sys import argv
from mod_pbxproj import XcodeProject
path = argv[1]
print path
project = XcodeProject.Load(path +'/Unity-iPhone.xcodeproj/project.pbxproj')
project.add_file_if_doesnt_exist('System/Library/Frameworks/Security.framework', tree='SDKROOT')
project.add_file_if_doesnt_exist('usr/l... | 27.305556 | 96 | 0.720244 |
f70c4348b188e43d79cf8b756f4fb1b4466cb021 | 2,025 | py | Python | indy-tests/utils/utils.py | NgoAnhKhoi/indy-testcase | 1f85d2b7e77a5bb9637379286d7f7f142c2c626e | [
"MIT"
] | null | null | null | indy-tests/utils/utils.py | NgoAnhKhoi/indy-testcase | 1f85d2b7e77a5bb9637379286d7f7f142c2c626e | [
"MIT"
] | null | null | null | indy-tests/utils/utils.py | NgoAnhKhoi/indy-testcase | 1f85d2b7e77a5bb9637379286d7f7f142c2c626e | [
"MIT"
] | null | null | null | '''
Created on Nov 9, 2017
@author: khoi.ngo
'''
def generate_random_string(prefix="", suffix="", size=20):
"""
Generate random string .
:param prefix: (optional) Prefix of a string.
:param suffix: (optional) Suffix of a string.
:param length: (optional) Max length of a string (include prefix an... | 25.961538 | 109 | 0.620247 |
f70c4510e1c769c5ddba6263ecda35d921c80b8e | 4,335 | py | Python | lightly/openapi_generated/swagger_client/models/job_status_data_result.py | Tekrific/lightly | 75a1d56b4cee77f68e0f3166e3a412711d0dbb2d | [
"MIT"
] | 1,515 | 2020-10-05T13:04:17.000Z | 2022-03-31T16:14:55.000Z | lightly/openapi_generated/swagger_client/models/job_status_data_result.py | Tekrific/lightly | 75a1d56b4cee77f68e0f3166e3a412711d0dbb2d | [
"MIT"
] | 628 | 2020-10-14T11:38:51.000Z | 2022-03-31T14:40:54.000Z | lightly/openapi_generated/swagger_client/models/job_status_data_result.py | Tekrific/lightly | 75a1d56b4cee77f68e0f3166e3a412711d0dbb2d | [
"MIT"
] | 108 | 2020-10-17T08:31:06.000Z | 2022-03-20T16:44:22.000Z | # coding: utf-8
"""
Lightly API
Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501
OpenAPI spec version: 1.0.0
Contact: support@lightly... | 28.708609 | 220 | 0.582699 |
f70c7c8d3e72df63f8d1547bb698e8f8588b13ff | 3,574 | py | Python | rindr/settings.py | claird160/rindr | 0ab9d77edf6258ab8f304fd4f1c5f92d96ff7a60 | [
"MIT"
] | null | null | null | rindr/settings.py | claird160/rindr | 0ab9d77edf6258ab8f304fd4f1c5f92d96ff7a60 | [
"MIT"
] | null | null | null | rindr/settings.py | claird160/rindr | 0ab9d77edf6258ab8f304fd4f1c5f92d96ff7a60 | [
"MIT"
] | null | null | null | """
Django settings for rindr project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib i... | 24.648276 | 91 | 0.678232 |
f70c7cead4990040f286a584fa949ea7edd561a9 | 1,347 | py | Python | apysc/_display/flip_interface_helper.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 16 | 2021-04-16T02:01:29.000Z | 2022-01-01T08:53:49.000Z | apysc/_display/flip_interface_helper.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 613 | 2021-03-24T03:37:38.000Z | 2022-03-26T10:58:37.000Z | apysc/_display/flip_interface_helper.py | simon-ritchie/apyscript | c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279 | [
"MIT"
] | 2 | 2021-06-20T07:32:58.000Z | 2021-12-26T08:22:11.000Z | """The helper module for the flip interfaces.
"""
from enum import Enum
from apysc._type.boolean import Boolean
class Axis(Enum):
X = 'x'
Y = 'y'
def make_flip_update_expression(
*, before_value: Boolean, after_value: Boolean,
axis: Axis, interface_variable_name: str) -> str... | 26.411765 | 69 | 0.604306 |
f70cb404ff70014a8e6b2a47aa2bfba1304d3c59 | 31,360 | py | Python | hd_recognition/GUI.py | Seledriac/A-small-python-library-for-deep-learning | c041287b04ba217910f621d34c7739365c36ad48 | [
"MIT"
] | 1 | 2020-06-11T05:04:08.000Z | 2020-06-11T05:04:08.000Z | hd_recognition/GUI.py | Seledriac/A-small-python-library-for-deep-learning | c041287b04ba217910f621d34c7739365c36ad48 | [
"MIT"
] | 3 | 2020-06-14T10:26:57.000Z | 2020-06-14T10:37:58.000Z | hd_recognition/GUI.py | Seledriac/A-small-python-library-for-deep-learning | c041287b04ba217910f621d34c7739365c36ad48 | [
"MIT"
] | null | null | null |
# -*- coding:utf-8 -*-
"""Handwritten digits recognition Graphic interface module : training done with the mnist dataset"""
# Third-party gui/system/plotting Libraries
import numpy as np
import tkinter as tk
import tkinter.font as tkFont
from tkinter import messagebox
from tkinter import filedialog
from matplotlib.b... | 48.395062 | 216 | 0.625797 |
f70cbee84274bde26aeddaa7ebed722c81efeeab | 22,746 | py | Python | sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/storage/azure-storage-blob/azure/storage/blob/_shared/uploads.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
# pylint: ... | 36.628019 | 116 | 0.622483 |
f70d082602ad18b88dc46b1a347ca8e1149f97e1 | 1,754 | py | Python | src/main/py/com/example/utils/commons.py | brijeshdhaker/spark-python-examples | bb3504d21c073448c336c228f74449de68853b8d | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-18T16:23:56.000Z | 2021-07-18T16:23:56.000Z | src/main/py/com/example/utils/commons.py | brijeshdhaker/spark-python-examples | bb3504d21c073448c336c228f74449de68853b8d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/main/py/com/example/utils/commons.py | brijeshdhaker/spark-python-examples | bb3504d21c073448c336c228f74449de68853b8d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #
#
#
import re
import random
import time
COMMA_DELIMITER_1 = ',(?=([^"]*"[^"]*")*[^"]*$)'
COMMA_DELIMITER_2 = ',(?=([^"\\]*"\\[^"\\]*"\\)*[^"\\]*$)'
#
#
def print_separator():
print(" " * 30)
print(" #" * 30)
print(" " * 30)
#
# line2 = '1;"Goroka";"Goroka";"Papua New Guinea";"GKA";"AYGA";-6.081689;145.... | 27.40625 | 120 | 0.63455 |
f70d1d8f1773a6a94c07b1b5735441fec456b1d2 | 1,840 | py | Python | tests/endtoend/dependency_functions/report_dependencies/__init__.py | anandagopal6/azure-functions-python-worker | e4adb351e5454c093fcefbf0fb84f200af32f386 | [
"MIT"
] | 277 | 2018-01-25T23:13:03.000Z | 2022-02-22T06:12:04.000Z | tests/endtoend/dependency_functions/report_dependencies/__init__.py | anandagopal6/azure-functions-python-worker | e4adb351e5454c093fcefbf0fb84f200af32f386 | [
"MIT"
] | 731 | 2018-01-18T18:54:38.000Z | 2022-03-29T00:01:46.000Z | tests/endtoend/dependency_functions/report_dependencies/__init__.py | anandagopal6/azure-functions-python-worker | e4adb351e5454c093fcefbf0fb84f200af32f386 | [
"MIT"
] | 109 | 2018-01-18T02:22:57.000Z | 2022-02-15T18:59:54.000Z | import sys
import os
import json
import azure.functions as func
import google.protobuf as proto
import grpc
# Load dependency manager from customer' context
from azure_functions_worker.utils.dependency import DependencyManager as dm
def main(req: func.HttpRequest) -> func.HttpResponse:
"""This function is an Htt... | 35.384615 | 78 | 0.633152 |
f70d2f11b4758a9155d2ff127345b99d02d4e582 | 4,519 | py | Python | tensormonk/layers/routingcapsule.py | Tensor46/TensorMONK | 67617d3fdf8fde072ba9cab42de7d67c79b17494 | [
"MIT"
] | 29 | 2018-07-06T23:57:23.000Z | 2022-03-08T20:38:57.000Z | tensormonk/layers/routingcapsule.py | Johnson-yue/TensorMONK | 1785132b82c685c3b3fc05b00dec46b1fccfc948 | [
"MIT"
] | 3 | 2018-12-14T22:21:26.000Z | 2020-06-19T02:13:34.000Z | tensormonk/layers/routingcapsule.py | Johnson-yue/TensorMONK | 1785132b82c685c3b3fc05b00dec46b1fccfc948 | [
"MIT"
] | 8 | 2018-07-06T23:58:03.000Z | 2021-04-12T01:35:54.000Z | """ TensorMONK :: layers :: RoutingCapsule """
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from ..activations import Activations
class RoutingCapsule(nn.Module):
r""" Routing capsule from Dynamic Routing Between Capsules.
Implemented -- https://arxiv.org/pdf/1710.098... | 41.458716 | 78 | 0.565833 |
f70d49016206483cc360ec860091db714fdee31c | 47,779 | py | Python | plotwrf.py | ksopan/Plotting_WRF_NetCDF | cbff4ad4310447db2f31b402202f428cef968f14 | [
"MIT"
] | 1 | 2021-09-01T00:42:32.000Z | 2021-09-01T00:42:32.000Z | plotwrf.py | ksopan/Plotting_WRF_NetCDF | cbff4ad4310447db2f31b402202f428cef968f14 | [
"MIT"
] | null | null | null | plotwrf.py | ksopan/Plotting_WRF_NetCDF | cbff4ad4310447db2f31b402202f428cef968f14 | [
"MIT"
] | 1 | 2019-06-10T01:21:26.000Z | 2019-06-10T01:21:26.000Z | """
Sopan Kurkute
University of Saskatchewan
plotwrf.py
Python 2.x
Python script to plot various WRF model output. Plots are saved as PNG.
example usage: plotwrf.py --infile filename.nc --sfc --tunit C --ppn -punit mm --td
Will plot surface chart and dewpoint in Celcius and precipitation in mm.
Use plotwrf.py -... | 45.590649 | 167 | 0.628037 |
f70d96bce35013ac957938e048f02f5425a2e2f2 | 569 | bzl | Python | example/third_party/org_eclipse_jgit.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | example/third_party/org_eclipse_jgit.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | example/third_party/org_eclipse_jgit.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | load("@rules_maven_third_party//:import_external.bzl", import_external = "import_external")
def dependencies():
import_external(
name = "org_eclipse_jgit_org_eclipse_jgit",
artifact = "org.eclipse.jgit:org.eclipse.jgit:5.11.0.202103091610-r",
artifact_sha256 = "b0f012105d67729a67c7fde546b6e... | 40.642857 | 93 | 0.713533 |
f70dacbfa4317925c8e12fd040862ec22b3790b3 | 12,105 | py | Python | robinhoodbot/main.py | connorkerry/RobinhoodBot | 6a1e1733d900abfc00a8e6fff1cf48184af4edc3 | [
"MIT"
] | null | null | null | robinhoodbot/main.py | connorkerry/RobinhoodBot | 6a1e1733d900abfc00a8e6fff1cf48184af4edc3 | [
"MIT"
] | null | null | null | robinhoodbot/main.py | connorkerry/RobinhoodBot | 6a1e1733d900abfc00a8e6fff1cf48184af4edc3 | [
"MIT"
] | null | null | null | import robin_stocks as r
import pandas as pd
import numpy as np
import ta as ta
from pandas.plotting import register_matplotlib_converters
from ta import *
from misc import *
from tradingstats import *
#Log in to Robinhood
login = r.login('YOUR_EMAIL','YOUR_PASSWORD')
#Safe divide by zero division function
def safe_d... | 45.852273 | 162 | 0.656258 |
f70dca3c878f2c608ee4decf93cecab1952362b2 | 27,393 | py | Python | tests/keras/layers/recurrent_test.py | mduranmustafa/keras | d4a14ee54728ac8ea6c5ffbf41f559662dcfba46 | [
"MIT"
] | 75 | 2018-08-03T01:10:36.000Z | 2022-02-25T05:08:39.000Z | tests/keras/layers/recurrent_test.py | coderclear/ConvGRU | c458024d5c379ef990f72b6f6b738301e1895cff | [
"MIT"
] | 9 | 2018-08-14T14:33:58.000Z | 2021-09-06T07:04:14.000Z | tests/keras/layers/recurrent_test.py | coderclear/ConvGRU | c458024d5c379ef990f72b6f6b738301e1895cff | [
"MIT"
] | 19 | 2018-08-11T20:44:42.000Z | 2021-12-01T00:41:52.000Z | import pytest
import numpy as np
from numpy.testing import assert_allclose
import keras
from keras.utils.test_utils import layer_test
from keras.utils.test_utils import keras_test
from keras.layers import recurrent
from keras.layers import embeddings
from keras.models import Sequential
from keras.models import Model
f... | 35.807843 | 80 | 0.631694 |
f70ddadd8c534ce341100c123ca2bae91c5488da | 3,605 | py | Python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 49.383562 | 130 | 0.705687 |
f70dddfd53fd99825c38c174683fd5bfb96c6f8f | 15,270 | py | Python | nets/block.py | tarepan/mutated_DVC | 7fbbf4754285944387ec5d5108ed5f3d473d4f81 | [
"MIT"
] | null | null | null | nets/block.py | tarepan/mutated_DVC | 7fbbf4754285944387ec5d5108ed5f3d473d4f81 | [
"MIT"
] | null | null | null | nets/block.py | tarepan/mutated_DVC | 7fbbf4754285944387ec5d5108ed5f3d473d4f81 | [
"MIT"
] | 1 | 2019-06-05T16:03:32.000Z | 2019-06-05T16:03:32.000Z | import math
import chainer
import chainer.functions as F
import chainer.links as L
import numpy as np
from .sn_convolution_2d import SNConvolution2D, SNDeconvolution2D
from .sn_linear import SNLinear
def _upsample(x):
h, w = x.shape[2:]
return F.unpooling_2d(x, 2, outsize=(h * 2, w * 2))
def _downsample(x):
... | 40.07874 | 134 | 0.583628 |
f70dfdbde3e077aab6bf814a03c39fed976f228e | 463 | py | Python | examples/aditi/aniket/sister.py | FlaskAio/navycut | 40f378f1710a26645df8d726c4d1caf33097da50 | [
"MIT"
] | 4 | 2021-09-22T09:23:04.000Z | 2022-03-05T05:58:46.000Z | examples/aditi/aniket/sister.py | FlaskAio/navycut | 40f378f1710a26645df8d726c4d1caf33097da50 | [
"MIT"
] | 21 | 2021-09-27T03:19:21.000Z | 2022-03-31T03:20:59.000Z | examples/aditi/aniket/sister.py | FlaskAio/navycut | 40f378f1710a26645df8d726c4d1caf33097da50 | [
"MIT"
] | null | null | null | """
Do not change anything if you dont have enough knowledge
how to handle it, otherwise it may mess the server.
"""
from navycut.core import AppSister
from navycut.utils import path
__basedir__ = path.abspath(__file__).parent
class AniketSister(AppSister):
name = "aniket"
template_folder = __basedir__ / ... | 24.368421 | 57 | 0.732181 |
f70e0b2708b01792a275ee48480039747794c660 | 3,377 | py | Python | predict_functions.py | xXEminenTXx/ImageClassifier | e0e63e12108b523270ea7d615afcbfc696b07996 | [
"MIT"
] | null | null | null | predict_functions.py | xXEminenTXx/ImageClassifier | e0e63e12108b523270ea7d615afcbfc696b07996 | [
"MIT"
] | null | null | null | predict_functions.py | xXEminenTXx/ImageClassifier | e0e63e12108b523270ea7d615afcbfc696b07996 | [
"MIT"
] | null | null | null | # python imports
import numpy as np
from PIL import Image
import torch
from torch import nn, optim
import torch.nn.functional as F
from torchvision import datasets, transforms, models
from collections import OrderedDict
from sys import exit
# File containing all of the functions used in the predict program
def load_ch... | 30.423423 | 127 | 0.695292 |
f70e72a99e7f795d6d8542bc5c90c038e0e7a260 | 2,287 | py | Python | python/app/plugins/http/Spring/CVE_2017_8046.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 351 | 2020-02-26T05:23:26.000Z | 2022-03-26T12:39:19.000Z | python/app/plugins/http/Spring/CVE_2017_8046.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 15 | 2020-03-26T07:31:49.000Z | 2022-03-09T02:12:17.000Z | python/app/plugins/http/Spring/CVE_2017_8046.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 99 | 2020-02-28T07:30:46.000Z | 2022-03-16T16:41:09.000Z | #!/usr/bin/env python3
import json
from app.lib.utils.request import request
from app.lib.utils.common import get_useragent
class CVE_2017_8046_BaseVerify:
def __init__(self, url):
self.info = {
'name': 'CVE-2017-8046漏洞',
'description': 'CVE-2017-8046漏洞可执行任意命令,执行的命令:/usr/bin/touch ... | 37.491803 | 285 | 0.561434 |
f70e9c0b8bac3d670748990df3ff0e02f0a7f8ad | 15,619 | py | Python | zerver/lib/cache.py | dehnert/zulip | f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5 | [
"Apache-2.0"
] | null | null | null | zerver/lib/cache.py | dehnert/zulip | f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5 | [
"Apache-2.0"
] | null | null | null | zerver/lib/cache.py | dehnert/zulip | f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
from functools import wraps
from django.core.cache import cache as djcache
from django.core.cache import caches
from django.conf import settings
from django.db.models import Q
from django.core.cache.backends.base import BaseCache
from typin... | 39.541772 | 133 | 0.681414 |
f70ea910deb64c851f94887e577c45916aab7cf2 | 12,652 | py | Python | doc/conf.py | gitter-badger/SoCo | 65977466057748ea522a6d8b7f2a649091485a07 | [
"MIT"
] | 1 | 2019-03-09T14:23:48.000Z | 2019-03-09T14:23:48.000Z | doc/conf.py | gitter-badger/SoCo | 65977466057748ea522a6d8b7f2a649091485a07 | [
"MIT"
] | null | null | null | doc/conf.py | gitter-badger/SoCo | 65977466057748ea522a6d8b7f2a649091485a07 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# soco documentation build configuration file, created by
# sphinx-quickstart on Mon Sep 14 08:03:37 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | 31.788945 | 79 | 0.710639 |
f70eb1feadb7d4ea843f887e4935a9b29163f734 | 1,071 | py | Python | python/src/aoc/year2015/day6.py | ocirne/adventofcode | ea9b5f1b48a04284521e85c96b420ed54adf55f0 | [
"Unlicense"
] | 1 | 2021-02-16T21:30:04.000Z | 2021-02-16T21:30:04.000Z | python/src/aoc/year2015/day6.py | ocirne/adventofcode | ea9b5f1b48a04284521e85c96b420ed54adf55f0 | [
"Unlicense"
] | null | null | null | python/src/aoc/year2015/day6.py | ocirne/adventofcode | ea9b5f1b48a04284521e85c96b420ed54adf55f0 | [
"Unlicense"
] | null | null | null | from collections import defaultdict
from aoc.util import load_input
def turn(d, fun, sxy, exy):
sx, sy = map(int, sxy.split(","))
ex, ey = map(int, exy.split(","))
for x in range(sx, ex + 1):
for y in range(sy, ey + 1):
d[(x, y)] = fun(d[(x, y)])
def run(data, toggle, turn_on, turn_... | 26.121951 | 80 | 0.573296 |
f70eb2f3401ca84927cd6ad2318eeb8439e46c72 | 2,814 | py | Python | core/queue/views.py | lottspot/prevention-point | e4d5eaa437c3e979e8585bdada4efd33e995e39e | [
"MIT"
] | 35 | 2019-03-12T23:59:10.000Z | 2021-04-05T15:07:38.000Z | core/queue/views.py | lottspot/prevention-point | e4d5eaa437c3e979e8585bdada4efd33e995e39e | [
"MIT"
] | 365 | 2019-03-12T23:40:39.000Z | 2022-02-10T11:07:26.000Z | core/queue/views.py | lottspot/prevention-point | e4d5eaa437c3e979e8585bdada4efd33e995e39e | [
"MIT"
] | 20 | 2019-03-12T23:36:25.000Z | 2021-12-30T00:05:42.000Z | import datetime
from rest_framework import viewsets, status
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from core.permissions import DjangoModelPermissions
from core.visits.serializer import PopulatedVisitSerializer
from core.models import Visit, FrontDeskEvent,... | 40.2 | 98 | 0.657783 |
f70eba7ac72db4241c482950c5d46e65d867d233 | 2,161 | py | Python | apps/erms/api.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | 7 | 2020-02-20T13:24:40.000Z | 2022-01-28T19:36:04.000Z | apps/erms/api.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | 15 | 2020-04-28T13:09:02.000Z | 2021-11-03T15:21:24.000Z | apps/erms/api.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | 4 | 2020-02-20T13:48:30.000Z | 2021-03-19T00:33:34.000Z | import urllib.parse
import requests
class ERMSError(Exception):
pass
class ERMS(object):
"""
Possible queries:
/object?id=eq.574
/object?id=in.(574,575)
"""
# endpoints
EP_OBJECT = 'object'
EP_IDENTITY = 'identity'
EP_CONSORTIUM = 'consortium'
EP_CONSORTIUM_MEMBER = ... | 28.064935 | 72 | 0.61777 |
f70ec8116b154a5c5324c8498dcdda97090753ab | 9,785 | py | Python | habitat/tasks/nav/object_nav_task.py | Ram81/habitat-imitation-baselines | c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505 | [
"MIT"
] | null | null | null | habitat/tasks/nav/object_nav_task.py | Ram81/habitat-imitation-baselines | c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505 | [
"MIT"
] | null | null | null | habitat/tasks/nav/object_nav_task.py | Ram81/habitat-imitation-baselines | c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from typing import Any, List, Optional
import attr
from cv2 import log
import numpy as np
from gym import spaces
from habitat.config... | 33.62543 | 95 | 0.6465 |
f70ef0ac0372c717352edce2b5da38e908ee6060 | 31,508 | py | Python | Keras_tensorflow/source/tensorflow/core/protobuf/config_pb2.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 60 | 2017-08-05T21:47:56.000Z | 2022-03-08T21:46:29.000Z | Keras_tensorflow/source/tensorflow/core/protobuf/config_pb2.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2017-08-22T07:17:47.000Z | 2017-09-24T22:04:19.000Z | Keras_tensorflow/source/tensorflow/core/protobuf/config_pb2.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 11 | 2017-09-10T16:22:21.000Z | 2021-08-09T09:24:50.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/protobuf/config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf imp... | 43.161644 | 3,662 | 0.758601 |
f70f2240675cbbff5008d275512cd6a5bb90088b | 2,087 | py | Python | dvc/dependency/repo.py | drorata/dvc | b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0 | [
"Apache-2.0"
] | null | null | null | dvc/dependency/repo.py | drorata/dvc | b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0 | [
"Apache-2.0"
] | null | null | null | dvc/dependency/repo.py | drorata/dvc | b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
import copy
from funcy import merge
from schema import Optional
from contextlib import contextmanager
from dvc.external_repo import external_repo
from dvc.utils.compat import str
from .local import DependencyLOCAL
class DependencyREPO(DependencyLOCAL):
PARAM_REPO = "rep... | 26.75641 | 79 | 0.643987 |
f70f2adaa945474149079545ea89047b44947487 | 10,636 | py | Python | carla_python_api_recorder.py | t27/carla-scenic-data-collector | 3f38fa0e23a9f0ed85726292c5703c8505330870 | [
"MIT"
] | 1 | 2022-03-30T07:30:51.000Z | 2022-03-30T07:30:51.000Z | carla_python_api_recorder.py | t27/carla-scenic-data-collector | 3f38fa0e23a9f0ed85726292c5703c8505330870 | [
"MIT"
] | 1 | 2021-03-15T03:48:28.000Z | 2021-03-15T03:48:28.000Z | carla_python_api_recorder.py | t27/carla-scenic-data-collector | 3f38fa0e23a9f0ed85726292c5703c8505330870 | [
"MIT"
] | 5 | 2021-03-14T22:19:53.000Z | 2021-11-11T15:28:05.000Z | # Recorder that records agent states as dataframes and also stores a carla recording, in synchronous mode
#!/usr/bin/env python
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://... | 32.036145 | 105 | 0.615269 |
f70fa0e5384e444c718b501e35ff39db46d5b99a | 6,872 | py | Python | pennylane/transforms/__init__.py | XanaduAI/pennylane | 0620b8a8bb56ff55bfc2130619fa0a5a1af2b2a4 | [
"Apache-2.0"
] | 539 | 2018-11-13T08:45:42.000Z | 2020-07-27T18:17:16.000Z | pennylane/transforms/__init__.py | XanaduAI/pennylane | 0620b8a8bb56ff55bfc2130619fa0a5a1af2b2a4 | [
"Apache-2.0"
] | 588 | 2018-11-14T10:21:47.000Z | 2020-07-28T06:27:14.000Z | pennylane/transforms/__init__.py | XanaduAI/pennylane | 0620b8a8bb56ff55bfc2130619fa0a5a1af2b2a4 | [
"Apache-2.0"
] | 165 | 2018-11-13T18:58:56.000Z | 2020-07-27T17:18:17.000Z | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | 30.008734 | 113 | 0.766589 |
f70fad449b902120499a1dec1a4d6c495074a31f | 607 | py | Python | venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/applications/resnet/__init__.py | rexliu3/StockTradingBotCloud | 46b732b9c05f73bc0e856a3c4a16854b6d12e18e | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/applications/resnet/__init__.py | rexliu3/StockTradingBotCloud | 46b732b9c05f73bc0e856a3c4a16854b6d12e18e | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/applications/resnet/__init__.py | rexliu3/StockTradingBotCloud | 46b732b9c05f73bc0e856a3c4a16854b6d12e18e | [
"MIT"
] | 1 | 2020-06-28T11:47:47.000Z | 2020-06-28T11:47:47.000Z | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""ResNet models for Keras.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.keras.applications.resnet import ResNet101
from tensorfl... | 35.705882 | 82 | 0.84514 |
f70fbff6ebbce086af0b72f88cdfefd2aaa4e033 | 2,561 | py | Python | fieldbook/client.py | CSIS-iLab/fieldbook-python | 7dc5c26eab9675b4b3421ef1c943668d0616372e | [
"0BSD"
] | null | null | null | fieldbook/client.py | CSIS-iLab/fieldbook-python | 7dc5c26eab9675b4b3421ef1c943668d0616372e | [
"0BSD"
] | null | null | null | fieldbook/client.py | CSIS-iLab/fieldbook-python | 7dc5c26eab9675b4b3421ef1c943668d0616372e | [
"0BSD"
] | 1 | 2021-04-15T17:14:19.000Z | 2021-04-15T17:14:19.000Z | # -*- coding: utf-8 -*-
import requests
from urllib.parse import urljoin
from os import getenv
import types
class Fieldbook(object):
"""
Client for Fieldbook API: https://github.com/fieldbook/api-docs
Initialize with a fieldbook_id and optionally the api key (name) and secret.
"""
BASE_UR... | 36.070423 | 109 | 0.627099 |
f70fcdc4a7591387a0e661b787c802ae0ddafa4c | 3,137 | py | Python | mir/qualia/comment.py | darkfeline/qualia | 28ccb419dd82b75878c2f52227f291b249b489d7 | [
"Apache-2.0"
] | 23 | 2017-01-18T13:53:05.000Z | 2020-05-30T10:41:56.000Z | mir/qualia/comment.py | project-mir/mir.qualia | 28ccb419dd82b75878c2f52227f291b249b489d7 | [
"Apache-2.0"
] | 4 | 2016-10-16T00:19:15.000Z | 2017-10-25T13:28:05.000Z | mir/qualia/comment.py | project-mir/mir.qualia | 28ccb419dd82b75878c2f52227f291b249b489d7 | [
"Apache-2.0"
] | 5 | 2016-10-16T00:07:38.000Z | 2022-03-30T13:11:30.000Z | # Copyright (C) 2016 Allen Li
#
# 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,... | 32.340206 | 75 | 0.63277 |
f70fe8e5aa412881ec6f288fac376593ff84e297 | 74 | py | Python | tests/unit/test_version.py | HoverHell/python-gron | 21977c36b5fafde6be351b5488673e97a7cb4aeb | [
"MIT"
] | 10 | 2018-06-23T11:32:14.000Z | 2021-12-15T09:45:53.000Z | tests/unit/test_version.py | HoverHell/python-gron | 21977c36b5fafde6be351b5488673e97a7cb4aeb | [
"MIT"
] | null | null | null | tests/unit/test_version.py | HoverHell/python-gron | 21977c36b5fafde6be351b5488673e97a7cb4aeb | [
"MIT"
] | 1 | 2021-04-06T10:56:37.000Z | 2021-04-06T10:56:37.000Z | import gron
def test_version():
assert hasattr(gron, '__VERSION__')
| 12.333333 | 39 | 0.716216 |
f70ff08456cae98acf4a012e994d88495cb533a7 | 2,886 | py | Python | nova/api/openstack/compute/schemas/volumes.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2016-04-28T16:20:38.000Z | 2021-04-25T11:19:03.000Z | nova/api/openstack/compute/schemas/volumes.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 11 | 2017-06-19T01:28:55.000Z | 2017-06-23T02:01:47.000Z | nova/api/openstack/compute/schemas/volumes.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2020-04-08T20:24:45.000Z | 2020-10-05T19:02:13.000Z | # Copyright 2014 IBM Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 32.066667 | 78 | 0.517672 |
f7101e05d6aa3f6fae0e0f1f853fa0dab34e1ab0 | 8,060 | py | Python | sdk/storage/azure-storage-blob/azure/storage/blob/_deserialize.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/storage/azure-storage-blob/azure/storage/blob/_deserialize.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/storage/azure-storage-blob/azure/storage/blob/_deserialize.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
# pylint: ... | 46.057143 | 138 | 0.735732 |
f710381da3f755d00f1686fe84e2e0bb0f62b4dc | 1,215 | py | Python | pyIsoDep/tests/read_csv.py | MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE | ccad214de8721aa9b499ef70cd39966f18bceb76 | [
"MIT"
] | 1 | 2022-01-04T22:21:18.000Z | 2022-01-04T22:21:18.000Z | pyIsoDep/tests/read_csv.py | DanKotlyar/PYTHON-ISOTOPIC-DEPLETION-PACKAGE | d9da8be6eff4ba301f9689ce5c38a5e50856d033 | [
"MIT"
] | null | null | null | pyIsoDep/tests/read_csv.py | DanKotlyar/PYTHON-ISOTOPIC-DEPLETION-PACKAGE | d9da8be6eff4ba301f9689ce5c38a5e50856d033 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""read_csv
Read the different csv files
Created on Mon Oct 11 21:30:00 2021 @author: Dan Kotlyar
Last updated on Mon Oct 11 21:45:00 2021 @author: Dan Kotlyar
"""
import numpy as np
import pandas as pd
def ReadCsv(csvFile):
data = pd.read_csv('bootstrap.csv')
ID = np.array(data['... | 28.255814 | 77 | 0.604115 |
f710383da7cf5e7b2bacdc981bb14cc2aeedc558 | 6,434 | py | Python | components/start_page.py | SrGambiarra/KivyStudioDesigner | 7f617b60aef3d5e99865cb559b9b5ee93a1988f5 | [
"MIT"
] | 3 | 2022-03-05T21:54:34.000Z | 2022-03-15T12:55:45.000Z | components/start_page.py | SrGambiarra/KivyStudioDesigner | 7f617b60aef3d5e99865cb559b9b5ee93a1988f5 | [
"MIT"
] | 2 | 2022-03-13T04:15:47.000Z | 2022-03-30T11:51:41.000Z | components/start_page.py | SrGambiarra/KivyStudioDesigner | 7f617b60aef3d5e99865cb559b9b5ee93a1988f5 | [
"MIT"
] | null | null | null | __all__ = [
'DesignerLinkLabel', 'RecentItem',
'RecentFilesBox' 'DesignerStartPage']
from utils.utils import get_designer, get_fs_encoding
from kivy.properties import ObjectProperty, StringProperty
from kivy.uix.scrollview import ScrollView
from kivy.uix.boxlayout import BoxLayout
from kivy.lang.builder impor... | 27.495726 | 93 | 0.594809 |
f7104f79652ee5e3c7047f0cf3b972ab698cbea7 | 6,962 | py | Python | nova/console/websocketproxy.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/console/websocketproxy.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/console/websocketproxy.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 1 | 2020-07-24T00:41:18.000Z | 2020-07-24T00:41:18.000Z | # Copyright (c) 2012 OpenStack Foundation
# 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 ... | 40.011494 | 78 | 0.620511 |
f710765d0c0048687b632aaad0876e54da59b574 | 2,249 | py | Python | lib/models/resnet_trans_head.py | hz-ants/CDPN-source- | 625f9a80858f8a2fb9e74f88ea83073495141693 | [
"Apache-2.0"
] | 31 | 2020-12-21T09:36:30.000Z | 2022-03-04T03:27:48.000Z | lib/models/resnet_trans_head.py | hz-ants/CDPN-source- | 625f9a80858f8a2fb9e74f88ea83073495141693 | [
"Apache-2.0"
] | 3 | 2021-03-29T10:54:41.000Z | 2021-04-28T08:33:48.000Z | lib/models/resnet_trans_head.py | hz-ants/CDPN-source- | 625f9a80858f8a2fb9e74f88ea83073495141693 | [
"Apache-2.0"
] | 13 | 2020-12-21T09:42:05.000Z | 2022-03-25T06:04:24.000Z | import torch.nn as nn
import torch
class TransHeadNet(nn.Module):
def __init__(self, in_channels, num_layers=3, num_filters=256, kernel_size=3, output_dim=3, freeze=False,
with_bias_end=True):
super(TransHeadNet, self).__init__()
self.freeze = freeze
if kernel_size == 3:
... | 37.483333 | 134 | 0.549133 |
f710769b0ae8210f3a325400b468f41629c87e45 | 4,382 | py | Python | pipelines/cont_pipeline.py | SurvivorT/SRTP | 1ddc0c4ec31d61daf9f4292c533722e61818eb51 | [
"MIT"
] | 489 | 2017-02-21T21:40:22.000Z | 2022-03-31T08:01:30.000Z | pipelines/cont_pipeline.py | AliBeikmohammadi/MADRL | 3156eb6d6a1e8a4c91ff1dce9f5fc565b2c25c94 | [
"MIT"
] | 35 | 2017-03-10T12:28:11.000Z | 2022-02-14T14:58:21.000Z | pipelines/cont_pipeline.py | AliBeikmohammadi/MADRL | 3156eb6d6a1e8a4c91ff1dce9f5fc565b2c25c94 | [
"MIT"
] | 121 | 2017-02-24T20:13:53.000Z | 2022-03-08T08:56:32.000Z | #!/usr/bin/env python
#
# File: cont_pipeline.py
#
# Created: Friday, July 15 2016 by rejuvyesh <mail@rejuvyesh.com>
#
import argparse
import os
import yaml
import shutil
import rltools
from pipelines import pipeline
# Fix python 2.x
try:
input = raw_input
except NameError:
pass
def phase_train(spec, spec_f... | 43.82 | 166 | 0.438384 |
f7109e5f329e34712969175bcdd6c832599f7ef5 | 1,218 | py | Python | mandala/tests/test_call_graph.py | amakelov/mandala | a9ec051ef730ada4eed216c62a07b033126e78d5 | [
"Apache-2.0"
] | 9 | 2022-02-22T19:24:01.000Z | 2022-03-23T04:46:41.000Z | mandala/tests/test_call_graph.py | amakelov/mandala | a9ec051ef730ada4eed216c62a07b033126e78d5 | [
"Apache-2.0"
] | null | null | null | mandala/tests/test_call_graph.py | amakelov/mandala | a9ec051ef730ada4eed216c62a07b033126e78d5 | [
"Apache-2.0"
] | null | null | null | from .utils import *
from .funcs import *
def test_unit():
storage = Storage()
@op(storage)
def f(x:int) -> int:
return x + 1
@superop(storage)
def f_twice(x:int) -> int:
return f(f(x))
with run(storage, autocommit=True):
f_twice(42)
cg = storage.cal... | 24.857143 | 85 | 0.587028 |
f710a6c24308bd6ba7693092f6d121cecdb9b7b8 | 1,607 | py | Python | inaccel/keras/applications/imagenet_utils.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | 1 | 2021-01-27T12:20:35.000Z | 2021-01-27T12:20:35.000Z | inaccel/keras/applications/imagenet_utils.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | null | null | null | inaccel/keras/applications/imagenet_utils.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | null | null | null | """Utilities for ImageNet data preprocessing & prediction decoding.
"""
import json
import keras.utils.data_utils as data_utils
CLASS_INDEX = None
CLASS_INDEX_PATH = ('https://storage.googleapis.com/download.tensorflow.org/'
'data/imagenet_class_index.json')
def decode_predictions(preds, top=5):
... | 33.479167 | 77 | 0.613566 |
f710ac528885b1b93f31c632c55a3507e9b7fd6d | 3,475 | py | Python | pipe-cli/mount/pipefuse/fslock.py | cmbkoko1989/cloud-pipeline | 9af1218151ef02f87915726eb92c0cc626f7ab11 | [
"Apache-2.0"
] | null | null | null | pipe-cli/mount/pipefuse/fslock.py | cmbkoko1989/cloud-pipeline | 9af1218151ef02f87915726eb92c0cc626f7ab11 | [
"Apache-2.0"
] | null | null | null | pipe-cli/mount/pipefuse/fslock.py | cmbkoko1989/cloud-pipeline | 9af1218151ef02f87915726eb92c0cc626f7ab11 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 30.217391 | 111 | 0.624748 |
f710de970e7fba982966b7b605985bbabc605981 | 447 | py | Python | bibliohub/catalog/urls.py | apjanco/bibliohub | 95da034d2e136bd4ae25a9b6932fd19124dacd9b | [
"MIT"
] | null | null | null | bibliohub/catalog/urls.py | apjanco/bibliohub | 95da034d2e136bd4ae25a9b6932fd19124dacd9b | [
"MIT"
] | null | null | null | bibliohub/catalog/urls.py | apjanco/bibliohub | 95da034d2e136bd4ae25a9b6932fd19124dacd9b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from .views import SearchResultsView, HomePageView
urlpatterns = [
path('', views.index, name='index'),
# path('books/', views.BookListView.as_view(), name='books'),
path('search/', SearchResultsView.as_view(), name='search_results'),
path('home/', HomePa... | 44.7 | 94 | 0.711409 |
f7112d60b47eb6fb4ad1be2a0ffbcd3b4d41a3f4 | 21,283 | py | Python | reclor_trainer_base_v2.py | SparkJiao/MERIt | e887dd11bd2969345a5fb07c47d49bd0245e41e6 | [
"MIT"
] | 8 | 2022-03-01T09:02:44.000Z | 2022-03-18T14:41:56.000Z | reclor_trainer_base_v2.py | SparkJiao/MERIt | e887dd11bd2969345a5fb07c47d49bd0245e41e6 | [
"MIT"
] | 1 | 2022-03-09T12:12:22.000Z | 2022-03-10T09:08:42.000Z | reclor_trainer_base_v2.py | SparkJiao/MERIt | e887dd11bd2969345a5fb07c47d49bd0245e41e6 | [
"MIT"
] | 2 | 2022-03-02T01:46:52.000Z | 2022-03-02T13:51:53.000Z | # coding=utf-8
#
# Copyright 2020 Heinrich Heine University Duesseldorf
#
# Part of this code is based on the source code of BERT-DST
# (arXiv:1907.03040)
# Part of this code is based on the source code of Transformers
# (arXiv:1910.03771)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may no... | 45.091102 | 137 | 0.644881 |
f7115de338f1de8c6d119b74bc44f2877d482c1c | 15,511 | py | Python | ibis/backends/clickhouse/tests/test_functions.py | jreback/ibis | fdcca59b085416b1311eb268be3886abad1db230 | [
"Apache-2.0"
] | 1 | 2020-08-19T03:36:26.000Z | 2020-08-19T03:36:26.000Z | ibis/backends/clickhouse/tests/test_functions.py | jreback/ibis | fdcca59b085416b1311eb268be3886abad1db230 | [
"Apache-2.0"
] | null | null | null | ibis/backends/clickhouse/tests/test_functions.py | jreback/ibis | fdcca59b085416b1311eb268be3886abad1db230 | [
"Apache-2.0"
] | 2 | 2020-11-27T22:21:50.000Z | 2021-04-03T09:36:25.000Z | import math
import operator
from datetime import date, datetime
from operator import methodcaller
import pandas as pd
import pandas.testing as tm
import pytest
from pytest import param
import ibis
import ibis.expr.datatypes as dt
import ibis.expr.types as ir
from ibis import literal as L
clickhouse_driver = pytest.i... | 28.938433 | 76 | 0.597318 |
f71183a31b57d8e8d37c461a4adb535c2b4581ed | 931 | py | Python | backend/public_info/migrations/0001_initial.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/public_info/migrations/0001_initial.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/public_info/migrations/0001_initial.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-05-29 18:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove... | 31.033333 | 128 | 0.627282 |
f7119d7c59ca6eac52878c1e416f7ea7327c9543 | 4,445 | py | Python | IOTSocket/IOTSocketClient.py | AbhijithAJ/IOTSocket | 1a27c12491edc31b1c4fab8bcda34c643a5ef21c | [
"MIT"
] | 51 | 2020-02-19T16:46:32.000Z | 2022-03-19T08:51:35.000Z | IOTSocket/IOTSocketClient.py | AbhijithAJ/IOTSocket | 1a27c12491edc31b1c4fab8bcda34c643a5ef21c | [
"MIT"
] | null | null | null | IOTSocket/IOTSocketClient.py | AbhijithAJ/IOTSocket | 1a27c12491edc31b1c4fab8bcda34c643a5ef21c | [
"MIT"
] | 6 | 2020-02-19T16:46:43.000Z | 2021-11-23T13:37:03.000Z | '''
Developed by Abhijith Boppe - linkedin.com/in/abhijith-boppe/
'''
import socket
import ssl
import time
data_maxLength = 65535
fields_maxLength =1024
sock = ''
device_id = ''
device_key = ''
time_stamps = []
def connectionSet(host, port, id_, key, Encrypt=1, cert_path=None):
global sock, device_id, device_key... | 36.434426 | 142 | 0.575928 |
f711d576cf9e1b71718444316027ae1001e6df66 | 111,408 | py | Python | zerver/tests/test_bugdown.py | networksneaker/zulip | fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e | [
"Apache-2.0"
] | null | null | null | zerver/tests/test_bugdown.py | networksneaker/zulip | fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e | [
"Apache-2.0"
] | null | null | null | zerver/tests/test_bugdown.py | networksneaker/zulip | fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e | [
"Apache-2.0"
] | null | null | null | import copy
import os
import re
from typing import Any, Dict, List, Optional, Set, Tuple
from unittest import mock
import ujson
from django.conf import settings
from django.test import TestCase, override_settings
from zerver.lib import bugdown, mdiff
from zerver.lib.actions import (
do_add_alert_words,
do_rem... | 52.011204 | 1,845 | 0.635322 |
f711f53dbfad008c2626bad9630cebfb74095511 | 1,685 | py | Python | rat-sql-gap/seq2struct/commands/preprocess.py | JuruoMP/gap-exp | 2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05 | [
"Apache-2.0"
] | null | null | null | rat-sql-gap/seq2struct/commands/preprocess.py | JuruoMP/gap-exp | 2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05 | [
"Apache-2.0"
] | null | null | null | rat-sql-gap/seq2struct/commands/preprocess.py | JuruoMP/gap-exp | 2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05 | [
"Apache-2.0"
] | null | null | null | import argparse
import json
import os
import _jsonnet
import tqdm
from seq2struct import datasets
from seq2struct import models
from seq2struct.utils import registry
from seq2struct.utils import vocab
class Preprocessor:
def __init__(self, config):
self.config = config
self.model_preproc = regist... | 31.203704 | 102 | 0.633828 |
f7120a6ba7fb9a76d9c012b1b2b2b4711cfb483e | 1,765 | py | Python | google-cloud-sdk/lib/surface/dns/managed_zones/list.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2017-11-29T18:52:27.000Z | 2017-11-29T18:52:27.000Z | google-cloud-sdk/.install/.backup/lib/surface/dns/managed_zones/list.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/.install/.backup/lib/surface/dns/managed_zones/list.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2020-07-25T12:09:01.000Z | 2020-07-25T12:09:01.000Z | # Copyright 2014 Google 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 law or ag... | 29.416667 | 74 | 0.735411 |
f7120db0ad7e024065400616a724ec4766012512 | 26,403 | py | Python | dataFetcher.py | Jmion/SwisscomMIP | d29b0de222be44f85a84bc7dc3f4521741fdeda1 | [
"MIT"
] | 1 | 2021-10-06T06:57:55.000Z | 2021-10-06T06:57:55.000Z | dataFetcher.py | Jmion/SwisscomMIP | d29b0de222be44f85a84bc7dc3f4521741fdeda1 | [
"MIT"
] | null | null | null | dataFetcher.py | Jmion/SwisscomMIP | d29b0de222be44f85a84bc7dc3f4521741fdeda1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Loading data
import pandas as pd
import plotly.express as px
from tqdm import tqdm
import functools
import numpy as np
from difflib import SequenceMatcher
from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session
from datetime import d... | 40.37156 | 318 | 0.553308 |
f712372c535bdd51773b69555e9bde147a05679f | 1,811 | py | Python | src/speaking_eye/activity_stat.py | alena-bartosh/speaking-eye | 86e692cf5d3182f77b28e5264da74657d1972303 | [
"MIT"
] | 6 | 2020-04-30T17:35:09.000Z | 2021-11-18T09:41:50.000Z | src/speaking_eye/activity_stat.py | alena-bartosh/speaking-eye | 86e692cf5d3182f77b28e5264da74657d1972303 | [
"MIT"
] | 6 | 2020-05-16T17:52:45.000Z | 2021-08-16T11:47:11.000Z | src/speaking_eye/activity_stat.py | alena-bartosh/speaking-eye | 86e692cf5d3182f77b28e5264da74657d1972303 | [
"MIT"
] | null | null | null | from datetime import timedelta
from .activity import Activity
from .activity_helper import ActivityHelper
class ActivityStat:
"""Store and update the amount of time spent in a certain activity"""
def __init__(self, work_time: timedelta = timedelta(),
off_time: timedelta = timedelta()) -> No... | 32.339286 | 73 | 0.662065 |
f7123e1717463d041806ea6c1f2fb3540327f441 | 142 | py | Python | src/ex1/data_perturb/__init__.py | unica-isde/isde | a9603d8b8d1a347447cec483108132aa1e8457eb | [
"Apache-2.0"
] | 7 | 2021-01-20T09:11:53.000Z | 2022-03-15T12:19:06.000Z | src/ex1/data_perturb/__init__.py | unica-isde/isde | a9603d8b8d1a347447cec483108132aa1e8457eb | [
"Apache-2.0"
] | null | null | null | src/ex1/data_perturb/__init__.py | unica-isde/isde | a9603d8b8d1a347447cec483108132aa1e8457eb | [
"Apache-2.0"
] | 10 | 2020-11-01T09:47:02.000Z | 2021-11-02T12:59:50.000Z | from .data_perturb import DataPerturb
from .data_perturb_uniform import DataPerturbUniform
from .data_perturb_normal import DataPerturbNormal
| 35.5 | 52 | 0.894366 |
f712644582d0d626da065aaa558a9d554e67fef2 | 607 | py | Python | tree/0235-lowest-common-ancestor-of-a-binary-search-tree.py | ZHUANGHP/LeetCode-Solution-Python | af2b14abb7f50ee061bcd601c8666b32e448cbd8 | [
"Apache-2.0"
] | 1 | 2021-01-10T17:03:21.000Z | 2021-01-10T17:03:21.000Z | tree/Python/0235-lowest-common-ancestor-of-a-binary-search-tree.py | Eddiehugh/LeetCode-Solution-Well-Formed | bdc1e7153de737b84890153434bf8df5838d0be5 | [
"Apache-2.0"
] | null | null | null | tree/Python/0235-lowest-common-ancestor-of-a-binary-search-tree.py | Eddiehugh/LeetCode-Solution-Well-Formed | bdc1e7153de737b84890153434bf8df5838d0be5 | [
"Apache-2.0"
] | 1 | 2021-07-25T07:53:14.000Z | 2021-07-25T07:53:14.000Z | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode':
# 介于二者之间
if p.val <= root.val <= q.val or q.val <= root.val <= p.val:
... | 30.35 | 97 | 0.551895 |
f71272e8e92da38f391aee78dd99a6c81fa425f7 | 2,717 | py | Python | src/gedml/core/collectors/__init__.py | wangck20/GeDML | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | [
"MIT"
] | null | null | null | src/gedml/core/collectors/__init__.py | wangck20/GeDML | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | [
"MIT"
] | null | null | null | src/gedml/core/collectors/__init__.py | wangck20/GeDML | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | [
"MIT"
] | null | null | null | """
Collectors have two main functions: synthesizing (or collecting) samples and compute metric matrix (which will be passed to selectors and losses).
All methods are listed below:
+-----------------------+-------------------------------------------------------------------------------+
| method | desc... | 57.808511 | 161 | 0.3364 |
f7127631ea7b180440afc8e03d98802793f87c99 | 3,194 | py | Python | alipay/aop/api/request/AnttechBlockchainQueryconditionQueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/request/AnttechBlockchainQueryconditionQueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/request/AnttechBlockchainQueryconditionQueryRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AnttechBlockchainQueryconditionQueryRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._version =... | 24.953125 | 142 | 0.637445 |
f712987253d445bca87ff8f58246aad6d0a02786 | 800 | py | Python | Code/Collecting Statistics/plotStats.py | KunalSin9h/Playlist_Analysis | e8f7313f7c6dfcd3b3cabdfde89c8cdcc1f72f06 | [
"MIT"
] | 3 | 2021-09-23T12:08:40.000Z | 2021-09-25T08:38:29.000Z | Code/Collecting Statistics/plotStats.py | KunalSin9h/Playlist_Analysis | e8f7313f7c6dfcd3b3cabdfde89c8cdcc1f72f06 | [
"MIT"
] | 1 | 2021-09-18T06:13:27.000Z | 2021-09-22T04:55:24.000Z | Code/Collecting Statistics/plotStats.py | KunalSin9h/Playlist_Analysis | e8f7313f7c6dfcd3b3cabdfde89c8cdcc1f72f06 | [
"MIT"
] | null | null | null | """
plotStats() method to collect statistics for the track data.
Author: Kunal Singh
Email: pykunalsingh@gmail.com
"""
def plotStats(fileName):
# read in a playlist
with open(fileName, 'rb') as fp:
plist = plistlib.load(fp)
# get the tracks from the playlist
tracks = plist['Tracks']
... | 25.806452 | 70 | 0.61625 |
f712c802e34f008430d987035c36a72ff149c984 | 6,193 | py | Python | avanthive/tests/dbapi_test_case.py | amount/PyHive | be525f1ab500916bd1b04de6aed6e1505db4f3d8 | [
"Apache-2.0"
] | null | null | null | avanthive/tests/dbapi_test_case.py | amount/PyHive | be525f1ab500916bd1b04de6aed6e1505db4f3d8 | [
"Apache-2.0"
] | null | null | null | avanthive/tests/dbapi_test_case.py | amount/PyHive | be525f1ab500916bd1b04de6aed6e1505db4f3d8 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""Shared DB-API test cases"""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object
from builtins import range
from future.utils import with_metaclass
from avanthive import exc
import abc
import contextlib
import functools
def with_cursor(fn):
... | 34.21547 | 98 | 0.62942 |
f712ce0b1470383ff19a2fba7bee20d030c85cf0 | 454 | py | Python | models/dist_phold/experiment.py | MISTCARRYYOU/PythonPDEVS | 53cad29832b3c489ab037bdc487affcbf1e3f408 | [
"Apache-2.0"
] | 1 | 2018-09-19T14:42:28.000Z | 2018-09-19T14:42:28.000Z | models/dist_phold/experiment.py | MISTCARRYYOU/PythonPDEVS | 53cad29832b3c489ab037bdc487affcbf1e3f408 | [
"Apache-2.0"
] | null | null | null | models/dist_phold/experiment.py | MISTCARRYYOU/PythonPDEVS | 53cad29832b3c489ab037bdc487affcbf1e3f408 | [
"Apache-2.0"
] | 1 | 2021-01-14T12:21:35.000Z | 2021-01-14T12:21:35.000Z | import model
import logging
import sys
sys.path.append('../../src/')
from simulator import Simulator
sys.setrecursionlimit(50000)
model = model.AutoDistPHOLD(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3]))
sim = Simulator(model)
#sim.setVerbose(None)
sim.setTerminationTime(200)
sim.setMessageCopy('custom')
sim.... | 22.7 | 81 | 0.768722 |
f712e0eb5555667a488c2bf52ce2443674b5782c | 1,719 | py | Python | Sec24_Design/q0284.py | OctoberChang/LeetCode-Solutions | bb7958194e7b196729611cbad19ee792ba41c429 | [
"MIT"
] | 2 | 2021-01-26T00:59:47.000Z | 2021-11-20T02:55:13.000Z | Sec24_Design/q0284.py | OctoberChang/LeetCode-Solutions | bb7958194e7b196729611cbad19ee792ba41c429 | [
"MIT"
] | null | null | null | Sec24_Design/q0284.py | OctoberChang/LeetCode-Solutions | bb7958194e7b196729611cbad19ee792ba41c429 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
# Below is the interface for Iterator, which is already defined for you.
#
# class Iterator:
# def __init__(self, nums):
# """
# Initializes an iterator object to the beginning of a list.
# :type nums: List[int]
# """
#
# def hasNext(self)... | 25.656716 | 81 | 0.556719 |
f712f6558ed50db7fff7120d2677a6ee59fe1aa4 | 15,039 | py | Python | defoe/fmp/document.py | kallewesterling/defoe | d72af2f748fd4363a4718c93bb0b0284b8cb1f3e | [
"MIT"
] | 2 | 2022-02-14T12:10:54.000Z | 2022-02-14T12:35:44.000Z | defoe/fmp/document.py | kallewesterling/defoe | d72af2f748fd4363a4718c93bb0b0284b8cb1f3e | [
"MIT"
] | 17 | 2022-02-09T21:46:14.000Z | 2022-02-25T14:55:09.000Z | defoe/fmp/document.py | kallewesterling/defoe | d72af2f748fd4363a4718c93bb0b0284b8cb1f3e | [
"MIT"
] | 1 | 2022-02-14T13:19:08.000Z | 2022-02-14T13:19:08.000Z | """
Object model representation of a document represented as a collection
of XML files in METS/MODS format.
"""
from defoe.fmp.page import Page
from lxml import etree
import re
class Document(object):
"""
Object model representation of a document represented as a
collection of XML files in METS/MODS for... | 33.948081 | 191 | 0.554558 |
f713088ab00e8c25a1a72f8168121f4e7a2c67f4 | 1,476 | py | Python | src/ice/persistence/config_file_backing_store.py | geraldhumphries/Ice | ec466e85407361bbbc87b9e484fe427c1769b4fe | [
"MIT"
] | null | null | null | src/ice/persistence/config_file_backing_store.py | geraldhumphries/Ice | ec466e85407361bbbc87b9e484fe427c1769b4fe | [
"MIT"
] | null | null | null | src/ice/persistence/config_file_backing_store.py | geraldhumphries/Ice | ec466e85407361bbbc87b9e484fe427c1769b4fe | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
config_file_backing_store.py
Created by Scott on 2014-08-12.
Copyright (c) 2014 Scott Rice. All rights reserved.
"""
import ConfigParser
import backing_store
class ConfigFileBackingStore(backing_store.BackingStore):
def __init__(self, path):
super(ConfigFileBackingStore, self).__init__... | 26.836364 | 73 | 0.70935 |
f7134da2b040dac9af18bee385823a8ba7bac14c | 708 | py | Python | doozerlib/constants.py | vfreex/doozer | 8ad0a1234120cdc30890afbbdda1bc40e4a4fc76 | [
"Apache-2.0"
] | 1 | 2020-09-21T06:48:40.000Z | 2020-09-21T06:48:40.000Z | doozerlib/constants.py | vfreex/doozer | 8ad0a1234120cdc30890afbbdda1bc40e4a4fc76 | [
"Apache-2.0"
] | null | null | null | doozerlib/constants.py | vfreex/doozer | 8ad0a1234120cdc30890afbbdda1bc40e4a4fc76 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
# Environment variables to disable Git stdin prompts for username, password, etc
GIT_NO_PROMPTS = {
"GIT_SSH_COMMAND": "ssh -oBatchMode=yes",
"GIT_TERMINAL_PROMPT": "0",
}
BREWWEB_URL = "https://brewweb.engineering.redhat.com/brew"
# En... | 28.32 | 115 | 0.759887 |
f713854f3b5d2bc3bace7fa4697551d52b3eeb02 | 98 | py | Python | ludwig/__init__.py | phueb/Ludw | de426de1e396e700007869cda27dd5bc9b8f5d2d | [
"MIT"
] | null | null | null | ludwig/__init__.py | phueb/Ludw | de426de1e396e700007869cda27dd5bc9b8f5d2d | [
"MIT"
] | 1 | 2022-03-30T14:07:13.000Z | 2022-03-30T14:07:13.000Z | ludwig/__init__.py | phueb/Ludw | de426de1e396e700007869cda27dd5bc9b8f5d2d | [
"MIT"
] | 2 | 2020-06-15T13:06:53.000Z | 2021-02-12T00:33:29.000Z |
__version__ = '4.0.6'
def print_ludwig(s):
print(f'Ludwig-{__version__}: {s}', flush=True) | 14 | 51 | 0.642857 |
f713bf7049d636559b31faa12aae89196f72bea9 | 3,608 | py | Python | docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 39.217391 | 113 | 0.665188 |
f713c43c0962dea49c922bae1e450935719dbbf8 | 3,500 | py | Python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 47.297297 | 125 | 0.693714 |
f713feeff5540cb5abd88be8581806ea4a417b09 | 14,614 | py | Python | oscar/lib/python2.7/site-packages/IPython/core/pylabtools.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/IPython/core/pylabtools.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/IPython/core/pylabtools.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Pylab (matplotlib) support utilities."""
from __future__ import print_function
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from io import BytesIO
from IPython.core.display import _pngxy
from IPython.utils.decorators import ... | 35.643902 | 91 | 0.622212 |
f71401cefe5604f63cb273a6cb7d6715836fee70 | 2,146 | py | Python | fab_deploy/contrib/servers.py | samdolan/django-fab-deploy | 642e5cc319f811d4ee647d65388c85988ac887e2 | [
"Unlicense"
] | 1 | 2019-08-04T20:54:43.000Z | 2019-08-04T20:54:43.000Z | fab_deploy/contrib/servers.py | samdolan/django-fab-deploy | 642e5cc319f811d4ee647d65388c85988ac887e2 | [
"Unlicense"
] | null | null | null | fab_deploy/contrib/servers.py | samdolan/django-fab-deploy | 642e5cc319f811d4ee647d65388c85988ac887e2 | [
"Unlicense"
] | null | null | null | from .constants import ALL_ROLES, DB_ROLE, WEB_ROLE
from .database import setup_db
from .django import update_db, update_python_libs
from .nginx import stop_nginx, start_nginx
from .ssh import setup_ssh_key
from .supervisor import stop_supervisor, start_supervisor, update_supervisor
from .utils import get_ip
from .webs... | 23.582418 | 82 | 0.695247 |
f714129360782fdce2e19567a3deb3c965cf7a55 | 5,386 | py | Python | chapter2/intogen-arrays/src/biomart/ent_exp.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter2/intogen-arrays/src/biomart/ent_exp.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter2/intogen-arrays/src/biomart/ent_exp.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
"""
Import experiments into the database
* Configuration parameters:
- The ones required by intogen.data.entity.EntityManagerFactory
"""
from wok.task import Task
from wok.element import DataElementList
from intogen.data.entity import types
from intogen.data.entity.server import EntityServer
... | 30.602273 | 132 | 0.690123 |
f7142aa0459addf88df1549845b063ae44233e96 | 5,200 | py | Python | azure-devops/azext_devops/vstsCompressed/models/models.py | vijayraavi/azure-devops-cli-extension | 88f1420c5815cb09bea15b050f4c553e0f326dad | [
"MIT"
] | null | null | null | azure-devops/azext_devops/vstsCompressed/models/models.py | vijayraavi/azure-devops-cli-extension | 88f1420c5815cb09bea15b050f4c553e0f326dad | [
"MIT"
] | 37 | 2020-04-27T07:45:19.000Z | 2021-04-05T07:27:15.000Z | azure-devops/azext_devops/vstsCompressed/models/models.py | vijayraavi/azure-devops-cli-extension | 88f1420c5815cb09bea15b050f4c553e0f326dad | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 32.911392 | 104 | 0.59 |
f71434c24f3b7959298b19af49f4893c651e600c | 2,465 | py | Python | credoscript/adaptors/variationadaptor.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | credoscript/adaptors/variationadaptor.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | credoscript/adaptors/variationadaptor.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | from sqlalchemy.sql.expression import and_
from credoscript.mixins.base import paginate
class VariationAdaptor(object):
"""
"""
def __init__(self, dynamic=False, paginate=False, per_page=100):
self.query = Variation.query
self.dynamic = dynamic
self.paginate = paginate
self.... | 31.602564 | 109 | 0.643813 |
f7147793a2e6c2dd68fdd7d5efb9db0e5d179701 | 14,417 | py | Python | mi/dataset/dataset_parser.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/dataset_parser.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/dataset_parser.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
@package mi.dataset.parser A collection of parsers that strip data blocks
out of files and feed them into the system.
@file mi/dataset/parser.py
@author Steve Foley
@brief Base classes for data set agent parsers
"""
__author__ = 'Steve Foley'
__license__ = 'Apache 2.0'
import time
import nt... | 43.820669 | 119 | 0.634667 |
f714d5a168b4a464f6eba8acff23787cdd077327 | 4,848 | py | Python | datasets/W300.py | HapKoM/pyhowfar | b12c248f696dc9bc2b50455b63a2b6ca7a440ba7 | [
"BSD-3-Clause"
] | null | null | null | datasets/W300.py | HapKoM/pyhowfar | b12c248f696dc9bc2b50455b63a2b6ca7a440ba7 | [
"BSD-3-Clause"
] | null | null | null | datasets/W300.py | HapKoM/pyhowfar | b12c248f696dc9bc2b50455b63a2b6ca7a440ba7 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import os
import numpy as np
import random
import math
from skimage import io
import torch
import torch.utils.data as data
import torchfile
# from utils.utils import *
from utils.imutils import *
from utils.transforms import *
class W300(data.Dataset):
def __init__(self, ... | 35.130435 | 111 | 0.514233 |
f714e1119b8f7e34f516de3746a674c249a5f780 | 969 | py | Python | experiments/2014-01-28-extrap-SE.py | jaesikchoi/gpss-research | 2a64958a018f1668f7b8eedf33c4076a63af7868 | [
"MIT"
] | 151 | 2015-01-09T19:25:05.000Z | 2022-01-05T02:05:52.000Z | experiments/2014-01-28-extrap-SE.py | jaesikchoi/gpss-research | 2a64958a018f1668f7b8eedf33c4076a63af7868 | [
"MIT"
] | 1 | 2016-08-04T13:12:51.000Z | 2016-08-04T13:12:51.000Z | experiments/2014-01-28-extrap-SE.py | jaesikchoi/gpss-research | 2a64958a018f1668f7b8eedf33c4076a63af7868 | [
"MIT"
] | 59 | 2015-02-04T19:13:58.000Z | 2021-07-28T23:36:09.000Z | Experiment(description='SE extrapolation experiment',
data_dir='../data/tsdlr_9010/',
max_depth=1,
random_order=False,
k=1,
debug=False,
local_computation=False,
n_rand=9,
sd=2,
jitter_sd=0.1,
max_jobs=1000... | 33.413793 | 83 | 0.495356 |
f71503d83257c56d9a08f215294410fe3f0189c1 | 4,679 | py | Python | venv/Lib/site-packages/pyrogram/parser/markdown.py | D1ne2021/jjhhhjj | a090da30983b3ef276dfe4cef2ded4526f36002a | [
"MIT"
] | 2 | 2021-12-13T07:09:55.000Z | 2022-01-12T12:15:20.000Z | venv/Lib/site-packages/pyrogram/parser/markdown.py | hoangkiet1906/Botcie_ver1 | c133b915edde06dac690a7dc6ca160f6792fc4c8 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pyrogram/parser/markdown.py | hoangkiet1906/Botcie_ver1 | c133b915edde06dac690a7dc6ca160f6792fc4c8 | [
"MIT"
] | null | null | null | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | 30.986755 | 94 | 0.551186 |
f7151ade5974d9fd42771cf7639194622d837538 | 5,015 | py | Python | src/phoebe_shelves_clt/manage.py | anthony-agbay/owl_shelves_clt | da09e1579f8d134a585b50de2f8da38c889c23b9 | [
"MIT"
] | 1 | 2021-05-04T03:06:13.000Z | 2021-05-04T03:06:13.000Z | src/phoebe_shelves_clt/manage.py | anthony-agbay/phoebe-shelves-clt | da09e1579f8d134a585b50de2f8da38c889c23b9 | [
"MIT"
] | null | null | null | src/phoebe_shelves_clt/manage.py | anthony-agbay/phoebe-shelves-clt | da09e1579f8d134a585b50de2f8da38c889c23b9 | [
"MIT"
] | null | null | null | """ Launching point and supporting functions for database management tools.
This module serves as the launching point for the database management tools.
Backend-specific implementations are located within their specific modules and
common functions and methods are included in this file.
"""
import numpy as np
from t... | 36.079137 | 84 | 0.664008 |
f7152949331934bec0c7d5505f3422644b6d6f4e | 114,228 | gyp | Python | grpc.gyp | stungkit/grpc | 063c36cb46733c13d2ce8116b6af482c9bd832d6 | [
"Apache-2.0"
] | null | null | null | grpc.gyp | stungkit/grpc | 063c36cb46733c13d2ce8116b6af482c9bd832d6 | [
"Apache-2.0"
] | null | null | null | grpc.gyp | stungkit/grpc | 063c36cb46733c13d2ce8116b6af482c9bd832d6 | [
"Apache-2.0"
] | null | null | null | # GRPC GYP build file
# This file has been automatically generated from a template file.
# Please look at the templates directory instead.
# This file can be regenerated from the template by running
# tools/buildgen/generate_projects.sh
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0... | 54.73311 | 135 | 0.684683 |
f7153249e54fec334ca1d518b4485c45f6ac4c7a | 693 | py | Python | osiris/vault/__init__.py | skadyan/aws-glue-python-kickstart | 5e3228a0793188d248f801a2b5a522210048ccde | [
"Apache-2.0"
] | 4 | 2020-04-23T18:43:27.000Z | 2022-02-22T03:57:06.000Z | osiris/vault/__init__.py | skadyan/aws-glue-python-kickstart | 5e3228a0793188d248f801a2b5a522210048ccde | [
"Apache-2.0"
] | 1 | 2021-06-02T00:47:12.000Z | 2021-06-02T00:47:12.000Z | osiris/vault/__init__.py | skadyan/aws-glue-python-kickstart | 5e3228a0793188d248f801a2b5a522210048ccde | [
"Apache-2.0"
] | null | null | null | import abc
from abc import abstractmethod
from typing import Union
from osiris.base.generalutils import instantiate
class SecretVault(abc.ABC):
@abstractmethod
def get_secret(self, key: str, attr: str = None, **kwargs) -> Union[dict, str]:
pass
class NoopSecretVault(SecretVault):
def get_secr... | 24.75 | 83 | 0.688312 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.