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
9336d4e9695db6e6c5b0aad7c254bafe9f0c3d96
3,080
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_update_network_configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_update_network_configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_update_network_configuration.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
49.677419
125
0.691883
93370ecce295ae470f825dcddfcb7a5c82c72696
4,967
py
Python
ingest.py
RobinSrimal/TechnicalAssignment
3a75ba43195510b56482f1d186c1dd58452347ab
[ "MIT" ]
null
null
null
ingest.py
RobinSrimal/TechnicalAssignment
3a75ba43195510b56482f1d186c1dd58452347ab
[ "MIT" ]
null
null
null
ingest.py
RobinSrimal/TechnicalAssignment
3a75ba43195510b56482f1d186c1dd58452347ab
[ "MIT" ]
null
null
null
import pandas as pd import pymongo import numpy as np import unittest import string from dotenv import load_dotenv import os class Ingest: """Class to ingest a csv file containing musical work information into a MongoDB data base. Has to be instantiated with the address of the csv file as a paramete...
32.89404
134
0.585867
93371d80bee34353ef1045c9ab06284b90a98522
3,104
py
Python
lib/WindowManager.py
brennerm/EvolutronicLife
5f8bef5dea8f64fb3e76889d9c600962400558cd
[ "MIT" ]
4
2015-12-12T03:11:23.000Z
2018-02-18T18:39:44.000Z
lib/WindowManager.py
brennerm/EvolutronicLife
5f8bef5dea8f64fb3e76889d9c600962400558cd
[ "MIT" ]
null
null
null
lib/WindowManager.py
brennerm/EvolutronicLife
5f8bef5dea8f64fb3e76889d9c600962400558cd
[ "MIT" ]
2
2016-06-12T20:30:16.000Z
2018-05-12T15:32:19.000Z
# -*- coding: utf-8 -*- import curses from Window import InfoWindow, MapWindow, OptionPane, TileWindow import globals as global_vars #start and configure curses as needed _main_win = curses.initscr() curses.start_color() if curses.can_change_color(): curses.init_color(0, 0, 0, 0) curses.noecho() curses.cbreak() c...
29.009346
104
0.721972
93372d64054237c10ce28d2a7f95035f275c5d7a
2,227
py
Python
pajbot/web/common/filters.py
aidenwallis/pajbot
eb180dd517e1f25cbc22dc65216b81aadccb597d
[ "MIT" ]
null
null
null
pajbot/web/common/filters.py
aidenwallis/pajbot
eb180dd517e1f25cbc22dc65216b81aadccb597d
[ "MIT" ]
null
null
null
pajbot/web/common/filters.py
aidenwallis/pajbot
eb180dd517e1f25cbc22dc65216b81aadccb597d
[ "MIT" ]
null
null
null
from pajbot.managers.time import TimeManager import pajbot.utils def init(app): @app.template_filter() def date_format(value, format="full"): if format == "full": date_format = "%Y-%m-%d %H:%M:%S" return value.strftime(date_format) @app.template_filter("strftime") def tim...
28.551282
95
0.574315
9337676ace1837b150abe256eb2cdeb019168165
8,081
py
Python
YaraLib.py
asch513/sysmon_more
2d3230085e4496fcc652b16caac3d25822797e45
[ "Apache-2.0" ]
null
null
null
YaraLib.py
asch513/sysmon_more
2d3230085e4496fcc652b16caac3d25822797e45
[ "Apache-2.0" ]
null
null
null
YaraLib.py
asch513/sysmon_more
2d3230085e4496fcc652b16caac3d25822797e45
[ "Apache-2.0" ]
1
2020-10-26T09:03:42.000Z
2020-10-26T09:03:42.000Z
from configparser import ConfigParser import json import logging import mmap import os import requests import sys import time import traceback import yara from subprocess import Popen, PIPE # custom ConfigParser to keep case sensitivity class CaseConfigParser(ConfigParser): def optionxform(self, optionstr): ...
40.405
178
0.611682
9337b2cd72685aedaab168d10bd40875188f6dc4
3,112
py
Python
utils/ht_time.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
9
2015-03-23T23:21:42.000Z
2021-08-01T01:47:22.000Z
utils/ht_time.py
SimiCode/Grail-Web-Browser
16b86d3215068d334eacf6153b71a748eed53d3d
[ "CNRI-Jython" ]
null
null
null
utils/ht_time.py
SimiCode/Grail-Web-Browser
16b86d3215068d334eacf6153b71a748eed53d3d
[ "CNRI-Jython" ]
11
2015-03-23T23:22:22.000Z
2020-06-08T14:24:17.000Z
"""Conversions between HTTP time formats and system time. Loosely modelled after the W3C Reference Library at <URL:http://www.w3.org/pub/WWW/Library/>. """ import time import string try: time.timezone except AttributeError: t = time.time() time.timezone = int(time.gmtime(t)[3] - time.localti...
32.416667
76
0.552057
9337e8a5d96798d12407c6d81e6b831e5193f084
1,662
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/models/secret_models.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/models/secret_models.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/models/secret_models.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.000Z
""" Copyright 2014-2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
36.933333
79
0.706378
9337f5488b400790907970d31e801e6d48ff867a
861
py
Python
process_results/process_fma_metadata.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
process_results/process_fma_metadata.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
process_results/process_fma_metadata.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
import pandas import os def format_id(id): return f"{id//1000:03d}/{id:06d}.mp3" df = pandas.read_csv("data/fma_metadata/raw_tracks.csv") ids = df['track_id'] new_dataframe = pandas.DataFrame( dict( id=[format_id(id) for id in ids], album_title=df['album_title'], artist_name=df['artist...
26.90625
73
0.673635
933817019d6e4b069814243a20eca0f8a08e99bc
104,419
py
Python
torch/overrides.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
torch/overrides.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
torch/overrides.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
""" Python implementation of ``__torch_function__`` While most of the torch API and handling for ``__torch_function__`` happens at the C++ level, some of the torch API is written in Python so we need python-level handling for ``__torch_function__`` overrides as well. The main developer-facing functionality in this fil...
53.058435
173
0.651242
93381ca4c762baab73e1d8f9512409252a2caa57
3,531
py
Python
tests/sa-test.py
kolypto/py-exdoc
b10e7d2bf2ac796621e734e24a8429b45ce483b4
[ "BSD-2-Clause" ]
1
2019-10-07T07:21:12.000Z
2019-10-07T07:21:12.000Z
tests/sa-test.py
kolypto/py-exdoc
b10e7d2bf2ac796621e734e24a8429b45ce483b4
[ "BSD-2-Clause" ]
null
null
null
tests/sa-test.py
kolypto/py-exdoc
b10e7d2bf2ac796621e734e24a8429b45ce483b4
[ "BSD-2-Clause" ]
1
2019-07-04T09:28:59.000Z
2019-07-04T09:28:59.000Z
import unittest from exdoc import sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, ForeignKey, UniqueConstraint from sqlalchemy.dialects.postgresql import JSON from sqlalchemy.orm import relationship, column_property Base = declarative_base() class User(Base...
39.233333
101
0.562164
93381ed87490db5c1816aa44dfc8fb5a3e646fba
8,312
py
Python
oscar/lib/python2.7/site-packages/django/db/models/functions/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/db/models/functions/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/db/models/functions/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Classes that represent database functions. """ from django.db.models import Func, Transform, Value, fields class Cast(Func): """ Coerce an expression to a new field type. """ function = 'CAST' template = '%(function)s(%(expressions)s AS %(db_type)s)' mysql_types = { ...
36.778761
101
0.637873
9338270911bf164cda660217dde83cdcf29a22f3
6,791
py
Python
guillotina_elasticsearch/parser.py
plone/guillotina_elasticsearch
539996e9f4f6c9312503bd55613ff8b052a49657
[ "BSD-2-Clause" ]
4
2019-04-27T14:40:24.000Z
2021-03-02T18:10:07.000Z
guillotina_elasticsearch/parser.py
plone/guillotina_elasticsearch
539996e9f4f6c9312503bd55613ff8b052a49657
[ "BSD-2-Clause" ]
21
2019-04-05T19:20:44.000Z
2021-07-14T17:07:30.000Z
guillotina_elasticsearch/parser.py
plone/guillotina_elasticsearch
539996e9f4f6c9312503bd55613ff8b052a49657
[ "BSD-2-Clause" ]
2
2019-04-04T08:36:50.000Z
2021-03-26T19:59:29.000Z
# https://docs.google.com/document/d/1xooubzJKBnUzVlsa2f0GSwvuE1oir9hUdWUf1SU9S6E/edit from dateutil.parser import parse from guillotina import configure from guillotina.catalog.parser import BaseParser from guillotina.catalog.utils import get_index_definition from guillotina.interfaces import IResource from guillotina...
31.439815
86
0.593874
9338477be3697252a25477b6f20c3b7890d65c4c
479
py
Python
src/metaworlds/envs/mujoco/gather/__init__.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
5
2019-02-27T20:55:30.000Z
2019-08-24T19:24:41.000Z
src/metaworlds/envs/mujoco/gather/__init__.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
8
2019-02-28T04:07:10.000Z
2020-01-02T10:54:10.000Z
src/metaworlds/envs/mujoco/gather/__init__.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
1
2021-09-13T18:35:34.000Z
2021-09-13T18:35:34.000Z
from metaworlds.envs.mujoco.gather.gather_env import GatherEnv from metaworlds.envs.mujoco.gather.ant_gather_env import AntGatherEnv # noqa: I100 from metaworlds.envs.mujoco.gather.embedded_viewer import EmbeddedViewer from metaworlds.envs.mujoco.gather.point_gather_env import PointGatherEnv from metaworlds.envs.mujoc...
43.545455
83
0.830898
933889090850f847c69fcd1a633514f55d95c152
45,846
py
Python
Sublime Text 3/Packages/backrefs/tools/unipropgen.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
7
2016-01-20T01:44:36.000Z
2019-01-29T11:52:39.000Z
Sublime Text 3/Packages/backrefs/tools/unipropgen.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
4
2016-01-27T17:42:07.000Z
2021-08-13T12:31:25.000Z
Sublime Text 3/Packages/backrefs/tools/unipropgen.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
2
2015-11-15T09:11:34.000Z
2019-01-29T11:52:41.000Z
"""Generate a Unicode prop table for Python builds.""" import sys import unicodedata import codecs import os import re __version__ = '5.0.0' UNIVERSION = None UNIVERSION_INFO = None HOME = os.path.dirname(os.path.abspath(__file__)) MAXUNICODE = sys.maxunicode MAXASCII = 0xFF MAXVALIDASCII = 0x7F GROUP_ESCAPES = froze...
35.76131
117
0.519086
9338ace4cca55d5121f30fb8e4a3ccb56ce813b9
3,455
py
Python
app/assets/storage.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
2
2020-03-04T13:43:45.000Z
2020-11-03T20:34:21.000Z
app/assets/storage.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
64
2019-07-19T19:19:50.000Z
2022-03-03T21:19:28.000Z
app/assets/storage.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
null
null
null
gear = { # core 'barber_surgeon': {'bgcolor': 'E55451', 'color': 'FFF', 'name': 'Barber Surgeon'}, 'blacksmith': {'bgcolor': '625D5D', 'color': 'FFF','name': 'Blacksmith'}, 'bone_smith': {'bgcolor': 'e3dac9', 'name': 'Bone Smith'}, 'catarium': {'bgcolor': 'BA8B02', 'consequences': [], 'name': 'Catarium'}, 'exhau...
50.072464
155
0.649493
9338bbbdeee1f7ebd8f4ee150956782a3dfbd480
689
py
Python
mowl/model.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
mowl/model.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
mowl/model.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
class Model(object): def __init__(self, dataset): self.dataset = dataset self._testing_set = None def train(self): '''Trains the model ''' raise NotImplementedError() def eval_method(): raise NotImplementedError() def evaluate(self): ''...
20.878788
62
0.602322
9338e3703607549d7c9eaca90aa88f6f699691f9
6,476
py
Python
kitchensink/rpc/views.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
2
2015-03-17T05:02:42.000Z
2016-04-07T15:02:28.000Z
kitchensink/rpc/views.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
null
null
null
kitchensink/rpc/views.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
1
2015-10-07T21:50:44.000Z
2015-10-07T21:50:44.000Z
import logging from os.path import exists import traceback import time from flask import request, current_app, jsonify from rq.job import Status from .app import rpcblueprint from ..serialization import pack_result, pack_results, unpack_msg, pack_msg from .. import settings from ..utils import send_file logger = log...
38.778443
86
0.612724
9338f9a47a9e305b92aafba33d6346825cece9f2
11,691
py
Python
homeassistant/components/guardian/__init__.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
1
2021-07-31T21:08:49.000Z
2021-07-31T21:08:49.000Z
homeassistant/components/guardian/__init__.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
27
2021-07-26T06:13:52.000Z
2022-03-31T06:15:55.000Z
homeassistant/components/guardian/__init__.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
1
2021-04-04T22:03:57.000Z
2021-04-04T22:03:57.000Z
"""The Elexa Guardian integration.""" from __future__ import annotations import asyncio from collections.abc import Awaitable from typing import cast from aioguardian import Client from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_ATTRIBUTION, CONF_IP_ADDRESS, CONF_PORT from h...
34.184211
89
0.654349
9339153f3effae53e20375b273a2068710a3764a
426
py
Python
django-project/shows/migrations/0002_auto_20180730_1104.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
null
null
null
django-project/shows/migrations/0002_auto_20180730_1104.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
6
2020-02-24T19:11:26.000Z
2021-05-07T13:44:56.000Z
django-project/shows/migrations/0002_auto_20180730_1104.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
1
2018-07-31T16:13:42.000Z
2018-07-31T16:13:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-07-30 16:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shows', '0001_initial'), ] operations = [ migrations.AlterField( ...
20.285714
46
0.598592
93391d763b35aa574b313c152c837ab44738b54e
7,529
py
Python
bcbio/variation/population.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
1
2015-04-08T17:43:39.000Z
2015-04-08T17:43:39.000Z
bcbio/variation/population.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
bcbio/variation/population.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
"""Provide infrastructure to allow exploration of variations within populations. Uses the gemini framework (https://github.com/arq5x/gemini) to build SQLite database of variations for query and evaluation. """ import collections from distutils.version import LooseVersion import glob import os import subprocess from b...
42.061453
112
0.622925
93395be0e448f3be6323098be54a171d34c7117d
10,177
py
Python
python/medifor/v1/cli.py
cameron-a-johnson/medifor
2290ffccaace5c24b85a0595861f221dcbcf7efe
[ "Apache-2.0" ]
null
null
null
python/medifor/v1/cli.py
cameron-a-johnson/medifor
2290ffccaace5c24b85a0595861f221dcbcf7efe
[ "Apache-2.0" ]
null
null
null
python/medifor/v1/cli.py
cameron-a-johnson/medifor
2290ffccaace5c24b85a0595861f221dcbcf7efe
[ "Apache-2.0" ]
null
null
null
#!/bin/python import click import functools import grpc import json import uuid import sys import logging from grpc_health.v1 import health_pb2 from grpc_health.v1 import health_pb2_grpc from google.protobuf import json_format from medifor.v1 import mediforclient, pipeclient, medifortools, pipeline_pb2 class Conte...
44.247826
213
0.711703
93396009940129f4cc05a283b23f670d986dde5c
4,129
py
Python
thermostat/parallel.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
12
2017-03-08T23:17:44.000Z
2021-10-15T15:56:30.000Z
thermostat/parallel.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
23
2017-10-24T00:07:37.000Z
2021-07-15T14:42:31.000Z
thermostat/parallel.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
11
2017-03-22T22:35:30.000Z
2021-01-01T22:30:14.000Z
import pandas as pd from collections import defaultdict from itertools import cycle from zipfile import ZipFile import tempfile import os from thermostat.stations import get_closest_station_by_zipcode def schedule_batches(metadata_filename, n_batches, zip_files=False, batches_dir=None): """ Batch scheduler for la...
36.539823
101
0.673771
933963dd20cd18ca171f36488041b91ae3f26a79
3,733
py
Python
napari/components/chunk/_request.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/components/chunk/_request.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/components/chunk/_request.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
"""ChunkRequest is passed to ChunkLoader.load_chunks(). """ import logging from typing import Optional, Tuple import numpy as np from ...layers.base.base import Layer from ...types import ArrayLike, Dict from ._utils import get_data_id LOGGER = logging.getLogger("napari.async") # We convert slices to tuple for hash...
27.248175
79
0.596303
93397cda450875d76cdb9add0049e325bb5d0af2
10,224
py
Python
tests/remoteexecution/workspace.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/remoteexecution/workspace.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/remoteexecution/workspace.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# Pylint doesn't play well with fixtures and dependency injection from pytest # pylint: disable=redefined-outer-name import os import re import shutil import pytest from buildstream.testing import cli_remote_execution as cli # pylint: disable=unused-import from buildstream.testing.integration import assert_contains ...
33.631579
117
0.641334
9339a697aabdfa083ec3bfd5c16952a68fa10b77
6,167
py
Python
defoe/papers/queries/target_keysearch_by_year_details.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
2
2022-02-14T12:10:54.000Z
2022-02-14T12:35:44.000Z
defoe/papers/queries/target_keysearch_by_year_details.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
17
2022-02-09T21:46:14.000Z
2022-02-25T14:55:09.000Z
defoe/papers/queries/target_keysearch_by_year_details.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
1
2022-02-14T13:19:08.000Z
2022-02-14T13:19:08.000Z
""" Get concordance (also called details) of articles in which we have keywords or keysentences. Filter those by target words and group results by year. This query is the recommended to use when there are target words. """ from defoe import query_utils from defoe.papers.query_utils import ( preprocess_clean_articl...
32.119792
96
0.582779
9339f1765fbd1b6b768aceb604db96108114711b
3,477
py
Python
search/417_pacificAtlantic.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
search/417_pacificAtlantic.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
search/417_pacificAtlantic.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
from typing import * class Solution: """ 给定一个 m x n 的非负整数矩阵来表示一片大陆上各个单元格的高度。“太平洋”处于大陆的左边界和上边界,而“大西洋”处于大陆的右边界和下边界。 规定水流只能按照上、下、左、右四个方向流动,且只能从高到低或者在同等高度上流动。 请找出那些水流既可以流动到“太平洋”,又能流动到“大西洋”的陆地单元的坐标。 提示: 输出坐标的顺序不重要 m 和 n 都小于150 示例: 给定下面的 5x5 矩阵: 太平洋 ~ ~ ~ ~ ~ ...
27.816
118
0.514236
9339fb2cf10f74e3885711762f9ada977dbfcbf3
8,168
py
Python
detectron_/data/dataset_mapper.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
detectron_/data/dataset_mapper.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
detectron_/data/dataset_mapper.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import copy import logging import numpy as np from typing import List, Optional, Union import torch from detectron.config import configurable from . import detection_utils as utils from . import transforms as T """ This file contains the default mapping that's appli...
42.541667
99
0.655118
933a0aba179810c9aeab33b2041ab0ebca2de64d
1,936
py
Python
src/build/android/pylib/symbols/apk_lib_dump.py
lazymartin/naiveproxy
696e8714278e85e67e56a2eaea11f26c53116f0c
[ "BSD-3-Clause" ]
2,219
2018-03-26T02:57:34.000Z
2022-03-31T00:27:59.000Z
src/build/android/pylib/symbols/apk_lib_dump.py
lazymartin/naiveproxy
696e8714278e85e67e56a2eaea11f26c53116f0c
[ "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
src/build/android/pylib/symbols/apk_lib_dump.py
lazymartin/naiveproxy
696e8714278e85e67e56a2eaea11f26c53116f0c
[ "BSD-3-Clause" ]
473
2019-03-24T16:34:23.000Z
2022-03-31T02:01:05.000Z
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Dump shared library information from an APK file. This script is used to dump which *uncompressed* native shared libraries an APK ...
31.225806
79
0.705062
933a122f4609f54064105b788425645d3eef493c
12,072
py
Python
nova_rover_demos/SLAM/fastSLAM2.0.py
matthomas15/novaRoverDemos
1c5386edb7c4061f663a2eaa802becb8936af237
[ "MIT" ]
11
2019-09-19T07:39:47.000Z
2021-09-14T05:48:22.000Z
nova_rover_demos/SLAM/fastSLAM2.0.py
matthomas15/novaRoverDemos
1c5386edb7c4061f663a2eaa802becb8936af237
[ "MIT" ]
8
2019-09-19T11:43:09.000Z
2020-12-11T07:41:50.000Z
nova_rover_demos/SLAM/fastSLAM2.0.py
JmcRobbie/novaRoverDemos
b6a39b3607ba3f3e81fd3afd2600778fcaa85e5a
[ "MIT" ]
9
2019-08-19T06:32:02.000Z
2020-07-31T05:09:14.000Z
""" Implementation of the fast slam 2.0 algorithm NOTE: We do not own the entire code The majority of the code is taken from the Python Robotics Repo https://github.com/AtsushiSakai/PythonRobotics """ import math import matplotlib.pyplot as plt import numpy as np """ Fast SLAM covariance Q [[9. 0. ...
25.308176
92
0.522614
933a33f20af750e8fbf009690f76529f3fcf4b88
585
py
Python
scripts/py/one_off/set_implemented_false.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/one_off/set_implemented_false.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/one_off/set_implemented_false.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
from time import sleep from legislative_act import model as dm cids = [c.meta.id for c in dm.Search().filter('term', doc_type='cover').scan()] # print('\n'.join(cids)) for k, cid in enumerate(cids): if k % 1000 == 0 and k != 0: sleep(30) cover = dm.Cover.get(cid) changed = False for anchor...
21.666667
79
0.601709
933a480a2a2ba33db1a1c71e12f9ce884bd73585
4,527
py
Python
CeurWsParser/run_tests.py
ailabitmo/sempubchallenge2014-task1
54db07d04aa0b3edda25502ee872419b9d260fb0
[ "MIT" ]
1
2015-07-21T08:34:22.000Z
2015-07-21T08:34:22.000Z
CeurWsParser/run_tests.py
ailabitmo/sempubchallenge2014-task1
54db07d04aa0b3edda25502ee872419b9d260fb0
[ "MIT" ]
10
2015-01-03T16:08:10.000Z
2015-01-12T15:45:26.000Z
CeurWsParser/run_tests.py
ailabitmo/sempubchallenge2014-task1
54db07d04aa0b3edda25502ee872419b9d260fb0
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import os import csv import traceback import argparse from csv import Dialect from rdflib import Graph, Literal, URIRef, util from rdflib.plugins.stores import sparqlstore from rdflib.namespace import FOAF, DCTERMS, DC, XSD import config from namespaces import SWRC, BIBO...
34.557252
106
0.553347
933a648e22494f3f050c2536822eec694c6d7870
7,761
py
Python
pump_csv.py
couchbaselabs/couchbase-cli
596f3564d08881af83f93910ac3d2c53a82b1d64
[ "Apache-2.0" ]
null
null
null
pump_csv.py
couchbaselabs/couchbase-cli
596f3564d08881af83f93910ac3d2c53a82b1d64
[ "Apache-2.0" ]
null
null
null
pump_csv.py
couchbaselabs/couchbase-cli
596f3564d08881af83f93910ac3d2c53a82b1d64
[ "Apache-2.0" ]
1
2018-08-23T11:14:28.000Z
2018-08-23T11:14:28.000Z
#!/usr/bin/env python import csv import logging import os import simplejson as json import sys import couchbaseConstants import pump def number_try_parse(s): for func in (int, float): try: v = func(s) if s == str(v): return v except ValueError: ...
36.781991
92
0.482026
933a98344697eb3da1fb2fc9039c72a54772e461
330
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/apds9960_simpletest.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/examples/apds9960_simpletest.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/examples/apds9960_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import busio from adafruit_apds9960.apds9960 import APDS9960 i2c = busio.I2C(board.SCL, board.SDA) apds = APDS9960(i2c) apds.enable_proximity = True while True: print(apds.proximity) time.s...
19.411765
62
0.775758
933aa2e29714e7b069c738a39e9842f9589ddb7d
6,143
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v2beta1_resource_metric_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v2beta1_resource_metric_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v2beta1_resource_metric_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V2bet...
35.715116
228
0.648217
933ab781a14505c0819c3db3a798e1809c7dc719
408
py
Python
src/dj_auth/signals.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/dj_auth/signals.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/dj_auth/signals.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from django.db.models.signals import post_save from django.dispatch import receiver @receiver(post_save, sender=User) def create_auth_token(sender, instance=None, created=False, **kwargs): """ Creates a token wheneve...
29.142857
70
0.759804
933ad1133a989c98ebf4741aac47849266c52240
742
py
Python
workalendar/europe/france.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/europe/france.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/europe/france.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from workalendar.core import WesternCalendar, ChristianMixin from workalendar.registry import iso_register @iso_register('FR') class France(WesternCalendar, ChristianMixin): name = 'France' include_easter_monday = True include_ascension = Tr...
25.586207
60
0.695418
933aea14b126d335ff7d6161780ee39ec08458aa
10,019
py
Python
rally/common/io/subunit_v2.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/common/io/subunit_v2.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/common/io/subunit_v2.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2015-02-07T09:44:47.000Z
2015-02-07T09:44:47.000Z
# Copyright 2015: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
39.757937
79
0.559936
933af8daa0528eb529216a97c2ffee932a5a3a5e
3,720
py
Python
resources/user_resource.py
rjvanvoorhis/photomosaic-api
83aeaebda87bbaa80c133cf9ceee5ae9c597e39d
[ "MIT" ]
null
null
null
resources/user_resource.py
rjvanvoorhis/photomosaic-api
83aeaebda87bbaa80c133cf9ceee5ae9c597e39d
[ "MIT" ]
null
null
null
resources/user_resource.py
rjvanvoorhis/photomosaic-api
83aeaebda87bbaa80c133cf9ceee5ae9c597e39d
[ "MIT" ]
null
null
null
from werkzeug.security import generate_password_hash, check_password_hash from accessors.user_accessor import UserAccessor from redis_processor.message_processor import MessageProcessor, Message import logging from helpers.image_server import ImageServer import os class UserException(Exception): pass class User...
36.470588
111
0.7
933b1e571865e6399ab87c398e5f4ef4cc7494b1
1,189
py
Python
metador/orcid/__init__.py
FionaDmello/metador
8fb70d3fd95649f93f750c051a638114bc206769
[ "MIT" ]
7
2021-12-15T13:37:36.000Z
2022-01-10T07:26:52.000Z
metador/orcid/__init__.py
FionaDmello/metador
8fb70d3fd95649f93f750c051a638114bc206769
[ "MIT" ]
3
2022-01-18T08:46:12.000Z
2022-01-27T10:47:54.000Z
metador/orcid/__init__.py
FionaDmello/metador
8fb70d3fd95649f93f750c051a638114bc206769
[ "MIT" ]
1
2022-02-28T13:30:09.000Z
2022-02-28T13:30:09.000Z
"""Entry points for using ORCID authentication.""" from typing import Optional from fastapi import Cookie, HTTPException, status from .auth import Auth, Session, SessionID _auth = None """Var for singleton instance of Auth.""" def init_auth(*args, **kwargs) -> None: """Initialize Auth singleton.""" global...
24.770833
85
0.656013
933b2d34d8c1fc84b5b01487ee75336348ff76dd
15,737
py
Python
appengine/monorail/features/notify_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/features/notify_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/features/notify_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Helper functions for email notifications of issue changes.""" from __future__ import print_f...
36.344111
80
0.739023
933b4a74f79a446894a804517ac10aacd9f16933
4,212
py
Python
xenapi/provision.py
praekeltfoundation/xenzen
5dc670302052bb4cd9a89351bda613cc436573a0
[ "MIT" ]
3
2016-09-25T01:17:19.000Z
2017-07-12T13:38:49.000Z
xenapi/provision.py
praekeltfoundation/xenzen
5dc670302052bb4cd9a89351bda613cc436573a0
[ "MIT" ]
15
2016-08-26T10:42:52.000Z
2017-05-12T09:10:46.000Z
xenapi/provision.py
praekeltfoundation/xenzen
5dc670302052bb4cd9a89351bda613cc436573a0
[ "MIT" ]
5
2017-05-18T07:58:37.000Z
2021-11-14T03:51:05.000Z
#!/usr/bin/env python # Copyright (c) 2007 XenSource, Inc. # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
37.945946
103
0.673314
933b541d4cd2e1935c8b0be47924f5c5a3c287ac
1,637
py
Python
nmtwizard/data.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
nmtwizard/data.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
nmtwizard/data.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
"""Data utilities.""" import os import shutil def merge_files(files, output): """Merge all files in output.""" with open(output, 'wb') as output_file: for f in files: with open(f, 'rb') as fd: shutil.copyfileobj(fd, output_file, 1024 * 1024 * 10) # Chunk of 10MB. def mer...
38.97619
92
0.652413
933b6ea2a72e76b5a3291d3ad52cb3c70845c554
1,022
py
Python
search_service/proxy/__init__.py
jornh/amundsensearchlibrary
1a05eb2f063a0805d16261fcf4a6751023f502f9
[ "Apache-2.0" ]
null
null
null
search_service/proxy/__init__.py
jornh/amundsensearchlibrary
1a05eb2f063a0805d16261fcf4a6751023f502f9
[ "Apache-2.0" ]
null
null
null
search_service/proxy/__init__.py
jornh/amundsensearchlibrary
1a05eb2f063a0805d16261fcf4a6751023f502f9
[ "Apache-2.0" ]
null
null
null
from threading import Lock from flask import current_app from search_service import config from search_service.proxy.base import BaseProxy from werkzeug.utils import import_string _proxy_client = None _proxy_client_lock = Lock() def get_proxy_client() -> BaseProxy: """ Provides singleton proxy client based...
28.388889
87
0.709393
933b91c496570b582d213b7a7ba73056dfad91fe
779
py
Python
328_Odd-Even-Linked-List.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
328_Odd-Even-Linked-List.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
328_Odd-Even-Linked-List.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def oddEvenList(self, head): """ :type head: ListNode :rtype: ListNode """ if not head or not head.next: return h...
25.129032
62
0.51733
933b921b62595f0f34761ed60f7fa8d6de6c0729
23,265
py
Python
data_steward/test/unit_test/data_steward/cdr_cleaner/cleaning_rules/domain_alignment_test.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
data_steward/test/unit_test/data_steward/cdr_cleaner/cleaning_rules/domain_alignment_test.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
data_steward/test/unit_test/data_steward/cdr_cleaner/cleaning_rules/domain_alignment_test.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
import unittest from mock import patch, mock import cdr_cleaner.cleaning_rules.domain_alignment as domain_alignment from cdr_cleaner.cleaning_rules.domain_alignment import WHEN_STATEMENT from cdr_cleaner.cleaning_rules.domain_alignment import CASE_STATEMENT from cdr_cleaner.cleaning_rules.domain_alignment import SRC_F...
59.34949
118
0.626735
933b95369437f50701945670a2a9403fb375d5c5
3,804
py
Python
test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_microsoft_azure_test_url.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_microsoft_azure_test_url.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_microsoft_azure_test_url.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
41.802198
100
0.690326
933b9e22642e382d5e638916b2a477e667bb4aa3
29,401
py
Python
var/spack/repos/builtin/packages/boost/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/boost/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/boost/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import sys from spack import * class Boost(Package): """Boost provides free peer-reviewed portable C++ so...
46.742448
102
0.632121
933ba94472158eeb1448479368678c6c4787c428
2,378
py
Python
venv/Lib/site-packages/tensorflow/_api/v2/sparse/__init__.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
venv/lib/python3.6/site-packages/tensorflow_core/_api/v2/sparse/__init__.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/tensorflow_core/_api/v2/sparse/__init__.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Sparse Tensor Representation. See also `tf.SparseTensor`. """ from __future__ import print_function as _print_function import sys as _sys from tensorflow.python.framework.sparse_tens...
55.302326
94
0.869638
933ba9e0f13d5754147812986d73a91f4f3ec956
573
py
Python
heapq/mycalendertwo.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
heapq/mycalendertwo.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
heapq/mycalendertwo.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class MyCalendarTwo: def __init__(self): self.overlaps = [] self.calendar = [] def book(self, start, end): for i, j in self.overlaps: if start < j and end > i: return False for i, j in self.calendar: if start < j and end > i: ...
27.285714
68
0.556719
933c5b10c127fc92d9f18090b66f1a7d1d3417a3
3,660
py
Python
test/test_reader.py
mih/nidmresults
438f7cce6abc4a4379b629bd76f4d427891e033f
[ "MIT" ]
8
2016-06-15T13:47:07.000Z
2021-05-14T11:00:07.000Z
test/test_reader.py
mih/nidmresults
438f7cce6abc4a4379b629bd76f4d427891e033f
[ "MIT" ]
45
2015-05-16T10:01:38.000Z
2020-02-05T18:04:51.000Z
test/test_reader.py
cmaumet/nidmresults
438f7cce6abc4a4379b629bd76f4d427891e033f
[ "MIT" ]
7
2015-01-20T19:25:19.000Z
2019-06-18T12:52:26.000Z
#!/usr/bin/env python """ Test NIDM FSL export tool installation @author: Camille Maumet <c.m.j.maumet@warwick.ac.uk> @copyright: University of Warwick 2013-2015 """ from nidmresults.owl.owl_reader import OwlReader import unittest from nidmresults.graph import * from nidmresults.test.test_results_doc import TestResul...
30.5
77
0.59918
933c9f583a235715c548a3beabd2c2d8c98188a2
2,842
py
Python
xcessiv/tests/test_models.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
1,362
2017-05-23T15:02:18.000Z
2022-03-28T22:42:21.000Z
xcessiv/tests/test_models.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
40
2017-05-23T17:59:05.000Z
2019-07-03T13:08:14.000Z
xcessiv/tests/test_models.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
123
2017-05-24T05:49:34.000Z
2022-02-06T17:54:32.000Z
from __future__ import absolute_import, print_function, division, unicode_literals import unittest from xcessiv import models from sklearn.ensemble import RandomForestClassifier class TestReturnTrainDataFromJSON(unittest.TestCase): def setUp(self): self.extraction = models.Extraction() self.extrac...
36.435897
82
0.614356
933cbc4c17961896b8790022a7a17dc94d64ef95
6,128
py
Python
giantstar/drivers/locustDriver.py
DaoSen-v/gaintstar
5ecae8652c9f71aaa78cc0fd181d431cb130cab1
[ "MIT" ]
1
2021-08-06T08:32:15.000Z
2021-08-06T08:32:15.000Z
giantstar/drivers/locustDriver.py
DaoSen-v/gaintstar
5ecae8652c9f71aaa78cc0fd181d431cb130cab1
[ "MIT" ]
null
null
null
giantstar/drivers/locustDriver.py
DaoSen-v/gaintstar
5ecae8652c9f71aaa78cc0fd181d431cb130cab1
[ "MIT" ]
null
null
null
import json import time from collections import OrderedDict import requests from giantstar.drivers.basicDriver import BaseDriver from giantstar.globalSetting import plus_setting from giantstar.sessionManage.baseSession import BaseSession from giantstar.utils.dataParser import JsonParser from giantstar.utils.initTest ...
40.853333
127
0.623205
933cfd65fdab654854df2073e4df3b4d3d28a42b
10,524
py
Python
tests/unit/test_sierra_search_platform.py
BookOps-CAT/NightShift
dc106b55cee3ec60c790f71f20e0754506385d59
[ "MIT" ]
null
null
null
tests/unit/test_sierra_search_platform.py
BookOps-CAT/NightShift
dc106b55cee3ec60c790f71f20e0754506385d59
[ "MIT" ]
17
2020-12-07T04:43:48.000Z
2022-03-30T12:44:41.000Z
tests/unit/test_sierra_search_platform.py
BookOps-CAT/NightShift
dc106b55cee3ec60c790f71f20e0754506385d59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from contextlib import nullcontext as does_not_raise import logging from bookops_nypl_platform import PlatformToken import pytest from nightshift import __title__, __version__ from nightshift.ns_exceptions import SierraSearchPlatformError from nightshift.comms.sierra_search_platform import ( ...
35.795918
92
0.592645
933d18a5792cd5a423cb0e872ba2330f92e2395f
8,473
py
Python
docs/source/conf.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
3
2018-03-19T07:21:08.000Z
2020-07-01T15:23:32.000Z
docs/source/conf.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
null
null
null
docs/source/conf.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
3
2019-01-24T14:02:43.000Z
2019-11-22T17:41:42.000Z
# -*- coding: utf-8 -*- # # django-auditlog documentation build configuration file, created by # sphinx-quickstart on Wed Nov 6 20:39:48 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
31.615672
79
0.721114
933d1c6e928fddfbc05cf8d35234185b6aa5aade
576
py
Python
tests/stub/urls.py
everhide/everbug
72da1372510a2116e45c23da934a40dca1f4dbd5
[ "MIT" ]
182
2018-06-15T07:07:11.000Z
2021-06-15T21:53:58.000Z
tests/stub/urls.py
everhide/everbug
72da1372510a2116e45c23da934a40dca1f4dbd5
[ "MIT" ]
7
2018-06-15T07:03:58.000Z
2018-09-13T08:43:19.000Z
tests/stub/urls.py
everhide/everbug
72da1372510a2116e45c23da934a40dca1f4dbd5
[ "MIT" ]
3
2018-06-15T20:44:51.000Z
2018-09-12T19:05:39.000Z
from django.conf.urls import url from tests.stub.views import ( Context, ContextEmpty, context, context_empty, context_render, query_multiply, query_no, query_single ) urlpatterns = [ url(r'^context/$', context), url(r'^context_empty/$', context_empty), url(r'^context_rend...
23.04
57
0.65625
933d242b4a819ab2a8cb258e4e0f026da0d63b79
15,410
py
Python
electrum/lnaddr.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
null
null
null
electrum/lnaddr.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
null
null
null
electrum/lnaddr.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # This was forked from https://github.com/rustyrussell/lightning-payencode/tree/acc16ec13a3fa1dc16c07af6ec67c261bd8aff23 import re import time from hashlib import sha256 from binascii import hexlify from decimal import Decimal import bitstring from .bitcoin import hash160_to_b58_address, b58_...
35.588915
330
0.59721
933d329e881eb5e1c3bd9cf3ef0655a979a31fce
3,966
py
Python
chatrooms/apps/users/services.py
EliasCampos/chatrooms_py
9e1abaf5887293e1df6f0b91eb0f9587e8d405fc
[ "MIT" ]
null
null
null
chatrooms/apps/users/services.py
EliasCampos/chatrooms_py
9e1abaf5887293e1df6f0b91eb0f9587e8d405fc
[ "MIT" ]
null
null
null
chatrooms/apps/users/services.py
EliasCampos/chatrooms_py
9e1abaf5887293e1df6f0b91eb0f9587e8d405fc
[ "MIT" ]
null
null
null
import hashlib import hmac import time from typing import Optional from tortoise.exceptions import DoesNotExist from chatrooms.apps.common.exceptions import BadInputError from chatrooms.apps.common.utils import base36_to_int, int_to_base36 from chatrooms.apps.users.models import User, Token from chatrooms.apps.users....
31.47619
112
0.702219
933d44064d8280e8143a0b0c3e069be176cb50f6
2,885
py
Python
src/read_itek/itf_clip_stats.py
njvack/read_itek
f9fd7f904f38b7f3f19a1d84d5d4d84046b1b289
[ "MIT" ]
null
null
null
src/read_itek/itf_clip_stats.py
njvack/read_itek
f9fd7f904f38b7f3f19a1d84d5d4d84046b1b289
[ "MIT" ]
null
null
null
src/read_itek/itf_clip_stats.py
njvack/read_itek
f9fd7f904f38b7f3f19a1d84d5d4d84046b1b289
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017 Board of Regents of the University of Wisconsin System # Written by Nathan Vack <njvack@wisc.edu> """Usage: itf_clip_stats [options] <hdf5_file>... Files are expected to be in the format generated by itf2hdf5. For each channel in each listed file, gen...
32.055556
78
0.645061
933d806d7f22daac47a1b43574067c1f7c81d337
496
py
Python
jsontest/jsontestIP.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
jsontest/jsontestIP.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
jsontest/jsontestIP.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests # define the URL we want to use IPURL = "http://ip.jsontest.com/" def main(): # use requests library to send an HTTP GET resp = requests.get(IPURL) # strip off JSON response # and convert to PYTHONIC LIST / DICT respjson = resp.json() # display our PYTHONI...
19.84
56
0.639113
933db5cd32988c494564e8776bf0b8577b4e8653
172
py
Python
business_rules/__init__.py
liumanman/business-rules
e8bfece2d6295fe00bdca3b0ba6f54a62e55b69f
[ "MIT" ]
null
null
null
business_rules/__init__.py
liumanman/business-rules
e8bfece2d6295fe00bdca3b0ba6f54a62e55b69f
[ "MIT" ]
null
null
null
business_rules/__init__.py
liumanman/business-rules
e8bfece2d6295fe00bdca3b0ba6f54a62e55b69f
[ "MIT" ]
null
null
null
__version__ = '1.0.10' from .engine import run_all from .utils import export_rule_data # Appease pyflakes by "using" these exports assert run_all assert export_rule_data
19.111111
43
0.802326
933db6712834a8c8b53fa19d13cfa5b20bcb6519
15,949
py
Python
fairseq/models/fconv.py
izzykayu/fairseq-py
7e86e30cc5b97db30403b738de2dbbb55f06a92b
[ "BSD-3-Clause" ]
3
2018-07-24T06:52:54.000Z
2020-02-26T11:28:21.000Z
fairseq/models/fconv.py
sliedes/fairseq-py
b7993be19ce87f1d6e35aaa3d42aeceab04d6f94
[ "BSD-3-Clause" ]
null
null
null
fairseq/models/fconv.py
sliedes/fairseq-py
b7993be19ce87f1d6e35aaa3d42aeceab04d6f94
[ "BSD-3-Clause" ]
1
2021-04-06T22:56:56.000Z
2021-04-06T22:56:56.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. # import math import torch from to...
39.380247
103
0.634711
933db71970649bbcf897cd694f00dadd3f30aa20
7,935
py
Python
experiments/sasha/testing/vae/vae-state-sparse.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/testing/vae/vae-state-sparse.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/testing/vae/vae-state-sparse.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment ...
36.232877
121
0.581727
933dd5050d764c1be29b537f1a0d0d03f920264b
3,541
py
Python
models/StaBri.py
caotong0/SBNet-for-video-prediction
1d31edf698b26320cfd8295d760d9d1e212609ba
[ "MIT" ]
9
2019-05-13T11:25:33.000Z
2020-12-12T09:18:45.000Z
models/StaBri.py
caotong0/NN-for-video-prediction
1d31edf698b26320cfd8295d760d9d1e212609ba
[ "MIT" ]
1
2019-09-01T12:59:07.000Z
2020-04-04T02:33:58.000Z
models/StaBri.py
caotong0/NN-for-video-prediction
1d31edf698b26320cfd8295d760d9d1e212609ba
[ "MIT" ]
4
2019-07-26T08:17:56.000Z
2020-05-26T12:10:35.000Z
from models.clstm_parts import * import torch.nn as nn import torch class StaBriNet(nn.Module): def __init__(self, n_channels, n_classes): super(StaBriNet, self).__init__() d = [n_channels, 32, 64, 128, 128, 256, 1] self.d = d self.layers = 5 self.net = torch.nn....
34.048077
106
0.468229
933dd57135a12275db66f949b34d11878d2cae5d
77
py
Python
twilio/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/__init__.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
__version_info__ = ('6', '7', '1') __version__ = '.'.join(__version_info__)
19.25
40
0.649351
933dd6aa159284bc3876c469bda6c43558c3ea68
781
py
Python
tests/test_export.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
tests/test_export.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
tests/test_export.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the exporter module.""" import pytest from tin import formats @pytest.fixture('module') def outfile(data_dir): yield data_dir / 'test_out.obj' class TestExporter: def test_generate_triangles(self, tin_db, tin_schema): stardb = formats.StarDb...
26.033333
63
0.682458
933df6d71dd7c972efe63d54fa7344ecfc39b0a7
6,698
py
Python
tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_benchmark.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_benchmark.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_benchmark.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "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...
39.169591
80
0.651388
933e1dc2257d4e507175228c1f21079562faa0b6
5,672
py
Python
licenses/spiders/heatgen.py
jandolezal/licenses
ca1c14fd3f3a8aab88ef2445aeb95c361b39c8f0
[ "MIT" ]
null
null
null
licenses/spiders/heatgen.py
jandolezal/licenses
ca1c14fd3f3a8aab88ef2445aeb95c361b39c8f0
[ "MIT" ]
null
null
null
licenses/spiders/heatgen.py
jandolezal/licenses
ca1c14fd3f3a8aab88ef2445aeb95c361b39c8f0
[ "MIT" ]
null
null
null
"""Spider for scraping licenses for heat generation (i.e. výroba tepelné energie). Expects json file with metadata about holders scraped with holders spider. One of this metadata, license id (číslo licence), is used to prepare list of start urls. """ import json import logging import re import sys import unicodedata...
34.585366
112
0.596439
933e56cc25bcfb81f97c15e7ef22d9129b213d69
682
py
Python
kadi/urls.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
1
2015-07-30T18:33:14.000Z
2015-07-30T18:33:14.000Z
kadi/urls.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
104
2015-01-20T18:44:36.000Z
2022-03-29T18:51:55.000Z
kadi/urls.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
2
2018-08-23T02:36:08.000Z
2020-03-13T19:24:36.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from django.conf.urls import include, url from django.contrib import admin import kadi.views import mica.web.views import find_attitude.web_find_attitude.views admin.autodiscover() urlpatterns = [ # '', # url(r'^admin/', include(admin.site.urls)), ...
34.1
74
0.705279
933e6334afd5058a9c9f6cf146e96e08f8ec2d19
781
py
Python
cloudmesh/launcher/queue/tasks.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/launcher/queue/tasks.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/launcher/queue/tasks.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from celery import current_task from cloudmesh.launcher.queue.celery import celery_launcher_queue from cloudmesh.launcher.cm_launcher import SimulatorLauncher as Launcher import sys import os from celery.utils.log import get_task_logger logger = get_task_logger(__name__) launc...
30.038462
121
0.788732
933ea8bfba3bfe31e5eed395245bfe3d99b2630b
1,156
py
Python
confident/loaders/default_source_loader.py
limonyellow/confident
73a4943b3bd11e0dd074815770e99731e00e4219
[ "MIT" ]
null
null
null
confident/loaders/default_source_loader.py
limonyellow/confident
73a4943b3bd11e0dd074815770e99731e00e4219
[ "MIT" ]
null
null
null
confident/loaders/default_source_loader.py
limonyellow/confident
73a4943b3bd11e0dd074815770e99731e00e4219
[ "MIT" ]
null
null
null
from typing import List from pydantic import BaseSettings from confident.config_field import ConfigField from confident.config_source import ConfigSource from confident.loaders.source_loader_base import SourceLoader class DefaultSourceLoader(SourceLoader): NAME = ConfigSource.class_default def load_fields(...
36.125
85
0.66436
933eb9bee8846e9c55a9c26afda39d805e8514e3
3,313
py
Python
autox/autox_competition/feature_engineer/fe_exp_weighted_mean.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
499
2021-07-27T02:57:58.000Z
2022-03-28T12:08:27.000Z
autox/autox_competition/feature_engineer/fe_exp_weighted_mean.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
9
2021-08-03T15:14:56.000Z
2022-03-11T07:06:06.000Z
autox/autox_competition/feature_engineer/fe_exp_weighted_mean.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
87
2021-07-27T01:13:02.000Z
2022-03-29T02:14:09.000Z
import pandas as pd from tqdm import tqdm from autox.autox_competition.CONST import FEATURE_TYPE from datetime import timedelta def ewm_features(df, lags, val, keys, alpha=0.95): df_temp = df[keys + [val]] names = [] for lag in lags: name = f"{'__'.join(keys)}__{val}__ewm_" + str(lag) names...
37.647727
116
0.588892
933efb7d01a9b119152314d5af8565fd37df2652
31
py
Python
btd6_memory_info/generated/SteamNative/UserStatsUnloaded_t/user_stats_unloaded_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/UserStatsUnloaded_t/user_stats_unloaded_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/UserStatsUnloaded_t/user_stats_unloaded_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class UserStatsUnloaded_t: pass
31
31
0.903226
933f0f3799bbded2c587de5ea6b8c0ed4fbe4ff8
7,881
py
Python
recsim/choice_model.py
FEBR-rec/ExpertDrivenRec
07ebf0b9735ac97c3024f32197edbf1493226c2b
[ "MIT" ]
5
2021-01-08T19:08:19.000Z
2021-12-22T01:15:04.000Z
recsim/choice_model.py
FEBR-rec/ExpertDrivenRec
07ebf0b9735ac97c3024f32197edbf1493226c2b
[ "MIT" ]
null
null
null
recsim/choice_model.py
FEBR-rec/ExpertDrivenRec
07ebf0b9735ac97c3024f32197edbf1493226c2b
[ "MIT" ]
1
2021-01-16T19:13:28.000Z
2021-01-16T19:13:28.000Z
# coding=utf-8 # coding=utf-8 # Copyright 2019 The RecSim 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 ap...
34.116883
80
0.72973
933f1ea938c2d7fefbf481e1ae5f5ea013d68d8e
16,528
py
Python
tb-marketplace/tb-dep-manager/common/vm_instance.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
null
null
null
tb-marketplace/tb-dep-manager/common/vm_instance.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
null
null
null
tb-marketplace/tb-dep-manager/common/vm_instance.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
1
2021-08-31T15:13:34.000Z
2021-08-31T15:13:34.000Z
# Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.082949
1,206
0.658458
933f378a509e26f7f42b832791ec4e69a369329b
1,682
py
Python
demos/unpaired_ct_abdomen/demo_train.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
379
2020-07-18T22:00:53.000Z
2022-03-31T05:17:29.000Z
demos/unpaired_ct_abdomen/demo_train.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
646
2020-07-18T08:55:48.000Z
2022-03-29T02:24:54.000Z
demos/unpaired_ct_abdomen/demo_train.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
62
2020-07-26T05:00:23.000Z
2022-02-22T21:58:19.000Z
import argparse from datetime import datetime from deepreg.train import train name = "unpaired_ct_abdomen" # parser is used to simplify testing # please run the script with --full flag to ensure non-testing mode # for instance: # python script.py --full parser = argparse.ArgumentParser() parser.add_argument( "--...
25.104478
77
0.624257
933f3de36715054bdf036fcf0513ced90f74e759
4,407
py
Python
Analyzer/provincialAnalysis.py
Luxing-PP/data-science-homework
c0da86d3054734de80e95f2189a0be8d83615651
[ "Apache-2.0" ]
null
null
null
Analyzer/provincialAnalysis.py
Luxing-PP/data-science-homework
c0da86d3054734de80e95f2189a0be8d83615651
[ "Apache-2.0" ]
null
null
null
Analyzer/provincialAnalysis.py
Luxing-PP/data-science-homework
c0da86d3054734de80e95f2189a0be8d83615651
[ "Apache-2.0" ]
null
null
null
from demo import jsonDemo from Analyzer import analyzer import numpy as np def provincialemotion(mode): #default:全阶段 mode==1:第一阶段 2:第二阶段 3:第三阶段 4:第四阶段 oldprovincelist = jsonDemo.jsonreadprovince() # 存放了每个评论的省份,总共11619条评论 timelist=jsonDemo.jsonreadtime()#每条评论的时间 oldemotionlist = analyzer.giveEmotioanl...
40.063636
119
0.508509
933f9334cbafa136361a1c2aafa93c7e2669cd4f
3,724
py
Python
pychromecast/controllers/youtube.py
Cygn/pychromecast
bccba1d9d84893d243ce5d626878d5f2f5095442
[ "MIT" ]
null
null
null
pychromecast/controllers/youtube.py
Cygn/pychromecast
bccba1d9d84893d243ce5d626878d5f2f5095442
[ "MIT" ]
null
null
null
pychromecast/controllers/youtube.py
Cygn/pychromecast
bccba1d9d84893d243ce5d626878d5f2f5095442
[ "MIT" ]
null
null
null
""" Controller to interface with the YouTube-app. Use the media controller to play, pause etc. """ import threading from casttube import YouTubeSession from . import BaseController from ..const import MESSAGE_TYPE from ..error import UnsupportedNamespace from ..config import APP_YOUTUBE YOUTUBE_NAMESPACE = "urn:x-cas...
33.54955
83
0.654941
933f9dd3adeecff71bede334b8c78fbb12e5a61d
3,518
py
Python
app/main/views.py
OjureFred/MoringaPrep
f280da7e6a525bc877d9d0e9a40061df7d637f09
[ "MIT" ]
null
null
null
app/main/views.py
OjureFred/MoringaPrep
f280da7e6a525bc877d9d0e9a40061df7d637f09
[ "MIT" ]
null
null
null
app/main/views.py
OjureFred/MoringaPrep
f280da7e6a525bc877d9d0e9a40061df7d637f09
[ "MIT" ]
3
2020-07-23T11:38:00.000Z
2020-07-23T12:11:31.000Z
from flask import render_template, request, redirect, url_for, abort from flask_login import login_required, current_user from ..models import Comment, User, Tutorial from . import main from .forms import UpdateProfile, TutorialForm, CommentForm from .. import db, photos import markdown2 #Views @main.route('/') def in...
31.981818
137
0.684196
933fa4848bcb23c9b7cc67400f91e23ced82be30
569
py
Python
test/rules/test_bite_adult.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
test/rules/test_bite_adult.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
test/rules/test_bite_adult.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
from smartva.rules import bite_adult as bite from smartva.data.constants import * VA = Adult def test_pass(): row = { VA.BITE: YES, VA.INJURY_DAYS: 0, } assert bite.logic_rule(row) is True def test_fail_bite(): row = { VA.BITE: NO, VA.INJURY_DAYS: 0, } asse...
14.973684
44
0.599297
933faa32fde55d093e552126692efd01e3ced154
5,103
py
Python
dataprep/clean/clean_eu_banknote.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_eu_banknote.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_eu_banknote.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Clean and validate a DataFrame column containing Euro banknote serial numbers. """ # pylint: disable=too-many-lines, too-many-arguments, too-many-branches from typing import Any, Union from operator import itemgetter import dask.dataframe as dd import numpy as np import pandas as pd from stdnum.eu import banknote...
31.306748
99
0.621399
933fb30f97f6b828118a29b4fca2e7f4e8fd33f9
2,521
py
Python
examples/run_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
examples/run_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
examples/run_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
import os import sys import time import json import z5py from simpleference.inference.inference import run_inference_n5 from simpleference.backends.gunpowder.tensorflow.backend import TensorflowPredict from simpleference.backends.gunpowder.preprocess import preprocess from simpleference.inference.util import get_offse...
33.613333
81
0.597382
933fcee3771f07c395b46f247e262a50729ea2fe
29,586
py
Python
lingvo/tasks/mt/decoder_test.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
4
2019-06-08T00:19:06.000Z
2020-08-03T16:28:53.000Z
lingvo/tasks/mt/decoder_test.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/mt/decoder_test.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
5
2018-12-11T08:05:16.000Z
2020-05-30T03:40:13.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...
39.238727
92
0.672717
933fddd4c13a9e210b6651eb8bff71fc6ad906fe
310
py
Python
Build/site_scons/site_tools/gcc_8.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Build/site_scons/site_tools/gcc_8.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Build/site_scons/site_tools/gcc_8.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
import gcc_common _generate, _exists = gcc_common.DefineGCCToolFunctions(8, major=8) # Define new functions so that we remain in any stack traces involving these functions def generate(*args, **kwargs): return _generate(*args, **kwargs) def exists(*args, **kwargs): return _exists(*args, **kwargs)
25.833333
86
0.741935
933fde58649cc22106c0f2edafbd54f9ebb870a1
8,454
py
Python
spoty/commands/first_list_commands/sync_spotify_command.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
2
2022-02-01T16:49:32.000Z
2022-03-02T18:30:31.000Z
spoty/commands/first_list_commands/sync_spotify_command.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
null
null
null
spoty/commands/first_list_commands/sync_spotify_command.py
dy-sh/spoty
431a392707c8754da713871e0e7747bcc4417274
[ "MIT" ]
null
null
null
from spoty import settings from spoty import log import spoty.spotify_api import spoty.csv_playlist import spoty.utils from spoty.utils import SpotyContext import click import os from datetime import datetime @click.command("sync-spotify") @click.option('--grouping-pattern', '--gp', show_default=True, d...
52.8375
189
0.682635
93401dfe26389669cd240c9fb85d267282dd658b
7,245
py
Python
homeassistant/components/sensor/wunderground.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
4
2017-03-22T21:16:45.000Z
2021-06-11T05:08:14.000Z
homeassistant/components/sensor/wunderground.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
homeassistant/components/sensor/wunderground.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
4
2016-11-27T01:59:49.000Z
2018-03-11T07:17:25.000Z
""" Support for WUnderground weather service. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.wunderground/ """ from datetime import timedelta import logging import requests import voluptuous as vol from homeassistant.components.sensor import PLA...
33.082192
78
0.612836
93402d6cd28c9381088ff39304fc0324697fa586
5,394
py
Python
modules/gcp_k8s_service/gcp_k8s_service.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
modules/gcp_k8s_service/gcp_k8s_service.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
modules/gcp_k8s_service/gcp_k8s_service.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
from typing import TYPE_CHECKING, Dict, List, Union from modules.base import GcpK8sModuleProcessor, K8sServiceModuleProcessor from modules.linker_helper import LinkerHelper from opta.core.kubernetes import create_namespace_if_not_exists, get_manual_secrets from opta.exceptions import UserErrors if TYPE_CHECKING: ...
44.213115
118
0.583055
93402d93e6c4aff0a3b0492c5e0840aefaa6b196
1,360
py
Python
tempest/stress/actions/volume_create_delete.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/stress/actions/volume_create_delete.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/stress/actions/volume_create_delete.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # di...
42.5
77
0.689706
934036b2914c3dd06189b095bd58199a36552895
3,261
py
Python
test/v1/test_L2P.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/v1/test_L2P.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/v1/test_L2P.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from __future__ import division, print_function, unicode_literals import pytest from wavestate.iirrational import v1 from wavestate.iirrational.testing.utilities import ( sign_validate_hint, sign_validate_and_plot_hint, ) from wavestate.iirrational import fitters_rational, fitte...
29.116071
85
0.666973
93403f64e676ebc3dac473810d485f11fe4521a3
1,043
py
Python
presidio-analyzer/tests/test_ie_ppsn_recognizer.py
fearghal/presidio
d381d278643a79b20c4200535365610637ad2473
[ "MIT" ]
null
null
null
presidio-analyzer/tests/test_ie_ppsn_recognizer.py
fearghal/presidio
d381d278643a79b20c4200535365610637ad2473
[ "MIT" ]
null
null
null
presidio-analyzer/tests/test_ie_ppsn_recognizer.py
fearghal/presidio
d381d278643a79b20c4200535365610637ad2473
[ "MIT" ]
null
null
null
import pytest from tests import assert_result from presidio_analyzer.predefined_recognizers import IePpsnRecognizer @pytest.fixture(scope="module") def recognizer(): return IePpsnRecognizer() @pytest.fixture(scope="module") def entities(): return ["IE_PPS_NUMBER"] @pytest.mark.parametrize( "text, exp...
27.447368
80
0.629914
93406e4ddbb1c0b40673f9c3c67bc6ea9d6ac7d4
1,343
py
Python
alipay/aop/api/domain/ContractFileInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ContractFileInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ContractFileInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ContractFileInfo(object): def __init__(self): self._file_name = None self._file_url = None @property def file_name(self): return self._file_name @file_name.s...
23.982143
69
0.575577
934090de170126b395217558859a1d782d4cc913
2,265
py
Python
MachineLearning/DBSCAN/test.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
MachineLearning/DBSCAN/test.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
MachineLearning/DBSCAN/test.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:UTF-8 import cv2 import numpy as np import DBSCAN img = cv2.imread("C:\\Study\\test\\1ssssssss\\m-5-6.8.png") gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) gray_m, gray_n = np.shape(gray) def func(algorithm, par=None): algorithms = { "SIFT" : cv2.xfeatures2d.SIFT_create(), "SURF": cv2.xfeat...
26.647059
95
0.6883
93409ffe18d0c670dfba720bc9157cabf701624a
1,727
py
Python
onadata/apps/logger/tests/test_form_list.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/logger/tests/test_form_list.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/logger/tests/test_form_list.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 from django.contrib.auth.models import AnonymousUser from django.test import RequestFactory from django_digest.test import DigestAuth from onadata.apps.main.tests.test_base import TestBase from onadata.apps.logger.views import formList class TestFormList(TestBase): def setUp(self): super(...
37.543478
62
0.693688
9340a1cd8159c39d4d6bcff40e57a4637986e10d
21,070
py
Python
atom/nucleus/python/nucleus_api/api/score_api.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/api/score_api.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/api/score_api.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 re # noqa: F401 # python 2 and pyt...
39.163569
161
0.603322
9340cbdcad97a8bcf3e34f5925bc45010a425e41
1,372
py
Python
django_xsede_warehouse/resource_v2/urls.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
1
2019-10-29T22:50:29.000Z
2019-10-29T22:50:29.000Z
django_xsede_warehouse/resource_v2/urls.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
django_xsede_warehouse/resource_v2/urls.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, url from resource_v2.views import * from django.views.decorators.cache import cache_page # Define our custom URLs # Additionally, we include login URLs for the browseable API. # Special reg for resource/id/<id> in case there are slashes in the 'id' urlpatterns = [ url(r'^provi...
37.081081
86
0.618076
9340fa6c3303bf303be4bc7528d050e48c762fe6
2,828
py
Python
meterbus/telegram_header.py
blagasz/pyMeterBus
f6b05858ea054d9e6260a9d1ef6babe5dcb31c5c
[ "BSD-3-Clause" ]
null
null
null
meterbus/telegram_header.py
blagasz/pyMeterBus
f6b05858ea054d9e6260a9d1ef6babe5dcb31c5c
[ "BSD-3-Clause" ]
null
null
null
meterbus/telegram_header.py
blagasz/pyMeterBus
f6b05858ea054d9e6260a9d1ef6babe5dcb31c5c
[ "BSD-3-Clause" ]
null
null
null
import simplejson as json from .telegram_field import TelegramField class TelegramHeader(object): def __init__(self): self._startField = TelegramField([0x68]) self._lField = TelegramField([0x00]) self._cField = TelegramField() self._aField = TelegramField() self._crcField =...
26.185185
88
0.588755
934133f9fa1111e5cd6daf27d8aa1a45eb86e567
3,712
py
Python
intersight/models/iam_end_point_user_deploy_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_end_point_user_deploy_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_end_point_user_deploy_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamEndPointUserDeployTaskRef(object): """ NOT...
24.746667
81
0.554149
93414748e5c90ec06f24e32a53e6fec69ddc9661
17,824
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/_compute_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/_compute_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/_compute_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
74.266667
1,275
0.811434
93414853186e37cf5204b7f7938ad0acae272671
958
py
Python
f5_manager/rule_views.py
vegitron/f5_manager
84c4dc387b0bb6ebfe02c21eeef229f7cf5fe915
[ "Apache-2.0" ]
null
null
null
f5_manager/rule_views.py
vegitron/f5_manager
84c4dc387b0bb6ebfe02c21eeef229f7cf5fe915
[ "Apache-2.0" ]
null
null
null
f5_manager/rule_views.py
vegitron/f5_manager
84c4dc387b0bb6ebfe02c21eeef229f7cf5fe915
[ "Apache-2.0" ]
null
null
null
from django.template.loader import get_template from django.template import Context from f5_manager.big_ip import BigIP def redirect_view(url): template = get_template('irules/redirect.html') return template.render(Context({ "url": url })) def outside_rule_view(definition): template = get_template('irule...
36.846154
162
0.748434
93414a24c21f62a330b1040c5f4739686e78b46b
7,984
py
Python
datacube/config.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
1
2020-04-15T16:10:27.000Z
2020-04-15T16:10:27.000Z
datacube/config.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
datacube/config.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ User configuration. """ import os from pathlib import Path import configparser from urllib.parse import unquote_plus, urlparse from typing import Optional, Iterable, Union, Any, Tuple, Dict PathLike = Union[str, 'os.PathLike[Any]'] ENVIRONMENT_VARNAME = 'DATACUBE_CONFIG_PATH' #: Config locations ...
31.309804
99
0.612475
934177372b706e4000fdd84711e4ffd3eaf50ba9
26,249
py
Python
lbrynet/extras/daemon/Components.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/extras/daemon/Components.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/extras/daemon/Components.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
import os import asyncio import aiohttp import logging import math import binascii import typing from hashlib import sha256 from types import SimpleNamespace import base58 from aioupnp import __version__ as aioupnp_version from aioupnp.upnp import UPnP from aioupnp.fault import UPnPError import lbrynet.schema from lb...
40.759317
119
0.657473