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
d5fb2441c1e2743a8519eaa4c1baa89d75ec7d87
26,427
py
Python
adsputils/__init__.py
adsabs/ADSPipelineUtils
eb8cc988f57c19a256ebc8802cc2a812d5279d12
[ "MIT" ]
null
null
null
adsputils/__init__.py
adsabs/ADSPipelineUtils
eb8cc988f57c19a256ebc8802cc2a812d5279d12
[ "MIT" ]
36
2017-06-23T20:29:22.000Z
2020-03-18T15:04:27.000Z
adsputils/__init__.py
adsabs/ADSPipelineUtils
eb8cc988f57c19a256ebc8802cc2a812d5279d12
[ "MIT" ]
12
2017-06-21T18:10:57.000Z
2021-11-01T19:13:32.000Z
""" Contains useful functions and utilities that are not neccessarily only useful for this module. But are also used in differing modules insidide the same project, and so do not belong to anything specific. """ from __future__ import absolute_import, unicode_literals from past.builtins import basestring from celery i...
37.59175
124
0.634124
d5fb34c0299a965efe3dffdc0c77a20c975f89e6
10,237
py
Python
doctr/models/recognition/master/pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
628
2021-02-13T21:49:37.000Z
2022-03-31T19:48:57.000Z
doctr/models/recognition/master/pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
694
2021-02-08T15:23:38.000Z
2022-03-31T07:24:59.000Z
doctr/models/recognition/master/pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
90
2021-04-28T05:39:02.000Z
2022-03-31T06:48:36.000Z
# Copyright (C) 2021, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. from copy import deepcopy from typing import Any, Callable, Dict, List, Optional, Tuple import torch from torch import nn fro...
34.584459
116
0.612679
d5fb3edaf63bac0878e2583abfdc36e6f71d787b
240
py
Python
pycantonese/tests/test_pos_tagging/test_tagger.py
j-chim/pycantonese
1d58f44e1cb097faa69de6b617e1d28903b84b98
[ "MIT" ]
null
null
null
pycantonese/tests/test_pos_tagging/test_tagger.py
j-chim/pycantonese
1d58f44e1cb097faa69de6b617e1d28903b84b98
[ "MIT" ]
null
null
null
pycantonese/tests/test_pos_tagging/test_tagger.py
j-chim/pycantonese
1d58f44e1cb097faa69de6b617e1d28903b84b98
[ "MIT" ]
null
null
null
import pytest from pycantonese import pos_tag # TODO: Write more test cases. def test_pos_tag(): assert pos_tag(["我"]) == [("我", "PRON")] def test_pos_tag_wrong_input_type(): with pytest.raises(TypeError): pos_tag("我")
17.142857
44
0.670833
d5fb5a5b04d06b600887761dcc1a053475c8dde5
1,072
py
Python
oscar/lib/python2.7/site-packages/pbr/hooks/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pbr/hooks/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pbr/hooks/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 #...
30.628571
76
0.675373
d5fb5fc4e18069abd07e6a39382e2d1057493060
871
py
Python
smart_home_cockpit/s3reader.py
mbbigblue/smart-home-cockpit
23b920da6bd4dcd7b78f6f01e13f5cd1fafa4356
[ "Apache-2.0" ]
null
null
null
smart_home_cockpit/s3reader.py
mbbigblue/smart-home-cockpit
23b920da6bd4dcd7b78f6f01e13f5cd1fafa4356
[ "Apache-2.0" ]
null
null
null
smart_home_cockpit/s3reader.py
mbbigblue/smart-home-cockpit
23b920da6bd4dcd7b78f6f01e13f5cd1fafa4356
[ "Apache-2.0" ]
null
null
null
import boto3 import uuid import config as cnf class S3Reader: def __init__(self, aws_config): self.s3_bucket_name = aws_config['aws']['s3_bucket_name'] self.s3 = boto3.resource('s3', aws_access_key_id=aws_config['aws']['aws_access_key_id'], ...
30.034483
98
0.605052
d5fb62482d42fe2e29deb0ec57482eae483185c0
15,875
py
Python
indico/modules/events/registration/blueprint.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/modules/events/registration/blueprint.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/modules/events/registration/blueprint.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.modules.events.registration import api from indico.modules.events.registration.controllers imp...
74.530516
120
0.738394
d5fb675fd120ba847c5279e397229002a06592e4
3,146
py
Python
app/battle/views.py
Qumeric/instabattle
9b03dc2b006e54476ee3ae6d194422856c7012be
[ "MIT" ]
null
null
null
app/battle/views.py
Qumeric/instabattle
9b03dc2b006e54476ee3ae6d194422856c7012be
[ "MIT" ]
null
null
null
app/battle/views.py
Qumeric/instabattle
9b03dc2b006e54476ee3ae6d194422856c7012be
[ "MIT" ]
null
null
null
from flask import render_template, url_for, redirect, flash, abort, request from flask_login import login_required, current_user from .forms import BattleForm from . import battle from ..decorators import permission_required from ..models import Battle, Image, Permission, Vote from ..filters import filters from .. impo...
33.827957
75
0.64876
d5fb76894edbd62675f8d9851b46dd2160f04500
3,735
py
Python
tools/perf/benchmarks/battor.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
tools/perf/benchmarks/battor.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/battor.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# 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. from core import perf_benchmark from telemetry.web_perf import timeline_based_measurement import page_sets from telemetry import benchmark # TODO(rnephew):...
32.763158
79
0.781794
d5fb852e225d575fa8319e6614feadb06afee6cc
293
py
Python
mailpile/mailboxes/maildirwin.py
Sebrowsky/Mailpile
79ff1dd989a0994758fcaccd9154944a32020c46
[ "Apache-2.0" ]
2
2017-02-03T07:00:57.000Z
2020-12-18T01:07:34.000Z
mailpile/mailboxes/maildirwin.py
Sebrowsky/Mailpile
79ff1dd989a0994758fcaccd9154944a32020c46
[ "Apache-2.0" ]
null
null
null
mailpile/mailboxes/maildirwin.py
Sebrowsky/Mailpile
79ff1dd989a0994758fcaccd9154944a32020c46
[ "Apache-2.0" ]
null
null
null
import mailpile.mailboxes import mailpile.mailboxes.maildir as maildir class MailpileMailbox(maildir.MailpileMailbox): """A Maildir class for Windows (using ! instead of : in filenames)""" supported_platform = 'win' colon = '!' mailpile.mailboxes.register(20, MailpileMailbox)
24.416667
73
0.750853
d5fb96041857ef966f78f4153dde016a15403b5b
7,633
py
Python
tests/test_sklearn_compat.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
null
null
null
tests/test_sklearn_compat.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
null
null
null
tests/test_sklearn_compat.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
null
null
null
import collections import pytest import itertools from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression from sklearn.utils import estimator_checks from skorecard.bucketers impo...
32.480851
117
0.671427
d5fbb7a50829ca45d7b404ccb3617ed5f4c0180f
11,702
py
Python
jesse/models/Position.py
botzill/jesse
cff9e69446980ae739f5020964c4618638b2014d
[ "MIT" ]
null
null
null
jesse/models/Position.py
botzill/jesse
cff9e69446980ae739f5020964c4618638b2014d
[ "MIT" ]
null
null
null
jesse/models/Position.py
botzill/jesse
cff9e69446980ae739f5020964c4618638b2014d
[ "MIT" ]
null
null
null
from typing import Union import numpy as np import jesse.helpers as jh import jesse.services.selectors as selectors from jesse.config import config from jesse.enums import trade_types, order_types from jesse.exceptions import EmptyPosition, OpenPositionError from jesse.models import Order, Exchange from jesse.service...
32.687151
272
0.591694
d5fbdc273d17bb9dc5f7e5c3d0705b38d5d240a3
20,749
py
Python
riboviz/check_fasta_gff.py
rasilab/riboviz
a2ebaa7dac383e6ce0972626bf57fdba105d1780
[ "Apache-2.0" ]
2
2019-07-23T11:00:53.000Z
2019-11-19T14:38:44.000Z
riboviz/check_fasta_gff.py
rasilab/riboviz
a2ebaa7dac383e6ce0972626bf57fdba105d1780
[ "Apache-2.0" ]
128
2019-05-08T14:23:12.000Z
2020-03-04T12:04:58.000Z
riboviz/check_fasta_gff.py
rasilab/riboviz
a2ebaa7dac383e6ce0972626bf57fdba105d1780
[ "Apache-2.0" ]
1
2020-02-06T16:00:48.000Z
2020-02-06T16:00:48.000Z
""" Functions to check FASTA and GFF files for coding sequence (CDS) features. """ import bisect import csv import os import warnings from Bio import SeqIO import gffutils from pyfaidx import Fasta from pyfaidx import FastaIndexingError from riboviz.fasta_gff import CDS_FEATURE_FORMAT from riboviz.fasta_gff import STAR...
40.844488
120
0.652947
d5fbe05956deb8f3328ee407471eb4308d8f5873
695
py
Python
ngsutils/__init__.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/__init__.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/__init__.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
import os import subprocess __version = None def version(): global __version if not __version: with open(os.path.join(os.path.realpath(os.path.dirname(__file__)), '..', 'VERSION')) as f: __version = f.read().strip() try: gitversion = subprocess.check_output("git ...
33.095238
170
0.571223
d5fbe8234d104f64ad77bcdc736393c3ee7cab0d
9,973
py
Python
catalyst/contrib/nn/criterion/lovasz.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
2
2021-02-22T12:15:41.000Z
2021-05-02T15:22:24.000Z
catalyst/contrib/nn/criterion/lovasz.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/nn/criterion/lovasz.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
# Lovasz-Softmax and Jaccard hinge loss in PyTorch # Maxim Berman 2018 ESAT-PSI KU Leuven (MIT License) from itertools import filterfalse as ifilterfalse import torch import torch.nn.functional as F from torch.nn.modules.loss import _Loss # --------------------------- HELPER FUNCTIONS --------------------------- d...
31.068536
79
0.594204
d5fbf4439cf5d27321ddf8e1f4434423d968c182
25,537
py
Python
openbb_terminal/custom/prediction_techniques/pred_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/custom/prediction_techniques/pred_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/custom/prediction_techniques/pred_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
""" Custom Prediction Controller """ __docformat__ = "numpy" import argparse import logging from pathlib import Path from typing import List import pandas as pd from prompt_toolkit.completion import NestedCompleter from openbb_terminal import feature_flags as obbff from openbb_terminal.common.prediction_techniques i...
34.231903
111
0.52328
d5fc0612a90daf5553ebcead1f2f2540579429db
544
py
Python
examples/candy/scripts/copy_esp32_devki1_package.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
examples/candy/scripts/copy_esp32_devki1_package.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
examples/candy/scripts/copy_esp32_devki1_package.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import platform if platform.system() == 'Windows': MYPYTHON = 'python' MYCODEROOT = 'c:/coderoot' MYSOURCEFILE = "c:" else: MYPYTHON = 'python3' MYCODEROOT = '/coderoot' MYSOURCEFILE = "" MYSOURCEFILE += '/tmp/candy_ioboard_tmp/esp32doit-devkit-v1/firmware.bin'...
23.652174
130
0.661765
d5fc2638d7439eadf8907e495bc975027749a557
6,907
py
Python
TrainingExtensions/torch/src/python/aimet_torch/channel_pruning/weight_reconstruction.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/torch/src/python/aimet_torch/channel_pruning/weight_reconstruction.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/torch/src/python/aimet_torch/channel_pruning/weight_reconstruction.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2018, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
40.391813
116
0.668452
d5fc2d6a2bb7d38df8a67a77fc41fbf5086e33a6
4,667
py
Python
wikidump/__main__.py
CristianCantoro/wikidump
f1d50b16c483b74a624cab38e003513df588b11b
[ "MIT" ]
5
2019-02-28T13:39:30.000Z
2021-09-13T00:42:34.000Z
wikidump/__main__.py
CristianCantoro/wikidump
f1d50b16c483b74a624cab38e003513df588b11b
[ "MIT" ]
1
2021-05-30T12:35:52.000Z
2021-06-18T14:08:23.000Z
wikidump/__main__.py
WikiLinkGraphs/wikidump
f1d50b16c483b74a624cab38e003513df588b11b
[ "MIT" ]
3
2020-04-07T01:27:12.000Z
2021-05-29T16:03:42.000Z
"""Main module that parses command line arguments.""" import os import io import bz2 import gzip import sys import codecs import argparse import subprocess import mw.xml_dump import mwxml import pathlib from typing import IO, Optional, Union from . import processors, utils def open_xml_file(path: Union[str, IO]): ...
28.987578
77
0.637669
d5fc71ba4fc8ccaa2c0bdb1f68077bf5900b9605
7,211
py
Python
configurations/pl_blend4_convroll4_doublescale_fs5_no_dropout_33_66_sharded_0.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
628
2015-03-25T17:32:30.000Z
2021-07-30T18:24:33.000Z
configurations/pl_blend4_convroll4_doublescale_fs5_no_dropout_33_66_sharded_0.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
4
2015-04-06T10:23:19.000Z
2017-01-10T18:47:49.000Z
configurations/pl_blend4_convroll4_doublescale_fs5_no_dropout_33_66_sharded_0.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
253
2015-03-25T18:08:43.000Z
2022-01-26T22:35:05.000Z
import numpy as np import theano import theano.tensor as T import lasagne as nn import data import load import nn_plankton import dihedral import tmp_dnn import tta patch_sizes = [(95, 95), (47, 47)] augmentation_params = { 'zoom_range': (1 / 1.6, 1.6), 'rotation_range': (0, 360), 'shear_range': (-20...
47.130719
186
0.725419
d5fca2cecad5504af9d81fb0060308ed732143df
5,527
py
Python
stancode_project/baby_names/babynames.py
beomgyutxt/stanCode_project
6e1e09b40c2104e98c0cf97478fbec0e345be21b
[ "MIT" ]
null
null
null
stancode_project/baby_names/babynames.py
beomgyutxt/stanCode_project
6e1e09b40c2104e98c0cf97478fbec0e345be21b
[ "MIT" ]
null
null
null
stancode_project/baby_names/babynames.py
beomgyutxt/stanCode_project
6e1e09b40c2104e98c0cf97478fbec0e345be21b
[ "MIT" ]
null
null
null
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. The program constructs a new database which stores popular baby name and their rank in each year by reading txt files. User can search for some interested words(target) in these database and the program will return a list na...
33.907975
96
0.62258
d5fcbf9978ff860780cc045464620ccb73899339
1,585
py
Python
tests/integration/tools/test_custom_action.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
tests/integration/tools/test_custom_action.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
tests/integration/tools/test_custom_action.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
33.723404
89
0.426498
d5fcca9ba379c814223512dd68aa62e57715149c
984
py
Python
Python-code-snippets-201-300/276-extract frames from animated gif.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/276-extract frames from animated gif.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/276-extract frames from animated gif.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
"""Code snippets vol-56 276-extract frames from an animated gif. Download all snippets so far: https://wp.me/Pa5TU8-1yg Blog: stevepython.wordpress.com Requirements: pip3 install Pillow An animated gif file named 'test-anim.gif' Origin: https://gist.github.com/revolunet/848913 Updated by Shambles. May 20...
20.93617
57
0.652439
d5fcd1697da756677627b9bdf1bb5f326ad892a5
31,671
py
Python
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_linalg_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2017-12-05T15:35:47.000Z
2017-12-05T15:35:47.000Z
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_linalg_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_linalg_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections from google.protobuf import text_format as _text_format from tensorflow.core.framework import op_def_pb2 as _op_def_pb2 # Needed to trigger the call to _set_call_cpp_shape_fn. from tensorfl...
24.456371
119
0.605096
d5fcf32cd4e7f95cd09f643d778334638b8a4e85
27
py
Python
btd6_memory_info/generated/UnityEngine/Networking/UnityWebRequest/unity_web_request.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Networking/UnityWebRequest/unity_web_request.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Networking/UnityWebRequest/unity_web_request.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class UnityWebRequest: pass
27
27
0.888889
d5fcf72cd2ea1badd71553f48a8a8950f8025032
4,663
py
Python
ndn_hydra/repo/repo_messages/expire.py
UCLA-IRL/ndn-hydra
e01829253876ff6dbfd6dfaa92142eca08cd6705
[ "Apache-2.0" ]
2
2021-04-14T04:12:14.000Z
2021-04-23T02:28:49.000Z
ndn_hydra/repo/repo_messages/expire.py
ZixuanZhong/hydra
e01829253876ff6dbfd6dfaa92142eca08cd6705
[ "Apache-2.0" ]
10
2021-07-03T18:29:26.000Z
2022-02-01T04:11:20.000Z
ndn_hydra/repo/repo_messages/expire.py
ZixuanZhong/ndn-distributed-repo
e01829253876ff6dbfd6dfaa92142eca08cd6705
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------- # NDN Hydra Expire Group Message # ---------------------------------------------------------- # @Project: NDN Hydra # @Date: 2021-01-25 # @Authors: Please check AUTHORS.rst # @Source-Code: https://github.com/UCLA-IRL/ndn-hydra # @Documentation: ht...
52.393258
221
0.615055
d5fd2eb6317040a1abff16656e8af02a5fbba37b
636
py
Python
olm_tasks/predictor_utils.py
DFKI-NLP/OLM
ec6d281e77a980e6f8f89ba3be2e8d034031b22c
[ "MIT" ]
8
2020-04-21T10:25:06.000Z
2022-03-08T18:46:04.000Z
olm_tasks/predictor_utils.py
DFKI-NLP/OLM
ec6d281e77a980e6f8f89ba3be2e8d034031b22c
[ "MIT" ]
null
null
null
olm_tasks/predictor_utils.py
DFKI-NLP/OLM
ec6d281e77a980e6f8f89ba3be2e8d034031b22c
[ "MIT" ]
2
2020-04-27T07:49:58.000Z
2020-08-11T17:56:25.000Z
from typing import Optional from os.path import join from allennlp.predictors import Predictor from allennlp.models.archival import load_archive def load_predictor(model_dir: str, predictor_name: str, cuda_device: int = -1, archive_filename: str = "model.tar.g...
37.411765
78
0.671384
d5fd3c5fe1be540850d8d63fd989e32a719fe6e0
894
py
Python
alipay/aop/api/domain/AlipayCommerceIotDeviceLocationQueryModel.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/AlipayCommerceIotDeviceLocationQueryModel.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/AlipayCommerceIotDeviceLocationQueryModel.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 AlipayCommerceIotDeviceLocationQueryModel(object): def __init__(self): self._biz_tid = None @property def biz_tid(self): return self._biz_tid @biz_tid.setter def...
21.804878
65
0.595078
d5fd4bfc350f0416a602014e7701cb2934f57d82
1,519
py
Python
setup.py
bioidiap/bob.db.verafinger
39b9ead4c7977075fdf42145d37cd83587ba8dbe
[ "BSD-3-Clause" ]
null
null
null
setup.py
bioidiap/bob.db.verafinger
39b9ead4c7977075fdf42145d37cd83587ba8dbe
[ "BSD-3-Clause" ]
null
null
null
setup.py
bioidiap/bob.db.verafinger
39b9ead4c7977075fdf42145d37cd83587ba8dbe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 : from setuptools import setup, dist dist.Distribution(dict(setup_requires=['bob.extension'])) from bob.extension.utils import load_requirements, find_packages install_requires = load_requirements() setup( name='bob.db.verafinger', version=open("version.tx...
28.12963
69
0.656353
d5fd5bc7f0aaf96031d73ad8ac61561d4fe4c1f2
813
py
Python
atom/nucleus/python/test/test_stage.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_stage.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_stage.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
19.829268
79
0.676507
d5fd85b8f3e429ecefeadc2eec783c91876cc3ed
2,225
py
Python
RebeccaEncryption/RebeccaClient.py
algalopez/MetaRepository
b8b0c94d459dd9f91b35f70a380d52f77ed60c77
[ "BSD-3-Clause" ]
null
null
null
RebeccaEncryption/RebeccaClient.py
algalopez/MetaRepository
b8b0c94d459dd9f91b35f70a380d52f77ed60c77
[ "BSD-3-Clause" ]
1
2020-01-30T19:49:09.000Z
2020-02-08T13:56:53.000Z
RebeccaEncryption/RebeccaClient.py
algalopez/aglPython
b8b0c94d459dd9f91b35f70a380d52f77ed60c77
[ "BSD-3-Clause" ]
2
2020-10-01T15:35:47.000Z
2020-10-01T15:42:10.000Z
import logging import string import RebeccaEncryption import RebeccaDecryption import RebeccaError alphabet = string.ascii_uppercase birthday_month = 5 plain_message = 'test' book_text = ''' Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut...
52.97619
131
0.767191
d5fda93cc74247c5aaca1e20275d9694bbacceec
3,553
py
Python
bsc/settings.py
DanielPDWalker/blacksentryclone
6d5cb5b278e332662de9bcd5d92e8463dece93a0
[ "MIT" ]
null
null
null
bsc/settings.py
DanielPDWalker/blacksentryclone
6d5cb5b278e332662de9bcd5d92e8463dece93a0
[ "MIT" ]
5
2021-03-30T14:03:20.000Z
2021-09-22T19:26:40.000Z
bsc/settings.py
DanielPDWalker/blacksentryclone
6d5cb5b278e332662de9bcd5d92e8463dece93a0
[ "MIT" ]
null
null
null
""" Django settings for bsc project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
24.673611
91
0.698846
d5fe0719d4af64754f379d2f81bdeffcc73d0f61
12,064
py
Python
syft/frameworks/torch/pointers/pointer_tensor.py
abi-aryan/PySyft
3e600704892f285dc504131adb19459af6aa4d8e
[ "Apache-2.0" ]
1
2019-08-27T21:48:50.000Z
2019-08-27T21:48:50.000Z
syft/frameworks/torch/pointers/pointer_tensor.py
abi-aryan/PySyft
3e600704892f285dc504131adb19459af6aa4d8e
[ "Apache-2.0" ]
null
null
null
syft/frameworks/torch/pointers/pointer_tensor.py
abi-aryan/PySyft
3e600704892f285dc504131adb19459af6aa4d8e
[ "Apache-2.0" ]
null
null
null
import syft import torch from syft.frameworks.torch.tensors.interpreters import abstract from syft.exceptions import CannotRequestObjectAttribute from syft.frameworks.torch import pointers from syft.workers import AbstractWorker # from typing import List from typing import Union from typing import TYPE_CHECKING # t...
36.780488
100
0.613395
d5fe099416be061df33d43283a52c1995868dbe1
1,037
py
Python
2016/day05_how_about_a_nice_game_of_chess/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day05_how_about_a_nice_game_of_chess/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day05_how_about_a_nice_game_of_chess/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Docstring.""" from hashlib import md5 from common import get_input class PasswordFinder(object): """.""" def __init__(self): """Initialize.""" self.integer = 0 self.password = [None for x in range(8)] def get_digest(self, source): """.""" ...
24.690476
70
0.529412
d5fe164edf7cb4cafc1fe6bd29706b92e0741b5e
6,997
py
Python
ExtentionPackages/paramiko/buffered_pipe.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
2
2018-12-11T16:35:20.000Z
2019-01-23T16:42:17.000Z
ExtentionPackages/paramiko/buffered_pipe.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
1
2018-12-28T21:11:50.000Z
2018-12-28T21:11:50.000Z
ExtentionPackages/paramiko/buffered_pipe.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
3
2018-01-21T17:53:17.000Z
2021-09-08T10:22:05.000Z
# Copyright (C) 2006-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
33.319048
79
0.570387
d5fe2b259a92eabbce6ef85c913e4f6530d2ddbb
3,359
py
Python
nicos_mlz/spheres/devices/flux.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/spheres/devices/flux.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/spheres/devices/flux.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
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
33.59
79
0.576362
d5fe3521717392209ba9cf7e6455c0d961790457
2,444
py
Python
common/layers.py
longfeili1997/DQN
2e02220f554cccc116163db6223814c0dae87e85
[ "Apache-2.0" ]
41
2020-01-07T07:36:52.000Z
2022-03-26T10:43:05.000Z
common/layers.py
longfeili1997/DQN
2e02220f554cccc116163db6223814c0dae87e85
[ "Apache-2.0" ]
1
2020-03-11T10:30:28.000Z
2020-03-11T10:30:28.000Z
notebook/common/layers.py
neurobot-project/SFDQN
00e405340a62dfdfa41d58b29feec8a3ce4179d7
[ "MIT" ]
20
2020-01-10T06:33:59.000Z
2022-02-24T21:23:59.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class NoisyLinear(nn.Module): def __init__(self, in_features, out_features, use_cuda, std_init=0.4): super(NoisyLinear, self).__init__() self.use_cuda = use_cuda s...
38.793651
92
0.644026
d5fe695b237d1a112cd07b40acee3ac7d85a53c9
48,136
py
Python
main/c2g/migrations/0020_auto__add_examrecordscorefieldchoice__add_field_examrecordscorefield_v.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/c2g/migrations/0020_auto__add_examrecordscorefieldchoice__add_field_examrecordscorefield_v.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/c2g/migrations/0020_auto__add_examrecordscorefieldchoice__add_field_examrecordscorefield_v.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ExamRecordScoreFieldChoice' db.create_table('c2g_examrecordscorefieldchoice', ( ...
87.52
198
0.562116
d5fe6d2f5c4b5072e6b1b0881e1af88a8e36fb7a
6,906
py
Python
assignments/2019/assignment2/cs231n/optim.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
null
null
null
assignments/2019/assignment2/cs231n/optim.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
19
2020-03-31T06:21:29.000Z
2022-03-11T23:58:51.000Z
assignments/2019/assignment2/cs231n/optim.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
1
2020-02-08T11:11:44.000Z
2020-02-08T11:11:44.000Z
import numpy as np """ This file implements various first-order update rules that are commonly used for training neural networks. Each update rule accepts current weights and the gradient of the loss with respect to those weights and produces the next set of weights. Each update rule has the same interface: def upda...
37.532609
79
0.541413
d5feb55b78713f162b81cfca561c59a8575465ee
10,724
py
Python
pyfiles/constants.py
aalto-trafficsense/regular-routes-server
aa13083258b8207eb2c078ce7db4f7f7c4de8c0a
[ "MIT" ]
2
2017-08-07T07:00:59.000Z
2021-03-08T12:27:09.000Z
pyfiles/constants.py
aalto-trafficsense/regular-routes-server
aa13083258b8207eb2c078ce7db4f7f7c4de8c0a
[ "MIT" ]
43
2015-01-30T08:03:50.000Z
2020-11-22T21:33:00.000Z
pyfiles/constants.py
aalto-trafficsense/regular-routes-server
aa13083258b8207eb2c078ce7db4f7f7c4de8c0a
[ "MIT" ]
1
2018-05-17T15:35:03.000Z
2018-05-17T15:35:03.000Z
import re #CO2 emissions per km: ON_BICYCLE_CO2 = 21 WALKING_CO2 = 33 RUNNING_CO2 = 47 MASS_TRANSIT_A_CO2 = 80 MASS_TRANSIT_B_CO2 = 90 MASS_TRANSIT_C_CO2 = 100 IN_VEHICLE_CO2 = 150 #Maximum time limit between two device data points in seconds before they're considered to be two separate trips MAX_POINT_TIME_DIFFEREN...
43.593496
151
0.560891
d5feb8242f56f77e68d762c4ad7e675e98118ad0
19,012
py
Python
facebook_business/asyncobjects/__init__.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/asyncobjects/__init__.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/asyncobjects/__init__.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
import facebook_business.objects as baseobjects from facebook_business.adobjects import ad from facebook_business.adobjects import adaccount from facebook_business.adobjects import adset from facebook_business.adobjects import business from facebook_business.adobjects import campaign from facebook_business.adobjects im...
37.425197
106
0.6832
d5fed2ca473671a7875daca10d78a7c3aa44b52b
7,917
py
Python
tests/integration/test_client_http.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
6
2018-01-18T02:18:28.000Z
2021-03-16T17:42:48.000Z
tests/integration/test_client_http.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
12
2017-09-21T13:55:17.000Z
2022-01-25T16:48:28.000Z
tests/integration/test_client_http.py
IBM/ibm-cos-sdk-python-core
18e8a854a2a4fdca7fbb50d5b80fb666734def1f
[ "Apache-2.0" ]
10
2018-01-18T02:17:55.000Z
2020-06-29T13:50:59.000Z
import select import socket import contextlib import threading from tests import unittest from contextlib import contextmanager import ibm_botocore.session from ibm_botocore.config import Config from ibm_botocore.vendored.six.moves import BaseHTTPServer, socketserver from ibm_botocore.exceptions import ( ConnectTi...
34.572052
79
0.628647
d5ff025d5f74c32179724976c8b25062ad72e95f
4,885
py
Python
pycalc/MAVProxy/modules/mavproxy_sensors.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/mavproxy_sensors.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/mavproxy_sensors.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python '''monitor sensor consistancy''' import time, math from pymavlink import mavutil from MAVProxy.modules.lib import mp_module def angle_diff(angle1, angle2): ret = angle1 - angle2 if ret > 180: ret -= 360; if ret < -180: ret += 360 return ret class sensors_report...
35.143885
110
0.575844
d5ff341a471c07f6609391323e226a2c19f57b69
1,181
py
Python
apps/iiif/kollections/migrations/0006_auto_20210928_1301.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/iiif/kollections/migrations/0006_auto_20210928_1301.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/iiif/kollections/migrations/0006_auto_20210928_1301.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# Generated by Django 2.2.23 on 2021-09-28 13:01 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('kollections', '0005_collection_updated_at'), ] operations = [ migrations.AlterField( model_name='collection', ...
29.525
132
0.58171
d5ff54aa33e088bd9fb1404563d09b49ab68d82e
17,425
py
Python
tests/test_environments.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
tests/test_environments.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
tests/test_environments.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
import gym_electric_motor.envs from gym_electric_motor.envs.gym_dcm import * from gym_electric_motor.envs.gym_pmsm import * from gym_electric_motor.envs.gym_synrm import * from .functions_used_for_testing import * from numpy.random import randint, seed import pytest g_disc_converter = ['Disc-1QC', 'Disc-2QC', 'Disc-4...
50.950292
120
0.606083
d5ff58762218896f1ff1a9f9fbbd33162a704323
4,047
py
Python
libapp/sender.py
octopi-labs/bazzinga
fcdd8e925cbaa31cacbec10dd1d599e72b84c588
[ "MIT" ]
null
null
null
libapp/sender.py
octopi-labs/bazzinga
fcdd8e925cbaa31cacbec10dd1d599e72b84c588
[ "MIT" ]
3
2021-03-20T00:43:11.000Z
2022-01-06T22:33:23.000Z
libapp/sender.py
octopi-labs/bazzinga
fcdd8e925cbaa31cacbec10dd1d599e72b84c588
[ "MIT" ]
null
null
null
import ast import json import redis from libapp import app, pubsubd from libapp.config import libconf, pushconf, smsconf from libapp.notifications.emailnotifications import EmailNotifications from libapp.notifications.push import Push from libapp.notifications.sms import Sms queue = redis.StrictRedis(host=libconf.R...
43.053191
114
0.568075
d5ff676c2532d7a380c0b511120274bd42043c8b
10,445
py
Python
onadata/apps/api/viewsets/briefcase_api.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/api/viewsets/briefcase_api.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/api/viewsets/briefcase_api.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 from xml.dom import NotFoundErr from django.conf import settings from django.core.files import File from django.core.validators import ValidationError from django.contrib.auth.models import User from django.http import Http404 from django.utils.translation import ugettext as _ from django.utils import ...
37.303571
79
0.63954
d5ff6d70b17cfb7c29c340dd0a31840b674c8164
4,283
py
Python
rally/plugins/openstack/context/network/routers.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/network/routers.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/network/routers.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2017: Orange # 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 appli...
37.243478
79
0.54261
d5ff6e3428c71241415c5867ead7ccea9c33d1ff
8,317
py
Python
pyledgertools/cli.py
cgiacofei/pyledgertools
e65a36e725a4f9074bc94a8c06890f65fe4594a7
[ "Unlicense" ]
null
null
null
pyledgertools/cli.py
cgiacofei/pyledgertools
e65a36e725a4f9074bc94a8c06890f65fe4594a7
[ "Unlicense" ]
18
2017-03-11T03:01:23.000Z
2017-11-07T12:08:19.000Z
pyledgertools/cli.py
cgiacofei/pyledgertools
e65a36e725a4f9074bc94a8c06890f65fe4594a7
[ "Unlicense" ]
1
2019-02-28T05:02:12.000Z
2019-02-28T05:02:12.000Z
#! /usr/bin/env python3 """Command line interface for ledgertools package.""" from argparse import ArgumentParser from configparser import ConfigParser import os from os.path import expanduser import re import sys import tempfile from subprocess import Popen, PIPE, call from yapsy.PluginManager import PluginManager im...
28.385666
86
0.57665
d5ff6ee3db899f52c4867139f4bf75b4583e99dd
6,338
py
Python
var/spack/repos/builtin/packages/py-scikit-learn/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2020-06-18T18:55:51.000Z
2022-01-31T23:01:55.000Z
var/spack/repos/builtin/packages/py-scikit-learn/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
35
2016-05-11T06:52:44.000Z
2022-03-23T04:37:34.000Z
var/spack/repos/builtin/packages/py-scikit-learn/package.py
flatironinstitute/spack
71a7b1b5fadbe16bcdb36fb679aa828cd7d83b02
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2020-06-18T18:59:09.000Z
2021-11-16T02:24:37.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) class PyScikitLearn(PythonPackage): """A set of python modules for machine learning and data mining.""" pypi = "...
60.942308
102
0.707794
d5ff94e31cea4fea46010b7a3505a1d30684ac8e
1,757
py
Python
test/language/literals/python/LiteralsTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
2
2019-02-06T17:50:24.000Z
2019-11-20T16:51:34.000Z
test/language/literals/python/LiteralsTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
1
2019-11-25T16:25:51.000Z
2019-11-25T18:09:39.000Z
test/language/literals/python/LiteralsTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
import unittest from testutils import getZserioApi class BitfieldEnumTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "literals.zs") def testBoolean(self): self.assertEqual(True, self.api.BOOLEAN_TRUE) self.assertEqual(False, self.api.BOO...
35.857143
75
0.715424
d5ffbb3ddb117dc83ca58c0fe1c3fdded157eb67
2,195
py
Python
alipay/aop/api/domain/AlipayCommerceOperationPromoterRankingQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceOperationPromoterRankingQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceOperationPromoterRankingQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceOperationPromoterRankingQueryModel(object): def __init__(self): self._pid = None self._task_code = None self._type = None self._user_id = None @...
25.523256
69
0.550797
d5ffdb0bb52ddc5187122056c08f1bbf29b3aa6a
2,798
py
Python
ibis/backends/dask/tests/execution/test_maps.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/dask/tests/execution/test_maps.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/dask/tests/execution/test_maps.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
import dask.dataframe as dd import pandas as pd from dask.dataframe.utils import tm import ibis def test_map_length_expr(t): expr = t.map_of_integers_strings.length() result = expr.execute() expected = dd.from_pandas( pd.Series([0, None, 2], name='map_of_integers_strings'), npartitions=1, ) ...
28.262626
79
0.595068
d5fff33989d72bd0bfb8f161ad46f7103d3b0683
850
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_GF.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_GF.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_GF.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. GF metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GF = PhoneMetadata(id='GF', country_code=594, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[56]\\d{8}', possible_length=(9,)), ...
77.272727
175
0.697647
d5fffa4223bcbb0455dce1edb1871784964a1e4c
945
py
Python
history/app.py
marianoleonardo/history
dd99df70c80760d7fc4592eef75d019da975a9ab
[ "Apache-2.0" ]
null
null
null
history/app.py
marianoleonardo/history
dd99df70c80760d7fc4592eef75d019da975a9ab
[ "Apache-2.0" ]
65
2018-05-08T16:53:14.000Z
2022-03-11T18:07:21.000Z
history/app.py
marianoleonardo/history
dd99df70c80760d7fc4592eef75d019da975a9ab
[ "Apache-2.0" ]
28
2018-05-21T16:01:46.000Z
2021-09-29T21:49:29.000Z
#!/usr/local/bin/python # -*- coding: utf-8 -*- """ App runner """ # System imports # Third-party imports import falcon # Local imports from history import conf, Logger from history.api.models import DeviceHistory, STHHistory, AuthMiddleware, NotificationHistory, LoggingInterface #init logger logger = Logger.Log(conf...
31.5
111
0.750265
91000816c905e8284c8ce69ea51b2807bf97c39e
469
py
Python
reveries/scripts/post_task/emit_changes.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
reveries/scripts/post_task/emit_changes.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
reveries/scripts/post_task/emit_changes.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import logging log = logging.getLogger("APTS.emit_changes") def __main__(*args): """Emit file change on task completed even no one cares Subscribers would lookup for changes and copy files to local drive if any. (NOTE) Post task script will not run if task has error. Args: (...
20.391304
73
0.663113
91000f91830f1cfe1c12a05e1b0afc78ba7135f3
5,180
py
Python
dataprep/clean/clean_es_ccc.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_es_ccc.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_es_ccc.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 Spanish Bank Account Codes (CCCs). """ # 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.es import ccc...
31.017964
95
0.609846
9100101120b32d7469ea151d852e9f2e607889f8
14,681
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_03_02_preview/aio/operations/_maintenance_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_03_02_preview/aio/operations/_maintenance_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_03_02_preview/aio/operations/_maintenance_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
44.759146
232
0.678155
91005e905e491d842a008ae9b816d5d55640c1bd
1,553
py
Python
config/urls.py
401ode/stla-lite
6355b477e729ba8c378285f08cc01410224341b7
[ "MIT" ]
null
null
null
config/urls.py
401ode/stla-lite
6355b477e729ba8c378285f08cc01410224341b7
[ "MIT" ]
1
2017-10-04T18:34:26.000Z
2017-10-04T18:34:26.000Z
config/urls.py
401ode/stla-lite
6355b477e729ba8c378285f08cc01410224341b7
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='page...
40.868421
110
0.693496
9100636ad9fc5ccb3a2c4087cbbb099daef1cc5b
4,708
py
Python
aea/helpers/file_io.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/helpers/file_io.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/helpers/file_io.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
32.246575
115
0.658879
910064d677cb48312a2d1e90067609f7370f89dd
4,785
py
Python
src/djangoSrc/audio_transcription/views.py
dighr/nethope_audio
8571bd6f621920f3fea085be3879cab15ccfc1e6
[ "MIT" ]
null
null
null
src/djangoSrc/audio_transcription/views.py
dighr/nethope_audio
8571bd6f621920f3fea085be3879cab15ccfc1e6
[ "MIT" ]
9
2021-03-09T21:01:14.000Z
2022-03-02T06:01:00.000Z
src/djangoSrc/audio_transcription/views.py
nethopeorg/nethope_audio
8571bd6f621920f3fea085be3879cab15ccfc1e6
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User, Group from rest_framework import viewsets, views from rest_framework.response import Response from rest_framework.parsers import MultiPartParser from audio_transcription.serializers import AudioFilesSerializer, UserSerializer, GroupSerializer from .models import AudioFiles ...
38.58871
107
0.659561
9100662ace0b032a25f1bca3e097372d6dd3783a
379
py
Python
aristotle/apps/test/views.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
aristotle/apps/test/views.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
aristotle/apps/test/views.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
""" :mod: `views `Some sort of app """ _author_ = "Diane Westerfield" from django.views.generic.simple import direct_to_template def default(request): """ default is the standard view for the test app :param request: web request """ return direct_to_template(request, ...
16.478261
58
0.567282
9100673f995797dfe75421165535d21819e132cf
10,747
py
Python
pandas/io/tests/test_cparser.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_cparser.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_cparser.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" C/Cython ascii file parser tests """ from pandas.compat import StringIO, BytesIO, map from datetime import datetime from pandas import compat import csv import os import sys import re import nose from numpy import nan import numpy as np from pandas import DataFrame, Series, Index, isnull, MultiIndex import pand...
31.241279
77
0.539779
9100690e7a9f3f4214d015e9c38a307d7b03016a
858
py
Python
scripts/issue_helper/main.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
scripts/issue_helper/main.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
scripts/issue_helper/main.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
from python import python_process from go import go_process from java import java_process from js import js_process from common import Common import os import logging logging.basicConfig(level=logging.INFO, format='%(funcName)s[line:%(lineno)d] - %(levelname)s: %(message)s') _LOG = logging.getLogg...
24.514286
97
0.674825
910079f8da8020ef4c3d0e69cb4c73c46d24554f
8,629
gyp
Python
remoting/remoting.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
remoting/remoting.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
remoting/remoting.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2012 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. { 'variables': { 'branding_path': '../remoting/branding_<(branding)', 'conditions': [ ['OS=="mac"', { 'mac_bundle_id': '<!(pyth...
32.809886
125
0.555916
9100dd1f97d969c401db8c3b86584dc741ce3d7e
9,003
py
Python
nova/tests/unit/cells/test_cells_weights.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/cells/test_cells_weights.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/cells/test_cells_weights.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (c) 2012 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 ...
41.488479
78
0.67633
9100ee5010a7396d9a41be9e9620cb9df876cb90
3,674
py
Python
Twitter Sentiment/tweetie.py
beimingliu/AdvancedMachineLearning
fea2d90e2466a95f70a4b79699cc5f803daac9f7
[ "Apache-2.0" ]
1
2021-02-17T23:00:10.000Z
2021-02-17T23:00:10.000Z
Twitter Sentiment/tweetie.py
benliu91/AdvancedMachineLearning
fea2d90e2466a95f70a4b79699cc5f803daac9f7
[ "Apache-2.0" ]
null
null
null
Twitter Sentiment/tweetie.py
benliu91/AdvancedMachineLearning
fea2d90e2466a95f70a4b79699cc5f803daac9f7
[ "Apache-2.0" ]
3
2019-03-10T20:20:10.000Z
2021-04-14T04:02:31.000Z
import sys import tweepy from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer def loadkeys(filename): """" load twitter api keys/tokens from CSV file with form consumer_key, consumer_secret, access_token, access_token_secret """ with open(filename) as f: items = f.readline(...
34.336449
119
0.674469
9101253ac11fd415bb65e896929c4ed8712559cc
84
py
Python
examples/util.py
mirage/irmin-py
72d4d69549aaa89291cba9fa925267def5783848
[ "ISC" ]
2
2022-02-01T01:52:26.000Z
2022-02-11T16:05:38.000Z
examples/util.py
mirage/irmin-py
72d4d69549aaa89291cba9fa925267def5783848
[ "ISC" ]
5
2022-02-14T16:29:55.000Z
2022-02-16T08:08:23.000Z
examples/util.py
zshipko/irmin-py
72d4d69549aaa89291cba9fa925267def5783848
[ "ISC" ]
1
2022-02-18T00:13:00.000Z
2022-02-18T00:13:00.000Z
import sys sys.path.extend([".", ".."]) import irmin # type: ignore # noqa: E402
14
41
0.607143
910128f1734b92a0abf95f0b1a8e26142b8ff0b1
804
py
Python
examples/run_example.py
Tobias-Kohn/PyPAT
1ae3f2823498c467fdc8418b2cde7954c2e111fd
[ "Apache-2.0" ]
26
2018-10-08T17:59:17.000Z
2021-06-04T03:31:16.000Z
examples/run_example.py
Tobias-Kohn/PyMa
1ae3f2823498c467fdc8418b2cde7954c2e111fd
[ "Apache-2.0" ]
2
2021-03-20T12:46:23.000Z
2021-06-09T14:11:53.000Z
examples/run_example.py
Tobias-Kohn/PyMa
1ae3f2823498c467fdc8418b2cde7954c2e111fd
[ "Apache-2.0" ]
2
2020-01-28T19:12:56.000Z
2021-03-18T14:16:24.000Z
# # (c) 2018, Tobias Kohn # # Created: 23.08.2018 # Updated: 12.09.2018 # # License: Apache 2.0 # from pmatch import enable_auto_import ############################################################## # # # Choose one of the examples here to run... ...
30.923077
62
0.317164
9101604f922f3398b93c7cc220322b459d68c219
953
py
Python
gargoyle/management/commands/add_switch.py
Raekkeri/gargoyle
98153b3666264fddadd0f8e628acf5059e0e845e
[ "Apache-2.0" ]
177
2015-01-01T03:51:01.000Z
2021-05-28T14:01:31.000Z
gargoyle/management/commands/add_switch.py
Raekkeri/gargoyle
98153b3666264fddadd0f8e628acf5059e0e845e
[ "Apache-2.0" ]
23
2015-01-29T05:34:45.000Z
2016-09-03T00:22:53.000Z
gargoyle/management/commands/add_switch.py
Raekkeri/gargoyle
98153b3666264fddadd0f8e628acf5059e0e845e
[ "Apache-2.0" ]
24
2015-01-12T14:07:18.000Z
2022-01-09T04:53:56.000Z
from optparse import make_option from django.core.management.base import BaseCommand, CommandError from gargoyle.models import Switch, DISABLED, GLOBAL class Command(BaseCommand): args = 'switch_name' help = 'Adds or updates the specified gargoyle switch.' option_list = BaseCommand.option_list + ( ...
28.878788
72
0.60021
91016d2f1d2d3d91842d0dc461a9fda374399f64
66,620
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1/models/_models.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 ...
40.012012
198
0.648319
91018fcfb5e2ae234e7b72e27373dccc69cf4f2f
2,094
py
Python
api/categories.py
ryanmccants/pysqr
ab0448424a11787317f6ce69e44834e64e25b11b
[ "MIT" ]
null
null
null
api/categories.py
ryanmccants/pysqr
ab0448424a11787317f6ce69e44834e64e25b11b
[ "MIT" ]
null
null
null
api/categories.py
ryanmccants/pysqr
ab0448424a11787317f6ce69e44834e64e25b11b
[ "MIT" ]
null
null
null
from ..config import access_token ''' category = { "id": "36ac7016-3a4e-4934-81f1-9057ac613f2y", "name": "Beverages" } ''' def create_category(category, loc_id): ''' Creates category ''' req_id = '{} category create'.format(loc_id,) allowed = [ 'id', 'name' ] body = {k: v for...
26.175
69
0.543935
9101adb0046b6f6e6d19e15cad3447fd8133544b
2,909
py
Python
rfml/data/encoder.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
61
2019-11-19T03:53:54.000Z
2022-03-26T15:57:47.000Z
rfml/data/encoder.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
2
2020-12-08T10:07:21.000Z
2021-02-24T00:29:15.000Z
rfml/data/encoder.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
30
2019-12-03T13:43:22.000Z
2022-03-26T15:57:59.000Z
"""Simple helper class for encoding/decoding the labels for classification .. note:: While many packages like sklearn and keras provide similar functionality, they were all quite annoying and did not play well with others. Since this functionality is so simple, its easier to just write our own implementa...
29.09
86
0.608457
9101b772a3ff532c0e0ee18f51c8dd1df411bb79
1,260
py
Python
datawinners/countrytotrialnumbermapping/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/countrytotrialnumbermapping/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/countrytotrialnumbermapping/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from django.http import HttpResponse from django.shortcuts import render_to_response from django.template.context import RequestContext from django.views.decorators.csrf import csrf_view_exempt from datawinners.countrytotrialnumbermapping.helper import get_countries_in_displa...
52.5
98
0.784127
9101d7ee970541776f3f43a0b31ffef499c14d30
2,027
py
Python
librarian_server/tests/conftest.py
BrianJKoopman/librarian
2d4164b60fe41d1a192f03d8baad12c0d11d0394
[ "BSD-2-Clause" ]
5
2016-02-17T17:51:05.000Z
2021-12-09T19:08:17.000Z
librarian_server/tests/conftest.py
BrianJKoopman/librarian
2d4164b60fe41d1a192f03d8baad12c0d11d0394
[ "BSD-2-Clause" ]
60
2016-01-29T20:40:04.000Z
2021-05-28T14:13:18.000Z
librarian_server/tests/conftest.py
simonsobs/librarian
188370d84a988f898bb9de4593078c1868602f08
[ "BSD-2-Clause" ]
6
2017-11-13T10:40:34.000Z
2020-07-10T00:42:57.000Z
# -*- mode: python; coding: utf-8 -*- # Copyright 2019 The HERA Collaboration # Licensed under the 2-clause BSD license """Setup testing environment. """ import pytest import json import os import logging from flask import Flask from flask_sqlalchemy import SQLAlchemy _log_level_names = { 'debug': logging.DE...
29.376812
86
0.678836
91022274f3ef5f49b12a556e53fa5a6d3da9d74d
5,867
py
Python
server/server_views.py
capjamesg/cinnamon
82c84e53854987e184198e334d5f23fe86fccf41
[ "MIT" ]
null
null
null
server/server_views.py
capjamesg/cinnamon
82c84e53854987e184198e334d5f23fe86fccf41
[ "MIT" ]
1
2022-02-09T14:58:42.000Z
2022-02-09T14:58:42.000Z
server/server_views.py
capjamesg/cinnamon
82c84e53854987e184198e334d5f23fe86fccf41
[ "MIT" ]
null
null
null
import sqlite3 import requests from flask import Blueprint, jsonify, redirect, render_template, request, session from authentication.check_token import verify as check_token from .main import microsub_api_request server_views = Blueprint("server_views", __name__, template_folder="templates") @server_views.route("/...
27.544601
117
0.604057
910229608329c0f04eebfed39c5e64ee38c3e025
362
py
Python
src/pandas_profiling_study/report/presentation/flavours/widget/variable.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/flavours/widget/variable.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/flavours/widget/variable.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
1
2020-04-25T15:20:39.000Z
2020-04-25T15:20:39.000Z
from ipywidgets import widgets from .....report.presentation.core import Variable class WidgetVariable(Variable): def render(self): # TODO: use `ignore` param items = [self.content["top"].render()] if self.content["bottom"] is not None: items.append(self.content["bottom"].rend...
25.857143
57
0.646409
91025c87a2da9ecb2b123c43fa08c157fc8b2f3c
6,926
py
Python
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/keys/_models.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/keys/_models.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/keys/_models.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "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. # -------------------------------------------------------------------------- from date...
32.980952
152
0.619261
91027d57aa71c04679fa905a67237629cf4ab72d
10,383
py
Python
PyNBSimbot/pysimbotlib/core/Simbot.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
1
2022-01-24T13:03:29.000Z
2022-01-24T13:03:29.000Z
PyNBSimbot/pysimbotlib/core/Simbot.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
null
null
null
PyNBSimbot/pysimbotlib/core/Simbot.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os, sys from kivy.uix.widget import Widget from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty, StringProperty from kivy.logger import Logger from kivy.core.window import Window from kivy.uix.boxlayout import BoxLayout import random import csv from...
38.742537
156
0.56265
9102860c1e655d59a56c813fb304f0980783edbc
1,458
py
Python
stoq/tests/data/plugins/dispatcher/simple_dispatcher/simple_dispatcher.py
ytreister/stoq
8bfc78b226ee6500eb78e1bdf361fc83bc5005b7
[ "Apache-2.0" ]
385
2015-11-20T02:21:18.000Z
2022-03-24T09:38:24.000Z
stoq/tests/data/plugins/dispatcher/simple_dispatcher/simple_dispatcher.py
ytreister/stoq
8bfc78b226ee6500eb78e1bdf361fc83bc5005b7
[ "Apache-2.0" ]
127
2016-07-08T20:23:20.000Z
2022-02-23T13:52:19.000Z
stoq/tests/data/plugins/dispatcher/simple_dispatcher/simple_dispatcher.py
ytreister/stoq
8bfc78b226ee6500eb78e1bdf361fc83bc5005b7
[ "Apache-2.0" ]
68
2015-11-20T12:51:44.000Z
2022-01-25T04:35:54.000Z
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
35.560976
76
0.718107
910298a94591381b70c435f6f0a0f3263b725fff
8,704
py
Python
python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_repository_definition.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_repository_definition.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_repository_definition.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
import datetime from collections import defaultdict import pytest from dagster import ( DagsterInvalidDefinitionError, PipelineDefinition, SensorDefinition, SolidDefinition, daily_schedule, hourly_schedule, lambda_solid, monthly_schedule, repository, schedule, sensor, so...
23.087533
100
0.613626
91029ab0556f77f8356346710d0bf3b0f56321b7
3,940
py
Python
opencadd/structure/superposition/cli.py
pipaj97/opencadd
4fcf090bd612a22df9d617473ae458316a4cb4b6
[ "MIT" ]
1
2020-11-11T17:24:41.000Z
2020-11-11T17:24:41.000Z
opencadd/structure/superposition/cli.py
Allend95/opencadd
1fde238e3cf8e5e47e8266a504d9df0196505e97
[ "MIT" ]
null
null
null
opencadd/structure/superposition/cli.py
Allend95/opencadd
1fde238e3cf8e5e47e8266a504d9df0196505e97
[ "MIT" ]
null
null
null
""" Command Line Interface for opencadd """ import argparse import logging from .api import align, METHODS from ..core import Structure from ...utils import PerLevelFormatter, EmojiPerLevelFormatter from ..._version import get_versions as _get_versions __version__ = _get_versions()["version"] _logger = logging.getLog...
32.03252
132
0.614975
9102a8b0c711e1a4e95ac8cf89bffcc77fe5ade0
33,558
py
Python
NBA Project/venv/Lib/site-packages/plotly/validators/scatterternary/__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/validators/scatterternary/__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/validators/scatterternary/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="visible", parent_name="scatterternary", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name,...
35.029228
88
0.596668
9102c4ee19c0e32f18c161b86a077ebc2e5aff1f
1,797
py
Python
tests/test_kernel.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
6
2018-06-19T16:01:35.000Z
2020-05-21T20:02:53.000Z
tests/test_kernel.py
bhokansonfasig/pyrex
8b2abc954f2cf4945424042f33847b783c72dcfa
[ "MIT" ]
4
2018-01-19T14:52:33.000Z
2021-09-02T17:20:07.000Z
tests/test_kernel.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
5
2018-01-19T14:49:16.000Z
2021-01-21T12:34:59.000Z
"""File containing tests of pyrex kernel module""" import pytest from pyrex.askaryan import AskaryanSignal from pyrex.antenna import Antenna from pyrex.ice_model import ice from pyrex.ray_tracing import RayTracer from pyrex.particle import Particle, Event from pyrex.generation import ListGenerator from pyrex.kernel i...
35.94
79
0.619366
9102df9ef24af62ce06ebfdb96fbb44440ec699e
3,347
py
Python
deepray/model/model_wdl.py
fuhailin/DeePray
35310a7ec5f166aa1cc892e46d144f2fb655b566
[ "Apache-2.0" ]
37
2020-06-05T14:03:59.000Z
2021-11-18T06:25:11.000Z
deepray/model/model_wdl.py
fuhailin/DeePray
35310a7ec5f166aa1cc892e46d144f2fb655b566
[ "Apache-2.0" ]
2
2021-03-12T11:04:21.000Z
2021-09-13T03:57:08.000Z
deepray/model/model_wdl.py
fuhailin/DeePray
35310a7ec5f166aa1cc892e46d144f2fb655b566
[ "Apache-2.0" ]
6
2020-06-07T08:14:02.000Z
2021-11-18T06:25:25.000Z
# Copyright © 2020-2020 Hailin Fu 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 l...
41.8375
98
0.651031
9102f5b369ac19edd2febfb9b024951926ba4e7c
585
py
Python
supriya/ugens/Slope.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Slope.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Slope.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.Filter import Filter class Slope(Filter): """ Calculates slope of signal. :: >>> source = supriya.ugens.In.ar(bus=0) >>> slope = supriya.ugens.Slope.ar( ... source=source, ... ) >>>...
20.172414
79
0.622222
910335939974ca93b7862f9ad3673ddcc312517e
3,700
py
Python
app/globals.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
app/globals.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
app/globals.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from types import MappingProxyType from typing import Union from dateutil.tz import tzutc from flask import current_app, g from flask import session as cookie_session from structlog import get_logger from app.authentication.user import User from app.data_models import Question...
35.238095
86
0.748919
91035721fa1b2f5cd016ab10aaf8c9e2bae12bfa
32
py
Python
src/eval/__init__.py
151232summerday/Tencent_Ads_Algo_2018
dc1aa2285e196e87d100b7e6769f3c97c19e394f
[ "MIT" ]
293
2018-08-17T14:29:28.000Z
2022-02-28T12:35:48.000Z
src/eval/__init__.py
151232summerday/Tencent_Ads_Algo_2018
dc1aa2285e196e87d100b7e6769f3c97c19e394f
[ "MIT" ]
1
2018-08-21T14:48:38.000Z
2018-08-21T14:48:38.000Z
src/eval/__init__.py
151232summerday/Tencent_Ads_Algo_2018
dc1aa2285e196e87d100b7e6769f3c97c19e394f
[ "MIT" ]
70
2018-08-21T03:39:38.000Z
2022-03-01T07:21:08.000Z
from eval.auc import cal_avg_auc
32
32
0.875
9103ad36be0530cfd72681a731a2bbdd77c12d56
7,680
py
Python
tests/runners/black/test_runner.py
captainhammy/houdini_package_runner
40f8b60ebe32c64fd9b37328a9a5eefacd1c6ebd
[ "MIT" ]
3
2022-02-06T23:31:17.000Z
2022-02-07T11:10:03.000Z
tests/runners/black/test_runner.py
captainhammy/houdini_package_runner
40f8b60ebe32c64fd9b37328a9a5eefacd1c6ebd
[ "MIT" ]
null
null
null
tests/runners/black/test_runner.py
captainhammy/houdini_package_runner
40f8b60ebe32c64fd9b37328a9a5eefacd1c6ebd
[ "MIT" ]
null
null
null
"""Test the houdini_package_runner.runners.black.runner module.""" # ============================================================================= # IMPORTS # ============================================================================= # Standard Library import argparse import pathlib # Third Party import pytest #...
31.346939
95
0.634635
9103aff2e92a18aca569cc99e7b46edca5d4be22
243
py
Python
xflask/web/security/__init__.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
2
2020-02-11T08:29:49.000Z
2020-02-17T10:24:36.000Z
xflask/web/security/__init__.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
xflask/web/security/__init__.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
from xflask.common import get_xflask def get_current_user(): auth_manager = get_xflask().auth_manager return auth_manager.get_current_user() def logout(): auth_manager = get_xflask().auth_manager return auth_manager.logout()
24.3
44
0.765432
9103b4aa5d2e6a5156212d03a9f3245d1c26b5fe
1,154
py
Python
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
import os.path from tron import g, hub from tron.Hub.Command.Encoders.ASCIICmdEncoder import ASCIICmdEncoder from tron.Hub.Nub.TCCShellNub import TCCShellNub from tron.Hub.Reply.Decoders.ASCIIReplyDecoder import ASCIIReplyDecoder name = 'tcc' def start(poller): stop() initCmds = ('show version', 'show us...
25.644444
97
0.598787
9103c498c7c883c7653e005ced12d3cd90b0798b
4,612
py
Python
players/LightABPlayer.py
MPTG94/AI-HW2
1ef8ae1dfade4a6c79e4de1775825c292216bc0b
[ "MIT" ]
null
null
null
players/LightABPlayer.py
MPTG94/AI-HW2
1ef8ae1dfade4a6c79e4de1775825c292216bc0b
[ "MIT" ]
null
null
null
players/LightABPlayer.py
MPTG94/AI-HW2
1ef8ae1dfade4a6c79e4de1775825c292216bc0b
[ "MIT" ]
null
null
null
""" MiniMax Player with AlphaBeta pruning with light heuristic """ import time from copy import deepcopy import numpy as np from SearchAlgos import GameUtils, GameState, AlphaBeta from players.AbstractPlayer import AbstractPlayer # TODO: you can import more modules, if needed class Player(AbstractPlayer): def...
39.758621
116
0.610147
9103da46ea46106dd1879969925e34d70c64be2c
389
py
Python
projects/chatbot-server/nlu/keyword_based/api.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
3
2021-12-04T09:03:06.000Z
2022-01-10T07:30:15.000Z
projects/chatbot-server/nlu/keyword_based/api.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
1
2021-12-04T08:59:00.000Z
2021-12-07T11:20:18.000Z
projects/chatbot-server/nlu/keyword_based/api.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
null
null
null
import json import logging from .rules.rule_manager import RuleManager logger = logging.getLogger(__name__) mng = RuleManager() mng.load_rules() def get_reply_list(text): logger.debug('input: %s' % text) replys = mng.apply_rules(text) or [] logger.info('input %s. response: %s' % ( text, json.du...
19.45
63
0.688946
9103e6eb9ec4ef0ba960a72f612f5df58f9d6c97
1,610
py
Python
src/sardana/pool/poolcontrollers/IoverI0.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/pool/poolcontrollers/IoverI0.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/pool/poolcontrollers/IoverI0.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under the terms of the GNU Less...
31.568627
78
0.636646
9103e8322a9579dd1e2dcdd25f06d3c2ae8a9c99
4,982
py
Python
nicos/authors.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/authors.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos/authors.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
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
39.856
79
0.727419
9103ee4d8284741d26d5f48aaa5cee14f2b28b2f
1,336
py
Python
src/blockchain/constants.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
11
2021-05-25T07:42:27.000Z
2022-01-03T07:46:38.000Z
src/blockchain/constants.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
18
2021-05-25T17:42:46.000Z
2021-09-13T15:14:38.000Z
src/blockchain/constants.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
5
2021-06-23T17:38:51.000Z
2022-03-03T12:40:53.000Z
BLOCKS_PER_MINUTE = 1 BLOCK_COUNT_FREEZE_WALLET_LOTTERY_AFTER_WIN = ( BLOCKS_PER_MINUTE * 60 * 24 * 7 ) # one week NETWORK_START_TIME = ( 0 # TODO: set to network start time (unix time) for timestamp validation ) # So blocks cant be created before time DEVELOPER_KEY = "029afdebc63d5f25a275ae21d301fbc7449e...
40.484848
236
0.768713
910404e8f386a240f820d13f321853ba6ea30c23
1,829
py
Python
src/assignments/assignment10/invoice.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
null
null
null
src/assignments/assignment10/invoice.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-02-03T03:41:28.000Z
2018-02-03T03:41:28.000Z
src/assignments/assignment10/invoice.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-04-13T01:17:50.000Z
2018-04-13T01:17:50.000Z
#ASSIGNMENT10 write import statement for customer class from src.assignments.assignment9.customer import Customer from src.assignments.assignment9.product import Product import unittest class Invoice: def __init__(self, customer): #ASSIGNMENT10: #change bill_to parameter name to customer and modif...
33.254545
113
0.666484
91040ec68d3913007feab1dec52115c4912205a2
27,131
py
Python
src/openapi_client/api/project_accesses_api.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/api/project_accesses_api.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/api/project_accesses_api.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.api_client import ApiClient, Endpoint as _E...
35.935099
190
0.480926
910414321ce1f8e7c37ecd9b3762012ff7185320
6,063
py
Python
server/lib/range.py
chejennifer/website
b7589f1fa288e0e4e12cd97a6bbbcb9f3fd3d833
[ "Apache-2.0" ]
11
2020-07-18T17:04:26.000Z
2022-03-23T08:44:09.000Z
server/lib/range.py
chejennifer/website
b7589f1fa288e0e4e12cd97a6bbbcb9f3fd3d833
[ "Apache-2.0" ]
747
2020-06-22T16:56:45.000Z
2022-03-31T19:04:55.000Z
server/lib/range.py
chejennifer/website
b7589f1fa288e0e4e12cd97a6bbbcb9f3fd3d833
[ "Apache-2.0" ]
33
2019-09-25T21:26:12.000Z
2022-03-23T08:27:33.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.645714
80
0.539667
910418ca1eb51c2a5181e1ed81c167bda0420445
1,052
py
Python
Arquivos em Python/PythonExercicios/Modulo109moeda.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
1
2022-02-05T21:07:38.000Z
2022-02-05T21:07:38.000Z
Arquivos em Python/PythonExercicios/Modulo109moeda.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
null
null
null
Arquivos em Python/PythonExercicios/Modulo109moeda.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
null
null
null
def aumentar(x=0, formato=False): s = x + 1 #print(f'Alguém te deu uma moeda, de {x} suas moedas aumentaram para {s}') return s if formato is False else moeda(s) def diminuir(x=0, formato=False): s = x - 1 #print(f'Você doou uma moeda, de {x} suas moedas diminuiram para {s}') return s if forma...
29.222222
91
0.629278
91045b23029c2ffeeb7b3143bb83ebebc1f51364
6,917
py
Python
data/minifrance_loader.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
data/minifrance_loader.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
data/minifrance_loader.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
""" Code taken from https://github.com/WilhelmT/ClassMix Slightly modified """ import os import torch import scipy.misc as m from torch.utils import data from data.city_utils import recursive_glob from data.augmentations import * class minifranceLoader(data.Dataset): """minifranceLoader https://ieee-dataport...
32.474178
96
0.531155