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
1a0d29678c726e95b7fbb163e83e8e3f05e03e4a
2,247
py
Python
ejercicios/clase03/collections.py
andreaquezada/python_unsam
344488bc13f0cf44c1c1b5de3036c63343399aa3
[ "CC0-1.0" ]
null
null
null
ejercicios/clase03/collections.py
andreaquezada/python_unsam
344488bc13f0cf44c1c1b5de3036c63343399aa3
[ "CC0-1.0" ]
null
null
null
ejercicios/clase03/collections.py
andreaquezada/python_unsam
344488bc13f0cf44c1c1b5de3036c63343399aa3
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 1 19:07:23 2021 @author: andrea Twitter: @andreaquezadaa """ #%% Ejercicio 3.8 # No consigo quitar el código de escape de la lista row que se imprime en el Warning import csv def costo_camion(nombre_archivo): costo = 0 f = open(nombre_ar...
24.692308
105
0.627503
1a0d3d6f9b33b0049b3062f762b0c72a64e39c60
1,656
py
Python
tests/renderers/jupyter/test_jupyter_execute_display.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
null
null
null
tests/renderers/jupyter/test_jupyter_execute_display.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
null
null
null
tests/renderers/jupyter/test_jupyter_execute_display.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
null
null
null
import pytest from pheasant.renderers.jupyter.kernel import kernels kernel = kernels.get_kernel(kernels.get_kernel_name("python")) def test_import(): code = ( "import holoviews as hv\n" "import matplotlib.pyplot as plt\n" "import pandas as pd\n" "import sympy as sp\n" "fr...
28.551724
82
0.602657
1a0d4b22466a5a679a4cb728df1a9dd5ed20c3f7
5,915
py
Python
exp7/autoencoder/exp7g.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
exp7/autoencoder/exp7g.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
5
2017-05-22T20:32:07.000Z
2017-06-02T21:06:23.000Z
exp7/autoencoder/exp7g.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import h5py import time import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import sys # usage: python exp7g.py 64 relu 0 0 0 0 # system arg nhidden = 64 ACTV_STR = 'relu' SMALL_FLAG = 1 FAST_FLAG = 1 BN_FLAG = 0 SYS_FLAG = 0 # 0 for bridges, 1 for supermi...
30.025381
95
0.648521
1a0d5655bcc00fc6626aba61497170ebfc777cf1
11,041
py
Python
src/mainwindow.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
1
2020-07-21T12:10:58.000Z
2020-07-21T12:10:58.000Z
src/mainwindow.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
17
2020-03-14T20:27:09.000Z
2022-01-13T02:31:39.000Z
src/mainwindow.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
null
null
null
import os import sys import tkinter as tk from tkinter import filedialog import tkinter.messagebox as messagebox import gettext import locale import pickle from src.utils import ask_open_image from src.textconfig import TextConfigureApp from src.grid import grid_frame from src.Collage import Collage from src.scroll i...
40.003623
103
0.600217
1a0d595d14b01a946505ef440739a77a792c51f2
13,215
py
Python
Forbidden_Moves.py
Demiandalou/Gomoku_RL
3f6578cb87c9daa7145ba78818f2cfdd4ba3fd3d
[ "MIT" ]
null
null
null
Forbidden_Moves.py
Demiandalou/Gomoku_RL
3f6578cb87c9daa7145ba78818f2cfdd4ba3fd3d
[ "MIT" ]
null
null
null
Forbidden_Moves.py
Demiandalou/Gomoku_RL
3f6578cb87c9daa7145ba78818f2cfdd4ba3fd3d
[ "MIT" ]
null
null
null
import numpy as np # Player 1 with X # Player 2 with O # 0 1 2 3 4 5 6 7 # 7 X _ _ _ _ _ _ _ # 6 X O _ _ _ O _ _ # 5 _ _ O _ O ...
31.167453
120
0.449262
1a0d6d5f262a02146de9f3c38d56cb6f962bff26
1,493
py
Python
tests/features/frbr_usecases.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
tests/features/frbr_usecases.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
tests/features/frbr_usecases.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
""" :mod:`frbr_usecases` uses common FRBR usecases in BBD format and then tests using lettuce """ from lettuce import * import sys,os import redis import __init__ import config redis_server = redis.StrictRedis(host=config.REDIS_HOST, port=config.REDIS_PORT, ...
29.86
73
0.665774
1a0dc48f4e7d0f5db9556dce2d4105872d4c7f0b
27,039
py
Python
pgmpy/factors/Factor.py
jaidevd/pgmpy
0a7f371f4b39ded45e48d637fa1a44b4518162da
[ "MIT" ]
null
null
null
pgmpy/factors/Factor.py
jaidevd/pgmpy
0a7f371f4b39ded45e48d637fa1a44b4518162da
[ "MIT" ]
null
null
null
pgmpy/factors/Factor.py
jaidevd/pgmpy
0a7f371f4b39ded45e48d637fa1a44b4518162da
[ "MIT" ]
null
null
null
import functools from operator import lt from itertools import product, starmap from collections import OrderedDict import numpy as np from pgmpy.exceptions import Exceptions from pgmpy.extern import tabulate class Factor: """ Base class for *Factor*. Public Methods -------------- assignment(in...
37.658774
118
0.536262
1a0dccfa36a903dec540006f4740d91aa7a270dd
3,086
py
Python
gala-ragdoll/ragdoll/utils/host_tools.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
gala-ragdoll/ragdoll/utils/host_tools.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
gala-ragdoll/ragdoll/utils/host_tools.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
import os import configparser import ast CONFIG = "/etc/ragdoll/gala-ragdoll.conf" class HostTools(object): def __init__(self): self._target_dir = self.load_git_dir() self._host_file = "hostRecord.txt" @property def target_dir(self): return self._target_dir @target_dir.setter...
32.484211
119
0.554115
1a0dfa1e0c8eb972a4943a11c58c1207b41ab3d2
3,052
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
42.388889
106
0.686107
1a0dff8ee9edf84004e2a2d04695824affc1ab53
1,055
py
Python
examples/python/read_ipasc_hdf5_file.py
IPASC/DataConversionTool
88f04c4df97f4a060c566da4bfc0c0e4fe246536
[ "MIT", "BSD-3-Clause" ]
2
2021-12-16T04:21:37.000Z
2022-03-10T03:19:21.000Z
examples/python/read_ipasc_hdf5_file.py
IPASC/DataConversionTool
88f04c4df97f4a060c566da4bfc0c0e4fe246536
[ "MIT", "BSD-3-Clause" ]
12
2021-12-20T13:22:45.000Z
2022-02-17T19:57:03.000Z
examples/python/read_ipasc_hdf5_file.py
amasmiller/PACFISH
f9bc912e701df3261a2b9a94df281c664701701d
[ "BSD-3-Clause" ]
1
2022-02-11T21:33:28.000Z
2022-02-11T21:33:28.000Z
""" SPDX-FileCopyrightText: 2021 International Photoacoustics Standardisation Consortium (IPASC) SPDX-License-Identifier: CC0 """ import pacfish as pf import matplotlib.pyplot as plt import numpy as np name = "kwave_2Dsim_random_array_new" FILE_PATH = f"C:/kWave-PACFISH-export/{name}.hdf5" # FILE_PATH = "C:/standardis...
35.166667
97
0.775355
1a0e009b8f8865b5a4b159c5479bf1424fe40322
2,173
py
Python
sdk/python/kfp/v2/components/yaml_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/kfp/v2/components/yaml_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/kfp/v2/components/yaml_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.042857
77
0.708698
1a0e2e368af4f0a0f0db9b261ed5cf38d8f4533f
14,811
py
Python
zerver/views/home.py
stableapple/zulip
fdced1570f6908121f9e663280bc8460589ee1f6
[ "Apache-2.0" ]
null
null
null
zerver/views/home.py
stableapple/zulip
fdced1570f6908121f9e663280bc8460589ee1f6
[ "Apache-2.0" ]
null
null
null
zerver/views/home.py
stableapple/zulip
fdced1570f6908121f9e663280bc8460589ee1f6
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Dict, Optional from django.conf import settings from django.urls import reverse from django.http import HttpResponseRedirect, HttpResponse, HttpRequest from django.shortcuts import redirect, render from django.utils import translation from django.utils.cache import patch_cache_control fr...
46.722397
104
0.686179
1a0e44132419368eea9f9cbd0a53b009772ede87
9,286
py
Python
src/sagemaker_containers/_mpi.py
jesterhazy/sagemaker-containers
6fc058561de618441e0dc11a2461d8306aaf287b
[ "Apache-2.0" ]
null
null
null
src/sagemaker_containers/_mpi.py
jesterhazy/sagemaker-containers
6fc058561de618441e0dc11a2461d8306aaf287b
[ "Apache-2.0" ]
null
null
null
src/sagemaker_containers/_mpi.py
jesterhazy/sagemaker-containers
6fc058561de618441e0dc11a2461d8306aaf287b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 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' fil...
38.057377
132
0.647965
1a0e54347b09b1e6750e7e37547911779b341c3f
19,676
py
Python
sysinv/sysinv/sysinv/sysinv/helm/openstack.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/helm/openstack.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/helm/openstack.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import keyring import os import subprocess from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa from osl...
37.838462
86
0.586349
1a0e8f1601a0f3275ed952134e555ca910606ca5
25,883
py
Python
server/openslides/core/views.py
Piratenpartei/OpenSlides
d4a6e1819233f0c6c325b8fb49fbf471e92a4db4
[ "MIT" ]
null
null
null
server/openslides/core/views.py
Piratenpartei/OpenSlides
d4a6e1819233f0c6c325b8fb49fbf471e92a4db4
[ "MIT" ]
2
2021-11-02T15:53:58.000Z
2022-03-02T12:19:49.000Z
server/openslides/core/views.py
Piratenpartei/OpenSlides
d4a6e1819233f0c6c325b8fb49fbf471e92a4db4
[ "MIT" ]
null
null
null
import datetime import os from collections import defaultdict from typing import Any, Dict from asgiref.sync import async_to_sync from django.conf import settings from django.contrib.staticfiles import finders from django.contrib.staticfiles.views import serve from django.db.models import F from django.http import Htt...
34.418883
116
0.619673
1a0e9a1744f8f1d8ab89c104371f74588045e9fb
48,462
py
Python
tests/datasource/data_connector/test_configured_asset_gcs_data_connector.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-11-22T12:51:08.000Z
2021-11-22T12:51:08.000Z
tests/datasource/data_connector/test_configured_asset_gcs_data_connector.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
tests/datasource/data_connector/test_configured_asset_gcs_data_connector.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-10-08T01:24:50.000Z
2021-10-08T01:24:50.000Z
from unittest import mock import pytest from ruamel.yaml import YAML import great_expectations.exceptions as ge_exceptions from great_expectations import DataContext from great_expectations.core import IDDict from great_expectations.core.batch import ( BatchDefinition, BatchRequest, BatchRequestBase, ) fr...
34.839684
157
0.648673
1a0ec823a4691a6642a96b23754ed4d770b6a263
6,079
py
Python
Plug-and-play module/attention/Non-local/Non-Local_pytorch_0.4.1_to_1.1.0/lib/non_local_embedded_gaussian.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Plug-and-play module/attention/Non-local/Non-Local_pytorch_0.4.1_to_1.1.0/lib/non_local_embedded_gaussian.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Plug-and-play module/attention/Non-local/Non-Local_pytorch_0.4.1_to_1.1.0/lib/non_local_embedded_gaussian.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import torch from torch import nn from torch.nn import functional as F class _NonLocalBlockND(nn.Module): """ 调用过程 NONLocalBlock2D(in_channels=32), super(NONLocalBlock2D, self).__init__(in_channels, inter_channels=inter_channels, dimension=2, sub_sample=sub_sample, ...
34.344633
79
0.488074
1a0ee20f54946acecbe6b590dc8772d3b072b0f8
727
py
Python
examples/pole_balancing/double_pole/test_double_pole.py
machinebrains/neat-society
395c092083aa62ac8ad2a93a9afde659ecbd85fd
[ "BSD-3-Clause" ]
2
2018-03-03T16:30:09.000Z
2022-01-02T17:02:22.000Z
examples/pole_balancing/double_pole/test_double_pole.py
machinebrains/neat-society
395c092083aa62ac8ad2a93a9afde659ecbd85fd
[ "BSD-3-Clause" ]
null
null
null
examples/pole_balancing/double_pole/test_double_pole.py
machinebrains/neat-society
395c092083aa62ac8ad2a93a9afde659ecbd85fd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function raise Exception('''This example is currently broken, it will be fixed soon. In the meantime, try the single_pole or xor examples.''') import os import sys import cPickle from cart_pole import CartPole from neatsociety.config import Config filename = 'winner_chromosome' if le...
22.71875
93
0.746905
1a0f26031539caeee2f773398860804bcb40f9a2
5,164
py
Python
influxdb_client/domain/pkg_create.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/pkg_create.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/pkg_create.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class PkgC...
27.036649
124
0.582494
1a0f51ac5da536267564ae899964239be8b51aa3
10,335
py
Python
toontown/battle/DistributedBattle.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/battle/DistributedBattle.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/battle/DistributedBattle.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import * from pandac.PandaModules import * from toontown.battle.BattleBase import * from toontown.battle import DistributedBattleBase from toontown.battle import SuitBattleGlobals from otp.avatar import Emote from toont...
43.607595
223
0.665022
1a0fa744aeec7b6df281835c266ebbd901f22fea
11,250
py
Python
tensorflow/python/kernel_tests/scatter_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/kernel_tests/scatter_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/scatter_ops_test.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...
33.088235
80
0.669067
1a0fab3049f125785eda3431f21f5fdf18b52b54
1,726
py
Python
test/test_collect.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
test/test_collect.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
test/test_collect.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
"""Test collections""" import numpy as np from gameanalysis import collect from gameanalysis import utils def test_connected_component(): """Test that connected component works""" simset = collect.mcces(1, [([0], 0)]) assert simset.add([1.5], 1) assert not simset.add([0.75], .5) assert len(simset...
27.83871
66
0.605446
1a0fc1aaba45d4417fb86f0e13083b1d1470212e
52,577
py
Python
eucaconsole/views/instances.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/views/instances.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/views/instances.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013-2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software 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...
52.841206
121
0.648344
1a0fd65afb654bfd860a16df30a5b7108b1eec41
540
py
Python
dnspc/__init__.py
chepazzo/dnspc
b12ab0abafd8bfcee39ab7d6db632a3599888c5b
[ "MIT" ]
null
null
null
dnspc/__init__.py
chepazzo/dnspc
b12ab0abafd8bfcee39ab7d6db632a3599888c5b
[ "MIT" ]
null
null
null
dnspc/__init__.py
chepazzo/dnspc
b12ab0abafd8bfcee39ab7d6db632a3599888c5b
[ "MIT" ]
null
null
null
''' dnspc is a granular Parental Controls app. It allows a parent to control access to specific sites from specific machines at specific times. It was originally developed as an OpenFlow app, but was reengineered to be a dns server due to performance issues. ''' __version__ = '1.4' __author__ = 'Mike Biacaniello' __...
30
86
0.772222
1a0fdba11c132b33099c7113496c698ef171f410
1,325
py
Python
src/feature_selection/feature_selector.py
gesiscss/sexism_custom_classifier
76faaa853f09352e2142b359956842dd0fb84921
[ "MIT" ]
3
2020-09-03T08:36:30.000Z
2021-03-24T13:30:58.000Z
src/feature_selection/feature_selector.py
gesiscss/sexism_custom_classifier
76faaa853f09352e2142b359956842dd0fb84921
[ "MIT" ]
null
null
null
src/feature_selection/feature_selector.py
gesiscss/sexism_custom_classifier
76faaa853f09352e2142b359956842dd0fb84921
[ "MIT" ]
2
2021-03-24T01:37:54.000Z
2022-01-09T21:56:33.000Z
#sklearn from sklearn.base import BaseEstimator from sklearn.feature_selection import SelectKBest from sklearn.feature_selection import RFECV from sklearn.svm import SVR from sklearn.model_selection import StratifiedKFold #src module from src.utilities import * class FeatureSelector(BaseEstimator): def __init__(...
31.547619
90
0.667925
1a0ff67e134dec57b446cc65b235528f6a9bd493
2,580
py
Python
packages/pyright-internal/src/tests/samples/overload7.py
twstella/PyForensic
59fdfd05793484e5aa4a96e3d4e0ce5e675369f9
[ "MIT" ]
241
2021-03-19T01:11:44.000Z
2022-03-25T03:15:22.000Z
packages/pyright-internal/src/tests/samples/overload7.py
lil-wayne-0319/pytea
80bab1afbc8d0acafa205969b38992bddfde3f2b
[ "MIT" ]
2
2021-02-26T08:16:04.000Z
2022-02-28T02:52:58.000Z
packages/pyright-internal/src/tests/samples/overload7.py
lil-wayne-0319/pytea
80bab1afbc8d0acafa205969b38992bddfde3f2b
[ "MIT" ]
14
2021-01-08T02:22:58.000Z
2022-01-19T14:13:14.000Z
# This sample tests the verification that overload implementation signatures # are a superset of their associated overload signatures. from typing import ( Any, Dict, Generic, List, Literal, Optional, Tuple, Type, TypeVar, Union, overload, ) # This should generate an error ...
14.254144
76
0.572868
1a10071b2fe8afac73640921a40d46a73cba5bc0
744
py
Python
txpy/gchelper/bigquery/biquery.py
tyxio/txpy-gchelper
ac9258bc1f2897683183d9c91e2347b6b03365b3
[ "MIT" ]
null
null
null
txpy/gchelper/bigquery/biquery.py
tyxio/txpy-gchelper
ac9258bc1f2897683183d9c91e2347b6b03365b3
[ "MIT" ]
null
null
null
txpy/gchelper/bigquery/biquery.py
tyxio/txpy-gchelper
ac9258bc1f2897683183d9c91e2347b6b03365b3
[ "MIT" ]
null
null
null
import logging import os import pandas as pandas from google.cloud import bigquery logger = logging.getLogger(__name__) class BigQuery: def __init__(self, client : bigquery.Client ): logger.info(f"Create Big Query client ") self.bq_client = client def bq_to_df(self, ...
19.578947
85
0.598118
1a1028123dc1cd179f4192a2b4b60e57650db1e3
2,458
py
Python
retworkx_bench/gr_parser.py
mtreinish/retworkx-comparison-benchmarks
94781e58686d6585db4a9717762bd87561442b0d
[ "Apache-2.0" ]
4
2021-11-02T18:46:57.000Z
2021-12-29T10:54:23.000Z
retworkx_bench/gr_parser.py
mtreinish/retworkx-comparison-benchmarks
94781e58686d6585db4a9717762bd87561442b0d
[ "Apache-2.0" ]
1
2022-03-04T20:21:29.000Z
2022-03-04T20:21:29.000Z
retworkx_bench/gr_parser.py
mtreinish/retworkx-comparison-benchmarks
94781e58686d6585db4a9717762bd87561442b0d
[ "Apache-2.0" ]
null
null
null
# This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative works of this code must retain this # copyright notice, and mod...
35.623188
86
0.620016
1a10946dda0fc15b64d7040edd87d92385332ebd
635
py
Python
refinery/bnpy/bnpy-dev/tests/end-to-end/TestDPMixGauss.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
103
2015-01-13T00:48:14.000Z
2021-11-08T10:53:22.000Z
refinery/bnpy/bnpy-dev/tests/end-to-end/TestDPMixGauss.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
7
2015-02-21T04:03:40.000Z
2021-08-23T20:24:54.000Z
refinery/bnpy/bnpy-dev/tests/end-to-end/TestDPMixGauss.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
27
2015-01-23T00:54:31.000Z
2020-12-30T14:30:50.000Z
''' Unit-tests for full learning for full-mean, full-covariance Gaussian models ''' import numpy as np import unittest import bnpy from AbstractEndToEndTest import AbstractEndToEndTest import Util class TestDPMixGaussModel(AbstractEndToEndTest): __test__ = True def setUp(self): PRNG = np.random.RandomState(3...
25.4
75
0.691339
1a10ac89ba77d8d61c3a4c4e57320c3c14c9059a
2,620
py
Python
psql_db.py
siketh/udacity-logs-analysis-project
9b19f8aeb67adec4beaf75ad5d8f64c2c5938227
[ "MIT" ]
null
null
null
psql_db.py
siketh/udacity-logs-analysis-project
9b19f8aeb67adec4beaf75ad5d8f64c2c5938227
[ "MIT" ]
null
null
null
psql_db.py
siketh/udacity-logs-analysis-project
9b19f8aeb67adec4beaf75ad5d8f64c2c5938227
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """This module simplifies access to a PostgreSQL database.""" import psycopg2 from logs_analysis_exceptions import PrintException, PsqlDbException from psycopg2.extras import DictCursor class PsqlDb: """PsqlDb provides convenient wrapper functions for psycopg2. Upon instantiation, a da...
29.772727
76
0.605725
1a10aec6817babfd933d18749693142e510e23c3
4,339
py
Python
test/remote_value_tests/remote_value_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/remote_value_tests/remote_value_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/remote_value_tests/remote_value_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for RemoveValue objects.""" import asyncio import unittest from unittest.mock import patch import pytest pytestmark = pytest.mark.asyncio from xknx import XKNX from xknx.dpt import DPTArray, DPTBinary from xknx.exceptions import CouldNotParseTelegram from xknx.remote_value import RemoteValue from xknx.te...
42.539216
121
0.680802
1a10afe6d48569eb1287890ff6853783b224e5a1
7,826
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.525253
106
0.673907
1a10c4293216342c214e24e81d477e12cddccfbb
1,396
py
Python
homeassistant/components/roomba/sensor.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
2
2022-01-24T18:59:56.000Z
2022-02-04T22:12:48.000Z
homeassistant/components/roomba/sensor.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
homeassistant/components/roomba/sensor.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Sensor for checking the battery level of Roomba.""" import logging from homeassistant.const import DEVICE_CLASS_BATTERY, UNIT_PERCENTAGE from . import roomba_reported_state from .const import BLID, DOMAIN, ROOMBA_SESSION from .irobot_base import IRobotEntity _LOGGER = logging.getLogger(__name__) async def async...
28.489796
69
0.698424
1a10e7cc3901fbb116a10c7308ab726265040f23
4,485
py
Python
ibms_project/sfm/migrations/0001_initial.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
ibms_project/sfm/migrations/0001_initial.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
ibms_project/sfm/migrations/0001_initial.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='CostCentre', fields=[ ('id', models.AutoField(v...
39.690265
170
0.542252
1a10fbff65d7b07493864bbf5a59b7ffceb970df
5,227
py
Python
module-role-declarative/roles/f5devcentral.bigip_gslb/module_utils/network/f5/bigip.py
f5devcentral/f5-ansible-sandbox
ffe5dbbb400b8fe43c6b1523b984d6cfa978a118
[ "MIT" ]
2
2019-01-22T19:17:05.000Z
2019-04-15T16:06:58.000Z
module-role-declarative/roles/f5devcentral.bigip_gslb/module_utils/network/f5/bigip.py
f5devcentral/f5-ansible-sandbox
ffe5dbbb400b8fe43c6b1523b984d6cfa978a118
[ "MIT" ]
1
2019-08-15T15:25:24.000Z
2019-08-15T15:25:24.000Z
module-role-declarative/roles/f5devcentral.bigip_gslb/module_utils/network/f5/bigip.py
f5devcentral/f5-ansible-sandbox
ffe5dbbb400b8fe43c6b1523b984d6cfa978a118
[ "MIT" ]
5
2019-09-16T22:56:27.000Z
2020-11-10T13:09:39.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # 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 import re try: from f5.bigip import ManagementRoot from icontrol.e...
33.722581
147
0.599196
1a113bc3a87ff4f308c10f2245243f49ebc87033
87,419
py
Python
SCRAPE/Lib/site-packages/psutil/__init__.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
6
2022-01-04T02:51:33.000Z
2022-01-25T11:36:39.000Z
SCRAPE/Lib/site-packages/psutil/__init__.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-01-27T09:47:12.000Z
2022-02-02T19:36:33.000Z
SCRAPE/Lib/site-packages/psutil/__init__.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """psutil is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, ...
36.049072
79
0.57746
1a1151da1a01b0a14eb0178032179b8f72bda9c3
22,000
py
Python
legal-api/src/legal_api/models/filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
legal-api/src/legal_api/models/filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
legal-api/src/legal_api/models/filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
38.062284
120
0.616955
1a1153546bbab0e6c8f00d75502e60951c224aa2
2,758
py
Python
src/odin-api/muninn/client/events.py
Interactions-AI/odin
94c593a98a0dc68c12f3062edbff34e7da5c4d8a
[ "Apache-2.0" ]
4
2020-12-15T15:57:14.000Z
2020-12-16T21:52:23.000Z
src/odin-api/muninn/client/events.py
Interactions-AI/odin
94c593a98a0dc68c12f3062edbff34e7da5c4d8a
[ "Apache-2.0" ]
2
2021-03-15T02:49:56.000Z
2021-03-27T12:42:38.000Z
src/odin-api/muninn/client/events.py
Interactions-AI/odin
94c593a98a0dc68c12f3062edbff34e7da5c4d8a
[ "Apache-2.0" ]
5
2020-12-15T19:09:00.000Z
2021-04-21T20:40:38.000Z
"""Websocket client to get the k8s events that act on some resource.""" import json import asyncio import argparse import websockets from collections import namedtuple from muninn import ODIN_URL, ODIN_PORT, ODIN_SCHEME, HttpClient, ODIN_API_LOGGER, APIField, APIStatus from muninn.formatting import print_table, Event ...
35.818182
118
0.674039
1a115a964c0fa4da25262fd9110185f11f68c430
20,991
py
Python
fanficfare/adapters/adapter_test1.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
1
2019-06-13T11:20:33.000Z
2019-06-13T11:20:33.000Z
fanficfare/adapters/adapter_test1.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
fanficfare/adapters/adapter_test1.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Fanficdownloader team, 2015 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
49.274648
503
0.594636
1a115fe3f3f874c33e6dcf26a812caeeae3932da
5,787
py
Python
Examples/GUI/Python/OrthogonalPlanesWithTkPhoto.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
Examples/GUI/Python/OrthogonalPlanesWithTkPhoto.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
Examples/GUI/Python/OrthogonalPlanesWithTkPhoto.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
import vtk from vtk import * import Tkinter from Tkinter import * import sys, os import vtk.tk import vtk.tk.vtkLoadPythonTkWidgets import vtk.tk.vtkTkImageViewerWidget from vtk.tk.vtkTkPhotoImage import * from vtk.util.misc import * class SampleViewer: def __init__ ( self ): self.Tk = Tk = Tkinter.Tk(); ...
40.1875
133
0.569898
1a118bcfb5ef7ee140f78742e00c0f7c1d6f9561
2,022
py
Python
tests/test_decode.py
MichelKhalaf/traffic
84e315d84a4ab9d8711414e7c275733e27a089ed
[ "MIT" ]
null
null
null
tests/test_decode.py
MichelKhalaf/traffic
84e315d84a4ab9d8711414e7c275733e27a089ed
[ "MIT" ]
null
null
null
tests/test_decode.py
MichelKhalaf/traffic
84e315d84a4ab9d8711414e7c275733e27a089ed
[ "MIT" ]
null
null
null
import time from pathlib import Path from typing import cast import pytest import pandas as pd from traffic.core import Flight, Traffic from traffic.data import ModeS_Decoder from traffic.data.samples import collections, get_sample def long_enough(flight: Flight) -> bool: return len(flight) > 100 def test_dec...
27.324324
76
0.640455
1a11983635a7332f5046d59e0399ce72f04d465e
38
py
Python
test/fail_select1.py
boothby/dissert
b11726384caa4d82062659a2cf7f14fb34bc54b1
[ "MIT" ]
4
2020-06-23T19:41:46.000Z
2020-06-24T15:45:27.000Z
test/fail_select1.py
boothby/dissert
b11726384caa4d82062659a2cf7f14fb34bc54b1
[ "MIT" ]
null
null
null
test/fail_select1.py
boothby/dissert
b11726384caa4d82062659a2cf7f14fb34bc54b1
[ "MIT" ]
null
null
null
# coding: dissert-select assert False
12.666667
24
0.789474
1a12046b0a7b8b9a123f19c6e87dbf508ed14294
359
py
Python
classes/shared.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
classes/shared.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
classes/shared.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from authlib.integrations.flask_client import OAuth from flask_socketio import SocketIO from flask_mail import Mail from flask_limiter import Limiter from flask_limiter.util import get_remote_address db = SQLAlchemy() oauth = OAuth() socketio = SocketIO() email = Mail() limiter ...
27.615385
51
0.835655
1a12090f00c156672851b35b2583cc8b4ec911d5
5,970
py
Python
src/spring/azext_spring/_app_validator.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
null
null
null
src/spring/azext_spring/_app_validator.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/spring/azext_spring/_app_validator.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.887218
207
0.756114
1a1224bcbf9c52ee03411a15c1f0c6fd3d3ef94c
134
py
Python
modisco/seqlet_embedding/__init__.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
70
2018-05-21T01:47:12.000Z
2022-03-12T04:15:27.000Z
modisco/seqlet_embedding/__init__.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
36
2018-06-04T21:39:43.000Z
2022-03-15T15:24:11.000Z
modisco/seqlet_embedding/__init__.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
22
2018-06-04T19:51:15.000Z
2022-03-06T23:27:18.000Z
#from . import gapped_kmer #don't want to auto-import tensorflow from . import advanced_gapped_kmer from . import onehot_model_output
33.5
64
0.820896
1a122ccc46b93293e4ee1f286cc60b25331479f7
1,117
py
Python
tests/_animation/test_animation_scale_y_from_center_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_animation/test_animation_scale_y_from_center_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_animation/test_animation_scale_y_from_center_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._display.scale_y_from_center_interface import \ ScaleYFromCenterInterface from tests.testing_helper import assert_attrs class TestAnimationScaleYFromCenterInterface: @retry(stop_max_attempt_number=15, wait_fixed...
34.90625
75
0.643688
1a124416881b9dab8d18eeaee3e701ab574226fd
3,015
py
Python
ex2-logistic regression/1_logistic_regression.py
themech/Machine-Learning-Coursera-Tensorflow
bd99b7de6206ad5903313c824fb9dd05df8580c2
[ "MIT" ]
5
2017-03-30T10:31:50.000Z
2017-11-19T05:57:21.000Z
ex2-logistic regression/1_logistic_regression.py
themech/Machine-Learning-Coursera-Tensorflow
bd99b7de6206ad5903313c824fb9dd05df8580c2
[ "MIT" ]
null
null
null
ex2-logistic regression/1_logistic_regression.py
themech/Machine-Learning-Coursera-Tensorflow
bd99b7de6206ad5903313c824fb9dd05df8580c2
[ "MIT" ]
2
2017-09-20T16:12:15.000Z
2019-03-07T15:51:24.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import tensorflow as tf # V1. Print data sample df = pd.read_csv('data/ex2data1.txt', names=['exam1', 'exam2', 'admitted']) print(df.shape) print(df.head()) # 2. Visualize the data sns.set(context='notebook', style='darkgrid'...
29.851485
77
0.617247
1a127429504f85f52d360013ee05fc9a1f1fe6a5
3,139
py
Python
tests/python/pants_test/cache/test_caching.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/cache/test_caching.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/cache/test_caching.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from pant...
35.670455
102
0.721886
1a12888993d33be944f9eb24302fcffd544c6edc
5,335
py
Python
sidr/default.py
jannafierst/SIDR
ad2d461dc930b95a42f1a6105b1e802df60b4149
[ "MIT" ]
7
2017-10-23T01:35:06.000Z
2020-12-18T23:21:41.000Z
sidr/default.py
jannafierst/SIDR
ad2d461dc930b95a42f1a6105b1e802df60b4149
[ "MIT" ]
2
2018-08-01T11:09:19.000Z
2018-10-15T22:33:30.000Z
sidr/default.py
jannafierst/SIDR
ad2d461dc930b95a42f1a6105b1e802df60b4149
[ "MIT" ]
1
2018-08-07T17:06:13.000Z
2018-08-07T17:06:13.000Z
import pysam import click import gc import gzip from sidr import common from Bio.SeqUtils import GC # for GC content from Bio.SeqIO.FastaIO import FastaIterator def readFasta(fastaFile): """ Reads a FASTA file and parses contigs for GC content. Args: fastaFile: The path to the FASTA file. R...
44.831933
182
0.65567
1a1295f6f6fe2f0c52e17974b0eff496c1684de4
8,932
py
Python
eth/vm/state.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
eth/vm/state.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
eth/vm/state.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
from abc import ( ABC, abstractmethod ) import contextlib import logging from typing import ( # noqa: F401 Type, TYPE_CHECKING ) from eth.constants import ( BLANK_ROOT_HASH, MAX_PREV_HEADER_DEPTH, ) from eth.exceptions import StateRootNotFound from eth.db.account import ( # noqa: F401 Bas...
31.013889
100
0.663905
1a1298b726a1a14c6e4d24d284c2088dde9eaf29
10,412
py
Python
src/nitpick/style/core.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
251
2019-08-06T08:50:01.000Z
2022-03-26T13:49:19.000Z
src/nitpick/style/core.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
429
2019-06-07T09:12:52.000Z
2022-03-31T23:29:26.000Z
src/nitpick/style/core.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
18
2019-08-12T14:16:28.000Z
2022-03-15T13:54:26.000Z
"""Style files.""" import os from collections import OrderedDict from dataclasses import dataclass, field from functools import lru_cache from pathlib import Path from typing import Dict, Iterator, Optional, Set, Tuple, Type from urllib.parse import urljoin, urlsplit, urlunsplit from identify import identify from logu...
39.89272
115
0.689205
1a1312dec1215ce3ce5cb60b0c2112ac7f551983
2,584
py
Python
xml_abstract_retriever.py
dmollaaliod/ebmweb-comp3900-2020S2
c7375a225e27d94218827f1c1a65ce31f4d36658
[ "Apache-2.0" ]
null
null
null
xml_abstract_retriever.py
dmollaaliod/ebmweb-comp3900-2020S2
c7375a225e27d94218827f1c1a65ce31f4d36658
[ "Apache-2.0" ]
null
null
null
xml_abstract_retriever.py
dmollaaliod/ebmweb-comp3900-2020S2
c7375a225e27d94218827f1c1a65ce31f4d36658
[ "Apache-2.0" ]
null
null
null
from xml.dom.minidom import parse, parseString import os import codecs def getText(nodelist): """Return the concatenated plain text of all nodes Taken from http://docs.python.org/library/xml.dom.minidom.html""" rc = "" for node in nodelist: if node.nodeType == node.TEXT_NODE: rc = ...
38
81
0.556502
1a133c6a9e5fae6fcade7bce766aead98010996b
3,602
py
Python
meta-data.py
Sedb/DFSv2
86d1ca5f218df1362dd3c9e9c9197c4657e43f86
[ "Unicode-DFS-2016", "Unicode-DFS-2015" ]
null
null
null
meta-data.py
Sedb/DFSv2
86d1ca5f218df1362dd3c9e9c9197c4657e43f86
[ "Unicode-DFS-2016", "Unicode-DFS-2015" ]
null
null
null
meta-data.py
Sedb/DFSv2
86d1ca5f218df1362dd3c9e9c9197c4657e43f86
[ "Unicode-DFS-2016", "Unicode-DFS-2015" ]
null
null
null
############################################################################### # # Filename: meta-data.py # Author: Jose R. Ortiz and ... (hopefully some students contribution) # # Description: # MySQL support library for the DFS project. Database info for the # metadata server. # # Please modify globals with ...
23.089744
79
0.654636
1a13627ac923928a7893446569027be713884027
2,905
py
Python
server/users/views.py
Zhe-Shen/CloudTides
edf51534f62901dcc2e69cbf3fea76e5652b5d17
[ "Apache-2.0" ]
3
2019-12-07T17:14:39.000Z
2022-03-31T06:41:51.000Z
server/users/views.py
Zhe-Shen/CloudTides
edf51534f62901dcc2e69cbf3fea76e5652b5d17
[ "Apache-2.0" ]
10
2019-12-08T06:37:55.000Z
2022-02-10T11:41:09.000Z
server/users/views.py
Zhe-Shen/CloudTides
edf51534f62901dcc2e69cbf3fea76e5652b5d17
[ "Apache-2.0" ]
9
2020-06-28T01:08:35.000Z
2020-07-26T03:51:47.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from rest_framework.response import Response from django.contrib.auth import login, authenticate from rest_framework.views import APIView from rest_framework.authtoken.models import Token from rest_framework import status from .serializers import * from ....
39.256757
102
0.641997
1a1364b98d99007b738e17c7688cb7de491ff84d
2,090
py
Python
docs/conf.py
zachhanson94/htb
687cc9f69b31cecdf4b7146513f4544f80e3b5bc
[ "MIT" ]
null
null
null
docs/conf.py
zachhanson94/htb
687cc9f69b31cecdf4b7146513f4544f80e3b5bc
[ "MIT" ]
1
2021-04-05T15:27:53.000Z
2021-04-05T15:27:53.000Z
docs/conf.py
zachhanson94/htb
687cc9f69b31cecdf4b7146513f4544f80e3b5bc
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.833333
79
0.670335
1a137d9f342c6a992e785d54ab4bba6ad02ff057
13,097
py
Python
decode_two_to_one_next_neighbor.py
kenchan0226/AbsThenExtPublic
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
5
2021-08-10T02:31:51.000Z
2022-02-08T01:12:25.000Z
decode_two_to_one_next_neighbor.py
kenchan0226/abs-then-ext-public
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
null
null
null
decode_two_to_one_next_neighbor.py
kenchan0226/abs-then-ext-public
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
null
null
null
import argparse import json import os from os.path import join from datetime import timedelta from time import time from collections import Counter, defaultdict from itertools import product from functools import reduce import operator as op import heapq from toolz.sandbox.core import unzip from cytoolz import concat,...
37.962319
147
0.589372
1a1396f96d7a7d731f1059f135011c242be11358
7,105
py
Python
OnshoreReferenceBot/UnitController.py
roy-love/BattleCode2018-ReferenceBot
c017cf804728dd1555ab6a60acdd2a6f7a929281
[ "MIT" ]
null
null
null
OnshoreReferenceBot/UnitController.py
roy-love/BattleCode2018-ReferenceBot
c017cf804728dd1555ab6a60acdd2a6f7a929281
[ "MIT" ]
null
null
null
OnshoreReferenceBot/UnitController.py
roy-love/BattleCode2018-ReferenceBot
c017cf804728dd1555ab6a60acdd2a6f7a929281
[ "MIT" ]
null
null
null
import battlecode as bc import random from Ranger import Ranger from Worker import Worker from Factory import Factory from Rocket import Rocket from MissionController import Missions # Keeps a list of all friendly units (share with buildController - figure out which should store it) # Loops over all units, running the...
43.588957
146
0.629979
1a13d0c1b3ad2a6b6b321bd1011a666b5a53a3d2
5,891
py
Python
tolqc-api/app/test/base/tests/test_relation_list_get_enum.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/test/base/tests/test_relation_list_get_enum.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/test/base/tests/test_relation_list_get_enum.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2022 Genome Research Ltd. # # SPDX-License-Identifier: MIT from test.base import BaseTestCase class TestListGetEnum(BaseTestCase): def test_filter_bad_enum_name_I_on_list_get_J_400(self): # add an I and a connected J self.add_I(id=348989, name='right') self.add_J...
29.903553
67
0.314378
1a13eca0954c49c47da6548936190c2717fe76a7
1,526
py
Python
referentiel/models/hosts.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
1
2017-12-13T20:28:32.000Z
2017-12-13T20:28:32.000Z
referentiel/models/hosts.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
referentiel/models/hosts.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
from django.db import models class Host_Manager(models.Manager): def web_filter(self, GET): return self.get_query_set().filter(name__icontains=GET['q']) class Host(models.Model): """ Correspond to a monitored host from a supervisor and in GLPI. """ from referentiel.models import Supervisor HOST_TYPE_CHOICES =...
27.745455
121
0.740498
1a13efed5cac5af9b3d2bebe872f1526175f363f
3,790
py
Python
src/hydride/charge.py
biotite-dev/hydride
4b5a1c4348cf8f9b0878c1480a09ffcf101cba48
[ "BSD-3-Clause" ]
2
2021-11-03T15:11:44.000Z
2022-02-07T12:32:05.000Z
src/hydride/charge.py
biotite-dev/hydride
4b5a1c4348cf8f9b0878c1480a09ffcf101cba48
[ "BSD-3-Clause" ]
1
2021-11-02T17:35:05.000Z
2021-11-02T17:35:05.000Z
src/hydride/charge.py
biotite-dev/hydride
4b5a1c4348cf8f9b0878c1480a09ffcf101cba48
[ "BSD-3-Clause" ]
1
2022-01-14T13:26:56.000Z
2022-01-14T13:26:56.000Z
# This source code is part of the Hydride package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "hydride" __author__ = "Patrick Kunzmann" __all__ = ["estimate_amino_acid_charges"] import numpy as np import biotite.structure as struc PK_NH3 = { ...
27.463768
79
0.55752
1a141d903000fbe69a03f421c3bf661b78e0c033
7,460
py
Python
appengine/swarming/server/config_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/server/config_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/server/config_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import logging import sys import unittest import test_env test_env.setup_test_env() from components.config import validati...
34.537037
80
0.684718
1a142f08aaef9700f577333ac682b0be55721776
4,885
py
Python
src/calc/parallel/calc_flux.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_flux.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_flux.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # calc_flux.py # # A program to calculate the magnetic flux threading the ISCO of an Athena++ disk using MPI # # To run: # mpirun -n [n] python calc_flux.py [options] # for [n] cores. # import numpy as np import os import sys sys.path.insert(0, '/home/per29/rds/rds-accretion-zyNhkonJSR8/athena-...
37.007576
127
0.598362
1a145069e9d872025e38e43760a6ccbd958294f5
2,621
py
Python
appengine/swarming/main.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/main.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/main.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2013 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """This modules is imported by AppEngine and defines the 'app' object. It is a separate file so that application bootstrapping code like ereporte...
31.963415
79
0.798169
1a148c674595f9a521d7aea39dc989ae9fb07137
15,896
py
Python
multisummarise.py
dmollaaliod/ebmweb-comp3900-2020S2
c7375a225e27d94218827f1c1a65ce31f4d36658
[ "Apache-2.0" ]
null
null
null
multisummarise.py
dmollaaliod/ebmweb-comp3900-2020S2
c7375a225e27d94218827f1c1a65ce31f4d36658
[ "Apache-2.0" ]
null
null
null
multisummarise.py
dmollaaliod/ebmweb-comp3900-2020S2
c7375a225e27d94218827f1c1a65ce31f4d36658
[ "Apache-2.0" ]
null
null
null
"multisummarise.py - Multi-document summarisation" from xml.dom.minidom import parse import os import sys import codecs from nltk import sent_tokenize import scipy.sparse from sklearn.metrics.pairwise import pairwise_distances from sklearn.feature_extraction.text import TfidfVectorizer import pickle import summarise...
42.276596
1,074
0.659097
1a14aa350256d57c9fd70a99263299e285fc60c8
630
py
Python
components/gcp/container/component_sdk/python/kfp_component/google/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/gcp/container/component_sdk/python/kfp_component/google/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/gcp/container/component_sdk/python/kfp_component/google/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.375
74
0.765079
1a14b5798066fd83c07ad03c4c5f35e8836e6272
3,864
py
Python
examples/decision_tree.py
shadowCow/algoTrading
14f86cabd2f0a7e6321103de68d994e4ab93acf6
[ "MIT" ]
null
null
null
examples/decision_tree.py
shadowCow/algoTrading
14f86cabd2f0a7e6321103de68d994e4ab93acf6
[ "MIT" ]
1
2018-06-11T18:49:40.000Z
2018-06-11T18:49:40.000Z
examples/decision_tree.py
shadowCow/algoTrading
14f86cabd2f0a7e6321103de68d994e4ab93acf6
[ "MIT" ]
null
null
null
from sklearn import tree from sklearn import metrics import numpy as np import algotrading.data.feature as feature_engineering import algotrading.data.features as features import algotrading.data.markets as markets import algotrading.tactics.tactics as tactics import algotrading.evaluation_pipeline as evaluation_pip...
33.310345
103
0.708075
1a14b944ee5c2ef3ecdf32beb1a972d017b68d4e
340
py
Python
sources/migrations/0027_remove_person_language.py
industrydive/sourcedive
eb8c4657a6c3182666dc15109bd982a5d5ba1325
[ "MIT" ]
null
null
null
sources/migrations/0027_remove_person_language.py
industrydive/sourcedive
eb8c4657a6c3182666dc15109bd982a5d5ba1325
[ "MIT" ]
16
2019-05-30T20:55:25.000Z
2020-06-09T18:52:34.000Z
sources/migrations/0027_remove_person_language.py
industrydive/sourcedive
eb8c4657a6c3182666dc15109bd982a5d5ba1325
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-05-27 20:59 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sources', '0026_rename_notes_to_import_notes'), ] operations = [ migrations.RemoveField( model_name='person', name='language...
18.888889
57
0.605882
1a14f117a29be4d1eda47aac5b50588084d38fb8
4,971
py
Python
tests/test_exit.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
73
2017-11-26T13:43:53.000Z
2022-02-25T02:52:54.000Z
tests/test_exit.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
191
2017-10-09T14:33:12.000Z
2022-03-23T16:23:06.000Z
tests/test_exit.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
48
2017-12-05T16:39:01.000Z
2022-02-14T12:01:30.000Z
import os import threading import time from copy import deepcopy from wsgiref.simple_server import WSGIRequestHandler, WSGIServer import pytest from fixtures import experiments from chaoslib.exit import exit_gracefully, exit_ungracefully from chaoslib.run import Runner from chaoslib.types import Strategy pytestmark ...
31.462025
80
0.683364
1a151df1c90718ed592bc9677f9a0c3cc6f1a1d2
1,906
py
Python
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/splunk_platform.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
4
2022-03-04T11:11:30.000Z
2022-03-07T09:55:07.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/splunk_platform.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
43
2021-03-09T08:58:29.000Z
2022-03-18T09:05:12.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/splunk_platform.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
2
2022-02-08T22:02:50.000Z
2022-03-27T16:52:26.000Z
# # Copyright 2021 Splunk 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...
29.78125
88
0.69255
1a1539ca1e25dfb5f9058cf665ed4bbbf32de035
944
py
Python
notebooks/queueing_theory/src/latency_distributions.py
jolynch/python_performance_toolkit
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
5
2018-10-31T20:24:19.000Z
2019-05-01T04:17:51.000Z
notebooks/queueing_theory/src/latency_distributions.py
jolynch/performance-analysis
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
null
null
null
notebooks/queueing_theory/src/latency_distributions.py
jolynch/performance-analysis
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
1
2019-10-14T11:58:48.000Z
2019-10-14T11:58:48.000Z
import random import numpy as np def zone(request): return "abc"[request % 3] def service(mean, slow, shape, slow_freq, slow_count): scale = mean - mean / shape scale_slow = slow - slow / shape def latency(request, worker): base = ((np.random.pareto(shape) + 1) * scale) if (zone(re...
23.6
64
0.59322
1a157d370c78a6798f98cb2c9660877240c83fcc
11,551
py
Python
models/backbone/xception.py
shiyutang/CAG_UDA
c3eda799e2edbd2dd0b6ab6bd8b12727167c9c91
[ "MIT" ]
126
2019-10-30T00:58:02.000Z
2022-01-26T06:29:10.000Z
models/backbone/xception.py
shiyutang/CAG_UDA
c3eda799e2edbd2dd0b6ab6bd8b12727167c9c91
[ "MIT" ]
14
2019-11-05T15:10:22.000Z
2022-02-08T09:05:53.000Z
models/backbone/xception.py
shiyutang/CAG_UDA
c3eda799e2edbd2dd0b6ab6bd8b12727167c9c91
[ "MIT" ]
26
2019-12-02T09:41:11.000Z
2022-01-29T10:46:41.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from models.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d def fixed_padding(inputs, kernel_size, dilation): kernel_size_effective = kernel_size + (kernel_size - 1) * (dilation - 1) ...
40.107639
116
0.583153
1a1581dd64c30a16a35ef0d72b212ec18969095b
1,811
py
Python
test/test_parse_topologies.py
janjoswig/MDParser
66d983c546e9f6f4eb4ccabe4a6d58312f2a1138
[ "MIT" ]
1
2021-07-29T21:53:24.000Z
2021-07-29T21:53:24.000Z
test/test_parse_topologies.py
janjoswig/MDParser
66d983c546e9f6f4eb4ccabe4a6d58312f2a1138
[ "MIT" ]
null
null
null
test/test_parse_topologies.py
janjoswig/MDParser
66d983c546e9f6f4eb4ccabe4a6d58312f2a1138
[ "MIT" ]
1
2021-01-29T09:54:53.000Z
2021-01-29T09:54:53.000Z
import pytest import mdparser.topology as mdtop class TestParseTopologies: """Regression tests for parsing of example topology files""" @pytest.mark.parametrize( "filename,parserkwargs", [ ("empty.top", {}), ("comment.top", {}), ("comment_multiline.top", {...
30.183333
66
0.468802
1a15dac06c0c7c43cbbd0e3e5bef726c02770cef
768
py
Python
backend/entries/models.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
1
2019-05-01T12:09:47.000Z
2019-05-01T12:09:47.000Z
backend/entries/models.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
34
2020-02-12T00:21:07.000Z
2022-03-02T13:43:11.000Z
backend/entries/models.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
null
null
null
from api.models import BaseModel from django.contrib.auth import get_user_model from django.db import models from timezone_field import TimeZoneField class Entry(BaseModel): author = models.ForeignKey(get_user_model(), on_delete=models.PROTECT) entry_date = models.DateField() entry_timezone = TimeZoneFiel...
36.571429
74
0.753906
1a160141b6d1618eb05d9e1351dfa86b4033d60f
6,249
py
Python
pbase_old/evaluation.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
10
2017-12-04T03:50:50.000Z
2020-09-25T07:24:32.000Z
pbase_old/evaluation.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
8
2018-07-14T09:45:38.000Z
2018-09-17T20:56:52.000Z
pbase_old/evaluation.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
1
2017-11-24T18:31:53.000Z
2017-11-24T18:31:53.000Z
from collections import Counter import os import subprocess def get_span(label, with_type): span, tag = [], [] st = -1 en = -1 flag = False for k, item in enumerate(label): if item[0] == 'I' and flag == False: flag = True st = k if with_type: ...
35.305085
116
0.604257
1a162a75e6d9a5b679049aa93bef924d772c937f
1,455
py
Python
app/models/user.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
app/models/user.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
2
2021-03-31T18:30:32.000Z
2021-12-13T19:44:07.000Z
app/models/user.py
myadventure/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
""" models.py User mongoengine models.. """ import hashlib from mongoengine import Document from mongoengine import fields class User(Document): """A platform user. :param str email: email address of user :param int facebook_id: user's facebook id :param str name: user's full name :param str fa...
25.982143
78
0.646735
1a16473ba8c15f702cbd2b475de364ca485418af
2,229
py
Python
test/functional/android/webelement_tests.py
hanneshauer/python-client
e5909ed4e364d0c980f80e48b3af4acf77bff08e
[ "Apache-2.0" ]
null
null
null
test/functional/android/webelement_tests.py
hanneshauer/python-client
e5909ed4e364d0c980f80e48b3af4acf77bff08e
[ "Apache-2.0" ]
null
null
null
test/functional/android/webelement_tests.py
hanneshauer/python-client
e5909ed4e364d0c980f80e48b3af4acf77bff08e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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...
36.540984
146
0.701211
1a16552d66c4949b59360ed86218f4f197c1bc5c
1,310
py
Python
openc2/version.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
6
2018-04-27T14:55:36.000Z
2022-02-06T16:42:53.000Z
openc2/version.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
25
2018-06-21T17:50:56.000Z
2020-04-08T15:38:14.000Z
openc2/version.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
10
2018-04-25T15:17:35.000Z
2021-08-14T09:36:23.000Z
# # The MIT License (MIT) # # Copyright 2019 AT&T Intellectual Property. All other rights reserved. # # 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 l...
39.69697
95
0.759542
1a169964e5022f7d029af0f496d5f2261325ac3a
2,310
py
Python
venv/Lib/site-packages/pyrogram/raw/types/photo_stripped_size.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/photo_stripped_size.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/photo_stripped_size.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
30.8
103
0.611688
1a16f0cdc245fc8c5381d3ce2e0a4f7a64101f59
8,912
py
Python
buttonwood/MarketMetrics/OrderLevelBookListeners/PeriodBarListeners.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
2
2020-01-04T05:28:20.000Z
2021-07-21T21:19:43.000Z
buttonwood/MarketMetrics/OrderLevelBookListeners/PeriodBarListeners.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
45
2019-07-04T15:13:34.000Z
2020-06-30T19:41:45.000Z
buttonwood/MarketMetrics/OrderLevelBookListeners/PeriodBarListeners.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
3
2020-04-18T16:49:14.000Z
2021-07-21T21:19:52.000Z
""" This file is part of Buttonwood. Buttonwood is a python software package created to help quickly create, (re)build, or analyze markets, market structures, and market participants. MIT License Copyright (c) 2016-2020 Peter F. Nabicht Permission is hereby granted, free of charge, to any person obtaining a copy o...
37.923404
222
0.689744
1a172d300e3b198c956c75776c8444692ae1ab8e
108
py
Python
abc/abc206/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc206/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc206/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) d = 1 while True: if d * d + d - 2 * N >= 0: print(d) break d += 1
13.5
30
0.37963
1a173448172aed24a0f469a84d82f983f7216b50
2,612
py
Python
app/requests.py
Abdifatah135/News-Highlig
82a62fdf8404ccd51c7896faac7282f15c49652d
[ "Unlicense" ]
null
null
null
app/requests.py
Abdifatah135/News-Highlig
82a62fdf8404ccd51c7896faac7282f15c49652d
[ "Unlicense" ]
null
null
null
app/requests.py
Abdifatah135/News-Highlig
82a62fdf8404ccd51c7896faac7282f15c49652d
[ "Unlicense" ]
null
null
null
import urllib.request,json from .models import Sources,Articles from datetime import datetime #getting the api key api_key = None #getting the news base url base_url = None #getting the articlces url articles_url = None def configure_request(app): global api_key,base_url,articles_url api_key = app.config['NEWS_AP...
26.927835
87
0.762251
1a1761a8f0d4b7fa11432f4f317ecaec5a9ae5ea
3,975
py
Python
ibmsecurity/isam/base/network/interfaces.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2018-04-24T19:57:09.000Z
2018-04-24T19:57:09.000Z
ibmsecurity/isam/base/network/interfaces.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/network/interfaces.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2020-04-03T09:30:01.000Z
2020-04-03T09:30:01.000Z
import logging import ibmsecurity.utilities.tools logger = logging.getLogger(__name__) def get_all(isamAppliance, check_mode=False, force=False): """ Retrieving all interfaces :rtype: (str, dict) """ return isamAppliance.invoke_get("Retrieving all interfaces", "/net/ifaces") def get(isamApplian...
30.113636
115
0.615346
1a176fcff1384e596947ee38f89fc12c1986fa8f
1,182
py
Python
tests/test_compute_head.py
zefeiteo/toyrobotchallenge
ecba6878d0aa923d87e915de141da74b707d4a7a
[ "MIT" ]
1
2021-11-12T08:16:57.000Z
2021-11-12T08:16:57.000Z
tests/test_compute_head.py
zefeiteo/toyrobotchallenge
ecba6878d0aa923d87e915de141da74b707d4a7a
[ "MIT" ]
14
2021-11-11T17:19:38.000Z
2021-11-11T17:41:18.000Z
tests/test_compute_head.py
zefeiteo/toyrobotchallenge
ecba6878d0aa923d87e915de141da74b707d4a7a
[ "MIT" ]
null
null
null
import unittest import os import sys # Import from 'toyrobot' subfolder sys.path.insert(0,'.') from toyrobot.table import Table from toyrobot.robot import Robot, InvalidPosError # Clears terminal os.system('cls') # Variable table dimensions tDimX = 5 tDimY = 5 # Define table dimensions table = Table(tDimX, tDimY) ...
27.488372
81
0.621827
1a17876379106e2ffe39efdf1b04ef106fefaddd
4,624
py
Python
tests/mdts/lib/binding_manager.py
gdecandia/midonet-1
6a8e2ec3941061716fbf13c99d2133c7a3b5d3aa
[ "Apache-2.0" ]
null
null
null
tests/mdts/lib/binding_manager.py
gdecandia/midonet-1
6a8e2ec3941061716fbf13c99d2133c7a3b5d3aa
[ "Apache-2.0" ]
null
null
null
tests/mdts/lib/binding_manager.py
gdecandia/midonet-1
6a8e2ec3941061716fbf13c99d2133c7a3b5d3aa
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# Copyright 2014 Midokura SARL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
34.766917
77
0.599913
1a17df0b471cb18b768ba0098aba7f16077200b1
19,180
py
Python
python/domain/bio2019/content/ch12.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
2
2021-01-09T17:00:51.000Z
2021-02-19T09:35:26.000Z
python/domain/bio2019/content/ch12.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
null
null
null
python/domain/bio2019/content/ch12.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
1
2020-02-24T15:50:05.000Z
2020-02-24T15:50:05.000Z
# -*- coding: latin-1 -*- """ fragments - define text fragments in the document """ from domain.norm_document.model import Chapter, Section, Norm, Verifier CH12S01 = Section( identifier="12.01", title="Bedieningsprocedures en verantwoordelijkheden", text="Doelstelling: Correcte en veilige bediening va...
40.635593
120
0.500834
1a182fc15285b97717b90a6289c4d1d5750ff402
1,240
py
Python
Task2G.py
DomDale/ia-flood-risk
1c5c7eb7e30faa3f464603aa43c2e7abf9f2e4b7
[ "MIT" ]
null
null
null
Task2G.py
DomDale/ia-flood-risk
1c5c7eb7e30faa3f464603aa43c2e7abf9f2e4b7
[ "MIT" ]
null
null
null
Task2G.py
DomDale/ia-flood-risk
1c5c7eb7e30faa3f464603aa43c2e7abf9f2e4b7
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list from floodsystem.stationdata import update_water_levels from floodsystem.flood import stations_level_over_threshold from floodsystem.flood import stations_highest_rel_level from floodsystem.datafetcher import fetch_measure_levels from floodsystem.analysis import po...
31.794872
103
0.719355
1a183f57b2c97d37b697cb3a4eff927affb3d170
3,810
py
Python
imagersite/imager_images/views.py
ztaylor2/django-imager
51a158b94c31bc58c510b8b4a9ec907c6189fd24
[ "MIT" ]
null
null
null
imagersite/imager_images/views.py
ztaylor2/django-imager
51a158b94c31bc58c510b8b4a9ec907c6189fd24
[ "MIT" ]
null
null
null
imagersite/imager_images/views.py
ztaylor2/django-imager
51a158b94c31bc58c510b8b4a9ec907c6189fd24
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView, ListView, CreateView, UpdateView from imager_profile.models import ImagerProfile from django.core.urlresolvers import reverse_lazy from imager_images.models import Album, Photo class LibraryView(ListView): """Library view.""" model = ImagerProfile template_na...
28.432836
94
0.628871
1a187ed734bc53cc22174636c20c68939938a170
22,543
py
Python
src/ror/segmentation.py
rowennetfinder555/Object-Recognition2
e519e4ff96f13c850eb17215c553200c43c18b84
[ "MIT" ]
null
null
null
src/ror/segmentation.py
rowennetfinder555/Object-Recognition2
e519e4ff96f13c850eb17215c553200c43c18b84
[ "MIT" ]
null
null
null
src/ror/segmentation.py
rowennetfinder555/Object-Recognition2
e519e4ff96f13c850eb17215c553200c43c18b84
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' -------------------------------------------------------------------- This file is part of the raster object recognition project. https://github.com/woodbri/raster-object-recognition MIT License. See LICENSE file for details. Copyright 2017, Stephen Woodbridge ---------------...
33.696562
120
0.555206
1a187eea220e0fabcb9069ebe949fac014aa816f
291
py
Python
src/oscar/apps/catalogue/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/catalogue/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/catalogue/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class CatalogueConfig(AppConfig): label = 'catalogue' name = 'oscar.apps.catalogue' verbose_name = _('Catalogue') def ready(self): from . import receivers # noqa
24.25
56
0.683849
1a18804354962a55e277776660439b92deac6d7d
110
py
Python
src/beast/python/clean-python.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
58
2015-01-07T09:10:59.000Z
2019-07-15T14:34:01.000Z
src/beast/python/clean-python.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
12
2015-01-02T00:01:45.000Z
2018-04-25T12:35:02.000Z
src/beast/python/clean-python.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
23
2015-01-04T00:13:27.000Z
2019-02-15T18:01:17.000Z
#!/bin/bash # Remove all the compiled .pyc files at or below this directory. find . -name \*.pyc | xargs rm
18.333333
64
0.681818
1a188b294a5283ebdbbbd04f29c91ad5a56e732f
19,279
py
Python
watex/analysis/basics.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
watex/analysis/basics.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
watex/analysis/basics.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 Kouadio K. Laurent, Wed Jul 7 22:23:02 2021 hz # This module is part of the WATex analysis package, which is released under a # MIT- licence. """ Created on Mon Jul 12 14:24:18 2021 :synopsis: Module :mod:`watex.analysis.basics` is actually focused on...
38.635271
115
0.50957
1a18a1dbe46162aaa85b0214f073782af5ffd257
9,091
py
Python
mods/ROOTmanager.py
jmlazaro25/ldmx-bdt
f92d651392577409482e765b73737e63c473ae5f
[ "MIT" ]
2
2021-03-30T12:56:34.000Z
2021-04-12T23:10:51.000Z
mods/ROOTmanager.py
jmlazaro25/ldmx-bdt
f92d651392577409482e765b73737e63c473ae5f
[ "MIT" ]
8
2021-04-05T03:41:07.000Z
2021-06-11T12:38:00.000Z
mods/ROOTmanager.py
jmlazaro25/ldmx-bdt
f92d651392577409482e765b73737e63c473ae5f
[ "MIT" ]
1
2021-04-12T23:11:30.000Z
2021-04-12T23:11:30.000Z
import os import ROOT as r import numpy as np from mods import configuration as config ################################################## # Classes ################################################## class TreeProcess: """ For analysing .root samples """ def __init__(self, pConfig, br...
32.467857
84
0.535475
1a192671d69fd3dd1a3d0cfdf3628b43dd15d75f
3,374
py
Python
tests/test_cli/test_get_wealth.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_get_wealth.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_get_wealth.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021-2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
35.145833
89
0.655898
1a192931135f421a54e6a4e805ff44a1d3cbd30b
17,102
py
Python
mpsk_stage3.py
aoltean-Q2S/DS1COM2
006286779989defc2c163c20d67010b306d20ccb
[ "MIT" ]
null
null
null
mpsk_stage3.py
aoltean-Q2S/DS1COM2
006286779989defc2c163c20d67010b306d20ccb
[ "MIT" ]
null
null
null
mpsk_stage3.py
aoltean-Q2S/DS1COM2
006286779989defc2c163c20d67010b306d20ccb
[ "MIT" ]
1
2019-06-28T19:19:28.000Z
2019-06-28T19:19:28.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Mpsk Stage3 # Generated: Sun Nov 18 09:17:29 2018 ################################################## if __name__ == '__main__': import ctypes import sys if sys.platform.s...
42.969849
169
0.648813
1a192d4cd7dd0d6fee86c27f1785e696cff12164
584
py
Python
koda/settings/local.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
koda/settings/local.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
koda/settings/local.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
""" Django settings for koda project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ from .base import...
22.461538
65
0.664384
1a194cb328980a004ed436b72876202bca3fa0d4
462
py
Python
agc/004/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
agc/004/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
agc/004/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() A, B, C = na() ansA = abs((A // 2) * B * C - (A - A // 2) * B * C) ansB = abs((B // 2) * A * C - (B - B /...
23.1
57
0.480519
1a1956819e1f019adae7dbef04d260058bb9b611
16,014
py
Python
blackjax/kernels.py
zaxtax/blackjax
4373cadc890b00cba3d3a616798a43e79f947dc6
[ "Apache-2.0" ]
null
null
null
blackjax/kernels.py
zaxtax/blackjax
4373cadc890b00cba3d3a616798a43e79f947dc6
[ "Apache-2.0" ]
null
null
null
blackjax/kernels.py
zaxtax/blackjax
4373cadc890b00cba3d3a616798a43e79f947dc6
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Dict, Union import jax import blackjax.adaptation as adaptation import blackjax.mcmc as mcmc import blackjax.smc as smc from blackjax.base import AdaptationAlgorithm, SamplingAlgorithm from blackjax.types import Array, PRNGKey, PyTree __all__ = [ "adaptive_tempered_smc", "hmc", ...
29.765799
125
0.628887
1a19bde7a657cfeb4631ccf74206180503843d1d
2,294
py
Python
selsum/modules/contextualizer.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
34
2021-09-10T17:10:10.000Z
2022-03-28T05:12:07.000Z
selsum/modules/contextualizer.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
null
null
null
selsum/modules/contextualizer.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
3
2021-11-20T08:21:19.000Z
2022-03-28T05:12:14.000Z
import torch import torch.nn as nn from fairseq.models.transformer import TransformerEncoder as TEnc, LayerNorm from torch.nn import Module from fairseq.modules.positional_embedding import PositionalEmbedding import torch.nn.functional as F from fairseq import utils class Contextualizer(Module): """Performs seque...
33.735294
92
0.602005
1a19f062ec269d5c51509d31cf2344638026ab70
1,203
py
Python
examples/docs_snippets/docs_snippets_tests/concepts_tests/types_tests/test_types.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets_tests/concepts_tests/types_tests/test_types.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets_tests/concepts_tests/types_tests/test_types.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import pytest from dagster import DagsterTypeCheckDidNotPass from docs_snippets.concepts.types.types import test_dagster_type def test_basic_even_type(): from docs_snippets.concepts.types.types import double_even double_even(num=2) with pytest.raises(DagsterTypeCheckDidNotPass): double_even(num...
25.595745
79
0.796342
1a19f7b9570fdaad68a34991600d6c3a6a1f8e33
1,643
py
Python
src/pyseed/__main__.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
src/pyseed/__main__.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
src/pyseed/__main__.py
okosioc/pyseed
a4ee4bb6f005c9a9b80eafea45b91ddb7354fa91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ __main__ ~~~~~~~~~~~~~~ Commands. :copyright: (c) 2021 by weiminfeng. :date: 2021/8/31 """ import argparse import sys from typing import List, Tuple, Any from importlib_metadata import version, entry_points import pyseed from pyseed.log import configure_logger def l...
23.471429
87
0.621424