hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 239 | max_forks_repo_name stringlengths 5 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79845edab896fedf61f8f3fd405767cf982a48b5 | 3,256 | py | Python | example_django_react_templatetags/examplesite/settings.py | Frojd/django-react-filters | cb781d6eaa7b19b49840543ee22f7bd243d97dec | [
"MIT"
] | 2 | 2015-12-15T21:47:20.000Z | 2015-12-16T06:58:27.000Z | example_django_react_templatetags/examplesite/settings.py | Frojd/django-react-filters | cb781d6eaa7b19b49840543ee22f7bd243d97dec | [
"MIT"
] | 4 | 2015-12-15T21:47:42.000Z | 2015-12-16T07:03:32.000Z | example_django_react_templatetags/examplesite/settings.py | Frojd/django-react-filters | cb781d6eaa7b19b49840543ee22f7bd243d97dec | [
"MIT"
] | null | null | null | """
Django settings for examplesite project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | 26.048 | 91 | 0.700246 |
79845f59824fe4f83defda38e611a414d8ea5dc2 | 4,215 | py | Python | starfish/core/spots/DecodeSpots/metric_decoder.py | haoxusci/starfish | d7bd856024c75f2ce41504406f2a663566c3814b | [
"MIT"
] | 164 | 2018-03-21T21:52:56.000Z | 2022-03-23T17:14:39.000Z | starfish/core/spots/DecodeSpots/metric_decoder.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 1,728 | 2018-03-15T23:16:09.000Z | 2022-03-12T00:09:18.000Z | starfish/core/spots/DecodeSpots/metric_decoder.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 66 | 2018-03-25T17:21:15.000Z | 2022-01-16T09:17:11.000Z | from starfish.core.codebook.codebook import Codebook
from starfish.core.intensity_table.decoded_intensity_table import DecodedIntensityTable
from starfish.core.intensity_table.intensity_table_coordinates import \
transfer_physical_coords_to_intensity_table
from starfish.core.spots.DecodeSpots.trace_builders import ... | 42.575758 | 97 | 0.704626 |
798460083a30dd2577a9d2b79578b6716abbd3a6 | 1,096 | py | Python | scripts/method_directed.py | Centimitr/real-edges | a9ce8f1aee16bc5aaed97d5537f031050448e7b7 | [
"MIT"
] | null | null | null | scripts/method_directed.py | Centimitr/real-edges | a9ce8f1aee16bc5aaed97d5537f031050448e7b7 | [
"MIT"
] | null | null | null | scripts/method_directed.py | Centimitr/real-edges | a9ce8f1aee16bc5aaed97d5537f031050448e7b7 | [
"MIT"
] | null | null | null | def in_degree(g, node):
return g.in_degree(node)
def out_degree(g, node):
return g.out_degree(node)
def in_out_degree(g, node):
node_in_degree = in_degree(g, node)
node_out_degree = out_degree(g, node)
result = node_in_degree / (node_out_degree + 1e-6)
return result
def in_degree_a(g, a, b... | 15.884058 | 54 | 0.604015 |
7984613012ccb6fb4f77949f33cfdaca496c5e74 | 1,042 | py | Python | app/core/migrations/0004_recipe.py | geraldini/recipe-app-api | 653863e6c9d2b8132db1abdc80a3298a12e68d93 | [
"MIT"
] | null | null | null | app/core/migrations/0004_recipe.py | geraldini/recipe-app-api | 653863e6c9d2b8132db1abdc80a3298a12e68d93 | [
"MIT"
] | null | null | null | app/core/migrations/0004_recipe.py | geraldini/recipe-app-api | 653863e6c9d2b8132db1abdc80a3298a12e68d93 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2020-12-09 18:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_ingredient'),
]
operations = [
migrations.CreateModel(
... | 35.931034 | 118 | 0.603647 |
798461c2aa01e2c4983481b545b40f0cdbddd9f8 | 8,290 | py | Python | arcade/examples/sound_demo.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 1 | 2021-03-04T14:02:29.000Z | 2021-03-04T14:02:29.000Z | arcade/examples/sound_demo.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 1 | 2019-08-11T18:47:27.000Z | 2019-08-12T03:02:11.000Z | arcade/examples/sound_demo.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | null | null | null | """
Starting Template
Once you have learned how to use classes, you can begin your program with this
template.
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.sound_demo
The top button is to play a music track.
The 3 rows of buttons are arranged such ... | 32.637795 | 96 | 0.633414 |
798461c705c78a8bef49561dae36053890f74f69 | 7,161 | py | Python | restricted_boltzmann_machines.py | indervirbanipal/building-deep-learning-models-with-tensorflow | 6317f5d96bfe4e88f3c357c43a20d86a87a4a35e | [
"MIT"
] | null | null | null | restricted_boltzmann_machines.py | indervirbanipal/building-deep-learning-models-with-tensorflow | 6317f5d96bfe4e88f3c357c43a20d86a87a4a35e | [
"MIT"
] | null | null | null | restricted_boltzmann_machines.py | indervirbanipal/building-deep-learning-models-with-tensorflow | 6317f5d96bfe4e88f3c357c43a20d86a87a4a35e | [
"MIT"
] | null | null | null | import urllib.request
with urllib.request.urlopen("https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DL0120EN-SkillsNetwork/labs/Week4/data/utils.py") as url:
response = url.read()
target = open('utils.py', 'w')
target.write(response.decode('utf-8'))
target.close()
#!pip ... | 32.848624 | 179 | 0.674068 |
798461fe9e642f9b4fe80c824b73e6e2fb16c76e | 12,792 | py | Python | test_pipeline.py | abhithosar/chartocr_cv | 388b95710a02ded0532b021f64c58d8d3e1cc639 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T17:50:59.000Z | 2022-01-03T17:50:59.000Z | test_pipeline.py | abhithosar/chartocr_cv | 388b95710a02ded0532b021f64c58d8d3e1cc639 | [
"BSD-3-Clause"
] | null | null | null | test_pipeline.py | abhithosar/chartocr_cv | 388b95710a02ded0532b021f64c58d8d3e1cc639 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import json
import torch
import pprint
import argparse
import matplotlib
matplotlib.use("Agg")
import cv2
from tqdm import tqdm
from config import system_configs
from nnet.py_factory import NetworkFactory
from db.datasets import datasets
import importlib
from RuleGroup.Cls import GroupC... | 44.416667 | 215 | 0.626485 |
7984646da11bb67093a2634cf168caa1835ee51f | 3,101 | py | Python | keystone/tests/unit/test_config.py | maestro-hybrid-cloud/keystone | a597a86b854215835a4d54885daeb161d7b0efb8 | [
"Apache-2.0"
] | null | null | null | keystone/tests/unit/test_config.py | maestro-hybrid-cloud/keystone | a597a86b854215835a4d54885daeb161d7b0efb8 | [
"Apache-2.0"
] | null | null | null | keystone/tests/unit/test_config.py | maestro-hybrid-cloud/keystone | a597a86b854215835a4d54885daeb161d7b0efb8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 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 applicable law ... | 37.361446 | 78 | 0.692035 |
798464f54c4e95aefe9c3af36ade840b90d47c42 | 1,044 | py | Python | src/whois_example.py | RiteshAgrawal/cyber-recon | bf7845e88138b300f7b8b2d57d564ee8419b27fb | [
"MIT"
] | null | null | null | src/whois_example.py | RiteshAgrawal/cyber-recon | bf7845e88138b300f7b8b2d57d564ee8419b27fb | [
"MIT"
] | null | null | null | src/whois_example.py | RiteshAgrawal/cyber-recon | bf7845e88138b300f7b8b2d57d564ee8419b27fb | [
"MIT"
] | null | null | null | import socket
class SocketWrapper(object):
def __init__(self, server, port=43):
self.server = server
self.port = port
def get_details(self, data):
# Creating a python socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connecting to the server
s.con... | 23.727273 | 104 | 0.606322 |
798465b6edc7cd86a5d38dfad0f9a3d2efd30161 | 545 | py | Python | bin/3.5.4_defer_functions.py | indecipherable/twisted_dust | 5130ac9179f0b9eac9b6994f59d8fbabaffaa0a2 | [
"CC0-1.0"
] | null | null | null | bin/3.5.4_defer_functions.py | indecipherable/twisted_dust | 5130ac9179f0b9eac9b6994f59d8fbabaffaa0a2 | [
"CC0-1.0"
] | null | null | null | bin/3.5.4_defer_functions.py | indecipherable/twisted_dust | 5130ac9179f0b9eac9b6994f59d8fbabaffaa0a2 | [
"CC0-1.0"
] | null | null | null | from twisted.internet.defer import Deferred
def callback1(result):
print("Callback 1 said:", result)
return result
def callback2(result):
print("Callback 2 said:", result)
def callback3(result):
raise Exception("Callback 3")
def errback1(failure):
print("Errback 1 had an error on failure: ", failure)
de... | 20.961538 | 55 | 0.726606 |
7984664d756629fc50a2a0668730c474b8bf5d2f | 6,455 | py | Python | tests/custom_cluster/test_event_processing.py | survivorli/Impala | 495397101e5807c701df71ea288f4815d69c2c8a | [
"Apache-2.0"
] | 1,523 | 2015-01-01T03:42:24.000Z | 2022-02-06T22:24:04.000Z | tests/custom_cluster/test_event_processing.py | survivorli/Impala | 495397101e5807c701df71ea288f4815d69c2c8a | [
"Apache-2.0"
] | 10 | 2015-01-09T06:46:05.000Z | 2022-03-29T21:57:57.000Z | tests/custom_cluster/test_event_processing.py | survivorli/Impala | 495397101e5807c701df71ea288f4815d69c2c8a | [
"Apache-2.0"
] | 647 | 2015-01-02T04:01:40.000Z | 2022-03-30T15:57:35.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 46.107143 | 89 | 0.715879 |
7984669226bb586428e5f8a6fd09172a1eacc11e | 3,603 | py | Python | news_scrape/news_scrape/middlewares.py | RUSH-AI-Dev/covid19-news-api | 55d07beafedb74ffae01f1702f3ac72658b6e794 | [
"Apache-2.0"
] | 10 | 2020-03-12T11:51:46.000Z | 2022-03-24T04:56:05.000Z | news_scrape/news_scrape/middlewares.py | RUSH-AI-Dev/covid19-news-api | 55d07beafedb74ffae01f1702f3ac72658b6e794 | [
"Apache-2.0"
] | 12 | 2020-04-23T07:28:14.000Z | 2022-03-12T00:20:24.000Z | news_scrape/news_scrape/middlewares.py | RUSH-AI-Dev/covid19-news-api | 55d07beafedb74ffae01f1702f3ac72658b6e794 | [
"Apache-2.0"
] | 1 | 2020-04-20T14:48:38.000Z | 2020-04-20T14:48:38.000Z | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class NewsScrapeSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scr... | 34.644231 | 78 | 0.666667 |
7984676e5ed33e0e1ed1242ba4bd5ba945ffd117 | 9,468 | py | Python | interface.py | jaydutt31/DIGITAL-ADDRESSEE-SYSTEM-WITH-UNIQUE-ADDRESS-FOR-EACH-ADDRESSES-LOCATION | 6824d53ac97eb6aa35e103176524f873a7402ca7 | [
"MIT"
] | 1 | 2022-01-17T16:00:19.000Z | 2022-01-17T16:00:19.000Z | interface.py | jaydutt31/DIGITAL-ADDRESSEE-SYSTEM | 6824d53ac97eb6aa35e103176524f873a7402ca7 | [
"MIT"
] | null | null | null | interface.py | jaydutt31/DIGITAL-ADDRESSEE-SYSTEM | 6824d53ac97eb6aa35e103176524f873a7402ca7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'front.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui,... | 45.73913 | 121 | 0.668568 |
798469a6aff5c82b4bee2f32a7ba180e26e7773d | 1,023 | py | Python | refugio/apps/mascota/forms.py | rodrigogomezromero/refugioanimal | 05613f766635f3025d12ce1e89d22c0c4f38ea82 | [
"MIT"
] | null | null | null | refugio/apps/mascota/forms.py | rodrigogomezromero/refugioanimal | 05613f766635f3025d12ce1e89d22c0c4f38ea82 | [
"MIT"
] | null | null | null | refugio/apps/mascota/forms.py | rodrigogomezromero/refugioanimal | 05613f766635f3025d12ce1e89d22c0c4f38ea82 | [
"MIT"
] | null | null | null | from django import forms
from apps.mascota.models import Mascota
class MascotaForm(forms.ModelForm):
class Meta:
model = Mascota
fields = [
'nombre',
'sexo',
'edad_aproximada',
'fecha_rescate',
'persona',
'vacuna',
]
... | 31.96875 | 80 | 0.514174 |
79846ad881e6a3fe1c0bb674671f277bc169e1b0 | 39,597 | py | Python | include/ClientImportSimpleURLs.py | DonaldTsang/hydrus | 1ffd13469c0ea98ea78961ab377aff1c6325379b | [
"WTFPL"
] | null | null | null | include/ClientImportSimpleURLs.py | DonaldTsang/hydrus | 1ffd13469c0ea98ea78961ab377aff1c6325379b | [
"WTFPL"
] | null | null | null | include/ClientImportSimpleURLs.py | DonaldTsang/hydrus | 1ffd13469c0ea98ea78961ab377aff1c6325379b | [
"WTFPL"
] | null | null | null | from . import ClientConstants as CC
from . import ClientDownloading
from . import ClientNetworkingJobs
from . import ClientImporting
from . import ClientImportFileSeeds
from . import ClientImportGallerySeeds
from . import ClientImportOptions
from . import ClientTags
from . import HydrusConstants as HC
from . import Hyd... | 33.728279 | 226 | 0.54643 |
79846b22323c2babb7ba5317de99766633fa3707 | 219 | py | Python | seguimiento/seguimiento/doctype/usuarias_agendadas/test_usuarias_agendadas.py | ErickLopez76/seguimiento | c2b1a2e011c1e89c4dc980b8169ee204dbbd293f | [
"MIT"
] | null | null | null | seguimiento/seguimiento/doctype/usuarias_agendadas/test_usuarias_agendadas.py | ErickLopez76/seguimiento | c2b1a2e011c1e89c4dc980b8169ee204dbbd293f | [
"MIT"
] | null | null | null | seguimiento/seguimiento/doctype/usuarias_agendadas/test_usuarias_agendadas.py | ErickLopez76/seguimiento | c2b1a2e011c1e89c4dc980b8169ee204dbbd293f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, ericklopez and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestUsuarias_Agendadas(unittest.TestCase):
pass
| 19.909091 | 49 | 0.780822 |
79846baa25f394d871eb297d151b930ece75ce69 | 9,037 | py | Python | watertap/examples/flowsheets/case_studies/wastewater_resource_recovery/dye_desalination/dye_desalination.py | kurbansitterley/watertap | 1a8986a779bdcb36f1481f03eed24c6c42d26481 | [
"BSD-3-Clause-LBNL"
] | null | null | null | watertap/examples/flowsheets/case_studies/wastewater_resource_recovery/dye_desalination/dye_desalination.py | kurbansitterley/watertap | 1a8986a779bdcb36f1481f03eed24c6c42d26481 | [
"BSD-3-Clause-LBNL"
] | null | null | null | watertap/examples/flowsheets/case_studies/wastewater_resource_recovery/dye_desalination/dye_desalination.py | kurbansitterley/watertap | 1a8986a779bdcb36f1481f03eed24c6c42d26481 | [
"BSD-3-Clause-LBNL"
] | null | null | null | ###############################################################################
# WaterTAP Copyright (c) 2021, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory, Oak Ridge National
# Laboratory, National Renewable Energy Laboratory, and National Energy
# Technology Laboratory ... | 30.22408 | 95 | 0.655085 |
79846bc96b25a8f1015eb5b9eb2ba89d85187f8f | 3,356 | py | Python | holygrail/classification.py | neilswainston/HolyGrail | c7e9bce5dc54b624e663cf442a556369df4d0bed | [
"MIT"
] | null | null | null | holygrail/classification.py | neilswainston/HolyGrail | c7e9bce5dc54b624e663cf442a556369df4d0bed | [
"MIT"
] | null | null | null | holygrail/classification.py | neilswainston/HolyGrail | c7e9bce5dc54b624e663cf442a556369df4d0bed | [
"MIT"
] | null | null | null | '''
HolyGrail (c) University of Manchester 2015
HolyGrail is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
# pylint: disable=too-few-public-methods
import sys
from synbiochem.utils import seq_utils
import holygrail.data
impor... | 34.244898 | 77 | 0.616508 |
79846c944994c522004e5fe829a0fda8084d9abb | 5,688 | py | Python | fastreid/data/datasets/bases.py | ckmessi/fast-reid | aaea77eb98e4c8d546cd96d18be78e4d75fe4c8c | [
"Apache-2.0"
] | 4 | 2021-04-01T07:49:05.000Z | 2021-08-16T07:07:20.000Z | fastreid/data/datasets/bases.py | ckmessi/fast-reid | aaea77eb98e4c8d546cd96d18be78e4d75fe4c8c | [
"Apache-2.0"
] | 4 | 2021-05-30T12:55:17.000Z | 2021-12-07T09:46:44.000Z | fastreid/data/datasets/bases.py | ckmessi/fast-reid | aaea77eb98e4c8d546cd96d18be78e4d75fe4c8c | [
"Apache-2.0"
] | 2 | 2021-03-30T14:06:36.000Z | 2021-05-31T01:16:56.000Z | # encoding: utf-8
"""
@author: sherlock
@contact: sherlockliao01@gmail.com
"""
import copy
import logging
import os
from tabulate import tabulate
from termcolor import colored
logger = logging.getLogger(__name__)
class Dataset(object):
"""An abstract class representing a Dataset.
This is the base class for... | 33.263158 | 102 | 0.594058 |
79846ccb8f741fe7d441e6852a890e12427f844a | 4,895 | py | Python | depend/zcash/qa/rpc-tests/wallet_sendmany_any_taddr.py | ZcashFoundation/zcashconsensus | c9fbc441efd78593ba6a9828be45baf2d6469757 | [
"Apache-2.0"
] | null | null | null | depend/zcash/qa/rpc-tests/wallet_sendmany_any_taddr.py | ZcashFoundation/zcashconsensus | c9fbc441efd78593ba6a9828be45baf2d6469757 | [
"Apache-2.0"
] | 1 | 2020-07-17T14:09:32.000Z | 2020-07-17T14:09:32.000Z | depend/zcash/qa/rpc-tests/wallet_sendmany_any_taddr.py | ZcashFoundation/zcashconsensus | c9fbc441efd78593ba6a9828be45baf2d6469757 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2020 The Zcash developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
... | 37.653846 | 194 | 0.636159 |
79846d132f4400bf6a6871cd8730df63902ef240 | 999 | py | Python | sdk2-src/src/azure-ml/azure/ml/_schema/job/input_port.py | DamovisaOrg/azureml-v2-preview | 9c5ed1003c19f4d5b19dbea4a7c507e101149139 | [
"MIT"
] | 1 | 2021-09-27T07:54:40.000Z | 2021-09-27T07:54:40.000Z | sdk2-src/src/azure-ml/azure/ml/_schema/job/input_port.py | DamovisaOrg/azureml-v2-preview | 9c5ed1003c19f4d5b19dbea4a7c507e101149139 | [
"MIT"
] | null | null | null | sdk2-src/src/azure-ml/azure/ml/_schema/job/input_port.py | DamovisaOrg/azureml-v2-preview | 9c5ed1003c19f4d5b19dbea4a7c507e101149139 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from marshmallow import fields, post_load, validate
from typing import Optional
from ..schema import PatchedSchemaMeta
class Inp... | 33.3 | 110 | 0.567568 |
79846e1e6c26a653a12e9e77060fb2e6d9e612d4 | 25,626 | py | Python | torch/ao/quantization/quantize.py | vuanvin/pytorch | 9267fd8d7395074001ad7cf2a8f28082dbff6b0b | [
"Intel"
] | 5 | 2018-04-24T13:41:12.000Z | 2019-07-09T07:32:09.000Z | torch/ao/quantization/quantize.py | vuanvin/pytorch | 9267fd8d7395074001ad7cf2a8f28082dbff6b0b | [
"Intel"
] | 14 | 2021-10-14T06:58:50.000Z | 2021-12-17T11:51:07.000Z | torch/ao/quantization/quantize.py | vuanvin/pytorch | 9267fd8d7395074001ad7cf2a8f28082dbff6b0b | [
"Intel"
] | 7 | 2020-08-31T22:49:59.000Z | 2020-09-15T14:29:07.000Z | import copy
import itertools
import warnings
import torch
import torch.nn as nn
import torch.nn.quantized as nnq
from torch.nn.intrinsic import _FusedModule
from torch.ao.quantization.quantization_mappings import (
get_default_dynamic_quant_module_mappings,
get_default_static_quant_module_mappings,
get_de... | 42.217463 | 131 | 0.695192 |
79846f8ffc2fbccc6ec06aee31c3362b17579315 | 1,721 | py | Python | tests/functional_tests/data/atlas/brain_structures/run.py | coolteemf/coolteemf-deformetrica | f965d6ecc0d04f243e487468a9dafe9fe864eed2 | [
"MIT"
] | 2 | 2022-03-04T11:19:30.000Z | 2022-03-08T04:47:22.000Z | tests/functional_tests/data/atlas/brain_structures/run.py | lepennec/Deformetrica_multiscale | dbcb69962dd02f14dde5d63a9abc1de69112f273 | [
"MIT"
] | null | null | null | tests/functional_tests/data/atlas/brain_structures/run.py | lepennec/Deformetrica_multiscale | dbcb69962dd02f14dde5d63a9abc1de69112f273 | [
"MIT"
] | 1 | 2022-03-07T09:52:52.000Z | 2022-03-07T09:52:52.000Z | import os
import torch
import unittest
from tests.functional_tests.functional_test import FunctionalTest
class AtlasBrainStructures(FunctionalTest):
"""
Methods with names starting by "test" will be run.
"""
def test_configuration_1(self):
self.run_configuration(os.path.abspath(__file__), 'o... | 45.289474 | 96 | 0.666473 |
79847245d49a3f4fa0d1f886ad5db2721077a23c | 4,029 | py | Python | django_project/settings.py | ijethwani/bestwordblogger | d6d761556d3dd38ec4d57ef3c9184ff8ecc892ad | [
"bzip2-1.0.6"
] | 2 | 2019-11-24T07:22:02.000Z | 2019-12-28T16:35:48.000Z | django_project/settings.py | ijethwani/bestwordblogger | d6d761556d3dd38ec4d57ef3c9184ff8ecc892ad | [
"bzip2-1.0.6"
] | 9 | 2020-06-06T00:47:47.000Z | 2022-03-12T00:06:27.000Z | django_project/settings.py | ijethwani/bestwordblogger | d6d761556d3dd38ec4d57ef3c9184ff8ecc892ad | [
"bzip2-1.0.6"
] | 1 | 2019-11-24T07:22:06.000Z | 2019-11-24T07:22:06.000Z | """
Django settings for django_project project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | 25.5 | 91 | 0.712336 |
79847356cc7d3b102657fbca27c76690face5214 | 9,326 | py | Python | research/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py | 873040/Abhishek | 2ddd716e66bc5cc6e6f0787508dd07da0e02e75a | [
"Apache-2.0"
] | 153 | 2020-10-25T13:58:04.000Z | 2022-03-07T06:01:54.000Z | research/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py | 873040/Abhishek | 2ddd716e66bc5cc6e6f0787508dd07da0e02e75a | [
"Apache-2.0"
] | 11 | 2020-07-13T08:29:00.000Z | 2022-03-24T07:21:09.000Z | research/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py | 873040/Abhishek | 2ddd716e66bc5cc6e6f0787508dd07da0e02e75a | [
"Apache-2.0"
] | 23 | 2020-10-25T14:44:47.000Z | 2021-03-31T02:12:13.000Z | # Copyright 2017 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... | 43.376744 | 80 | 0.674887 |
7984735f6eae9d4e109cb17c03bff00c1e9ac0af | 1,594 | py | Python | model-optimizer/extensions/front/caffe/power_file_ext_test.py | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 1 | 2021-04-06T03:32:12.000Z | 2021-04-06T03:32:12.000Z | model-optimizer/extensions/front/caffe/power_file_ext_test.py | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 28 | 2021-09-24T09:29:02.000Z | 2022-03-28T13:20:46.000Z | model-optimizer/extensions/front/caffe/power_file_ext_test.py | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 1 | 2020-08-30T11:48:03.000Z | 2020-08-30T11:48:03.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import unittest
from unittest.mock import patch
from extensions.front.caffe.power_file_ext import PowerFileFrontExtractor
from extensions.ops.power_file import PowerFileOp
from mo.front.common.partial_infer.elemental import copy_shape_i... | 30.653846 | 80 | 0.698243 |
798473806b3923944d37a298a4f389ff88ed8a6f | 1,762 | py | Python | twilio/rest/insights/__init__.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 1 | 2022-03-03T05:24:20.000Z | 2022-03-03T05:24:20.000Z | twilio/rest/insights/__init__.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 1 | 2022-01-28T14:45:53.000Z | 2022-01-28T14:45:53.000Z | env/lib/python3.9/site-packages/twilio/rest/insights/__init__.py | giannicrivello/AudioShack_BE | b50ba91b6904ac069fc37c98a691729932297b6a | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base.domain import Domain
from twilio.rest.insights.v1 import V1
class Insights(Domain):
def __init__(self, twilio):
"""
Initialize the Insights Domain
:re... | 21.487805 | 72 | 0.555619 |
7984739b47635d44f5d2e6448e34423bdfc9dd8b | 21,517 | py | Python | panda/python/__init__.py | andrrocity/jvePilot | 6a01cdab3cd5411057f992ff592a2ecb077a69a0 | [
"MIT"
] | null | null | null | panda/python/__init__.py | andrrocity/jvePilot | 6a01cdab3cd5411057f992ff592a2ecb077a69a0 | [
"MIT"
] | null | null | null | panda/python/__init__.py | andrrocity/jvePilot | 6a01cdab3cd5411057f992ff592a2ecb077a69a0 | [
"MIT"
] | null | null | null | # python library to interface with panda
import datetime
import struct
import hashlib
import socket
import usb1
import os
import time
import traceback
import subprocess
import sys
from .dfu import PandaDFU # pylint: disable=import-error
from .flash_release import flash_release # noqa pylint: disable=import-error
from... | 31.50366 | 112 | 0.624669 |
798475dd8447e935341490b437892e70bca19595 | 1,291 | py | Python | tests/data/test_data_local.py | swsachith/cm | d99837917f0dafe60c25829cf78ae77bbe02bd85 | [
"Apache-2.0"
] | null | null | null | tests/data/test_data_local.py | swsachith/cm | d99837917f0dafe60c25829cf78ae77bbe02bd85 | [
"Apache-2.0"
] | null | null | null | tests/data/test_data_local.py | swsachith/cm | d99837917f0dafe60c25829cf78ae77bbe02bd85 | [
"Apache-2.0"
] | null | null | null | from os.path import isfile
from cm4.data.data import Data
class TestDataLocal:
"""
Functional tests for the local data storage service
"""
def setup(self):
self.test_file_name = "hello.txt"
self._data = Data()
self._data.config("cm4/configuration/cloudmesh.yaml")
def test... | 33.102564 | 80 | 0.670023 |
798476230f3850bbde3b96e385fbf2a62c4c2f6d | 3,333 | py | Python | twint/user.py | B3QL/twint | 521eaf94b44443fe76973234c66069a74b9d79c7 | [
"MIT"
] | 1 | 2019-06-11T05:47:00.000Z | 2019-06-11T05:47:00.000Z | twint/user.py | B3QL/twint | 521eaf94b44443fe76973234c66069a74b9d79c7 | [
"MIT"
] | null | null | null | twint/user.py | B3QL/twint | 521eaf94b44443fe76973234c66069a74b9d79c7 | [
"MIT"
] | 1 | 2019-06-11T05:46:34.000Z | 2019-06-11T05:46:34.000Z | class user:
type = "user"
def __init__(self):
pass
def inf(ur, _type):
try:
group = ur.find("div", "user-actions btn-group not-following ")
if group == None :
group = ur.find("div", "user-actions btn-group not-following protected")
except Exception as e:
pri... | 26.039063 | 97 | 0.532253 |
7984768331d423e87f06944822f048c62eeef148 | 988 | py | Python | wildlifecompliance/migrations/0039_auto_20180424_1459.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0039_auto_20180424_1459.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0039_auto_20180424_1459.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-04-24 06:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0038_auto_20180404_1016'),
]
operations = [
migration... | 26.702703 | 58 | 0.435223 |
798476e0f09bcb68a8291b58ea5b2e044fdce42c | 957 | py | Python | 328.py | Huluwa-kong/leetcode | 94a1b35948f585dd2e9611be155a17e7814af846 | [
"Apache-2.0"
] | null | null | null | 328.py | Huluwa-kong/leetcode | 94a1b35948f585dd2e9611be155a17e7814af846 | [
"Apache-2.0"
] | null | null | null | 328.py | Huluwa-kong/leetcode | 94a1b35948f585dd2e9611be155a17e7814af846 | [
"Apache-2.0"
] | null | null | null | from linkedlist_helper import *
"""
思路:设置两个带表头的虚拟链表分别存放奇数、偶数位节点,遍历原始链表依次放入奇偶链表,
将奇链表尾接上偶链表
"""
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
p_odd = ListNode()
p_even = ListNode()
# remember
h_even = p_even
h_odd = p_odd
index = 1
p =... | 18.764706 | 54 | 0.452456 |
798477b4ca87c6f63d2c0978cc5c8a155e221284 | 915 | py | Python | uniprot_dat.py | fandemonium/code | 4498f97658c146de8e693776e05bedeaaf2d5a1d | [
"MIT"
] | 2 | 2017-12-25T09:14:52.000Z | 2021-05-18T06:39:26.000Z | uniprot_dat.py | fandemonium/code | 4498f97658c146de8e693776e05bedeaaf2d5a1d | [
"MIT"
] | 1 | 2018-09-29T22:34:30.000Z | 2018-09-29T22:34:30.000Z | uniprot_dat.py | fandemonium/code | 4498f97658c146de8e693776e05bedeaaf2d5a1d | [
"MIT"
] | 1 | 2015-01-30T20:29:25.000Z | 2015-01-30T20:29:25.000Z | ##input: /Users/metagenomics/Documents/Databases/uniprot_tremble.dat or uniprot_sprot.dat
import sys
import os
from Bio import SeqIO
#import gzip
#This script uses biopython to get taxonomy from uniprot .dat file
'''
record.annotations record.letter_annotations
record.dbxrefs record.lower
record.d... | 27.727273 | 89 | 0.72459 |
798478bc246f72575ec6b70a42867f935e5934e8 | 537 | py | Python | src/server/master/web_ui/application/web_ui/docs/forms.py | dpaola2/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | 15 | 2015-02-14T02:39:04.000Z | 2021-12-13T14:17:15.000Z | src/server/master/web_ui/application/web_ui/docs/forms.py | ojengwa/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | null | null | null | src/server/master/web_ui/application/web_ui/docs/forms.py | ojengwa/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | 11 | 2015-08-07T11:47:02.000Z | 2021-04-29T08:08:24.000Z | from django import forms as forms
from models import Page
class PageForm(forms.Form):
name = forms.CharField(max_length=255)
content = forms.CharField(widget=forms.Textarea(attrs={
'cols':80,
'rows':30
}))
def clean_name(self):
import re
from templatetags.wiki imp... | 22.375 | 62 | 0.629423 |
798478d97847cbe622ea8e2228c1cea691d0db9c | 15,160 | py | Python | hive/db/db_state.py | Starsakary/hivemind | e17f9edcc8793ceb5131a9f0bc462b7286d1c726 | [
"MIT"
] | 1 | 2020-12-31T21:40:59.000Z | 2020-12-31T21:40:59.000Z | hive/db/db_state.py | Starsakary/hivemind | e17f9edcc8793ceb5131a9f0bc462b7286d1c726 | [
"MIT"
] | null | null | null | hive/db/db_state.py | Starsakary/hivemind | e17f9edcc8793ceb5131a9f0bc462b7286d1c726 | [
"MIT"
] | null | null | null | """Hive db state manager. Check if schema loaded, init synced, etc."""
#pylint: disable=too-many-lines
import time
import logging
from hive.db.schema import (setup, reset_autovac, build_metadata,
build_metadata_community, teardown, DB_VERSION,
build_metadata_bl... | 44.327485 | 185 | 0.616491 |
798479105031b28e0bfec96cd57b88273351c2b2 | 1,424 | py | Python | pipedrive/persons.py | arouanet/pipedrive-python | 420bc90a569074f2260f8067a0c4880fc7922d37 | [
"MIT"
] | null | null | null | pipedrive/persons.py | arouanet/pipedrive-python | 420bc90a569074f2260f8067a0c4880fc7922d37 | [
"MIT"
] | null | null | null | pipedrive/persons.py | arouanet/pipedrive-python | 420bc90a569074f2260f8067a0c4880fc7922d37 | [
"MIT"
] | null | null | null | class Persons(object):
def __init__(self, client):
self._client = client
def get_person(self, person_id, **kwargs):
url = 'persons/{}'.format(person_id)
return self._client._get(self._client.BASE_URL + url, **kwargs)
def get_all_persons(self, params=None, **kwargs):
url = '... | 39.555556 | 86 | 0.65309 |
79847afa9ec81915bac9ac147dacf31ba6567dc9 | 14,711 | py | Python | bittensor/_neuron/text/advanced_server/run.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | 2 | 2020-03-11T19:40:05.000Z | 2020-06-14T19:35:34.000Z | bittensor/_neuron/text/advanced_server/run.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | null | null | null | bittensor/_neuron/text/advanced_server/run.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | null | null | null | #!/bin/python3
# The MIT License (MIT)
# Copyright © 2021 Yuma Rao
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | 38.611549 | 158 | 0.570322 |
79847c04f9d09e37936555fc1a894bb86380cf4c | 2,957 | py | Python | chromosome/factory.py | symeonp/choronzon | a9eed1ea2cab6bf2c3e020adf4951f6d01eecf72 | [
"BSD-3-Clause"
] | null | null | null | chromosome/factory.py | symeonp/choronzon | a9eed1ea2cab6bf2c3e020adf4951f6d01eecf72 | [
"BSD-3-Clause"
] | null | null | null | chromosome/factory.py | symeonp/choronzon | a9eed1ea2cab6bf2c3e020adf4951f6d01eecf72 | [
"BSD-3-Clause"
] | 1 | 2020-02-29T13:55:25.000Z | 2020-02-29T13:55:25.000Z | import os
import importlib
import string
import chromosome
import configuration
import campaign
class Factory(object):
'''
Factory class generates chromosomes using user-defined
parsers specified in the configuration.
'''
directory = None
configuration = None
serializer = None
... | 30.802083 | 71 | 0.55766 |
79847e367e0d3646bbef23fef6d26be0bbcebcf8 | 300 | py | Python | Scrapping Instagram.py | nikkkhil067/Python-Codes | 789b5324e13a539e958e6f6c49dc54b5a8ffecd1 | [
"MIT"
] | 1 | 2022-02-26T10:51:20.000Z | 2022-02-26T10:51:20.000Z | Scrapping Instagram.py | nikkkhil067/Python-Codes | 789b5324e13a539e958e6f6c49dc54b5a8ffecd1 | [
"MIT"
] | null | null | null | Scrapping Instagram.py | nikkkhil067/Python-Codes | 789b5324e13a539e958e6f6c49dc54b5a8ffecd1 | [
"MIT"
] | 1 | 2021-03-17T17:53:58.000Z | 2021-03-17T17:53:58.000Z | import requests
from bs4 import BeautifulSoup
username = input('Enter Instagram Username :')
res = requests.get('https://instagram.com/'+username)
soupData = BeautifulSoup(res.text, 'html.parser')
userInfo = soupData.find('meta', property = 'og:description')
print(userInfo.attrs['content'][:44])
| 27.272727 | 61 | 0.746667 |
79847e5fcab0ffe52f4f6fe24dd49b8435e2c5fd | 27,654 | py | Python | cudamat/test_cudamat.py | maotong/deepnet | a896006391f85695b2005cb775acf6b86f9dbb7b | [
"BSD-3-Clause"
] | null | null | null | cudamat/test_cudamat.py | maotong/deepnet | a896006391f85695b2005cb775acf6b86f9dbb7b | [
"BSD-3-Clause"
] | null | null | null | cudamat/test_cudamat.py | maotong/deepnet | a896006391f85695b2005cb775acf6b86f9dbb7b | [
"BSD-3-Clause"
] | null | null | null | import pdb
import numpy as np
import nose
import cudamat as cm
import cudamat_conv as cm_cv
def setup():
cm.cublas_init()
def teardown():
cm.cublas_shutdown()
def test_reshape():
m = 256
n = 1
cm1 = np.array(np.random.rand(n, m)*10, dtype=np.float32, order='F')
cm2 = np.array(np.random.rand(m... | 29.767492 | 127 | 0.617017 |
79847f3739088555d4cb932e211deeacabf50c5c | 40,296 | bzl | Python | apple/internal/rule_factory.bzl | BalestraPatrick/rules_apple | ae2246ebda88e6573a8290ab1f0f4f00fe4c07f2 | [
"Apache-2.0"
] | null | null | null | apple/internal/rule_factory.bzl | BalestraPatrick/rules_apple | ae2246ebda88e6573a8290ab1f0f4f00fe4c07f2 | [
"Apache-2.0"
] | null | null | null | apple/internal/rule_factory.bzl | BalestraPatrick/rules_apple | ae2246ebda88e6573a8290ab1f0f4f00fe4c07f2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Bazel 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 applicable la... | 39.661417 | 130 | 0.646317 |
79847f4c2082b6f8f18b7e0344a65d55ab023585 | 4,904 | py | Python | test/util_tests/time_utils_test_suite.py | FreNeS1/PyEngy-2d | 771112530ae039e8921369f700ba3b66c3df50c1 | [
"MIT"
] | 1 | 2020-07-09T12:42:30.000Z | 2020-07-09T12:42:30.000Z | test/util_tests/time_utils_test_suite.py | FreNeS1/PyEngy-2d | 771112530ae039e8921369f700ba3b66c3df50c1 | [
"MIT"
] | null | null | null | test/util_tests/time_utils_test_suite.py | FreNeS1/PyEngy-2d | 771112530ae039e8921369f700ba3b66c3df50c1 | [
"MIT"
] | null | null | null | """Contains the test suite for the time utils."""
import unittest
from unittest.mock import Mock
import pyengy
from pyengy.error import PyEngyError
from pyengy.util.time_utils import get_current_time, get_timestamp, reset_time
MOCK_START_TIME = {"test_app": 1593605674125.1613, "default": 1593605662846.7812}
MOCK_TIM... | 38.614173 | 101 | 0.688214 |
79847f6596ffde9eb33d0b2085b3cbaeb4dc15ed | 5,539 | py | Python | intersight/models/iam_user_ref.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/iam_user_ref.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/iam_user_ref.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1461
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class IamUserRef(object... | 30.434066 | 576 | 0.59397 |
79847f99b109a82c82b372de1f58d473f2ed39a1 | 2,611 | py | Python | psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | ####!/usr/bin/env python
#----------------------------
"""
:py:class:`DCConfigParameters` - class supporting configuration parameters for application
==========================================================================================
See:
* :py:class:`DCStore`
* :py:class:`DCType`
* :py:class:`DCRan... | 32.6375 | 124 | 0.579088 |
79847fd32ae0470804aca875357edfdd1703798b | 3,123 | py | Python | main.py | MiyoKouseki/dttpy | e6fbfe0d33d52255e6657646bb5578d3a80dee36 | [
"MIT"
] | 1 | 2021-11-10T03:23:46.000Z | 2021-11-10T03:23:46.000Z | main.py | MiyoKouseki/dttpy | e6fbfe0d33d52255e6657646bb5578d3a80dee36 | [
"MIT"
] | 2 | 2018-10-03T12:16:32.000Z | 2018-10-03T12:19:39.000Z | main.py | MiyoKouseki/dttpy | e6fbfe0d33d52255e6657646bb5578d3a80dee36 | [
"MIT"
] | 3 | 2019-09-05T18:43:51.000Z | 2020-07-05T15:05:15.000Z | import re
import argparse
import itertools
from base import TransferFunctionSpectrum, CrossSpectrum, CoherenceSpectrum
from plot import BodePlot
exct_fmt = 'K1:VIS-{SUS}_{STAGE}_{EXCT}_{DOF}_IN2'
read_fmt = 'K1:VIS-{SUS}_{STAGE}_{READ}_{DOF}_IN1_DQ'
prefix = '../data/PLANT/{SUS}/{YYYY}/{MM}/'
fname_fmt = 'PLANT_{SUS}_... | 44.614286 | 85 | 0.597502 |
798480c28fe609e4fed4b2bc248f126e8a509bce | 2,448 | py | Python | src/glados/es/ws2es/mappings_skeletons/es_chembl_compound_record_mapping.py | chembl/chembl_ws_2_es | 4b597f7412951cfc7932909c92f512c9cd4f4cb5 | [
"Apache-2.0"
] | 1 | 2020-11-03T21:14:20.000Z | 2020-11-03T21:14:20.000Z | src/glados/es/ws2es/mappings_skeletons/es_chembl_compound_record_mapping.py | chembl/chembl_ws_2_es | 4b597f7412951cfc7932909c92f512c9cd4f4cb5 | [
"Apache-2.0"
] | 1 | 2021-03-25T23:57:00.000Z | 2021-03-25T23:57:00.000Z | src/glados/es/ws2es/mappings_skeletons/es_chembl_compound_record_mapping.py | chembl/chembl_ws_2_es | 4b597f7412951cfc7932909c92f512c9cd4f4cb5 | [
"Apache-2.0"
] | 1 | 2020-11-03T21:15:23.000Z | 2020-11-03T21:15:23.000Z | # Elastic search mapping definition for the Molecule entity
from glados.es.ws2es.es_util import DefaultMappings
# Shards size - can be overridden from the default calculated value here
# shards = 3,
replicas = 1
analysis = DefaultMappings.COMMON_ANALYSIS
mappings = \
{
'properties':
{
... | 54.4 | 120 | 0.566585 |
79848101d1e8861a91d941c15f62f88526a5b55f | 3,657 | py | Python | experiments/experiment-simulations/makeGD1stream.py | JoeriHermans/constraining-dark-matter-with-stellar-streams-and-ml | 389e6ccf0b876b94477e2ed15442775e75b9c66b | [
"BSD-3-Clause"
] | 12 | 2020-11-30T12:36:54.000Z | 2022-03-15T15:54:13.000Z | workflows/simulation_times/streams/makeGD1stream.py | montefiore-ai/averting-a-crisis-in-simulation-based-inference | 9dca4a508a19c514422a9b177d4fcf1dad6ea693 | [
"BSD-3-Clause"
] | 6 | 2020-12-01T09:00:23.000Z | 2022-03-12T00:51:51.000Z | workflows/simulation_times/streams/makeGD1stream.py | montefiore-ai/averting-a-crisis-in-simulation-based-inference | 9dca4a508a19c514422a9b177d4fcf1dad6ea693 | [
"BSD-3-Clause"
] | 1 | 2021-03-31T15:26:29.000Z | 2021-03-31T15:26:29.000Z | import os, os.path
import pickle
import numpy
from optparse import OptionParser
import gd1_util
from galpy.util import save_pickles
from galpy.util import bovy_conversion
from galpy.potential import MWPotential2014
import astropy.units as u
#code to generate streams
def get_options():
usage = "usage: %prog [optio... | 31.525862 | 163 | 0.666393 |
7984820f51db86522cec3ec926b78cd3e38d2f06 | 6,807 | py | Python | pymc3/step_methods/hmc/base_hmc.py | canyon289/pymc | 3a9c147a0680e569b24b3959fded55e2876dae9a | [
"Apache-2.0"
] | 1 | 2018-06-11T03:13:00.000Z | 2018-06-11T03:13:00.000Z | pymc3/step_methods/hmc/base_hmc.py | MaximeJumelle/pymc3 | 4e695f635b2ead24e2e647651eadd2505ab1fa63 | [
"Apache-2.0"
] | 2 | 2017-03-02T05:56:13.000Z | 2019-12-06T19:15:42.000Z | pymc3/step_methods/hmc/base_hmc.py | MaximeJumelle/pymc3 | 4e695f635b2ead24e2e647651eadd2505ab1fa63 | [
"Apache-2.0"
] | null | null | null | from collections import namedtuple
import numpy as np
from pymc3.model import modelcontext, Point
from pymc3.step_methods import arraystep
from pymc3.step_methods.hmc import integration
from pymc3.theanof import inputvars, floatX
from pymc3.tuning import guess_scaling
from .quadpotential import quad_potential, QuadPo... | 35.638743 | 78 | 0.61613 |
79848226a3542015210d70bdf7c28a0462198b7e | 22,230 | py | Python | keras/engine/base_preprocessing_layer.py | vinhill/keras | 71d6d6eb0412f4c66ff40cf2393bb157cec281e0 | [
"Apache-2.0"
] | null | null | null | keras/engine/base_preprocessing_layer.py | vinhill/keras | 71d6d6eb0412f4c66ff40cf2393bb157cec281e0 | [
"Apache-2.0"
] | null | null | null | keras/engine/base_preprocessing_layer.py | vinhill/keras | 71d6d6eb0412f4c66ff40cf2393bb157cec281e0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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.550676 | 106 | 0.700585 |
79848380c04aae6a1a8bc313f2dda0ecb9a74e6a | 29,414 | py | Python | ec2/spark_ec2.py | hirakendu/incubator-spark | 58d4f6c8a5d9739dc2a3f26f116528457336f0d3 | [
"BSD-3-Clause"
] | 1 | 2016-10-28T16:52:11.000Z | 2016-10-28T16:52:11.000Z | ec2/spark_ec2.py | sueann/graphx | 143c01dbd65af73d5630be8ea818850e9b59a9d4 | [
"BSD-3-Clause"
] | null | null | null | ec2/spark_ec2.py | sueann/graphx | 143c01dbd65af73d5630be8ea818850e9b59a9d4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache Lice... | 37.953548 | 182 | 0.648909 |
7984840067b004a1f180aa2f75f0c2376e2dbc2d | 22,198 | py | Python | pygame_menu/scrollarea.py | werdeil/pygame-menu | 093efff9627de07c90468cfa8ac490d6d1b93903 | [
"MIT"
] | null | null | null | pygame_menu/scrollarea.py | werdeil/pygame-menu | 093efff9627de07c90468cfa8ac490d6d1b93903 | [
"MIT"
] | null | null | null | pygame_menu/scrollarea.py | werdeil/pygame-menu | 093efff9627de07c90468cfa8ac490d6d1b93903 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
pygame-menu
https://github.com/ppizarror/pygame-menu
SCROLLAREA
ScrollArea class to manage scrolling in menu.
License:
-------------------------------------------------------------------------------
The MIT License (MIT)
Copyright 2017-2020 Pablo Pizarro R. @ppizarror
Permission is hereby granted,... | 41.031423 | 106 | 0.608703 |
7984843de9e63f6af16af9111d44f42349695e86 | 12,716 | py | Python | conans/test/unittests/client/graph/version_ranges_graph_test.py | matthiasng/conan | 634eadc319da928084633a344d42785edccb8d6c | [
"MIT"
] | 2 | 2019-01-09T10:01:29.000Z | 2019-01-09T10:01:31.000Z | conans/test/unittests/client/graph/version_ranges_graph_test.py | matthiasng/conan | 634eadc319da928084633a344d42785edccb8d6c | [
"MIT"
] | 4 | 2018-09-05T13:08:31.000Z | 2020-03-05T09:17:20.000Z | conans/test/unittests/client/graph/version_ranges_graph_test.py | matthiasng/conan | 634eadc319da928084633a344d42785edccb8d6c | [
"MIT"
] | 2 | 2018-09-05T11:58:44.000Z | 2018-09-05T12:14:11.000Z | from collections import OrderedDict
from collections import namedtuple
import six
from parameterized import parameterized
from conans.errors import ConanException
from conans.model.ref import ConanFileReference
from conans.model.requires import Requirements
from conans.test.unittests.model.transitive_reqs_test import... | 43.697595 | 105 | 0.578327 |
79848440bb3ff307a569e2ef85a57169073ac855 | 755 | py | Python | main.py | dcallao/apache-beam-gcp-dataflow | d5e83f251aa0ed568cedbf6e44410339a164c6ae | [
"Apache-2.0"
] | null | null | null | main.py | dcallao/apache-beam-gcp-dataflow | d5e83f251aa0ed568cedbf6e44410339a164c6ae | [
"Apache-2.0"
] | null | null | null | main.py | dcallao/apache-beam-gcp-dataflow | d5e83f251aa0ed568cedbf6e44410339a164c6ae | [
"Apache-2.0"
] | null | null | null | import argparse
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
from my_package.transform import filter_cart_requests
from my_package.transform import load_apache_logs
def run():
parser = argparse.ArgumentParser()
parser.add_argument("--input", dest="input", require... | 32.826087 | 69 | 0.733775 |
7984844253f93c25abfa43d77ae09096b6355d6f | 318 | py | Python | tasks.py | i2y/ice | db9abf04fbd0b256f13507900a4e5129e65b71a0 | [
"MIT"
] | null | null | null | tasks.py | i2y/ice | db9abf04fbd0b256f13507900a4e5129e65b71a0 | [
"MIT"
] | null | null | null | tasks.py | i2y/ice | db9abf04fbd0b256f13507900a4e5129e65b71a0 | [
"MIT"
] | null | null | null | """Using `invoke` to start tests and and other commandline tools.
"""
from invoke import run, task
@task
def test(ctx):
"""Run standard tests.
Usage (commandline): inv test
"""
# run('py.test --assert=reinterp', pty=True)
run('py.test', pty=True)
# run('py.test --assert=plain', pty=True)
| 18.705882 | 65 | 0.625786 |
7984854502ca2ab92952c0d4750fa9a36591ffc0 | 22,497 | py | Python | python/ccxt/async_support/cobinhood.py | KaceyBolman/ccxt | d34a0651b209ac77453f05c4ce31883f0cd2d6b8 | [
"MIT"
] | null | null | null | python/ccxt/async_support/cobinhood.py | KaceyBolman/ccxt | d34a0651b209ac77453f05c4ce31883f0cd2d6b8 | [
"MIT"
] | null | null | null | python/ccxt/async_support/cobinhood.py | KaceyBolman/ccxt | d34a0651b209ac77453f05c4ce31883f0cd2d6b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import P... | 38.654639 | 126 | 0.496288 |
7984854fae45e7cb46122f8ea13efe3ad652c666 | 9,157 | py | Python | examples/mountain_car_stds.py | jimkon/rl | f917624607748c186b794fe783a462064be5dcfa | [
"MIT"
] | null | null | null | examples/mountain_car_stds.py | jimkon/rl | f917624607748c186b794fe783a462064be5dcfa | [
"MIT"
] | null | null | null | examples/mountain_car_stds.py | jimkon/rl | f917624607748c186b794fe783a462064be5dcfa | [
"MIT"
] | null | null | null | import numpy as np
import time
import gym
import pandas as pd
from rl_lib.utils.utils import running_average
from rl_lib.agents.q_learning import QLearningAgent
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm
plt.style.use("bmh")
################### VARIABLES ###################
class Mountain... | 30.421927 | 127 | 0.586437 |
7984859d1f499ed1a5ef269768a64db26da16628 | 10,738 | py | Python | qa/rpc-tests/maxuploadtarget.py | dolmentechnology/dolmen | a3a81029cb01e13393eda75eaf5e1e4760994d9e | [
"MIT"
] | null | null | null | qa/rpc-tests/maxuploadtarget.py | dolmentechnology/dolmen | a3a81029cb01e13393eda75eaf5e1e4760994d9e | [
"MIT"
] | null | null | null | qa/rpc-tests/maxuploadtarget.py | dolmentechnology/dolmen | a3a81029cb01e13393eda75eaf5e1e4760994d9e | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
'''... | 40.368421 | 140 | 0.654871 |
7984867a3244f6aca93e6ad8ed466bc693b148df | 77 | py | Python | abc/158/a/answer.py | TakuyaNoguchi/atcoder | d079402e6fe9c9aaf3a6fc9272331ee71fc497da | [
"MIT"
] | null | null | null | abc/158/a/answer.py | TakuyaNoguchi/atcoder | d079402e6fe9c9aaf3a6fc9272331ee71fc497da | [
"MIT"
] | null | null | null | abc/158/a/answer.py | TakuyaNoguchi/atcoder | d079402e6fe9c9aaf3a6fc9272331ee71fc497da | [
"MIT"
] | null | null | null | S = input()
if 'A' in S and 'B' in S:
print('Yes')
else:
print('No') | 12.833333 | 25 | 0.493506 |
79848740ed031c8b30fe693ad00a2fd14152ca6c | 6,151 | py | Python | cord/sentence_search.py | wangcongcong123/covidsearch | f9a4a7ce0a127015e1b8cb5075238b3aaefe894e | [
"MIT"
] | 5 | 2020-03-30T19:21:55.000Z | 2020-07-17T09:22:08.000Z | cord/sentence_search.py | wangcongcong123/covidsearch | f9a4a7ce0a127015e1b8cb5075238b3aaefe894e | [
"MIT"
] | null | null | null | cord/sentence_search.py | wangcongcong123/covidsearch | f9a4a7ce0a127015e1b8cb5075238b3aaefe894e | [
"MIT"
] | 1 | 2020-11-02T00:54:42.000Z | 2020-11-02T00:54:42.000Z | __author__="congcong wang"
import pickle
import shutil
import time
from sklearn.metrics.pairwise import cosine_similarity
from sentence_transformers import SentenceTransformer
from tqdm import tqdm
import nltk
import os
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=loggin... | 55.918182 | 225 | 0.649488 |
7984874e21df7c696e41cdd056f9109cd33b2798 | 22,817 | py | Python | synapse/events/spamcheck.py | andybalaam/synapse | 88ce3080d4d064b9872c9867208116dc9db73d7e | [
"Apache-2.0"
] | null | null | null | synapse/events/spamcheck.py | andybalaam/synapse | 88ce3080d4d064b9872c9867208116dc9db73d7e | [
"Apache-2.0"
] | null | null | null | synapse/events/spamcheck.py | andybalaam/synapse | 88ce3080d4d064b9872c9867208116dc9db73d7e | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 New Vector Ltd
# Copyright 2019 The Matrix.org Foundation C.I.C.
#
# 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... | 38.155518 | 112 | 0.622825 |
798487b20954f8475d668cf191904e55edd50a5b | 18,155 | py | Python | predict.py | kkirtac/3D-ResNets-PyTorch | 263969d1b4f9d93260f0bd06c4e9cc8fd214632e | [
"MIT"
] | null | null | null | predict.py | kkirtac/3D-ResNets-PyTorch | 263969d1b4f9d93260f0bd06c4e9cc8fd214632e | [
"MIT"
] | null | null | null | predict.py | kkirtac/3D-ResNets-PyTorch | 263969d1b4f9d93260f0bd06c4e9cc8fd214632e | [
"MIT"
] | null | null | null | import torch
from torch import nn
from torch.autograd import Variable
import torch.nn.functional as F
import time
import os
import csv
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import itertools
from sklearn.metrics import confusion_matrix
import subprocess
from models import resnet
import f... | 32.711712 | 117 | 0.605508 |
798487ea70b10a62bcb9f076d8138bf2ed69e9f9 | 3,435 | py | Python | policy_gradient/TractSeqToWave_Func.py | tttslab/armos | 6003a9e90ea5ed586f8e45d7d8b872fdad58e26a | [
"MIT"
] | null | null | null | policy_gradient/TractSeqToWave_Func.py | tttslab/armos | 6003a9e90ea5ed586f8e45d7d8b872fdad58e26a | [
"MIT"
] | null | null | null | policy_gradient/TractSeqToWave_Func.py | tttslab/armos | 6003a9e90ea5ed586f8e45d7d8b872fdad58e26a | [
"MIT"
] | null | null | null | import ctypes # for accessing C libraries
import os # for retrieving path names
import numpy # for array operations
import scipy.io.wavfile # to write wav file
import configparser
conf = configparser.SafeConfigParser()
conf.read("config.ini")
frameRate_Hz = int(conf.get('main', 'frameRate_Hz'))
def vt... | 44.038462 | 155 | 0.7377 |
79848a04e09bcd0f325a3b34b0690ea3ef283ee5 | 5,673 | py | Python | Python/venv/lib/python3.7/site-packages/ipywidgets/widgets/tests/test_set_state.py | HenriqueBuzin/TCC | 5fb9db42e97e28131bff97da3252a9ee33b3684e | [
"Unlicense"
] | 69 | 2019-02-18T12:07:35.000Z | 2022-03-12T10:38:32.000Z | Python/venv/lib/python3.7/site-packages/ipywidgets/widgets/tests/test_set_state.py | HenriqueBuzin/TCC | 5fb9db42e97e28131bff97da3252a9ee33b3684e | [
"Unlicense"
] | 200 | 2019-02-07T18:19:36.000Z | 2021-07-29T08:37:12.000Z | Python/venv/lib/python3.7/site-packages/ipywidgets/widgets/tests/test_set_state.py | HenriqueBuzin/TCC | 5fb9db42e97e28131bff97da3252a9ee33b3684e | [
"Unlicense"
] | 28 | 2019-03-22T01:07:13.000Z | 2022-02-21T16:38:27.000Z | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from ipython_genutils.py3compat import PY3
import nose.tools as nt
from traitlets import Bool, Tuple, List, Instance, CFloat, CInt, Float, Int, TraitError
from .utils import setup, teardown
from ..widget import Wid... | 26.509346 | 104 | 0.64428 |
79848af33a20041b9e3b42b59f5ae57a9b2da7b4 | 869 | py | Python | telemetry/sensors/weatherPiArduino/weatherPiArduino_controller.py | WxOutside/software | f9df6c08cbe81dd9349cab86278b92b5905dbc97 | [
"Unlicense"
] | null | null | null | telemetry/sensors/weatherPiArduino/weatherPiArduino_controller.py | WxOutside/software | f9df6c08cbe81dd9349cab86278b92b5905dbc97 | [
"Unlicense"
] | null | null | null | telemetry/sensors/weatherPiArduino/weatherPiArduino_controller.py | WxOutside/software | f9df6c08cbe81dd9349cab86278b92b5905dbc97 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os
import subprocess
import sys
import time
sys.path.append(os.path.abspath('/home/pi/telemetry/'))
from functions import date_time
process_found=False
proc = subprocess.Popen(["ps ax | grep weatherPiArduino_agent"], shell=True, stdout=subprocess.PIPE, bufsize=1, universal_newlines=True... | 31.035714 | 136 | 0.759494 |
79848afc08196d2ba9822ca5003b39b8d760fa71 | 9,289 | py | Python | common/packets.py | everlof/HoNotify | 608ec0334ce3da9a260f2c80a1fc22e92379996b | [
"MIT"
] | null | null | null | common/packets.py | everlof/HoNotify | 608ec0334ce3da9a260f2c80a1fc22e92379996b | [
"MIT"
] | null | null | null | common/packets.py | everlof/HoNotify | 608ec0334ce3da9a260f2c80a1fc22e92379996b | [
"MIT"
] | null | null | null | import struct
class APP_ID:
APP_CS_LOGIN = 0xB0
APP_SC_LOGIN_OK = 0xA0
APP_SC_LOGIN_NOK = 0xA1
app_cs_structs = {
APP_ID.APP_CS_LOGIN : 'sBs', # username, hashed?, password
}
app_sc_structs = {
APP_ID.APP_SC_LOGIN_OK : '', # token
APP_ID.APP_SC_LOGIN_NOK : '',
}
... | 31.06689 | 116 | 0.643342 |
79848b41a92822487cec62a145053aebe4ab3f24 | 2,137 | py | Python | python3/ftrace/parsers/cpu_frequency_switch_start.py | Gracker/SystraceAnalysis | b27217e33a260614a9fe9ff3f8c3e470efdbd9a3 | [
"Apache-2.0"
] | 1 | 2021-12-07T05:32:28.000Z | 2021-12-07T05:32:28.000Z | python3/ftrace/parsers/cpu_frequency_switch_start.py | Gracker/systrace-analysis | b27217e33a260614a9fe9ff3f8c3e470efdbd9a3 | [
"Apache-2.0"
] | null | null | null | python3/ftrace/parsers/cpu_frequency_switch_start.py | Gracker/systrace-analysis | b27217e33a260614a9fe9ff3f8c3e470efdbd9a3 | [
"Apache-2.0"
] | 2 | 2022-03-10T06:27:31.000Z | 2022-03-12T15:30:50.000Z | #!/usr/bin/python
# Copyright 2015 Huawei Devices USA 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 r... | 28.493333 | 74 | 0.674778 |
79848b5e7c4e5710a2af5f7e98c21f9103b5da85 | 2,545 | py | Python | python/avi/sdk/utils/waf_sizing/vs_metrics.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | 12 | 2021-04-02T15:59:56.000Z | 2022-01-17T06:31:25.000Z | python/avi/sdk/utils/waf_sizing/vs_metrics.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | 85 | 2021-04-30T10:21:32.000Z | 2022-03-31T06:54:37.000Z | python/avi/sdk/utils/waf_sizing/vs_metrics.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | 10 | 2021-04-03T16:03:57.000Z | 2022-03-14T23:16:47.000Z | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache License 2.0
from __future__ import print_function
import argparse
import json
from avi.sdk.avi_api import ApiSession
from avi.sdk.utils.api_utils import ApiUtils
from requests.packages import urllib3
from metrics_list import metrics
urllib3.disable_warn... | 34.391892 | 119 | 0.596071 |
79848ba9941c0d735342f075941a2a33c4764665 | 2,027 | py | Python | AXF/App/migrations/0005_mainshow.py | riverstation/flask | ca3934787e8e4d68290989f78b66caacbb2350ac | [
"Apache-2.0"
] | null | null | null | AXF/App/migrations/0005_mainshow.py | riverstation/flask | ca3934787e8e4d68290989f78b66caacbb2350ac | [
"Apache-2.0"
] | null | null | null | AXF/App/migrations/0005_mainshow.py | riverstation/flask | ca3934787e8e4d68290989f78b66caacbb2350ac | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-04-09 03:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0004_mainshop'),
]
operations = [
migrations.CreateModel(
... | 42.229167 | 114 | 0.554021 |
79848bdfa7ac1098b820a07b1738ed216f3ed002 | 702 | py | Python | ABC/abc051-abc100/abc060/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ABC/abc051-abc100/abc060/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ABC/abc051-abc100/abc060/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | '''input
5 10
0 3 5 7 100
27
4 10
0 3 5 7
17
9 10
0 3 5 7 100 110 200 300 311
67
2 4
0 3
7
2 4
0 5
8
4 1000000000
0 1000 1000000 1000000000
2000000000
1 1
0
1
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem C
if __name__ == '__main__':
n, intervel = li... | 13.245283 | 57 | 0.54416 |
79848c2310da2f7139b356116179004311c2b224 | 11,076 | py | Python | scripts/ASCSynchGeneral_toXRDML.py | phlpphns/ASCIItoXRDML | 974da632691f07a9743a8a73c3cee03593976333 | [
"MIT"
] | null | null | null | scripts/ASCSynchGeneral_toXRDML.py | phlpphns/ASCIItoXRDML | 974da632691f07a9743a8a73c3cee03593976333 | [
"MIT"
] | null | null | null | scripts/ASCSynchGeneral_toXRDML.py | phlpphns/ASCIItoXRDML | 974da632691f07a9743a8a73c3cee03593976333 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#
# ASCSynchMythen_toXRDML.py
#
# takes Mhythen input that has gaps. Does interpolation and saves to the PANalytical xrdml format
# some sections are commented
#
# serious improvement appreciated
# give wavelength as first argument in command line
#
import numpy
import sys
import dateti... | 62.931818 | 286 | 0.502257 |
79848c26a621c0222465bdcc3417055f6801d66e | 5,297 | py | Python | sdk/python/pulumi_azure_nextgen/web/v20180201/get_web_app_slot_configuration_names.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/web/v20180201/get_web_app_slot_configuration_names.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/web/v20180201/get_web_app_slot_configuration_names.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # 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... | 36.784722 | 168 | 0.666793 |
79848c33640fdfa1db9ac8709ee19ff8554ca2f3 | 543 | py | Python | Measurements/ms.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Measurements/ms.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Measurements/ms.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | # Description: Measure surface area of the selection with the msms_pymol.py script.
# Source: placeHolder
"""
cmd.do('fetch ${1:3nd3}, name=${1:3nd3}, type=pdb, async=0;')
cmd.do('select ${2:temp}, ${1:3nd3} and chain ${4:A};')
cmd.do('run ${5:/Users/blaine-mooers/Scripts/PyMOLScripts/msms_pymol.py};')
cmd.do('calc_... | 36.2 | 84 | 0.692449 |
79848dbff7c8fba0e3117e5796dddb3c11acb996 | 15,779 | py | Python | tatpulsar/pulsar_timing/ToA.py | tuoyl/timing_lib | 72d4467d932dbbd8d7ceb79bc5dfaa292a55679f | [
"MIT"
] | 1 | 2022-03-29T02:17:56.000Z | 2022-03-29T02:17:56.000Z | tatpulsar/pulsar_timing/ToA.py | tuoyl/timing_lib | 72d4467d932dbbd8d7ceb79bc5dfaa292a55679f | [
"MIT"
] | 2 | 2021-06-08T03:05:28.000Z | 2021-06-09T04:36:36.000Z | tatpulsar/pulsar_timing/ToA.py | tuoyl/timing_lib | 72d4467d932dbbd8d7ceb79bc5dfaa292a55679f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from tatpulsar.pulsar_timing.utils import *
from tatpulsar.pulsar_timing.utils import njit, HAS_NUMBA
from tatpulsar.pulsar_timing.Profile import resampling_profile, norm_profile, Profile
import sys
__all__ =... | 42.18984 | 135 | 0.607897 |
79848e13cf844bc66f25ff61d539d63133ec1cad | 379 | py | Python | test/__init__.py | pjshu/QQZoneMood | b637e4f26fa34aed415c326a50c708a91d79ec19 | [
"MIT"
] | 487 | 2018-12-12T10:53:34.000Z | 2022-03-27T08:38:42.000Z | test/__init__.py | DanielisLearning/QQZoneMood | bc949855271a4d9944e1501599755cfdfdb8cfd6 | [
"MIT"
] | 18 | 2019-04-07T11:32:13.000Z | 2021-04-26T13:07:12.000Z | test/__init__.py | DanielisLearning/QQZoneMood | bc949855271a4d9944e1501599755cfdfdb8cfd6 | [
"MIT"
] | 126 | 2018-12-12T10:54:24.000Z | 2022-03-13T16:32:36.000Z | import unittest
from test.spider.friend_mood_spider_test import FriendMoodSpiderTest
from test.spider.friend_spider_test import FriendSpiderTest
from test.spider.spider_test import SpiderTest
from test.analysis.analysis_test import AnalysisTest
if __name__ == '__main__':
SpiderTest()
FriendSpiderTest()
Fr... | 29.153846 | 68 | 0.810026 |
79848fc1a3d0e06057a9ee53c4d2896631717098 | 942 | py | Python | A1014280203/17/17.py | saurabh896/python-1 | f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7 | [
"MIT"
] | 3,976 | 2015-01-01T15:49:39.000Z | 2022-03-31T03:47:56.000Z | A1014280203/17/17.py | dwh65416396/python | 1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a | [
"MIT"
] | 97 | 2015-01-11T02:59:46.000Z | 2022-03-16T14:01:56.000Z | A1014280203/17/17.py | dwh65416396/python | 1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a | [
"MIT"
] | 3,533 | 2015-01-01T06:19:30.000Z | 2022-03-28T13:14:54.000Z | # 实现有误
import xlrd
from xml.dom import minidom, Node
def gen_xml(root, child, comment, data):
doc = minidom.Document()
node_root = doc.createElement(root)
node_students = doc.createElement(child)
node_students.appendChild(doc.createComment(comment))
node_students.appendChild(doc.createTe... | 31.4 | 58 | 0.650743 |
798490206989567cc627c9a050fabf51b0edf968 | 583 | py | Python | pdb_app/migrations/0002_category.py | kenmasters/Python-Django | da47cba028a01d530d7512f73fa2f2a988091d8e | [
"MIT"
] | null | null | null | pdb_app/migrations/0002_category.py | kenmasters/Python-Django | da47cba028a01d530d7512f73fa2f2a988091d8e | [
"MIT"
] | null | null | null | pdb_app/migrations/0002_category.py | kenmasters/Python-Django | da47cba028a01d530d7512f73fa2f2a988091d8e | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-10-22 20:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdb_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id',... | 24.291667 | 114 | 0.536878 |
798491ada3b99b642b8403c87a40a152ec322662 | 2,973 | py | Python | mi/dataset/parser/test/test_flort_kn_auv.py | emilyhahn/mi-dataset | 6bfa7158a74cc5db02a0bdeabcc7c3e3749b8eac | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/test/test_flort_kn_auv.py | emilyhahn/mi-dataset | 6bfa7158a74cc5db02a0bdeabcc7c3e3749b8eac | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/test/test_flort_kn_auv.py | emilyhahn/mi-dataset | 6bfa7158a74cc5db02a0bdeabcc7c3e3749b8eac | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
@package mi.dataset.parser.test
@fid marine-integrations/mi/dataset/parser/test/test_flort_kn_auv.py
@author Jeff Roy
@brief Test code for a flort_kn_auv data parser
NOTE: As this is the third parser built on AuvCommonParser testing of
the error checking was not done. See adcpa_n_auv and d... | 31.294737 | 87 | 0.653885 |
7984924b078bde0808519691fbae174884065552 | 2,262 | py | Python | demos/memory_session.py | jinrenfit/torndsession | 16b1bb7b73062e6ae996bffaa03cab7bddbba831 | [
"MIT"
] | 64 | 2015-01-06T14:08:38.000Z | 2022-02-28T07:31:40.000Z | demos/memory_session.py | jinrenfit/torndsession | 16b1bb7b73062e6ae996bffaa03cab7bddbba831 | [
"MIT"
] | 12 | 2015-01-14T05:48:17.000Z | 2020-01-10T03:16:28.000Z | demos/memory_session.py | jinrenfit/torndsession | 16b1bb7b73062e6ae996bffaa03cab7bddbba831 | [
"MIT"
] | 48 | 2015-02-10T09:18:41.000Z | 2021-09-16T02:53:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright @ 2014 Mitchell Chu
from sys import version
import tornado.web
import tornado.httpserver
import tornado.ioloop
from torndsession.sessionhandler import SessionBaseHandler
class Application(tornado.web.Application):
def __init__(self):
handlers = ... | 30.16 | 110 | 0.593722 |
7984930ff99d3bbe6727cbc18be0c1778d91988a | 2,941 | py | Python | general_lp_interface.py | meelgroup/mgt | ccd51c9094e63eee8234ed7cde128746a481f897 | [
"MIT"
] | 1 | 2020-02-27T19:14:37.000Z | 2020-02-27T19:14:37.000Z | general_lp_interface.py | meelgroup/mgt | ccd51c9094e63eee8234ed7cde128746a481f897 | [
"MIT"
] | null | null | null | general_lp_interface.py | meelgroup/mgt | ccd51c9094e63eee8234ed7cde128746a481f897 | [
"MIT"
] | null | null | null | import cplex
import numpy as np
import time as t
alpha = 1
# solve an instance of a Linear Programming relaxed instance for Group Testing
# as designed in the malyuotov paper
# y is the vector of result for each group tested
# A is the recovery Matrix
# nvar is the number of variables
# noiseless is a boolean, True ... | 30.635417 | 113 | 0.597416 |
798493c3d5634f6773bced56e1176bda33ac64a4 | 166 | py | Python | setup.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | setup.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | setup.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(packages=find_packages(),
install_requires=[
"Django >= 2.0",
"Pillow",
],
)
| 18.444444 | 43 | 0.566265 |
798494a6ec8daea5324ca62ac664e810ec6083e0 | 4,179 | py | Python | test/long-lines/live.py | EmanueleCannizzaro/scons | 6baa4e65cdf4df6951473545b69435711864e509 | [
"MIT"
] | 1 | 2019-09-18T06:37:02.000Z | 2019-09-18T06:37:02.000Z | test/long-lines/live.py | EmanueleCannizzaro/scons | 6baa4e65cdf4df6951473545b69435711864e509 | [
"MIT"
] | null | null | null | test/long-lines/live.py | EmanueleCannizzaro/scons | 6baa4e65cdf4df6951473545b69435711864e509 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to us... | 28.04698 | 97 | 0.661163 |
798494b1cd395c62076316f4eb47c4a617231202 | 5,931 | py | Python | tests/importance_tests/test_fanova.py | masap/optuna | f56cea87c4771d53b39f441e727d733dd1785557 | [
"MIT"
] | 1,300 | 2018-12-03T06:11:11.000Z | 2019-11-15T01:28:25.000Z | tests/importance_tests/test_fanova.py | masap/optuna | f56cea87c4771d53b39f441e727d733dd1785557 | [
"MIT"
] | 274 | 2018-12-04T09:54:07.000Z | 2019-11-15T02:23:18.000Z | tests/importance_tests/test_fanova.py | masap/optuna | f56cea87c4771d53b39f441e727d733dd1785557 | [
"MIT"
] | 148 | 2018-12-03T10:48:50.000Z | 2019-11-11T16:37:51.000Z | from typing import Tuple
import pytest
from optuna import create_study
from optuna import Trial
from optuna.distributions import FloatDistribution
from optuna.importance import FanovaImportanceEvaluator
from optuna.samplers import RandomSampler
from optuna.trial import create_trial
def objective(trial: Trial) -> fl... | 38.019231 | 99 | 0.720115 |
79849673669fb4cca132ac76e57e81926714f2ea | 5,491 | py | Python | plugins/modules/oci_network_tunnel_route_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_network_tunnel_route_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_network_tunnel_route_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 28.598958 | 121 | 0.642324 |
79849748f44d6394583a4570557c8bcd07f2998d | 2,286 | py | Python | generate_video.py | lsDrizzle/FreeFormDeformation-SketchDetection | da9e0afad8d4721e01f792d2d1838feed9a61bb8 | [
"MIT"
] | 8 | 2021-09-25T06:00:53.000Z | 2022-03-12T03:31:04.000Z | generate_video.py | wxdrizzle/FreeFormDeformation-SketchDetection | 8b9da9b8e40ba9c98f012e03eb0388f4a7d5c613 | [
"MIT"
] | null | null | null | generate_video.py | wxdrizzle/FreeFormDeformation-SketchDetection | 8b9da9b8e40ba9c98f012e03eb0388f4a7d5c613 | [
"MIT"
] | 1 | 2021-02-22T21:26:57.000Z | 2021-02-22T21:26:57.000Z | import manimlib.config
import manimlib.constants
import manimlib.extract_scene
import numpy as np
def generate_video(original_mesh, current_mesh, mesh_spacing, file="ffd_visualization.py", low_quality=True, resolution="700,700",
scene_names=None, preview=False):
"""
generate video using man... | 33.130435 | 130 | 0.675853 |
798497992ab15dc08a7ced32c23327f0aaecf8fc | 11,433 | py | Python | src/memory.py | pocokhc/r2d3 | b438e58c3c7a0296d613cbffe26bb15e87a3b4ac | [
"MIT"
] | 3 | 2021-03-24T02:29:38.000Z | 2022-03-16T12:49:36.000Z | src/memory.py | pocokhc/r2d3 | b438e58c3c7a0296d613cbffe26bb15e87a3b4ac | [
"MIT"
] | null | null | null | src/memory.py | pocokhc/r2d3 | b438e58c3c7a0296d613cbffe26bb15e87a3b4ac | [
"MIT"
] | 1 | 2021-04-04T17:04:11.000Z | 2021-04-04T17:04:11.000Z | import numpy as np
import random
import bisect
import math
class Memory():
""" Abstract base class for all implemented Memory. """
def add(self, exp, priority=0):
raise NotImplementedError()
def update(self, idx, exp, priority):
raise NotImplementedError()
def sample(self, batch_size... | 26.964623 | 121 | 0.546838 |
79849816e7d959e0359c77c9b2e72eaa8be135ce | 6,351 | py | Python | pymultifracs/structurefunction.py | agramfort/pymultifracs | 3a8896f3f26180b05ccecb4a905b05a3ebc0308b | [
"MIT"
] | null | null | null | pymultifracs/structurefunction.py | agramfort/pymultifracs | 3a8896f3f26180b05ccecb4a905b05a3ebc0308b | [
"MIT"
] | null | null | null | pymultifracs/structurefunction.py | agramfort/pymultifracs | 3a8896f3f26180b05ccecb4a905b05a3ebc0308b | [
"MIT"
] | null | null | null | """
Authors: Omar D. Domingues <omar.darwiche-domingues@inria.fr>
Merlin Dumeur <merlin@dumeur.net>
"""
from dataclasses import dataclass, InitVar, field
import numpy as np
import matplotlib.pyplot as plt
from .utils import linear_regression, fast_power
from .multiresquantity import MultiResolutionQuantityB... | 30.242857 | 79 | 0.552354 |
7984988bed037bac9fc4e24d839a2fdaa610f370 | 1,671 | py | Python | students/K33401/Klishin_Nikita/practice/django_project_klishin/project_first_app/models.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/K33401/Klishin_Nikita/practice/django_project_klishin/project_first_app/models.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/K33401/Klishin_Nikita/practice/django_project_klishin/project_first_app/models.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.contrib.auth import get_user_model
import datetime
class User(AbstractUser):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=30)
surname = models.CharField(max_length=30)
birth_date ... | 37.977273 | 77 | 0.71933 |
798498abf8bacd6646dc9bce90e01d9766634fbb | 2,020 | py | Python | fhir/resources/DSTU2/contactpoint.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/DSTU2/contactpoint.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/DSTU2/contactpoint.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/ContactPoint) on 2019-05-14.
# 2019, SMART Health IT.
from . import element, period
class ContactPoint(element.Element):
""" Details of a Technology mediated contact point (phone, fax, ema... | 32.580645 | 103 | 0.583168 |
79849abbbc35c9cb5612f6db1d1ee494a4a26cc4 | 4,062 | py | Python | catcher/core/test.py | Fluke667/catcher | 99bf5e94818b43fcc0ead582656d997d7b3fee7c | [
"Apache-2.0"
] | null | null | null | catcher/core/test.py | Fluke667/catcher | 99bf5e94818b43fcc0ead582656d997d7b3fee7c | [
"Apache-2.0"
] | null | null | null | catcher/core/test.py | Fluke667/catcher | 99bf5e94818b43fcc0ead582656d997d7b3fee7c | [
"Apache-2.0"
] | null | null | null | import traceback
from catcher.utils import logger
from catcher.steps.step import Step
from catcher.steps.stop import StopException
from catcher.utils.logger import debug, info
from catcher.utils.misc import fill_template_str, merge_two_dicts
from catcher.core import step_factory
class Include:
"""
Include a... | 39.436893 | 98 | 0.595273 |
79849ac7218d2a45c3837a9573146d26b9ffc906 | 5,835 | py | Python | sdk/python/kulado_azure/eventhub/event_hub_authorization_rule.py | kulado/kulado-azure | f3a408fa0405fe6ae93e0049b2ae0f0e266f1cf6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/kulado_azure/eventhub/event_hub_authorization_rule.py | kulado/kulado-azure | f3a408fa0405fe6ae93e0049b2ae0f0e266f1cf6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/kulado_azure/eventhub/event_hub_authorization_rule.py | kulado/kulado-azure | f3a408fa0405fe6ae93e0049b2ae0f0e266f1cf6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Kulado Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import kulado
import kulado.runtime
from .. import utilities, tables
class EventHubAuthorizationRule(kulad... | 45.585938 | 213 | 0.699057 |
79849b061de2465518d37699031195d3e0ff456b | 911 | py | Python | old/random_blur.py | NateThom/contrastive_learning | 047f2628d7ff7bb8842f35311c4477df9b7e6566 | [
"MIT"
] | null | null | null | old/random_blur.py | NateThom/contrastive_learning | 047f2628d7ff7bb8842f35311c4477df9b7e6566 | [
"MIT"
] | null | null | null | old/random_blur.py | NateThom/contrastive_learning | 047f2628d7ff7bb8842f35311c4477df9b7e6566 | [
"MIT"
] | null | null | null | import torch
import torchvision.transforms.functional as TF
class MyRandomBlur(object):
"""Crop randomly the image and masks in a sample
output_size (tuple or int): Desired output size. If int, square crop
is made.
"""
def __init__(self, kernel_size):
self.kernel_si... | 29.387097 | 80 | 0.599341 |
79849b658f4d8d59f68440e86ed7724dcf95e04d | 47,287 | py | Python | lanGhost.py | vova-cmd/LanGhost2 | 88861ee90883a4b4b7bce15293ed206b27cd7783 | [
"MIT"
] | 372 | 2017-11-21T21:57:28.000Z | 2022-03-05T20:59:06.000Z | lanGhost.py | vova-cmd/LanGhost2 | 88861ee90883a4b4b7bce15293ed206b27cd7783 | [
"MIT"
] | 21 | 2017-12-28T21:07:44.000Z | 2019-12-21T20:58:56.000Z | lanGhost.py | vova-cmd/LanGhost2 | 88861ee90883a4b4b7bce15293ed206b27cd7783 | [
"MIT"
] | 86 | 2017-12-27T16:42:36.000Z | 2022-03-04T10:36:17.000Z | #!/usr/bin/env python3
# -.- coding: utf-8 -.-
# lanGhost.py
# author: xdavidhu
try:
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Shut up scapy!
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from netaddr import IPAddress
from time import ... | 40.554889 | 237 | 0.581724 |
79849d8249475756dec88aff9c5ebc4eab25fb9d | 8,824 | py | Python | syntaxnet/syntaxnet/beam_reader_ops_test.py | CLC-HCMUS/models | 0102dfb62644602c319164aea6530510656046e4 | [
"Apache-2.0"
] | 9 | 2021-08-08T22:44:58.000Z | 2021-11-23T06:51:59.000Z | syntaxnet/syntaxnet/beam_reader_ops_test.py | shankar-reddy/models | 0102dfb62644602c319164aea6530510656046e4 | [
"Apache-2.0"
] | null | null | null | syntaxnet/syntaxnet/beam_reader_ops_test.py | shankar-reddy/models | 0102dfb62644602c319164aea6530510656046e4 | [
"Apache-2.0"
] | 2 | 2018-04-04T17:12:55.000Z | 2018-04-17T21:15:22.000Z | # Copyright 2016 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 a... | 38.199134 | 80 | 0.626247 |
79849e538c64febabf5026bfaf172aa8baa0d00e | 14,948 | py | Python | moto/dynamodb2/parsing/validators.py | thomassross/moto | 407d5c853dbee9b9e132d97b41414b7dca475765 | [
"Apache-2.0"
] | 1 | 2021-12-12T04:23:06.000Z | 2021-12-12T04:23:06.000Z | moto/dynamodb2/parsing/validators.py | thomassross/moto | 407d5c853dbee9b9e132d97b41414b7dca475765 | [
"Apache-2.0"
] | 2 | 2018-08-07T10:47:18.000Z | 2018-08-08T15:13:04.000Z | moto/dynamodb2/parsing/validators.py | thomassross/moto | 407d5c853dbee9b9e132d97b41414b7dca475765 | [
"Apache-2.0"
] | 1 | 2017-12-30T05:04:42.000Z | 2017-12-30T05:04:42.000Z | """
See docstring class Validator below for more details on validation
"""
from abc import abstractmethod
from copy import deepcopy
from moto.dynamodb2.exceptions import (
AttributeIsReservedKeyword,
ExpressionAttributeValueNotDefined,
AttributeDoesNotExist,
ExpressionAttributeNameNotDefined,
Incor... | 37.843038 | 118 | 0.654067 |
7984a01310b436049a3ad8a190d497bd57337a8c | 31,783 | py | Python | test/test_hyperflex_api.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | test/test_hyperflex_api.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | test/test_hyperflex_api.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 31.406126 | 1,052 | 0.684863 |
7984a018dffff586e6a3e43a5a08a0bdca68ab0c | 3,454 | py | Python | src/redisenterprise/azext_redisenterprise/generated/commands.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/redisenterprise/azext_redisenterprise/generated/commands.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/redisenterprise/azext_redisenterprise/generated/commands.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------
# 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 cause incor... | 54.825397 | 149 | 0.746091 |
7984a4784aac4c2b1ad051265e7289ffc4d1dc29 | 1,198 | py | Python | pykey/loader.py | jpconstantineau/CircuitPython_pykey | 3b0c6ca52e4e693f7c4d0a4c25797dd05a301b24 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | pykey/loader.py | jpconstantineau/CircuitPython_pykey | 3b0c6ca52e4e693f7c4d0a4c25797dd05a301b24 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | pykey/loader.py | jpconstantineau/CircuitPython_pykey | 3b0c6ca52e4e693f7c4d0a4c25797dd05a301b24 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: Copyright (c) 2021 Pierre Constantineau
#
# SPDX-License-Identifier: MIT
"""
Module representing a keyboard procesing loop..
"""
import os
class KB_Loader:
"""
Class representing a keyboard procesing loop..
"""
def __init__(self, folder, keymapclass):
self._folde... | 27.227273 | 75 | 0.501669 |
7984a521c4f6cb5d9169ea73f73b73f8365e2033 | 184 | py | Python | test/integration/AMG2013/functors/no_instr_amg_ct_mpi.py | tudasc/pira | 00d6e9959739ac87f53ea1cd9c8322fca1dbd8ee | [
"BSD-3-Clause"
] | 3 | 2020-09-07T12:35:46.000Z | 2020-09-07T15:09:23.000Z | test/integration/AMG2013/functors/no_instr_amg_ct_mpi.py | tudasc/pira | 00d6e9959739ac87f53ea1cd9c8322fca1dbd8ee | [
"BSD-3-Clause"
] | 4 | 2020-10-07T14:29:31.000Z | 2020-11-14T08:36:36.000Z | test/integration/AMG2013/functors/no_instr_amg_ct_mpi.py | tudasc/pira | 00d6e9959739ac87f53ea1cd9c8322fca1dbd8ee | [
"BSD-3-Clause"
] | 2 | 2020-10-09T09:54:55.000Z | 2020-11-11T16:39:39.000Z | def get_method():
return {'passive': True, 'active': False}
def passive(benchmark, **kwargs):
return 'make CC="OMPI_CC=clang mpicc" -j'
def active(benchmark, **kwargs):
pass
| 16.727273 | 43 | 0.673913 |
7984a5aa6993a579a7d817db36f0e07a109234a9 | 2,072 | py | Python | autohandshake/tests/account_specific_tests/test_access_request_page.py | cedwards036/autohandshake | 7f57b242a612b0f0aad634bc111a3db3050c6597 | [
"MIT"
] | 3 | 2018-05-18T16:15:32.000Z | 2019-08-01T23:06:44.000Z | autohandshake/tests/account_specific_tests/test_access_request_page.py | cedwards036/autohandshake | 7f57b242a612b0f0aad634bc111a3db3050c6597 | [
"MIT"
] | null | null | null | autohandshake/tests/account_specific_tests/test_access_request_page.py | cedwards036/autohandshake | 7f57b242a612b0f0aad634bc111a3db3050c6597 | [
"MIT"
] | null | null | null | import unittest
from autohandshake.src.Pages import AccessRequestPage, RequestStatus
from autohandshake.tests import TestSession
from datetime import datetime
class TestAccessRequestPage(unittest.TestCase):
def test_get_request_data_with_single_page_data(self):
with TestSession() as browser:
... | 40.627451 | 87 | 0.536197 |
7984a61bdad07ce4b11e65f0d3f93d35a78c278b | 7,697 | py | Python | gentelella/app/mobileViews.py | jjsboss0/ARTeVIC_admin | fe25d6943be836614867dd18b41da99bc33afc26 | [
"MIT"
] | null | null | null | gentelella/app/mobileViews.py | jjsboss0/ARTeVIC_admin | fe25d6943be836614867dd18b41da99bc33afc26 | [
"MIT"
] | null | null | null | gentelella/app/mobileViews.py | jjsboss0/ARTeVIC_admin | fe25d6943be836614867dd18b41da99bc33afc26 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.template import loader
from django.contrib.auth.models import User
from django.contrib.auth import login as auth_login, authenticate, logout
from django.http import HttpResponse,HttpResponseRedirect, JsonResponse
from django.views.decorators.csrf import csrf_exempt
... | 34.057522 | 85 | 0.593218 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.