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
086d47d8d35577c780946df95a58220da058c734
4,410
py
Python
terrascript/okta/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/okta/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/okta/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/okta/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class okta_admin_role_targets(terrascript.Resource): pass class okta_app_auto_login(terrascript.Resource...
15.206897
79
0.782993
086d5064b89dab183931d4be512a9066bfeda4c2
914
py
Python
data/simplequestions/datacheck.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
2
2016-06-28T23:41:42.000Z
2017-01-14T12:41:36.000Z
data/simplequestions/datacheck.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
1
2016-04-20T20:09:20.000Z
2016-08-17T19:02:47.000Z
data/simplequestions/datacheck.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
5
2016-07-18T17:05:18.000Z
2018-10-13T05:40:05.000Z
import pickle, numpy as np from IPython import embed d = pickle.load(open("datamat.word.dmp.pkl")) td = d["train"] vd = d["valid"] xd = d["test"] wd = d["worddic"] rwd = {v: k for k, v in wd.items()} ld = d["labels"] ed = d["entdic"] red = {v: k for k, v in ed.items()} # do the search results contain the true subjec...
21.761905
77
0.612691
086d591397e315f9839e2955fe02efb7af592121
16,484
py
Python
EpipolarHelpers.py
MZSHAN/SparseReconstruction
c6f553acbd6cf5ad72038fae5d5454e42e11cdcb
[ "MIT" ]
1
2021-11-30T02:40:09.000Z
2021-11-30T02:40:09.000Z
EpipolarHelpers.py
MZSHAN/SparseReconstruction
c6f553acbd6cf5ad72038fae5d5454e42e11cdcb
[ "MIT" ]
null
null
null
EpipolarHelpers.py
MZSHAN/SparseReconstruction
c6f553acbd6cf5ad72038fae5d5454e42e11cdcb
[ "MIT" ]
null
null
null
import math import numpy as np import matplotlib.pyplot as plt import utils # Function has been tested def triangulate(projection_matrix1, pts1, projection_matrix2, pts2): """ Function takes a the projection matrices of two cameras and the corresponding points in the pixel space of the 2 camera. It return...
39.529976
122
0.661005
086d63173e4c86e92b1c074d8a1a5aaf0bc7abf8
819
py
Python
parsl/tests/test_python_apps/test_fibonacci_recursive.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
1
2020-11-21T17:32:09.000Z
2020-11-21T17:32:09.000Z
parsl/tests/test_python_apps/test_fibonacci_recursive.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_python_apps/test_fibonacci_recursive.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
1
2022-03-09T10:51:12.000Z
2022-03-09T10:51:12.000Z
import argparse import parsl from parsl.app.app import python_app from parsl.tests.configs.local_threads import config @python_app def fibonacci(n): if n == 0: return 0 elif n == 2 or n == 1: return 1 else: return fibonacci(n - 1).result() + fibonacci(n - 2).result() def test_fi...
22.75
68
0.59707
086d972da8561acce948b3092087527f39109ef4
18,250
py
Python
ads/feature_engineering/accessor/dataframe_accessor.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/feature_engineering/accessor/dataframe_accessor.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/feature_engineering/accessor/dataframe_accessor.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2021, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ """ The ADS accessor for the Pandas DataFrame. The accessor will be initialized with the pandas object the us...
34.433962
134
0.567178
086d98ec2463157bb8357a4c93aafbd68c41c2f0
1,445
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/st7735r_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/st7735r_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/st7735r_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This test will initialize the display using displayio and draw a solid green background, a smaller purple rectangle, and some yellow text. """ import board import terminalio import displayio from adafruit_display_text im...
27.264151
87
0.781315
086dae13be027cda186a9175758a09089e039533
27,812
py
Python
ibllib/tests/qc/test_task_metrics.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
ibllib/tests/qc/test_task_metrics.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
ibllib/tests/qc/test_task_metrics.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
import unittest from functools import partial from pathlib import Path import numpy as np from iblutil.util import Bunch from one.api import ONE from ibllib.tests import TEST_DB from ibllib.qc import task_metrics as qcmetrics from brainbox.behavior.wheel import cm_to_rad class TestAggregateOutcome(unittest.TestCas...
49.842294
99
0.64429
086dae756d7bce9024dd8fbf14cc76c74a472bb0
3,588
py
Python
ibis/backends/impala/pandas_interop.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2021-06-15T07:28:59.000Z
2021-06-15T07:28:59.000Z
ibis/backends/impala/pandas_interop.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2021-03-25T14:07:29.000Z
2021-03-25T14:07:29.000Z
ibis/backends/impala/pandas_interop.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
2
2020-11-27T22:21:50.000Z
2021-04-03T09:36:25.000Z
# Copyright 2014 Cloudera Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
28.704
74
0.607023
086dc42f958823a8ad3377d590479e7dbd306325
1,467
py
Python
src/kol/bot/DiceRoller.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
1
2016-05-08T12:10:32.000Z
2016-05-08T12:10:32.000Z
src/kol/bot/DiceRoller.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
null
null
null
src/kol/bot/DiceRoller.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
null
null
null
""" This module implements a FilterManager filter to provide basic dice-rolling functionality. """ from kol.manager import FilterManager from kol.manager import PatternManager from kol.util import Report import random import re DICE_ROLL_PATTERN = re.compile(r'roll ([0-9]+)d([0-9]+)', re.IGNORECASE) __randomGenerat...
24.864407
90
0.687117
086dd58d52bb3989e0ef1fc9310ccf6f7ba44c39
20,894
py
Python
two1/commands/doctor.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
two1/commands/doctor.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
two1/commands/doctor.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Diagnose 21 installation.""" import os import platform import shutil import socket import sys import enum import urllib.parse as parse import logging import click import requests import two1 import two1.commands.util.version as version from two1.commands.util import uxstring from two1.commands.util import decorato...
35.057047
117
0.590792
086e1fb04150d33f636b56fe4fe7db54bbe26c65
4,139
py
Python
experiments/ashvin/icml2020/hand/sparse2/test1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse2/test1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse2/test1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30.433824
77
0.569461
086e91605cbcc1c9275ee5cc1f1e84d9bc3af922
3,093
py
Python
moderation/managers.py
EnvSys/django-moderation
afa80926354bdc263d6d9214eb983000334d77e2
[ "BSD-3-Clause" ]
97
2015-03-21T02:18:39.000Z
2022-02-22T01:30:19.000Z
moderation/managers.py
EnvSys/django-moderation
afa80926354bdc263d6d9214eb983000334d77e2
[ "BSD-3-Clause" ]
85
2015-05-05T05:22:23.000Z
2022-03-28T10:32:00.000Z
moderation/managers.py
EnvSys/django-moderation
afa80926354bdc263d6d9214eb983000334d77e2
[ "BSD-3-Clause" ]
70
2015-04-13T07:29:32.000Z
2022-03-24T10:54:58.000Z
from django.contrib.contenttypes.models import ContentType from django.db.models import Count, Q from django.db.models.manager import Manager from . import moderation from .constants import MODERATION_READY_STATE from .queryset import ModeratedObjectQuerySet class MetaClass(type(Manager)): def __new__(cls, name...
37.26506
80
0.649855
086ec97c95c3b76c56fd57b40eef377433434682
3,480
py
Python
exos/logements_sociaux_finances_a_paris-2.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
7
2016-09-29T07:20:25.000Z
2021-03-15T15:00:06.000Z
exos/logements_sociaux_finances_a_paris-2.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
null
null
null
exos/logements_sociaux_finances_a_paris-2.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
11
2017-01-12T18:50:49.000Z
2021-02-28T22:44:29.000Z
# -*- coding: utf-8 -*- # À partir de l’export csv de https://opendata.paris.fr/explore/dataset/logements_sociaux_finances_a_paris/ # vous compterez le nombre de logements sociaux financés par arrondissement. # Pour les cinq arrondissements où l’on trouve le plus de logements financés vous afficherez l’évolution pa...
47.027027
210
0.668678
086ee21342c9e9ea40a38b1a26c8bd849545a2fd
3,994
py
Python
components/roi_rotate.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
7
2021-02-25T17:33:19.000Z
2022-02-25T08:11:12.000Z
components/roi_rotate.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
3
2021-03-09T08:36:42.000Z
2021-12-08T02:45:07.000Z
components/roi_rotate.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
1
2022-02-10T07:30:20.000Z
2022-02-10T07:30:20.000Z
from torch import nn import cv2 import numpy as np import math import torch class ROIRotate(nn.Module): def __init__(self, height=8): """ Height is taken as 8px after affine transformation in paper. """ super().__init__() self.height = height def forward(self, feature...
37.327103
119
0.561342
086ef9ccaa636c1545ff2da037e34e13e4da2bf6
33,397
py
Python
ginga/qtw/ImageViewQt.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/qtw/ImageViewQt.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/qtw/ImageViewQt.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
# # ImageViewQt.py -- a backend for Ginga using Qt widgets # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from __future__ import absolute_import import os from io import BytesIO import numpy as np import ginga.util.six as six from ginga.util.six.moves ...
34.394439
116
0.585382
086f15a9a5759b4303eabd07005ca3331976f9a3
30,430
py
Python
src/commands.py
Ciremun/shtcd
8967f1114cc633d504b30e69f24c91c1eeb59eb6
[ "MIT" ]
1
2021-02-22T12:36:24.000Z
2021-02-22T12:36:24.000Z
src/commands.py
Ciremun/shtcd
8967f1114cc633d504b30e69f24c91c1eeb59eb6
[ "MIT" ]
2
2021-02-06T19:41:20.000Z
2021-03-13T16:31:45.000Z
src/commands.py
Ciremun/shtcd
8967f1114cc633d504b30e69f24c91c1eeb59eb6
[ "MIT" ]
null
null
null
import src.info as info import src.config as g from .qthreads import utils_queue, sr_download_queue, px_download_queue, tts_queue from .info import commands_list, mod_commands_list from .server import Player, TextToSpeech, set_image from .pixiv import Pixiv from .utils import * commands = {} def bot_command(*, name, ...
38.962868
157
0.579593
086f3694efa9a79421bc606b6e9d46861a2f2ef1
886
py
Python
sdks/python/test/test_BranchStatus.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_BranchStatus.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_BranchStatus.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
22.15
83
0.706546
086f3e68473d2d07545c823cecb18c45f92dbf52
5,915
py
Python
pytrol/util/misc.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
pytrol/util/misc.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
pytrol/util/misc.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import time import datetime from pytrol import Paths from pytrol.model.Maps import Maps from pytrol.util.graphprocessor import * from pytrol.util import pathformatter as pf def _min(a: np.ndarray, b: np.ndarray) -> np.ndarray: r""" Args: a: b: """ c ...
24.543568
79
0.509383
086f6c2be6d9c493d7e803758e9bb609c4e7df14
648
py
Python
test/config_test.py
saheerb/mbed-fastmodel-agent
ff123ac6227cf036e2124666c5c9b313f1eed03c
[ "Apache-2.0" ]
1
2020-09-07T23:14:23.000Z
2020-09-07T23:14:23.000Z
test/config_test.py
saheerb/mbed-fastmodel-agent
ff123ac6227cf036e2124666c5c9b313f1eed03c
[ "Apache-2.0" ]
null
null
null
test/config_test.py
saheerb/mbed-fastmodel-agent
ff123ac6227cf036e2124666c5c9b313f1eed03c
[ "Apache-2.0" ]
1
2018-08-10T09:11:16.000Z
2018-08-10T09:11:16.000Z
from unittest import TestCase from fm_agent.fm_config import FastmodelConfig from fm_agent.utils import SimulatorError class TestFastmodelConfig(TestCase): def test_Setting_File(self): self.assertTrue(FastmodelConfig.SETTINGS_FILE,"settings.json") def test_get_configs_none(self): ...
32.4
70
0.705247
086f72b9fbd590a9b9d5c348432fa59b860d1529
792
py
Python
setup.py
cdumay/cdumay-http-client
e668bf9f7642e9d508f1faee282b80364182683e
[ "BSD-3-Clause" ]
null
null
null
setup.py
cdumay/cdumay-http-client
e668bf9f7642e9d508f1faee282b80364182683e
[ "BSD-3-Clause" ]
null
null
null
setup.py
cdumay/cdumay-http-client
e668bf9f7642e9d508f1faee282b80364182683e
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python # -*- coding: utf-8 -*- """ .. codeauthor:: Cédric Dumay <cedric.dumay@gmail.com> """ from setuptools import setup, find_packages setup( name='cdumay-http-client', version=open('VERSION', 'r').read().strip(), description="HTTP client", long_description=open('README.rst', 'r').r...
25.548387
63
0.640152
086f74d2b19f317c6fb911998db8adc73871a35a
6,171
py
Python
whisk_tutorial/migrations/0003_auto__add_field_tutorialuser_http_user_agent__add_field_tutorialuser_h.py
apache/openwhisk-tutorial
f3d4e1ef8eb41462cff525df02dbbdd4998e471a
[ "Apache-2.0" ]
2
2019-12-23T19:11:48.000Z
2021-11-10T15:53:41.000Z
whisk_tutorial/migrations/0003_auto__add_field_tutorialuser_http_user_agent__add_field_tutorialuser_h.py
tspannhw/incubator-openwhisk-tutorial
f3d4e1ef8eb41462cff525df02dbbdd4998e471a
[ "Apache-2.0" ]
5
2019-08-15T15:31:21.000Z
2019-08-15T15:32:00.000Z
whisk_tutorial/migrations/0003_auto__add_field_tutorialuser_http_user_agent__add_field_tutorialuser_h.py
tspannhw/incubator-openwhisk-tutorial
f3d4e1ef8eb41462cff525df02dbbdd4998e471a
[ "Apache-2.0" ]
2
2021-11-04T12:32:33.000Z
2021-11-10T15:53:32.000Z
# -*- 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 field 'TutorialUser.http_user_agent' db.add_column(u'whisk_tutorial_tutorialuser', 'http_user_agent...
60.5
145
0.609464
086f9d5e68cf9c8c565c6fa45afe275e4de5bd7a
2,588
py
Python
todo/tests/test_import.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
todo/tests/test_import.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
26
2021-02-08T07:57:42.000Z
2022-03-01T02:07:58.000Z
todo/tests/test_import.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
import datetime from pathlib import Path import pytest from django.contrib.auth import get_user_model from todo.models import Task, TaskList from todo.operations.csv_importer import CSVImporter """ Exercise the "Import CSV" feature, which shares a functional module that serves both the `import_csv` management comma...
33.61039
102
0.692813
086fbd1e694ea0b17f0dfbb626e016bb59f527f2
666
py
Python
advent_of_code/year_2021/day_08/day_08.py
mdu-alt/coding_challenges_python
171876129b17b5eccd8dd20c7f5b61b3e0e6ef90
[ "MIT" ]
null
null
null
advent_of_code/year_2021/day_08/day_08.py
mdu-alt/coding_challenges_python
171876129b17b5eccd8dd20c7f5b61b3e0e6ef90
[ "MIT" ]
null
null
null
advent_of_code/year_2021/day_08/day_08.py
mdu-alt/coding_challenges_python
171876129b17b5eccd8dd20c7f5b61b3e0e6ef90
[ "MIT" ]
null
null
null
from typing import List """This module implements the 8th day of 2021 Advent Of Code: 'Seven Segment Search' See https://adventofcode.com/2021/day/8""" def main(): with open('example.txt') as f: content = f.read().splitlines() puzzle_input = content solution = 26 assert count_increases(puz...
20.181818
84
0.612613
086fd01f64bb776feeb0418af1f6973766f3aec3
2,496
py
Python
resolve_tools/timecode.py
kiyoon/camera-tools
2e269141597dd27ec7d41e49285e01ef566cb54c
[ "MIT" ]
1
2021-11-14T23:30:47.000Z
2021-11-14T23:30:47.000Z
resolve_tools/timecode.py
kiyoon/camera-tools
2e269141597dd27ec7d41e49285e01ef566cb54c
[ "MIT" ]
null
null
null
resolve_tools/timecode.py
kiyoon/camera-tools
2e269141597dd27ec7d41e49285e01ef566cb54c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Requires python3.6 (only) import DaVinciResolveScript as dvr from datetime import datetime import os import tqdm if __name__ == '__main__': resolve = dvr.scriptapp('Resolve') pm = resolve.GetProjectManager() proj = pm.GetCurrentProject() tl = proj.GetCurrentTimeline() mp ...
32.842105
114
0.647436
086fda6723bff3cb75e58798c52fd2d114e2725d
97
py
Python
setup.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
setup.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
setup.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
"Empty setup.py. See setup.cfg for project-wide parameters" from setuptools import setup setup()
24.25
59
0.793814
086ff43c3a07b92701f8c5890bcbe54acb83feb1
18,427
py
Python
igraph/vendor/texttable.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
2
2017-03-07T04:01:59.000Z
2017-05-02T17:19:29.000Z
igraph/vendor/texttable.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
null
null
null
igraph/vendor/texttable.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # texttable - module for creating simple ASCII tables # Copyright (C) 2003-2011 Gerome Fournier <jef(at)foutaise.org> # # This library 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 Foundat...
31.391823
106
0.522169
087010f39707ac12acb80551ddc3dd5ac1dacb78
1,381
py
Python
python/sharpsmt/sdd/Algorithm_ModelCounting_Basic_v2.py
anton-musrevinu/sharpNAR
689803d1c1d57728597d839cef8863af61a113b7
[ "MIT" ]
null
null
null
python/sharpsmt/sdd/Algorithm_ModelCounting_Basic_v2.py
anton-musrevinu/sharpNAR
689803d1c1d57728597d839cef8863af61a113b7
[ "MIT" ]
null
null
null
python/sharpsmt/sdd/Algorithm_ModelCounting_Basic_v2.py
anton-musrevinu/sharpNAR
689803d1c1d57728597d839cef8863af61a113b7
[ "MIT" ]
null
null
null
from .SddBaseManager import SddBaseManager from .SddStructure import BoolNode, DecNode, LitNode class Algorithm_ModelCounting_Basic(SddBaseManager): # def __init__(self,name,vtreeMan, logger): # super(Algorithm_ModelCounting_Basic,self).__init__(name,vtreeMan,logger) def startAlgorithm(self, stopEvent): self._...
28.183673
84
0.740768
087027f2f98bb95f6362925abbfd8c38f0b00e8c
328
py
Python
app/search/operators/starts_with.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
5
2018-03-19T19:04:53.000Z
2021-02-19T16:44:04.000Z
app/search/operators/starts_with.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
6
2020-04-18T16:14:22.000Z
2021-08-14T09:23:16.000Z
app/search/operators/starts_with.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
1
2021-01-10T18:47:38.000Z
2021-01-10T18:47:38.000Z
from . import operator_for from .operator import Operator @operator_for("str") class StartsWith(Operator): label = _("Starts with") @classmethod def get_comparison_expression(cls, field, value_expr, value_widget): return value_expr.like("{0}%".format(cls.get_value_for_query(field, value_w...
32.8
91
0.722561
08702a2de938ddc005372db9bbf345645fafaaaf
497
py
Python
compare-configs.py
saurabhmishra/config-compare
c92647a82453d8f9e14873d24959c3b0c146f149
[ "Apache-2.0" ]
6
2016-09-20T22:15:31.000Z
2019-09-19T03:31:20.000Z
compare-configs.py
Symantec/config-compare
c92647a82453d8f9e14873d24959c3b0c146f149
[ "Apache-2.0" ]
null
null
null
compare-configs.py
Symantec/config-compare
c92647a82453d8f9e14873d24959c3b0c146f149
[ "Apache-2.0" ]
4
2016-12-15T22:34:36.000Z
2021-02-26T10:22:50.000Z
#!/usr/bin/env python # # compare-configs.py compares a comma seperated list of files which contain ambari blueprints # and prints out differences by default. # from config_compare import ConfigCompare if __name__ == "__main__": # create the compare instance cc_hdl = ConfigCompare() # validate args ...
21.608696
94
0.722334
087033b90aaacb3b4ffd277a2e0d5bc69da6c78e
31,896
py
Python
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_3/operations/_key_vault_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_3/operations/_key_vault_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_3/operations/_key_vault_client_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...
43.278155
183
0.662277
087034fd646dc48f3e71bb66c56e5cf12fb843e6
9,331
py
Python
Plant_Disease_Detection_Benchmark_models/ResNet/resnet.py
MahletK/plant-disease-experiments
845973562a04c9ca7ac1adc0b5420f9d362f371b
[ "MIT" ]
null
null
null
Plant_Disease_Detection_Benchmark_models/ResNet/resnet.py
MahletK/plant-disease-experiments
845973562a04c9ca7ac1adc0b5420f9d362f371b
[ "MIT" ]
null
null
null
Plant_Disease_Detection_Benchmark_models/ResNet/resnet.py
MahletK/plant-disease-experiments
845973562a04c9ca7ac1adc0b5420f9d362f371b
[ "MIT" ]
null
null
null
''' Adopted from https://github.com/raghakot/keras-resnet ''' from __future__ import division import six from keras.models import Model from keras.layers import Input,Activation,Dense,Flatten from keras.layers.convolutional import Conv2D,MaxPooling2D,AveragePooling2D from keras.layers.merge import add from keras.la...
37.473896
109
0.639696
08703b0c6d0397e9fdd6a552f695735670aaf4f5
1,763
py
Python
var/spack/repos/builtin/packages/py-hpbandster/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-hpbandster/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-hpbandster/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2020 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) # Package automatically generated using 'pip2spack' converter class PyHpbandster(PythonPackage): """ A distribut...
48.972222
95
0.744753
087054fec4e85737a304d6a8198b8db30b7e21a3
1,668
py
Python
deepcell_label/conftest.py
Wong-Lab/deepcell-label
b07f93bed342b470d0662c898e4c2fc8ccb5e9c2
[ "Apache-2.0" ]
null
null
null
deepcell_label/conftest.py
Wong-Lab/deepcell-label
b07f93bed342b470d0662c898e4c2fc8ccb5e9c2
[ "Apache-2.0" ]
2
2020-10-15T23:09:02.000Z
2020-10-22T19:59:09.000Z
deepcell_label/conftest.py
Wong-Lab/deepcell-label
b07f93bed342b470d0662c898e4c2fc8ccb5e9c2
[ "Apache-2.0" ]
null
null
null
"""Tests for the DeepCell Label Flask App.""" import os from flask_sqlalchemy import SQLAlchemy import numpy as np import pytest from pytest_lazyfixture import lazy_fixture from unittest.mock import MagicMock from deepcell_label import create_app # pylint: disable=C0413 from deepcell_label.loaders import Loader #...
24.529412
89
0.675659
08706897d20d16ec56468af2aeb7dcb44b6e8c7d
2,593
py
Python
src/ice/steam_shortcut_synchronizer.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/steam_shortcut_synchronizer.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/steam_shortcut_synchronizer.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
from rom import ICE_FLAG_TAG class SteamShortcutSynchronizer(object): def __init__(self, managed_rom_archive, logger): self.managed_rom_archive = managed_rom_archive self.logger = logger def shortcut_is_managed_by_ice(self, managed_ids, shortcut): return shortcut.appid() in managed_ids or ICE_FLAG_T...
48.018519
105
0.763594
08708e9d851781615ac4d3943f839698d08c42d9
102,540
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/scatterternary/marker/__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/scatterternary/marker/__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/scatterternary/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # autocolorscale # -------------- @property def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autoc...
37.51921
107
0.573386
0870cf22d78472e2dd70081ed24619dcfb66f10f
98,633
py
Python
Cython/Compiler/PyrexTypes.py
wking/cython
87a227a16dc5453f8ff1ac6c8f1d9f05d4846420
[ "Apache-2.0" ]
1
2016-01-23T13:12:55.000Z
2016-01-23T13:12:55.000Z
Cython/Compiler/PyrexTypes.py
wking/cython
87a227a16dc5453f8ff1ac6c8f1d9f05d4846420
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/PyrexTypes.py
wking/cython
87a227a16dc5453f8ff1ac6c8f1d9f05d4846420
[ "Apache-2.0" ]
null
null
null
# # Pyrex - Types # from Code import UtilityCode import StringEncoding import Naming import copy from Errors import error class BaseType(object): # # Base class for all Pyrex types including pseudo-types. def can_coerce_to_pyobject(self, env): return False def cast_code(self, expr_code): ...
34.081894
121
0.609806
0870dc2c4c4e35e13d6470ca4fc1eca8c15b6f8a
2,512
py
Python
ntutm/vocab/doc2vocab_count/standford_vocab.py
m516825/IR_Lab_Package
eabb30cd2898b4cdf39b514038fa42d509d67e77
[ "MIT" ]
null
null
null
ntutm/vocab/doc2vocab_count/standford_vocab.py
m516825/IR_Lab_Package
eabb30cd2898b4cdf39b514038fa42d509d67e77
[ "MIT" ]
null
null
null
ntutm/vocab/doc2vocab_count/standford_vocab.py
m516825/IR_Lab_Package
eabb30cd2898b4cdf39b514038fa42d509d67e77
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- import xml.etree.ElementTree as ET import vocab import os import sys, getopt from nltk.tokenize.stanford_segmenter import StanfordSegmenter def count_em(valid_path): x = 0 for root, dirs, files in os.walk(valid_path): for f in files: x = x+1 return x if __name__ ==...
29.209302
376
0.625
08712e6f8d278c2a82f01d23e6307bd86d2032ee
1,989
py
Python
sdk/translation/azure-ai-translation-document/samples/sample_list_translations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/translation/azure-ai-translation-document/samples/sample_list_translations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/translation/azure-ai-translation-document/samples/sample_list_translations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """ FILE: list_translations.py DESCRIPTION: This sample demonstrates how to list all the submitted translation operations for the resource. To set up your con...
36.163636
99
0.716943
087167ac8c7e88a64b8c336b1d7a161076c6c5f0
4,896
py
Python
preprocessing.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
6
2020-07-06T14:31:18.000Z
2021-09-13T10:15:14.000Z
preprocessing.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
2
2021-09-12T17:49:09.000Z
2021-09-14T15:28:54.000Z
preprocessing.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
1
2021-06-07T01:46:44.000Z
2021-06-07T01:46:44.000Z
import argparse import logging import os import pickle import sys import numpy as np import kb import template_builder import utils def get_input(fact, y, template_obj_list,add_ids): if (add_ids): x = [fact[0],fact[1],fact[2]] else: x = [] for template in template_obj_list: x.ext...
42.573913
227
0.638685
08717d14cf6d383f1356740cefb300f23064e392
664
py
Python
backend/manage.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
1
2020-11-22T11:10:31.000Z
2020-11-22T11:10:31.000Z
backend/manage.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
1
2020-12-08T05:25:54.000Z
2020-12-08T05:42:40.000Z
backend/manage.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'slicedtv.settings') try: from django.core.management import execute_from_command_line except Imp...
28.869565
73
0.679217
08717ebe9171cbe7213ffad7829e0b7be672738a
492
py
Python
test/test_git.py
rec/backer
b42177f7c796db41e308c9bd4254c8f053c83f6b
[ "MIT" ]
1
2020-02-21T15:48:22.000Z
2020-02-21T15:48:22.000Z
test/test_git.py
rec/backer
b42177f7c796db41e308c9bd4254c8f053c83f6b
[ "MIT" ]
8
2020-03-02T15:24:43.000Z
2020-03-12T17:33:00.000Z
test/test_git.py
rec/backer
b42177f7c796db41e308c9bd4254c8f053c83f6b
[ "MIT" ]
null
null
null
from . import patch from gitz.git import GIT, repo @patch.execute_keep_run class TestMain(patch.MainTester): @repo.test def test_git(self): with self.main('-c', 'git:') as execute: repo.write_files('a', 'b', 'c') observer, = execute.observed observer(None) ...
25.894737
61
0.52439
087181ceb074b78d67abffa93081758eb61c115c
69,337
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/models/_models_py3.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 ...
44.191842
188
0.669311
0871a982735541ee84de0cbd67068d4c6766a0d2
169
py
Python
atom/proton/python/proton_api/environment.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/proton_api/environment.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/proton_api/environment.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
import enum class Environment(enum.Enum): SANDBOX = "https://sandbox.hydrogenplatform.com/proton/v1" PRODUCTION = "https://api.hydrogenplatform.com/proton/v1"
24.142857
62
0.739645
0871d6f85a57584e8d4ca8492d2b78381cfa0e21
4,837
py
Python
eisen/datasets/camus.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
eisen/datasets/camus.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
eisen/datasets/camus.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
import os import torch import copy from torch.utils.data import Dataset class CAMUS(Dataset): """ This object implements the capability of reading CAMUS data. The CAMUS dataset is a dataset of ultrasound images of the heart. Further information about this dataset can be found on the official website ...
35.566176
122
0.595204
087204fd529002b9504873038779c82ba3f9c443
4,262
py
Python
scripts/run_mot_challenge.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
scripts/run_mot_challenge.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
scripts/run_mot_challenge.py
mchagneux/TrackEval
1c39da57343525306af523b9ab4557b7ed7480f4
[ "MIT" ]
null
null
null
""" run_mot_challenge.py Run example: run_mot_challenge.py --USE_PARALLEL False --METRICS Hota --TRACKERS_TO_EVAL Lif_T Command Line Arguments: Defaults, # Comments Eval arguments: 'USE_PARALLEL': False, 'NUM_PARALLEL_CORES': 8, 'BREAK_ON_ERROR': True, 'PRINT_RESULTS': True, ...
45.827957
120
0.640544
08722b9ca2fd8150a2df859afbc87d2ef98ef533
4,565
py
Python
experiments/sasha/pybullet_testing/goal_reaching.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/pybullet_testing/goal_reaching.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/pybullet_testing/goal_reaching.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awr_sac_gcrl import experiment, process_args from roboverse.envs.sawyer_rig_gr_v0 import SawyerRigGRV0Env import rlkit.misc.hyperparameter as hyp from rlkit....
29.836601
95
0.598467
0872445b3e1cb93babbc3cb298531dadbdf2b9e6
2,122
py
Python
quiz/users/serializers.py
diego-marcelino/valora-quiz
3218628a857153449dde47ed52d60bc901e9be0b
[ "MIT" ]
null
null
null
quiz/users/serializers.py
diego-marcelino/valora-quiz
3218628a857153449dde47ed52d60bc901e9be0b
[ "MIT" ]
3
2022-02-28T11:07:18.000Z
2022-03-02T11:07:20.000Z
quiz/users/serializers.py
diego-marcelino/valora-quiz
3218628a857153449dde47ed52d60bc901e9be0b
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import AuthenticationFailed from rest_framework_simplejwt.tokens import RefreshToken User = get_user...
31.671642
77
0.578228
08727ddae100b9de0dd638cda434cbd056022419
2,293
py
Python
setup.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
1
2016-10-05T05:17:35.000Z
2016-10-05T05:17:35.000Z
setup.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
17
2016-09-30T13:43:20.000Z
2021-06-10T20:44:40.000Z
setup.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
6
2016-04-11T14:41:44.000Z
2017-10-20T21:16:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): filename = os.path.join(os.path.dirname(__file__), *file_paths) version_file = open(filename).read() ve...
29.779221
72
0.610554
08729e7b7f76c7d16649bb3a456af51869d9c2e1
17,202
py
Python
sfepy/terms/terms_navier_stokes.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/terms/terms_navier_stokes.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/terms/terms_navier_stokes.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
import numpy as nm from sfepy.linalg import dot_sequences from sfepy.terms.terms import Term, terms class DivGradTerm(Term): r""" Diffusion term. :Definition: .. math:: \int_{\Omega} \nu\ \nabla \ul{v} : \nabla \ul{u} \mbox{ , } \int_{\Omega} \nu\ \nabla \ul{u} : \nabla \ul{w} \\ ...
28.622296
79
0.520986
0872b55ae85f25e7215b747334091f67e1d2b4f5
14,906
py
Python
sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.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. #-----------------------------------------------------------------...
39.855615
128
0.670468
0872bbc9f9541f12f7cba32b19e97a78e6630100
27,490
py
Python
src/sage/combinat/root_system/root_system.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/combinat/root_system/root_system.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/root_system/root_system.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
r""" Root systems ============ See :ref:`sage.combinat.root_system` for an overview. """ from __future__ import absolute_import #***************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, # Justin Walker <...
33.280872
224
0.575118
0872bc486a0a3b12cab349b7968b9be680959149
2,900
py
Python
appengine/predator/analysis/linear/changelist_features/test/top_frame_index_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/analysis/linear/changelist_features/test/top_frame_index_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/analysis/linear/changelist_features/test/top_frame_index_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from analysis.analysis_testcase import AnalysisTestCase from analysis.crash_match import CrashMatch from analysis.crash_match import FrameInfo from analysis....
39.189189
78
0.666552
0872da783a71feb739e49a6c01201fecd45c84d5
4,591
py
Python
service/background.py
USECAP/ci-tools
ad2300e3297266ff3ee6ed9118ccd16fc05291e3
[ "MIT" ]
null
null
null
service/background.py
USECAP/ci-tools
ad2300e3297266ff3ee6ed9118ccd16fc05291e3
[ "MIT" ]
null
null
null
service/background.py
USECAP/ci-tools
ad2300e3297266ff3ee6ed9118ccd16fc05291e3
[ "MIT" ]
null
null
null
"""Module for handling asynchronous background tasks""" import asyncio from asyncio.subprocess import PIPE, Process from abc import ABC, abstractmethod from queue import Queue from .responses import RequestResponse, ErrorResponse class BackgroundTask(ABC): """Tasks started asynchronously in the background, notif...
32.792857
84
0.610542
0872fbd456bfb18de5a34178c179ad466fc49e6e
233
py
Python
imdb/panoptic/__init__.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:20.000Z
2021-05-21T10:10:27.000Z
imdb/panoptic/__init__.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
null
null
null
imdb/panoptic/__init__.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:22.000Z
2022-02-20T16:07:37.000Z
# -------------------------------------------------------- # Panoptic Segmentation CNN # Copyright (c) 2019 Ye Lyu # Licensed under The MIT License [see LICENSE for details] # --------------------------------------------------------
38.833333
58
0.377682
087306d91a82415c0eb84f10dc8245a4d0014aad
4,611
py
Python
futaba/sql/data/settings.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
23
2018-09-17T09:06:27.000Z
2021-05-27T15:21:37.000Z
futaba/sql/data/settings.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
257
2018-08-18T21:27:54.000Z
2020-12-29T23:27:10.000Z
futaba/sql/data/settings.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
22
2018-09-09T09:03:13.000Z
2021-11-09T03:34:34.000Z
# # sql/data/settings.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in the ho...
29.183544
111
0.657775
08732652194a85293da2f1df39747c9349b6b25a
4,046
py
Python
alipay/aop/api/request/AlipayInsSceneApplicationOrderapplyCreateRequest.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/request/AlipayInsSceneApplicationOrderapplyCreateRequest.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/request/AlipayInsSceneApplicationOrderapplyCreateRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayInsSceneApplicationOrderapplyCreateModel import AlipayInsSceneApplicationOrderapplyCreateModel class AlipayInsSceneApplication...
27.903448
148
0.651013
08733919647504d54f0ffd2f91a252cb76cf7602
2,561
py
Python
care/users/api/serializers/user.py
Nikhil713/care
fbc444e84c14295383d4170f7771fba58bd4fde8
[ "MIT" ]
null
null
null
care/users/api/serializers/user.py
Nikhil713/care
fbc444e84c14295383d4170f7771fba58bd4fde8
[ "MIT" ]
null
null
null
care/users/api/serializers/user.py
Nikhil713/care
fbc444e84c14295383d4170f7771fba58bd4fde8
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.hashers import make_password from rest_framework import serializers from care.users.api.serializers.lsg import DistrictSerializer, LocalBodySerializer, StateSerializer from care.users.models import GENDER_CHOICES from config.serializers import Cho...
31.231707
106
0.635689
08737f15107e0f4b595db0b69fc20f118f64b17f
71,139
py
Python
python/paddle/fluid/reader.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
1
2020-05-27T05:21:42.000Z
2020-05-27T05:21:42.000Z
python/paddle/fluid/reader.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/reader.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle 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 appli...
41.120809
156
0.566609
0873853dc28068c78a1dc427e2500cfa4354905c
1,303
py
Python
alipay/aop/api/response/AlipayBossFncAntbudgetBbaremainamountQueryResponse.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/response/AlipayBossFncAntbudgetBbaremainamountQueryResponse.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/response/AlipayBossFncAntbudgetBbaremainamountQueryResponse.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.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.BizBudgetApplyAmountDTO import BizBudgetApplyAmountDTO class AlipayBossFncAntbudgetBbaremainamountQueryResponse(AlipayResponse): def __init__(self): supe...
32.575
123
0.717575
0873e3d2fcf3e9d846518324cd5bd72a2ee21c1a
1,926
py
Python
database/add_images.py
stephdef08/tfe2
3b174d4fa9ea12710593be63224a8c9bbff31b2a
[ "MIT" ]
null
null
null
database/add_images.py
stephdef08/tfe2
3b174d4fa9ea12710593be63224a8c9bbff31b2a
[ "MIT" ]
null
null
null
database/add_images.py
stephdef08/tfe2
3b174d4fa9ea12710593be63224a8c9bbff31b2a
[ "MIT" ]
null
null
null
from database.db import Database from argparse import ArgumentParser, ArgumentTypeError import database.models as models import torch import time import os if __name__ == "__main__": parser = ArgumentParser() parser.add_argument( '--path', help='path to the folder that contains the images to a...
22.658824
119
0.598131
0873fb7b43b74aefb85ff9bcdcdd402ee7ad54fe
4,476
py
Python
mmedit/datasets/sr_weight_dataset.py
Serene99-09/mmediting
be49e33650627ac26fdd065fbbaff66f726e3fde
[ "Apache-2.0" ]
null
null
null
mmedit/datasets/sr_weight_dataset.py
Serene99-09/mmediting
be49e33650627ac26fdd065fbbaff66f726e3fde
[ "Apache-2.0" ]
null
null
null
mmedit/datasets/sr_weight_dataset.py
Serene99-09/mmediting
be49e33650627ac26fdd065fbbaff66f726e3fde
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy import numpy as np import os.path as osp import random from .base_sr_dataset import BaseSRDataset from .registry import DATASETS import pdb @DATASETS.register_module() class SRWeightDataset(BaseSRDataset): """General paired image dataset with an annotat...
35.244094
141
0.594504
0874026541740c2addce0f640cb86fb872dd068a
9,365
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.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 ...
41.995516
211
0.680085
08740ba826d3e7d2b4a82171283255704f35f330
10,182
py
Python
mi/dataset/parser/adcpt_acfgm_dcl_pd0.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/adcpt_acfgm_dcl_pd0.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/adcpt_acfgm_dcl_pd0.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.parser.adcpt_acfgm_dcl_pd0 @file marine-integrations/mi/dataset/parser/adcpt_acfgm_dcl_pd0.py @author Jeff Roy @brief Particle and Parser classes for the adcpt_acfgm_dcl_pd0 drivers The particles are parsed by the common PD0 Parser and Abstract particle class in file adcp_...
39.929412
114
0.628855
08741354f53d6b34ba3282cb297f365683166c27
21,930
py
Python
CS/CSC384/A4/inference.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
CS/CSC384/A4/inference.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
CS/CSC384/A4/inference.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
# inference.py # ------------ # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. ...
35.42811
107
0.611628
08741b5ac61906cc85c19e89a8e841c77057977f
1,971
py
Python
plugins/holland.backup.mysql_lvm/tests/pylvm/test_lvm_api.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysql_lvm/tests/pylvm/test_lvm_api.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysql_lvm/tests/pylvm/test_lvm_api.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
# pylint: skip-file import os from holland.backup.lvm.pylvm.api import * from nose.tools import * from .lvm_helper import * def test_pvs(): for pv in pvs(): if pv['vg_name'] == VGNAME: break else: pv = None assert pv is not None, "Could not find Physical Volume for tested volum...
33.982759
136
0.70624
08741cf8ca5746e369884808af9180229b264967
1,513
py
Python
tensorflow/contrib/util/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/util/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/util/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.902439
80
0.775942
08742e030d09062a31d6aed7746cbf6909613b83
7,529
py
Python
shopping_cart/shopping/cart.py
godfrey-leung/shopping
e57c8246961fc3bd5dbffd05e7ffd2ed43a8867a
[ "MIT" ]
null
null
null
shopping_cart/shopping/cart.py
godfrey-leung/shopping
e57c8246961fc3bd5dbffd05e7ffd2ed43a8867a
[ "MIT" ]
null
null
null
shopping_cart/shopping/cart.py
godfrey-leung/shopping
e57c8246961fc3bd5dbffd05e7ffd2ed43a8867a
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Optional, List from uuid import uuid4 from sqlalchemy.orm import Session from shopping_cart.data_model.product import Item, Product from shopping_cart.exc import InvalidValue class ShoppingCart: """ A shopping cart """ def __init__( ...
26.698582
103
0.546686
0874563ae9315977f7db612ac82e7011d42408c0
2,716
py
Python
api/pages.py
ryanmccants/pysqr
ab0448424a11787317f6ce69e44834e64e25b11b
[ "MIT" ]
null
null
null
api/pages.py
ryanmccants/pysqr
ab0448424a11787317f6ce69e44834e64e25b11b
[ "MIT" ]
null
null
null
api/pages.py
ryanmccants/pysqr
ab0448424a11787317f6ce69e44834e64e25b11b
[ "MIT" ]
null
null
null
from urllib import parse from ..config import access_token ''' page = { "id": "c87595ae-14a6-42d7-acb6-008fc8e7ed3g", "name": "Lunch Items", "page_index": 0, "cells": [] } ''' def create_page(page, loc_id): ''' Creates page ''' req_id = '{} page create'.format(loc_id) allowed = [ 'id', ...
24.468468
87
0.533137
08747f83321b92b77078b8c706d2edc1e9252b08
2,723
py
Python
Dayi_Bian/rr_extration.py
Kapil19-dev/MultiRespDL
79aa114c4a0de063222f77155c702221008a843c
[ "MIT" ]
null
null
null
Dayi_Bian/rr_extration.py
Kapil19-dev/MultiRespDL
79aa114c4a0de063222f77155c702221008a843c
[ "MIT" ]
null
null
null
Dayi_Bian/rr_extration.py
Kapil19-dev/MultiRespDL
79aa114c4a0de063222f77155c702221008a843c
[ "MIT" ]
null
null
null
import numpy as np import scipy def extremas_extraction(signal): ''' Input -- Respiratory signal Output -- Average breathing duration and relevent extremas. Description -- This function takes the respiratory signal as an argument and then by using count advance algorithm to detect th...
46.948276
93
0.603011
08748fba427faf63b82ff4727447bd1c03a3b3dd
4,883
py
Python
nova/tests/unit/api/openstack/compute/test_server_reset_state.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_server_reset_state.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_server_reset_state.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright 2015 NEC Corporation. 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 ap...
40.355372
78
0.62093
087499d089b2ab2e01505e090599d0095629141b
361
py
Python
Email Slicing/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Email Slicing/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Email Slicing/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
theName = input("\nWhat\'s your name? ").strip().capitalize() theEmail = input("\nPlease enter your email address --> ").strip() theUserName = theEmail[:theEmail.index('@')] theWebsite = theEmail[theEmail.index('@') + 1:] print(f"\nHello {theName} your email is {theEmail}") print(f"\nYour username is {theUserName} an...
36.1
75
0.698061
0874b8a70a795be9d861da2cbb08ff1037889cd9
1,008
py
Python
alipay/aop/api/response/AlipayDataIotdataTextdifferenceBaiQueryResponse.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/response/AlipayDataIotdataTextdifferenceBaiQueryResponse.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/response/AlipayDataIotdataTextdifferenceBaiQueryResponse.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.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.TextDiff import TextDiff class AlipayDataIotdataTextdifferenceBaiQueryResponse(AlipayResponse): def __init__(self): super(AlipayDataIotdataTextdifference...
30.545455
120
0.65873
0874c80eae441ec363f2c2c0495ba216e3c4cbcb
2,589
py
Python
collections/ansible_collections/ansible/netcommon/plugins/modules/telnet.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/netcommon/plugins/modules/telnet.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/netcommon/plugins/modules/telnet.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
# this is a virtual module that is entirely implemented server side # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: telnet short...
23.324324
92
0.684048
0874f1243e1112602ff9c0c399e5641bf730f454
3,772
py
Python
scripts/plot_model_metrics.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
1
2021-06-18T08:16:01.000Z
2021-06-18T08:16:01.000Z
scripts/plot_model_metrics.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
scripts/plot_model_metrics.py
FragLegs/mrnet
a05eb8902463cbcf88126c616911bd9f69d019df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import logging import os import pandas as pd import seaborn as sns log = logging.getLogger(__name__) def load_data(model): dfs = [] for series in ['axial', 'coronal', 'sagittal']: for diagnosis in ['abnormal', 'acl', 'meniscus']: dfs.append(load_a...
25.146667
79
0.581124
08750c89b3929657d70f1c3d5354c7ef8ef24dea
16,637
py
Python
rest_models/backend/connexion.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
61
2016-12-05T09:09:49.000Z
2022-03-09T13:23:06.000Z
rest_models/backend/connexion.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
51
2016-12-07T10:19:52.000Z
2022-03-11T23:35:23.000Z
rest_models/backend/connexion.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
18
2017-03-11T18:07:17.000Z
2022-03-09T13:14:40.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import collections import itertools import logging import time from urllib.parse import urlparse, urlunparse import requests from django.core.handlers.base import BaseHandler from django.test.client import RequestFactory ...
38.871495
117
0.62355
08752ec81ca3d556f6e911e1e4dbc2f38a4a0227
988
py
Python
tests/main.py
nathanrooy/taxicab
8d473b4b4350d0adeff7c0696c378525d39b131e
[ "MIT" ]
11
2021-04-19T16:55:29.000Z
2022-03-03T10:58:57.000Z
tests/main.py
nathanrooy/taxicab
8d473b4b4350d0adeff7c0696c378525d39b131e
[ "MIT" ]
7
2021-02-21T20:42:28.000Z
2022-01-20T11:54:59.000Z
tests/main.py
nathanrooy/taxicab
8d473b4b4350d0adeff7c0696c378525d39b131e
[ "MIT" ]
2
2021-07-27T12:12:12.000Z
2021-12-15T16:49:50.000Z
import os import unittest import taxicab as tc import osmnx as ox THIS_DIR = os.path.dirname(os.path.abspath(__file__)) NETWORK_PATH = os.path.join(THIS_DIR, 'data/test_graph.osm') # load graph G = ox.load_graphml(NETWORK_PATH) class test_main(unittest.TestCase): def test_short_route(self): orig = (39....
28.228571
60
0.663968
08755426ad7d5d8adfe2413e7ef0263b37c85eff
1,868
py
Python
alipay/aop/api/domain/AlipayDataDataserviceAdPromotepageQueryModel.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/AlipayDataDataserviceAdPromotepageQueryModel.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/AlipayDataDataserviceAdPromotepageQueryModel.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 AlipayDataDataserviceAdPromotepageQueryModel(object): def __init__(self): self._biz_token = None self._principal_id = None self._type = None @property def biz_tok...
26.309859
75
0.583512
08755ade6398ef14b27f4a6c413975875839e0e0
11,334
py
Python
tofu/mag/test_equimap.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
56
2017-07-09T10:29:45.000Z
2022-03-31T02:44:50.000Z
tofu/mag/test_equimap.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
522
2017-07-02T21:06:07.000Z
2022-03-02T08:07:57.000Z
tofu/mag/test_equimap.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
9
2017-07-02T20:38:53.000Z
2021-12-04T00:12:30.000Z
# -*- coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # Also if needed: retab ''' TEST equimap ''' from __future__ import (unicode_literals, absolute_import, \ print_function, division) import matplotlib.pyplot as plt import numpy as np import os import sys if __nam...
37.78
100
0.61417
0875781f55fbd3d5b75caf1bd09d355321f04dde
1,560
py
Python
pyclopedia/p02_ref/p03_objective_oriented/p04_magic_method/p02__setattr__.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p02_ref/p03_objective_oriented/p04_magic_method/p02__setattr__.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p02_ref/p03_objective_oriented/p04_magic_method/p02__setattr__.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ - ``__setattr__(self, attr, value)`` 实现了 x.attr = value 的行为。 """ def example1(): """False example, don't do this. **中文文档** 这是因为在创建t = Tree()的时候, 调用了__init__中的self.data = dict() 于是这个操作又调用了__setattr__(self, data, dict()), 而这时还没有创建 self.data呢所以会提示找...
22.608696
76
0.598718
0875bddad9e3dab0d89f52520dc119126286f35b
13,455
py
Python
cft_code/dnslib/__init__.py
vinayvenkat/pan_aws_docs
a7f88be57ef0b1611147dc5485a6976e245d7415
[ "Apache-2.0" ]
1
2018-06-05T23:47:44.000Z
2018-06-05T23:47:44.000Z
dnslib/__init__.py
nmanzi/PaloAWS
f631892fd48f84ce7c4701e8c68ca6fbba5157fe
[ "BSD-2-Clause" ]
null
null
null
dnslib/__init__.py
nmanzi/PaloAWS
f631892fd48f84ce7c4701e8c68ca6fbba5157fe
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ dnslib ------ A library to encode/decode DNS wire-format packets supporting both Python 2.7 and Python 3.2+. The library provides: * Support for encoding/decoding DNS packets between wire format, python objects, and Zone/DiG textual representation (dnslib.dns) * A server framework...
38.887283
272
0.60877
0875ce4031c2597d74614de78a6a7de620dce5d6
15,642
py
Python
backend/tests/test_fitter/test_transformers.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/tests/test_fitter/test_transformers.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/tests/test_fitter/test_transformers.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
# -*- coding: utf-8 -*- import mock import unittest import datetime from tests.base import BaseTestCaseDB from fitter.aggregation.timelabel import TimeLabel import fitter.aggregation.transformers as transformers from fitter.aggregation import constants from fitter.aggregation.constants import states from operator impo...
38.813896
117
0.602544
08760473d1b91f5b4352aa2ab9b88ed57e7a529e
469
py
Python
pyserver/log.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
1
2015-05-22T14:11:17.000Z
2015-05-22T14:11:17.000Z
pyserver/log.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
2
2021-09-02T20:01:35.000Z
2022-01-26T19:47:35.000Z
pyserver/log.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
null
null
null
from log import elog, mlog, alog from datetime import * from time import time _c = time() def log(file, msg): global _c file.write("%s: %s\n" % (str(datetime.now()), str(msg))) if time() - _c > 0.3: file.flush() _c = time() messages = open("messages.log", "a") errors = open("errors.log", "a") acc...
17.37037
58
0.605544
08760f7159fe002fc562fc6fa7acb601bed34e45
40,975
py
Python
Tools/scons/scons-local/SCons/Tool/tex.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/tex.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/tex.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Tool.tex Tool-specific initialization for TeX. Generates .dvi files from .tex files There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # ...
41.472672
286
0.603002
0876136eb46ef1d30f09dbd0eff572dd1e4a0144
28,812
py
Python
generator.py
jimstorch/DGGen
cdecbc4bfa491a634aac370de05b21bb6f6cf8e1
[ "Apache-2.0" ]
19
2016-12-04T12:43:43.000Z
2022-01-25T01:00:24.000Z
generator.py
jimstorch/DGGen
cdecbc4bfa491a634aac370de05b21bb6f6cf8e1
[ "Apache-2.0" ]
9
2017-01-04T16:33:00.000Z
2021-11-16T06:02:16.000Z
generator.py
jimstorch/DGGen
cdecbc4bfa491a634aac370de05b21bb6f6cf8e1
[ "Apache-2.0" ]
7
2016-12-04T12:43:47.000Z
2022-02-04T13:10:58.000Z
#!/usr/bin/env python3 import argparse import csv import datetime import json import logging import os import sys import warnings from collections import defaultdict from copy import copy from dataclasses import dataclass from itertools import islice, cycle, chain from random import randint, shuffle, choice, sample fro...
34.797101
103
0.530508
087630f95d83a74b1c6c1743d45b621f69b50a3e
8,571
py
Python
AnalysisDAFM/program/src/load_data.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
AnalysisDAFM/program/src/load_data.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
AnalysisDAFM/program/src/load_data.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
import numpy as np import pandas as pd import os, sys from data.load_data import f from Representation.dkt import DKT from Representation.problem2vec import P2V from Qmatrix.qmatrix import Qmatrix from AFM.load_data import load_data from DAFM.load_data import DAFM_data import pdb class afm_data_generator():...
53.90566
285
0.645316
08764fa0297c4ee507eb9337f57cf2a355bacc92
7,099
py
Python
chapter06/03_WindyGridWorld_Benchmark_alpha.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
1
2022-03-01T11:48:55.000Z
2022-03-01T11:48:55.000Z
chapter06/03_WindyGridWorld_Benchmark_alpha.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
chapter06/03_WindyGridWorld_Benchmark_alpha.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
''' 03_WindyGridWorld_Benchmark_alpha.py : replication of Figure 6.3 with Windy Grid World example Cem Karaoguz, 2020 MIT License ''' import numpy as np import pylab as pl from IRL.environments.Gridworlds import StochasticGridWorld from IRL.agents.TemporalDifferenceLearning import SARSA, QLearning, ExpectedSARSA, Do...
40.335227
256
0.678546
0876958ab4e0a0db556f44dbf29b620b2dd9a05e
4,220
py
Python
pdosd/pdosd.py
pdos-team/pdos
7c96e36b4545d103cc56176197ec590fe2691344
[ "MIT" ]
null
null
null
pdosd/pdosd.py
pdos-team/pdos
7c96e36b4545d103cc56176197ec590fe2691344
[ "MIT" ]
null
null
null
pdosd/pdosd.py
pdos-team/pdos
7c96e36b4545d103cc56176197ec590fe2691344
[ "MIT" ]
1
2020-03-15T14:31:13.000Z
2020-03-15T14:31:13.000Z
import argparse import concurrent.futures import grpc import proto.pdosd_pb2_grpc as pdosd_grpc import time from solidity.primitives import ORContractsInterface from pdosd.listener import Listener from pdosd.trigger import Trigger from pdosd.servicer import Servicer from utils.log import log # to open wallet files ...
28.707483
109
0.612085
0876a017b63734796865ab701e25212cb3d11d46
3,048
py
Python
qt/add_domain.py
MarvinCS/DNS_Sniffer
aa40dde0f1e4d10588bb94e117e2d5c4376970a2
[ "MIT" ]
6
2018-09-18T17:54:55.000Z
2020-04-11T22:46:30.000Z
qt/add_domain.py
MarvinCS/DNS_Sniffer
aa40dde0f1e4d10588bb94e117e2d5c4376970a2
[ "MIT" ]
null
null
null
qt/add_domain.py
MarvinCS/DNS_Sniffer
aa40dde0f1e4d10588bb94e117e2d5c4376970a2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'add_domain.ui' # # Created by: PyQt5 UI code generator 5.11.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtWidgets from config import Config class Add_domain(object): def setupUi(self, Dialog): ...
44.173913
78
0.710302
0876adfcf929551b02c0f09f0f1f686d7b5e7d03
7,084
py
Python
docs/source/conf.py
gjdv/autoimpute
aa418102d3b64fc7e0c0dafa6839746f0b9a6545
[ "MIT" ]
1
2020-01-19T16:18:32.000Z
2020-01-19T16:18:32.000Z
docs/source/conf.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
null
null
null
docs/source/conf.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
null
null
null
# pylint:disable=missing-docstring # pylint:disable=redefined-builtin # pylint:disable=too-few-public-methods # -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www...
29.032787
79
0.654291
0876b3dd49d8c1e8385d6c7fb2b937437e980d4c
1,507
py
Python
Leetcode/medium/all-paths-from-source-to-target.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/all-paths-from-source-to-target.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/all-paths-from-source-to-target.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # ALL PATHS FROM SOURCE TO TARGET Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1, and return them in any order. The graph is given as follows: graph[i] is a list of all nodes you can visit from node i (i.e., there is a directed edge from...
25.116667
154
0.565362
0876d3b54a049ea8efb10a6716a2b5ddf909e89b
27,302
py
Python
core/_spacy.py
venkatrajun/qlikds
2833c0d611f22da79f1008f2333da97dcd5da5ad
[ "MIT" ]
null
null
null
core/_spacy.py
venkatrajun/qlikds
2833c0d611f22da79f1008f2333da97dcd5da5ad
[ "MIT" ]
null
null
null
core/_spacy.py
venkatrajun/qlikds
2833c0d611f22da79f1008f2333da97dcd5da5ad
[ "MIT" ]
null
null
null
import os import re import sys import time import string import pathlib import random import warnings import numpy as np import pandas as pd # Suppress warnings if not sys.warnoptions: warnings.simplefilter("ignore") import spacy from spacy.util import minibatch, compounding, decaying from spacy.gold import GoldP...
42.132716
145
0.580434
0877197cb1b1d61edc6fa29305bc148f6d4f82e2
231
py
Python
wordlist/blueprints/api/__init__.py
robsonpiere/word-list
4bf5be40042daa5d1b7d59a2c1da67af9349ec9e
[ "MIT" ]
null
null
null
wordlist/blueprints/api/__init__.py
robsonpiere/word-list
4bf5be40042daa5d1b7d59a2c1da67af9349ec9e
[ "MIT" ]
3
2020-10-25T12:26:57.000Z
2020-10-26T00:04:53.000Z
wordlist/blueprints/api/__init__.py
robsonpiere/word-list
4bf5be40042daa5d1b7d59a2c1da67af9349ec9e
[ "MIT" ]
null
null
null
from flask import Blueprint from . import home, vocabulary, historic api_blueprint = Blueprint('api', __name__) home.register_route(api_blueprint) vocabulary.register_route(api_blueprint) historic.register_route(api_blueprint)
21
42
0.831169
087763a21fcbe9bf92da86306a50486b73735098
1,281
py
Python
y2020/d08.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
3
2020-12-05T17:43:51.000Z
2020-12-06T10:37:29.000Z
y2020/d08.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
null
null
null
y2020/d08.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
null
null
null
from aoc_input import get_input import aoc_helpers as ah DAY = 8 YEAR = 2020 def simulate(instructions): acc = 0 instrcptr = 0 run_already = [False for _ in instructions] while instrcptr < len(instructions): if run_already[instrcptr]: return (False, acc) run_already[instrcptr] = True instrc, arg = instru...
22.875
62
0.62139
0877775fbd5d69eaa064e276129328b040b0e38a
1,334
py
Python
worktable/backtest2.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
5
2020-09-13T05:07:38.000Z
2020-12-26T15:10:00.000Z
worktable/backtest2.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
null
null
null
worktable/backtest2.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
2
2020-06-03T06:40:31.000Z
2020-06-12T14:55:17.000Z
from datetime import datetime from vnpy.app.cta_strategy.backtesting import BacktestingEngine from vnpy.trader.constant import Interval from vnpy_pro.config import load_futures from vnpy_pro.data.tdx.tdx_common import get_future_contracts from worktable.strategies_storage.num6_epiboly.num2_wang.turtle_strategy impor...
27.22449
94
0.785607
08777b370204d8ba47faf2639265ade0ffd4eba9
2,345
py
Python
doc/ext/include_vars.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
doc/ext/include_vars.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
doc/ext/include_vars.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2015-02-07T09:44:47.000Z
2015-02-07T09:44:47.000Z
# Copyright 2017: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
40.431034
78
0.659275
0877889fea9ab280ea28fb4ba84140596e2ba14e
3,488
py
Python
movies_recommender/item_similiarity/main.py
nicolasmota/movies-recommender
ab6ffeaeed2e341cc6298ceffeae037056ba9ed0
[ "MIT" ]
2
2018-03-02T14:50:01.000Z
2018-03-06T17:17:27.000Z
movies_recommender/item_similiarity/main.py
nicolasmota/movies-recommender
ab6ffeaeed2e341cc6298ceffeae037056ba9ed0
[ "MIT" ]
4
2018-03-02T17:38:02.000Z
2018-10-26T04:56:07.000Z
movies_recommender/item_similiarity/main.py
nicolasmota/movies-recommender
ab6ffeaeed2e341cc6298ceffeae037056ba9ed0
[ "MIT" ]
1
2018-03-02T14:47:45.000Z
2018-03-02T14:47:45.000Z
import argparse import json import numpy as np import pandas as pd from sklearn.metrics import pairwise_distances class MoviesRecommender: def __init__(self, data_path): self.data_file = self._get_data_file(data_path) def _get_data_file(self, data_path): """ Return a json object containing ...
31.142857
79
0.615539
0877a0504e50fa05bf97d0479ed5ef0e65ca6a44
177
py
Python
Chapter_10/educa/educa/settings/local.py
codingEzio/code_py_book_django2_by_example
d215d0c87a557685824286822186966b06fa8d59
[ "Unlicense" ]
1
2021-04-23T16:35:45.000Z
2021-04-23T16:35:45.000Z
Chapter_10/educa/educa/settings/local.py
codingEzio/code_py_book_django2_by_example
d215d0c87a557685824286822186966b06fa8d59
[ "Unlicense" ]
null
null
null
Chapter_10/educa/educa/settings/local.py
codingEzio/code_py_book_django2_by_example
d215d0c87a557685824286822186966b06fa8d59
[ "Unlicense" ]
null
null
null
from .base import * DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME' : os.path.join(BASE_DIR, 'db.sqlite3'), } }
17.7
55
0.559322
0877a26fe8b15f7a1ffe451461a13c94c204ebf4
8,178
py
Python
0900-hp/hplip-3.21.12/probe.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/probe.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/probe.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # (c) Copyright 2003-2015 HP Development Company, L.P. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (a...
37.342466
165
0.520543
0877b2a8a2fc7d59c4075c7d37c52ab691ec0361
8,792
py
Python
tensorflow/python/training/training_util.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/training/training_util.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/training/training_util.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.888889
80
0.732825
0877c3d3f547e3ec1b71d307f83cec749a13f3b0
238
py
Python
API_EXAMPLE/api_example/languages/urls.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
API_EXAMPLE/api_example/languages/urls.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
27
2020-06-05T23:26:44.000Z
2022-02-10T11:21:31.000Z
API_EXAMPLE/api_example/languages/urls.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
from django.urls import path, include from rest_framework import routers from languages import views router = routers.DefaultRouter() router.register('languages', views.LanguageView) urlpatterns = [ path('', include(router.urls)) ]
23.8
48
0.773109