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
1a19f81e76fc13024d3258fe494f3653d602ba23
1,950
py
Python
zerver/views/webhooks/bitbucket.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/views/webhooks/bitbucket.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/views/webhooks/bitbucket.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from six import text_type from typing import Any, Mapping from django.http import HttpRequest, HttpResponse from zerver.models import get_client, UserProfile from zerver.lib.actions import check_send_message from zerver.lib.response import json_success from zerver.lib.validator...
39
96
0.668205
1a1a08e9ea19c565905807e4cdc09003400a81c6
873
py
Python
lucena/client.py
lucenaproject/lucena2
48660adb57ed3aa030bd9376852af1ac24b1f7ca
[ "MIT" ]
null
null
null
lucena/client.py
lucenaproject/lucena2
48660adb57ed3aa030bd9376852af1ac24b1f7ca
[ "MIT" ]
null
null
null
lucena/client.py
lucenaproject/lucena2
48660adb57ed3aa030bd9376852af1ac24b1f7ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import zmq from lucena.exceptions import IOTimeout from lucena.io2.socket import Socket class RemoteClient(object): def __init__(self, default_timeout=None): self.default_timeout = default_timeout self.socket = Socket(zmq.Context.instance(), zmq.REQ) self.socket.s...
28.16129
65
0.649485
1a1a212387ef79e16519a707f409755e7848dbae
9,013
py
Python
codes/projects/screened_poisson_linear_2d/utils_project/filepaths_project.py
hwangoh/uq-vae
382548e6f6dd7f9d72feff0e0752beec871db348
[ "MIT" ]
2
2021-07-28T16:47:18.000Z
2021-08-03T00:53:58.000Z
codes/projects/screened_poisson_linear_2d/utils_project/filepaths_project.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
null
null
null
codes/projects/screened_poisson_linear_2d/utils_project/filepaths_project.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
2
2021-09-29T08:31:46.000Z
2021-11-07T10:26:45.000Z
'''Constructs filepaths for saving and loading project specific objects This class contains the strings associated to project specific objects. The majority of these strings are associated with loading the required objects. However, this code also constructs the string case_name which identifies the outputs of trainin...
47.436842
98
0.56474
1a1a48c6c2a28697bf0d0351926b3a252f7cb685
210
py
Python
lib/model/roi_layers/nms.py
wyg1997/Pictures_Tamper_Detection
abcf2495abd6631ef2865a5f8fe43d31c9bb6fdb
[ "MIT" ]
1
2020-03-06T09:16:35.000Z
2020-03-06T09:16:35.000Z
lib/model/roi_layers/nms.py
wyg1997/Pictures_Tamper_Detection
abcf2495abd6631ef2865a5f8fe43d31c9bb6fdb
[ "MIT" ]
null
null
null
lib/model/roi_layers/nms.py
wyg1997/Pictures_Tamper_Detection
abcf2495abd6631ef2865a5f8fe43d31c9bb6fdb
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # from ._utils import _C from model import _C nms = _C.nms # nms.__doc__ = """ # This function performs Non-maximum suppresion"""
26.25
72
0.7
1a1a4d77cfcd042cd26eb44ae9243f83f564901f
33,341
py
Python
code/translator/hot/translate_node_templates.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/translator/hot/translate_node_templates.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/translator/hot/translate_node_templates.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
45.300272
78
0.552563
1a1a63861106b66a8bf5eb2e3052f1e76a7cc22b
1,144
py
Python
src/challenges/ChainDecorators.py
DakotaOberon/coding-practice
fb61fd64636c9c7977191883d4212228ac72ebf3
[ "MIT" ]
null
null
null
src/challenges/ChainDecorators.py
DakotaOberon/coding-practice
fb61fd64636c9c7977191883d4212228ac72ebf3
[ "MIT" ]
null
null
null
src/challenges/ChainDecorators.py
DakotaOberon/coding-practice
fb61fd64636c9c7977191883d4212228ac72ebf3
[ "MIT" ]
null
null
null
import inspect from src.Challenge import Challenge class ChainDecorators(Challenge): def __init__(self): super(ChainDecorators, self).__init__() self.challenge = 'Chain multiple decorators together' def code(self): starting_string = 'Middle' print('starting_string =', startin...
27.238095
120
0.686189
1a1a68b1021632c55713f499d56388952eeacc6d
5,293
py
Python
tests/test_model_export/test_model_export.py
cangirolave/loglan_db
62508356e31624bc36c833cc12c3feaf64ff9767
[ "MIT" ]
null
null
null
tests/test_model_export/test_model_export.py
cangirolave/loglan_db
62508356e31624bc36c833cc12c3feaf64ff9767
[ "MIT" ]
4
2021-10-01T09:38:13.000Z
2021-10-22T04:20:58.000Z
tests/test_model_export/test_model_export.py
cangirolave/loglan_db
62508356e31624bc36c833cc12c3feaf64ff9767
[ "MIT" ]
3
2021-10-01T09:41:07.000Z
2021-10-10T23:26:47.000Z
# -*- coding: utf-8 -*- # pylint: disable=R0201, R0903 """Export Model unit tests.""" import pytest from loglan_db.model_export import ExportAuthor as Author, ExportEvent as Event, \ ExportSyllable as Syllable, ExportSetting as Setting, ExportType as Type, \ ExportWord as Word, ExportDefinition as Definition...
30.073864
84
0.627621
1a1a71a7015691999c2444188531e42e42a5df50
34,881
py
Python
ibis/expr/analysis.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-08-04T08:29:44.000Z
2020-08-04T08:29:44.000Z
ibis/expr/analysis.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-10-02T23:51:48.000Z
2020-10-03T00:54:29.000Z
ibis/expr/analysis.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-10-01T18:48:01.000Z
2020-10-01T18:48:01.000Z
import operator import toolz import ibis.expr.lineage as lin import ibis.expr.operations as ops import ibis.expr.types as ir from ibis import util from ibis.common.exceptions import ( ExpressionError, IbisTypeError, RelationError, ) from ibis.expr.schema import HasSchema from ibis.expr.window import windo...
30.173875
79
0.583297
1a1a863f7f469833e2e788edf6e80a0c0550e2e7
23
py
Python
drivetestbed/__init__.py
charlieevett/drivetestbed
ad410c569cf0a6f6c769f1f39491011ed7b92503
[ "MIT" ]
null
null
null
drivetestbed/__init__.py
charlieevett/drivetestbed
ad410c569cf0a6f6c769f1f39491011ed7b92503
[ "MIT" ]
1
2015-03-27T20:32:51.000Z
2015-03-27T20:32:51.000Z
drivetestbed/__init__.py
charlieevett/drivetestbed
ad410c569cf0a6f6c769f1f39491011ed7b92503
[ "MIT" ]
null
null
null
__author__ = 'charlie'
11.5
22
0.73913
1a1a8eb40e411f7f219fb2bd8fd06fe17edd6607
4,094
py
Python
zerver/tests/webhooks/test_librato.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/tests/webhooks/test_librato.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/tests/webhooks/test_librato.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from six import text_type from six.moves import urllib from typing import Optional from zerver.lib.test_classes import WebhookTestCase class LibratoHookTests(WebhookTestCase): STREAM_NAME = 'librato' URL_TEMPLATE = u"/api/v1/external/librato?api_key={api_key}&stream=librato" FIXTURE...
69.389831
453
0.722765
1a1aafc72d8b3060f16b3b798616c0c9d2e81620
16,802
py
Python
data_profiler/tests/profilers/test_int_column_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
1
2021-02-13T21:53:16.000Z
2021-02-13T21:53:16.000Z
data_profiler/tests/profilers/test_int_column_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
data_profiler/tests/profilers/test_int_column_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
import os import unittest from unittest import mock from collections import defaultdict import pandas as pd import numpy as np from data_profiler.profilers import IntColumn from data_profiler.profilers.profiler_options import IntOptions test_root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) ...
36.289417
97
0.569039
1a1acc94ccfed85663cc61b523c665b89e3d5a59
25,699
py
Python
indra/tests/test_trips_ekbs.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_trips_ekbs.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_trips_ekbs.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import re import os from indra.statements import * from indra.sources import trips path_this = os.path.dirname(os.path.abspath(__file__)) def assert_if_hgnc_then_up(st): agents = st.agent_list() for a in a...
28.459579
78
0.685241
1a1ad4131fce80c3686476289fa4c8a5f83a96f4
2,545
py
Python
integrations/tensorflow/e2e/dynamic_mlp_test.py
EmperorYP7/iree
fffa1f3e33bc1031c790583166ce82c91dd8b3e7
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/dynamic_mlp_test.py
EmperorYP7/iree
fffa1f3e33bc1031c790583166ce82c91dd8b3e7
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/dynamic_mlp_test.py
EmperorYP7/iree
fffa1f3e33bc1031c790583166ce82c91dd8b3e7
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.628205
78
0.695481
1a1b09b929a8b38df8e24139fdc113d47676401c
627
py
Python
workon/forms/text.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/forms/text.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/forms/text.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
from django.conf import settings from django.utils.safestring import mark_safe from django.forms.utils import flatatt from .html import HtmlInput, HtmlField class TextField(HtmlField): def __init__(self, *args, **kwargs): super(TextField, self).__init__(*args, **kwargs) class TextInput(HtmlInput): d...
31.35
71
0.69378
1a1b16886906a9f475d4721af9edfdadbeea7c3d
42,051
py
Python
lib_vos/tools/vos_test.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:20.000Z
2021-05-21T10:10:27.000Z
lib_vos/tools/vos_test.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
null
null
null
lib_vos/tools/vos_test.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:22.000Z
2022-02-20T16:07:37.000Z
# Written by Roy Tseng # # Based on: # -------------------------------------------------------- # Copyright (c) 2017-present, Facebook, 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 # ...
37.680108
107
0.647595
1a1b32adedc6fcad9ab530581ff2d0d0ece458df
234
py
Python
components/server/src/external/routes/server.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/server/src/external/routes/server.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/server/src/external/routes/server.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Server info.""" import bottle QUALITY_TIME_VERSION = "3.31.0-rc.1" @bottle.get("/api/v3/server", authentication_required=False) def get_server(): """Return the server info.""" return dict(version=QUALITY_TIME_VERSION)
18
60
0.709402
1a1b3e08eb8797e332213f81e398b68b512be0af
116,117
py
Python
lib/XChemDB.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
10
2016-01-10T16:12:45.000Z
2021-11-23T11:33:20.000Z
lib/XChemDB.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
6
2017-04-07T16:27:27.000Z
2021-05-20T16:41:02.000Z
lib/XChemDB.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
8
2016-10-28T14:40:44.000Z
2021-01-15T10:34:30.000Z
# last edited: 21/07/2017, 15:00 import sqlite3 import os,sys,glob import csv from datetime import datetime import getpass sys.path.append(os.getenv('XChemExplorer_DIR')+'/lib') #from XChemUtils import parse import XChemLog class data_source: def __init__(self,data_source_file): self.data_source_file=...
59.547179
251
0.478655
1a1b72aba7c4678d6f766b862f69edc8a5a6299e
4,512
py
Python
tql/utils/decorator/decorator.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/utils/decorator/decorator.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/utils/decorator/decorator.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
# -*- coding: utf-8 -*- """ __title__ = 'Singleton' __author__ = 'JieYuan' __mtime__ = '2018/7/28' """ import functools import inspect import time from collections import Iterable import numpy as np import wrapt from tqdm import tqdm """定义装饰器""" @wrapt.decorator def pass_through(wrapped, instance, args, kwargs): ...
27.017964
95
0.532801
1a1b8498fd59bad38f7ce266b90240a859e64ea2
4,722
py
Python
zerver/tests/test_slack_message_conversion.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_slack_message_conversion.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_slack_message_conversion.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from zerver.lib.slack_message_conversion import ( convert_to_zulip_markdown, get_user_full_name ) from zerver.lib.test_classes import ( ZulipTestCase, ) from zerver.lib.test_runner import slow from zerver.lib import mdiff import ujson import os from...
44.54717
115
0.614358
1a1b8b56eb4f09f21514b12ae473c136f768bf0b
3,632
py
Python
toontown/safezone/DistributedSZTreasure.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/safezone/DistributedSZTreasure.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/safezone/DistributedSZTreasure.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from panda3d.core import VBase3, VBase4 from direct.interval.IntervalGlobal import Sequence, Wait, Func, LerpColorScaleInterval, LerpScaleInterval from toontown.safezone import DistributedTreasure from toontown.toonbase import ToontownGlobals class DistributedSZTreasure(DistributedTreasure.DistributedTreasure): d...
43.238095
156
0.685297
1a1b9cb9fdeba19ececa19726221d71a7bbd54f6
2,049
py
Python
tests/test_iqm_backend.py
iqm-finland/qiskit-on-iqm
d3f8cbe069c8380baecd898ce8687f7106a138d6
[ "Apache-2.0" ]
4
2022-03-07T09:39:10.000Z
2022-03-11T19:10:14.000Z
tests/test_iqm_backend.py
iqm-finland/qiskit-on-iqm
d3f8cbe069c8380baecd898ce8687f7106a138d6
[ "Apache-2.0" ]
null
null
null
tests/test_iqm_backend.py
iqm-finland/qiskit-on-iqm
d3f8cbe069c8380baecd898ce8687f7106a138d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Qiskit on IQM developers # # 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...
29.695652
89
0.734993
1a1be76027db118566347f76b6022120f846d86e
348
py
Python
bflib/items/magical/misc/base.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/items/magical/misc/base.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/items/magical/misc/base.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib import units from bflib.items import coins, listing from bflib.items.jewelry.base import Jewelry from bflib.items.magical.base import MagicItem from bflib.sizes import Size @listing.register_type class MiscMagical(Jewelry, MagicItem): name = "Misc Magical" price = coins.Gold size = Size.Small ...
23.2
46
0.761494
1a1bfb69da780e3c0f15da1a1c5f38d80d73506e
6,257
py
Python
salt/modules/network.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/modules/network.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/modules/network.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Module for gathering and managing network information ''' # Import python libs import re import logging # Import salt libs import salt.utils log = logging.getLogger(__name__) def __virtual__(): ''' Only work on POSIX-like systems ''' # Disable on Windows, a specific file module exists: if ...
23.881679
90
0.537957
1a1c17ff282fc0cbd5495dc887939859d16b6e89
7,976
py
Python
troposphere/apigatewayv2.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
1
2021-01-11T22:01:37.000Z
2021-01-11T22:01:37.000Z
troposphere/apigatewayv2.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
troposphere/apigatewayv2.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
3
2020-01-13T04:52:01.000Z
2021-09-29T00:05:19.000Z
from . import AWSObject, AWSProperty from .validators import ( boolean, double, integer_range, json_checker, positive_integer ) def validate_integration_type(integration_type): valid_integration_types = [ "AWS", "AWS_PROXY", "HTTP", "HTTP_PROXY", "MOCK" ] if in...
29.109489
79
0.634779
1a1c1b66d7e90f1934ae4aef538f808e46760565
4,592
py
Python
setup.py
radiocutfm/weektimetable
c0f5ec337501df7bbdb4634e15b504aa11752042
[ "MIT" ]
null
null
null
setup.py
radiocutfm/weektimetable
c0f5ec337501df7bbdb4634e15b504aa11752042
[ "MIT" ]
null
null
null
setup.py
radiocutfm/weektimetable
c0f5ec337501df7bbdb4634e15b504aa11752042
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages import os import re import ast from os import path # io.open is needed fo...
39.247863
97
0.673345
1a1c2c6a1a93697e162b54dd4b385df466e97872
3,380
py
Python
src/data/AppearanceDataset.py
alrivero/pixel-nerf
c054befe189602627f021cda8376adc5940c8668
[ "BSD-2-Clause" ]
null
null
null
src/data/AppearanceDataset.py
alrivero/pixel-nerf
c054befe189602627f021cda8376adc5940c8668
[ "BSD-2-Clause" ]
null
null
null
src/data/AppearanceDataset.py
alrivero/pixel-nerf
c054befe189602627f021cda8376adc5940c8668
[ "BSD-2-Clause" ]
null
null
null
import os import torch import torch.nn.functional as F import glob import imageio import random from util import get_image_to_tensor_balanced class AppearanceDataset(torch.utils.data.Dataset): """ Dataset consisting of images of a scene taken at different angles Meant to be used with appearance encoder ...
31.296296
96
0.573964
1a1c323791da3232c47eb2ee8c4d685c47efdb30
1,158
py
Python
porcupine/plugins/tabs2spaces.py
Akuli/editor
cf98c538e75a07d825f9066e25a3752fdf7c3c29
[ "MIT" ]
65
2017-05-23T00:23:07.000Z
2022-03-17T21:07:12.000Z
porcupine/plugins/tabs2spaces.py
Akuli/editor
cf98c538e75a07d825f9066e25a3752fdf7c3c29
[ "MIT" ]
689
2017-03-17T15:42:04.000Z
2022-03-29T19:43:40.000Z
porcupine/plugins/tabs2spaces.py
Akuli/editor
cf98c538e75a07d825f9066e25a3752fdf7c3c29
[ "MIT" ]
28
2017-03-13T19:41:34.000Z
2022-01-29T00:47:29.000Z
"""If configuration says so, insert spaces when the tab key is pressed.""" # This plugin binds Tab and Shift-Tab, and always returns 'break'. # If you are writing a plugin that binds Tab or Shift-Tab too, it # **must** be set up before this plugin. For example: # # setup_before = ['tabs2spaces'] # # As a side note, ...
32.166667
85
0.708981
1a1c5f0b8640f08de4a2e8bea6439459942db764
1,118
py
Python
src/main/python/receiver_udp.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
null
null
null
src/main/python/receiver_udp.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
1
2021-07-27T18:27:42.000Z
2021-07-27T18:27:42.000Z
src/main/python/receiver_udp.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division import cv2 import numpy as np import socket import struct MAX_DGRAM = 2**16 def dump_buffer(s): """ Emptying buffer frame """ while True: seg, addr = s.recvfrom(MAX_DGRAM) print(seg[0]) if struct.unpack("B", seg[0:1])[0] == 1: ...
23.291667
69
0.548301
1a1cb0527f7c864df1149bdd463b55318b75da2f
397,530
py
Python
test/test_torch.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/test_torch.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
test/test_torch.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# -*- coding: utf-8 -*- # Owner(s): ["module: tests"] import torch import torch.utils.data import numpy as np import contextlib import gc import io import inspect import itertools import math import random import re import copy import os import tempfile import unittest import warnings import types import pickle impor...
45.374957
132
0.569726
1a1cba80b20d230386ae2990273f62064be157c3
460
py
Python
restclients_core/test.py
uw-it-aca/uw-restclients-core
9a99f52b7e869070c6e954438ea372064c2d8cc9
[ "Apache-2.0" ]
null
null
null
restclients_core/test.py
uw-it-aca/uw-restclients-core
9a99f52b7e869070c6e954438ea372064c2d8cc9
[ "Apache-2.0" ]
90
2017-02-27T17:10:36.000Z
2021-09-30T23:45:23.000Z
restclients_core/test.py
uw-it-aca/uw-restclients-core
9a99f52b7e869070c6e954438ea372064c2d8cc9
[ "Apache-2.0" ]
1
2018-10-01T21:05:54.000Z
2018-10-01T21:05:54.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 # This is just a test runner for coverage from commonconf.backends import use_configparser_backend from os.path import abspath, dirname import os if __name__ == '__main__': path = abspath(os.path.join(dirname(__file__), ...
30.666667
59
0.68913
1a1cd199506d3084e61ae0f39a58808d5cfbe7d4
11,614
py
Python
ibm_botocore/compat.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
null
null
null
ibm_botocore/compat.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
null
null
null
ibm_botocore/compat.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
1
2020-07-30T09:21:09.000Z
2020-07-30T09:21:09.000Z
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
33.373563
79
0.666609
1a1cdc16f49a18bc34b845b7aedd26381c52d987
3,800
py
Python
tests/components/dynalite/test_config_flow.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/dynalite/test_config_flow.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/dynalite/test_config_flow.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Test Dynalite config flow.""" from asynctest import CoroutineMock, patch import pytest from homeassistant import config_entries from homeassistant.components import dynalite from tests.common import MockConfigEntry @pytest.mark.parametrize( "first_con, second_con,exp_type, exp_result, exp_reason", [ ...
35.514019
83
0.657105
1a1ce401535da06a240b730c810b148b310e3dfc
7,029
py
Python
datawinners/submission/submission_utils.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/submission/submission_utils.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/submission/submission_utils.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from django.utils import translation from datawinners.messageprovider.handlers import data_sender_not_linked_handler, data_sender_not_registered_handler from mangrove.contrib.registration import GLOBAL_REGISTRATION_FORM_CODE from mangrove.errors.MangroveException import SMSParserWrongNumberOfAnswersException, NumberNo...
45.941176
125
0.745341
1a1d1bac6f6c56dd72fad1fc8eacf666005e2079
224
py
Python
tests/test_export.py
bfontaine/ctrie
a195441d9df4c3a4f257ef0b4d5a1f9f2913adef
[ "MIT" ]
3
2015-04-09T14:00:08.000Z
2020-12-13T03:26:32.000Z
tests/test_export.py
bfontaine/ctrie
a195441d9df4c3a4f257ef0b4d5a1f9f2913adef
[ "MIT" ]
3
2021-03-30T06:44:31.000Z
2021-08-24T08:51:42.000Z
tests/test_export.py
bfontaine/ctrie
a195441d9df4c3a4f257ef0b4d5a1f9f2913adef
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import platform if platform.python_version() < '2.7': import unittest2 as unittest else: import unittest import ctrie from ctrie import CTrie class TestExport(unittest.TestCase): pass
14.933333
37
0.709821
1a1d6c88f620d9e8e962cc04b2320d9c14878895
6,576
py
Python
avalon/photoshop/lib.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
null
null
null
avalon/photoshop/lib.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
null
null
null
avalon/photoshop/lib.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
null
null
null
import os import sys import contextlib import subprocess import queue import importlib import logging import functools import time import traceback from wsrpc_aiohttp import ( WebSocketRoute, WebSocketAsync ) from ..vendor.Qt import QtWidgets from openpype.tools import workfiles from avalon.tools.webserver.a...
27.514644
77
0.669556
1a1d878d146c9c02b14d409db42bf77ee877a33c
874
py
Python
tests/screens/landing.py
ty-hob/Py-TestUI
08fa460deafd15f970f39edce1c5060f581449bc
[ "Apache-2.0" ]
3
2020-07-10T06:50:49.000Z
2022-02-18T02:14:09.000Z
tests/screens/landing.py
ty-hob/Py-TestUI
08fa460deafd15f970f39edce1c5060f581449bc
[ "Apache-2.0" ]
13
2021-02-26T07:49:36.000Z
2022-03-29T11:32:19.000Z
tests/screens/landing.py
ty-hob/Py-TestUI
08fa460deafd15f970f39edce1c5060f581449bc
[ "Apache-2.0" ]
3
2021-03-23T18:38:21.000Z
2021-09-16T14:57:57.000Z
from testui.elements.testui_collection import ee from testui.elements.testui_element import e class LandingScreen(object): # Page Element Definitions def __init__(self, driver): self.__log_in_button = e(driver, "name", "btnK") self.__log_in_button_2 = e(driver, "xpath", "//button[@class='Tg7L...
38
88
0.709382
1a1d9af8881142e6bc06da01928e3c51b5100c29
3,048
py
Python
users/views.py
jbuisine/django-recipes
4746bcf57d884b3dbc839391f3fb58932b72fa5f
[ "MIT" ]
null
null
null
users/views.py
jbuisine/django-recipes
4746bcf57d884b3dbc839391f3fb58932b72fa5f
[ "MIT" ]
null
null
null
users/views.py
jbuisine/django-recipes
4746bcf57d884b3dbc839391f3fb58932b72fa5f
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import update_session_auth_hash from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth.models import User from django.core.paginator import Paginator from django.http import ...
32.774194
96
0.715551
1a1dcf8666f3b7405070d7e192c2590504758c0d
4,295
py
Python
src/qecsim/models/generic/_simpleerrormodel.py
MikeVasmer/qecsim
24d6b8a320b292461b66b68fe4fba40c9ddc2257
[ "BSD-3-Clause" ]
35
2021-02-08T08:32:54.000Z
2022-03-22T05:35:06.000Z
src/qecsim/models/generic/_simpleerrormodel.py
MikeVasmer/qecsim
24d6b8a320b292461b66b68fe4fba40c9ddc2257
[ "BSD-3-Clause" ]
2
2021-08-05T06:10:35.000Z
2021-08-20T12:44:10.000Z
src/qecsim/models/generic/_simpleerrormodel.py
MikeVasmer/qecsim
24d6b8a320b292461b66b68fe4fba40c9ddc2257
[ "BSD-3-Clause" ]
7
2021-02-11T17:32:47.000Z
2021-11-30T12:34:41.000Z
import abc import functools import numpy as np from qecsim import paulitools as pt from qecsim.model import ErrorModel, cli_description class SimpleErrorModel(ErrorModel): """ Implements a simple IID error model that generates an error based on the number of qubits and the probability distribution. ...
27.012579
120
0.616997
1a1df310845a07f59cf02070c9a2328325ceec32
6,239
py
Python
genomics/aistats2019_ij_paper/saving_gmm_utils.py
rgiordan/AISTATS2019SwissArmyIJ
1a74a8890f1e1889faa966f24f041f6ffddf3437
[ "Apache-2.0" ]
6
2019-06-13T01:21:15.000Z
2020-12-03T20:20:47.000Z
genomics/aistats2019_ij_paper/saving_gmm_utils.py
rgiordan/AISTATS2019SwissArmyIJ
1a74a8890f1e1889faa966f24f041f6ffddf3437
[ "Apache-2.0" ]
null
null
null
genomics/aistats2019_ij_paper/saving_gmm_utils.py
rgiordan/AISTATS2019SwissArmyIJ
1a74a8890f1e1889faa966f24f041f6ffddf3437
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy as sp from scipy import sparse from datetime import datetime import json import json_tricks import paragami from . import regression_lib as reg_lib from . import regression_mixture_lib as rm_lib from . import sensitivity_lib as sens_lib def coo_matrix_to_json(sp_mat): if not sp....
35.050562
75
0.674627
1a1e3a9c70172c311e895846bb95a75fefd2c676
17,039
py
Python
lib/adafruit_display_text/label.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
lib/adafruit_display_text/label.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
lib/adafruit_display_text/label.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Scott Shawcroft for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_display_text.label` ==================================================== Displays text labels using CircuitPython's displayio. * Author(s): Scott Shawcroft Implementation Notes -------------------- ...
36.880952
96
0.596866
1a1e44208dc45765628e9965afbac2e37c3a3d97
5,951
py
Python
alipay/aop/api/domain/AlipayCommerceEducateTrainRecommendQueryModel.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/AlipayCommerceEducateTrainRecommendQueryModel.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/AlipayCommerceEducateTrainRecommendQueryModel.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 * from alipay.aop.api.domain.EduTrainExtInfo import EduTrainExtInfo from alipay.aop.api.domain.EduTrainExtInfo import EduTrainExtInfo class AlipayCommerceEducateTrainRecommendQueryModel(object): def __in...
32.342391
83
0.605444
1a1e9f24cc67db81b51c43c367009b3ef98c85f8
2,308
py
Python
larch/xrf/xrf_bgr.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/xrf/xrf_bgr.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/xrf/xrf_bgr.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
""" Methods for fitting background in energy dispersive xray spectra """ import numpy as np from .mca import isLarchMCAGroup def xrf_background(energy, counts=None, group=None, width=None, exponent=2, **kws): """fit background for XRF spectra. xrf_background(energy, counts=None, group=None, exponent=2) ...
33.449275
83
0.612218
1a1eca11e0dc83cab115662331aecd2bc3a3b24a
1,655
py
Python
chaospy/distributions/collection/alpha.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
chaospy/distributions/collection/alpha.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
chaospy/distributions/collection/alpha.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
"""Alpha probability distribution.""" import numpy from scipy import special from ..baseclass import Dist from ..operators.addition import Add class alpha(Dist): """Standard Alpha distribution.""" def __init__(self, a=1): Dist.__init__(self, a=a) def _cdf(self, x, a): return special.ndt...
28.050847
69
0.563142
1a1ed50fd7072fe361e5c764682ffcc330e2be84
3,499
py
Python
media/__init__.py
aaboffill/django-allmedia
67ef405623574d90abf9eefac9a512f609300775
[ "BSD-3-Clause" ]
null
null
null
media/__init__.py
aaboffill/django-allmedia
67ef405623574d90abf9eefac9a512f609300775
[ "BSD-3-Clause" ]
null
null
null
media/__init__.py
aaboffill/django-allmedia
67ef405623574d90abf9eefac9a512f609300775
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from . import settings from django.db.models.signals import pre_save, post_delete from .fields.files import YoutubeFileField from .models import Media def find_models_with_file_field(): from django.db import models result = [] for model in models.get_models(): for field in model._me...
46.653333
130
0.677622
1a1eed48fceec8e16ee6548bcf88fe9bae37a846
4,323
py
Python
thatkitebot/cogs/help.py
blablabliam/thatkitebot
741e59993f05eb437b46d4839db517af7b8f0357
[ "MIT" ]
null
null
null
thatkitebot/cogs/help.py
blablabliam/thatkitebot
741e59993f05eb437b46d4839db517af7b8f0357
[ "MIT" ]
null
null
null
thatkitebot/cogs/help.py
blablabliam/thatkitebot
741e59993f05eb437b46d4839db517af7b8f0357
[ "MIT" ]
null
null
null
# Copyright (c) 2019-2022 ThatRedKite and contributors # Copyright (c) 2021 dunnousername import discord from discord.ext import commands import random # thanks to dunnousername for this help command. It was originally used in the styrobot discord bot info = { 'repo': 'https://github.com/ThatRedKite/thatkitebot...
43.23
115
0.617164
1a1f00638edc0978487c8a5eeb71b676e6a9f572
5,419
py
Python
pyfolio/txn.py
jameschristopher/pyfolio
774174ecdfe4011845ae1ca40ca162c26cb70233
[ "Apache-2.0" ]
1
2021-08-31T09:18:57.000Z
2021-08-31T09:18:57.000Z
pyfolio/txn.py
vikram-narayan/pyfolio
774174ecdfe4011845ae1ca40ca162c26cb70233
[ "Apache-2.0" ]
null
null
null
pyfolio/txn.py
vikram-narayan/pyfolio
774174ecdfe4011845ae1ca40ca162c26cb70233
[ "Apache-2.0" ]
1
2016-11-14T04:53:02.000Z
2016-11-14T04:53:02.000Z
# # Copyright 2016 Quantopian, 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 wr...
29.291892
74
0.653073
1a1f118fb185c952a9af94b32327af2fdbe7bb0a
526
py
Python
tests/tests/test_pagination.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests/tests/test_pagination.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests/tests/test_pagination.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
import pytest from rest_framework.test import APIRequestFactory from tests.models import ModelTest from tests.viewsets import ModelTestModelViewSet @pytest.mark.django_db class TestCursorPagination: def setup_method(self): self.view = ModelTestModelViewSet.as_view({"get": "list"}) self.factory = ...
27.684211
66
0.720532
1a1f1e06bc5739773f6e61e77267ce89c48ffaf3
1,643
py
Python
portal/apps/core/views/journalist.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/core/views/journalist.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/core/views/journalist.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- from core.models import Journalist from decorators import render_response from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.http import HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.views.decorators.cache import never_cache...
40.073171
114
0.732806
1a1fa5589be62adf3e036cbf7899adc5c0d9ebac
2,777
py
Python
modules/rapids_modules/transform/valueFilterNode.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
modules/rapids_modules/transform/valueFilterNode.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
modules/rapids_modules/transform/valueFilterNode.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
from gquant.dataframe_flow import Node from .._port_type_node import _PortTypesMixin from gquant.dataframe_flow.portsSpecSchema import ConfSchema class ValueFilterNode(_PortTypesMixin, Node): def init(self): _PortTypesMixin.init(self) def meta_setup(self): cols_required = {"asset": "int64"} ...
34.283951
74
0.514944
1a1fc4c3ee4e4e3be8e94dfb06eaa78e0ae8e75c
3,432
py
Python
test/test_store_recipe.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
test/test_store_recipe.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
test/test_store_recipe.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
""" Exploratory testing for storing recipes. """ import os import shutil import py.test import tiddlyweb.stores.text from fixtures import reset_textstore, recipe_list_string, _teststore from tiddlyweb.model.recipe import Recipe from tiddlyweb.store import NoRecipeError expected_stored_filename = os.path.join('sto...
28.131148
104
0.681527
1a1fd5506d735739fef2d673da7694ada829a655
17,016
py
Python
cathpy/core/models.py
shouldsee/cathpy
5f7fa1322434b2d254f0158c5840f029b12dbafe
[ "MIT" ]
null
null
null
cathpy/core/models.py
shouldsee/cathpy
5f7fa1322434b2d254f0158c5840f029b12dbafe
[ "MIT" ]
null
null
null
cathpy/core/models.py
shouldsee/cathpy
5f7fa1322434b2d254f0158c5840f029b12dbafe
[ "MIT" ]
null
null
null
""" Collection of classes used to model CATH data """ import logging import os import re import json import jsonpickle import cathpy.core.error as err LOG = logging.getLogger(__name__) class AminoAcid(object): """Class representing an Amino Acid.""" def __init__(self, one, three, word): self.one =...
30.27758
113
0.559297
1a200980ec6ee11f824f451707e30b147ee546ea
14,325
py
Python
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/python_modules/KismetExternal/KismetExternal/http_pb2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/python_modules/KismetExternal/KismetExternal/http_pb2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/python_modules/KismetExternal/KismetExternal/http_pb2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: http.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
34.518072
1,025
0.743176
1a202acaade23f390d09201210574b4cdb841473
2,674
py
Python
calibration-camera/perspective_transform.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
null
null
null
calibration-camera/perspective_transform.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
null
null
null
calibration-camera/perspective_transform.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
1
2022-03-31T10:33:45.000Z
2022-03-31T10:33:45.000Z
import pickle import cv2 import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg # Read in the saved camera matrix and distortion coefficients # These are the arrays you calculated using cv2.calibrateCamera() dist_pickle = pickle.load( open( "wide_dist_pickle.p", "rb" ) ) mtx = dist_pickle[...
43.129032
85
0.678384
1a204e6146e12f096fa3477ea5ef4f6d43621bed
4,903
py
Python
notebook/kf_filter_sir.py
jiehaocao/BEP-SBMD-COVID19
c5b98ba1e7061b25fadaddcacba36984067c546e
[ "MIT" ]
null
null
null
notebook/kf_filter_sir.py
jiehaocao/BEP-SBMD-COVID19
c5b98ba1e7061b25fadaddcacba36984067c546e
[ "MIT" ]
null
null
null
notebook/kf_filter_sir.py
jiehaocao/BEP-SBMD-COVID19
c5b98ba1e7061b25fadaddcacba36984067c546e
[ "MIT" ]
null
null
null
"""Author: J.H.Cao Computational Biology group Biomedical Engineering Eindhoven University of Technology""" import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint plt.rcParams['figure.facecolor'] = 'white' def kf_filtering_sir(t_length, X_pred, y_observed...
32.686667
108
0.526412
1a20638a9d226754532352ed8e0829fb7c19a8e8
1,735
py
Python
ml-agents/mlagents/trainers/tests/dummy_config.py
mattinjersey/ml-agents
7dcf947f541d661cc4a94b0e7758e1b12c6be078
[ "Apache-2.0" ]
2
2021-01-09T13:13:13.000Z
2021-01-18T19:54:00.000Z
ml-agents/mlagents/trainers/tests/dummy_config.py
Rushoo26/ml-agents
c73616c176f383bebefc3a1895ed1265661a1236
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/tests/dummy_config.py
Rushoo26/ml-agents
c73616c176f383bebefc3a1895ed1265661a1236
[ "Apache-2.0" ]
1
2021-12-03T16:51:05.000Z
2021-12-03T16:51:05.000Z
import pytest import copy import os from mlagents.trainers.settings import ( TrainerSettings, PPOSettings, SACSettings, GAILSettings, CuriositySettings, RewardSignalSettings, NetworkSettings, TrainerType, RewardSignalType, ScheduleType, ) CONTINUOUS_DEMO_PATH = os.path.dirname(o...
23.767123
83
0.727378
1a208214bc2598017c04b8f4a3e7b2d6b676392e
3,342
py
Python
diesel/web.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
diesel/web.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
diesel/web.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
'''Slight wrapper around flask to fit the diesel mold. ''' import traceback from flask import * # we're essentially republishing from werkzeug.debug import tbtools from diesel.protocols.websockets import WebSocketServer from app import Application, Service, quickstart from diesel import log, set_log_level, loglevels...
31.528302
100
0.637941
1a2093df2a499a855486c7d50b5be53508b85bee
3,256
py
Python
Tools/Scripts/webkitpy/tool/steps/cleanworkingdirectory_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/cleanworkingdirectory_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/cleanworkingdirectory_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
47.188406
86
0.752764
1a20cded356f6065e95db727015e1fcc5571103a
4,750
py
Python
tests/test_rhcos.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
null
null
null
tests/test_rhcos.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
null
null
null
tests/test_rhcos.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import absolute_import, print_function, unicode_literals import logging import json import unittest import os import yaml from pathlib import Path from unittest.mock import patch, MagicMock, Mock from doozerlib import rhcos class MockRuntime(object): def __init__(self, l...
42.035398
180
0.707158
1a20d9b35bddcb04087e6756fcd43e457507d360
6,243
py
Python
examples/MCMC2.py
wang-xiaotu/autograd
92cf1684d4b61c49d147227b9c39a52e0b7049f6
[ "MIT" ]
null
null
null
examples/MCMC2.py
wang-xiaotu/autograd
92cf1684d4b61c49d147227b9c39a52e0b7049f6
[ "MIT" ]
null
null
null
examples/MCMC2.py
wang-xiaotu/autograd
92cf1684d4b61c49d147227b9c39a52e0b7049f6
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import matplotlib.pyplot as plt import random import sys import numpy import copy import autograd.numpy as np import autograd.numpy.random as npr import autograd.scipy.stats.multivariate_normal as mvn from autograd.misc.optimizers import adam ...
40.538961
102
0.576325
1a20ebea507921c6960bb1e28f2f5ca97bd004b2
1,791
py
Python
game/network/scripts_de_teste [deprecated]/p2p1-ping.py
Galtvam/projeto-de-redes
351f84074ea8739de52f280e5f52f7d1da6af728
[ "MIT" ]
2
2019-05-30T23:14:52.000Z
2021-03-31T04:43:55.000Z
game/network/scripts_de_teste [deprecated]/p2p1-ping.py
Galtvam/projeto-de-redes
351f84074ea8739de52f280e5f52f7d1da6af728
[ "MIT" ]
1
2019-07-01T18:08:11.000Z
2019-07-01T18:08:11.000Z
game/network/scripts_de_teste [deprecated]/p2p1-ping.py
Galtvam/projeto-de-redes
351f84074ea8739de52f280e5f52f7d1da6af728
[ "MIT" ]
null
null
null
#coding: utf-8 from core.hlpct.package_coding import * from core.apresentation import * from core.hear import * from core.pinging import * class P2P: def __init__(self): self.myId = 'servidor' self.inRoom = False self.idRoom = None self.pingList = {} self.peersList = [['19...
27.553846
81
0.647683
1a2110d32f227752ad797aa0f191baa16d9ddca5
9,609
py
Python
tests/test_gui.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
15
2020-10-14T14:15:54.000Z
2022-03-31T17:55:36.000Z
tests/test_gui.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
145
2020-10-01T13:32:20.000Z
2022-03-31T08:31:47.000Z
tests/test_gui.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
3
2021-03-03T10:57:05.000Z
2021-05-24T09:11:49.000Z
from pyhdx import PeptideMasterTable, read_dynamx, HDXMeasurement from pyhdx.fileIO import csv_to_protein from pyhdx.web.apps import main_app#, diff_app from pyhdx.config import ConfigurationSettings from pathlib import Path import torch import numpy as np import pytest import time cwd = Path(__file__).parent input_di...
34.815217
214
0.648663
1a212f676a616307b41feafafda9d1d794ba3d2d
7,140
py
Python
tensorflow/contrib/autograph/pyct/inspect_utils_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/autograph/pyct/inspect_utils_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/autograph/pyct/inspect_utils_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
25.683453
80
0.702801
1a2135afee957adb36f1819896dc99e304b447a6
587
py
Python
tests/test_climate.py
Gagi2k/qface
5069fdc5f406495590a83a799ecbe30009436f1d
[ "MIT" ]
38
2016-11-30T10:36:56.000Z
2022-02-19T14:58:00.000Z
tests/test_climate.py
Gagi2k/qface
5069fdc5f406495590a83a799ecbe30009436f1d
[ "MIT" ]
70
2016-11-30T09:12:58.000Z
2022-01-27T12:52:41.000Z
tests/test_climate.py
Gagi2k/qface
5069fdc5f406495590a83a799ecbe30009436f1d
[ "MIT" ]
23
2016-12-07T15:23:15.000Z
2021-06-07T08:32:40.000Z
from qface.generator import FileSystem import logging import logging.config from path import Path # logging.config.fileConfig('logging.ini') logging.basicConfig() log = logging.getLogger(__name__) inputPath = Path('tests/in') log.debug('input path folder: {0}'.format(inputPath.abspath())) def load_system(): pa...
24.458333
74
0.752981
1a215cae42fcc45e84a64ca8678950008a5c9b19
1,441
py
Python
Utils/record.py
Tammie-Li/DRL
1ce8e9c45d2481a683b97fd6d2c05471eb9db1ca
[ "Apache-2.0" ]
null
null
null
Utils/record.py
Tammie-Li/DRL
1ce8e9c45d2481a683b97fd6d2c05471eb9db1ca
[ "Apache-2.0" ]
null
null
null
Utils/record.py
Tammie-Li/DRL
1ce8e9c45d2481a683b97fd6d2c05471eb9db1ca
[ "Apache-2.0" ]
null
null
null
# Author: Tammie li # Description: result record # FilePath: \DRL\Utils\record.py import os def write_table_head(subject_id, model_info, dataset): # Create a file to save the experimental results file_path = os.path.join(os.getcwd(), 'ExperienceResult', f'result_S{subject_id:>02d}_{dataset}') with open(...
37.921053
101
0.4483
1a215f590a580711662ab2bb92147b88d4510b7c
8,085
py
Python
pyrepo/repo.py
movermeyer/pyrepo
59c662f5fe6f5b0c95ac75a5dda3593c250acd19
[ "MIT" ]
null
null
null
pyrepo/repo.py
movermeyer/pyrepo
59c662f5fe6f5b0c95ac75a5dda3593c250acd19
[ "MIT" ]
null
null
null
pyrepo/repo.py
movermeyer/pyrepo
59c662f5fe6f5b0c95ac75a5dda3593c250acd19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module provides a Repository abstraction to allow a file repository to be managed on-disk, via a Pythonic API. """ from . import hosts from . import commands import re # TODO: accept a custom RepoImporter class Repository(object): """ Representation of a repository wh...
36.917808
78
0.613358
1a21971d9225ec3d5be57bc8547774c0784cb497
4,455
py
Python
enums.py
MGH-MPEC/CEACOV
b13635899a0ac8862001b25d2c62bdfc9cc90312
[ "MIT" ]
null
null
null
enums.py
MGH-MPEC/CEACOV
b13635899a0ac8862001b25d2c62bdfc9cc90312
[ "MIT" ]
null
null
null
enums.py
MGH-MPEC/CEACOV
b13635899a0ac8862001b25d2c62bdfc9cc90312
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ COVID-19 Microsimulation Model @author: Chris Panella (cpanella@mgh.harvard.edu) """ import numpy as np # Exeptions class InvalidParamError(Exception): """ class for invalid input errors""" pass # Meta Params MODEL_VERSION = "v0.10" # State var indices NUM_STATE_VARS = 14 ...
30.513699
266
0.681706
1a21a53472991c6535b65a3ae361bc18a9c81e9c
823
py
Python
sdks/python/test/test_AppId.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_AppId.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_AppId.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...
20.575
79
0.684083
1a21dfe78f206cad552aaa437510be48799b3e6a
1,401
py
Python
pym_algo_2.py
AhmadHakroosh/MSGP
aa4aff4c4040eb87b14bb2ed5e70c92a0387cd6a
[ "Apache-2.0" ]
1
2018-12-28T17:35:47.000Z
2018-12-28T17:35:47.000Z
pym_algo_2.py
AhmadHakroosh/MSGP
aa4aff4c4040eb87b14bb2ed5e70c92a0387cd6a
[ "Apache-2.0" ]
null
null
null
pym_algo_2.py
AhmadHakroosh/MSGP
aa4aff4c4040eb87b14bb2ed5e70c92a0387cd6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from nltk.tokenize import word_tokenize '''Calculate the PYM score of a test sentence by averaging the PYM score of all known words in the sentence ''' class PYM2Score: '''Compute the PYM score of a sentence''' def __init__(self): '''Initialize the scores from the data file pym_dat...
24.578947
68
0.560314
1a21eceaf2918b65f372765e409f3ae8634979ea
8,493
py
Python
asyncpraw/models/user.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
asyncpraw/models/user.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
asyncpraw/models/user.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Provides the User class.""" from typing import TYPE_CHECKING, AsyncIterator, Dict, List, Optional, Union from warnings import warn from ..const import API_PATH from ..exceptions import ReadOnlyException from ..models import Preferences from ..util.cache import cachedproperty from .base import AsyncPRAWBase from .li...
37.087336
88
0.63676
1a220f455056de8d29d4fdc05194bbd2b99d0167
3,083
py
Python
src/syncremote/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/syncremote/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/syncremote/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from django.db import models class Synchronizable(models.Model): SYNCHRONIZABLE_ATTRIBUTES_MAP = {} last_remote_read = models.DateTimeField(null=True, editable=False) last_remote_save = models.DateTimeField(null=True, editable=False) last...
33.150538
93
0.695102
1a223dbf248fdb2d87cbf6ac1eb57981ef0a4f56
8,313
py
Python
code/plotting/plot_pkbk.py
modichirag/21cmhod
0807a7b0b880f4ba5bc7161b843d500ddcece5a7
[ "MIT" ]
null
null
null
code/plotting/plot_pkbk.py
modichirag/21cmhod
0807a7b0b880f4ba5bc7161b843d500ddcece5a7
[ "MIT" ]
null
null
null
code/plotting/plot_pkbk.py
modichirag/21cmhod
0807a7b0b880f4ba5bc7161b843d500ddcece5a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Plots the power spectra and Fourier-space biases for the HI. # import numpy as np import os, sys import matplotlib.pyplot as plt # from matplotlib import rc, rcParams, font_manager rcParams['font.family'] = 'serif' fsize = 12 fontmanage = font_manager.FontProperties(family='serif', style='no...
37.786364
93
0.526765
1a2242a51be0e2e7d5997f3b169e9d9842db6435
3,146
py
Python
ch18_inheritance.py
mppc12/ThinkPythonTest
11c04fb1cc8944b8bd815b3b3d947abde51d3b07
[ "MIT" ]
null
null
null
ch18_inheritance.py
mppc12/ThinkPythonTest
11c04fb1cc8944b8bd815b3b3d947abde51d3b07
[ "MIT" ]
null
null
null
ch18_inheritance.py
mppc12/ThinkPythonTest
11c04fb1cc8944b8bd815b3b3d947abde51d3b07
[ "MIT" ]
null
null
null
# %% import random class Card: """ Represents a standard playing card. rank: Spades -> 3 Hearts -> 2 Diamonds -> 1 Clubs -> 0 face cards: Jack -> 11 Queen -> 12 King -> 13 """ """ suit_names 與 rank_names 為類別屬性,所關聯的是類別物件 Card """ suit_names = ['Clubs', ...
24.015267
85
0.530833
1a2246e73fe303551ce3ab64716879503bb9c3f3
1,801
py
Python
tests/test_environment.py
jayvdb/ubiquerg
b384a5b5ead9cadd4d39166315c15c237f1cfae3
[ "BSD-2-Clause" ]
null
null
null
tests/test_environment.py
jayvdb/ubiquerg
b384a5b5ead9cadd4d39166315c15c237f1cfae3
[ "BSD-2-Clause" ]
17
2019-05-08T15:37:16.000Z
2021-11-04T17:13:27.000Z
tests/test_environment.py
jayvdb/ubiquerg
b384a5b5ead9cadd4d39166315c15c237f1cfae3
[ "BSD-2-Clause" ]
3
2019-04-30T19:45:11.000Z
2020-06-25T14:40:04.000Z
""" Tests for environment-related functionality """ import os import pytest from ubiquerg import TmpEnv @pytest.mark.parametrize("envvars", [ {"DUMMYTESTVAR": "arbitrary"}, {"DUMMYTESTVAR": "random", "TOTALLY_RAD_VARIABLE": "ephemeral"} ]) def test_overwrite_prohibited(envvars): """ Prohibition of overwr...
34.634615
96
0.672959
1a2251a1af66cd61274d70fef1e67949f2a22a23
3,143
py
Python
tests/eval/conftest.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
tests/eval/conftest.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
tests/eval/conftest.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: conftest.py # Copyright 2021 Dr. Janis Meyer. 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/LICE...
29.373832
101
0.665924
1a226dca95082113cf5ba97ab035ebea9402f2f6
246
py
Python
tensor_basics/dot_product.py
furaoing/tensorflow-tutorial
72e57b4dba50c579dbc24798d23dc86ceeaa9470
[ "Apache-2.0" ]
null
null
null
tensor_basics/dot_product.py
furaoing/tensorflow-tutorial
72e57b4dba50c579dbc24798d23dc86ceeaa9470
[ "Apache-2.0" ]
null
null
null
tensor_basics/dot_product.py
furaoing/tensorflow-tutorial
72e57b4dba50c579dbc24798d23dc86ceeaa9470
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import tensorflow as tf a = tf.constant([[1, 2, 3]]) b = tf.constant([[1, 2, 3]]) proc = tf.matmul(a, tf.transpose(b)) #proc = tf.matmul(a, b) with tf.Session() as sess: result = sess.run(proc) print(result)
15.375
36
0.585366
1a22713ecbf136abb62ef3d8f67194311ab04169
4,764
py
Python
vmchecker/repo_walker.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
19
2015-08-31T22:53:45.000Z
2020-07-15T12:02:13.000Z
vmchecker/repo_walker.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
28
2015-01-18T13:26:47.000Z
2021-06-29T13:51:09.000Z
vmchecker/repo_walker.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
16
2015-04-20T06:04:22.000Z
2017-04-15T19:39:54.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """Provides functionality to manipulate batches homeworks.""" import os import optparse from . import paths def simulator_func(vmcfg, assignment, account, submission_root, args): """Just prints the function the function call""" print 'calling %s(%s, %s, %s, *%s...
40.033613
95
0.650084
1a2279043fa139ad2541a3aa57424e427b4f2ffb
2,040
py
Python
tests/data_structures/deque_test.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
6
2018-09-14T16:18:00.000Z
2022-03-27T19:50:31.000Z
tests/data_structures/deque_test.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
11
2018-01-31T14:18:54.000Z
2020-06-09T00:46:45.000Z
tests/data_structures/deque_test.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
null
null
null
import pytest from sivtools.data_structures import Deque def test_create_empty_deque(): deque = Deque() assert deque.head is None assert deque.tail is None def test_deque_append_left(): deque = Deque() deque.append_left(0) deque.append_left(1) assert deque.size() == 2 def test_deque...
18.545455
42
0.643137
1a229044b0565459dd9b2e1dc8c68cf579336d7d
852
py
Python
01-Lesson-Plans/18-Blockchain/2/Activities/03-Stu_Hashlib/Solved/hashing.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/18-Blockchain/2/Activities/03-Stu_Hashlib/Solved/hashing.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/18-Blockchain/2/Activities/03-Stu_Hashlib/Solved/hashing.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
import hashlib # output sha256 hash in hexadecimal string format def hash(message): return hashlib.sha256(message).hexdigest() # modify these messages # note: we include the "b" before the string definition in order to represent it as bytes instead of a string message_one = b"I am authorizing the transfer of $50...
25.818182
109
0.754695
1a22a614e7b2c964145a892429204d1ff245bf55
1,535
py
Python
squeaknode/core/sent_offer.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
14
2021-01-13T19:52:32.000Z
2021-12-01T14:30:20.000Z
squeaknode/core/sent_offer.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
603
2020-10-30T03:35:54.000Z
2021-12-12T08:04:06.000Z
squeaknode/core/sent_offer.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
5
2020-11-02T21:33:35.000Z
2021-11-02T00:54:13.000Z
# MIT License # # Copyright (c) 2020 Jonathan Zernik # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
39.358974
80
0.769381
1a22d98a61c89f5a17c1724050905c81af9c73b6
2,154
py
Python
src/2D-example/run_ies_example.py
QianWanghhu/predict_uq
9d2e9c0a9cddef901ef89985497fa94eb36c4c03
[ "MIT" ]
null
null
null
src/2D-example/run_ies_example.py
QianWanghhu/predict_uq
9d2e9c0a9cddef901ef89985497fa94eb36c4c03
[ "MIT" ]
null
null
null
src/2D-example/run_ies_example.py
QianWanghhu/predict_uq
9d2e9c0a9cddef901ef89985497fa94eb36c4c03
[ "MIT" ]
null
null
null
#!/usr/bin/env python import subprocess import shutil import os import numpy as np parent_dir = os.getcwd() job_name = 'work' num_copies = 6 pest_path= parent_dir + '\\pest_source' print('pest path ',pest_path) python_path = 'C:\\UserData\\Qian\\anaconda' os.environ['PATH'] = os.environ['PATH'] + ';' + pest_path ...
33.138462
100
0.713556
1a22f7c1d42ebb95a3377cf4efaf14a03ba05271
4,155
py
Python
examples/hyperopt/hyperopt_simple.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
3
2019-05-01T04:31:20.000Z
2021-03-01T09:25:36.000Z
examples/hyperopt/hyperopt_simple.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
5
2018-01-04T22:54:34.000Z
2018-02-06T23:48:20.000Z
examples/hyperopt/hyperopt_simple.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import ray import argparse from tensorflow.examples.tutorials.mnist import input_data import objective parser = argparse.ArgumentParser(description="Run the hyperparameter " ...
41.138614
79
0.650301
1a230d487728b835d84f50d7242377f2dd4426ad
3,210
py
Python
ForgeGit/forgegit/tests/functional/test_auth.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
ForgeGit/forgegit/tests/functional/test_auth.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
ForgeGit/forgegit/tests/functional/test_auth.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apach...
34.148936
76
0.627726
1a2312f70f3548895c8d52311d30f77a1408b880
43,923
py
Python
lib/models/laneatt_vp_lane_attenadd_fpn.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
lib/models/laneatt_vp_lane_attenadd_fpn.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
lib/models/laneatt_vp_lane_attenadd_fpn.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import math import os import cv2 import torch import numpy as np import torch.nn as nn from torchvision.models import resnet18, resnet34 from nms import nms from lib.lane import Lane from lib.focal_loss import FocalLoss from lib.fpn import FPN #from .resnet import resnet122 as resnet122_cifar from .resnet import Resne...
45.375
165
0.610568
1a231944faf57831dfdba4d4cd7106c468008330
1,032
py
Python
jrnl/plugins/jrnl_importer.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/plugins/jrnl_importer.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/plugins/jrnl_importer.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import, unicode_literals import codecs import sys from .. import util class JRNLImporter(object): """This plugin imports entries from other jrnl files.""" names = ["jrnl"] @staticmethod def import_(journal, input=None): ...
29.485714
92
0.612403
1a2324d7e76d13bd1214faef35fed3eed5804304
8,608
py
Python
src/cops_and_robots/docs/conf.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
3
2016-01-19T17:54:51.000Z
2019-10-21T12:09:03.000Z
src/cops_and_robots/docs/conf.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
null
null
null
src/cops_and_robots/docs/conf.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
5
2015-02-19T02:53:24.000Z
2019-03-05T20:29:12.000Z
# -*- coding: utf-8 -*- # # Cops and Robots documentation build configuration file, created by # sphinx-quickstart on Wed Feb 18 21:50:43 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
31.301818
79
0.718053
1a232dffb8a4fa5e14e38d547000eda76e98603f
3,044
py
Python
cbar/workspaces_bar.py
chirtz/i3stuff
9a8dac7330333d0ba1c6d4f5e4aa456fd015fbba
[ "MIT" ]
1
2017-05-02T13:33:38.000Z
2017-05-02T13:33:38.000Z
cbar/workspaces_bar.py
chirtz/i3stuff
9a8dac7330333d0ba1c6d4f5e4aa456fd015fbba
[ "MIT" ]
null
null
null
cbar/workspaces_bar.py
chirtz/i3stuff
9a8dac7330333d0ba1c6d4f5e4aa456fd015fbba
[ "MIT" ]
null
null
null
from tkinter import * class WorkspaceBar(Frame): """ The Workspaces bar """ def __init__(self, parent, xconnector, config, colors, column=0): super().__init__(parent) self._xconnector = xconnector self._config = config self._colors = colors self._buttons = [] ...
37.580247
89
0.55979
1a232fac7e1b227e3846d6ac697c7454e73681a1
19,985
py
Python
igraph/drawing/__init__.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
2
2017-03-07T04:01:59.000Z
2017-05-02T17:19:29.000Z
igraph/drawing/__init__.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
null
null
null
igraph/drawing/__init__.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
null
null
null
""" Drawing and plotting routines for IGraph. Plotting is dependent on the C{pycairo} library which provides Python bindings to the popular U{Cairo library<http://www.cairographics.org>}. This means that if you don't have U{pycairo<http://www.cairographics.org/pycairo>} installed, you won't be able to use the plotting...
41.291322
85
0.621616
1a233c44cf3d6627b0a50a693166bb596f738a15
1,176
py
Python
djangogeo/urls.py
savioabuga/django-geo
ea5cd51e6e5d6d2828c60e2178535031f42e4383
[ "BSD-3-Clause" ]
1
2018-08-17T20:02:35.000Z
2018-08-17T20:02:35.000Z
djangogeo/urls.py
savioabuga/django-geo
ea5cd51e6e5d6d2828c60e2178535031f42e4383
[ "BSD-3-Clause" ]
null
null
null
djangogeo/urls.py
savioabuga/django-geo
ea5cd51e6e5d6d2828c60e2178535031f42e4383
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.views.generic import TemplateView from locations.views import LocationView, LocationGeoJSONLayerView from locations...
31.783784
76
0.706633
1a233eac53940fc25787a19159164938ad688419
11,908
py
Python
ddrnet_23_slim/model/model.py
chansoopark98/CSNet-seg
7de095a71cb01821d269acefe9bc3b0f284dc26d
[ "MIT" ]
7
2021-10-11T07:13:06.000Z
2022-03-03T12:35:46.000Z
ddrnet_23_slim/model/model.py
chansoopark98/CSNet-seg
7de095a71cb01821d269acefe9bc3b0f284dc26d
[ "MIT" ]
null
null
null
ddrnet_23_slim/model/model.py
chansoopark98/CSNet-seg
7de095a71cb01821d269acefe9bc3b0f284dc26d
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras.layers as layers import tensorflow.keras.models as models """ creates a 3*3 conv with given filters and stride """ def conv3x3(out_planes, stride=1): return layers.Conv2D(kernel_size=(3,3), filters=out_planes, strides=stride, padding="same", us...
36.64
115
0.662328
1a238cf3e333b8bf6b03e3d3af2b52ac4d9ce79d
102
py
Python
cadnano/extras/fasta/__init__.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/extras/fasta/__init__.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/extras/fasta/__init__.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
""" This convenience module is to hard-code some example FASTA files for testing and development. """
20.4
76
0.764706
1a23a29c1d367e5e4eb18924d77fec47348f89d6
12,370
py
Python
troveclient/tests/test_client.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
troveclient/tests/test_client.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
troveclient/tests/test_client.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
import logging import httplib2 import time from testtools import TestCase from mock import Mock from troveclient import client from troveclient import exceptions """ Unit tests for client.py """ class ClientTest(TestCase): def test_log_to_streamhandler(self): client.log_to_streamhandler() self....
38.899371
79
0.627728
1a23c892eb67b8142f168a1b2ea5287a0ad95cb0
421
py
Python
weboob/py/operations.py
frankrousseau/kresus
617967e111ac4b9a13ee4524f2db2428c2dbc954
[ "MIT" ]
null
null
null
weboob/py/operations.py
frankrousseau/kresus
617967e111ac4b9a13ee4524f2db2428c2dbc954
[ "MIT" ]
null
null
null
weboob/py/operations.py
frankrousseau/kresus
617967e111ac4b9a13ee4524f2db2428c2dbc954
[ "MIT" ]
null
null
null
from lib import BankHistoryHandler import sys, json args = [] for l in sys.stdin: args.append(l.strip()) if len(args) < 3: print('missing arguments') quit() bankuuid = args[0] id = args[1] password = args[2] website = None if len(args) == 4: website = args[3] transactions = BankHistoryHandler(id, ...
18.304348
71
0.691211
1a23d5e75886f748f7ab76eeee7e9b294058c55c
7,159
py
Python
games/python/tictactoe.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
1
2017-02-20T21:04:47.000Z
2017-02-20T21:04:47.000Z
games/python/tictactoe.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
null
null
null
games/python/tictactoe.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
2
2017-02-20T21:04:49.000Z
2021-05-18T11:29:16.000Z
import re import itertools as it import random import cStringIO import Tkinter as tk BLANK = 0x0 NOUGHT = 0x1 CROSS = 0x2 VALID = set((NOUGHT, CROSS)) SYMBOLS = { BLANK: '_', NOUGHT: 'O', CROSS: 'X' } def _pair_to_index(x_pos, y_pos): return x_pos + 3 * y_pos def _index_to_pair(pos): pair = d...
27.015094
74
0.543651
1a240049e07473d871fb620e2850d789dc6d48ef
647
py
Python
run_buffer_jem.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
run_buffer_jem.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
run_buffer_jem.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
import os datasets = [ 'iris', 'heart', 'arrhythmia', #'abalone', 'wine', 'segment', #'sensorless_drive', ] #model = ['jehmo', ] mix = ['none', 'random'] for i_mix in mix: for i_d in datasets: print('Current M...
28.130435
84
0.449768
1a2424abc89cdafc7873b50d402c8fed42cd24e9
150,325
py
Python
google/appengine/datastore/entity_pb.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
null
null
null
google/appengine/datastore/entity_pb.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
null
null
null
google/appengine/datastore/entity_pb.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
2
2019-01-13T07:58:35.000Z
2020-11-04T04:55:35.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
30.448653
422
0.683672
1a2474c758593a553318e782bd4a50da832aae31
10,672
py
Python
requests_cache/core.py
madsfjeder/requests-cache
4bca0dda8d085571b7d3b045e2754cfafbcc3725
[ "BSD-2-Clause" ]
1
2021-07-07T09:08:08.000Z
2021-07-07T09:08:08.000Z
requests_cache/core.py
madsfjeder/requests-cache
4bca0dda8d085571b7d3b045e2754cfafbcc3725
[ "BSD-2-Clause" ]
null
null
null
requests_cache/core.py
madsfjeder/requests-cache
4bca0dda8d085571b7d3b045e2754cfafbcc3725
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ requests_cache.core ~~~~~~~~~~~~~~~~~~~ Core functions for configuring cache and monkey patching ``requests`` """ from contextlib import contextmanager from datetime import datetime, timedelta from operator import itemgetter import requests from requests i...
35.45515
109
0.618441
1a24bdeed373fbd075e2c698d18616f55c941442
26,179
py
Python
Lib/test/lock_tests.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/lock_tests.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/lock_tests.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
""" Various tests for synchronization primitives. """ import sys import time from _thread import start_new_thread, TIMEOUT_MAX import threading import unittest from test import support def _wait(): # A crude wait/yield function not relying on synchronization primitives. time.sleep(0.01) class Bunch(object)...
29.681406
82
0.54601
1a25238f66060bcea8339a0d386946ceeb3d7bd0
2,930
py
Python
examples/tab_completion.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
1
2021-07-06T23:59:46.000Z
2021-07-06T23:59:46.000Z
examples/tab_completion.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
null
null
null
examples/tab_completion.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ A simple example demonstrating how to use flag and index based tab-completion functions For argparse-based tab completion, see tab_autocompletion.py """ import argparse import cmd2 # List of strings used with flag and index based completion functions food_item_strs = ['Pizza',...
35.731707
110
0.634471
1a25270da7717d7b03f84005224e492e27f7ad02
31
py
Python
objectio/__init__.py
tmbdev/objectio
3c037fe47dd01cdd13a9338112ad10c1d2aeafb8
[ "BSD-3-Clause" ]
1
2020-06-30T09:25:21.000Z
2020-06-30T09:25:21.000Z
objectio/__init__.py
tmbdev/objectio
3c037fe47dd01cdd13a9338112ad10c1d2aeafb8
[ "BSD-3-Clause" ]
1
2020-05-21T02:20:42.000Z
2020-05-21T02:20:42.000Z
objectio/__init__.py
tmbdev/objectio
3c037fe47dd01cdd13a9338112ad10c1d2aeafb8
[ "BSD-3-Clause" ]
2
2020-04-15T16:44:33.000Z
2020-12-01T21:08:32.000Z
from .io import objopen, gopen
15.5
30
0.774194
1a253591e080c310e21dfa9075d75f065a715423
12,479
py
Python
scripts/add_text.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
scripts/add_text.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
6
2021-02-27T03:35:42.000Z
2021-03-07T22:17:40.000Z
scripts/add_text.py
ModelTemplate/WarframeWikiBot
7685057f65d95551ccdb7e958aac3bb58ee8b5b3
[ "MIT" ]
null
null
null
#!/usr/bin/python r""" This is a Bot to add a text at the end of the content of the page. By default it adds the text above categories and interwiki. Alternatively it may also add a text at the top of the page. These command line parameters can be used to specify which pages to work on: &params; Furthermore, the fo...
35.756447
79
0.593076