hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e852f13981442168865e7c567a3d8b443ef90c1a
16,847
py
Python
django_ical/tests/test_feed.py
jazzband/django-ical
0168bcdad95029e8e20d48a4c23fe8a7b654c9f6
[ "MIT" ]
58
2018-07-18T12:33:17.000Z
2022-03-22T11:49:32.000Z
django_ical/tests/test_feed.py
jazzband/django-ical
0168bcdad95029e8e20d48a4c23fe8a7b654c9f6
[ "MIT" ]
23
2018-07-14T21:09:08.000Z
2022-02-17T13:21:53.000Z
django_ical/tests/test_feed.py
jazzband/django-ical
0168bcdad95029e8e20d48a4c23fe8a7b654c9f6
[ "MIT" ]
13
2019-03-05T18:21:59.000Z
2022-03-21T08:39:37.000Z
from datetime import date from datetime import datetime from datetime import timedelta from os import linesep from django.test import TestCase from django.test.client import RequestFactory import icalendar import pytz from django_ical import utils from django_ical.feedgenerator import ICal20Feed from django_ical.vie...
36.864333
118
0.524723
e852f58418a0ea583213a7c3ca4f2465a86824d0
821
py
Python
hs_core/robots.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/robots.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/robots.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
"""Add is_human attribute to request for filtering logs and other such things. Note: robot_detection needs to be updated periodically (possible inside the Dockerfile) (wget http://www.robotstxt.org/db/all.txt, python robot_detection.py all.txt) """ import robot_detection from django.utils.deprecation import Middlewar...
34.208333
87
0.727162
e852fe44f0f2ae4de84ba731a93f64ac41627dc6
2,687
py
Python
tests/puzzles/test_beer_song.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/puzzles/test_beer_song.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/puzzles/test_beer_song.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from puzzles.beer_song import song, verse class BeerTest(unittest.TestCase): def test_a_verse(self): self.maxDiff = None self.assertEqual( verse(8), "8 bottles of beer on the wall, 8 bottles of beer.\n" "Take one down and pass it around, " ...
34.448718
79
0.548939
e8531c88c704959903790684ef465d8aec6c15f2
935
py
Python
tests/test_reactive.py
bcsaller/layercake
c980f56d678ec4333f891b74b7e8be242330de38
[ "Apache-2.0" ]
3
2016-06-13T17:21:08.000Z
2016-09-20T02:08:54.000Z
tests/test_reactive.py
bcsaller/disco
c980f56d678ec4333f891b74b7e8be242330de38
[ "Apache-2.0" ]
3
2016-07-22T20:31:43.000Z
2021-03-25T21:43:54.000Z
tests/test_reactive.py
bcsaller/disco
c980f56d678ec4333f891b74b7e8be242330de38
[ "Apache-2.0" ]
1
2017-01-30T22:45:15.000Z
2017-01-30T22:45:15.000Z
import unittest import pkg_resources from utils import local_stream from layer_cake.knowledge import Knowledge from layer_cake import reactive class TestReactive(unittest.TestCase): def test_rule(self): kb = Knowledge() kb.load(local_stream("mysql.yaml")) kb.load_schema(local_stream("int...
31.166667
77
0.665241
e85343be0e6df80e2d7f6b911a366990aea1690d
2,858
py
Python
Plug-and-play module/attention/CBAM/cbam.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Plug-and-play module/attention/CBAM/cbam.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Plug-and-play module/attention/CBAM/cbam.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import torch import torch.nn as nn def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) ...
28.58
79
0.590973
e8534cd6e24f03f33243b27c1b27891f9fd89a6b
1,160
py
Python
iris_sdk/models/disconnect_order_response.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/disconnect_order_response.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/disconnect_order_response.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from future.builtins import super from iris_sdk.models.base_resource import BaseResource from iris_sdk.models.data.order_response import OrderResponseData XML_NAME_DISCONNECT_ORDER_RESPONSE = "DisconnectTelephoneNumberOrderRespons...
30.526316
77
0.75
e85389fa3b66094021d0dd612e4e4bcd83623a55
2,319
py
Python
.leetcode/703.kth-largest-element-in-a-stream.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/703.kth-largest-element-in-a-stream.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/703.kth-largest-element-in-a-stream.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=703 lang=python3 # # [703] Kth Largest Element in a Stream # # https://leetcode.com/problems/kth-largest-element-in-a-stream/description/ # # algorithms # Easy (51.73%) # Likes: 1634 # Dislikes: 981 # Total Accepted: 159.3K # Total Submissions: 306.9K # Testcase Example: '["KthLargest","add...
20.891892
79
0.595947
e85397e9eebb1592185f0a98b9bdbfcc238cd593
1,348
py
Python
tf2onnx/tflite/HashtableSizeOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/tflite/HashtableSizeOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/tflite/HashtableSizeOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class HashtableSizeOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf,...
33.7
114
0.719585
e853b5ac32cbb60d88d4bf45781c3844ec3133e4
22
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI/InGameMenu/in_game_menu.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI/InGameMenu/in_game_menu.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI/InGameMenu/in_game_menu.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class InGameMenu: pass
22
22
0.863636
e853c28c27b70e97d2af185fe5fac3abe5298a7d
81,435
py
Python
BioNetGen-2.3.0/source_Atomizer/SBMLparser/sbml2bngl.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/sbml2bngl.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/sbml2bngl.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 6 17:42:31 2011 @author: proto """ from copy import deepcopy, copy import writer.bnglWriter as writer log = {'species': [], 'reactions': []} import re from collections import Counter from collections import defaultdict import math as pymath from utils.util import logMess...
53.156005
277
0.572837
e853c82ff93be88835b3f4ecad1796a2763488f6
2,068
py
Python
data/dstc2_original_split/validate2dstc.py
oplatek/e2end
7dfe53e3b13cb8e0a82dfd512ae914443c1f81eb
[ "Apache-2.0" ]
14
2016-05-27T09:21:15.000Z
2019-07-24T13:00:05.000Z
data/dstc2_original_split/validate2dstc.py
oplatek/e2end
7dfe53e3b13cb8e0a82dfd512ae914443c1f81eb
[ "Apache-2.0" ]
null
null
null
data/dstc2_original_split/validate2dstc.py
oplatek/e2end
7dfe53e3b13cb8e0a82dfd512ae914443c1f81eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Converts ''' import argparse import json def convert(val_output, outfile, session_keys=None): with open(val_output, 'r') as r, open(outfile, 'w') as w: data = json.load(r) assert 'sessions' in data data['dataset'] = val_output dat...
35.050847
97
0.532882
e854017c38291bb4b2ae09b4884a064ca12c7067
1,339
py
Python
nyc/dataprep/PrepareTreeData.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
nyc/dataprep/PrepareTreeData.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
nyc/dataprep/PrepareTreeData.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ PrepareTreeData.py Prepares the tree data a bit for inclusion into a database. """ import pandas as pd import numpy as np """ Prepare the tree data for inclusion into a database. Args: inname: Input file outname: Output file """ def PrepareTreeData(inname='data/street_trees_2015...
25.264151
75
0.587005
e85412da3f2cee08739c9a14ab74516d4d30b5d5
2,893
py
Python
stdplugins/karbon2.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-08-12T21:36:58.000Z
2020-08-12T21:36:58.000Z
stdplugins/karbon2.py
shn999/PepeBot
912b97dc89c4c7581cbaee337d4fcc05c98d79c0
[ "Apache-2.0" ]
2
2020-05-22T14:59:05.000Z
2020-05-28T12:04:02.000Z
stdplugins/karbon2.py
shn999/PepeBot
912b97dc89c4c7581cbaee337d4fcc05c98d79c0
[ "Apache-2.0" ]
3
2021-01-28T15:42:25.000Z
2021-11-18T04:02:01.000Z
""" Carbon Scraper Plugin for Userbot. //text in creative way. usage: .karbon2 //as a reply to any text message Thanks to @r4v4n4 for vars """ from selenium.webdriver.support.ui import Select from selenium.webdriver.chrome.options import Options from selenium import webdriver from telethon import events from urllib.p...
39.630137
240
0.6972
e85418a0b0303cfb06911683eab67e57b38a0a0f
19,103
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_04_16/aio/operations/_scheduled_query_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_04_16/aio/operations/_scheduled_query_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_04_16/aio/operations/_scheduled_query_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.375297
227
0.673716
e8541c78087fb1ccd4404552a529c493d10806d7
3,473
py
Python
modestpy/test/test_scipy.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
37
2017-06-21T19:09:11.000Z
2022-03-13T09:26:07.000Z
modestpy/test/test_scipy.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
51
2017-06-21T17:40:42.000Z
2021-10-31T09:16:21.000Z
modestpy/test/test_scipy.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
12
2017-10-02T12:32:50.000Z
2022-03-13T09:26:15.000Z
""" Copyright (c) 2017, University of Southern Denmark All rights reserved. This code is licensed under BSD 2-clause license. See LICENSE file in the project root for license terms. """ import unittest import shutil import tempfile import json import os import pandas as pd from modestpy.estim.scipy.scipy import SCIPY f...
34.73
78
0.569536
e8542c4c4ecb9bbd176ab3a1ead7bd03eb710c6c
6,594
py
Python
datawinners/accountmanagement/migrations/0008_auto__add_field_organization_active_date.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/accountmanagement/migrations/0008_auto__add_field_organization_active_date.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/accountmanagement/migrations/0008_auto__add_field_organization_active_date.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Organization.active_date' db.add_column('accountmanagement_organization', 'active_date', s...
65.94
182
0.565666
e85430ab9002172f34375a17bab8130fc2935d1c
2,668
py
Python
rl/agents/agent.py
awesome-archive/rl
7b6ce5b41c47394d0f68903fd675e47f68f28958
[ "MIT" ]
98
2019-04-03T18:54:24.000Z
2021-07-14T05:39:07.000Z
rl/agents/agent.py
EXYNOS-999/rl
ee6dd27bdbddd2cad32b85981a70a4db0e4cf1ee
[ "MIT" ]
8
2019-04-10T10:54:27.000Z
2019-08-09T01:24:30.000Z
rl/agents/agent.py
EXYNOS-999/rl
ee6dd27bdbddd2cad32b85981a70a4db0e4cf1ee
[ "MIT" ]
24
2019-04-08T17:22:25.000Z
2021-06-19T08:43:02.000Z
import tensorflow as tf from ..models.registry import get_model from ..memory.registry import get_memory from .algos.action_function.registry import get_action_function from .algos.compute_gradient.registry import get_gradient_function class Agent(): def __init__(self, sess, hparams): self._sess = sess sel...
31.023256
79
0.723763
e8543128623a87ce635f365d99f5095e9399562a
2,823
py
Python
tests/storage/repository/test_study.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/storage/repository/test_study.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/storage/repository/test_study.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from datetime import datetime from unittest.mock import Mock from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker # type: ignore from antarest.core.persistence import Base from antarest.core.utils.fastapi_sqlalchemy import DBSessionMiddleware, db from antarest.login.model impo...
27.144231
74
0.589444
e854401d9e96a64ac3db69a2843a0ea05933367d
1,409
py
Python
maskrcnn_benchmark/data/transforms/build.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
78
2020-03-02T12:00:57.000Z
2022-02-21T09:48:08.000Z
maskrcnn_benchmark/data/transforms/build.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
19
2020-03-02T12:07:18.000Z
2022-03-30T08:04:06.000Z
maskrcnn_benchmark/data/transforms/build.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
14
2020-06-14T03:29:47.000Z
2021-07-21T06:30:08.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from . import transforms as T def build_transforms(cfg, is_train=True): if is_train: min_size = cfg.INPUT.MIN_SIZE_TRAIN max_size = cfg.INPUT.MAX_SIZE_TRAIN flip_horizontal_prob = 0.5 # cfg.INPUT.FLIP_PROB_TRAIN ...
29.978723
79
0.629524
e85455569d479e028096cfb96a7a06a3dec39786
725
py
Python
245 Shortest Word Distance III.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
1
2016-01-31T23:49:58.000Z
2016-01-31T23:49:58.000Z
245 Shortest Word Distance III.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
null
null
null
245 Shortest Word Distance III.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
null
null
null
""" Premium Question """ import sys from bisect import bisect_left __author__ = 'Daniel' class Solution: def shortestWordDistance(self, words, word1, word2): """ :type words: list[str] :type word1: str :type word2: str :rtype: int """ pos_lst1 = [pos for po...
26.851852
77
0.550345
e85463626d3fdd3823d026d8ff96b10cfc2699a0
906
py
Python
impression_web/job/job_factory.py
Buttsgroup/impression-job
5b7a86c0d13f922ebb0291ffa7178a98abaf6d1e
[ "MIT" ]
null
null
null
impression_web/job/job_factory.py
Buttsgroup/impression-job
5b7a86c0d13f922ebb0291ffa7178a98abaf6d1e
[ "MIT" ]
null
null
null
impression_web/job/job_factory.py
Buttsgroup/impression-job
5b7a86c0d13f922ebb0291ffa7178a98abaf6d1e
[ "MIT" ]
1
2021-05-02T12:06:49.000Z
2021-05-02T12:06:49.000Z
from impression_web.job.gcp_job import GCPJob class ImpressionJobFactory: """ Create platform specific Job objects directly (job) from dictionary (from_dict) from id (database job id) """ def __init__(self, platform): self.platform = platform self.cls_ = ImpressionJobFactor...
28.3125
58
0.619205
e8546d8de1a9f8e58fb72b442b4f7cf4c530eb48
3,489
py
Python
tests/python_test_utils/tapenade_utils.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/python_test_utils/tapenade_utils.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/python_test_utils/tapenade_utils.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
import os import sys import general_utils import os from subprocess import PIPE, run def generate_function_c_file(func_num, functions, input_filename): f = open(input_filename, 'w') signature = "" function = functions[func_num] signature += "double function_" + str(func_num) + "(" for j ...
39.202247
166
0.600172
e8548e9b6e9d15be6228c421b0a42e503300899c
40,393
py
Python
devito/mpi/routines.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
1
2020-01-30T17:49:12.000Z
2020-01-30T17:49:12.000Z
devito/mpi/routines.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
1
2019-11-06T18:01:25.000Z
2019-11-06T18:01:25.000Z
devito/mpi/routines.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2018-11-15T12:03:48.000Z
2018-11-15T13:16:19.000Z
import abc from collections import OrderedDict from ctypes import POINTER, c_void_p, c_int, sizeof from functools import reduce from itertools import product from operator import mul from sympy import Integer from devito.data import OWNED, HALO, NOPAD, LEFT, CENTER, RIGHT, default_allocator from devito.ir.equations i...
37.715219
90
0.599436
e854a7c9602efe316de1a6c1dad94ef95547c852
11,059
py
Python
test/util/test_misc.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/util/test_misc.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/util/test_misc.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
1
2019-02-14T13:49:37.000Z
2019-02-14T13:49:37.000Z
from collections import OrderedDict from datetime import datetime, date from unittest import TestCase from xml.etree.ElementTree import ElementTree import numpy as np from cate.util.misc import encode_url_path, to_json from cate.util.misc import object_to_qualified_name, qualified_name_to_object from cate.util.misc i...
46.079167
111
0.601591
e854ba740a6675baa67b722665b1ca2a8f79c689
4,544
py
Python
dataset_dicom.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
dataset_dicom.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
dataset_dicom.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
import os import pydicom as dicom import random import glob from chainer.dataset import dataset_mixin import numpy as np from skimage.transform import rescale from chainercv.transforms import random_crop,center_crop from consts import dtypes class Dataset(dataset_mixin.DatasetMixin): def __init__(self, path, args, r...
35.224806
126
0.660871
e854e353fc8ced65554bdb1a2e0be083f58ab9a8
20,251
py
Python
rbac/ledger_sync/inbound/rbac_transactions.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
rbac/ledger_sync/inbound/rbac_transactions.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
rbac/ledger_sync/inbound/rbac_transactions.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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.157798
97
0.629302
e854f6e8997bc6483a469fd48ccb193561706779
1,197
py
Python
angalabiri/blog/migrations/0004_auto_20210327_0508.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/blog/migrations/0004_auto_20210327_0508.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/blog/migrations/0004_auto_20210327_0508.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-27 04:08 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('blog', '0003_auto_20210321_1159'), ...
31.5
148
0.617377
e854f9c0bdf9eca26048278bed8aa300a222afc3
151
py
Python
looping/looping_slice.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2020-11-02T05:52:33.000Z
2021-06-09T01:28:22.000Z
looping/looping_slice.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
null
null
null
looping/looping_slice.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2021-04-08T05:26:04.000Z
2021-06-09T01:28:23.000Z
players = ['rahul','lara','kohli','lee','nehra','faf'] print("Here are the first 3 members of the team") for player in players[:3]: print(player)
25.166667
54
0.655629
e855557c56f206421003ab35485891ac8ec5edab
83
py
Python
noma/apps.py
cheehu/xna2
1bb1f30adb93dd03589c64029d2916f01c6c0414
[ "MIT" ]
null
null
null
noma/apps.py
cheehu/xna2
1bb1f30adb93dd03589c64029d2916f01c6c0414
[ "MIT" ]
null
null
null
noma/apps.py
cheehu/xna2
1bb1f30adb93dd03589c64029d2916f01c6c0414
[ "MIT" ]
1
2020-02-03T07:21:08.000Z
2020-02-03T07:21:08.000Z
from django.apps import AppConfig class NomaConfig(AppConfig): name = 'noma'
13.833333
33
0.73494
e8559f2eb602d159137f4c755864378f01617912
3,862
py
Python
Unit4Project4/netflix/main.py
tritus/ml-courses
687c5006863ead9bee07dc3d76245a173c21528e
[ "MIT" ]
null
null
null
Unit4Project4/netflix/main.py
tritus/ml-courses
687c5006863ead9bee07dc3d76245a173c21528e
[ "MIT" ]
null
null
null
Unit4Project4/netflix/main.py
tritus/ml-courses
687c5006863ead9bee07dc3d76245a173c21528e
[ "MIT" ]
null
null
null
import numpy as np import kmeans import common import naive_em import em toy_X = np.loadtxt("toy_data.txt") def test_seeds(X, K): print("\n############## KMEAN K=" + str(K) + " ###############") mixture0, post0 = common.init(X,K,0) mixture1, post1 = common.init(X,K,1) mixture2, post2 = common.init(X,K,2) mixtur...
36.433962
76
0.663905
e855acad13ba6c281152849fb8a3c679894393f3
518
py
Python
python/l0456.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0456.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0456.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
"""EXAMPLE: i = 6, nums = [ 9, 11, 8, 9, 10, 7, 9 ], S1 candidate = 9, S3 candidate = None, Stack = Empty i = 5, nums = [ 9, 11, 8, 9, 10, 7, 9 ], S1 candidate = 7, S3 candidate = None, Stack = [9] i = 4, nums = [ 9, 11, 8, 9, 10, 7, 9 ], S1 candidate = 10, S3 candidate = None, Stack = [9,7] i = 3, nums = [ 9, 11, 8, 9...
57.555556
129
0.530888
e855b358f714bad217381e45d3678741de557277
11,681
py
Python
release/ray_release/glue.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
1
2021-12-13T20:43:30.000Z
2021-12-13T20:43:30.000Z
release/ray_release/glue.py
thetwotravelers/ray
d6096df7428e6b2f5f371b7bafa67d998dd81e13
[ "Apache-2.0" ]
null
null
null
release/ray_release/glue.py
thetwotravelers/ray
d6096df7428e6b2f5f371b7bafa67d998dd81e13
[ "Apache-2.0" ]
null
null
null
import os import time from typing import Optional, List from ray_release.alerts.handle import handle_result from ray_release.anyscale_util import get_cluster_name from ray_release.buildkite.output import buildkite_group, buildkite_open_last from ray_release.cluster_manager.full import FullClusterManager from ray_relea...
34.973054
88
0.670662
e855b3d5a892c0bfd9f4c4b12845069a45488029
3,838
py
Python
xenserver/settings.py
praekeltfoundation/xenzen
5dc670302052bb4cd9a89351bda613cc436573a0
[ "MIT" ]
3
2016-09-25T01:17:19.000Z
2017-07-12T13:38:49.000Z
xenserver/settings.py
praekeltfoundation/xenzen
5dc670302052bb4cd9a89351bda613cc436573a0
[ "MIT" ]
15
2016-08-26T10:42:52.000Z
2017-05-12T09:10:46.000Z
xenserver/settings.py
praekeltfoundation/xenzen
5dc670302052bb4cd9a89351bda613cc436573a0
[ "MIT" ]
5
2017-05-18T07:58:37.000Z
2021-11-14T03:51:05.000Z
import datetime import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def abspath(*args): """convert relative paths to absolute paths relative to BASE_DIR""" return os.path.join(BASE_DIR, *args) # Quick-start development settings - unsuitable for production # See https://docs.dja...
24.922078
79
0.713392
e855ca5eb75778ac5413bee2223e8884e64f531a
814
py
Python
bot/tools/__init__.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
1
2022-01-06T07:55:57.000Z
2022-01-06T07:55:57.000Z
bot/tools/__init__.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
null
null
null
bot/tools/__init__.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
null
null
null
""" EmojiWizard is a project licensed under GNU Affero General Public License. Copyright (C) 2022-present Achxy This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License...
38.761905
74
0.782555
e855cf7977d48231d95580e2a9f7b3c2d489bdb4
1,788
py
Python
xarray-utils/numpy_linalg.py
OriolAbril/calaix_de_sastre
daf35334016c42bc47da57ee6e6a21bfca16c43c
[ "Apache-2.0" ]
2
2021-06-30T10:13:23.000Z
2021-09-25T21:21:53.000Z
xarray-utils/numpy_linalg.py
OriolAbril/calaix_de_sastre
daf35334016c42bc47da57ee6e6a21bfca16c43c
[ "Apache-2.0" ]
null
null
null
xarray-utils/numpy_linalg.py
OriolAbril/calaix_de_sastre
daf35334016c42bc47da57ee6e6a21bfca16c43c
[ "Apache-2.0" ]
null
null
null
import functools import numpy as np import xarray as xr def _check_matrix_dims(da, dims): if dims is None: raise ValueError("dims must be passed explicitly") if len(dims) != 2: raise ValueError(f"dims must have length 2 but has length {len(dims)} instead") if not all(dim in da.dims for dim ...
26.686567
97
0.620246
e855d9a5e560afcc1cf638687134edf024507985
2,977
py
Python
mittab/libs/tests/tab_logic/test_pairing.py
MIT-Tab/mit-tab
fd7e518bb7252fc1638111ef8a5fe79700ac77ef
[ "MIT" ]
6
2018-04-21T19:26:48.000Z
2020-06-19T22:34:57.000Z
mittab/libs/tests/tab_logic/test_pairing.py
tienne-B/mit-tab
c47f1c2de6c1e458fe427b3dc70c9c4158f01225
[ "MIT" ]
152
2018-04-06T14:32:51.000Z
2022-02-11T22:12:53.000Z
mittab/libs/tests/tab_logic/test_pairing.py
tienne-B/mit-tab
c47f1c2de6c1e458fe427b3dc70c9c4158f01225
[ "MIT" ]
10
2018-04-06T20:28:16.000Z
2021-10-02T19:18:42.000Z
import random from django.test import TestCase import pytest from mittab.apps.tab.models import CheckIn, Judge, TabSettings, Round from mittab.libs import assign_judges from mittab.libs import tab_logic from mittab.libs.tests.helpers import generate_results @pytest.mark.django_db class TestPairingLogic(TestCase): ...
36.753086
79
0.66913
e855dc968efed20b990a913f6ba501e90ad7d45d
8,004
py
Python
cp93pytools/command_line.py
caph1993/caph1993-pytools
e3efee627a266f3a1c7fdad51e095f56c60d5f12
[ "MIT" ]
null
null
null
cp93pytools/command_line.py
caph1993/caph1993-pytools
e3efee627a266f3a1c7fdad51e095f56c60d5f12
[ "MIT" ]
null
null
null
cp93pytools/command_line.py
caph1993/caph1993-pytools
e3efee627a266f3a1c7fdad51e095f56c60d5f12
[ "MIT" ]
null
null
null
''' Small alternative to docopt and click for creating Command Line Interfaces (CLIs) out of functions: - Also composable as click (using CommandDict instead of MultiCommand) - Usage for commands in CommandDict's usage is shown by default - Command defaults are shown by default - Environment variables can be used ...
31.761905
122
0.544603
e855e6f32987e5265a0e8b625f7d8ec989d0a89a
5,366
py
Python
percolation/text/aux.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
1
2020-06-11T01:34:25.000Z
2020-06-11T01:34:25.000Z
percolation/text/aux.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
null
null
null
percolation/text/aux.py
ttm/percolate
cfdf5380c8d155424ab97bdab85edde8b6f0ec9f
[ "MIT" ]
null
null
null
__doc__="auxiliary functions for text analysis routines" import os this_dir, this_filename = os.path.split(__file__) #DATA_PATH = os.path.join(this_dir, "data", "data.txt") w=open(os.path.join(this_dir,"words.txt"),"r") # https://raw.githubusercontent.com/dwyl/english-words/master/words.txt w=w.read() w=w.split() KNOWN...
37.006897
138
0.659896
e8561656ee9bcf90b32d7499be5873ad2acb86d5
12,686
py
Python
src/onevision/models/detection/scaled_yolov4/models/yolo.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/models/detection/scaled_yolov4/models/yolo.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/models/detection/scaled_yolov4/models/yolo.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations import argparse from copy import deepcopy from pathlib import Path from onevision.models.detection.scaled_yolov4.models.common import * from onevision.models.detection.scaled_yolov4.models.experimental import C3 from onevision....
44.985816
116
0.544458
e8562665ec176a62a659e91c3cc3007f846a5ac2
11,543
py
Python
finrl_meta/env_stock_trading/env_stocktrading_A_sinawave.py
war3gu/FinRL-Meta
c394511530c4a87d61436b2c0467d504849737d7
[ "MIT" ]
1
2022-02-21T11:20:59.000Z
2022-02-21T11:20:59.000Z
finrl_meta/env_stock_trading/env_stocktrading_A_sinawave.py
war3gu/FinRL-Meta
c394511530c4a87d61436b2c0467d504849737d7
[ "MIT" ]
null
null
null
finrl_meta/env_stock_trading/env_stocktrading_A_sinawave.py
war3gu/FinRL-Meta
c394511530c4a87d61436b2c0467d504849737d7
[ "MIT" ]
1
2022-03-03T06:51:46.000Z
2022-03-03T06:51:46.000Z
import numpy as np import pandas as pd from gym.utils import seeding import gym from gym import spaces import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pickle from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv from stable_baselines3.common.logger import Logger as log ...
35.959502
136
0.510353
e8564dd141d77d29cb205d2c7db2650e63510dcf
840
py
Python
problems/637_average-of-levels-in-binary-tree.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/637_average-of-levels-in-binary-tree.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/637_average-of-levels-in-binary-tree.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# v = node num # time : O(v) # space : O(v) # Definition for a binary tree node. from collections import deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def averageOfLevels(self, root: TreeNode) ->...
28
61
0.494048
e85660d554f67bebfa013e28b0d3a8e9490ef4e6
31
py
Python
predico/services/request/__init__.py
pauleveritt/predico
2bbf88a7775d31907d2229a32a89490172acd988
[ "Apache-2.0" ]
null
null
null
predico/services/request/__init__.py
pauleveritt/predico
2bbf88a7775d31907d2229a32a89490172acd988
[ "Apache-2.0" ]
null
null
null
predico/services/request/__init__.py
pauleveritt/predico
2bbf88a7775d31907d2229a32a89490172acd988
[ "Apache-2.0" ]
null
null
null
""" The request service. """
5.166667
20
0.548387
e856650d9584fa0485efb3680f9494794fc8a153
12,247
py
Python
doozerlib/rpmcfg.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
16
2018-11-06T16:49:03.000Z
2021-11-07T19:48:49.000Z
doozerlib/rpmcfg.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
479
2018-11-15T15:37:49.000Z
2022-03-31T08:39:44.000Z
doozerlib/rpmcfg.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
38
2018-11-07T14:33:15.000Z
2021-12-13T13:59:12.000Z
import glob import io import os import threading from typing import List, Dict, Optional, Union import rpm from doozerlib import brew, util from doozerlib.exceptions import DoozerFatalError from doozerlib.source_modifications import SourceModifierFactory from . import exectools from .metadata import Metadata from .m...
49.582996
176
0.643505
e8566c56b21824da4a0ce245ee2ccc1156247104
2,698
py
Python
test_directory_monitor.py
mikhsol/dir_sync
1f7b1b08f5bf727acc90c4cc6d995af8d3fe0156
[ "BSD-2-Clause" ]
null
null
null
test_directory_monitor.py
mikhsol/dir_sync
1f7b1b08f5bf727acc90c4cc6d995af8d3fe0156
[ "BSD-2-Clause" ]
null
null
null
test_directory_monitor.py
mikhsol/dir_sync
1f7b1b08f5bf727acc90c4cc6d995af8d3fe0156
[ "BSD-2-Clause" ]
null
null
null
from unittest import TestCase import os from inotify_simple import flags from directory_monitor import DirectoryMonitor def get_event_and_flags(monitor): event = monitor.get_events()[0] return event, monitor.get_flags(event) class DirectoryMonitorTest(TestCase): def setUp(self): self.path_nam...
30.314607
75
0.629726
e85675a7886aa5bdd553b844bbd4079913f6c2a9
1,440
py
Python
PlayArea/OtherExperiments/FSMs/sequenceDetector2.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
PlayArea/OtherExperiments/FSMs/sequenceDetector2.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
PlayArea/OtherExperiments/FSMs/sequenceDetector2.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
''''''''''''''''''''''''''' imports ''''''''''''''''''''''''''''' # Built ins import sys # Computer files sys.path.append('../../Modules') from _1__elementaryGates import * from _2__arithmeticGates import * from _3__clock import * from _4__flipFlops import * ''''''''''''''''''''''''' helpers '''''''''''''''''''''''...
16.363636
65
0.565278
e85681c2dc81b1608a0353f5564a37dc62d7b780
2,729
py
Python
sdk/identity/azure-identity/azure/identity/aio/_internal/decorators.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/identity/azure-identity/azure/identity/aio/_internal/decorators.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/azure/identity/aio/_internal/decorators.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import functools import logging import json import base64 from azure.core.exceptions import ClientAuthenticationError from ..._internal import within_credential_chain ...
38.985714
116
0.522536
e8569610b236f95cbd3576b38d3cd55c6c4cde03
11,180
py
Python
docusign_rooms/models/user_to_invite.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/models/user_to_invite.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/models/user_to_invite.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
30.883978
117
0.61127
e8569e3caa6c7930cf227878cef9dd9a27c5bebf
1,895
py
Python
src/dataprotection/setup.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/setup.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/setup.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
32.118644
94
0.636939
e856ef6bfec939580e064b78a318b725aeb6dc76
2,102
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_CH.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_CH.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_CH.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. CH metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CH = PhoneMetadata(id='CH', country_code=41, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-9]\\d{8}|860\\d{9}', possible_leng...
100.095238
185
0.70647
e85747df43224884f90b3b467d214b277baaf44e
10,436
py
Python
tests/test_vgg_face2_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
null
null
null
tests/test_vgg_face2_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
1
2021-10-05T17:41:05.000Z
2021-10-05T17:41:05.000Z
tests/test_vgg_face2_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
null
null
null
from unittest import TestCase import os.path as osp import numpy as np from datumaro.components.annotation import ( AnnotationType, Bbox, Label, LabelCategories, Points, ) from datumaro.components.dataset import Dataset from datumaro.components.environment import Environment from datumaro.components.extractor imp...
40.449612
89
0.539191
e857560f6743e7ebbdaf7164d565046a66cb8d47
5,265
py
Python
test/test_normdict_custom.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
test/test_normdict_custom.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
test/test_normdict_custom.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
import re import pytest from headerparser import NormalizedDict def normdash(s): return re.sub(r"[-_\s]+", "-", s.lower()) def test_empty(): nd = NormalizedDict(normalizer=normdash) assert dict(nd) == {} assert nd.body is None assert len(nd) == 0 assert not bool(nd) assert nd.normalizer ...
27.710526
87
0.589934
e857660979b910daedf456466ed755c45ba1bd8e
603
py
Python
pypipet/core/operations/user.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
pypipet/core/operations/user.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
pypipet/core/operations/user.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
1
2021-12-10T22:36:34.000Z
2021-12-10T22:36:34.000Z
from pypipet.core.model.user import User from .utility import _object2dict from pypipet.core.sql.query_interface import ( add_to_db, search_exist, update_data) import logging logger = logging.getLogger('__default__') def register_new_user(table_objs, session, user): if user is dict: user = User(user) ...
26.217391
73
0.728027
e857c9019f8100bf5436dcb3d510ba7d9f86857b
6,626
py
Python
src/evaluate_font.py
google/autocjk
dbb7ec36f36c8e835a36561c520f0cbfc4e04458
[ "Apache-2.0" ]
10
2021-03-09T01:14:51.000Z
2022-03-31T15:02:14.000Z
src/evaluate_font.py
ambuc/autocjk
3c4c3d4ee0a275e077ee5df5966279c2b139f83d
[ "Apache-2.0" ]
10
2021-03-09T01:10:44.000Z
2021-04-12T23:28:04.000Z
src/evaluate_font.py
ambuc/autocjk
3c4c3d4ee0a275e077ee5df5966279c2b139f83d
[ "Apache-2.0" ]
1
2021-03-09T13:36:31.000Z
2021-03-09T13:36:31.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.154639
83
0.629943
e857cc507f0cd84ef075510de4d3291a959d7ce6
938
py
Python
watcher_dashboard/content/audits/urls.py
openstack/watcher-dashboard
146e547da934c2464ec5f49326eabed0eecfda96
[ "Apache-2.0" ]
15
2016-02-12T07:33:42.000Z
2019-01-28T22:13:27.000Z
watcher_dashboard/content/audits/urls.py
openstack/watcher-dashboard
146e547da934c2464ec5f49326eabed0eecfda96
[ "Apache-2.0" ]
null
null
null
watcher_dashboard/content/audits/urls.py
openstack/watcher-dashboard
146e547da934c2464ec5f49326eabed0eecfda96
[ "Apache-2.0" ]
2
2017-08-11T02:25:37.000Z
2017-10-10T09:59:40.000Z
# Copyright (c) 2016 b<>com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
32.344828
69
0.698294
e857d91b2bda81ba3a1d38e69098ba11a0d116e8
1,348
py
Python
guru/contrib/sites/migrations/0001_initial.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
null
null
null
guru/contrib/sites/migrations/0001_initial.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2021-02-26T02:49:34.000Z
2021-02-26T02:49:34.000Z
guru/contrib/sites/migrations/0001_initial.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2020-02-24T18:09:00.000Z
2020-02-24T18:09:00.000Z
import django.contrib.sites.models from django.contrib.sites.models import _simple_domain_name_validator from django.db import migrations, models class Migration(migrations.Migration): dependencies = [] operations = [ migrations.CreateModel( name="Site", fields=[ ...
30.636364
79
0.436202
e857e3c840f3e1042f91ffc4520b8c71bf62723f
2,008
py
Python
k_util/serializable.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
1
2018-09-23T06:13:44.000Z
2018-09-23T06:13:44.000Z
k_util/serializable.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
null
null
null
k_util/serializable.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This abstract class creates an interface for its subclasses to be serialized into JSON dictionary objects, and possibly also written to file. """ import json from abc import abstractmethod __author__ = "Jakrin Juangbhanich" __email__ = "juangbhanich.k@gmail.com" __version__ = "0.0.0" de...
29.970149
110
0.62002
e857f51902643fc6d936b45eb45037520926cd01
514
py
Python
Task1E.py
dhanishpatel512/FloodWarningSystem86
9bf3f2b0858ad5073b717b215afa3c85e81a8216
[ "MIT" ]
1
2022-02-11T20:28:24.000Z
2022-02-11T20:28:24.000Z
Task1E.py
dhanishpatel512/FloodWarningSystem86
9bf3f2b0858ad5073b717b215afa3c85e81a8216
[ "MIT" ]
null
null
null
Task1E.py
dhanishpatel512/FloodWarningSystem86
9bf3f2b0858ad5073b717b215afa3c85e81a8216
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list from floodsystem.geo import rivers_by_station_number def run(): """Requirements for Task 1E""" # Build list of stations stations = build_station_list() # Get list of 9 rivers with highest number of monitoring stations nine_rivers_with_most_s...
25.7
74
0.741245
e8580c1e3ba212f67c61dd704038532f5248af03
5,489
py
Python
src/data_utils/salads_reader.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
24
2019-09-18T09:22:08.000Z
2022-03-08T06:47:33.000Z
src/data_utils/salads_reader.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
6
2019-09-18T09:21:02.000Z
2022-02-09T23:31:48.000Z
src/data_utils/salads_reader.py
knmac/LCDC_release
f977ca1cda972983cac7e33b324f07f2e1463a19
[ "MIT" ]
4
2020-08-06T02:05:36.000Z
2021-12-12T07:19:17.000Z
"""tfrecord reader for 50 salads dataset """ from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src'))) import tensorflow as tf import nump...
36.593333
79
0.609036
e85820687bb435943afac58503252107f0c569c2
412
py
Python
server/framework/settings/init_scripts.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
server/framework/settings/init_scripts.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
server/framework/settings/init_scripts.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
""" Executes the initial initialization of the project settings. """ from ..lib.classes.hasher import Hasher from ..lib.classes.env_parser import env_parser from .settings import Settings __all__ = ["settings"] settings = Settings() settings.password_hasher = Hasher.hash settings.database = { "type": "sqlite...
16.48
60
0.725728
e85873d559d63229c920341c6cc57c37787da2a4
5,357
py
Python
ptkcmd.py
zhiqiang-hu/DAPCmdr
077bf8f25e6bf47986ade3f1c3c80b1f611fb00e
[ "MIT" ]
28
2018-06-23T05:44:42.000Z
2021-12-15T06:00:44.000Z
ptkcmd.py
zhiqiang-hu/DAPCmdr
077bf8f25e6bf47986ade3f1c3c80b1f611fb00e
[ "MIT" ]
null
null
null
ptkcmd.py
zhiqiang-hu/DAPCmdr
077bf8f25e6bf47986ade3f1c3c80b1f611fb00e
[ "MIT" ]
10
2018-06-23T12:23:32.000Z
2022-03-20T10:58:19.000Z
import os import re import sys from prompt_toolkit import PromptSession from prompt_toolkit.completion import Completer, Completion from prompt_toolkit.styles import Style class PtkCmd(): prompt = '(PtkCmd) ' intro = '' style = Style.from_dict({ 'prompt': '#6600ff', }) help_header = '''Doc...
32.271084
126
0.565055
e8587b9d11bcf1d172bea0cb8e337f6cfdafc02b
163
py
Python
Python/ex010_conversor_dolar.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex010_conversor_dolar.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex010_conversor_dolar.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
real = float(input('Quanto dinheiros voce tem na carteira? R$')) dolar = real / 5.58 print('Com {} reais, voce pode comprar U${:.2f} dolares'.format(real, dolar))
40.75
77
0.687117
e858b890a09392e0467b9d8db5c058be1b431b5f
84,190
py
Python
src/models/dp_gp_lvm.py
AndrewRLawrence/dp_gp_lvm
b0d4c776714f22e83de31127fbfbbd511f017dcd
[ "MIT" ]
1
2021-01-17T11:44:36.000Z
2021-01-17T11:44:36.000Z
src/models/dp_gp_lvm.py
AndrewRLawrence/dp_gp_lvm
b0d4c776714f22e83de31127fbfbbd511f017dcd
[ "MIT" ]
1
2020-07-19T20:47:02.000Z
2020-07-19T20:47:02.000Z
src/models/dp_gp_lvm.py
AndrewRLawrence/dp_gp_lvm
b0d4c776714f22e83de31127fbfbbd511f017dcd
[ "MIT" ]
1
2020-07-21T07:13:13.000Z
2020-07-21T07:13:13.000Z
""" This module implements the DP-GP-LVM bgplvm_model. """ from src.distributions.log_normal import log_pdf as log_normal_log_pdf from src.kernels.interfaces.kernel import KernelHyperparameters from src.kernels.rbf_kernel import k_ard_rbf from src.models.interfaces.trainable import Trainable from src.models.expression...
53.521933
147
0.554151
e8592a89e752dcd1326bc5907604d4a3ca0f4f81
2,848
py
Python
tests/conversion_tests.py
AlexHodgson/steamid-converter
f18533c89df779e9418db19feaadfe0cf110a7fe
[ "MIT" ]
3
2021-02-10T18:28:27.000Z
2021-06-30T21:57:25.000Z
tests/conversion_tests.py
AlexHodgson/steamid-converter
f18533c89df779e9418db19feaadfe0cf110a7fe
[ "MIT" ]
null
null
null
tests/conversion_tests.py
AlexHodgson/steamid-converter
f18533c89df779e9418db19feaadfe0cf110a7fe
[ "MIT" ]
3
2020-11-26T01:28:02.000Z
2022-01-30T18:59:36.000Z
import sys sys.path.append(sys.path[0] + r'\..\steamid_converter') # TODO make this relative import unittest import Converter # Code being tested class TestConversions(unittest.TestCase): ''' Test that the id conversion functions are giving the correct results The accounts being tested represent both acco...
49.103448
149
0.727879
e859316692ef612b882b79e0d6508581fc9bd178
780
py
Python
xos/synchronizers/openstack/steps/sync_roles.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/openstack/steps/sync_roles.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/openstack/steps/sync_roles.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
import os import base64 from django.db.models import F, Q from xos.config import Config from synchronizers.base.openstacksyncstep import OpenStackSyncStep from core.models.role import Role from core.models.site import SiteRole, Controller, ControllerRole from core.models.slice import SliceRole from xos.logger import ob...
32.5
72
0.729487
e85939133b685998a6cdc5b2c1382c4d75d3943c
1,281
py
Python
episcanpy/preprocessing/_metadata.py
LKremer/epiScanpy
607a86a58af52fc4bf8937ddd13cee4a0b72c79f
[ "BSD-3-Clause" ]
1
2021-06-18T09:12:38.000Z
2021-06-18T09:12:38.000Z
episcanpy/preprocessing/_metadata.py
LKremer/epiScanpy
607a86a58af52fc4bf8937ddd13cee4a0b72c79f
[ "BSD-3-Clause" ]
null
null
null
episcanpy/preprocessing/_metadata.py
LKremer/epiScanpy
607a86a58af52fc4bf8937ddd13cee4a0b72c79f
[ "BSD-3-Clause" ]
null
null
null
import anndata as ad def load_metadata(adata, metadata_file, path=''): """ Load observational metadata in adata.obs. Input metadata file as csv and adata object. first raw of the metadata file is considered as a header Paramters --------- adata: initial AnnData object metadata_file:...
25.62
82
0.541764
e859463b4380e112d79199f5de0107e73d163d40
7,919
py
Python
ufora/FORA/python/PurePython/PythonAstConverter.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/FORA/python/PurePython/PythonAstConverter.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/FORA/python/PurePython/PythonAstConverter.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
37.353774
99
0.707791
e8594c850d42305f009072d2252d1e25898abe39
819
py
Python
tests/test_feed.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
tests/test_feed.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
1
2018-09-20T04:39:02.000Z
2018-09-21T04:19:15.000Z
tests/test_feed.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
import signal from aerial import Feed def test_init_false(): """ Confirm the class starts falsey """ assert not Feed() def test_signal_addition_init_false(): """ Confirm attempting to read a signal starts the recording """ f = Feed() assert signal.SIGINT not in f.signals assert not f[signal....
24.818182
72
0.688645
e859733bf300a59cf8cbd4940922a5464402e16c
1,617
py
Python
scripts/new_committee.py
benrkaplan/people
ed6c93161b22103736042db599187d9782285e37
[ "CC0-1.0" ]
null
null
null
scripts/new_committee.py
benrkaplan/people
ed6c93161b22103736042db599187d9782285e37
[ "CC0-1.0" ]
null
null
null
scripts/new_committee.py
benrkaplan/people
ed6c93161b22103736042db599187d9782285e37
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python import os import click from collections import OrderedDict from utils import ocd_uuid, get_jurisdiction_id, get_data_dir, dump_obj def create_committee(*, name, state, parent, url): members = [] click.echo("Enter members, enter a blank member to stop.") while True: mname = cl...
30.509434
87
0.627087
e859ac41ff053e760c740aaeb53eaf1756ed8f85
19,971
py
Python
src/py42/sdk/queries/query_filter.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/sdk/queries/query_filter.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/sdk/queries/query_filter.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
from collections import OrderedDict from datetime import datetime from py42._compat import str from py42._compat import string_type from py42.util import convert_datetime_to_epoch from py42.util import convert_datetime_to_timestamp_str from py42.util import DATE_STR_FORMAT from py42.util import parse_timestamp_to_mill...
38.04
106
0.671173
e859fc062167f9b63a709927eb297731a1a6f66d
4,139
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.234694
126
0.690505
e85a1d7f6e14653a7fcb9514b90b069dfae08956
3,285
py
Python
chapter1/mobilenetv2/src/dataset.py
hu-qi/mindspore-21-days-tutorials
a9d3a024a0b17e48ae758de66195923b14f8ea6c
[ "Apache-2.0" ]
null
null
null
chapter1/mobilenetv2/src/dataset.py
hu-qi/mindspore-21-days-tutorials
a9d3a024a0b17e48ae758de66195923b14f8ea6c
[ "Apache-2.0" ]
null
null
null
chapter1/mobilenetv2/src/dataset.py
hu-qi/mindspore-21-days-tutorials
a9d3a024a0b17e48ae758de66195923b14f8ea6c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.21875
88
0.673364
e85a2481dcc5042452cea96ccb8f2595d8dcb4c0
2,806
py
Python
hail-elasticsearch-pipelines/hail_scripts/v02/utils/computed_fields/variant_id.py
leklab/pkd_browser
47ca228ee1424db399405f3825b463583e4a404f
[ "MIT" ]
null
null
null
hail-elasticsearch-pipelines/hail_scripts/v02/utils/computed_fields/variant_id.py
leklab/pkd_browser
47ca228ee1424db399405f3825b463583e4a404f
[ "MIT" ]
null
null
null
hail-elasticsearch-pipelines/hail_scripts/v02/utils/computed_fields/variant_id.py
leklab/pkd_browser
47ca228ee1424db399405f3825b463583e4a404f
[ "MIT" ]
null
null
null
import hail as hl def get_expr_for_alt_allele(table:hl.Table) -> hl.str: return table.alleles[1] def get_expr_for_contig(locus: hl.expr.LocusExpression) -> hl.expr.StringExpression: """Normalized contig name""" return locus.contig.replace("^chr", "") def get_expr_for_contig_number( locus: hl.expr....
30.835165
110
0.644334
e85a2ab2deba9aa6ae8c4a94732f0fb334f5c97a
832
py
Python
7/2.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
7/2.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
7/2.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 # 导入需要的库 import numpy as np camera = PiCamera() camera.resolution = (640, 480) # 设置分辨率 camera.framerate = 32 # 设置帧率 rawCapture = PiRGBArray(camera, size=(640, 480)) time.sleep(0.1) # 等待摄像头模块初始化 for frame in camera.capture_conti...
32
86
0.699519
e85ae7b22a545045ec42ba86e9aed9cd7e6103f7
3,609
py
Python
tensorflow/contrib/model_pruning/python/layers/rnn_cells_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/model_pruning/python/layers/rnn_cells_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/model_pruning/python/layers/rnn_cells_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.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...
41.965116
80
0.721807
e85ae7e63dffbd7b7619645813837c693e1cd4a5
22,929
py
Python
demisto_sdk/commands/upload/tests/uploader_test.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/upload/tests/uploader_test.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/upload/tests/uploader_test.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
import inspect import json import os from functools import wraps from unittest.mock import patch import demisto_client import pytest from demisto_client.demisto_api.rest import ApiException from demisto_sdk.commands.common.constants import (BETA_INTEGRATIONS_DIR, CLAS...
36.982258
120
0.685551
e85af67c0821e9bc6a0748c79af0250cff3225db
4,862
py
Python
indra/databases/lincs_client.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/databases/lincs_client.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/databases/lincs_client.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str __all__ = ['get_drug_target_data', 'LincsClient', 'load_lincs_csv'] import os import sys import json import logging import requests from io import StringIO, BytesIO from indra.util import read_unicode_csv_fileobj ...
30.578616
79
0.60037
e85b0103cf335479439efcd81228462986bc5c19
7,334
py
Python
mitemp_bt/mitemp_bt_poller.py
sgoudsme/mitemp
1171d71f3844679e8dfd49c363e574566e0ddf3d
[ "MIT" ]
null
null
null
mitemp_bt/mitemp_bt_poller.py
sgoudsme/mitemp
1171d71f3844679e8dfd49c363e574566e0ddf3d
[ "MIT" ]
null
null
null
mitemp_bt/mitemp_bt_poller.py
sgoudsme/mitemp
1171d71f3844679e8dfd49c363e574566e0ddf3d
[ "MIT" ]
null
null
null
"""" Read data from Mi Temp environmental (Temp and humidity) sensor. """ from datetime import datetime, timedelta import logging from threading import Lock from btlewrap.base import BluetoothInterface, BluetoothBackendException _HANDLE_READ_BATTERY_LEVEL = 0x0018 _HANDLE_READ_FIRMWARE_VERSION = 0x0024 _HANDLE_READ_N...
36.306931
119
0.605127
e85b407026446a74a3827cbb79eea99f1c36fab2
1,750
py
Python
b5/modules/npm.py
team23/b5
90f45e86966eeb7a259667bbe06a5555648d012d
[ "BSD-3-Clause" ]
14
2018-11-24T23:33:35.000Z
2022-02-04T23:46:49.000Z
b5/modules/npm.py
team23/b5
90f45e86966eeb7a259667bbe06a5555648d012d
[ "BSD-3-Clause" ]
3
2020-02-10T11:05:11.000Z
2020-03-04T08:42:11.000Z
b5/modules/npm.py
team23/b5
90f45e86966eeb7a259667bbe06a5555648d012d
[ "BSD-3-Clause" ]
1
2020-02-11T19:45:13.000Z
2020-02-11T19:45:13.000Z
import os import shlex from . import BaseModule class NpmModule(BaseModule): '''npm module ''' DEFAULT_CONFIG = { 'base_path': '.', 'npm_bin': 'npm', } def prepare_config(self) -> None: self.config['base_path'] = os.path.realpath(os.path.join( self.state.run_...
26.119403
99
0.528
e85b64721df86862bd7558a21433613d7bce52fa
4,063
py
Python
src/third_party/wiredtiger/test/suite/test_stat_log02.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
1
2015-11-08T17:16:08.000Z
2015-11-08T17:16:08.000Z
src/third_party/wiredtiger/test/suite/test_stat_log02.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_stat_log02.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
1
2021-06-18T05:00:06.000Z
2021-06-18T05:00:06.000Z
#!/usr/bin/env python # # Public Domain 2014-2017 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...
34.726496
84
0.650258
e85b729f4269322602b286e62ede70a8bde33993
4,514
py
Python
python/tests/test_run_locally.py
youyangy/GraphScope
560309eea11408c4a23f64c32ed35725cd6f7467
[ "Apache-2.0" ]
null
null
null
python/tests/test_run_locally.py
youyangy/GraphScope
560309eea11408c4a23f64c32ed35725cd6f7467
[ "Apache-2.0" ]
null
null
null
python/tests/test_run_locally.py
youyangy/GraphScope
560309eea11408c4a23f64c32ed35725cd6f7467
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding 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...
30.707483
99
0.649092
e85b82f05ccc4576e040695ed443a9f5dffdb69d
847
py
Python
atom/nucleus/python/test/test_page_stage.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_stage.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_stage.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
20.658537
79
0.689492
e85b91062592cae90012bf869e1bd6fbfa067fb4
10,295
py
Python
Lib/ufo2ft/featureCompiler.py
simoncozens/ufo2ft
910762498441c8480d6512f613146631de093dce
[ "MIT" ]
1
2015-11-03T07:49:22.000Z
2015-11-03T07:49:22.000Z
Lib/ufo2ft/featureCompiler.py
simoncozens/ufo2ft
910762498441c8480d6512f613146631de093dce
[ "MIT" ]
null
null
null
Lib/ufo2ft/featureCompiler.py
simoncozens/ufo2ft
910762498441c8480d6512f613146631de093dce
[ "MIT" ]
null
null
null
import logging import os from collections import OrderedDict from inspect import isclass from io import StringIO from tempfile import NamedTemporaryFile from fontTools import mtiLib from fontTools.feaLib.builder import addOpenTypeFeaturesFromString from fontTools.feaLib.error import FeatureLibError, IncludedFeaNotFoun...
36.25
88
0.638854
e85bba11cd15a0cf4e70d16e981ac14f4308a251
31,657
py
Python
tensorflow/python/framework/op_def_library.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/framework/op_def_library.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/framework/op_def_library.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.021492
97
0.600689
e85bd6a13067b8cf62fd18cd2deeee7cbc438eda
142
py
Python
terrascript/data/PortOfPortland/activedirectory.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/PortOfPortland/activedirectory.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/PortOfPortland/activedirectory.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/PortOfPortland/activedirectory.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:10:54 UTC) __all__ = []
23.666667
73
0.774648
e85bf9873e0415a2f6d0e853765a359a38fbaecc
2,556
py
Python
utils/exp_utils.py
suresh-guttikonda/differentiable-particle-filters
b629b97658e80bbdbcbd8a05f8153472f5cdd621
[ "MIT" ]
137
2018-02-22T16:45:33.000Z
2022-02-03T14:28:49.000Z
utils/exp_utils.py
Ubiqelife-Lin/differentiable-particle-filters
69f55c260a480544d6f8e943412c10d4213802df
[ "MIT" ]
5
2018-07-02T08:55:42.000Z
2021-04-18T12:36:59.000Z
utils/exp_utils.py
Ubiqelife-Lin/differentiable-particle-filters
69f55c260a480544d6f8e943412c10d4213802df
[ "MIT" ]
43
2018-05-30T06:13:06.000Z
2022-03-23T18:30:05.000Z
import os import itertools import numpy as np def get_default_hyperparams(): # default hyperparams return { 'global': { 'init_with_true_state': False, 'learn_odom': False, 'use_proposer': True, 'propose_ratio': 0.7, 'proposer_keep_ratio': 0.1...
28.719101
101
0.530516
e85c0d1365f47748116e425e975602e90ea7e65c
7,840
py
Python
dapper/tools/chronos.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
1
2022-01-03T19:08:32.000Z
2022-01-03T19:08:32.000Z
dapper/tools/chronos.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
dapper/tools/chronos.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
"""Time sequence management, notably Chronology and Ticker.""" import numpy as np from struct_tools import AlignedDict class Chronology(): """Time schedules with consistency checks. - Uses int records => `tt[k] == k*dt`. - Uses generators => time series may be arbitrarily long. Example illustratio...
28.405797
85
0.484694
e85c4524a6689c01d1999597e76c64a8a4818e0f
3,878
py
Python
guillotina_elasticsearch/tests/test_parser.py
plone/guillotina_elasticsearch
539996e9f4f6c9312503bd55613ff8b052a49657
[ "BSD-2-Clause" ]
4
2019-04-27T14:40:24.000Z
2021-03-02T18:10:07.000Z
guillotina_elasticsearch/tests/test_parser.py
plone/guillotina_elasticsearch
539996e9f4f6c9312503bd55613ff8b052a49657
[ "BSD-2-Clause" ]
21
2019-04-05T19:20:44.000Z
2021-07-14T17:07:30.000Z
guillotina_elasticsearch/tests/test_parser.py
plone/guillotina_elasticsearch
539996e9f4f6c9312503bd55613ff8b052a49657
[ "BSD-2-Clause" ]
2
2019-04-04T08:36:50.000Z
2021-03-26T19:59:29.000Z
from guillotina.directives import index_field from guillotina.interfaces import IContainer from guillotina.tests import utils as test_utils from guillotina_elasticsearch.parser import Parser from guillotina_elasticsearch.tests.utils import setup_txn_on_container import asyncio import json import pytest pytestmark = ...
34.318584
86
0.596699
e85c63d7d59998d515ad6df492a7d1babe8a5ef9
2,534
py
Python
pandas/io/tests/test_wb.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_wb.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_wb.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import nose import pandas from pandas.util.testing import network from pandas.util.testing import assert_frame_equal from numpy.testing.decorators import slow from pandas.io.wb import search, download @slow @network def test_wdi_search(): raise nose.SkipTest expected = {u('id'): {2634: u('GDPPCKD'), ...
56.311111
964
0.555249
e85c7347214a95afcf3f8862675cda5881b042b5
740
py
Python
mfiles/__init__.py
afcmrp/mfiles
a357585f6bd22a6022b0205b123e8e46e8277fcd
[ "MIT" ]
6
2020-07-07T17:41:23.000Z
2021-01-02T22:44:22.000Z
mfiles/__init__.py
afcmrp/python-mfiles
a357585f6bd22a6022b0205b123e8e46e8277fcd
[ "MIT" ]
3
2020-05-01T07:58:26.000Z
2021-02-08T08:30:18.000Z
mfiles/__init__.py
afcmrp/mfiles
a357585f6bd22a6022b0205b123e8e46e8277fcd
[ "MIT" ]
2
2020-08-27T07:56:10.000Z
2021-01-02T22:44:33.000Z
"""Python wrapper around the M-Files API. Simplifies search, upload, download and creation of objects in M-Files vaults. When authentication is needed credentials are fetched from environment variables ``MFILES_USER`` and ``MFILES_PASS``. If they are not set the credentials are fetched from user input using ``input()`...
43.529412
79
0.77973
e85c8c3a9425200de1552f976d9331cf3f86b4f0
1,252
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble/services/circuitpython.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble/services/circuitpython.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble/services/circuitpython.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Scott Shawcroft for Adafruit Industries # # SPDX-License-Identifier: MIT """ `circuitpython` ==================================================== This module provides Services defined by CircuitPython. **Out of date.** """ from . import Service from ..characteristics import Characteri...
29.116279
84
0.696486
e85ca069305882150954a1a3780d9c699f850ee9
1,075
py
Python
office365/runtime/client_value.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/runtime/client_value.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/runtime/client_value.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
class ClientValue(object): """Represent complex type. Complex types consist of a list of properties with no key, and can therefore only exist as properties of a containing entity or as a temporary value """ _entity_type_name = None def __init__(self): super(ClientValue, self).__init__()...
31.617647
110
0.64186
e85ca7391cf17f8766219cca402003585349b6d9
56,350
py
Python
dit/npdist.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
1
2021-03-15T08:51:42.000Z
2021-03-15T08:51:42.000Z
dit/npdist.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
dit/npdist.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module defining NumPy array-based distribution classes. One of the features of joint distributions is that we can marginalize them. This requires that we are able to construct smaller outcomes from larger outcomes. For example, an outcome like '10101' might become '01...
36.4489
137
0.600497
e85d1c4a596eddac093a85c83d259b88dc47884b
2,215
py
Python
nets/TSP_edge_classification/gcn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
nets/TSP_edge_classification/gcn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
nets/TSP_edge_classification/gcn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F """ GCN: Graph Convolutional Networks Thomas N. Kipf, Max Welling, Semi-Supervised Classification with Graph Convolutional Networks (ICLR 2017) http://arxiv.org/abs/1609.02907 """ from layers.gcn_layer import GCNLayer from layers.mlp_readou...
29.932432
109
0.565688
e85d3f466aa6273c4b9dcfe17638f12c2d6a0bbc
853
py
Python
importing/migrations/0008_auto_20181106_0110.py
perimetro20/asiaticon
40e833d9ad3e3d8a97803fa10fec64f69ca622cb
[ "MIT" ]
null
null
null
importing/migrations/0008_auto_20181106_0110.py
perimetro20/asiaticon
40e833d9ad3e3d8a97803fa10fec64f69ca622cb
[ "MIT" ]
null
null
null
importing/migrations/0008_auto_20181106_0110.py
perimetro20/asiaticon
40e833d9ad3e3d8a97803fa10fec64f69ca622cb
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-11-06 01:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('importing', '0007_auto_20181106_0103'), ] operations = [ migrations.AlterField( model_name='importresponse', name='f...
29.413793
103
0.614302
e85d629a88208eed08b4e4f549f6818a6e19af9e
16,198
py
Python
CoinJoin_Research/Theory/JoinMarket_Research/JM_Privacy_Analysis/simulations/tumbler_simulation.py
com03240/CoinJoin-Research
f9dad617d3958df05fd997d1859f11c70e2b1347
[ "MIT" ]
51
2019-08-08T03:06:03.000Z
2022-03-27T20:01:31.000Z
CoinJoin_Research/Theory/JoinMarket_Research/JM_Privacy_Analysis/simulations/tumbler_simulation.py
BSPRO61/CoinJoin-Research
f9dad617d3958df05fd997d1859f11c70e2b1347
[ "MIT" ]
20
2019-08-06T23:42:31.000Z
2022-03-27T20:02:44.000Z
CoinJoin_Research/Theory/JoinMarket_Research/JM_Privacy_Analysis/simulations/tumbler_simulation.py
BSPRO61/CoinJoin-Research
f9dad617d3958df05fd997d1859f11c70e2b1347
[ "MIT" ]
16
2019-08-15T23:49:45.000Z
2021-04-02T19:53:01.000Z
from itertools import combinations, chain, product from hashlib import sha256 from binascii import hexlify import random import copy fnt = 190000 def nfc(closure): '''unique names for closures for easier reading ''' return 'C'+ hexlify(sha256(''.join(str(closure))).digest())[:3].upper() class simTx(ob...
41.747423
93
0.55655
e85d708d4b21c6ed4ec18695bc71e588cc5b26ad
599
py
Python
django_cloud_deploy/__version__.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
django_cloud_deploy/__version__.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
django_cloud_deploy/__version__.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.4375
74
0.75793
e85d76906953e49a3a946c9d27aaf8e20213d61b
3,035
py
Python
packages/python-packages/api-stub-generator/apistub/nodes/_argtype.py
LarryOsterman/azure-sdk-tools
0146e05f4aee767ed7593218109546663be95ec4
[ "MIT" ]
null
null
null
packages/python-packages/api-stub-generator/apistub/nodes/_argtype.py
LarryOsterman/azure-sdk-tools
0146e05f4aee767ed7593218109546663be95ec4
[ "MIT" ]
null
null
null
packages/python-packages/api-stub-generator/apistub/nodes/_argtype.py
LarryOsterman/azure-sdk-tools
0146e05f4aee767ed7593218109546663be95ec4
[ "MIT" ]
null
null
null
import inspect # Special default values that should not be treated as string literal SPECIAL_DEFAULT_VALUES = ["None", "..."] # Lint warnings TYPE_NOT_AVAILABLE = "Type is not available for {0}" TYPE_NOT_REQUIRED = ["**kwargs", "self", "cls", "*", ] class ArgType: """Represents Argument type :param str name...
42.746479
120
0.636903
e85d795d84703cabcc3cf5059393208faffc9d47
2,611
py
Python
kbdbl/keylights.py
brainrom/fdclct
9aa0348bcec7ae4199186ce175557dd776dc7955
[ "MIT" ]
2
2021-04-12T14:24:38.000Z
2022-03-31T03:09:12.000Z
kbdbl/keylights.py
brainrom/fdclct
9aa0348bcec7ae4199186ce175557dd776dc7955
[ "MIT" ]
null
null
null
kbdbl/keylights.py
brainrom/fdclct
9aa0348bcec7ae4199186ce175557dd776dc7955
[ "MIT" ]
1
2021-07-17T22:33:25.000Z
2021-07-17T22:33:25.000Z
""" Class to control the lights """ from platform import system from colour import Color import random, copy import kbdbl.binding_optical as binding_optical import kbdbl.binding_winbond as binding_winbond class Keylights: """ Primary (maybe only) class of the fdclct project. This tries to find an attach...
29.670455
117
0.633857
e85d88558a69c1c2296b00e034321f45d23ff3eb
4,555
py
Python
src/ralph_scrooge/plugins/collect/tenant.py
kula1922/ralph_pricing
3887ff7a900f10a7630f451dd39f86da829ce3da
[ "Apache-2.0" ]
null
null
null
src/ralph_scrooge/plugins/collect/tenant.py
kula1922/ralph_pricing
3887ff7a900f10a7630f451dd39f86da829ce3da
[ "Apache-2.0" ]
null
null
null
src/ralph_scrooge/plugins/collect/tenant.py
kula1922/ralph_pricing
3887ff7a900f10a7630f451dd39f86da829ce3da
[ "Apache-2.0" ]
1
2021-11-15T21:21:17.000Z
2021-11-15T21:21:17.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from django.conf import settings from ralph.util import plugin, api_scrooge from ralph_scrooge.models import ( PricingObjectM...
31.19863
79
0.6764
e85d91d2473375ad712b23595d7ec4e0cba38271
9,020
py
Python
src/graph_transpiler/webdnn/backend/webgl/allocator.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgl/allocator.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgl/allocator.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import Dict, List, Set, Union import numpy as np from webdnn.backend.code_generator.allocator import MemoryLayout, Allocation, BufferType from webdnn.backend.webgl.attributes.channel_mode import ChannelMode, ChannelModeEnum from webdnn.backend.webgl.attributes.texture_shape import TextureShape from webdnn...
36.2249
135
0.632705