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
9146819c760b1317c6a614440961db100f3c39c9
3,694
py
Python
pagesext/models/pageimagecontent.py
dlancer/django-pages-cms-extensions
4aa6f2780abef9543ced20258ede01a9662167b3
[ "BSD-3-Clause" ]
1
2016-07-08T07:23:20.000Z
2016-07-08T07:23:20.000Z
pagesext/models/pageimagecontent.py
dlancer/django-pages-cms-extensions
4aa6f2780abef9543ced20258ede01a9662167b3
[ "BSD-3-Clause" ]
null
null
null
pagesext/models/pageimagecontent.py
dlancer/django-pages-cms-extensions
4aa6f2780abef9543ced20258ede01a9662167b3
[ "BSD-3-Clause" ]
null
null
null
"""Implements page image extended content model""" from __future__ import unicode_literals import os import uuid import hashlib import base64 from django.core.urlresolvers import reverse from django.db import models from django.utils.translation import ugettext_lazy as _ from django.db.models.signals import post_del...
36.94
122
0.667298
9146a37901a61ce1f247e612d6548867d0381a9f
1,959
py
Python
contrib/opencensus-ext-ocagent/setup.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-ocagent/setup.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-ocagent/setup.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenCensus Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
37.673077
127
0.675345
9146a6a093c0515669f04515e058616c9fff52e5
10,241
py
Python
home_platform/env.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:15:43.000Z
2021-07-27T09:15:43.000Z
home_platform/env.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
null
null
null
home_platform/env.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:21:12.000Z
2021-07-27T09:21:12.000Z
# Copyright (c) 2017, IGLU consortium # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, # this list of conditions and...
39.848249
161
0.6473
9146c8dc6d337959a627193b041b510d0edcdc79
5,906
py
Python
slavdict/dictionary/migrations/0060_auto_20200521_1134.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
1
2022-01-17T17:26:25.000Z
2022-01-17T17:26:25.000Z
slavdict/dictionary/migrations/0060_auto_20200521_1134.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
8
2020-02-12T13:26:05.000Z
2022-02-10T19:28:07.000Z
slavdict/dictionary/migrations/0060_auto_20200521_1134.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-21 11:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dictionary', '0059_tip'), ] operations = [ migrations.AlterModelOptions( name='tip', options={'ordering': ('ref',),...
210.928571
4,819
0.746529
9146ec2c38c57959a49bf0b1fa54bf0941f38da5
24,900
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/heatmapgl/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/heatmapgl/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/heatmapgl/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # font # ---- @property def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now depr...
34.487535
82
0.56494
91470d99e4a0d59d1565069243dbaf84f89bbe56
1,373
py
Python
vis/wilcoxon.py
SurvivorT/SRTP
1ddc0c4ec31d61daf9f4292c533722e61818eb51
[ "MIT" ]
489
2017-02-21T21:40:22.000Z
2022-03-31T08:01:30.000Z
vis/wilcoxon.py
AliBeikmohammadi/MADRL
3156eb6d6a1e8a4c91ff1dce9f5fc565b2c25c94
[ "MIT" ]
35
2017-03-10T12:28:11.000Z
2022-02-14T14:58:21.000Z
vis/wilcoxon.py
AliBeikmohammadi/MADRL
3156eb6d6a1e8a4c91ff1dce9f5fc565b2c25c94
[ "MIT" ]
121
2017-02-24T20:13:53.000Z
2022-03-08T08:56:32.000Z
#!/usr/bin/env python # # File: wilcoxon.py # import argparse import pickle from pprint import pprint import numpy as np from scipy.stats import wilcoxon def filter_outlier(data): new_dat = [] for d in data: if d < -50: d = -50 new_dat.append(d) return new_dat def main(): ...
22.508197
68
0.578296
91470fc4a82711baa78f10b730e9844591230725
2,493
py
Python
sorts/pigeon_sort.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
sorts/pigeon_sort.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
sorts/pigeon_sort.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
28.655172
74
0.638989
91474310ffb614c5e08e60367d8f126eb685b76e
2,992
py
Python
packages/python/pyfora/ModuleLevelObjectIndex.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
packages/python/pyfora/ModuleLevelObjectIndex.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
packages/python/pyfora/ModuleLevelObjectIndex.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
import sys import os import logging singleton = [None] class NamedObjectNotFoundAsModuleLevelObject: """A singleton instance used as a token to indicate that we couldn't find the object.""" def __init__(self, path): self.path = path def __repr__(self): return "NamedObjectNotFoundAsModuleL...
36.487805
110
0.654078
9147449c015e5f7bf1272284542550d19f07c01b
156
py
Python
src/read_rm.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
null
null
null
src/read_rm.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
null
null
null
src/read_rm.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
null
null
null
from reward_machines.sparse_reward_machine import SparseRewardMachine rm_file = "./automata_learning_utils/data/rm2.txt" rm = SparseRewardMachine(rm_file)
31.2
69
0.852564
91474fe60883d6ef163f0291385de8de1991ef32
5,081
py
Python
alipay/aop/api/domain/InstalmentPlanTuitionDTO.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/InstalmentPlanTuitionDTO.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/InstalmentPlanTuitionDTO.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 InstalmentPlanTuitionDTO(object): def __init__(self): self._amount = None self._biz_time = None self._order_id = None self._partner_id = None self._schedul...
28.869318
77
0.560323
91476d40f01f078b90a98720ed8ba1ac50179619
2,382
py
Python
gaphor/diagram/states/pseudostates.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/states/pseudostates.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/states/pseudostates.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
""" Pseudostate diagram items. See also gaphor.diagram.states package description. """ from gaphor import UML from gaphor.UML.modelfactory import stereotypes_str from gaphas.util import path_ellipse from gaphor.diagram.states.state import VertexItem from gaphor.diagram.presentation import ElementPresentation from gap...
29.407407
80
0.646935
914793dae4fdd965ca96b88c41d32e644754cd8c
24,292
py
Python
src/dynacli.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
null
null
null
src/dynacli.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
null
null
null
src/dynacli.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
null
null
null
""" Convert your Python functions into CLI commands """ import re import sys from argparse import Action, ArgumentParser from enum import Enum, EnumMeta from functools import partial from importlib import import_module from inspect import Parameter, signature from itertools import product from os import path from pkgut...
33.322359
135
0.658982
9147ae31d130e3efef2eac509a0be12ce50b77a9
722
py
Python
palm/plugins/dbt/commands/cmd_snapshot.py
jakeberesford-palmetto/palm-dbt
18cd297ac56eedc31976de8b971a1407e51614fe
[ "Apache-2.0" ]
17
2021-11-10T21:20:31.000Z
2022-01-31T22:14:31.000Z
palm/plugins/dbt/commands/cmd_snapshot.py
jakeberesford-palmetto/palm-dbt
18cd297ac56eedc31976de8b971a1407e51614fe
[ "Apache-2.0" ]
15
2021-11-16T15:39:50.000Z
2022-03-28T19:38:39.000Z
palm/plugins/dbt/commands/cmd_snapshot.py
jakeberesford-palmetto/palm-dbt
18cd297ac56eedc31976de8b971a1407e51614fe
[ "Apache-2.0" ]
7
2021-11-23T23:00:14.000Z
2022-03-03T01:53:18.000Z
import click from typing import Optional, Tuple from palm.plugins.dbt.dbt_palm_utils import dbt_env_vars @click.command("snapshot") @click.option( "--persist", is_flag=True, help="will not drop the test schema at the end" ) @click.option("--select", multiple=True) @click.pass_context def cli(ctx, persist: bool, s...
30.083333
78
0.680055
9147b9715c98f55557e612d0188c5afa732078f8
1,707
py
Python
translator/opennebula.py
5g-media/mape-translation
2cca5b9b0880fa4580597eb02ad6006b9fe835e5
[ "Apache-2.0" ]
null
null
null
translator/opennebula.py
5g-media/mape-translation
2cca5b9b0880fa4580597eb02ad6006b9fe835e5
[ "Apache-2.0" ]
2
2020-04-16T06:08:33.000Z
2020-04-16T06:08:33.000Z
translator/opennebula.py
5g-media/mape-translation
2cca5b9b0880fa4580597eb02ad6006b9fe835e5
[ "Apache-2.0" ]
null
null
null
from translator.basemetric import BaseMetric from translator.exceptions import OsmInfoNotFound from translator.utils import get_vdu_details, opennebula_metrics import copy class Metric(BaseMetric): def __init__(self, raw_metric, source="opennebula"): self.source = source self.raw_metric = raw_metr...
33.470588
81
0.650849
9147c65eeba09378a70bbcc3e8f0f07ee8b47c3f
84
py
Python
src/FOMUserUtil/__init__.py
bcgov/nr-fom-usermanager
1ef0919e84064d1a5840f9df11823f6a9e2a203c
[ "Apache-2.0" ]
null
null
null
src/FOMUserUtil/__init__.py
bcgov/nr-fom-usermanager
1ef0919e84064d1a5840f9df11823f6a9e2a203c
[ "Apache-2.0" ]
6
2022-02-11T17:57:11.000Z
2022-03-12T03:11:21.000Z
src/FOMUserUtil/__init__.py
bcgov/nr-fom-usermanager
1ef0919e84064d1a5840f9df11823f6a9e2a203c
[ "Apache-2.0" ]
null
null
null
import os.path name = os.path.basename(os.path.dirname(__file__)) version = '0.0.9'
21
50
0.72619
9147db26f744673d8c0c25e8474f5b4bf99d1ecb
2,320
py
Python
examples/lecture16b.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
examples/lecture16b.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
examples/lecture16b.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
# Flying pumpkin projectile project from math import sin, cos, radians class Pumpkin: """ Store and calculate data relating to a pumpkin projectile. """ # Class property # ============== time_interval = 0.1 # "Constructor" method # ==================== def __init__(self, angle, v...
27.619048
76
0.615517
9147fc80f24a974eefb2bbbe15743e33f509225f
1,762
py
Python
projects/seadata/backend/tasks/seadata.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
null
null
null
projects/seadata/backend/tasks/seadata.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
null
null
null
projects/seadata/backend/tasks/seadata.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Any, Dict, Optional, Tuple from celery.app.task import Task from restapi.connectors.celery import CeleryExt from restapi.utilities.logs import log from seadata.connectors.b2handle import PIDgenerator from seadata.endpoints import ImportManagerAPI # Size in bytes # TODO: mov...
25.171429
86
0.664018
91487ba8628f8a3db247bfef38160527fc1f39ef
17,822
py
Python
manticore/core/workspace.py
evanpjensen/manticore
3f74e3b7f80757b493bdce3d13178043513ea102
[ "Apache-2.0" ]
null
null
null
manticore/core/workspace.py
evanpjensen/manticore
3f74e3b7f80757b493bdce3d13178043513ea102
[ "Apache-2.0" ]
null
null
null
manticore/core/workspace.py
evanpjensen/manticore
3f74e3b7f80757b493bdce3d13178043513ea102
[ "Apache-2.0" ]
null
null
null
import os import sys import glob import signal import logging import tempfile import io from contextlib import contextmanager from multiprocessing.managers import SyncManager from manticore.utils import config from manticore.utils.helpers import PickleSerializer from .smtlib import solver from .state import State lo...
30.569468
182
0.60055
914887bbc1d4e0c2fb6fc5497f5f5f78d5f9ac63
112
py
Python
tests/util/test_observable.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
tests/util/test_observable.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-07T04:33:46.000Z
2017-06-07T04:33:46.000Z
tests/util/test_observable.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
"""Tests for the :mod:`campy.util.observable` module.""" from campy.util.observable import Observable, Observer
37.333333
56
0.767857
91489735b09d81d9ea48d1f385778a51abc80e24
11,340
py
Python
QUANTAXIS/QAData/data_resample.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2021-01-19T08:33:35.000Z
2021-01-19T08:33:35.000Z
QUANTAXIS/QAData/data_resample.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
null
null
null
QUANTAXIS/QAData/data_resample.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2021-03-15T15:29:05.000Z
2021-03-15T15:29:05.000Z
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation th...
44.822134
169
0.599471
9148ad5da391dcb3e8636b70a233a713e6f199a5
1,825
py
Python
src/util_f1.py
Patrick22414/SROIE-dev
621ab191c3cd25ffaf664ae50f76b8d3d616faf8
[ "MIT" ]
1
2019-09-02T19:06:54.000Z
2019-09-02T19:06:54.000Z
src/util_f1.py
Patrick22414/SROIE-dev
621ab191c3cd25ffaf664ae50f76b8d3d616faf8
[ "MIT" ]
1
2019-08-25T17:09:30.000Z
2019-08-26T06:07:38.000Z
src/util_f1.py
Patrick22414/SROIE-dev
621ab191c3cd25ffaf664ae50f76b8d3d616faf8
[ "MIT" ]
2
2019-08-05T03:30:22.000Z
2020-04-07T22:58:46.000Z
import numpy import torch def calc_f1(pred, truth, iou_thresh=0.5): """ summary: calculates the F1, AP, AR of a single image arguments: pred prediction boxes as an N x 4 tensor, each row is (x0, y0, x1, y1) of a box. prediction boxes are assumed to be in descending conf...
31.465517
100
0.59726
9148be7d9f8ad5206a5f0696d961f51a87ddda83
2,715
py
Python
python/pyarrow/compat.py
DonaldFoss/ApacheArrow
4226adfbc6b3dff10b3fe7a6691b30bcc94140bd
[ "Apache-2.0" ]
1
2020-04-23T01:11:36.000Z
2020-04-23T01:11:36.000Z
python/pyarrow/compat.py
DonaldFoss/ApacheArrow
4226adfbc6b3dff10b3fe7a6691b30bcc94140bd
[ "Apache-2.0" ]
1
2021-12-09T23:06:13.000Z
2021-12-09T23:06:14.000Z
python/pyarrow/compat.py
DonaldFoss/ApacheArrow
4226adfbc6b3dff10b3fe7a6691b30bcc94140bd
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
22.438017
63
0.632413
914922ca2de90d5c5b366f830110221922c6ec3c
4,249
bzl
Python
third_party/com_wix.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/com_wix.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/com_wix.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "com_wix_http_testkit_2_12", artifact = "com.wix:http-testkit_2.12:0.1.25", artifact_sha256 = "b0d9ee9547422f0d0e6638129a9b061f99811a78abbe247e9918f3f069b16ccd", srcjar_sha2...
41.252427
93
0.682043
91496813d20b8c4939f840cdd3bbc759054411ab
2,092
py
Python
python/third_party/htdp/htdp_cmdline_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
python/third_party/htdp/htdp_cmdline_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
4
2017-01-25T18:11:31.000Z
2017-04-04T20:51:45.000Z
python/third_party/htdp/htdp_cmdline_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
28.27027
79
0.652964
91496f1421040b98ccd5ffdf80da0b30fb32b768
279
py
Python
widgets/utils/get_volume.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/utils/get_volume.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/utils/get_volume.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import subprocess cmd = 'amixer get -c 1 Master' process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE) output = process.communicate()[0] result = re.search('\[\d*%\]', str(output)) print(result.group()[1:-1])
19.928571
63
0.666667
914a00a634d0083916f94c8cf3a8da2daa70863e
2,380
py
Python
app/media/json.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
34
2016-10-26T17:19:23.000Z
2020-04-30T09:12:34.000Z
app/media/json.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
2
2019-04-09T11:50:38.000Z
2019-07-05T03:31:57.000Z
app/media/json.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
12
2017-01-14T09:40:24.000Z
2020-04-16T07:40:56.000Z
from typing import Dict import rapidjson from xid import XID, InvalidXID from app.config import settings def xid_encoder(obj): if isinstance(obj, XID): return str(obj) else: raise ValueError("%r is not JSON serializable" % obj) def xid_decoder(obj): if "_id" in obj: try: ...
27.045455
69
0.631513
914a0258bcf388bd2b3533a148479025a155a177
1,512
py
Python
demo/mnist/checkpoint_to_pb_model.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
demo/mnist/checkpoint_to_pb_model.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
demo/mnist/checkpoint_to_pb_model.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import tensorflow as tf from tensorflow.python.framework import graph_util def freeze_graph(input_meta_path, output_pb_path, output_node_names): if input_meta_path[-5:] != '.meta': input_meta_path += '.meta' saver = tf.train.import_meta_graph(input_meta_path, clear_d...
34.363636
75
0.690476
914a0fa7ce19340f04b23273898139529e0051b0
16,687
py
Python
fabric_cf/actor/core/delegation/delegation.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/actor/core/delegation/delegation.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/core/delegation/delegation.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
38.01139
120
0.636424
914a2098cb01293d30e0a31ee7a848d6ebce88ed
2,429
py
Python
adoctor-check-scheduler/adoctor_check_scheduler/manage.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-check-scheduler/adoctor_check_scheduler/manage.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-check-scheduler/adoctor_check_scheduler/manage.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtai...
33.273973
99
0.664471
914a3d633f2dac58e515653e117db13ae7acc96f
1,298
py
Python
pinax/apps/site_default/tests.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/site_default/tests.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/apps/site_default/tests.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
import unittest from django.contrib.sites.models import Site import sys class UpdateSiteDomainNameTestCase(unittest.TestCase): def setUp(self): pass def testCreateDefaultSiteDomainName(self): _sid=1 _domname="domaname232.asdf" _disname="What a name" from manag...
30.186047
117
0.689522
914a3dd02b0e8eb71bba1e2c06185d4869aaf3e2
2,453
py
Python
utilities/nms.py
NanduryVishnu/YOLOv4-Pytorch
4b335d84fe8ef81c0000c30f789e3fb0f518e4a1
[ "MIT" ]
11
2020-08-10T15:09:10.000Z
2021-09-21T21:37:39.000Z
utilities/nms.py
NanduryVishnu/YOLOv4-Pytorch
4b335d84fe8ef81c0000c30f789e3fb0f518e4a1
[ "MIT" ]
1
2021-05-02T18:29:20.000Z
2021-05-02T18:29:21.000Z
utilities/nms.py
NanduryVishnu/YOLOv4-Pytorch
4b335d84fe8ef81c0000c30f789e3fb0f518e4a1
[ "MIT" ]
5
2020-11-13T01:50:17.000Z
2022-03-11T20:08:24.000Z
import torch from utilities.constants import * from utilities.detections import filter_detections from utilities.bboxes import bbox_iou_one_to_many # run_nms def run_nms(dets, model, obj_thresh, nms_thresh=NMS_THRESHOLD): """ ---------- Author: Damon Gwinn (gwinndr) ---------- - Performs nms inpl...
35.042857
106
0.700775
914a582a75e3ca43a403abadbdedc631f8bd8429
4,175
py
Python
docs/conf.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
docs/conf.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
docs/conf.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
30.253623
79
0.626587
914aab6467fe235b52cb7bb142db2719d80a0cab
4,977
py
Python
odpy/seisman.py
OpendTect/odpy
741e7f6b6d201bcccbf141a444ebb2032fbe4f25
[ "Apache-2.0" ]
1
2021-11-18T15:51:14.000Z
2021-11-18T15:51:14.000Z
odpy/seisman.py
OpendTect/odpy
741e7f6b6d201bcccbf141a444ebb2032fbe4f25
[ "Apache-2.0" ]
null
null
null
odpy/seisman.py
OpendTect/odpy
741e7f6b6d201bcccbf141a444ebb2032fbe4f25
[ "Apache-2.0" ]
null
null
null
from odpy.oscommand import getODCommand import odpy.common as odcommon import odpy.dbman as oddbman import odpy.iopar as iopar seismanexe = 'od_DBMan' seisdbdirid = '100010' ...
33.857143
154
0.567008
914aaf308f74bef3122dfc6baca28b08ff95247a
8,992
py
Python
airflow_client/test/test_monitoring_api.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_monitoring_api.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_monitoring_api.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
204.363636
8,173
0.754226
914ae12de5f88e924d384b188de8dbd4c568bff7
1,590
py
Python
openxc/formats/json.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
81
2015-01-17T04:21:55.000Z
2022-01-12T16:54:26.000Z
openxc/formats/json.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
84
2015-01-14T20:17:44.000Z
2020-10-19T21:46:25.000Z
openxc/formats/json.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
32
2015-03-08T14:03:53.000Z
2022-01-04T12:21:59.000Z
"""JSON formatting utilities.""" import json from openxc.formats.base import VehicleMessageStreamer class JsonStreamer(VehicleMessageStreamer): SERIALIZED_COMMAND_TERMINATOR = b"\x00" def parse_next_message(self): parsed_message = None remainder = self.message_buffer message = "" ...
30
79
0.62327
914ae192bd6d67a296dcc5803b2fb9002da67bd7
3,858
py
Python
Lab_5/Content/Scripts/play.py
akashin/HSE_AI_Labs
17082121c0924675d6034941192302c32d43d85f
[ "MIT" ]
8
2016-09-13T16:48:07.000Z
2021-06-01T10:49:37.000Z
Lab_5/Content/Scripts/play.py
akashin/HSE_AI_Labs
17082121c0924675d6034941192302c32d43d85f
[ "MIT" ]
2
2016-10-15T18:43:18.000Z
2018-11-01T15:51:47.000Z
Lab_5/Content/Scripts/play.py
akashin/HSE_AI_Labs
17082121c0924675d6034941192302c32d43d85f
[ "MIT" ]
20
2016-09-13T12:12:34.000Z
2017-05-27T14:26:32.000Z
from __future__ import print_function import gym from gym import wrappers import logging import numpy as np try: import cPickle as pickle except ImportError: import pickle import json, sys, os from os import path from _policies import BinaryActionLinearPolicy # Different file so it can be unpickled import argp...
35.394495
176
0.653966
914afc88a804f84eec241efae83cd627e11b0124
26,385
py
Python
qiskit/aqua/quantum_instance.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
1
2020-08-01T21:07:54.000Z
2020-08-01T21:07:54.000Z
qiskit/aqua/quantum_instance.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/quantum_instance.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
47.032086
102
0.599583
914afecfe71ebcb912f550735aa222d2d5f8a9ce
5,865
py
Python
examples/question-answering/memn2n.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
111
2017-04-21T06:03:04.000Z
2021-04-26T06:36:54.000Z
examples/question-answering/memn2n.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
6
2017-05-15T22:02:49.000Z
2018-03-16T10:25:26.000Z
examples/question-answering/memn2n.py
gheinrich/DIGITS-GAN
63d388095b4f2a2aa6f3b0f6988e01b2c78c3877
[ "BSD-3-Clause" ]
40
2017-04-21T07:04:16.000Z
2019-11-14T14:20:32.000Z
class UserModel(Tower): @model_property def inference(self): def position_encoding(sentence_size, embedding_size): """ Position Encoding described in section 4.1 [1] """ encoding = np.ones((embedding_size, sentence_size), dtype=np.float32) ls...
43.444444
99
0.566752
914b01c68f1f4654b8c752d56062e58642550519
201
py
Python
services/evaluations/serializers.py
mrubio-chavarria/nonSpot
1bae76dffc1a8ae124537230bcc5599b7b0d30c2
[ "MIT" ]
1
2020-04-13T11:58:49.000Z
2020-04-13T11:58:49.000Z
services/evaluations/serializers.py
mrubio-chavarria/nonSpot
1bae76dffc1a8ae124537230bcc5599b7b0d30c2
[ "MIT" ]
3
2020-04-09T20:33:54.000Z
2020-04-09T20:34:01.000Z
services/evaluations/serializers.py
mrubio-chavarria/nonSpot
1bae76dffc1a8ae124537230bcc5599b7b0d30c2
[ "MIT" ]
1
2020-04-18T17:07:31.000Z
2020-04-18T17:07:31.000Z
from rest_framework import serializers from .models import Evaluation class EvaluationSerializer(serializers.ModelSerializer): class Meta: model = Evaluation fields = '__all__'
18.272727
56
0.741294
914b0b376c6d623e2d3e51f6040c31c1ada54f9a
52,858
py
Python
RTL/dataloader.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
1
2021-01-15T09:42:29.000Z
2021-01-15T09:42:29.000Z
RTL/dataloader.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
null
null
null
RTL/dataloader.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
null
null
null
r"""Definition of the DataLoader and associated iterators that subclass _BaseDataLoaderIter To support these two classes, in `./_utils` we define many utility methods and functions to be run in multiprocessing. E.g., the data loading worker loop is in `./_utils/worker.py`. """ import threading import itertools import ...
50.10237
120
0.61145
914b8646885fccc9808dc58197cdc5e9dd0dd185
19,852
py
Python
anymail/backends/mailgun.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
1,324
2016-03-10T04:57:52.000Z
2022-03-31T15:14:58.000Z
anymail/backends/mailgun.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
208
2016-03-10T03:40:59.000Z
2022-03-22T23:16:08.000Z
anymail/backends/mailgun.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
129
2016-03-10T09:24:52.000Z
2022-02-07T05:37:24.000Z
from datetime import datetime from email.utils import encode_rfc2231 from urllib.parse import quote from requests import Request from .base_requests import AnymailRequestsBackend, RequestsPayload from ..exceptions import AnymailError, AnymailRequestsAPIError from ..message import AnymailRecipientStatus from ..utils i...
49.017284
117
0.639684
914ba2a8f5bc2593f1d2a8db1f55e2f09b5883f5
3,658
py
Python
py_hanabi/agent.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
py_hanabi/agent.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
py_hanabi/agent.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ An basic agent to play the Hanabi game. """ import random from typing import List from py_hanabi.commands.command import Command from py_hanabi.commands.command_discard import CommandDiscard from py_hanabi.commands.command_draw import CommandDraw from py_hanabi.commands.command_play import...
38.914894
113
0.648715
914bfd997ccc7a6190edd5b0e8b4b815d46086ea
365
py
Python
recipeProject/recipeApp/urls.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
recipeProject/recipeApp/urls.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
recipeProject/recipeApp/urls.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from recipeApp import views router = DefaultRouter() router.register('tags', views.TagViewSet) router.register('ingredients', views.IngredientViewSet) router.register('recipe',views.RecipeViewSet) app_name = 'recipeApp' urlpatte...
22.8125
55
0.780822
914c0cf76168470554ad5b40fe080fe8f5a67c4c
10,810
py
Python
tests/unit/structure.py
vnleonenko/EPDE
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
[ "BSD-3-Clause" ]
15
2020-11-20T14:39:38.000Z
2022-03-13T20:42:43.000Z
tests/unit/structure.py
vnleonenko/EPDE
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
[ "BSD-3-Clause" ]
7
2021-06-17T10:47:42.000Z
2021-06-17T12:35:35.000Z
tests/unit/structure.py
vnleonenko/EPDE
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
[ "BSD-3-Clause" ]
2
2021-10-16T15:46:12.000Z
2022-02-17T17:20:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 9 13:32:54 2021 @author: mike_ubuntu """ import numpy as np from collections import OrderedDict import sys import getopt global opt, args opt, args = getopt.getopt(sys.argv[2:], '', ['path=']) sys.path.append(opt[0][1]) import epde.globals as g...
45.420168
153
0.657354
914c1e85992e70fde01832ecacdee2ec21fdd21b
41,825
py
Python
awswrangler/emr.py
weishao-aws/aws-data-wrangler
5029d197a2ce8c7d80077ee8d5419c956cecf967
[ "Apache-2.0" ]
null
null
null
awswrangler/emr.py
weishao-aws/aws-data-wrangler
5029d197a2ce8c7d80077ee8d5419c956cecf967
[ "Apache-2.0" ]
null
null
null
awswrangler/emr.py
weishao-aws/aws-data-wrangler
5029d197a2ce8c7d80077ee8d5419c956cecf967
[ "Apache-2.0" ]
1
2021-07-06T18:37:00.000Z
2021-07-06T18:37:00.000Z
"""EMR (Elastic Map Reduce) module.""" # pylint: disable=line-too-long import logging import pprint from typing import Any, Dict, List, Optional, Union, cast import boto3 # type: ignore from awswrangler import _utils, exceptions, sts _logger: logging.Logger = logging.getLogger(__name__) def _get_ecr_credentials_...
38.26624
141
0.622116
914c5f851e1058583cafd7f3a08c798fdd333ac7
477
py
Python
PyChat/client/error.py
leosartaj/PyChat
9c22edc6ca89e2ff636b74a9cbd0a31bb44b1667
[ "MIT" ]
7
2015-02-06T16:53:45.000Z
2018-09-22T10:11:44.000Z
PyChat/client/error.py
leosartaj/PyChat
9c22edc6ca89e2ff636b74a9cbd0a31bb44b1667
[ "MIT" ]
3
2016-12-03T17:01:21.000Z
2021-07-08T23:03:08.000Z
PyChat/client/error.py
leosartaj/PyChat
9c22edc6ca89e2ff636b74a9cbd0a31bb44b1667
[ "MIT" ]
2
2016-12-03T17:01:58.000Z
2016-12-26T10:46:20.000Z
#!/usr/bin/env python2 ## # PyChat # https://github.com/leosartaj/PyChat.git # # Copyright (c) 2014 Sartaj Singh # Licensed under the MIT license. ## """ Contains the various error messages """ __connfail__ = 'Could Not Connect to Server' __connlost__ = 'Connection to server has been lost' __servfail__ = 'Server co...
22.714286
51
0.737945
914c7e99148dcd2d52c270ae3c94447791051be2
1,598
py
Python
spectrum/handlers/udp.py
SpectrumApp/spectrum-python
773516af1f89547b4a7afe555615247d7e44a393
[ "BSD-3-Clause" ]
6
2015-11-06T14:46:12.000Z
2020-01-25T10:28:42.000Z
spectrum/handlers/udp.py
SpectrumApp/spectrum-python
773516af1f89547b4a7afe555615247d7e44a393
[ "BSD-3-Clause" ]
7
2015-11-04T23:40:56.000Z
2018-12-07T11:31:43.000Z
spectrum/handlers/udp.py
SpectrumApp/spectrum-python
773516af1f89547b4a7afe555615247d7e44a393
[ "BSD-3-Clause" ]
2
2015-11-04T16:56:38.000Z
2016-04-17T23:10:26.000Z
import json import multiprocessing import socket import uuid from spectrum.handlers.base import BaseSpectrumHandler cpus = multiprocessing.cpu_count() class UDPSpectrum(BaseSpectrumHandler): MAX_LENGTH = 64 * 1024 preamble = json.dumps({ "index": 0, "total": 1, 'id': str(uuid.uuid...
24.96875
68
0.56383
914c971086bae081c1de35ca881c72e38177fe20
1,392
py
Python
alipay/aop/api/domain/NearbyCrowdDensity.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/NearbyCrowdDensity.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/NearbyCrowdDensity.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 NearbyCrowdDensity(object): def __init__(self): self._crowd_density = None self._geohash = None @property def crowd_density(self): return self._crowd_density ...
24.857143
77
0.590517
914ca24ff53a0cc187120d8fb19f3c4012a747c7
15,137
py
Python
sdk/servicebus/azure-servicebus/examples/async_examples/test_examples_async.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/servicebus/azure-servicebus/examples/async_examples/test_examples_async.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/servicebus/azure-servicebus/examples/async_examples/test_examples_async.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import pyte...
35.449649
139
0.71355
914d0bb2b9d11f38f274a60baecd07f06add5c81
3,355
py
Python
app.py
Piteryo/iroha_flask
6f5e5a03827d3dc539fd4fff89a4513041ca41af
[ "WTFPL" ]
null
null
null
app.py
Piteryo/iroha_flask
6f5e5a03827d3dc539fd4fff89a4513041ca41af
[ "WTFPL" ]
null
null
null
app.py
Piteryo/iroha_flask
6f5e5a03827d3dc539fd4fff89a4513041ca41af
[ "WTFPL" ]
null
null
null
import iroha from iroha_helper import IrohaHelper from irohalib import Iroha, IrohaGrpc from irohalib import IrohaCrypto import binascii from flask import Flask, request, jsonify, render_template app = Flask(__name__) iroha = Iroha('admin@test') net = IrohaGrpc() irohaHelper = IrohaHelper('f101537e319568c765b2cc896...
37.277778
105
0.691803
914d4e86d79dff950836df4c4a25739c6ee6fa86
6,518
py
Python
nanonisTCP/FolMe.py
New-Horizons-SPM/nanonisTCP
e810877fce41c4dc3d9ba2b18cbe619ff04c640a
[ "MIT" ]
null
null
null
nanonisTCP/FolMe.py
New-Horizons-SPM/nanonisTCP
e810877fce41c4dc3d9ba2b18cbe619ff04c640a
[ "MIT" ]
null
null
null
nanonisTCP/FolMe.py
New-Horizons-SPM/nanonisTCP
e810877fce41c4dc3d9ba2b18cbe619ff04c640a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Apr 16 15:40:21 2022 @author: jced0001 """ class FolMe: """ Nanonis Follow Me Module """ def __init__(self, nanonisTCP): self.nanonisTCP = nanonisTCP def XYPosSet(self, X, Y, Wait_end_of_move=False): """ This function moves th...
31.038095
80
0.583615
914d55253379ffa0a8d745961f2cb879bb0959d7
143
py
Python
sunpy/net/vso/__init__.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
sunpy/net/vso/__init__.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/vso/__init__.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
# for exposure to from sunpy.net.vso import * from sunpy.net.vso.vso import QueryResponse, VSOClient __all__ = ['VSOClient', 'QueryResponse']
28.6
54
0.762238
914dc669ce68309d17a02d336e67dddf0c978a84
1,351
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/management_policy_action_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/management_policy_action_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/management_policy_action_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
37.527778
80
0.637306
914dca717b7997e0008104c9d0be1cecf26efcb9
675
py
Python
migrations/versions/0216_remove_colours.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0216_remove_colours.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0216_remove_colours.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0216_remove_colours Revises: 0215_email_brand_type Create Date: 2018-08-24 13:36:49.346156 """ import sqlalchemy as sa from alembic import op revision = "0216_remove_colours" down_revision = "0215_email_brand_type" def upgrade(): op.drop_column("email_branding", "single_id_colour") op.drop...
25
96
0.712593
914dcfc4255b20a80b182c48384697fc74d867ba
16,389
py
Python
floreal/views/spreadsheet.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
6
2017-04-26T10:29:36.000Z
2022-03-22T20:35:23.000Z
floreal/views/spreadsheet.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
12
2018-07-23T22:32:39.000Z
2021-12-02T15:37:48.000Z
floreal/views/spreadsheet.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
7
2015-01-05T22:07:42.000Z
2020-03-20T10:41:18.000Z
#!/usr/bin/python3 # -*- coding: utf8 -*- """Excel spreadsheet views generator.""" from io import BytesIO import xlsxwriter as xls from .delivery_description import delivery_description DATABASE_UTF8_ENABLED = True PROTECT_FORMULA_CELLS = False def _u8(s): """Convert DB contents into UTF8 if necessary.""" ...
47.367052
153
0.586918
914dd0c4d0ed0291c262ad55a5d3cc718ca0d832
7,416
py
Python
sunpy/net/dataretriever/sources/tests/test_noaa.py
Raahul-Singh/sunpy
30eb6bd625cd308f573f2e77aa9bfe5d6b251ee0
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
sunpy/net/dataretriever/sources/tests/test_noaa.py
Raahul-Singh/sunpy
30eb6bd625cd308f573f2e77aa9bfe5d6b251ee0
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/dataretriever/sources/tests/test_noaa.py
Raahul-Singh/sunpy
30eb6bd625cd308f573f2e77aa9bfe5d6b251ee0
[ "BSD-2-Clause" ]
null
null
null
import datetime from unittest import mock import pytest from sunpy.net import Fido from sunpy.net import attrs as a from sunpy.net._attrs import Instrument, Time from sunpy.net.dataretriever.client import QueryResponse from sunpy.net.dataretriever.sources import noaa from sunpy.tests.helpers import no_vso from sunpy....
37.836735
126
0.680825
914dd3a416db0917b48d2abaff55e4b12e1c8c72
369
py
Python
home/migrations/0002_auto_20200526_0106.py
AkshataMadhusudan/Skin-Disease-Prediction-Web-Application
0edbaf24ef753b9f9ab2d634cdfa6410ba780b15
[ "MIT" ]
2
2020-08-30T12:07:34.000Z
2021-07-14T07:15:13.000Z
home/migrations/0002_auto_20200526_0106.py
AkshataMadhusudan/Skin-Disease-Prediction-Web-Application
0edbaf24ef753b9f9ab2d634cdfa6410ba780b15
[ "MIT" ]
12
2021-04-08T21:48:50.000Z
2022-02-10T01:52:26.000Z
home/migrations/0002_auto_20200526_0106.py
AkshataMadhusudan/Skin-Disease-Prediction-Web-Application
0edbaf24ef753b9f9ab2d634cdfa6410ba780b15
[ "MIT" ]
4
2020-11-20T21:48:20.000Z
2022-03-30T16:52:23.000Z
# Generated by Django 2.2 on 2020-05-25 19:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0001_initial'), ] operations = [ migrations.AlterField( model_name='pics', name='img', field=model...
19.421053
54
0.577236
914de96fa25726ec956954617b973d212276f401
748
py
Python
hax/helper/__init__.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
16
2020-09-25T09:34:07.000Z
2022-03-29T17:26:39.000Z
hax/helper/__init__.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
536
2020-09-24T14:59:10.000Z
2022-03-31T15:44:52.000Z
hax/helper/__init__.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
108
2020-09-24T15:09:29.000Z
2022-03-25T10:13:19.000Z
# Copyright (c) 2021 Seagate Technology LLC and/or its Affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
37.4
74
0.766043
914df7159fe424c2edfc3940e3b49377f236aa9f
607
py
Python
mprod/__init__.py
UriaMorP/mprod_package
b78ab85707c64149ea3bc1dad94b84dc2fe55814
[ "BSD-3-Clause" ]
5
2021-12-02T15:37:34.000Z
2021-12-07T15:28:25.000Z
mprod/__init__.py
UriaMorP/mprod_package
b78ab85707c64149ea3bc1dad94b84dc2fe55814
[ "BSD-3-Clause" ]
1
2021-11-29T05:54:13.000Z
2021-11-29T05:54:13.000Z
mprod/__init__.py
UriaMorP/mprod_package
b78ab85707c64149ea3bc1dad94b84dc2fe55814
[ "BSD-3-Clause" ]
null
null
null
""" """ # import dimensionality_reduction # from .dimensionality_reduction._tcam import TCAM # import decompositions as decompositions # import dimensionality_reduction from ._ml_helpers import MeanDeviationForm, table2tensor from ._base import m_prod, tensor_mtranspose, x_m3, generate_haar, generate_dct from mprod._...
22.481481
79
0.759473
914e010c599370d8757bdbb77dbc380472987aac
4,076
py
Python
travis_pypi_setup.py
elijahc/tricorder
1c39dfd1f4b114ee9d67258414a358535b8b129e
[ "MIT" ]
null
null
null
travis_pypi_setup.py
elijahc/tricorder
1c39dfd1f4b114ee9d67258414a358535b8b129e
[ "MIT" ]
4
2020-07-18T02:02:09.000Z
2022-01-25T22:34:37.000Z
travis_pypi_setup.py
elijahc/tricorder
1c39dfd1f4b114ee9d67258414a358535b8b129e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Update encrypted deploy password in Travis config file.""" from __future__ import print_function import base64 import json import os from getpass import getpass import yaml from cryptography.hazmat.primitives.serialization import load_pem_public_key from cryptography.h...
31.84375
79
0.700687
914e06df17c717410d339e169a13de4c03fa68ed
611
py
Python
migrations/versions/0280_invited_user_folder_perms.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0280_invited_user_folder_perms.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0280_invited_user_folder_perms.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0280_invited_user_folder_perms Revises: 0279_remove_fk_to_users Create Date: 2019-03-11 14:38:28.010082 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql revision = "0280_invited_user_folder_perms" down_revision = "0279_remove_fk_to_users" def upgrade():...
21.068966
71
0.700491
914e325cf8ba2bac369bf30d76afd4dc915ab634
13,888
py
Python
tests/utils/test_common.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
50
2019-09-13T10:32:29.000Z
2022-02-14T16:52:53.000Z
tests/utils/test_common.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
31
2019-09-03T11:06:03.000Z
2021-08-20T14:57:09.000Z
tests/utils/test_common.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
9
2019-09-16T03:25:15.000Z
2021-05-11T10:28:25.000Z
import sciwing.constants as constants from sciwing.utils.common import * import pytest import pathlib from sciwing.engine.engine import Engine FILES = constants.FILES PATHS = constants.PATHS SECTLABEL_FILENAME = FILES["SECT_LABEL_FILE"] GENERIC_SECTION_TRAIN_FILE = FILES["GENERIC_SECTION_TRAIN_FILE"] PARSCIT_TRAIN_FI...
37.73913
89
0.605343
914e3e2369573abaf3cc890bc54c9fc679fd5dbb
1,236
py
Python
utility/cog/player/player.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
4
2020-01-19T13:53:43.000Z
2020-01-20T13:34:17.000Z
utility/cog/player/player.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
18
2020-01-19T17:52:17.000Z
2020-02-17T15:06:13.000Z
utility/cog/player/player.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
1
2020-01-19T16:33:19.000Z
2020-01-19T16:33:19.000Z
""" Manages the player object. -- Author : DrLarck Last update : 15/02/20 (DrLarck) """ # dependancies import asyncio # util from utility.cog.player.attribute.resource import Player_resource from utility.cog.player.attribute.box.box import Box from utility.cog.player.attribute.team.team import Team # player class...
20.6
96
0.627832
914e56440cccabff2ab4b05ca5a466541571fdbc
1,389
py
Python
examples/drawing/sampson.py
argriffing/networkx
5a3d000e605be2ca567f69a4694afcba3b8acb54
[ "BSD-3-Clause" ]
1
2020-11-10T08:15:23.000Z
2020-11-10T08:15:23.000Z
examples/drawing/sampson.py
argriffing/networkx
5a3d000e605be2ca567f69a4694afcba3b8acb54
[ "BSD-3-Clause" ]
null
null
null
examples/drawing/sampson.py
argriffing/networkx
5a3d000e605be2ca567f69a4694afcba3b8acb54
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Sampson's monastery data. Shows how to read data from a zip file and plot multiple frames. """ __author__ = """Aric Hagberg (hagberg@lanl.gov)""" # Copyright (C) 2010 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Al...
29.553191
76
0.739381
914e5e12d7ba5d2b7e2e389a07afe6e519de6dc8
3,244
py
Python
neutron/cmd/ipset_cleanup.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/cmd/ipset_cleanup.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/cmd/ipset_cleanup.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
33.102041
79
0.662762
914e8d4eb826a54c4b89becf67b536c9f6092d4a
1,668
py
Python
dags/successful/dag_test_move_to_another_schema_success.py
roger-yu-ds/bde_assignment_2
cb7284591455c365ecab4b8ebb8fec5b4b024c19
[ "MIT" ]
null
null
null
dags/successful/dag_test_move_to_another_schema_success.py
roger-yu-ds/bde_assignment_2
cb7284591455c365ecab4b8ebb8fec5b4b024c19
[ "MIT" ]
null
null
null
dags/successful/dag_test_move_to_another_schema_success.py
roger-yu-ds/bde_assignment_2
cb7284591455c365ecab4b8ebb8fec5b4b024c19
[ "MIT" ]
null
null
null
import os import logging from datetime import ( datetime, timedelta ) from airflow.operators.python_operator import PythonOperator from airflow.providers.postgres.operators.postgres import PostgresOperator from airflow.providers.postgres.hooks.postgres import PostgresHook ########################################...
23.828571
74
0.573141
914e8f1a28a0feb0d2d70bd6b40be16445e9375b
3,324
py
Python
onyx/api/widgets.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-14T21:16:07.000Z
2020-07-09T07:30:44.000Z
onyx/api/widgets.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-01T12:33:36.000Z
2020-04-01T12:33:49.000Z
onyx/api/widgets.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
null
null
null
import os, json from flask import jsonify, make_response, app from flask_jwt_extended import get_jwt_identity from flask_restful import Resource, reqparse from onyx.decorators import login_required from onyx.utils.log import getLogger from onyx.extensions import db from onyx.models import Widgets as WidgetModel, to_dic...
32.271845
113
0.537906
914e8feecc4bbedfc4c44c2d60813da08aef2e3d
2,943
py
Python
test/vanilla/low-level/AcceptanceTests/asynctests/test_duration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/AcceptanceTests/asynctests/test_duration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/AcceptanceTests/asynctests/test_duration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
42.042857
163
0.749575
914ea6fbc1fedc5c88691906b2f1c1f56a6d040c
5,907
py
Python
fhir/immunizations_demo/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
null
null
null
fhir/immunizations_demo/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
22
2019-12-16T22:18:37.000Z
2022-03-12T00:04:43.000Z
fhir/immunizations_demo/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.54386
78
0.744033
914ee0ba515c30a307c6e79c998d713b0766902c
7,882
py
Python
docs/conf.py
bjf2015/bballmain
81130df9e546211e34da6c4377cf0b19ce773f88
[ "MIT" ]
null
null
null
docs/conf.py
bjf2015/bballmain
81130df9e546211e34da6c4377cf0b19ce773f88
[ "MIT" ]
null
null
null
docs/conf.py
bjf2015/bballmain
81130df9e546211e34da6c4377cf0b19ce773f88
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # bballmain documentation build configuration file, created by # sphinx-quickstart. # # 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 file. # # All configuration values have...
31.782258
81
0.70642
914ef640ade8d7e4add2f9f84dc0b46c06f8328d
1,393
py
Python
SAM-repo/MyCustomRekognitionLambda/MyCustomRekognitionLambda.py
aws-samples/ai-based-windturbine-inspection-blogpost
10616305e852914cfb7ef2447be5256db53e3b14
[ "MIT-0" ]
null
null
null
SAM-repo/MyCustomRekognitionLambda/MyCustomRekognitionLambda.py
aws-samples/ai-based-windturbine-inspection-blogpost
10616305e852914cfb7ef2447be5256db53e3b14
[ "MIT-0" ]
null
null
null
SAM-repo/MyCustomRekognitionLambda/MyCustomRekognitionLambda.py
aws-samples/ai-based-windturbine-inspection-blogpost
10616305e852914cfb7ef2447be5256db53e3b14
[ "MIT-0" ]
1
2021-11-10T14:52:09.000Z
2021-11-10T14:52:09.000Z
import json import boto3 import os import io import datetime from urllib.parse import unquote_plus def lambda_handler(event, context): model_arn=os.environ["CustomLabels_ModelArn"] MinimumConfidence = int(os.environ["Confidence_Threshold"]) DynamoTable = os.environ["DynamoDB_Table"] client_dynamo...
30.955556
118
0.592247
914ef64c0750ae22237cfe9a7e7bc200ab07a055
11,613
py
Python
datalad/local/tests/test_copy_file.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
datalad/local/tests/test_copy_file.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
datalad/local/tests/test_copy_file.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
# ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Test copy_file c...
34.155882
81
0.635839
914efa86691e4285e5f1094e8d570b9af8ab9f97
2,161
py
Python
sim/predict.py
jaeminsung/ml_stock_trading
32f5305f5111ba86eb428e982ac6f0f18842558d
[ "Apache-2.0" ]
null
null
null
sim/predict.py
jaeminsung/ml_stock_trading
32f5305f5111ba86eb428e982ac6f0f18842558d
[ "Apache-2.0" ]
null
null
null
sim/predict.py
jaeminsung/ml_stock_trading
32f5305f5111ba86eb428e982ac6f0f18842558d
[ "Apache-2.0" ]
null
null
null
import os import sys curDir = os.path.dirname(__file__) sys.path.append('{0}/../scripts/'.format(curDir)) sys.path.append('{0}/../models/'.format(curDir)) import pandas as pd import datetime import numpy as np from indicators import Indicators # from auto_sklearn_model import AutoSklearnModel from svm_model import SVM...
32.742424
90
0.699213
914f06a0b4b9e740816dcdd884320753f26319aa
2,712
py
Python
exp/taskB/train.py
temi92/epic-kitchens-55-action-models
40e984bbdcf502539b3569774cb6b5526eb71c3c
[ "Apache-2.0" ]
null
null
null
exp/taskB/train.py
temi92/epic-kitchens-55-action-models
40e984bbdcf502539b3569774cb6b5526eb71c3c
[ "Apache-2.0" ]
null
null
null
exp/taskB/train.py
temi92/epic-kitchens-55-action-models
40e984bbdcf502539b3569774cb6b5526eb71c3c
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import torch import torchvision import sys sys.path.append("..") from utils.transforms import GroupScale, GroupCenterCrop, GroupOverSample, Stack, ToTorchFormatTensor, GroupNormalize, GroupRandomHorizontalFlip, GroupMultiScaleCrop from torchvision.transforms import Compose from utils.dataset im...
32.285714
165
0.77913
914f3bf500e0a3e2ffe66bf4a719a6ce0d9467c0
1,093
py
Python
phenotype/Core/Auxiliary.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Core/Auxiliary.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/Core/Auxiliary.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
from phenotype.Core import __abc_callable__ class _Identity(__abc_callable__): ''' ''' def __init__(self): pass def __call__(self,item): ''' ''' return item Identity = _Identity() class ReturnAs(__abc_callable__): ''' ''' __slots__ = ( 'value' ) def __init__(self,value): ...
26.02381
59
0.559012
914f97e6ceb555325967b356a4c8e485bf4f74d8
11,680
py
Python
fabric_cf/orchestrator/core/reservation_status_update_thread.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/orchestrator/core/reservation_status_update_thread.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/orchestrator/core/reservation_status_update_thread.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
42.941176
121
0.656764
914f9c8b98bb0a35948d778f4b357f36c228a311
513
py
Python
acme_diags/metrics/corr.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
acme_diags/metrics/corr.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
acme_diags/metrics/corr.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import numpy import genutil import cdp.cdp_metric class CORR(cdp.cdp_metric.CDPMetric): def __init__(self): metric_path = __file__ super(CORR, self).__init__(metric_path) def compute(self, model, obs, axis='xy'): corr = -numpy.infty try: ...
24.428571
59
0.633528
914fa6effbde538e41280d09a601dfa201d41971
14,121
py
Python
MachineLearning/TP6/pythonTools.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP6/pythonTools.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP6/pythonTools.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
# import pandas as pd from numpy.random import rand pd.options.display.max_colwidth = 600 # import PIL from skimage import transform import skimage import matplotlib.pyplot as plt # %matplotlib inline # KERAS # from keras import backend as K # from keras import regularizers # from keras.preprocessing.image import...
35.56927
102
0.631117
91500717efc356900d08c7c4a48cbbbbf7b87723
5,412
py
Python
axonius_api_client/api/assets/users.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/api/assets/users.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/api/assets/users.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """API for working with user assets.""" from typing import Generator, List, Union from .asset_mixin import AssetMixin class Users(AssetMixin): """API for working with user assets. Examples: For all examples for this asset type, create a ``client`` using :obj:`axonius_...
33.614907
100
0.612528
91500cdeee3eb4a9a84ec33d6e5c6ab8247aabb6
2,350
py
Python
nicos_mlz/sans1/setups/sample_table_2.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/sans1/setups/sample_table_2.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/sans1/setups/sample_table_2.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'top sample table devices' includes = ['sample_table_1'] group = 'optional' tango_base = 'tango://sans1hw.sans1.frm2:10000/sans1/table/' devices = dict( st2_z = device('nicos.devices.generic.Axis', description = 'table 2 z axis', pollinterval = 15, maxage = 60, fmts...
29.375
60
0.54383
91502b985cf9f8366cf676234050097015f03a50
2,275
py
Python
pysindy/differentiation/smoothed_finite_difference.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
1
2020-10-28T13:12:53.000Z
2020-10-28T13:12:53.000Z
pysindy/differentiation/smoothed_finite_difference.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
null
null
null
pysindy/differentiation/smoothed_finite_difference.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
null
null
null
from scipy.signal import savgol_filter from .finite_difference import FiniteDifference class SmoothedFiniteDifference(FiniteDifference): """Smoothed finite difference derivatives. Perform differentiation by smoothing input data then applying a finite difference method. Parameters ---------- ...
37.295082
82
0.635165
9150383d1ce4ccc56e88350a40550cdc6e764acb
39,091
py
Python
tests/test_command_line.py
mensch72/Dallinger
56899d231e2f2fc9f84879f100bf998797249d3e
[ "MIT" ]
1
2020-11-29T02:25:13.000Z
2020-11-29T02:25:13.000Z
tests/test_command_line.py
mensch72/Dallinger
56899d231e2f2fc9f84879f100bf998797249d3e
[ "MIT" ]
null
null
null
tests/test_command_line.py
mensch72/Dallinger
56899d231e2f2fc9f84879f100bf998797249d3e
[ "MIT" ]
1
2020-11-28T16:22:48.000Z
2020-11-28T16:22:48.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import mock import os import re import six import subprocess from time import sleep from uuid import UUID from click.testing import CliRunner import pytest import dallinger.command_line from dallinger.command_line import report_idle_after import dallinger.version def found_...
33.016047
97
0.599294
91503a0bc212060b8efd63404a0840ec3515f456
6,785
py
Python
pkgcore/fs/livefs.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/fs/livefs.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/fs/livefs.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2005-2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD """ interaction with the livefs: generating fs objects to represent the livefs. """ import collections import errno import os from stat import S_IMODE, S_ISDIR, S_ISREG, S_ISLNK, S_ISFIFO from snakeoil.chksum import get_handlers from snake...
30.981735
79
0.61916
915041f3c8b30116e3e1cbdb8fb6fd002866d1c1
2,857
py
Python
pic/utilities/make.py
ratnania/mhd
89f383695075aa26fc805ffbf6ba458f0cdd6f4e
[ "MIT" ]
5
2018-04-13T15:35:21.000Z
2019-10-29T09:39:13.000Z
pic/utilities/make.py
ratnania/mhd
89f383695075aa26fc805ffbf6ba458f0cdd6f4e
[ "MIT" ]
null
null
null
pic/utilities/make.py
ratnania/mhd
89f383695075aa26fc805ffbf6ba458f0cdd6f4e
[ "MIT" ]
1
2018-10-19T10:53:15.000Z
2018-10-19T10:53:15.000Z
# coding: utf-8 import os from os import listdir from os.path import isfile, join import importlib from pyccel import epyccel ###################################################### import ast import inspect def get_types_decorator(cls): target = cls decorators = {} def visit_FunctionDef(node): ...
25.738739
86
0.578229
91505bb61e6f2694fc9b0a8969c58f46e87d4d4f
1,600
py
Python
Apps/Engines/Nuke/NukeTools_1.01/Python/convert.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
17
2017-06-27T04:14:42.000Z
2022-03-07T03:37:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/convert.py
geoffroygivry/Cyclops-VFX
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2017-06-14T04:17:51.000Z
2018-08-23T20:12:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/convert.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2019-03-18T06:18:33.000Z
2019-08-14T21:07:53.000Z
# The MIT License (MIT) # # Copyright (c) 2015 Geoffroy Givry # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, c...
44.444444
89
0.735625
91505eaa360fe750f5a124bf3035ada74b12252c
2,906
py
Python
hvad/views.py
ojii/django-nani
e75b3e91738bcddf94264df832a13ac47e979394
[ "BSD-3-Clause" ]
1
2015-09-28T10:07:48.000Z
2015-09-28T10:07:48.000Z
hvad/views.py
ojii/django-nani
e75b3e91738bcddf94264df832a13ac47e979394
[ "BSD-3-Clause" ]
null
null
null
hvad/views.py
ojii/django-nani
e75b3e91738bcddf94264df832a13ac47e979394
[ "BSD-3-Clause" ]
null
null
null
from django.http import Http404 try: from django.views.generic.edit import UpdateView except ImportError: from cbv.views.edit import UpdateView from admin import TranslatableModelAdminMixin from forms import translatable_modelform_factory, TranslatableModelForm from utils import collect_context_modifiers class...
34.595238
110
0.669649
9150851dba8a4a3af87da04ba685a353be360f40
5,312
py
Python
tests/st/ops/test_sqrt.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/test_sqrt.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/test_sqrt.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2021 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...
45.016949
98
0.540851
91509b5d1d0378ebf8ca07198ef8b5e3bbe4d3ab
7,025
py
Python
code/envs/utils.py
arjunchandra/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
17
2019-03-29T18:30:36.000Z
2021-10-17T15:38:22.000Z
code/envs/utils.py
arjunchandra/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
1
2019-04-22T22:40:30.000Z
2019-04-24T21:45:07.000Z
code/envs/utils.py
ctallec/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
5
2019-04-29T16:26:18.000Z
2020-01-23T07:17:49.000Z
""" Environment utilities """ from abc import ABC, abstractmethod import gym from envs.wrappers import TimeLimit import numpy as np from envs.pusher import DiscretePusherEnv, ContinuousPusherEnv from envs.hill import HillEnv from envs.wrappers import WrapContinuousPendulum, WrapPendulum from envs.biped import WalkerHa...
30.676856
90
0.623203
9150d8af2e972fb14a6cb3bf15509a75bc694ac0
2,123
py
Python
test/test_pipeline_inspector.py
stefan-grafberger/mlinspect-cidr
4a15068a1652c043021d04795bd89da32ec20992
[ "Apache-2.0" ]
5
2020-08-26T13:32:13.000Z
2020-10-20T15:34:57.000Z
test/test_pipeline_inspector.py
stefan-grafberger/mlinspect-cidr
4a15068a1652c043021d04795bd89da32ec20992
[ "Apache-2.0" ]
1
2020-08-29T22:53:27.000Z
2020-08-29T22:53:27.000Z
test/test_pipeline_inspector.py
stefan-grafberger/mlinspect-cidr
4a15068a1652c043021d04795bd89da32ec20992
[ "Apache-2.0" ]
null
null
null
""" Tests whether the fluent API works """ import os import networkx from testfixtures import compare from mlinspect.inspections.materialize_first_rows_inspection import MaterializeFirstRowsInspection from mlinspect.utils import get_project_root from mlinspect.pipeline_inspector import PipelineInspector from .utils i...
36.603448
98
0.758361
9150f7eedb693c9cb3ae21e46654c235596d9b2a
2,811
py
Python
execution_workflows/APAtrap/bin/convert_to_tsv.py
iRNA-COSI/APAeval
cf1032d23ff3020e0b5ba50b3217b94d2b2d728d
[ "MIT" ]
9
2021-05-25T17:01:09.000Z
2022-02-11T22:07:46.000Z
execution_workflows/APAtrap/bin/convert_to_tsv.py
iRNA-COSI/APAeval
cf1032d23ff3020e0b5ba50b3217b94d2b2d728d
[ "MIT" ]
146
2021-05-18T23:55:56.000Z
2022-03-31T14:34:06.000Z
execution_workflows/APAtrap/bin/convert_to_tsv.py
iRNA-COSI/APAeval
cf1032d23ff3020e0b5ba50b3217b94d2b2d728d
[ "MIT" ]
14
2021-05-03T14:38:33.000Z
2021-08-21T21:21:22.000Z
#!/usr/bin/env python3 import sys import argparse import pandas as pd def parse_args(args=None): Description = "Reformat APAtrap deAPA output txt file into the output files of differential challenge" Epilog = "Example usage: python convert_to_tsv.py <FILE_IN> <DIFFERENTIAL_OUT>" parser = argparse.Argumen...
35.582278
106
0.664532
9151182e0655c6f15af052f169c03e1e1058365e
353
py
Python
apps/accounts/auth_backends/pipeline.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
1
2020-01-26T16:02:27.000Z
2020-01-26T16:02:27.000Z
apps/accounts/auth_backends/pipeline.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
null
null
null
apps/accounts/auth_backends/pipeline.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
2
2018-09-29T18:53:08.000Z
2020-01-26T16:02:31.000Z
from ..models import UserProfile def create_user_profile(strategy, details, backend, user=None, *args, **kwargs): up, created = UserProfile.objects.get_or_create(user=user) if created: up.create_applications = False up.authorize_applications = True up.user_type = "BEN" up.save(...
29.416667
80
0.677054
91514e324f68c68c51cfaa5863ccc11760dd3459
8,384
py
Python
workflows/engine/widget_runner.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
4
2017-12-13T10:59:42.000Z
2019-11-03T17:26:19.000Z
workflows/engine/widget_runner.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
21
2017-04-05T08:03:54.000Z
2022-03-11T23:16:03.000Z
workflows/engine/widget_runner.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
null
null
null
import time import workflows.library from workflows.engine import ValueNotSet from workflows.models import * from workflows.tasks import * from django.conf import settings class WidgetRunner(): def __init__(self, widget, inputs, outputs, workflow_runner): self.widget = widget self.widget_inputs =...
49.02924
151
0.596135
9151699fac317f61f9050456d3ad385c49d246b0
31
py
Python
btd6_memory_info/generated/SteamNative/P2PSessionRequest_t/p2_p_session_request_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/P2PSessionRequest_t/p2_p_session_request_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/P2PSessionRequest_t/p2_p_session_request_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class P2PSessionRequest_t: pass
31
31
0.903226
9151c9ad74f6dfa5321defcd457e76cddbd57775
5,121
py
Python
examples/regression_with_tuning_example.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
358
2020-06-11T09:34:53.000Z
2022-03-31T12:56:22.000Z
examples/regression_with_tuning_example.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
467
2020-06-11T13:49:45.000Z
2022-03-31T14:19:48.000Z
examples/regression_with_tuning_example.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
48
2020-07-13T14:50:45.000Z
2022-03-26T09:37:13.000Z
from datetime import timedelta import numpy as np from sklearn.metrics import mean_absolute_error from sklearn.model_selection import train_test_split from fedot.core.data.data import InputData from fedot.core.pipelines.node import PrimaryNode, SecondaryNode from fedot.core.pipelines.pipeline import Pipeline from fed...
40.642857
93
0.605936
9151d5b20d8fd599f009c958b2c6a240ce13c34b
22,765
py
Python
tests/api/v2_1_1/test_network_settings.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_network_settings.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_network_settings.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI network_settings API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restr...
32.245042
1,069
0.714342
9151ecf060fe1bc8da00e4bc54f6a2c5376a615f
9,576
py
Python
floreal/views/candidacies.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
6
2017-04-26T10:29:36.000Z
2022-03-22T20:35:23.000Z
floreal/views/candidacies.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
12
2018-07-23T22:32:39.000Z
2021-12-02T15:37:48.000Z
floreal/views/candidacies.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
7
2015-01-05T22:07:42.000Z
2020-03-20T10:41:18.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.http import HttpResponseForbidden from django.core.mail import send_mail from caracole import settings from .. import models as m from .getters import get_netw...
52.043478
136
0.681704
91525da6e6be1dfeb937bb724ec84d3294d7fd22
76
py
Python
basic_wallet_p/wallet_app.py
mauney/Blockchain
0c73250e50707236196d7c9d92b42d5524b1a4d9
[ "MIT" ]
null
null
null
basic_wallet_p/wallet_app.py
mauney/Blockchain
0c73250e50707236196d7c9d92b42d5524b1a4d9
[ "MIT" ]
2
2020-02-12T16:46:01.000Z
2020-02-12T16:46:02.000Z
basic_wallet_p/wallet_app.py
mauney/Blockchain
0c73250e50707236196d7c9d92b42d5524b1a4d9
[ "MIT" ]
null
null
null
# Please find the wallet application at # ../basic_transactions_gp/wallet.py
38
39
0.802632
91527ea17de4e389e0ed94cb1a91ae8e1ff4b81b
19,146
py
Python
jury/metrics/_core/base.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
64
2021-07-16T08:37:45.000Z
2022-02-05T10:28:27.000Z
jury/metrics/_core/base.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
46
2021-07-14T22:41:56.000Z
2022-03-21T07:51:52.000Z
jury/metrics/_core/base.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
9
2021-07-15T21:19:06.000Z
2022-03-17T21:46:15.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets 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 appl...
37.837945
120
0.657579
91528adf38d12d1c0a970336a2d6628b355f45c5
644
py
Python
services/traction/acapy_wrapper/models/rev_regs_created.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/rev_regs_created.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/rev_regs_created.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class RevRegsCreated(BaseModel): """NOTE: This class ...
24.769231
96
0.732919
91528b0d56cd9e869b446e34c6697b34d1026991
8,976
py
Python
forte/data/batchers.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
2
2021-01-01T12:07:27.000Z
2021-09-10T03:57:18.000Z
forte/data/batchers.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
forte/data/batchers.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Forte Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.340081
80
0.646947