hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796dc59e005efb8c6fa3448bb4040a4bc3574e74
152
py
Python
frequency.py
Harijith/Web-Scrapping
c474071e4e929ec3c44d63484251c3d0096a7836
[ "bzip2-1.0.6" ]
null
null
null
frequency.py
Harijith/Web-Scrapping
c474071e4e929ec3c44d63484251c3d0096a7836
[ "bzip2-1.0.6" ]
null
null
null
frequency.py
Harijith/Web-Scrapping
c474071e4e929ec3c44d63484251c3d0096a7836
[ "bzip2-1.0.6" ]
null
null
null
my_dict={"name":"A","age":10,"marks":60,"course":"science","subject":"science"} list=[v for v in my_dict.values()] x=list.count("science") print(x)
30.4
80
0.644737
796dc5d0d80d1b4fb0927c232760326607b63551
8,214
py
Python
fscourses/data/scrape_courses.py
anthonydevelops/fs-courses
d3287a645ef52707ed7f170c0cee46f72a297fbf
[ "Apache-2.0" ]
null
null
null
fscourses/data/scrape_courses.py
anthonydevelops/fs-courses
d3287a645ef52707ed7f170c0cee46f72a297fbf
[ "Apache-2.0" ]
null
null
null
fscourses/data/scrape_courses.py
anthonydevelops/fs-courses
d3287a645ef52707ed7f170c0cee46f72a297fbf
[ "Apache-2.0" ]
null
null
null
# scrape_courses.py # Focuses on scraping the desired contents of each class and # section associated through fresno states class search web application import time import re import string import json from selenium import webdriver # Section stores all section related info class Section: def __init__(self, title...
41.908163
111
0.593134
796dc69f47d10cfafc688a3ad030706b29692de7
3,482
py
Python
strategies/test_account.py
gnmerritt/coinbot
f685ceb234becdb96aa6b090ba33c8d001f2401c
[ "MIT" ]
2
2018-01-26T17:38:59.000Z
2020-02-13T16:14:22.000Z
strategies/test_account.py
gnmerritt/coinbot
f685ceb234becdb96aa6b090ba33c8d001f2401c
[ "MIT" ]
null
null
null
strategies/test_account.py
gnmerritt/coinbot
f685ceb234becdb96aa6b090ba33c8d001f2401c
[ "MIT" ]
2
2018-10-18T22:18:01.000Z
2019-01-03T09:15:51.000Z
from datetime import datetime, timedelta import unittest from .account import Account class TestAccount(unittest.TestCase): def test_initial(self): account = Account() self.assertEqual(account.balance('BTC'), 0) self.assertEqual(account.opened('BTC'), None) self.assertIsNone(accoun...
37.847826
76
0.611143
796dc6bb630a1973ec4953136bfccb42aceaa14c
67,843
py
Python
manim/mobject/opengl_mobject.py
fargetan/manim
6eed2763308955bdb9debff0d74ee48893ef8a69
[ "MIT" ]
1
2021-09-05T07:34:18.000Z
2021-09-05T07:34:18.000Z
manim/mobject/opengl_mobject.py
fargetan/manim
6eed2763308955bdb9debff0d74ee48893ef8a69
[ "MIT" ]
null
null
null
manim/mobject/opengl_mobject.py
fargetan/manim
6eed2763308955bdb9debff0d74ee48893ef8a69
[ "MIT" ]
null
null
null
import copy import itertools as it import random import sys from functools import wraps from math import ceil from typing import Iterable, Optional, Tuple, Union import moderngl import numpy as np from colour import Color from .. import config from ..constants import * from ..utils.bezier import interpolate from ..ut...
33.46966
118
0.600209
796dc73118fa5a83a051aee995498fe0d1ba33c2
1,470
py
Python
train/score_predictors/models/base_model.py
idearibosome/tf_perceptual_eusr
2bdd79adcbb7ee55bfc0593879fd5831c9859098
[ "Apache-2.0" ]
45
2018-09-12T19:15:18.000Z
2021-06-11T13:12:55.000Z
train/score_predictors/models/base_model.py
idearibosome/tf_perceptual_eusr
2bdd79adcbb7ee55bfc0593879fd5831c9859098
[ "Apache-2.0" ]
6
2018-10-29T11:04:35.000Z
2021-08-24T06:33:36.000Z
train/score_predictors/models/base_model.py
idearibosome/tf_perceptual_eusr
2bdd79adcbb7ee55bfc0593879fd5831c9859098
[ "Apache-2.0" ]
11
2018-10-11T05:14:14.000Z
2021-03-13T16:09:15.000Z
import tensorflow as tf FLAGS = tf.flags.FLAGS def create_model(): return BaseModel() class BaseModel: MODEL_OUTPUT_SCORES_NAME = 'output_scores' MODEL_OUTPUT_FEATURES_NAME = 'output_features' def __init__(self): pass def prepare(self, is_training, input_size): """ Prepare the model to be us...
28.269231
109
0.704762
796dc737f57c76e4420b849d7de10f711be5bd33
1,382
py
Python
tests_gui/test_BasicRun.py
DLance96/TrafficSim-Simulator
69ba3bfddc8b8772b80a99fb7bb6b4367b417e5d
[ "MIT" ]
null
null
null
tests_gui/test_BasicRun.py
DLance96/TrafficSim-Simulator
69ba3bfddc8b8772b80a99fb7bb6b4367b417e5d
[ "MIT" ]
5
2017-10-27T16:10:46.000Z
2017-12-01T05:05:42.000Z
tests_gui/test_BasicRun.py
DLance96/TrafficSim-Simulator
69ba3bfddc8b8772b80a99fb7bb6b4367b417e5d
[ "MIT" ]
2
2017-09-19T20:53:33.000Z
2017-12-31T06:41:37.000Z
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), "..")) import traceback from src.SimulationController import SimulationController from src.TrafficMap import TrafficMap from src.Road import Road from src.Intersection import Intersection from src.drivers.DriverTemplate import DriverTemplate...
43.1875
100
0.74602
796dc8280011e1f7b380c821a8b9ce6c890419d8
28,264
py
Python
tests/unit/test_oneview_logical_interconnect.py
SHANDCRUZ/test-codecov
f7aca851423641570fa86d3f8233235d14c71756
[ "Apache-2.0" ]
null
null
null
tests/unit/test_oneview_logical_interconnect.py
SHANDCRUZ/test-codecov
f7aca851423641570fa86d3f8233235d14c71756
[ "Apache-2.0" ]
null
null
null
tests/unit/test_oneview_logical_interconnect.py
SHANDCRUZ/test-codecov
f7aca851423641570fa86d3f8233235d14c71756
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ### # Copyright (2016-2021) Hewlett Packard Enterprise Development LP # # 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/l...
37.887399
141
0.690667
796dc83cd68592624760d4a42f59edf91f8b1210
9,925
py
Python
test/functional/feature_config_args.py
DeckerSU/namecoin-core
4f110494a8d54fe71531f3a09261e0e19193bfc8
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
DeckerSU/namecoin-core
4f110494a8d54fe71531f3a09261e0e19193bfc8
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
DeckerSU/namecoin-core
4f110494a8d54fe71531f3a09261e0e19193bfc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various command line arguments and configuration file parameters.""" import os from test_framewo...
49.625
207
0.646851
796dc847f55b07791d38ffda2930da0489fb439f
2,119
py
Python
pyrobolearn/dynamics/linear.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/dynamics/linear.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/dynamics/linear.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provides the linear dynamic transition function approximators The linear dynamic model predicts using a linear model the next state given the current state and action. """ from pyrobolearn.approximators import LinearApproximator from pyrobolearn.dynamics.dynamic import...
42.38
116
0.69278
796dc85836997d6d1962923b1c1feb966e0f6a94
386
py
Python
pma_api/routes/docs.py
joeflack4/pma-api
de213833c93ad0c90b127188526c9eced31edc75
[ "MIT" ]
2
2018-08-24T14:27:25.000Z
2020-05-11T18:59:24.000Z
pma_api/routes/docs.py
joeflack4/pma-api
de213833c93ad0c90b127188526c9eced31edc75
[ "MIT" ]
36
2018-07-13T15:49:50.000Z
2019-07-17T18:29:28.000Z
pma_api/routes/docs.py
joeflack4/pma-api
de213833c93ad0c90b127188526c9eced31edc75
[ "MIT" ]
4
2018-07-12T19:24:52.000Z
2021-03-09T16:08:38.000Z
"""Documentation related routes""" from flask import redirect from pma_api.routes import root @root.route('/docs') def documentation(): """Documentation. .. :quickref: Docs; Redirects to official documentation. Args: n/a Returns: redirect(): Redirects to official documentation. ...
19.3
60
0.665803
796dc91ff2c3f4c86e684b1c6214f90db541b32a
312
py
Python
Python OOP/Inheritance/Shop/product.py
bvoytash/Software-University
f2c6940cde093cea7b1c38bd88305206564c9947
[ "MIT" ]
null
null
null
Python OOP/Inheritance/Shop/product.py
bvoytash/Software-University
f2c6940cde093cea7b1c38bd88305206564c9947
[ "MIT" ]
null
null
null
Python OOP/Inheritance/Shop/product.py
bvoytash/Software-University
f2c6940cde093cea7b1c38bd88305206564c9947
[ "MIT" ]
null
null
null
class Product: def __init__(self, name: str, quantity: int): self.name = name self.quantity = quantity def decrease(self, quantity: int): if self.quantity >= quantity: self.quantity -= quantity def increase(self, quantity: int): self.quantity += quantity
28.363636
49
0.612179
796dc98ae5aedf97a76e3be4dfda2017551474ae
10,566
py
Python
lib/python2.7/site-packages/sklearn/linear_model/passive_aggressive.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
lib/python2.7/site-packages/sklearn/linear_model/passive_aggressive.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
lib/python2.7/site-packages/sklearn/linear_model/passive_aggressive.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# Authors: Rob Zinkov, Mathieu Blondel # License: BSD 3 clause from .stochastic_gradient import BaseSGDClassifier from .stochastic_gradient import BaseSGDRegressor from .stochastic_gradient import DEFAULT_EPSILON class PassiveAggressiveClassifier(BaseSGDClassifier): """Passive Aggressive Classifier Read mor...
35.22
79
0.598429
796dca01e673fa235e6e4050da04ad16d4d2ca10
3,664
py
Python
freeze_graph/freeze_graph.py
yx0123/monodepth-cpp
cbaa711e1e7fa4cb5be49dcc49383f9df6e51831
[ "MIT" ]
93
2018-10-08T11:33:18.000Z
2022-03-14T04:47:29.000Z
freeze_graph/freeze_graph.py
yx0123/monodepth-cpp
cbaa711e1e7fa4cb5be49dcc49383f9df6e51831
[ "MIT" ]
20
2018-10-16T08:32:20.000Z
2021-11-12T12:31:35.000Z
freeze_graph/freeze_graph.py
yx0123/monodepth-cpp
cbaa711e1e7fa4cb5be49dcc49383f9df6e51831
[ "MIT" ]
34
2018-10-11T05:08:48.000Z
2021-03-31T11:14:59.000Z
""" This file is part of monodepth-cpp MIT License Copyright (c) 2018 Shing Yan Loo (lsyan@ualberta.ca) 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 lim...
37.773196
136
0.770197
796dca74d9c315619db6be9864caeaacbfab2624
10,171
py
Python
torch_utils/ops/bias_act.py
HamidL/stylegan2-ada-pytorch
46aa027d72b305c8a2219ad4cfd2f6fd19fcf848
[ "BSD-Source-Code" ]
null
null
null
torch_utils/ops/bias_act.py
HamidL/stylegan2-ada-pytorch
46aa027d72b305c8a2219ad4cfd2f6fd19fcf848
[ "BSD-Source-Code" ]
null
null
null
torch_utils/ops/bias_act.py
HamidL/stylegan2-ada-pytorch
46aa027d72b305c8a2219ad4cfd2f6fd19fcf848
[ "BSD-Source-Code" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
47.528037
185
0.58539
796dcad7b7de6dfdadc7d790d4eb3aa8c0cca8a9
2,188
py
Python
tests/conftest.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from typing import Iterator import pytest from snuba import settings from snuba.clickhouse.native import ClickhousePool from snuba.clusters.cluster import ClickhouseClientSettings from snuba.datasets.schemas.tables import WritableTableSchema from snuba.datasets.storages import StorageKey from snuba.datasets.storages....
31.710145
83
0.73766
796dcaebc2363020648e8880566a6b00872b318a
2,961
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py
amrElroumy/autorest.python
b37af1779f6d53b4fa0d92da62151f8133006f98
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py
amrElroumy/autorest.python
b37af1779f6d53b4fa0d92da62151f8133006f98
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py
amrElroumy/autorest.python
b37af1779f6d53b4fa0d92da62151f8133006f98
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.561644
107
0.699764
796dcb92949f86988bc2b33723c3ee03ec296691
1,042
py
Python
bonus/restAPI/ex3b.py
anejolazaro70/python_july19
d4fd2f0d00d22f2f103ef9fe9c289c8b0651b454
[ "Apache-2.0" ]
null
null
null
bonus/restAPI/ex3b.py
anejolazaro70/python_july19
d4fd2f0d00d22f2f103ef9fe9c289c8b0651b454
[ "Apache-2.0" ]
null
null
null
bonus/restAPI/ex3b.py
anejolazaro70/python_july19
d4fd2f0d00d22f2f103ef9fe9c289c8b0651b454
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import requests import os from urllib3.exceptions import InsecureRequestWarning from pprint import pprint def restAPI_get(url, http_headers): response = requests.get(url, headers=http_headers, verify=False) return response def main(): url = 'http://netbox.lasthop.io/api/dcim/devices...
32.5625
82
0.65547
796dcc40215ae6d2cdc70e3e6c5cdc00d3c73b2e
38,815
py
Python
sql/models.py
issacmark/Archery
c9b057d37e47894ca8531e5cd10afdb064cd0122
[ "Apache-2.0" ]
1
2022-01-19T03:20:03.000Z
2022-01-19T03:20:03.000Z
sql/models.py
lmer599/Archery
d3c44d7af46c2de60c5973771d3a1be7717c848d
[ "Apache-2.0" ]
null
null
null
sql/models.py
lmer599/Archery
d3c44d7af46c2de60c5973771d3a1be7717c848d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from django.db import models from django.contrib.auth.models import AbstractUser from mirage import fields from django.utils.translation import gettext as _ from mirage.crypto import Crypto class ResourceGroup(models.Model): """ 资源组 """ group_id = models.AutoField('组ID', primar...
43.710586
122
0.691228
796dcc81fac5863756ade23bf68323c718fa549d
3,574
py
Python
shelter/core/processes.py
gjask/shelter
1e8fb3d79e5fd97db98a5acca1810ef5ea3eaf42
[ "BSD-3-Clause" ]
null
null
null
shelter/core/processes.py
gjask/shelter
1e8fb3d79e5fd97db98a5acca1810ef5ea3eaf42
[ "BSD-3-Clause" ]
null
null
null
shelter/core/processes.py
gjask/shelter
1e8fb3d79e5fd97db98a5acca1810ef5ea3eaf42
[ "BSD-3-Clause" ]
null
null
null
""" Module :module:`shelter.core.processes` provides an ancestor and functionality for writing service processes. """ import ctypes import logging import multiprocessing import os import signal import time import setproctitle from shelter.core.constants import SERVICE_PROCESS __all__ = ['BaseProcess'] class BaseP...
30.288136
77
0.595971
796dccb990cd83d13d7238b5b81e5a1b4be55c7f
5,732
py
Python
UMLRT2Kiltera_MM/MT_post__Operation.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/MT_post__Operation.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/MT_post__Operation.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __MT_post__Operation.py_____________________________________________________ Automatically generated AToM3 syntactic object (DO NOT MODIFY DIRECTLY) Author: gehan Modified: Sun Feb 15 10:31:27 2015 ____________________________________________________________________________ """ from ASGNode import * from ATOM3Typ...
48.576271
745
0.609037
796dccbeb1d95ece49c5443c4e2d95ad62ae7b31
3,873
py
Python
memEventParse.py
cwsmith/parseKokkosMemEvents
8ae87ea1db5a1eb7304b704544e6717f0754b0bb
[ "BSD-3-Clause" ]
2
2019-12-20T17:40:22.000Z
2020-09-02T17:54:14.000Z
memEventParse.py
cwsmith/parseKokkosMemEvents
8ae87ea1db5a1eb7304b704544e6717f0754b0bb
[ "BSD-3-Clause" ]
null
null
null
memEventParse.py
cwsmith/parseKokkosMemEvents
8ae87ea1db5a1eb7304b704544e6717f0754b0bb
[ "BSD-3-Clause" ]
null
null
null
import pyparsing as pp import sys import pandas as pd import matplotlib.pyplot as plt if len(sys.argv) is not 4: print("Usage:", sys.argv[0], "<mem-events file> <max regions> <output plot>") sys.exit(1) filepath = sys.argv[1] with open(filepath) as f: lines = f.read() integer=pp.Combine(pp.Option...
29.120301
88
0.62613
796dcdff1cab65a53057cc1fcc66f27f1143648b
3,280
py
Python
lib/request_utils.py
mstou/ToyChord
2777149e717171a343f6670a96ce7bc7aeda1c8c
[ "MIT" ]
1
2022-01-09T18:30:40.000Z
2022-01-09T18:30:40.000Z
lib/request_utils.py
mstou/ToyChord
2777149e717171a343f6670a96ce7bc7aeda1c8c
[ "MIT" ]
null
null
null
lib/request_utils.py
mstou/ToyChord
2777149e717171a343f6670a96ce7bc7aeda1c8c
[ "MIT" ]
1
2022-01-11T13:17:37.000Z
2022-01-11T13:17:37.000Z
import requests from time import sleep from lib.constants import * def log_request(targetNode): url = HTTP + targetNode.get_address() + '/log' return requests.get(url) def join_request(targetNode, port, ip): sleep(2) url = HTTP + targetNode.get_address() + '/join' params = f'{PORT}={port}&{IP}={ip...
35.652174
80
0.652744
796dce7e1828d2aa400de37656f0135febcf445a
5,991
py
Python
optax/_src/clipping.py
GeoffNN/optax
9ab8404172c66b569b9d4ebd5a5b35a1bb611b4f
[ "Apache-2.0" ]
null
null
null
optax/_src/clipping.py
GeoffNN/optax
9ab8404172c66b569b9d4ebd5a5b35a1bb611b4f
[ "Apache-2.0" ]
null
null
null
optax/_src/clipping.py
GeoffNN/optax
9ab8404172c66b569b9d4ebd5a5b35a1bb611b4f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Limited. 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 ...
33.099448
80
0.696044
796dd0acd61486fc919e408973dcb2ccb2fd1b26
259
py
Python
backend/linkanywhere/apps/categories/models.py
apirobot/linkanywhere-back
e21d6725fbe0e74a7301e40f9d9bdbac17c68e68
[ "MIT" ]
null
null
null
backend/linkanywhere/apps/categories/models.py
apirobot/linkanywhere-back
e21d6725fbe0e74a7301e40f9d9bdbac17c68e68
[ "MIT" ]
null
null
null
backend/linkanywhere/apps/categories/models.py
apirobot/linkanywhere-back
e21d6725fbe0e74a7301e40f9d9bdbac17c68e68
[ "MIT" ]
null
null
null
import uuid from django.db import models class Category(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) name = models.CharField(max_length=60, unique=True) def __str__(self): return self.name
21.583333
79
0.725869
796dd11a57c9a76e7966ae02bad8e4373ed92d1e
720
py
Python
Exercicios Python/ex084.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
Exercicios Python/ex084.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
Exercicios Python/ex084.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
cont = 0 maior = menor = 0 maior_nome = [] menor_nome = [] while True: name = input('Nome: ') weight = float(input('Peso : ')) if cont == 0: menor = maior = weight elif cont >= 1: if weight > maior: maior = weight maior_nome.append(name) if weight < menor...
24.827586
69
0.552778
796dd14b48a3440bd081e5b43eacefcb5d22ca59
79,819
py
Python
keras/losses_test.py
collinzrj/keras
79e9e20d8b95f043cd8a3a240b70928d468a60ac
[ "Apache-2.0" ]
1
2021-09-11T21:25:20.000Z
2021-09-11T21:25:20.000Z
keras/losses_test.py
collinzrj/keras
79e9e20d8b95f043cd8a3a240b70928d468a60ac
[ "Apache-2.0" ]
null
null
null
keras/losses_test.py
collinzrj/keras
79e9e20d8b95f043cd8a3a240b70928d468a60ac
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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...
41.314182
82
0.605294
796dd151171e36c0cf7bde4d1dea6cb033df0c74
6,402
py
Python
google/ads/google_ads/v6/proto/services/operating_system_version_constant_service_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/operating_system_version_constant_service_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/operating_system_version_constant_service_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/services/operating_system_version_constant_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from g...
60.971429
1,312
0.844424
796dd1b83793b40a6f21cf1b0e12f6e21b681b90
93
py
Python
.history/views_20210908040516.py
GraceOswal/NewsRoom
591d3559dc313564695ce7fbb0052ebeceea5cc3
[ "MIT" ]
null
null
null
.history/views_20210908040516.py
GraceOswal/NewsRoom
591d3559dc313564695ce7fbb0052ebeceea5cc3
[ "MIT" ]
null
null
null
.history/views_20210908040516.py
GraceOswal/NewsRoom
591d3559dc313564695ce7fbb0052ebeceea5cc3
[ "MIT" ]
null
null
null
from flask import render_template from app import app #Views @app.route("route") def func():
15.5
33
0.763441
796dd30bd871e07bcf736ca53f313802a89901d4
2,908
py
Python
scripts/keras_benchmarks/models/cifar10_cnn_benchmark.py
MikulasZelinka/benchmarks
23b611b27ecb2927dab647c9d1892f5bdfc24c88
[ "Apache-2.0" ]
2
2019-03-18T10:04:20.000Z
2019-08-13T05:50:33.000Z
scripts/keras_benchmarks/models/cifar10_cnn_benchmark.py
MikulasZelinka/benchmarks
23b611b27ecb2927dab647c9d1892f5bdfc24c88
[ "Apache-2.0" ]
19
2020-01-28T21:49:14.000Z
2022-02-09T23:28:14.000Z
scripts/keras_benchmarks/models/cifar10_cnn_benchmark.py
ganeshmaharaj/benchmarks
ee430b92c131df4ab6816bfdc0ad8227b9d96244
[ "Apache-2.0" ]
1
2020-09-17T13:50:50.000Z
2020-09-17T13:50:50.000Z
''' Original Model from keras/examples/cifar10_cnn.py Benchmark CNN model ''' from __future__ import print_function import numpy as np import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.utils import multi_gpu_model...
31.956044
75
0.61795
796dd3156694bc14547896c98b4edfdc501b7027
3,987
py
Python
indico/modules/events/abstracts/settings.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
null
null
null
indico/modules/events/abstracts/settings.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/modules/events/abstracts/settings.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from indico.core.db.sqlalchemy.descriptions import RenderMode fro...
30.669231
105
0.715325
796dd37bdc8c89ac08330072db52c00e6bac8ea5
1,619
py
Python
nipype/interfaces/fsl/tests/test_auto_ApplyTOPUP.py
nicholsn/nipype
6601b00aac39d17bb9fb3a6801f5a740a6ebb1e3
[ "BSD-3-Clause" ]
1
2018-04-18T12:13:37.000Z
2018-04-18T12:13:37.000Z
nipype/interfaces/fsl/tests/test_auto_ApplyTOPUP.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/fsl/tests/test_auto_ApplyTOPUP.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
1
2021-09-08T14:31:47.000Z
2021-09-08T14:31:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from nipype.testing import assert_equal from nipype.interfaces.fsl.epi import ApplyTOPUP def test_ApplyTOPUP_inputs(): input_map = dict(args=dict(argstr='%s', ), datatype=dict(argstr='-d=%s', ), encoding_file=dict(argstr='--datain=%s', manda...
26.112903
78
0.636813
796dd3837717240069ec6a06e77ccafa55d1f69a
5,704
py
Python
src/rezplugins/shell/csh.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezplugins/shell/csh.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezplugins/shell/csh.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
# Copyright Contributors to the Rez project # # 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 ...
30.666667
76
0.554173
796dd3aab13ed79f8c359e7c704aa822244a31f6
2,687
py
Python
apis_v1/documentation_source/campaign_follow_doc.py
ranadeepmitra21/WeVoteServer_Ranadeep
505945209aad5cef21e118b5bfa7f63d0bd462da
[ "MIT" ]
44
2015-11-19T04:52:39.000Z
2021-03-17T02:08:26.000Z
apis_v1/documentation_source/campaign_follow_doc.py
ranadeepmitra21/WeVoteServer_Ranadeep
505945209aad5cef21e118b5bfa7f63d0bd462da
[ "MIT" ]
748
2015-09-03T04:18:33.000Z
2022-03-10T14:08:10.000Z
apis_v1/documentation_source/campaign_follow_doc.py
ranadeepmitra21/WeVoteServer_Ranadeep
505945209aad5cef21e118b5bfa7f63d0bd462da
[ "MIT" ]
145
2015-09-19T10:10:44.000Z
2022-03-04T21:01:12.000Z
# apis_v1/documentation_source/campaign_follow_doc.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- def campaign_follow_doc_template_values(url_root): """ Show documentation about campaignFollow """ required_query_parameter_list = [ { 'name': 'voter_device_i...
34.896104
115
0.541496
796dd6489e7d3795bde89e9672ccc64d5291b617
3,708
py
Python
infer_server/python/test/session_test.py
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
infer_server/python/test/session_test.py
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
infer_server/python/test/session_test.py
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
# ============================================================================== # Copyright (C) [2022] by Cambricon, Inc. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License ...
39.446809
119
0.717368
796dd6875f82a62a1cff9c61735a9802395f86e8
3,843
py
Python
temporal_difference/sarsamax.py
RaoulMa/NeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
1
2018-06-30T08:41:49.000Z
2018-06-30T08:41:49.000Z
temporal_difference/sarsamax.py
RaoulMa/BasicNeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
null
null
null
temporal_difference/sarsamax.py
RaoulMa/BasicNeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
null
null
null
import sys import gym import numpy as np import random import math from collections import defaultdict, deque import matplotlib.pyplot as plt from plot_utils import plot_values def epsilon_greedy(Q, state, nA, eps): """Selects epsilon-greedy action for supplied state. Params ====== Q (dictionary)...
40.882979
126
0.654957
796dd715adc7a505b97a2c6c0e5c680caf2a5888
341
py
Python
goexplore/cell/base_utility_info.py
PeterZhizhin/GoExploreExperiment
1ee8de602eaa4aa9ce29e337ed6b082bab272594
[ "Apache-2.0" ]
null
null
null
goexplore/cell/base_utility_info.py
PeterZhizhin/GoExploreExperiment
1ee8de602eaa4aa9ce29e337ed6b082bab272594
[ "Apache-2.0" ]
null
null
null
goexplore/cell/base_utility_info.py
PeterZhizhin/GoExploreExperiment
1ee8de602eaa4aa9ce29e337ed6b082bab272594
[ "Apache-2.0" ]
null
null
null
class BaseUtilityInfo(object): """Information that represents how promising a cell is.""" def utility(self) -> float: """Return an info about how promising a cell is. Can be used to select most promising cells from an archive. :return: A measure of the cell being promising. ""...
28.416667
67
0.639296
796dd71e7b06832ae340be2830eb2ca843f57858
4,459
py
Python
python/pyarmnn/test/test_tf_parser.py
Project-Xtended/external_armnn
c5e1bbf9fc8ecbb8c9eb073a1550d4c8c15fce94
[ "MIT" ]
7
2020-02-27T07:45:14.000Z
2021-01-25T12:07:12.000Z
python/pyarmnn/test/test_tf_parser.py
Project-Xtended/external_armnn
c5e1bbf9fc8ecbb8c9eb073a1550d4c8c15fce94
[ "MIT" ]
5
2020-07-28T15:01:12.000Z
2022-02-04T18:24:02.000Z
python/pyarmnn/test/test_tf_parser.py
Project-Xtended/external_armnn
c5e1bbf9fc8ecbb8c9eb073a1550d4c8c15fce94
[ "MIT" ]
3
2020-07-31T11:41:24.000Z
2021-06-06T07:58:39.000Z
# Copyright © 2020 Arm Ltd. All rights reserved. # SPDX-License-Identifier: MIT import os import pytest import pyarmnn as ann import numpy as np @pytest.fixture() def parser(shared_data_folder): """ Parse and setup the test network to be used for the tests below """ # create tf parser parser = a...
33.276119
118
0.732675
796dd7940ca9504d6657c190ba71e30b5342e00b
1,589
py
Python
app_api/auth_app.py
lbb4511/storyhub
2649d746ca245a1d180f0b668e78fb5595c6d700
[ "Apache-2.0" ]
null
null
null
app_api/auth_app.py
lbb4511/storyhub
2649d746ca245a1d180f0b668e78fb5595c6d700
[ "Apache-2.0" ]
8
2021-03-30T13:59:00.000Z
2022-01-13T02:59:59.000Z
app_api/auth_app.py
lbb4511/storyhub
2649d746ca245a1d180f0b668e78fb5595c6d700
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # @文件: auth.py # @创建者:州的先生 # #日期:2020/5/11 # 博客地址:zmister.com from django.contrib.auth.models import User from rest_framework.authentication import BaseAuthentication from rest_framework.exceptions import AuthenticationFailed from app_api.models import * class AppAuth(BaseAuthentication): '''自定义认证...
29.981132
73
0.590308
796dd7ae74c6e669c83bbb92d7f2fff3f7852498
872
py
Python
exercises/fibonacci.py
maxmahlke/autopython
8824a1fb05e7320fe4befdf7542bafbcd425fbfe
[ "MIT" ]
null
null
null
exercises/fibonacci.py
maxmahlke/autopython
8824a1fb05e7320fe4befdf7542bafbcd425fbfe
[ "MIT" ]
null
null
null
exercises/fibonacci.py
maxmahlke/autopython
8824a1fb05e7320fe4befdf7542bafbcd425fbfe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import lru_cache import time @lru_cache def fibonacci(n): """Compute the value of the Fibonacci number F_n. Parameters ========== n : int The index of the Fibonacci number to compute. Returns ======= float The value of the nth Fibonac...
20.761905
76
0.607798
796dd8104164c04e52137a04a93c17ef234c8fa2
1,006
py
Python
src/poetry/mixology/solutions/providers/python_requirement_solution_provider.py
hadialqattan/poetry
02444308831358c26595c0f36ea263a3e02cb5d4
[ "MIT" ]
2
2022-01-15T20:22:15.000Z
2022-01-16T09:17:11.000Z
src/poetry/mixology/solutions/providers/python_requirement_solution_provider.py
hadialqattan/poetry
02444308831358c26595c0f36ea263a3e02cb5d4
[ "MIT" ]
1
2022-02-22T05:52:32.000Z
2022-02-22T05:52:32.000Z
src/poetry/mixology/solutions/providers/python_requirement_solution_provider.py
hadialqattan/poetry
02444308831358c26595c0f36ea263a3e02cb5d4
[ "MIT" ]
1
2022-03-19T12:13:53.000Z
2022-03-19T12:13:53.000Z
from __future__ import annotations import re from typing import TYPE_CHECKING from crashtest.contracts.has_solutions_for_exception import HasSolutionsForException if TYPE_CHECKING: from crashtest.contracts.solution import Solution class PythonRequirementSolutionProvider(HasSolutionsForException): def can...
28.742857
85
0.715706
796dda619defaaff83ecbfd8138667888a3b8a26
376
py
Python
codeforces/math数学/900/1291A和偶的奇数.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/math数学/900/1291A和偶的奇数.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/math数学/900/1291A和偶的奇数.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/1291/A def f(s): i = len(s)-1 l = [] while i>=0 and len(l)<2: if int(s[i])%2==1: l.append(s[i]) i -= 1 if len(l)<2: return -1 l.reverse() return ''.join(l) t = int(input()) for _ in range(t...
16.347826
50
0.468085
796ddba87bd6fb553a010c60ee50c4b311021370
16,110
py
Python
superset/sql_lab.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
3
2021-02-19T01:43:50.000Z
2021-08-14T04:56:41.000Z
superset/sql_lab.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
39
2019-07-28T09:49:37.000Z
2022-03-31T09:37:13.000Z
superset/sql_lab.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
4
2020-09-23T05:48:37.000Z
2020-10-22T09:31:20.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.720621
103
0.650155
796ddbea9dbcaf02cf9e3539e7de9e36d93c8726
5,009
py
Python
tests/sparse_product/test_sparse_product_backward_gpu.py
SamuelCahyawijaya/fast-transformers
6ae8ed4cc50bd037968db4f5062e4d328aae73fe
[ "MIT" ]
1,171
2020-06-30T01:57:19.000Z
2022-03-31T15:11:25.000Z
tests/sparse_product/test_sparse_product_backward_gpu.py
SamuelCahyawijaya/fast-transformers
6ae8ed4cc50bd037968db4f5062e4d328aae73fe
[ "MIT" ]
105
2020-06-30T14:40:56.000Z
2022-02-08T16:31:45.000Z
tests/sparse_product/test_sparse_product_backward_gpu.py
SamuelCahyawijaya/fast-transformers
6ae8ed4cc50bd037968db4f5062e4d328aae73fe
[ "MIT" ]
127
2020-06-26T09:07:48.000Z
2022-03-25T06:46:37.000Z
# # Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/ # Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch>, # Apoorv Vyas <avyas@idiap.ch> # import os from os import getenv import unittest import torch from fast_transformers.sparse_product import sparse_dot_product class TestSparsePr...
30.730061
94
0.549411
796ddbfd8228519a6160eadfcf7384a63e99441f
68
py
Python
tests/test_autoroute.py
totem/autoroute
9ba59181d0ad5ed2c722eb7e8ec3b2b0f66c231f
[ "MIT" ]
9
2015-02-09T03:35:50.000Z
2018-05-23T14:27:32.000Z
tests/test_autoroute.py
totem/autoroute
9ba59181d0ad5ed2c722eb7e8ec3b2b0f66c231f
[ "MIT" ]
null
null
null
tests/test_autoroute.py
totem/autoroute
9ba59181d0ad5ed2c722eb7e8ec3b2b0f66c231f
[ "MIT" ]
null
null
null
import unittest class AutoRouteTests(unittest.TestCase): pass
11.333333
40
0.779412
796ddc37ab3e0c5c0429bad65f9828b9bff5c944
1,943
py
Python
cafe/resources/github/issue_tracker.py
kurhula/opencafe
f9a24120021e1d9829284d062195924942ea9376
[ "Apache-2.0" ]
null
null
null
cafe/resources/github/issue_tracker.py
kurhula/opencafe
f9a24120021e1d9829284d062195924942ea9376
[ "Apache-2.0" ]
null
null
null
cafe/resources/github/issue_tracker.py
kurhula/opencafe
f9a24120021e1d9829284d062195924942ea9376
[ "Apache-2.0" ]
1
2020-04-13T17:47:07.000Z
2020-04-13T17:47:07.000Z
""" Copyright 2013 Rackspace 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 dist...
34.696429
77
0.671642
796ddc419845bb9cafa28199c553661140014842
201,225
py
Python
Classes/RtbRowe.py
rowetechinc/QRevPy
d82e18bcd8183c16ed2a9f57639933fac133624b
[ "RSA-MD" ]
null
null
null
Classes/RtbRowe.py
rowetechinc/QRevPy
d82e18bcd8183c16ed2a9f57639933fac133624b
[ "RSA-MD" ]
null
null
null
Classes/RtbRowe.py
rowetechinc/QRevPy
d82e18bcd8183c16ed2a9f57639933fac133624b
[ "RSA-MD" ]
2
2020-12-22T16:50:28.000Z
2020-12-30T17:14:19.000Z
import os import re import logging import numpy as np import struct import binascii import math class RtbRowe(object): """ Class to read data from RTB files Single file to read in RTB data, then create an list of objects. The lists will contain all the data from the file. This file was specific...
50.293677
177
0.597143
796ddd230a37e11f8481d1e27c616cdccd240d1d
1,616
py
Python
sharpy/plans/acts/morph_building.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
sharpy/plans/acts/morph_building.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
sharpy/plans/acts/morph_building.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
from typing import Set from sc2.ids.ability_id import AbilityId from sc2.ids.unit_typeid import UnitTypeId from sc2.unit import Unit from .act_base import ActBase class MorphBuilding(ActBase): def __init__(self, building_type: UnitTypeId, ability_type: AbilityId, result_type: UnitTypeId, target_count: int): ...
35.130435
119
0.641089
796ddd4747577da1151e4fb2923a978f1584dba5
3,165
py
Python
behave_plain_color_formatter/__init__.py
msabramo/behave-plain-color-formatter-abramowi
fb187298f78dc7500a408128d197d8be10165a2d
[ "MIT" ]
null
null
null
behave_plain_color_formatter/__init__.py
msabramo/behave-plain-color-formatter-abramowi
fb187298f78dc7500a408128d197d8be10165a2d
[ "MIT" ]
null
null
null
behave_plain_color_formatter/__init__.py
msabramo/behave-plain-color-formatter-abramowi
fb187298f78dc7500a408128d197d8be10165a2d
[ "MIT" ]
1
2019-05-15T09:29:15.000Z
2019-05-15T09:29:15.000Z
# -*- coding: utf-8 -*- from behave.formatter.ansi_escapes import escapes from behave.formatter.plain import PlainFormatter from behave.model_core import Status from behave.textutil import make_indentation class PlainColorFormatter(PlainFormatter): """For environments with ansi color support but without terminal...
31.336634
79
0.612322
796ddd90583479d7ef78e8a9c2e9cd222ff88bb7
1,264
py
Python
plyer/facades/compass.py
johnbolia/plyer
6dc9055a781e30feabb60e1506bd0ac343d2a7d6
[ "MIT" ]
1
2020-07-10T12:50:47.000Z
2020-07-10T12:50:47.000Z
plyer/facades/compass.py
johnbolia/plyer
6dc9055a781e30feabb60e1506bd0ac343d2a7d6
[ "MIT" ]
null
null
null
plyer/facades/compass.py
johnbolia/plyer
6dc9055a781e30feabb60e1506bd0ac343d2a7d6
[ "MIT" ]
null
null
null
''' Compass ======= The :class:`Compass` provides access to public methods to use compass of your device. Simple Examples --------------- To enable compass:: >>> from plyer import compass >>> compass.enable() To disable compass:: >>> compass.disable() To get the orientation:: >>> compass.orienta...
18.588235
77
0.594937
796ddd93d26cb30b8369d41472b51e8da0c2c9fd
8,833
py
Python
tests/components/fail2ban/test_sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
tests/components/fail2ban/test_sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
6
2021-02-08T20:59:36.000Z
2022-03-12T00:52:11.000Z
tests/components/fail2ban/test_sensor.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""The tests for local file sensor platform.""" import unittest from unittest.mock import Mock, patch from mock_open import MockOpen from homeassistant.components.fail2ban.sensor import ( STATE_ALL_BANS, STATE_CURRENT_BANS, BanLogParser, BanSensor, ) from homeassistant.setup import setup_component fr...
39.968326
88
0.606815
796dddd1aeece64ca32efdd9bb1ecafaec545d61
4,222
py
Python
tangos/query.py
j-davies-astro/tangos
ae15578820087765e5180e69310e274c237d3912
[ "BSD-3-Clause" ]
null
null
null
tangos/query.py
j-davies-astro/tangos
ae15578820087765e5180e69310e274c237d3912
[ "BSD-3-Clause" ]
null
null
null
tangos/query.py
j-davies-astro/tangos
ae15578820087765e5180e69310e274c237d3912
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from sqlalchemy import and_ from tangos import get_default_session, Creator, Base from tangos.core import Simulation, TimeStep, SimulationObjectBase, HaloProperty from six.moves import map import six def all_simulations(session=None): i...
32.984375
92
0.605637
796ddfa1ef2697a3a9f6bfbf7ba96f6f908288e6
941
py
Python
examples/base.py
niamiot/senml-python-library
a288ca340b0e754967db08a1023a14c9ce8d328f
[ "MIT" ]
13
2018-07-08T00:14:08.000Z
2022-01-24T13:33:57.000Z
examples/base.py
niamiot/senml-python-library
a288ca340b0e754967db08a1023a14c9ce8d328f
[ "MIT" ]
7
2018-09-25T13:37:14.000Z
2022-01-24T10:41:25.000Z
examples/base.py
niamiot/senml-python-library
a288ca340b0e754967db08a1023a14c9ce8d328f
[ "MIT" ]
6
2018-09-25T14:51:48.000Z
2022-03-04T09:21:40.000Z
# _ __ ____ _ _ # | |/ / | _ \ | \ | | # | ' / | |_) | | \| | # | . \ | __/ | |\ | # |_|\_\ |_| |_| \_| # # (c) 2018 KPN # License: MIT license. # Author: Jan Bogaerts # # base value example from kpn_senml import * import time import datetime pack = SenmlPack("device_name") temp = SenmlRecord(Senml...
26.885714
136
0.631243
796ddfd33de1ad62319e5567600bef1ff567ca4b
139
py
Python
src/__init__.py
cdagnino/LearningModels
b31d4e1dd5381ba06fc5b1d2b0e2eb1515f2d15f
[ "Apache-2.0" ]
null
null
null
src/__init__.py
cdagnino/LearningModels
b31d4e1dd5381ba06fc5b1d2b0e2eb1515f2d15f
[ "Apache-2.0" ]
null
null
null
src/__init__.py
cdagnino/LearningModels
b31d4e1dd5381ba06fc5b1d2b0e2eb1515f2d15f
[ "Apache-2.0" ]
null
null
null
from .models.finite_transitions_fs import * from .constants import * from .utils import * from .simulation import * from .gmmtools import *
27.8
43
0.784173
796ddff2a384e05ff7bee941f9a2f4664eabe456
283
py
Python
project-delete.py
dinhxuanvu/test-scripts
c6458e8be51649302739c6ac0e7b97257b71dca9
[ "MIT" ]
null
null
null
project-delete.py
dinhxuanvu/test-scripts
c6458e8be51649302739c6ac0e7b97257b71dca9
[ "MIT" ]
null
null
null
project-delete.py
dinhxuanvu/test-scripts
c6458e8be51649302739c6ac0e7b97257b71dca9
[ "MIT" ]
null
null
null
import sys from subprocess import call def main(): for i in range(int(sys.argv[1]), int(sys.argv[2])): print "Deleting project number %d..." % i call(['oc', 'delete', 'project', 'project-' + str(i)]) print "Completed." if __name__ == '__main__': main()
23.583333
62
0.590106
796de06ac7b394e20e81068c13773576b61ea5e0
8,241
py
Python
ppdpy/tests/test_template_compiler.py
ericvoid/ppdpy
40ab60c485a09793f18aa530fa2b5f8435dc2bfc
[ "MIT" ]
1
2020-05-16T21:29:20.000Z
2020-05-16T21:29:20.000Z
ppdpy/tests/test_template_compiler.py
ericvoid/ppdpy
40ab60c485a09793f18aa530fa2b5f8435dc2bfc
[ "MIT" ]
null
null
null
ppdpy/tests/test_template_compiler.py
ericvoid/ppdpy
40ab60c485a09793f18aa530fa2b5f8435dc2bfc
[ "MIT" ]
1
2020-05-16T22:32:01.000Z
2020-05-16T22:32:01.000Z
from unittest import TestCase from ppdpy import renders from ppdpy.exceptions import ExpressionSyntaxError, DirectiveSyntaxError class TestTemplates(TestCase): def test(self): self.assertEqual(renders('foobar', set()), 'foobar') self.assertEqual(renders('foobar\n', set()), 'foobar\n') te...
19.574822
77
0.594224
796de1afd5e55ab958f3d7acff8e802b6f71b8fb
372
py
Python
application/forms/forms.py
jjz17/Natural-Strength
8e77ffe895b79adb39472738889d00f53fa6e32c
[ "MIT" ]
null
null
null
application/forms/forms.py
jjz17/Natural-Strength
8e77ffe895b79adb39472738889d00f53fa6e32c
[ "MIT" ]
null
null
null
application/forms/forms.py
jjz17/Natural-Strength
8e77ffe895b79adb39472738889d00f53fa6e32c
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from markupsafe import Markup from wtforms import StringField, SubmitField from wtforms.validators import DataRequired class InlineButtonWidget(object): def __init__(self, class_=None): self.class_ = class_ # Name Form class NamerForm(FlaskForm): name = StringField('Wha...
28.615385
44
0.763441
796de1b6dd07e986837c1e1556c41a9919fb2696
1,206
py
Python
gym/gym/envs/algorithmic/reversed_addition.py
sokol1412/rllab_hierarchical_rl
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
[ "MIT" ]
null
null
null
gym/gym/envs/algorithmic/reversed_addition.py
sokol1412/rllab_hierarchical_rl
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
[ "MIT" ]
null
null
null
gym/gym/envs/algorithmic/reversed_addition.py
sokol1412/rllab_hierarchical_rl
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from gym.gym.envs.algorithmic import algorithmic_env class ReversedAdditionEnv(algorithmic_env.GridAlgorithmicEnv): def __init__(self, rows=2, base=3): super(ReversedAdditionEnv, self).__init__(rows=rows, base=base, chars=False) def target_fro...
38.903226
85
0.644279
796de2035f17a412c9db0500cdbb59c2ca764d59
14,180
py
Python
lexicon/providers/infoblox.py
wheatdog/lexicon
1f53ee51fa3d3696d186d1bf2793a4a0e8d7498e
[ "MIT" ]
null
null
null
lexicon/providers/infoblox.py
wheatdog/lexicon
1f53ee51fa3d3696d186d1bf2793a4a0e8d7498e
[ "MIT" ]
null
null
null
lexicon/providers/infoblox.py
wheatdog/lexicon
1f53ee51fa3d3696d186d1bf2793a4a0e8d7498e
[ "MIT" ]
null
null
null
""" Notes on this Provider 1. Make sure the NIOS Version support WAPI 2.6.1 2. Have a valid Certificate from a public CA installed at the Infoblox Commandline examples: 1. all parameters given: lexicon infoblox --ib-host myib.mydomain.tld --auth-user {username} --auth-psw {passwordd} --ib-view default create test...
41.828909
97
0.569111
796de242d3894e3c285334adb21e080db50cdbfc
2,848
py
Python
tests/riscv/fsuExamples/test_muldiv_data_constr_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
tests/riscv/fsuExamples/test_muldiv_data_constr_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
tests/riscv/fsuExamples/test_muldiv_data_constr_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
34.313253
98
0.62816
796de310a75f526e41667aebaaf1d0ce91eff727
2,572
py
Python
chemdataextractor_batteries/tests/test_scrape_rsc.py
MB9991/test_demo-
ca3df4ecf20f7a26a621f68caf668f2e726a737d
[ "MIT" ]
199
2016-10-07T06:55:23.000Z
2022-03-29T09:50:03.000Z
tests/test_scrape_rsc.py
qingtong00/ChemDataExtractor
349a3bea965f2073141d62043b89319222e46af1
[ "MIT" ]
29
2016-10-04T08:56:05.000Z
2022-03-06T19:36:55.000Z
tests/test_scrape_rsc.py
qingtong00/ChemDataExtractor
349a3bea965f2073141d62043b89319222e46af1
[ "MIT" ]
95
2016-10-10T14:24:27.000Z
2022-03-16T18:30:00.000Z
# -*- coding: utf-8 -*- """ test_scrape_rsc ~~~~~~~~~~~~~~~ Test scraping documents from the Royal Society of Chemistry. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import unittest from chemda...
51.44
363
0.765552
796de45bc1e6dc4318a32f40cb3affd57f4fc0f2
2,018
py
Python
pyicloud/utils.py
bytedigger/pyicloud
332cc9fa767862480c27253233c2cfdf9f2ea0d9
[ "MIT" ]
null
null
null
pyicloud/utils.py
bytedigger/pyicloud
332cc9fa767862480c27253233c2cfdf9f2ea0d9
[ "MIT" ]
null
null
null
pyicloud/utils.py
bytedigger/pyicloud
332cc9fa767862480c27253233c2cfdf9f2ea0d9
[ "MIT" ]
null
null
null
"""Utils.""" import getpass import keyring import sys from .exceptions import PyiCloudNoStoredPasswordAvailableException KEYRING_SYSTEM = "pyicloud://icloud-password" def get_password(username, interactive=sys.stdout.isatty()): """Get the password from a username.""" try: return get_password_from_k...
26.207792
74
0.659068
796de4890f10f1550b1fa5c53f679f436daa9191
314
py
Python
itchat/config.py
bedreamer/ItChat
b4b22196b550bec55ea4a8d95c8b604245905693
[ "MIT" ]
2
2020-03-04T16:36:45.000Z
2021-04-28T01:22:06.000Z
itchat/config.py
shiweixian2/ItChat
b4b22196b550bec55ea4a8d95c8b604245905693
[ "MIT" ]
null
null
null
itchat/config.py
shiweixian2/ItChat
b4b22196b550bec55ea4a8d95c8b604245905693
[ "MIT" ]
1
2017-03-16T15:56:55.000Z
2017-03-16T15:56:55.000Z
import os, platform VERSION = '1.2.30' BASE_URL = 'https://login.weixin.qq.com' OS = platform.system() #Windows, Linux, Darwin DIR = os.getcwd() DEFAULT_QR = 'QR.png' USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36'
31.4
136
0.694268
796de5256c7b6dd1d9f28deba8261fc8b371fd71
5,482
py
Python
pypop/models/wold/_wold_var_fixed_beta.py
trouleau/pypop
a9b22ad02e890e250fb91a8dc32a9dfde3d4e3de
[ "MIT" ]
null
null
null
pypop/models/wold/_wold_var_fixed_beta.py
trouleau/pypop
a9b22ad02e890e250fb91a8dc32a9dfde3d4e3de
[ "MIT" ]
null
null
null
pypop/models/wold/_wold_var_fixed_beta.py
trouleau/pypop
a9b22ad02e890e250fb91a8dc32a9dfde3d4e3de
[ "MIT" ]
null
null
null
import math import numba import numpy as np from . import WoldModel from ...utils.decorators import enforce_observed from ...fitter import FitterIterativeNumpy PARALLEL = False @numba.jit(nopython=True, fastmath=True, parallel=PARALLEL) def digamma(arr, eps=1e-8): """Digamma function (arr is assumed to be 1 or ...
42.169231
98
0.579715
796de5730c6e8e34b153c303e0f900c13076e076
17,754
py
Python
remixt/tests/test_model.py
DouglasAbrams/remixt
2ab9b034e6b4ff86cdfbc6272f9ce6b9a9311439
[ "MIT" ]
5
2018-05-17T16:45:25.000Z
2021-06-10T13:58:54.000Z
remixt/tests/test_model.py
DouglasAbrams/remixt
2ab9b034e6b4ff86cdfbc6272f9ce6b9a9311439
[ "MIT" ]
10
2018-05-17T16:42:59.000Z
2022-03-12T00:48:34.000Z
remixt/tests/test_model.py
DouglasAbrams/remixt
2ab9b034e6b4ff86cdfbc6272f9ce6b9a9311439
[ "MIT" ]
2
2019-04-11T00:17:29.000Z
2020-02-05T21:36:04.000Z
import unittest import itertools import numpy as np import scipy.misc import remixt.tests.unopt.model import remixt.vhmm import remixt.model3 import remixt.tests.test_remixt import remixt.likelihood import remixt.cn_model np.random.seed(2014) cn_max = 3 num_clones = 3 num_alleles = 2 def create_cn_states(): ...
35.939271
171
0.533345
796de5a448da217349710f82816cb83b4e6d5f40
33
py
Python
example.config.py
thecsw/musicPi
80e5e2e7f90484c7e4c6e4eea22e2e0a78c46cdd
[ "Unlicense" ]
null
null
null
example.config.py
thecsw/musicPi
80e5e2e7f90484c7e4c6e4eea22e2e0a78c46cdd
[ "Unlicense" ]
null
null
null
example.config.py
thecsw/musicPi
80e5e2e7f90484c7e4c6e4eea22e2e0a78c46cdd
[ "Unlicense" ]
null
null
null
# YOUR TELEGRAM BOT KEY key = ''
11
23
0.636364
796de5d939f79ed47d728bea722c50191f487d27
48,914
py
Python
lib/sqlalchemy/testing/suite/test_types.py
long2ice/sqlalchemy
a869dc8fe3cd579ed9bab665d215a6c3e3d8a4ca
[ "MIT" ]
null
null
null
lib/sqlalchemy/testing/suite/test_types.py
long2ice/sqlalchemy
a869dc8fe3cd579ed9bab665d215a6c3e3d8a4ca
[ "MIT" ]
null
null
null
lib/sqlalchemy/testing/suite/test_types.py
long2ice/sqlalchemy
a869dc8fe3cd579ed9bab665d215a6c3e3d8a4ca
[ "MIT" ]
null
null
null
# coding: utf-8 import datetime import decimal import json import re from .. import config from .. import engines from .. import fixtures from .. import mock from ..assertions import eq_ from ..assertions import is_ from ..config import requirements from ..schema import Column from ..schema import Table from ... impo...
31.335042
79
0.55342
796de6254836beb4357c1f7c04411b85ba5838dc
857
py
Python
storelocator/constants.py
austinbrown34/StoreLocator
211368898ee3290e75559cc63ecf3eab2acb7865
[ "MIT" ]
2
2020-05-26T19:02:31.000Z
2020-09-01T15:37:14.000Z
storelocator/constants.py
austinbrown34/StoreLocator
211368898ee3290e75559cc63ecf3eab2acb7865
[ "MIT" ]
1
2021-06-01T22:27:13.000Z
2021-06-01T22:27:13.000Z
storelocator/constants.py
austinbrown34/StoreLocator
211368898ee3290e75559cc63ecf3eab2acb7865
[ "MIT" ]
null
null
null
import pkg_resources path = 'csv/store-locations.csv' DEFAULT_CSV = pkg_resources.resource_filename(__name__, path) # Don't Change KILOMETERS_TO_MILES = 0.621371 DISTANCE_RADIUS = 6371 UNITS = ['mi', 'km'] OUTPUT = ['text', 'json'] # Constants defined by the World Geodetic System 1984 (WGS84) A = 6378.137 B = 6356...
19.930233
61
0.675613
796de7a640334ce7105e0a9e5fbf06b1c26febda
2,059
py
Python
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/runbook_draft_undo_edit_result_py3.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/runbook_draft_undo_edit_result_py3.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/models/runbook_draft_undo_edit_result_py3.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
44.76087
84
0.654201
796de82a0949b1f6da241bc1a1d5ce7771d9cfad
5,853
py
Python
src/tests/plugins/badges/test_control.py
krav/pretix
ff51c4d07c93cb094989c2db549523e0edb34736
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/badges/test_control.py
krav/pretix
ff51c4d07c93cb094989c2db549523e0edb34736
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/badges/test_control.py
krav/pretix
ff51c4d07c93cb094989c2db549523e0edb34736
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import datetime from tests.base import SoupTest, extract_form_fields from pretix.base.models import Event, Item, Organizer, Team, User from pretix.plugins.badges.models import BadgeItem class BadgeLayoutFormTest(SoupTest): def setUp(self): super().setUp() self.user = User.objects.create_user('du...
45.726563
114
0.604818
796de845f65115cfac647bfebbf84063a6f73c5d
840
py
Python
bokeh/models/util/__init__.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-04-09T02:57:29.000Z
2021-04-09T02:57:29.000Z
bokeh/models/util/__init__.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
5
2021-05-07T10:31:27.000Z
2021-05-07T10:33:37.000Z
bokeh/models/util/__init__.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
36.521739
78
0.322619
796de914819a5640f70658430191e2828802b618
5,681
py
Python
test/teos/unit/test_builder.py
orbitalturtle/python-teos
bcdde7675ebdaa4e63482b0c6ea3c80a89e8e67e
[ "MIT" ]
null
null
null
test/teos/unit/test_builder.py
orbitalturtle/python-teos
bcdde7675ebdaa4e63482b0c6ea3c80a89e8e67e
[ "MIT" ]
null
null
null
test/teos/unit/test_builder.py
orbitalturtle/python-teos
bcdde7675ebdaa4e63482b0c6ea3c80a89e8e67e
[ "MIT" ]
null
null
null
import pytest from uuid import uuid4 from queue import Queue from teos.builder import Builder from teos.watcher import Watcher from teos.responder import Responder from test.teos.conftest import config, generate_blocks from test.teos.unit.conftest import get_random_value_hex, generate_keypair # FIXME: 194 will do w...
36.651613
116
0.710614
796dea1527d718a4d891bb1a131a4eda32880fdb
1,480
py
Python
webinterface/server.py
rugo/sac_client
64b4a2bb1c2fadbc28facac3149e8d5cc097ba63
[ "Apache-2.0" ]
null
null
null
webinterface/server.py
rugo/sac_client
64b4a2bb1c2fadbc28facac3149e8d5cc097ba63
[ "Apache-2.0" ]
null
null
null
webinterface/server.py
rugo/sac_client
64b4a2bb1c2fadbc28facac3149e8d5cc097ba63
[ "Apache-2.0" ]
null
null
null
#!/opt/sac/bin/python import time import BaseHTTPServer from sac import util from sac.com import NoInternet PORT_NUMBER = 8080 TEMPLATE_DIR = "templates/" contents = { "registered": "", "unregistered": "", "no_internet": "" } variables = { "@device_id": util.get_device_id(), "@secret": util.get_s...
22.424242
68
0.610135
796deac34f4639743cbe4f0f682982562d9267cd
26,048
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/metrics/classification.py
TolyaTalamanov/open_model_zoo
1697e60712df4ca72635a2080a197b9d3bc24129
[ "Apache-2.0" ]
1
2019-05-31T14:01:42.000Z
2019-05-31T14:01:42.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/metrics/classification.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/openvino/tools/accuracy_checker/metrics/classification.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2018-2022 Intel Corporation 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 wri...
38.761905
117
0.629914
796deb834d25b1e5c46fd0c0c26b53d6b205039e
4,045
py
Python
generate_promed_network.py
ecohealthalliance/grits_scripts
65448d8b83e1d8182e4077aeb53b6ec9b9465dab
[ "Apache-2.0" ]
null
null
null
generate_promed_network.py
ecohealthalliance/grits_scripts
65448d8b83e1d8182e4077aeb53b6ec9b9465dab
[ "Apache-2.0" ]
null
null
null
generate_promed_network.py
ecohealthalliance/grits_scripts
65448d8b83e1d8182e4077aeb53b6ec9b9465dab
[ "Apache-2.0" ]
null
null
null
from glob import glob import re, json, csv from diagnose_symptoms import diagnose_symptoms symptoms = [] characteristics = [] diseases = [] matched_symptoms = set([]) matched_characteristics = dict() matched_diseases = set([]) def _find_symptoms_and_diseases(text_to_search): if len(diseases) < 1: _load_m...
34.57265
355
0.5911
796dec29764e9116f7092158c4657486b2e11567
1,899
py
Python
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
51
2019-08-18T18:18:42.000Z
2022-02-09T07:44:42.000Z
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
28
2019-08-19T04:10:52.000Z
2020-12-09T16:39:26.000Z
go/guru.py
localhots/sublime-go
960e72dafdb6c69d78bb5cbd88052540342517b9
[ "MIT" ]
4
2019-11-12T20:39:54.000Z
2021-07-30T09:57:32.000Z
from . import decorators from . import exec from . import log import os.path as path import sublime import time import json @decorators.thread @decorators.trace def source(view): locate(view) def call(mode, filename, region): """ Call calls guru(1) with the given `<mode>` filename and point. """ file = "...
22.879518
68
0.636651
796deddbde9dc52e804f5b1bd61d52f39e6f827b
5,451
py
Python
modin/engines/base/io/column_stores/parquet_reader.py
reshamas/modin
b01f91fb3a628ce374aa830964d094480f73afca
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/engines/base/io/column_stores/parquet_reader.py
reshamas/modin
b01f91fb3a628ce374aa830964d094480f73afca
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/engines/base/io/column_stores/parquet_reader.py
reshamas/modin
b01f91fb3a628ce374aa830964d094480f73afca
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
44.680328
88
0.595304
796def50a8e70db331568bd1b58bcb44b6d4a097
2,783
py
Python
app/recipe/tests/test_ingredients_api.py
RafaRisco/recipe-app-api
dcc355420df97751770ef0508ca8c4f7339aa049
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
RafaRisco/recipe-app-api
dcc355420df97751770ef0508ca8c4f7339aa049
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
RafaRisco/recipe-app-api
dcc355420df97751770ef0508ca8c4f7339aa049
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe:ingred...
32.360465
78
0.683435
796def95913357186f1689626aa40e0e84a0c97d
1,660
py
Python
moviealert/admin.py
ArionMiles/Diomedes
50e50bae65bc35901230ead01fe5c259db1344b0
[ "MIT" ]
10
2019-03-08T12:34:21.000Z
2020-07-20T17:05:34.000Z
moviealert/admin.py
ArionMiles/Diomedes
50e50bae65bc35901230ead01fe5c259db1344b0
[ "MIT" ]
12
2019-05-04T18:56:34.000Z
2022-02-10T07:33:50.000Z
moviealert/admin.py
ArionMiles/Diomedes
50e50bae65bc35901230ead01fe5c259db1344b0
[ "MIT" ]
1
2019-04-12T16:00:15.000Z
2019-04-12T16:00:15.000Z
from django.contrib import admin from django.db.models import Case, Value, When from .models import Region, SubRegion, Theater, Reminder, Profile # Register your models here. def mark_dropped(modeladmin, request, queryset): queryset.update(dropped=Case(When(dropped=False, then=Value(True)), default=Value(False)))...
33.877551
94
0.686747
796df12a9d975363d003a7cd3c9efbf52f2fc746
2,931
py
Python
tests/utilities/test_common.py
basnijholt/pyvista
b1786b99217137e2c67566f5c09374c7a810f597
[ "MIT" ]
null
null
null
tests/utilities/test_common.py
basnijholt/pyvista
b1786b99217137e2c67566f5c09374c7a810f597
[ "MIT" ]
null
null
null
tests/utilities/test_common.py
basnijholt/pyvista
b1786b99217137e2c67566f5c09374c7a810f597
[ "MIT" ]
null
null
null
""" Tests for pyvista.utilities.common.""" import numpy as np import pytest from pyvista.utilities.common import _coerce_pointslike_arg def test_coerce_point_like_arg(): # Test with Sequence point = [1.0, 2.0, 3.0] coerced_arg = _coerce_pointslike_arg(point) assert isinstance(coerced_arg, np.ndarray...
34.081395
85
0.645855
796df24ce9b7033cae4ca79727608bc3b6307827
6,423
py
Python
pytorch3d/ops/graph_conv.py
martinruenz/pytorch3d
7f1e63aed1252ba8145d4a66ce2272331d60cdae
[ "BSD-3-Clause" ]
3
2022-03-09T08:12:54.000Z
2022-03-10T01:57:03.000Z
pytorch3d/ops/graph_conv.py
martinruenz/pytorch3d
7f1e63aed1252ba8145d4a66ce2272331d60cdae
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/ops/graph_conv.py
martinruenz/pytorch3d
7f1e63aed1252ba8145d4a66ce2272331d60cdae
[ "BSD-3-Clause" ]
1
2020-05-25T07:19:08.000Z
2020-05-25T07:19:08.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch import torch.nn as nn from pytorch3d import _C from torch.autograd import Function from torch.autograd.function import once_differentiable class GraphConv(nn.Module): """A single graph convolution layer.""" def __init__( ...
36.913793
83
0.622762
796df31f568f6ab4478777a3ec0c29bc4553ba5a
140
py
Python
python/testData/inspections/PyGlobalUndefinedInspection/reassignedAndAbsent.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyGlobalUndefinedInspection/reassignedAndAbsent.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/inspections/PyGlobalUndefinedInspection/reassignedAndAbsent.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def foo(): global <weak_warning descr="Global variable 'bar' is undefined at the module level">bar</weak_warning> bar = "something"
35
106
0.714286
796df32251089029183e62606b03e4d5ccd3d3d1
1,070
py
Python
nats/io/utils.py
brianshannan/python-nats
a76123abe9d5ea3f00bc56bccab35659e54576d8
[ "Apache-2.0" ]
62
2015-12-18T17:19:24.000Z
2019-04-11T23:14:35.000Z
nats/io/utils.py
brianshannan/python-nats
a76123abe9d5ea3f00bc56bccab35659e54576d8
[ "Apache-2.0" ]
32
2016-05-21T18:38:13.000Z
2019-03-07T20:48:15.000Z
nats/io/utils.py
brianshannan/python-nats
a76123abe9d5ea3f00bc56bccab35659e54576d8
[ "Apache-2.0" ]
30
2015-12-22T07:37:57.000Z
2019-02-06T22:16:21.000Z
# Copyright 2015-2018 The NATS 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 writi...
26.75
74
0.68785
796df41d8d41f25dc9af4df548503e42b3eff9ed
5,222
py
Python
tests/sentry/models/test_groupsubscription.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/models/test_groupsubscription.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
6
2019-12-29T00:50:11.000Z
2022-02-10T13:27:24.000Z
tests/sentry/models/test_groupsubscription.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from sentry.models import ( GroupSubscription, GroupSubscriptionReason, UserOption, UserOptionValue ) from sentry.testutils import TestCase class SubscribeTest(TestCase): def test_simple(self): group = self.create_group() user = self.create_user() ...
29.84
75
0.629261
796df7a6e25a5b176f585a2f8cf0f524e31a5932
914
py
Python
marvel/migrations/0016_auto_20180131_1236.py
MariamHosam/Software-Project
f07e7275239ebef323f79833927f895ae9a67d6e
[ "MIT" ]
null
null
null
marvel/migrations/0016_auto_20180131_1236.py
MariamHosam/Software-Project
f07e7275239ebef323f79833927f895ae9a67d6e
[ "MIT" ]
null
null
null
marvel/migrations/0016_auto_20180131_1236.py
MariamHosam/Software-Project
f07e7275239ebef323f79833927f895ae9a67d6e
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-31 10:36 import django.core.validators from django.db import migrations, models import re class Migration(migrations.Migration): dependencies = [ ('foodspark', '0015_auto_20170601_1711'), ] operations = [ migrations.AlterField( model_na...
35.153846
216
0.630197
796df83ca28a349acfb12c64be0a34f55fd15a9f
2,615
py
Python
packages/Python/lldbsuite/test/lang/swift/instance_pointer_set_sp/TestSwiftInstancePointerSetSP.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
2
2019-05-24T14:10:24.000Z
2019-05-24T14:27:38.000Z
packages/Python/lldbsuite/test/lang/swift/instance_pointer_set_sp/TestSwiftInstancePointerSetSP.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
packages/Python/lldbsuite/test/lang/swift/instance_pointer_set_sp/TestSwiftInstancePointerSetSP.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
# TestSwiftInstancePointerSetSP.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
31.890244
82
0.637859
796dfa2df8abba4c76d7c34e7eca18c099a35a60
235
py
Python
modeltranslation/tests/project_translation.py
hello-bowo/django-modeltranslation
6f9a57c1073ebbc01bae827b526ed51cd472393b
[ "BSD-3-Clause" ]
39
2015-06-10T23:18:07.000Z
2021-10-21T04:29:06.000Z
modeltranslation/tests/project_translation.py
hello-bowo/django-modeltranslation
6f9a57c1073ebbc01bae827b526ed51cd472393b
[ "BSD-3-Clause" ]
2
2016-08-22T12:38:10.000Z
2017-01-26T18:37:33.000Z
modeltranslation/tests/project_translation.py
hello-bowo/django-modeltranslation
6f9a57c1073ebbc01bae827b526ed51cd472393b
[ "BSD-3-Clause" ]
26
2015-06-10T22:09:15.000Z
2021-06-27T15:45:15.000Z
from modeltranslation.translator import translator, TranslationOptions from .test_app.models import Other class OtherTranslationOptions(TranslationOptions): fields = ('name',) translator.register(Other, OtherTranslationOptions)
26.111111
70
0.829787
796dfa41527d343c60095896967202bd4a4cddaa
1,522
py
Python
dev/breeze/tests/test_commands.py
ReadytoRocc/airflow
ec6761a5c0d031221d53ce213c0e42813606c55d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
dev/breeze/tests/test_commands.py
ReadytoRocc/airflow
ec6761a5c0d031221d53ce213c0e42813606c55d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
dev/breeze/tests/test_commands.py
ReadytoRocc/airflow
ec6761a5c0d031221d53ce213c0e42813606c55d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.238095
81
0.770696
796dfae2549fa1ebf6fcd8e5eb9c496cbf3fcc1e
6,914
py
Python
ckan/model/package_relationship.py
okfde/ckankrzn
df4c1ed624f6751ac2a8f03527ff19e448d27dfb
[ "Apache-2.0" ]
4
2017-06-12T15:18:30.000Z
2019-10-11T15:12:43.000Z
ckan/model/package_relationship.py
okfde/ckankrzn
df4c1ed624f6751ac2a8f03527ff19e448d27dfb
[ "Apache-2.0" ]
64
2017-05-14T22:15:53.000Z
2020-03-08T15:26:49.000Z
ckan/model/package_relationship.py
okfde/ckankrzn
df4c1ed624f6751ac2a8f03527ff19e448d27dfb
[ "Apache-2.0" ]
5
2017-04-06T21:18:38.000Z
2020-03-30T17:05:23.000Z
# encoding: utf-8 import vdm.sqlalchemy from sqlalchemy import orm, types, Column, Table, ForeignKey import meta import core import package as _package import types as _types import domain_object # i18n only works when this is run as part of pylons, # which isn't the case for paster commands. try: from ckan.comm...
38.625698
124
0.638993
796dfafd2fff6489c0e083edd38cbcebb32eaf8d
5,513
py
Python
Lib/xdrlib.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/xdrlib.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/xdrlib.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
"""Implements (a subset of) Sun XDR -- eXternal Data Representation. See: RFC 1014 """ import struct try: from cStringIO import StringIO as _StringIO except ImportError: from StringIO import StringIO as _StringIO __all__ = ["Error", "Packer", "Unpacker", "ConversionError"] # exceptions class Error(Exceptio...
23.969565
71
0.567749
796dfc664ff5524a5d6297cf03507b3f215a0748
21,212
py
Python
stile/hsc/sys_test_adapters.py
EiffL/Stile
9d5bab3ccb47d3fb1b8fc98db3c0e03605ff0169
[ "BSD-3-Clause" ]
12
2015-09-18T20:31:27.000Z
2020-04-08T10:58:57.000Z
stile/hsc/sys_test_adapters.py
EiffL/Stile
9d5bab3ccb47d3fb1b8fc98db3c0e03605ff0169
[ "BSD-3-Clause" ]
71
2015-01-05T21:53:04.000Z
2018-11-05T18:47:27.000Z
stile/hsc/sys_test_adapters.py
EiffL/Stile
9d5bab3ccb47d3fb1b8fc98db3c0e03605ff0169
[ "BSD-3-Clause" ]
6
2017-06-23T21:41:39.000Z
2020-10-30T14:38:22.000Z
""" sys_test_adapters.py: Contains classes to wrap Stile systematics tests with functions necessary to run the tests via the HSC/LSST pipeline. """ import lsst.pex.config from lsst.pex.exceptions import LsstCppException from .. import sys_tests import numpy adapter_registry = lsst.pex.config.makeRegistry("Stile test ...
42.852525
133
0.676457
796dfcb495841dcd67d02929c7203ae20eace5f1
807
py
Python
LeetCode/2019-02-13-309-Best-Time-to-Buy-and-Sell-Stock-with-Cooldown.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
5
2018-10-30T05:07:32.000Z
2019-06-18T08:11:38.000Z
LeetCode/2019-02-13-309-Best-Time-to-Buy-and-Sell-Stock-with-Cooldown.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
1
2020-05-09T09:05:16.000Z
2020-05-09T09:05:16.000Z
LeetCode/2019-02-13-309-Best-Time-to-Buy-and-Sell-Stock-with-Cooldown.py
HeRuivio/-Algorithm
1fbe6256630758fda3af68f469471ee246730afc
[ "MIT" ]
2
2020-05-09T09:02:22.000Z
2020-12-09T13:23:00.000Z
# -*- coding: utf-8 -*- # @Author: 何睿 # @Create Date: 2019-02-13 14:21:33 # @Last Modified by: 何睿 # @Last Modified time: 2019-02-13 17:36:21 import sys class Solution: def maxProfit(self, prices: 'List[int]') -> 'int': # 少于两天无法进行交易 if len(prices) < 2: return 0 colldow...
31.038462
55
0.548947
796dfd6900e11c7fa5c0e09b3da50a175ea1d21b
1,084
py
Python
sandbox/legacy_plot_code/add_hist_lines.py
boada/ICD
c1bfedf5f8e5b0e9f77c6d1194bf1e0266d7efd8
[ "MIT" ]
null
null
null
sandbox/legacy_plot_code/add_hist_lines.py
boada/ICD
c1bfedf5f8e5b0e9f77c6d1194bf1e0266d7efd8
[ "MIT" ]
null
null
null
sandbox/legacy_plot_code/add_hist_lines.py
boada/ICD
c1bfedf5f8e5b0e9f77c6d1194bf1e0266d7efd8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # File: add_hist_lines.py # Created on: Mon Oct 22 14:56:24 2012 # Last Change: Mon Oct 22 15:36:16 2012 # Purpose of script: <+INSERT+> # Author: Steven Boada from hist_overlap import hist_overlap from mk_galaxy_struc import mk_galaxy_struc import numpy as np # make some bins start = 1.5 stop =...
22.583333
63
0.73524
796dfe330984949acba81e7d576319b6e45a2a1c
4,630
py
Python
prince/mfa.py
mattadendorff/prince
6b83b51fe84dda59f4642b68e77559545dee3c70
[ "MIT" ]
null
null
null
prince/mfa.py
mattadendorff/prince
6b83b51fe84dda59f4642b68e77559545dee3c70
[ "MIT" ]
null
null
null
prince/mfa.py
mattadendorff/prince
6b83b51fe84dda59f4642b68e77559545dee3c70
[ "MIT" ]
null
null
null
"""Multiple Factor Analysis (MFA)""" import itertools import numpy as np import pandas as pd from sklearn import utils from . import mca from . import pca class MFA(pca.PCA): def __init__(self, groups=None, rescale_with_mean=True, rescale_with_std=True, n_components=2, n_iter=10, copy=True, ran...
33.79562
99
0.572354
796dfe5f0da5269d1ef8004cd03f4e1c98837a9f
94,857
py
Python
python/ccxt/async_support/ftx.py
abc1763613206/ccxt
0169158d5ad9648c3a893da1589d922cc8a177f9
[ "MIT" ]
null
null
null
python/ccxt/async_support/ftx.py
abc1763613206/ccxt
0169158d5ad9648c3a893da1589d922cc8a177f9
[ "MIT" ]
null
null
null
python/ccxt/async_support/ftx.py
abc1763613206/ccxt
0169158d5ad9648c3a893da1589d922cc8a177f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
42.177412
175
0.465269
796dfe7922ff025b39de0457f1b7eb1828d42717
399
py
Python
src/show_env.py
armadaplatform/example-python
193c16b501ce9384c50c2e8ee19264fb1652d640
[ "Apache-2.0" ]
null
null
null
src/show_env.py
armadaplatform/example-python
193c16b501ce9384c50c2e8ee19264fb1652d640
[ "Apache-2.0" ]
null
null
null
src/show_env.py
armadaplatform/example-python
193c16b501ce9384c50c2e8ee19264fb1652d640
[ "Apache-2.0" ]
null
null
null
import os import yaml import web class Health(object): def GET(self): return 'ok' class Env(object): def GET(self): return yaml.dump(dict(os.environ), default_flow_style=False) def main(): urls = ( '/health', Health.__name__, '/', Env.__name__, ) app = web.appl...
14.25
68
0.586466
796dfee2a4c1555db9bbead06f6e4b4a24fcb2af
4,067
py
Python
python/pygimli/physics/traveltime/raplot.py
mjziebarth/gimli
196ac4d6dd67e0326cccc44a87b367f64051e490
[ "Apache-2.0" ]
3
2021-07-10T00:56:59.000Z
2022-02-17T12:43:38.000Z
python/pygimli/physics/traveltime/raplot.py
ivek1312/gimli
5fafebb7c96dd0e04e2616df402fa27a01609d63
[ "Apache-2.0" ]
null
null
null
python/pygimli/physics/traveltime/raplot.py
ivek1312/gimli
5fafebb7c96dd0e04e2616df402fa27a01609d63
[ "Apache-2.0" ]
1
2022-03-29T04:28:40.000Z
2022-03-29T04:28:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """"WRITEME""" import matplotlib.pyplot as plt import numpy as np import pygimli as pg def drawFirstPicks(ax, data, tt=None, plotva=False, marker='x-'): """Naming convention. drawFOO(ax, ... )""" return plotFirstPicks(ax=ax, data=data, tt=tt, plotva=plotva, ...
29.258993
74
0.569953
796dff3519d06cea29a14baefcf3e302ec748eb0
20,216
py
Python
numpy/distutils/fcompiler/gnu.py
shreepads/numpy
2f790d8768095a7c237794eaff31b8ae4a0411f9
[ "BSD-3-Clause" ]
1
2020-05-11T09:28:19.000Z
2020-05-11T09:28:19.000Z
numpy/distutils/fcompiler/gnu.py
shreepads/numpy
2f790d8768095a7c237794eaff31b8ae4a0411f9
[ "BSD-3-Clause" ]
88
2020-04-23T18:33:38.000Z
2021-08-02T06:25:47.000Z
numpy/distutils/fcompiler/gnu.py
shreepads/numpy
2f790d8768095a7c237794eaff31b8ae4a0411f9
[ "BSD-3-Clause" ]
1
2020-10-28T10:03:50.000Z
2020-10-28T10:03:50.000Z
import re import os import sys import warnings import platform import tempfile import hashlib import base64 import subprocess from subprocess import Popen, PIPE, STDOUT from numpy.distutils.exec_command import filepath_from_subprocess_output from numpy.distutils.fcompiler import FCompiler compilers = ['GnuFCompiler', ...
36.689655
97
0.545805
796e009cc66193b5ffc5c4c3174ceba0aee64872
4,815
py
Python
galene/numpy_interface.py
tkarna/galene
a05463d3d0c9191c51893df4593d9ce0252d25fb
[ "MIT" ]
null
null
null
galene/numpy_interface.py
tkarna/galene
a05463d3d0c9191c51893df4593d9ce0252d25fb
[ "MIT" ]
null
null
null
galene/numpy_interface.py
tkarna/galene
a05463d3d0c9191c51893df4593d9ce0252d25fb
[ "MIT" ]
null
null
null
import iris import cf_units from collections import Iterable def create_timeseries_cube(time, values, standard_name, units, depth=0.0, time_units='seconds since 1970-01-01 00:00:00-00', calendar='gregorian', at...
31.887417
91
0.622222
796e00af34abde49e7e51110122b6bac3098cd5e
2,355
py
Python
packager.py
cifkao/style_rank
3b07ecffcb669b24c22e63919a3dd95d14c29108
[ "ISC" ]
11
2019-10-25T02:05:21.000Z
2021-01-04T11:02:42.000Z
packager.py
cifkao/style_rank
3b07ecffcb669b24c22e63919a3dd95d14c29108
[ "ISC" ]
2
2019-11-29T10:29:24.000Z
2019-12-02T18:00:56.000Z
packager.py
cifkao/style_rank
3b07ecffcb669b24c22e63919a3dd95d14c29108
[ "ISC" ]
2
2019-12-01T13:18:53.000Z
2020-09-28T06:19:52.000Z
# this is a script to package the contents import os from subprocess import call from string import Template from create_feature_map_hpp import build_feature_map def create_from_template(template_path, output_path, content): with open(template_path) as template_file: src = Template( template_file.read() ) with...
32.260274
87
0.66327
796e01f5797437ea5f054ae96882be3d1cd00dd4
3,328
py
Python
pyts/tools/builders/rl_cartesian_builder.py
sunxb05/pyTS
72246a997e1a20824809cfa46e943f18c0721924
[ "Apache-2.0" ]
1
2021-06-09T04:54:55.000Z
2021-06-09T04:54:55.000Z
pyts/tools/builders/rl_cartesian_builder.py
sunxb05/pyTS
72246a997e1a20824809cfa46e943f18c0721924
[ "Apache-2.0" ]
5
2021-06-09T05:04:06.000Z
2021-06-09T05:04:09.000Z
pyts/tools/builders/rl_cartesian_builder.py
sunxb05/pyTS
72246a997e1a20824809cfa46e943f18c0721924
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import Input, Lambda, Add, Dense, Flatten from .rl_multi_trunk_builder import DualTrunkBuilder from ...layers.utility_layers import MaskedDistanceMatrix class RlCartesianBuilder(DualTrunkBuilder): def __init__(self, *args, **...
42.126582
96
0.609075