hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
43e5ffb17205f0520730d2a9a25d19f485f42613
75,146
py
Python
model/work.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
1
2021-11-16T00:58:43.000Z
2021-11-16T00:58:43.000Z
model/work.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
44
2022-01-20T01:31:32.000Z
2022-03-31T01:50:41.000Z
model/work.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
1
2021-05-12T19:11:52.000Z
2021-05-12T19:11:52.000Z
# encoding: utf-8 # WorkGenre, Work import logging from collections import Counter from sqlalchemy import ( Boolean, Column, DateTime, Enum, Float, ForeignKey, Integer, Numeric, String, Unicode, ) from sqlalchemy.dialects.postgresql import INT4RANGE from sqlalchemy.ext.associat...
38.935751
155
0.611623
8563627b579399104a3328cb159b18e999af80e9
17,854
py
Python
tensorflow/python/keras/engine/training_utils_v1_test.py
AdamHillier/tensorflow
6780ebf4858a56fd0745f03fa5a61b249559f3cd
[ "Apache-2.0" ]
4
2016-07-14T15:15:05.000Z
2017-03-02T15:17:22.000Z
tensorflow/python/keras/engine/training_utils_v1_test.py
AdamHillier/tensorflow
6780ebf4858a56fd0745f03fa5a61b249559f3cd
[ "Apache-2.0" ]
1
2021-03-23T03:25:15.000Z
2021-03-23T03:25:15.000Z
tensorflow/python/keras/engine/training_utils_v1_test.py
AdamHillier/tensorflow
6780ebf4858a56fd0745f03fa5a61b249559f3cd
[ "Apache-2.0" ]
5
2016-11-07T21:17:45.000Z
2020-05-31T00:16:59.000Z
# Copyright 2018 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...
40.393665
101
0.709085
98e8f430e72d1ba451cafccf0c8d52322c7394bf
2,131
py
Python
cogs/detain.py
kevinyang07/dorp-bot
f27314dd9f716ee0c0759dda04e2ec37a3266dae
[ "MIT" ]
null
null
null
cogs/detain.py
kevinyang07/dorp-bot
f27314dd9f716ee0c0759dda04e2ec37a3266dae
[ "MIT" ]
null
null
null
cogs/detain.py
kevinyang07/dorp-bot
f27314dd9f716ee0c0759dda04e2ec37a3266dae
[ "MIT" ]
1
2021-04-27T22:13:58.000Z
2021-04-27T22:13:58.000Z
import discord from discord.ext import commands class detain(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def detain(self, ctx, member: discord.Member = None): overseer = discord.utils.get(ctx.guild.roles, name = "Overseer") guard = d...
47.355556
128
0.600188
3749ffd6c637f2a43916cc129f28a74498e100b0
11,134
py
Python
src/third_party/wiredtiger/tools/wtstats/wtstats.py
stbrody/mongo
e6df4d48792498545a9069f08ff78f7840700ef6
[ "Apache-2.0" ]
29
2015-01-13T02:34:23.000Z
2022-01-30T16:57:10.000Z
src/third_party/wiredtiger/tools/wtstats/wtstats.py
stbrody/mongo
e6df4d48792498545a9069f08ff78f7840700ef6
[ "Apache-2.0" ]
1
2015-05-29T16:12:10.000Z
2015-05-29T16:12:10.000Z
src/third_party/wiredtiger/tools/wtstats/wtstats.py
stbrody/mongo
e6df4d48792498545a9069f08ff78f7840700ef6
[ "Apache-2.0" ]
12
2015-01-24T08:40:28.000Z
2017-10-04T17:23:39.000Z
#!/usr/bin/env python # # Public Domain 2014-2015 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
32.555556
100
0.607149
842ee231e0090bb8607b966af8eea2809ba70368
1,221
py
Python
qa/management/commands/index_data.py
gileadslostson/es-django-example
65c752f2a3a5deeae38de516790977cdbe652a77
[ "Apache-2.0" ]
181
2015-06-12T06:16:34.000Z
2022-02-04T18:31:49.000Z
qa/management/commands/index_data.py
gileadslostson/es-django-example
65c752f2a3a5deeae38de516790977cdbe652a77
[ "Apache-2.0" ]
18
2015-07-22T14:40:13.000Z
2018-05-15T19:20:11.000Z
qa/management/commands/index_data.py
gileadslostson/es-django-example
65c752f2a3a5deeae38de516790977cdbe652a77
[ "Apache-2.0" ]
53
2015-07-09T04:30:11.000Z
2022-02-04T18:31:53.000Z
from __future__ import print_function import sys import time from django.core.management.base import BaseCommand from django.conf import settings from elasticsearch_dsl.connections import connections from elasticsearch.helpers import streaming_bulk from qa.models import Question, Answer from qa.search import index...
28.395349
86
0.602785
e3fc45bfd032cc8a1b7552e8cf48224705ce090e
6,827
py
Python
verilog/linked_list/refinement-proof/gen_prop.py
makaimann/Stanford-FAST
69034897209d962b561de0ca5075bf3b9eac9fb4
[ "BSD-3-Clause" ]
2
2019-04-19T21:58:52.000Z
2021-02-02T14:01:46.000Z
verilog/linked_list/refinement-proof/gen_prop.py
makaimann/Stanford-FAST
69034897209d962b561de0ca5075bf3b9eac9fb4
[ "BSD-3-Clause" ]
null
null
null
verilog/linked_list/refinement-proof/gen_prop.py
makaimann/Stanford-FAST
69034897209d962b561de0ca5075bf3b9eac9fb4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # PARAMETERS # DEPTH # NUM_FIFOS import argparse import math counter = "count[{sel}_{sel_width}]" empty = "empty[{sel}:{sel}]" val = "{val}_{width}" extract = "[{lower}:{upper}]" head = "shared_fifo.ll.head[{sel}_{width}]" tail = "'shared_fifo.ll.tail[{sel}]'" PROBLEM=""" [{name}] ...
44.620915
151
0.642449
a7adfbd748df0efbfb18e1ed8d5159349e092592
1,200
py
Python
Apps/phrsasecurityanalytics/rsasa_consts.py
nate-axonius/phantom-apps
15bb5866b5fa34418b5286a8d0a11f2dcb98e53f
[ "Apache-2.0" ]
74
2019-10-22T02:00:53.000Z
2022-03-15T12:56:13.000Z
Apps/phrsasecurityanalytics/rsasa_consts.py
nate-axonius/phantom-apps
15bb5866b5fa34418b5286a8d0a11f2dcb98e53f
[ "Apache-2.0" ]
375
2019-10-22T20:53:50.000Z
2021-11-09T21:28:43.000Z
Apps/phrsasecurityanalytics/rsasa_consts.py
nate-axonius/phantom-apps
15bb5866b5fa34418b5286a8d0a11f2dcb98e53f
[ "Apache-2.0" ]
175
2019-10-23T15:30:42.000Z
2021-11-05T21:33:31.000Z
# -- # File: rsasa_consts.py # # Copyright (c) 2017-2021 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # -- RSASA_JSON_URL = "url" RSASA_JSON_USERNAME = "username" RSASA_JSON_PASSWORD = "password" RSASA_JSON_LAST_DATE_TIME = "last_date_time" RSASA_JSON_INCIDENT_MANAGER =...
34.285714
81
0.814167
570cbaa09a97526eaf07bc5c2d697d91a7c8d621
146
py
Python
cloudscale/lib/region.py
resmo/python-cloudscale
e194e3f74c4df549e59781861d4a0a1e1abf62fc
[ "MIT" ]
6
2019-11-21T15:08:58.000Z
2019-12-18T07:46:01.000Z
cloudscale/lib/region.py
resmo/python-cloudscale
e194e3f74c4df549e59781861d4a0a1e1abf62fc
[ "MIT" ]
15
2019-11-26T19:48:12.000Z
2020-05-01T14:52:07.000Z
cloudscale/lib/region.py
resmo/python-cloudscale
e194e3f74c4df549e59781861d4a0a1e1abf62fc
[ "MIT" ]
null
null
null
from . import CloudscaleBase class Region(CloudscaleBase): def __init__(self): super().__init__() self.resource = 'regions'
18.25
33
0.657534
8a0fbbb5da575d61cf6f3c547fe09bc483da89a1
34,240
py
Python
stable_baselines3/common/policies.py
wmmc88/stable-baselines3
97b81f9e9ee2e5ba7eb37328bbd21f8eade44e72
[ "MIT" ]
null
null
null
stable_baselines3/common/policies.py
wmmc88/stable-baselines3
97b81f9e9ee2e5ba7eb37328bbd21f8eade44e72
[ "MIT" ]
null
null
null
stable_baselines3/common/policies.py
wmmc88/stable-baselines3
97b81f9e9ee2e5ba7eb37328bbd21f8eade44e72
[ "MIT" ]
null
null
null
"""Policies: abstract base class and concrete implementations.""" import collections from abc import ABC, abstractmethod from functools import partial from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union import gym import numpy as np import torch as th from torch import nn from stable_baselines...
41.40266
127
0.665333
587e347973a571bdac490e8d58007836e41fe5e8
1,099
py
Python
treadmill/runtime/linux/image/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-03-20T07:13:33.000Z
2017-05-03T03:39:53.000Z
treadmill/runtime/linux/image/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
12
2017-07-10T07:04:06.000Z
2017-07-26T09:32:54.000Z
treadmill/runtime/linux/image/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-05-04T11:25:32.000Z
2017-07-11T09:10:01.000Z
"""Treadmill image.""" from treadmill import appcfg from . import native from . import tar def get_image_repo(tm_env, app_type): """Gets the image repository for the given app type or None if it is invalid. """ if app_type == appcfg.AppType.NATIVE: return native.NativeImageRepository(tm_env)...
21.98
72
0.616015
1b8aa33b788e2cde3dad6dd87d7f6543b1d0e51b
1,810
py
Python
tests/test_portability.py
leskin-in/liboqs
0e4885b56968a9958d7e2e2ff15fe972cefea84c
[ "MIT" ]
1
2021-02-27T06:18:00.000Z
2021-02-27T06:18:00.000Z
tests/test_portability.py
ArdeshirV/liboqs
fa9c2671ec146d4e107eb00d85a2c7b15d349246
[ "MIT" ]
1
2021-02-16T14:49:24.000Z
2021-02-16T14:49:24.000Z
tests/test_portability.py
ArdeshirV/liboqs
fa9c2671ec146d4e107eb00d85a2c7b15d349246
[ "MIT" ]
1
2021-03-13T16:59:13.000Z
2021-03-13T16:59:13.000Z
# SPDX-License-Identifier: MIT import helpers import pytest import platform from pathlib import Path MIN_CPUS = {} # set other CPU types for other architectures; Westmere supports cpuid but not avx2 MIN_CPUS["x86_64"] = "Westmere" def check_ubuntu(): try: with open("/etc/os-release") as f: for line...
32.321429
103
0.686188
ca84df8a50d205a95efc4456571a6ffbbc4c7d39
2,470
py
Python
object_detection/face_detection/detector.py
Machine-Learning-Tokyo/practical-ml-implementations
7df0217237301b99819c61454dc52c123f228978
[ "MIT" ]
18
2020-03-17T08:58:45.000Z
2022-03-11T16:48:35.000Z
object_detection/face_detection/detector.py
Machine-Learning-Tokyo/practical-ml-implementations
7df0217237301b99819c61454dc52c123f228978
[ "MIT" ]
null
null
null
object_detection/face_detection/detector.py
Machine-Learning-Tokyo/practical-ml-implementations
7df0217237301b99819c61454dc52c123f228978
[ "MIT" ]
4
2020-04-09T12:51:19.000Z
2021-02-15T08:46:27.000Z
import tensorflow as tf import numpy as np class Detector(object): def __init__(self, net_factory, data_size, batch_size, model_path): graph = tf.Graph() with graph.as_default(): self.image_op = tf.placeholder(tf.float32, shape=[batch_size, data_size, data_size, 3], name='input_image')...
43.333333
146
0.597976
3ff936eba863f7d35be997fafd17581de9c2b1b9
1,023
py
Python
configs/motiongan_v7_action_coh_fp_h36_config.py
magnux/MotionGAN
24b6fae02dda839411e15fef2bc2be4ff712b76f
[ "MIT" ]
39
2019-09-11T14:43:47.000Z
2022-03-22T18:08:33.000Z
configs/motiongan_v7_action_coh_fp_h36_config.py
etarakci-hvl/MotionGAN
24b6fae02dda839411e15fef2bc2be4ff712b76f
[ "MIT" ]
20
2019-10-10T10:52:40.000Z
2022-03-12T00:03:46.000Z
configs/motiongan_v7_action_coh_fp_h36_config.py
etarakci-hvl/MotionGAN
24b6fae02dda839411e15fef2bc2be4ff712b76f
[ "MIT" ]
6
2020-02-17T08:28:53.000Z
2022-03-07T05:48:35.000Z
{ # Datasets: MSRC12, NTURGBD 'data_set': 'Human36', 'data_set_version': 'v1', # Model version to train 'model_version': 'v7', # Body shape conservation loss 'shape_loss': True, # Rescale coords using skeleton average bone len # 'rescale_coords': True, # Translate sequence start...
29.228571
58
0.649071
2c2c5ac7e2894d65dcf34d8a45d9602d475f7b27
663
py
Python
tests/ldap_sync/action/conftest.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
18
2016-04-20T19:00:56.000Z
2021-12-19T16:43:57.000Z
tests/ldap_sync/action/conftest.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
461
2016-07-20T00:42:59.000Z
2022-03-25T17:03:07.000Z
tests/ldap_sync/action/conftest.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
15
2016-07-15T18:46:43.000Z
2021-03-17T20:08:39.000Z
import ldap3 import pytest from ldap_sync.record import dn_from_username @pytest.fixture(scope='class') def connection(): server = ldap3.Server('fake_server', get_info=ldap3.ALL) connection = ldap3.Connection(server, user='cn=test', password='pw', client_strategy=ldap3.MOCK_...
22.1
72
0.687783
c33fabac466d2ac4683de116bc43c2c2c5258ee0
9,054
py
Python
man_knife_terremark/source/conf.py
trinitronx/chef-docs
948d76fc0c0cffe17ed6b010274dd626f53584c2
[ "CC-BY-3.0" ]
1
2020-02-02T21:57:47.000Z
2020-02-02T21:57:47.000Z
man_knife_terremark/source/conf.py
trinitronx/chef-docs
948d76fc0c0cffe17ed6b010274dd626f53584c2
[ "CC-BY-3.0" ]
null
null
null
man_knife_terremark/source/conf.py
trinitronx/chef-docs
948d76fc0c0cffe17ed6b010274dd626f53584c2
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Chef documentation build configuration file, created by # sphinx-quickstart on Wed Feb 22 13:50:49 2012. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show th...
31.547038
80
0.712392
48960076f745ffdcde76a0ed6612dfa2cb82a062
1,333
py
Python
src/express-route-cross-connection/azext_expressroutecrossconnection/vendored_sdks/v2018_04_01/models/network_interface_association.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/express-route-cross-connection/azext_expressroutecrossconnection/vendored_sdks/v2018_04_01/models/network_interface_association.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/express-route-cross-connection/azext_expressroutecrossconnection/vendored_sdks/v2018_04_01/models/network_interface_association.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
32.512195
77
0.605401
6ef61f63d7cf7ceadabc522290238cb4f2fdb10d
5,367
py
Python
source code/2_createItemDatabase.py
lukasmuell3r/WikidataMetadataPatterns
0dd53b1acc5197d77dd9267bb0f637b661c1ccf1
[ "MIT" ]
null
null
null
source code/2_createItemDatabase.py
lukasmuell3r/WikidataMetadataPatterns
0dd53b1acc5197d77dd9267bb0f637b661c1ccf1
[ "MIT" ]
null
null
null
source code/2_createItemDatabase.py
lukasmuell3r/WikidataMetadataPatterns
0dd53b1acc5197d77dd9267bb0f637b661c1ccf1
[ "MIT" ]
null
null
null
import bz2 import csv import json import os import re # compile for efficient use grep_property_line = re.compile( '(^<wd:[Qq][^>]+>\s<p:[Pp](?!31>|279>)[^>]+>\s<wds:[Qq][^>]+>)') # to cache property p and wds node name to find all qualifiers, do not cache P31 or P279 lines, P31*** or P279*** will be matched :). ...
49.694444
203
0.625303
180b70f27c27b98b889980b73160404b8e3ec3c2
22,238
py
Python
autopkgtest/autopkgtest-4.4/lib/testdesc.py
dwks/egalito-artefact
ed11768b47fab6d15c74d3da58d4188eef75a783
[ "AFL-1.1" ]
2
2020-01-28T13:12:31.000Z
2021-08-24T05:47:18.000Z
autopkgtest/autopkgtest-4.4/lib/testdesc.py
dwks/egalito-artefact
ed11768b47fab6d15c74d3da58d4188eef75a783
[ "AFL-1.1" ]
null
null
null
autopkgtest/autopkgtest-4.4/lib/testdesc.py
dwks/egalito-artefact
ed11768b47fab6d15c74d3da58d4188eef75a783
[ "AFL-1.1" ]
1
2021-09-23T18:17:49.000Z
2021-09-23T18:17:49.000Z
# testdesc is part of autopkgtest # autopkgtest is a tool for testing Debian binary packages # # autopkgtest is Copyright (C) 2006-2014 Canonical Ltd. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
37.691525
85
0.573613
c5ac99ff84ba08f826d959e83b3f60a0ad05efb9
3,516
py
Python
training-code/nn_dropout.py
Deeptector/Deeptector
4a75200e56105131a26686a741744c018b37936d
[ "Apache-2.0" ]
12
2018-09-27T12:57:30.000Z
2021-02-24T21:21:11.000Z
training-code/nn_dropout.py
Deeptector/Deeptector
4a75200e56105131a26686a741744c018b37936d
[ "Apache-2.0" ]
1
2020-07-22T01:54:56.000Z
2020-07-22T01:54:56.000Z
training-code/nn_dropout.py
Deeptector/Deeptector
4a75200e56105131a26686a741744c018b37936d
[ "Apache-2.0" ]
11
2018-09-18T18:07:26.000Z
2021-07-10T13:46:31.000Z
# Lab 10 MNIST and Dropout import tensorflow as tf import numpy as np import random # import matplotlib.pyplot as plt tf.set_random_seed(777) # reproducibility xy = np.loadtxt('train_example.csv', delimiter=',', dtype=np.float32) x_data = xy[:, 0:-1] y_data = xy[:, -1] #output의 갯수!!!!!! nb_classes = 18 # 1:punch_...
32.256881
100
0.685438
52b039f7e5d876d6fcda21d325c06def56b82935
1,577
py
Python
api/reports/views.py
Egor4ik325/rankrise
c4377237c9afbdda365c01453f73151189129aa9
[ "MIT" ]
null
null
null
api/reports/views.py
Egor4ik325/rankrise
c4377237c9afbdda365c01453f73151189129aa9
[ "MIT" ]
null
null
null
api/reports/views.py
Egor4ik325/rankrise
c4377237c9afbdda365c01453f73151189129aa9
[ "MIT" ]
null
null
null
from dj_rest_auth.jwt_auth import JWTAuthentication from rest_framework import status from rest_framework.mixins import ( CreateModelMixin, DestroyModelMixin, ListModelMixin, RetrieveModelMixin, ) from rest_framework.permissions import SAFE_METHODS from rest_framework.response import Response from rest_...
28.672727
127
0.718453
34e1ec030f60e33062690678ba6641d2af8b2ef3
1,230
py
Python
eds/openmtc-gevent/futile/src/futile/os/mount.py
piyush82/elastest-device-emulator-service
b4d6b393d6042c54a7b3dfb5f58cad5efd00f0e7
[ "Apache-2.0" ]
null
null
null
eds/openmtc-gevent/futile/src/futile/os/mount.py
piyush82/elastest-device-emulator-service
b4d6b393d6042c54a7b3dfb5f58cad5efd00f0e7
[ "Apache-2.0" ]
null
null
null
eds/openmtc-gevent/futile/src/futile/os/mount.py
piyush82/elastest-device-emulator-service
b4d6b393d6042c54a7b3dfb5f58cad5efd00f0e7
[ "Apache-2.0" ]
null
null
null
''' Created on 24.01.2012 @author: kca ''' from ..path import Path from ..subprocess import check_output def umount(where, force = False): cmd = [ "umount", where ] if force: cmd.append("-f") check_output(cmd) unmount = umount def mount(what, where, fstype = None, options = None): return Mount(what, where, fs...
22.777778
81
0.656098
54a39a97884b5e4a50dcf1441205d63d8c366435
1,283
py
Python
utils/init.py
Flyfoxs/DFL-CNN
49ef653488aabbcc2495305d39b63f5f4c5093ea
[ "MIT" ]
251
2018-09-12T07:01:50.000Z
2022-01-22T03:55:58.000Z
utils/init.py
Flyfoxs/DFL-CNN
49ef653488aabbcc2495305d39b63f5f4c5093ea
[ "MIT" ]
17
2018-09-17T14:20:00.000Z
2020-12-14T12:04:37.000Z
utils/init.py
Flyfoxs/DFL-CNN
49ef653488aabbcc2495305d39b63f5f4c5093ea
[ "MIT" ]
59
2018-10-07T13:35:50.000Z
2021-12-29T09:11:00.000Z
from torch.nn import init def init_net(net, init_type='normal'): init_weights(net, init_type) return net def init_weights(net, init_type='normal', gain=0.02): def init_func(m): # this will apply to each layer classname = m.__class__.__name__ if hasattr(m, 'weight') and (cla...
45.821429
103
0.576773
4d4c859006a74f50a8ce276b105f11eb4895d8e2
4,199
py
Python
dephell/repositories/_local.py
jayvdb/dephell
b9a7f596a11aa383a2962c64db08324b60f623bd
[ "MIT" ]
1,880
2019-03-21T10:08:25.000Z
2022-03-31T12:41:55.000Z
dephell/repositories/_local.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
356
2019-03-21T19:08:56.000Z
2021-01-08T17:45:43.000Z
dephell/repositories/_local.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
157
2019-04-23T01:13:37.000Z
2022-03-24T22:41:18.000Z
# built-in from datetime import datetime from pathlib import Path from typing import Optional, Tuple, Union # app from ..cache import RequirementsCache from ..config import Config from ..constants import FILES from ..models.release import Release from ._warehouse import WarehouseLocalRepo from .base import Interface ...
34.702479
100
0.576328
d5d27ca01ad32551b13eff257832ae7b33e86a73
2,251
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/delete_scaling_notification_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/delete_scaling_notification_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/delete_scaling_notification_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class DeleteScalingNotificationResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attrib...
27.45122
84
0.546868
547a330139f46d559f4c777c905634d91b6ef6c9
5,390
py
Python
metrics/metrics.py
neurips2021vat/Variance-Aware-Training
2dcd017ef06e81e299448bdd9da65fa682835127
[ "BSD-2-Clause" ]
null
null
null
metrics/metrics.py
neurips2021vat/Variance-Aware-Training
2dcd017ef06e81e299448bdd9da65fa682835127
[ "BSD-2-Clause" ]
null
null
null
metrics/metrics.py
neurips2021vat/Variance-Aware-Training
2dcd017ef06e81e299448bdd9da65fa682835127
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from sklearn.metrics import multilabel_confusion_matrix, roc_auc_score from skll.metrics import kappa from sklearn.metrics import mean_squared_error as mse from mean_average_precision import MetricBuilder class Dice_score: def __init__(self, n_classes: int = 2, exclude_class: int = 0): ...
26.038647
108
0.553247
3b22eecdab55b0d1bb5cb0111cd14b4fdfd05570
4,749
py
Python
sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager_aio.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager_aio.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager_aio.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import pyte...
37.992
99
0.698252
912ca03f8e8e389b8ee4103e60e3a38bcd3a08fa
750
py
Python
sandbox/apps/oauth/admin.py
aiegoo/django-blog
f1c1de7435336825c97d6d1d030c53df400af73c
[ "BSD-3-Clause" ]
null
null
null
sandbox/apps/oauth/admin.py
aiegoo/django-blog
f1c1de7435336825c97d6d1d030c53df400af73c
[ "BSD-3-Clause" ]
null
null
null
sandbox/apps/oauth/admin.py
aiegoo/django-blog
f1c1de7435336825c97d6d1d030c53df400af73c
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import Ouser @admin.register(Ouser) class OuserAdmin(UserAdmin): list_display = ('username', 'email', 'is_staff', 'is_active', 'date_joined') fieldsets = ( ('basic information', {'fields': (('username', 'emai...
41.666667
90
0.625333
be568137447afc13886a2b53aed7f2ea51366249
2,009
py
Python
S2l/Thesis_Ch3/Real_robot_exp/exp2_exp3/plotter_taskcompletion_bar.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
null
null
null
S2l/Thesis_Ch3/Real_robot_exp/exp2_exp3/plotter_taskcompletion_bar.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
null
null
null
S2l/Thesis_Ch3/Real_robot_exp/exp2_exp3/plotter_taskcompletion_bar.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
null
null
null
#### For plotting task completion rates in bar plot for simulation experiments import numpy as np import matplotlib.pyplot as plt import matplotlib import matplotlib.pyplot as plt matplotlib.style.use('ggplot') def mean_std(rate1,rate2): mean=np.mean([rate1,rate2]) std=np.std([rate1,rate2]) return mean,std ...
30.439394
111
0.599801
327f8e9eafdce37911559999e8a3c2a9eb44581a
799
py
Python
project/urls.py
easthermutheumwengei/my-gallery
8ffdabf546c5df44e7febbaedd9cdd5c0f395cc8
[ "MIT" ]
null
null
null
project/urls.py
easthermutheumwengei/my-gallery
8ffdabf546c5df44e7febbaedd9cdd5c0f395cc8
[ "MIT" ]
null
null
null
project/urls.py
easthermutheumwengei/my-gallery
8ffdabf546c5df44e7febbaedd9cdd5c0f395cc8
[ "MIT" ]
null
null
null
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
34.73913
77
0.703379
47a9b452746b609e674b2d0de6370ba4be19ad75
7,040
py
Python
include/server/bw/handlers/games.py
spacebeam/bw
8f975a2925f309b0038c876f1234595df9798c98
[ "Apache-2.0" ]
2
2019-10-30T04:26:21.000Z
2019-10-31T17:26:59.000Z
include/server/bw/handlers/games.py
spacebeam/bw
8f975a2925f309b0038c876f1234595df9798c98
[ "Apache-2.0" ]
22
2019-08-21T17:13:45.000Z
2020-08-06T00:38:56.000Z
include/server/bw/handlers/games.py
spacebeam/bw
8f975a2925f309b0038c876f1234595df9798c98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of bw. # Distributed under the terms of the last AGPL License. __author__ = 'Jean Chassoul' import logging from tornado import gen from bw.schemas import games as models from bw.systems import games from bw.tools import check_json from bw.handlers import BaseHandler fr...
33.051643
78
0.509659
37fc3a785e87eef4fc2bcfad146a23b3fa6f4748
3,447
py
Python
custom_components/anniversaries/const.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
163
2020-08-01T12:19:46.000Z
2022-03-28T09:04:57.000Z
custom_components/anniversaries/const.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
81
2020-08-04T00:28:46.000Z
2022-03-29T15:48:51.000Z
custom_components/anniversaries/const.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
28
2020-08-02T12:02:24.000Z
2022-03-22T00:07:34.000Z
""" Constants """ from typing import Optional import voluptuous as vol from datetime import datetime import homeassistant.helpers.config_validation as cv from homeassistant.const import CONF_NAME # Base component constants DOMAIN = "anniversaries" DOMAIN_DATA = f"{DOMAIN}_data" VERSION = "4.4.2" PLATFORM = "sensor" I...
32.518868
110
0.747026
821d42b09e60d257777dda4f40587c4b7584191d
2,561
py
Python
examples/flask-echo/app_with_handler.py
bocheng47/LINE_bocheng
87c0e605bd922ae2002f103ff16f0b0707794b50
[ "Apache-2.0" ]
null
null
null
examples/flask-echo/app_with_handler.py
bocheng47/LINE_bocheng
87c0e605bd922ae2002f103ff16f0b0707794b50
[ "Apache-2.0" ]
null
null
null
examples/flask-echo/app_with_handler.py
bocheng47/LINE_bocheng
87c0e605bd922ae2002f103ff16f0b0707794b50
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.617284
214
0.738774
056e1b6b2af32108cd44079b869c8b1339636bd7
1,878
py
Python
PyOpenGl/torus.py
kirillzx/Geometry-and-Visualization-
3cf3e47268eac7b2a389f6f18b1d2e3503e9d13a
[ "MIT" ]
null
null
null
PyOpenGl/torus.py
kirillzx/Geometry-and-Visualization-
3cf3e47268eac7b2a389f6f18b1d2e3503e9d13a
[ "MIT" ]
null
null
null
PyOpenGl/torus.py
kirillzx/Geometry-and-Visualization-
3cf3e47268eac7b2a389f6f18b1d2e3503e9d13a
[ "MIT" ]
null
null
null
from math import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * # Процедура инициализации def init(): glEnable(GL_DEPTH_TEST) glClearColor(0.5, 0.5, 0.5, 1.0) # Серый цвет для первоначальной закраски gluOrtho2D(-1.0, 1.0, -1.0, 1.0) # Определяем границы рисования по горизонтал...
30.786885
102
0.614483
4ebd679ea7859b34072c8df48f22a9b4088df33f
30,163
py
Python
atomai/models/dgm/vae.py
aghosh92/atomai
9a9fd7a4cff7dc9b5af9fcc5b1a4b3894c9df685
[ "MIT" ]
null
null
null
atomai/models/dgm/vae.py
aghosh92/atomai
9a9fd7a4cff7dc9b5af9fcc5b1a4b3894c9df685
[ "MIT" ]
null
null
null
atomai/models/dgm/vae.py
aghosh92/atomai
9a9fd7a4cff7dc9b5af9fcc5b1a4b3894c9df685
[ "MIT" ]
null
null
null
""" vae.py ======= Module for analysis of system "building blocks" with variational autoencoders Created by Maxim Ziatdinov (email: maxim.ziatdinov@ai4microscopy.com) """ import os from copy import deepcopy as dc from typing import Dict, List, Optional, Tuple, Union import matplotlib.pyplot as plt import numpy as n...
40.650943
152
0.55515
2d6aa3889097c494ad5b49f8b5bf9e4a2454f8ed
2,034
py
Python
src/tests/json_processor_validation_test.py
sergicollado/json_redo
89ed514e441f7038f18fe1833f2c49a4bf08ef19
[ "CC0-1.0" ]
null
null
null
src/tests/json_processor_validation_test.py
sergicollado/json_redo
89ed514e441f7038f18fe1833f2c49a4bf08ef19
[ "CC0-1.0" ]
null
null
null
src/tests/json_processor_validation_test.py
sergicollado/json_redo
89ed514e441f7038f18fe1833f2c49a4bf08ef19
[ "CC0-1.0" ]
null
null
null
import pytest from infrastructure.message_client import MessageClient from application_layer.json_processor import JsonProcessor from infrastructure.processed_data_repository import ProcessedDataRepository @pytest.fixture def processed_repository(): repository = ProcessedDataRepository() yield repository ...
35.068966
137
0.806785
fbbc8b89c983453d12e7391785752d18bb7ccfc7
93
py
Python
runtime/python/Lib/curses/panel.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
Thonny/Lib/curses/panel.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
Thonny/Lib/curses/panel.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
"""curses.panel Module for using panels with curses. """ from _curses_panel import *
13.285714
37
0.688172
10a8bf9c8c76b604e4b32b3941a8b10e99a65bdb
289
py
Python
manage.py
MatanAvitan/React-Redux-Flask-MongoDB
499dc5d2ef5787f0a0d3583f9f1354ce1b4bcc1f
[ "MIT" ]
14
2017-03-04T14:25:18.000Z
2021-02-23T05:10:50.000Z
manage.py
MatanAvitan/React-Redux-Flask-MongoDB
499dc5d2ef5787f0a0d3583f9f1354ce1b4bcc1f
[ "MIT" ]
null
null
null
manage.py
MatanAvitan/React-Redux-Flask-MongoDB
499dc5d2ef5787f0a0d3583f9f1354ce1b4bcc1f
[ "MIT" ]
9
2017-12-02T17:32:41.000Z
2021-03-15T20:02:05.000Z
from flask_script import Server, Manager, Shell from application.app import app, db manager = Manager(app) manager.add_command('runserver', Server()) manager.add_command('shell', Shell(make_context=lambda: { 'app': app, 'db': db })) if __name__ == '__main__': manager.run()
20.642857
57
0.702422
2eb7d89d6921edca7c8c518f1ec6caff0428e41b
1,693
py
Python
api/main.py
GabrielPila/twitter-extractor
1ec983815a8a0603c3b911b87242ee5b3f9ecdd3
[ "MIT" ]
2
2022-02-15T17:11:26.000Z
2022-02-20T02:47:42.000Z
api/main.py
GabrielPila/twitter-extractor
1ec983815a8a0603c3b911b87242ee5b3f9ecdd3
[ "MIT" ]
null
null
null
api/main.py
GabrielPila/twitter-extractor
1ec983815a8a0603c3b911b87242ee5b3f9ecdd3
[ "MIT" ]
null
null
null
import requests import os import json import pandas as pd import datetime from tqdm import tqdm from settings import BEARER_TOKEN from params import search_url, keyword, start_time, max_results, step_time, num_steps from utils import create_headers, create_url, connect_to_endpoint #Inputs for the request bearer_toke...
32.557692
93
0.711164
908d0199df218cd3d8f8f42b1fcd198484b1e68a
15,609
py
Python
sdk/storage/azure-storage-blob/tests/test_largest_block_blob_async.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storage/azure-storage-blob/tests/test_largest_block_blob_async.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/tests/test_largest_block_blob_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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. # --------------------------------------------------------------------...
40.754569
130
0.670703
c4c88b9ccabd1f50b7c7e07a70d4a5952d475189
3,007
py
Python
tests/conftest.py
ofek/hatch-vcs
c5388d67192d9bf88191927a35f51705121784a1
[ "MIT" ]
null
null
null
tests/conftest.py
ofek/hatch-vcs
c5388d67192d9bf88191927a35f51705121784a1
[ "MIT" ]
1
2022-03-08T04:07:09.000Z
2022-03-18T05:41:17.000Z
tests/conftest.py
ofek/hatch-vcs
c5388d67192d9bf88191927a35f51705121784a1
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2022-present Ofek Lev <oss@ofek.dev> # # SPDX-License-Identifier: MIT import errno import os import shutil import stat import tempfile from contextlib import contextmanager import pytest from .utils import create_file, git, write_file def handle_remove_readonly(func, path, exc): # no cov ...
22.609023
85
0.648487
099f46f6b27f1a57cb9e8e5dd18e0e07a7b58bb6
1,190
py
Python
pyCs/lab1/token_parser.py
kinpa200296/TM_labs
a0d69c6318e774f418f478f65dcfd8fbc684e51f
[ "MIT" ]
null
null
null
pyCs/lab1/token_parser.py
kinpa200296/TM_labs
a0d69c6318e774f418f478f65dcfd8fbc684e51f
[ "MIT" ]
null
null
null
pyCs/lab1/token_parser.py
kinpa200296/TM_labs
a0d69c6318e774f418f478f65dcfd8fbc684e51f
[ "MIT" ]
null
null
null
import re from token import Token class TokenParser(object): def __init__(self, token_name, templates): if not isinstance(token_name, unicode): raise ValueError('token_name should be a unicode string') if not isinstance(templates, list): raise ValueError('templates should ...
36.060606
93
0.603361
06ed0a90e896f0fa5f12a1f905bafd87bedce07e
9
py
Python
traitor/__init__.py
Nalisarc/BetrayalClone
51086f3d56ec3ab702f479ffd718084b4f2b7212
[ "MIT" ]
null
null
null
traitor/__init__.py
Nalisarc/BetrayalClone
51086f3d56ec3ab702f479ffd718084b4f2b7212
[ "MIT" ]
null
null
null
traitor/__init__.py
Nalisarc/BetrayalClone
51086f3d56ec3ab702f479ffd718084b4f2b7212
[ "MIT" ]
null
null
null
## blank
4.5
8
0.555556
a4ffedb6e998eae3f47fe49e488fcb9c834d9f21
31,072
py
Python
rootfs/usr/lib/python2.7/smtplib.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python2.7/smtplib.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python2.7/smtplib.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
#! /usr/bin/python2.7 '''SMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP Authentication) and RFC 2487 (Secure SMTP over TLS). Notes: Please remember, when doing ESMTP, that the names of the SMTP service extensions are NOT the same thing as the option keywords for the RCP...
36.214452
89
0.58535
721386113a03edf930ab99b59a5b51bcb05373f2
598
py
Python
DetectorDescription/Core/python/test/DDAngularXML_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DetectorDescription/Core/python/test/DDAngularXML_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DetectorDescription/Core/python/test/DDAngularXML_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource", geomXMLFiles = cms.vstring('DetectorDescription/Core/test/data/materials.xml', 'DetectorDescription/Cor...
66.444444
119
0.473244
031633c317f010c14bb1e891836ea1bc86ec0f08
2,839
py
Python
language-modeling/fast_transformers/recurrent/attention/cross_attention/.ipynb_checkpoints/linear_attention-checkpoint.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
5
2021-11-06T16:10:31.000Z
2021-12-25T19:47:42.000Z
language-modeling/fast_transformers/recurrent/attention/cross_attention/.ipynb_checkpoints/linear_attention-checkpoint.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
null
null
null
language-modeling/fast_transformers/recurrent/attention/cross_attention/.ipynb_checkpoints/linear_attention-checkpoint.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
2
2021-11-30T03:36:54.000Z
2021-12-25T19:49:58.000Z
"""Implement unmasked linear attention as a recurrent cross attention module to speed up autoregressive decoding.""" import torch from torch.nn import Module from ....attention_registry import RecurrentCrossAttentionRegistry, Optional, Int, \ Callable, EventDispatcherInstance from ....events import EventDispatche...
37.853333
84
0.659035
39bb4dbcc8146ace37697ba580b46c588e53e49f
5,857
py
Python
utils/lmdb.py
raghuch/SABER
fb0f26152b009f923aaf572cef80940f2f256330
[ "MIT" ]
5
2019-11-22T12:42:38.000Z
2020-07-14T14:51:47.000Z
utils/lmdb.py
raghuch/SABER
fb0f26152b009f923aaf572cef80940f2f256330
[ "MIT" ]
null
null
null
utils/lmdb.py
raghuch/SABER
fb0f26152b009f923aaf572cef80940f2f256330
[ "MIT" ]
1
2021-02-02T08:43:00.000Z
2021-02-02T08:43:00.000Z
import sys import os import lmdb # install lmdb by "pip install lmdb" import cv2 import numpy as np import msgpack from bisect import bisect_right import msgpack_numpy as m from torch.utils.data import Dataset from tqdm import tqdm from utils.logger import logger from joblib import Parallel, delayed from utils.config i...
40.393103
198
0.651016
997013f433286a434be0bc62644d89db7ecaf942
346
py
Python
PYTHON/Py3_Mundo1_Fundamental/desafios/des001.py
Marciobroficial/CURSO-EM-VIDEO
37b10c26336a9744236603282af77661fdf8c61a
[ "MIT" ]
1
2021-10-09T18:11:20.000Z
2021-10-09T18:11:20.000Z
PYTHON/Py3_Mundo1_Fundamental/desafios/des001.py
Coppini21/CURSO-EM-VIDEO
37b10c26336a9744236603282af77661fdf8c61a
[ "MIT" ]
1
2021-09-15T04:18:34.000Z
2022-03-02T23:16:26.000Z
PYTHON/Py3_Mundo1_Fundamental/desafios/des001.py
Coppini21/CURSO-EM-VIDEO
37b10c26336a9744236603282af77661fdf8c61a
[ "MIT" ]
3
2021-12-15T17:19:51.000Z
2022-03-29T02:19:00.000Z
# Desafio 01 # Faça um programa Leia um nome de uma pessoa e que mostre uma mensagem de boas-vidas de acordo com o valor digitado. print() print('=-='*15) nome = input ('Qual é sue nome ? ') print ('Ola',nome,'Prazer em te conhecer!') nome = input('Digite seu nome: ') print('É um prazer te conhecer, {}!'.format(nome)...
26.615385
117
0.67052
75660e4d0dc764a32b1346f742fdcf634d787ae9
18,052
py
Python
checkov/terraform/runner.py
shubh-cs29/checkov
36b93391ef369ad3bcf936e2b1d06109bf9f38c9
[ "Apache-2.0" ]
5
2021-07-29T18:08:40.000Z
2022-03-21T04:39:32.000Z
checkov/terraform/runner.py
shubh-cs29/checkov
36b93391ef369ad3bcf936e2b1d06109bf9f38c9
[ "Apache-2.0" ]
null
null
null
checkov/terraform/runner.py
shubh-cs29/checkov
36b93391ef369ad3bcf936e2b1d06109bf9f38c9
[ "Apache-2.0" ]
2
2021-08-23T13:25:36.000Z
2021-11-05T21:44:52.000Z
import copy import dataclasses import logging import os from typing import Dict, Optional, Tuple, List import dpath.util from checkov.common.graph.db_connectors.networkx.networkx_db_connector import NetworkxConnector from checkov.common.models.enums import CheckResult from checkov.common.output.graph_record import Gr...
55.204893
148
0.632617
c415ce38efd5c8dd7391a363d7b3930dcda37c79
1,548
py
Python
scripts/automation/tests/verify_dependencies.py
henrypan/azure-cli
8de0ab5216ed3dc700546ae9a3c485710322376b
[ "MIT" ]
null
null
null
scripts/automation/tests/verify_dependencies.py
henrypan/azure-cli
8de0ab5216ed3dc700546ae9a3c485710322376b
[ "MIT" ]
null
null
null
scripts/automation/tests/verify_dependencies.py
henrypan/azure-cli
8de0ab5216ed3dc700546ae9a3c485710322376b
[ "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. # --------------------------------------------------------------------...
40.736842
124
0.588501
443924889fb2bc02902f4276bdfdab0574a5167f
493
py
Python
lbry/lbry/wallet/__init__.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/lbry/wallet/__init__.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/lbry/wallet/__init__.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
__node_daemon__ = 'lbrycrdd' __node_cli__ = 'lbrycrd-cli' __node_bin__ = '' __node_url__ = ( 'https://github.com/lbryio/lbrycrd/releases/download/v0.17.2.1/lbrycrd-linux.zip' # 'https://github.com/lbryio/lbrycrd/releases/download/v0.17.3.1/lbrycrd-linux-1731.zip' ) __spvserver__ = 'lbry.wallet.server.coin.LBCRe...
37.923077
92
0.78499
2b843788bf2f7a7b77501d3b0341573d25fb5ffb
12,946
py
Python
ppcls/arch/backbone/model_zoo/xception.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
3,763
2020-04-10T04:48:11.000Z
2022-03-31T13:24:37.000Z
ppcls/arch/backbone/model_zoo/xception.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
633
2020-04-08T18:27:31.000Z
2022-03-31T01:09:43.000Z
ppcls/arch/backbone/model_zoo/xception.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
846
2020-04-08T08:13:18.000Z
2022-03-31T12:28:37.000Z
import paddle from paddle import ParamAttr import paddle.nn as nn import paddle.nn.functional as F from paddle.nn import Conv2D, BatchNorm, Linear, Dropout from paddle.nn import AdaptiveAvgPool2D, MaxPool2D, AvgPool2D from paddle.nn.initializer import Uniform import math import sys from ppcls.utils.save_load import lo...
34.248677
95
0.593465
ba6edae7df10d2a55e3a7d2662804a2f5fa446e1
3,506
py
Python
qa/rpc-tests/p2p-timeouts.py
ocminer/kreds-core
94d550c68c0829a190c6ad676e08075bfcfa8ac0
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-timeouts.py
ocminer/kreds-core
94d550c68c0829a190c6ad676e08075bfcfa8ac0
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-timeouts.py
ocminer/kreds-core
94d550c68c0829a190c6ad676e08075bfcfa8ac0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Kreds Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ TimeoutsTest -- test various net timeouts (only in extended tests) - Create three kredsd nodes: no_verack_no...
33.711538
119
0.695379
7a243f85c12f390f194eb9478baef6452e978bd4
1,136
py
Python
AutomatedTesting/Gem/PythonTests/EditorPythonBindings/MainWindowCommands_test.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
AutomatedTesting/Gem/PythonTests/EditorPythonBindings/MainWindowCommands_test.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/EditorPythonBindings/MainWindowCommands_test.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # # This is a pytest module to test the in-Editor Python API from PythonEditorFuncs # import pytest pytest.impo...
30.702703
155
0.729754
4880fa5177ccd74a72ebbbcef4e83f1b4a7ced97
5,477
py
Python
model_measuring/kamal/amalgamation/layerwise_amalgamation.py
Gouzhong1223/Dubhe
8959a51704410dc38b595a0926646b9928451c9a
[ "Apache-2.0" ]
1
2022-01-11T07:14:37.000Z
2022-01-11T07:14:37.000Z
model_measuring/kamal/amalgamation/layerwise_amalgamation.py
Gouzhong1223/Dubhe
8959a51704410dc38b595a0926646b9928451c9a
[ "Apache-2.0" ]
1
2022-03-04T07:19:43.000Z
2022-03-04T07:19:43.000Z
model_measuring/kamal/amalgamation/layerwise_amalgamation.py
Gouzhong1223/Dubhe
8959a51704410dc38b595a0926646b9928451c9a
[ "Apache-2.0" ]
1
2022-03-20T13:09:14.000Z
2022-03-20T13:09:14.000Z
""" Copyright 2020 Tianshu AI Platform. 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 ...
41.492424
152
0.629907
b6c654f5da3700b4f48b69aa8f2a1ac6593a567a
945
py
Python
image_assets/signals.py
alfa24/django-image-assets
053e7a6792b74771b02ebffc7fc983fdc6d8d299
[ "MIT" ]
1
2021-12-26T02:54:38.000Z
2021-12-26T02:54:38.000Z
image_assets/signals.py
alfa24/django-image-assets
053e7a6792b74771b02ebffc7fc983fdc6d8d299
[ "MIT" ]
80
2020-03-18T14:58:12.000Z
2022-02-03T07:55:08.000Z
image_assets/signals.py
alfa24/django-image-assets
053e7a6792b74771b02ebffc7fc983fdc6d8d299
[ "MIT" ]
2
2020-03-18T14:26:34.000Z
2021-11-10T14:14:29.000Z
from typing import Type from django.db.models.signals import pre_delete from django.dispatch import receiver from image_assets import models # noinspection PyUnusedLocal @receiver(pre_delete, sender=models.get_asset_model()) def move_asset_file_to_deleted_asset( sender, *, instance: models.Asset, **kwargs):...
32.586207
79
0.749206
a88b462279343f8f758b4256ccbff84f7c8491a8
27,377
py
Python
tensorflow_probability/python/experimental/mcmc/particle_filter.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
2
2019-10-30T04:45:07.000Z
2019-10-30T04:45:08.000Z
tensorflow_probability/python/experimental/mcmc/particle_filter.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/particle_filter.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
47.039519
116
0.697666
753897d01619da9ccabc579df1bca9c3e88b485b
4,284
py
Python
plugin.video.plexodus/resources/lib/modules/playlist.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
1
2020-03-03T10:01:21.000Z
2020-03-03T10:01:21.000Z
plugin.video.plexodus/resources/lib/modules/playlist.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
plugin.video.plexodus/resources/lib/modules/playlist.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ plexOdus Add-on """ import json, xbmcgui, xbmc from resources.lib.modules import control, cleantitle from resources.lib.extensions import tools Id = xbmc.PLAYLIST_VIDEO videoplaylist = 10028 notification = True refresh = True def playlistManager(name = None, url = None, meta = No...
31.970149
143
0.592204
d5346075f5f5660543c137e0424570efc730d600
4,745
py
Python
bigml/api_handlers/topicdistributionhandler.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
bigml/api_handlers/topicdistributionhandler.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
3
2022-03-29T17:54:19.000Z
2022-03-29T17:54:42.000Z
bigml/api_handlers/topicdistributionhandler.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2016-2022 BigML # # 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 ...
38.266129
79
0.6451
c8a9d13c5cc17aeb1876cd7ab9891d7c1c89b509
70,339
py
Python
packages/python/plotly/plotly/graph_objs/volume/_colorbar.py
reservoirinvest/plotly.py
73651942b51587086da1eee53f67995f28d68ee3
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
packages/python/plotly/plotly/graph_objs/volume/_colorbar.py
reservoirinvest/plotly.py
73651942b51587086da1eee53f67995f28d68ee3
[ "MIT" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
packages/python/plotly/plotly/graph_objs/volume/_colorbar.py
reservoirinvest/plotly.py
73651942b51587086da1eee53f67995f28d68ee3
[ "MIT" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "volume" _path_str = "volume.colorbar" _valid_props = { "bgcolor", "borderc...
35.632725
92
0.556604
bd5fa11c7fdd37a3aed65e592b6886abeeaf73b2
11,444
py
Python
flink-ai-flow/examples/python_examples/sklearn_batch_train_stream_predict/python_codes/batch_train_stream_predict_executor.py
shanshanpt/flink-ai-extended
c9f4a980ac229188a2bc09558952f7e0085bda70
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-06-03T05:37:21.000Z
2021-06-03T05:37:21.000Z
flink-ai-flow/examples/python_examples/sklearn_batch_train_stream_predict/python_codes/batch_train_stream_predict_executor.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
flink-ai-flow/examples/python_examples/sklearn_batch_train_stream_predict/python_codes/batch_train_stream_predict_executor.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # 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...
40.871429
119
0.673366
c032bf2984693db1ee8a5f1362510868626f63fd
265
py
Python
custom_user/serializers.py
manoj-makkuboy/feed-ninja
339bac6f24f9bf968e5cd0d83eb71e36d7c525cd
[ "MIT" ]
null
null
null
custom_user/serializers.py
manoj-makkuboy/feed-ninja
339bac6f24f9bf968e5cd0d83eb71e36d7c525cd
[ "MIT" ]
null
null
null
custom_user/serializers.py
manoj-makkuboy/feed-ninja
339bac6f24f9bf968e5cd0d83eb71e36d7c525cd
[ "MIT" ]
null
null
null
# from django.contrib.auth.models import User from custom_user.models import CustomUser from rest_framework.serializers import ModelSerializer class CustomUserSerializer(ModelSerializer): class Meta: model = CustomUser fields = ('location',)
24.090909
54
0.762264
ee24fc69b8ef9a82a9723220f471d7146cceaedd
9,270
py
Python
maml/datasets.py
nmi-lab/pytorch-maml
86f09531ac1618619be97acebbedaca14a3d09ac
[ "MIT" ]
null
null
null
maml/datasets.py
nmi-lab/pytorch-maml
86f09531ac1618619be97acebbedaca14a3d09ac
[ "MIT" ]
null
null
null
maml/datasets.py
nmi-lab/pytorch-maml
86f09531ac1618619be97acebbedaca14a3d09ac
[ "MIT" ]
null
null
null
import torch.nn.functional as F from collections import namedtuple from torchmeta.datasets import Omniglot, MiniImagenet from torchmeta.toy import Sinusoid from torchmeta.transforms import ClassSplitter, Categorical, Rotation from torchvision.transforms import ToTensor, Resize, Compose from maml.model import ModelCon...
52.372881
271
0.591262
baccb6816ec40cfef7ee90ba3d603e581eadb797
86
py
Python
src/pyaid/tests/__init__.py
jddecarlo/pyaid
c9ff224ece4fd890be2355991309179ee8a6a5bd
[ "MIT" ]
null
null
null
src/pyaid/tests/__init__.py
jddecarlo/pyaid
c9ff224ece4fd890be2355991309179ee8a6a5bd
[ "MIT" ]
null
null
null
src/pyaid/tests/__init__.py
jddecarlo/pyaid
c9ff224ece4fd890be2355991309179ee8a6a5bd
[ "MIT" ]
null
null
null
"""Initializes the pyaid.tests module. Add any necessary initialization code here."""
43
85
0.77907
45844f2688cd673b9ad019a8de32eb1bcf42d246
4,087
py
Python
param_teller/parameter_store.py
chanzuckerberg/param-teller
6c69bd619a80fbb1a1141be679a80c2c7db258b1
[ "MIT" ]
null
null
null
param_teller/parameter_store.py
chanzuckerberg/param-teller
6c69bd619a80fbb1a1141be679a80c2c7db258b1
[ "MIT" ]
null
null
null
param_teller/parameter_store.py
chanzuckerberg/param-teller
6c69bd619a80fbb1a1141be679a80c2c7db258b1
[ "MIT" ]
null
null
null
import botocore from boto3 import client class ParameterStore(object): """ Retrieves parameters from AWS Parameter Store. """ def __init__(self, ssm_client=None, with_decryption=True): # type: (botocore.client.SSM, bool) -> None """ Initialize new parameter store client. ...
31.198473
114
0.569366
bf8d31d8575f5619aa685620ad89c32e5c52fca3
5,857
py
Python
nomen-fileren.py
urbanware-org/nomen
61febef80fe8ebc80e9a4b407e92510c64d58649
[ "MIT" ]
null
null
null
nomen-fileren.py
urbanware-org/nomen
61febef80fe8ebc80e9a4b407e92510c64d58649
[ "MIT" ]
1
2020-09-02T19:16:39.000Z
2020-09-02T19:16:39.000Z
nomen-fileren.py
urbanware-org/nomen
61febef80fe8ebc80e9a4b407e92510c64d58649
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================ # Nomen - Multi-purpose rename tool # File Renamer script # Copyright (C) 2018 by Ralf Kilian # Distributed under the MIT License (https://opensource.org/licenses/MIT) # # GitHub: https://githu...
44.371212
78
0.574868
da463d1b889b5ee9690553465f915ed8c0ef8d2c
1,166
py
Python
usbhid_dump.py
dale-taylor/py-usbhid-dump-stream
bfaf4f64d6fc0ecc8d18aa2549e43dc4e6b9f184
[ "MIT" ]
null
null
null
usbhid_dump.py
dale-taylor/py-usbhid-dump-stream
bfaf4f64d6fc0ecc8d18aa2549e43dc4e6b9f184
[ "MIT" ]
null
null
null
usbhid_dump.py
dale-taylor/py-usbhid-dump-stream
bfaf4f64d6fc0ecc8d18aa2549e43dc4e6b9f184
[ "MIT" ]
null
null
null
import subprocess import re import shlex def dump_stream(bus, devices, timeout, callback): if len(devices) == 1: dev = devices[0] else: dev = 0 cmd = "usbhid-dump -a {}:{} -es -t {}".format(bus, dev, timeout) process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) la...
25.347826
96
0.64837
4e87358ea1aca3353a3a695ce5c21f61e2ba45c4
4,006
py
Python
clinicadl/clinicadl/tools/tsv/tsv_utils.py
yogeshmj/AD-DL
76b9b564061581effe8f3698992bfea3ffb055fa
[ "MIT" ]
112
2019-10-21T14:50:35.000Z
2022-03-29T03:15:47.000Z
clinicadl/clinicadl/tools/tsv/tsv_utils.py
yogeshmj/AD-DL
76b9b564061581effe8f3698992bfea3ffb055fa
[ "MIT" ]
136
2019-10-17T17:40:55.000Z
2021-06-30T14:53:29.000Z
clinicadl/clinicadl/tools/tsv/tsv_utils.py
yogeshmj/AD-DL
76b9b564061581effe8f3698992bfea3ffb055fa
[ "MIT" ]
49
2019-11-26T13:57:52.000Z
2022-03-20T13:17:42.000Z
# coding: utf8 from copy import copy import numpy as np import pandas as pd def neighbour_session(session, session_list, neighbour): if session not in session_list: temp_list = session_list + [session] temp_list.sort() else: temp_list = copy(session_list) temp_list.sort() ...
31.793651
111
0.65976
47948ff300d1ad508eb1cb083fbee1afef8e3d4a
28,184
py
Python
python_modules/dagster/dagster_tests/core_tests/config_types_tests/test_config_type_system.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/config_types_tests/test_config_type_system.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/config_types_tests/test_config_type_system.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
import re import typing import pytest from dagster import ( Any, DagsterInvalidConfigDefinitionError, DagsterInvalidConfigError, DagsterInvalidDefinitionError, Field, Float, Int, List, ModeDefinition, Noneable, Permissive, PipelineDefinition, ResourceDefinition, ...
30.634783
148
0.662255
293d5187ca5b3531f4e4f0804e974028c28b7bb1
955
py
Python
src/SemBrain/Drivers/BaseServo.py
trkelch/sem
58abdbbaa8ac5f6b4e57b5f5ee890b3258203573
[ "Unlicense" ]
null
null
null
src/SemBrain/Drivers/BaseServo.py
trkelch/sem
58abdbbaa8ac5f6b4e57b5f5ee890b3258203573
[ "Unlicense" ]
null
null
null
src/SemBrain/Drivers/BaseServo.py
trkelch/sem
58abdbbaa8ac5f6b4e57b5f5ee890b3258203573
[ "Unlicense" ]
null
null
null
from abc import ABCMeta, abstractmethod import logging class IServo: __metaclass__ = ABCMeta @classmethod def version(self): return "1.0" @abstractmethod def show(self): raise NotImplementedError @abstractmethod def ConfigServo(self, frequency, leftPulseWidth, rightPulseWidth): raise NotIm...
34.107143
96
0.696335
6ca071756ecdb751b7d087674977b5a6a3cdb119
22,683
py
Python
allennlp/common/params.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
1
2022-01-06T02:06:23.000Z
2022-01-06T02:06:23.000Z
allennlp/common/params.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
52
2020-11-11T13:08:25.000Z
2021-12-16T13:04:30.000Z
allennlp/common/params.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
null
null
null
import copy from itertools import chain import json import logging import os import zlib from collections import OrderedDict from collections.abc import MutableMapping from os import PathLike from typing import Any, Dict, List, Union, Optional, TypeVar, Iterable, Set # _jsonnet doesn't work on Windows, so we have to ...
38.445763
109
0.617599
e0f0c0d4ff604017b9a83358f11c6d6159aa5f06
7,728
py
Python
tensorflow/contrib/tensor_forest/python/tensor_forest_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/tensor_forest/python/tensor_forest_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/tensor_forest/python/tensor_forest_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 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.697561
89
0.616977
257b0f9cba0b970b5fd2fee1b9b3979e40721da6
626
py
Python
python-sdk/tutorials/automl-with-azureml/forecasting-bike-share/metrics_helper.py
0mza987/azureml-examples
2abb872f1278d4b4e65587e033f38a058512b2e3
[ "MIT" ]
331
2020-08-26T15:54:23.000Z
2022-03-31T17:10:58.000Z
python-sdk/tutorials/automl-with-azureml/forecasting-bike-share/metrics_helper.py
0mza987/azureml-examples
2abb872f1278d4b4e65587e033f38a058512b2e3
[ "MIT" ]
262
2020-08-25T23:17:17.000Z
2022-03-31T00:25:32.000Z
python-sdk/tutorials/automl-with-azureml/forecasting-bike-share/metrics_helper.py
0mza987/azureml-examples
2abb872f1278d4b4e65587e033f38a058512b2e3
[ "MIT" ]
307
2020-09-04T01:02:11.000Z
2022-03-31T16:46:48.000Z
import pandas as pd import numpy as np def APE(actual, pred): """ Calculate absolute percentage error. Returns a vector of APE values with same length as actual/pred. """ return 100 * np.abs((actual - pred) / actual) def MAPE(actual, pred): """ Calculate mean absolute perce...
27.217391
68
0.642173
db6b98144f71b269141231c40edea8921bec4937
8,880
py
Python
sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/galacon2018presentation2_sm.py
sweetie-bot-project/sweetie_bot_flexbe_behaviors
d8511564bb9d6125838b4373263fb68a8b858d70
[ "BSD-3-Clause" ]
null
null
null
sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/galacon2018presentation2_sm.py
sweetie-bot-project/sweetie_bot_flexbe_behaviors
d8511564bb9d6125838b4373263fb68a8b858d70
[ "BSD-3-Clause" ]
null
null
null
sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/galacon2018presentation2_sm.py
sweetie-bot-project/sweetie_bot_flexbe_behaviors
d8511564bb9d6125838b4373263fb68a8b858d70
[ "BSD-3-Clause" ]
1
2019-12-23T05:06:26.000Z
2019-12-23T05:06:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
51.929825
372
0.67714
807f029f898a434881f2d09adaac2250fc7dd2b5
22,383
py
Python
views/pathview/strand/xoveritem.py
turalaksel/cadnano2.1
5e5b0e9085755c2e810346d3e580994bf4fad174
[ "MIT" ]
1
2019-08-20T01:41:18.000Z
2019-08-20T01:41:18.000Z
views/pathview/strand/xoveritem.py
turalaksel/cadnano2.1
5e5b0e9085755c2e810346d3e580994bf4fad174
[ "MIT" ]
null
null
null
views/pathview/strand/xoveritem.py
turalaksel/cadnano2.1
5e5b0e9085755c2e810346d3e580994bf4fad174
[ "MIT" ]
null
null
null
""" xoveritem.py Created by Nick on 2011-05-25. """ from views import styles import util # import Qt stuff into the module namespace with PySide, PyQt4 independence util.qtWrapImport('QtCore', globals(), ['QPointF', 'QRectF', 'Qt', 'QEvent']) util.qtWrapImport('QtGui', globals(), ['QBrush', ...
34.541667
116
0.58321
1897f354a6ddbe94eadc2c107a432cc8320344e5
4,684
py
Python
RcsPySim/setup.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
52
2020-05-02T13:55:09.000Z
2022-03-09T14:49:36.000Z
RcsPySim/setup.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
40
2020-09-01T15:19:22.000Z
2021-11-02T14:51:41.000Z
RcsPySim/setup.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
13
2020-07-03T11:39:21.000Z
2022-02-20T01:12:42.000Z
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
41.821429
112
0.671435
c7f3010b9ffecef55a2f5c45eddc461f82a349a2
2,305
py
Python
cicd/database/databaseArtifactChecks.py
consag/build-and-deploy-informatica
d7caaf5374f4e179cc0fc0a507d3e5da4b00c610
[ "MIT" ]
4
2019-08-20T11:50:21.000Z
2020-07-26T18:26:00.000Z
cicd/database/databaseArtifactChecks.py
consag/build-and-deploy-informatica
d7caaf5374f4e179cc0fc0a507d3e5da4b00c610
[ "MIT" ]
1
2019-07-05T21:08:55.000Z
2019-07-05T21:08:55.000Z
cicd/database/databaseArtifactChecks.py
consag/build-and-deploy-informatica
d7caaf5374f4e179cc0fc0a507d3e5da4b00c610
[ "MIT" ]
3
2019-11-20T00:29:02.000Z
2020-12-09T15:05:03.000Z
# MIT License # # Copyright (c) 2019 Jac. Beekers # # 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, modify, ...
40.438596
106
0.716269
a364043d3d9dd81f9edc291c99b5554b3733cba9
109,374
py
Python
Lib/test/test_tarfile.py
IshayuRay-Github/cpython
8136606769661c103c46d142e52ecbbbb88803f6
[ "0BSD" ]
1
2021-11-05T12:29:12.000Z
2021-11-05T12:29:12.000Z
Lib/test/test_tarfile.py
IshayuRay-Github/cpython
8136606769661c103c46d142e52ecbbbb88803f6
[ "0BSD" ]
null
null
null
Lib/test/test_tarfile.py
IshayuRay-Github/cpython
8136606769661c103c46d142e52ecbbbb88803f6
[ "0BSD" ]
null
null
null
import sys import os import io from hashlib import sha256 from contextlib import contextmanager from random import Random import pathlib import unittest import unittest.mock import tarfile from test import support from test.support import os_helper from test.support import script_helper # Check for our compression m...
37.858775
110
0.584078
0a5ba84d37557d8a0bcbfba2b522999a849fb54a
1,583
py
Python
backend/apps/workorder/urls.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
41
2019-01-02T09:36:54.000Z
2022-02-20T13:13:05.000Z
backend/apps/workorder/urls.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
15
2019-09-30T05:40:20.000Z
2022-02-17T19:28:41.000Z
backend/apps/workorder/urls.py
bopopescu/Journey
654eb66e0e2df59e916eff4c75b68b183f9b58b5
[ "MIT" ]
23
2019-02-18T10:50:10.000Z
2022-01-06T07:53:18.000Z
# -*- coding:utf-8 -*- from django.conf.urls import url, include from rest_framework import routers from django.urls import path from Journey.settings import MEDIA_ROOT from django.conf import settings from django.views.static import serve from apps.workorder.views.sqlorder import * from apps.workorder.views.autoorder ...
35.977273
81
0.778269
25409ac1f1a070989bffc4d8514fd723cf238975
663
py
Python
event_manager/users/tests/test_urls.py
Tundzhel/event_manager
917dd80f74ba3bea878726a4cfc606300dc40af9
[ "MIT" ]
null
null
null
event_manager/users/tests/test_urls.py
Tundzhel/event_manager
917dd80f74ba3bea878726a4cfc606300dc40af9
[ "MIT" ]
25
2021-12-22T12:31:45.000Z
2022-03-31T12:26:24.000Z
event_manager/users/tests/test_urls.py
Tundzhel/event_manager
917dd80f74ba3bea878726a4cfc606300dc40af9
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from event_manager.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/...
26.52
74
0.678733
5e5183c1af404f1227763be373afe95a490d45af
2,799
py
Python
tests/test_cublasxt.py
Eric89GXL/scikits.cuda
d40e9a58daa16f353c6b9d794135ffb81519095e
[ "BSD-3-Clause" ]
null
null
null
tests/test_cublasxt.py
Eric89GXL/scikits.cuda
d40e9a58daa16f353c6b9d794135ffb81519095e
[ "BSD-3-Clause" ]
null
null
null
tests/test_cublasxt.py
Eric89GXL/scikits.cuda
d40e9a58daa16f353c6b9d794135ffb81519095e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Unit tests for scikits.cuda.cublasxt """ from unittest import main, makeSuite, TestCase, TestSuite import numpy as np import skcuda.cublasxt as cublasxt class test_cublasxt(TestCase): def setUp(self): self.handle = cublasxt.cublasXtCreate() self.nbDevices = 1 s...
39.985714
86
0.538407
8643ee73ba1c179f49d3383dfbe69e524f3a66c9
5,930
py
Python
Tools/scripts/treesync.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-05-21T23:47:54.000Z
2015-05-21T23:47:54.000Z
Tools/scripts/treesync.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-10-29T20:51:31.000Z
2015-10-29T20:51:31.000Z
Tools/scripts/treesync.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
#! /usr/bin/env python """Script to synchronize two source trees. Invoke with two arguments: python treesync.py slave master The assumption is that "master" contains CVS administration while slave doesn't. All files in the slave tree that have a CVS/Entries entry in the master tree are synchronized. This means: ...
28.104265
79
0.555649
a8ed9e8e58042ef1a9cfd065632cca018afbb4d1
264
py
Python
manage.py
nemesisdesign/django-foss-dashboard
261fd44398a59c1c242583c2b758eb33b63d45bb
[ "BSD-3-Clause" ]
null
null
null
manage.py
nemesisdesign/django-foss-dashboard
261fd44398a59c1c242583c2b758eb33b63d45bb
[ "BSD-3-Clause" ]
null
null
null
manage.py
nemesisdesign/django-foss-dashboard
261fd44398a59c1c242583c2b758eb33b63d45bb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django-foss-dashboard.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
24
85
0.776515
86fae209bd9d8afb10d0927805e71d11db516455
1,937
py
Python
workon/contrib/google/utils.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/google/utils.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/google/utils.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
import json from django.conf import settings from django import template try: from raven.contrib.django.raven_compat.models import client as raven except: raven = None try: from oauth2client.service_account import ServiceAccountCredentials def get_google_account_token(account_key_file): # The...
35.87037
78
0.627259
89880cdd956a6e7ddada12dfa207e9d67914ada8
4,382
py
Python
pyIPXACT/DesignConfiguration.py
snmishra/pyIPXACT
ae0d98669a73ec208270710574bdaa110c54d6ee
[ "Apache-2.0" ]
11
2016-11-10T23:23:55.000Z
2021-07-12T09:12:36.000Z
pyIPXACT/DesignConfiguration.py
snmishra/pyIPXACT
ae0d98669a73ec208270710574bdaa110c54d6ee
[ "Apache-2.0" ]
4
2016-10-25T01:08:58.000Z
2020-09-28T04:38:57.000Z
pyIPXACT/DesignConfiguration.py
snmishra/pyIPXACT
ae0d98669a73ec208270710574bdaa110c54d6ee
[ "Apache-2.0" ]
10
2017-01-17T07:12:25.000Z
2021-05-30T06:04:01.000Z
# EMACS settings: -*- tab-width: 2; indent-tabs-mode: t; python-indent-offset: 2 -*- # vim: tabstop=2:shiftwidth=2:noexpandtab # kate: tab-width 2; replace-tabs off; indent-width 2; # ============================================================================= # ___ ______ __ _ ____ _____ # _ __ ...
32.459259
98
0.630762
d44c126981ed09b6a488faaa05f90285464f2dd7
6,183
py
Python
lokahi_dropbox/search/views.py
y4ahmed/Crowdfunding-Web-Application
52beab945ee88f8fd773f942577137c770a601c1
[ "MIT" ]
4
2017-09-28T04:26:33.000Z
2022-01-04T22:51:17.000Z
lokahi_dropbox/search/views.py
y4ahmed/Crowdfunding-Web-Application
52beab945ee88f8fd773f942577137c770a601c1
[ "MIT" ]
null
null
null
lokahi_dropbox/search/views.py
y4ahmed/Crowdfunding-Web-Application
52beab945ee88f8fd773f942577137c770a601c1
[ "MIT" ]
1
2021-01-17T23:11:21.000Z
2021-01-17T23:11:21.000Z
from django.views.decorators.csrf import csrf_protect from django.shortcuts import render from search.forms import BasicSearchForm, AdvancedSearchForm from frontend.models import BaseUser from django.http import HttpResponseRedirect from django.core.exceptions import ValidationError # from django.contrib.auth.models im...
36.370588
100
0.513828
7bcf590d2d7368e5407568529bc8d8b889bc101f
32,281
py
Python
app/env/lib/python3.7/site-packages/socks.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
app/env/lib/python3.7/site-packages/socks.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
app/env/lib/python3.7/site-packages/socks.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
"""SocksiPy - Python SOCKS module. Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of cond...
37.061998
80
0.599331
64f21cfc74bdc0b4a755c71f96d1717cc72cc8bb
63
py
Python
prince/__version__.py
MaximeKan/prince
eb0df10a9ec6448a04fa2e968e9aa01abe37158d
[ "MIT" ]
null
null
null
prince/__version__.py
MaximeKan/prince
eb0df10a9ec6448a04fa2e968e9aa01abe37158d
[ "MIT" ]
null
null
null
prince/__version__.py
MaximeKan/prince
eb0df10a9ec6448a04fa2e968e9aa01abe37158d
[ "MIT" ]
null
null
null
VERSION = (0, 6, 3) __version__ = '.'.join(map(str, VERSION))
15.75
41
0.603175
a22fe341ea3bc32220191893223949c3596d163b
937
py
Python
tools/mX2x.py
vsmelov/neural-music
0cbe06080e2c257c323ffc93dc673bb1e0edf2c4
[ "MIT" ]
2
2020-03-06T19:36:17.000Z
2022-03-09T07:29:08.000Z
tools/mX2x.py
vsmelov/neural-music
0cbe06080e2c257c323ffc93dc673bb1e0edf2c4
[ "MIT" ]
null
null
null
tools/mX2x.py
vsmelov/neural-music
0cbe06080e2c257c323ffc93dc673bb1e0edf2c4
[ "MIT" ]
null
null
null
# coding: utf-8 from config import * from tools.sineModel import XXsineModelAnal, XXsineModelSynth import numpy as np def mX2audio(mX, N, H, shift_X, var_X): # mX = np.sqrt(mX) mX = mX * var_X + shift_X mX_full = np.zeros((mX.shape[0], NN)) + zero_db print 'mX.shape: {}'.format(mX.shape) print 'm...
32.310345
73
0.595518
3c9865a705590751a1fe5567159f47e1e15baecd
159
py
Python
ALGORITHMS/Reccursion/Factorial/Factorial.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
127
2020-10-13T18:04:35.000Z
2022-02-17T10:56:27.000Z
ALGORITHMS/Reccursion/Factorial/Factorial.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
132
2020-10-13T18:06:53.000Z
2021-10-17T18:44:26.000Z
ALGORITHMS/Reccursion/Factorial/Factorial.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
364
2020-10-13T18:04:52.000Z
2022-03-04T14:34:53.000Z
def factorial(n): if (n > 1): n *= factorial(n - 1) return n n = int(input()) print(factorial(n)) # Complexity of the above program is O(n)
15.9
41
0.572327
bbe28e0c1269a548559400d12d43c5481d96dd89
4,036
py
Python
MLtingPots/Transformer/multihead_attention.py
raynbowy23/rays_lab
8c29b26df61e42e396046755dc1c49dd5fb04f5e
[ "MIT" ]
null
null
null
MLtingPots/Transformer/multihead_attention.py
raynbowy23/rays_lab
8c29b26df61e42e396046755dc1c49dd5fb04f5e
[ "MIT" ]
null
null
null
MLtingPots/Transformer/multihead_attention.py
raynbowy23/rays_lab
8c29b26df61e42e396046755dc1c49dd5fb04f5e
[ "MIT" ]
null
null
null
import types from typing import Optional import jax import jax.numpy as jnp import haiku as hk import numpy as np from icecream import ic ic.configureOutput(includeContext=True) class MultiHeadAttention(hk.Module): """ Split several small heads and use attention has prior efficiency to single ...
42.484211
205
0.64891
bed91c79eace828a6fe752aa4e0b8f834be53f67
3,659
py
Python
lib/rucio/tests/test_qos.py
TeAmP0is0N/rucio
45c1b83f8e1514953a41fd076b4e651dd564c39f
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_qos.py
TeAmP0is0N/rucio
45c1b83f8e1514953a41fd076b4e651dd564c39f
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_qos.py
TeAmP0is0N/rucio
45c1b83f8e1514953a41fd076b4e651dd564c39f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 CERN for the benefit of the ATLAS collaboration. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
38.925532
94
0.701011
177bd2dad55441be009c2db3cbd496968679f89d
876
py
Python
setup.py
slarse/labelbot
c61356b07db1eeecdfb25f8d7ff6532be3efb0e1
[ "MIT" ]
null
null
null
setup.py
slarse/labelbot
c61356b07db1eeecdfb25f8d7ff6532be3efb0e1
[ "MIT" ]
35
2019-04-11T12:17:34.000Z
2019-04-18T10:18:08.000Z
setup.py
slarse/github-label-bot
c61356b07db1eeecdfb25f8d7ff6532be3efb0e1
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", mode="r", encoding="utf-8") as f: readme = f.read() test_requirements = [ "pytest>=4.0.0", "codecov", "pytest-cov", "responses", "pytest-mock", ] required = ["python_jwt", "jwcrypto", "requests", "boto3"] setup( name="labe...
26.545455
77
0.6621
52137894322ce2ad912156fa3fd8df4cf7916c6f
280
py
Python
app/dashboards/demo.py
dawkinsmw/flask_intro
642d0273260c4c4a8152514ab87448b061d32fc9
[ "Apache-2.0" ]
null
null
null
app/dashboards/demo.py
dawkinsmw/flask_intro
642d0273260c4c4a8152514ab87448b061d32fc9
[ "Apache-2.0" ]
null
null
null
app/dashboards/demo.py
dawkinsmw/flask_intro
642d0273260c4c4a8152514ab87448b061d32fc9
[ "Apache-2.0" ]
null
null
null
from dash import Dash import dash_html_components as html app_layout = html.Div(children=[html.H1(children="Hello Dash"), ]) def init_dash(server): dash_app = Dash(server=server, routes_pathname_prefix="/demo/",) dash_app.layout = app_layout return dash_app.server
25.454545
68
0.75
cf145e338dfccc4e765007596614f618857b82c6
1,209
py
Python
rpy/functions/require.py
riccardodivirgilio/rpy
95682fbd25b55a6ea8db36d9ebfb54ce64380bc1
[ "MIT" ]
null
null
null
rpy/functions/require.py
riccardodivirgilio/rpy
95682fbd25b55a6ea8db36d9ebfb54ce64380bc1
[ "MIT" ]
null
null
null
rpy/functions/require.py
riccardodivirgilio/rpy
95682fbd25b55a6ea8db36d9ebfb54ce64380bc1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from functools import wraps from rpy.functions.api import pip def installed_modules(): return {i.key: i.version for i in pip.get_installed_distributions()} def missing_requirements(*modules): distributions =...
23.25
79
0.623656
e00a1e273b5f8c73df51c7692edf55d621efbfb0
273
py
Python
pysql/constants/core/indexes.py
jha-hitesh/pysql
ad7c7e4e7e65a97e4dc15cda395678e0c09b02ab
[ "MIT" ]
null
null
null
pysql/constants/core/indexes.py
jha-hitesh/pysql
ad7c7e4e7e65a97e4dc15cda395678e0c09b02ab
[ "MIT" ]
null
null
null
pysql/constants/core/indexes.py
jha-hitesh/pysql
ad7c7e4e7e65a97e4dc15cda395678e0c09b02ab
[ "MIT" ]
null
null
null
class CoreIndexConstants: core_index_slots = ( "table", "index_name", "index_definition", "UNIQUE" ) core_index_default_values = { "table": None, "index_name": None, "index_definition": "", "UNIQUE": False }
21
50
0.553114
f450e8a8186a19f88f2c21addecdfb511b8d8256
3,496
py
Python
models/simple.py
sunbing7/backdoor_federated_learning
965187f00b71effe764e7669c381a182fb15e45a
[ "MIT" ]
176
2018-12-17T23:35:57.000Z
2022-03-12T11:51:02.000Z
models/simple.py
sunbing7/backdoor_federated_learning
965187f00b71effe764e7669c381a182fb15e45a
[ "MIT" ]
10
2019-06-21T10:11:02.000Z
2022-03-25T14:13:53.000Z
models/simple.py
sunbing7/backdoor_federated_learning
965187f00b71effe764e7669c381a182fb15e45a
[ "MIT" ]
51
2019-01-10T14:51:39.000Z
2022-03-21T08:22:16.000Z
import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable import numpy as np import datetime class SimpleNet(nn.Module): def __init__(self, name=None, created_time=None): s...
40.183908
133
0.581808
55b70084092e4f4c743f714a24651805a5306335
10,750
py
Python
ietf/group/migrations/0003_groupfeatures_data.py
omunroe-com/ietfdb2
aeaae292fbd55aca1b6043227ec105e67d73367f
[ "BSD-3-Clause" ]
2
2021-11-20T03:40:56.000Z
2021-11-20T03:40:59.000Z
ietf/group/migrations/0003_groupfeatures_data.py
omunroe-com/ietfdb2
aeaae292fbd55aca1b6043227ec105e67d73367f
[ "BSD-3-Clause" ]
null
null
null
ietf/group/migrations/0003_groupfeatures_data.py
omunroe-com/ietfdb2
aeaae292fbd55aca1b6043227ec105e67d73367f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-07-10 15:58 from __future__ import unicode_literals from django.conf import settings from django.db import migrations import debug # pyflakes:ignore from ietf.review.utils import active_review_teams group_type_features = { ...
35.953177
120
0.607442
e1fcb82f9d4c6883ae6307079bc063645ff6e1c1
3,194
py
Python
haiku/_src/integration/jax_transforms_test.py
tirkarthi/dm-haiku
803671cf6ce5bc35fca7e6af89938579407e12ff
[ "Apache-2.0" ]
1
2020-06-25T13:19:17.000Z
2020-06-25T13:19:17.000Z
haiku/_src/integration/jax_transforms_test.py
arita37/dm-haiku
66f9c69353a6259a3523875fdc24ca35c5f27131
[ "Apache-2.0" ]
null
null
null
haiku/_src/integration/jax_transforms_test.py
arita37/dm-haiku
66f9c69353a6259a3523875fdc24ca35c5f27131
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # ...
34.717391
80
0.676581
8114ccc251dd026ba3b79dd15522f4abf9727e03
4,743
py
Python
evogtk/gui/widgetlib/trayicon.py
R3v1L/evogtk
9f951a08770e99ffd701a1994ba948aa8014f2af
[ "MIT" ]
null
null
null
evogtk/gui/widgetlib/trayicon.py
R3v1L/evogtk
9f951a08770e99ffd701a1994ba948aa8014f2af
[ "MIT" ]
null
null
null
evogtk/gui/widgetlib/trayicon.py
R3v1L/evogtk
9f951a08770e99ffd701a1994ba948aa8014f2af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (C) 2008 EVO Sistemas Libres <central@evosistemas.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the F...
32.486301
150
0.580645
e564a33c647273c0ee7c92c5854d0ada943c2871
11,971
py
Python
plugins/xafs/xafsft.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
plugins/xafs/xafsft.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
plugins/xafs/xafsft.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ XAFS Fourier transforms """ import numpy as np from numpy import (pi, arange, zeros, ones, sin, cos, exp, log, sqrt, where, interp, linspace) # from numpy.fft import fft, ifft from scipy.fftpack import fft, ifft from scipy.special import i0 as bessel_i0 from larch import ...
33.721127
85
0.558516