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
4a04bfc233dec377cd5cb3432a42d3e315ec495b
22,759
py
Python
extra/docker/latest/config/config.py
ExentriqLtd/exentriq-advanced-analytics
a7a45af97e8e7956bbf389bb952d625c69ddc626
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
extra/docker/latest/config/config.py
ExentriqLtd/exentriq-advanced-analytics
a7a45af97e8e7956bbf389bb952d625c69ddc626
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
extra/docker/latest/config/config.py
ExentriqLtd/exentriq-advanced-analytics
a7a45af97e8e7956bbf389bb952d625c69ddc626
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
# 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.616588
111
0.70214
4a04c10ca743bb743230745a8023932677429bbc
2,443
py
Python
examples/push_value_update.py
c0gnac/dealcloud-python
ee27603e262eb49415fb2620b680a970ee3728a9
[ "BSD-3-Clause" ]
1
2020-04-17T08:28:58.000Z
2020-04-17T08:28:58.000Z
examples/push_value_update.py
c0gnac/dealcloud-python
ee27603e262eb49415fb2620b680a970ee3728a9
[ "BSD-3-Clause" ]
3
2020-04-17T13:26:55.000Z
2021-03-31T19:33:49.000Z
examples/push_value_update.py
jholtio/dealcloud-python
995d5a4066441120d2e8f4612ea4c20b658df123
[ "BSD-3-Clause" ]
2
2020-04-17T12:53:23.000Z
2021-02-27T00:09:39.000Z
""" This script pushes a new value to the EBITDA field for the "Project Genome" entry on the Deal list """ import getpass as gp import sys import requests import zeep from zeep import xsd import dealcloud as dc # Create an instance of a client for the DealCloud Data Service and a service # proxy t...
28.406977
80
0.678264
4a04c3b0db032d5fcb57fe0dec6eb6916e0e5589
65
py
Python
duendecat.py
patarapolw/duen-gui
8ad04b4346419d9bfe3cfd6fdad49ca50030d56b
[ "MIT" ]
3
2019-03-18T18:34:34.000Z
2021-09-09T07:47:59.000Z
duendecat.py
patarapolw/duen-gui
8ad04b4346419d9bfe3cfd6fdad49ca50030d56b
[ "MIT" ]
null
null
null
duendecat.py
patarapolw/duen-gui
8ad04b4346419d9bfe3cfd6fdad49ca50030d56b
[ "MIT" ]
null
null
null
import duendecat if __name__ == '__main__': duendecat.gui()
13
26
0.692308
4a04c3f4c75301cfa2eafd4c7370ebeb54170976
3,755
py
Python
pytorch_pfn_extras/training/triggers/interval_trigger.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
null
null
null
pytorch_pfn_extras/training/triggers/interval_trigger.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
null
null
null
pytorch_pfn_extras/training/triggers/interval_trigger.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
null
null
null
from pytorch_pfn_extras.training import trigger class IntervalTrigger(trigger.Trigger): """Trigger based on a fixed interval. This trigger accepts iterations divided by a given interval. There are two ways to specify the interval: per iterations and epochs. `Iteration` means the number of updates, w...
34.449541
79
0.628495
4a04c50914cd621e0dd2d3c7118a67d1abdc1195
177
py
Python
app/__init__.py
sythe100/maintenance-minder
f6c1494f6f8108ac206ba32bd2cd7c9bf85e9bbd
[ "MIT" ]
null
null
null
app/__init__.py
sythe100/maintenance-minder
f6c1494f6f8108ac206ba32bd2cd7c9bf85e9bbd
[ "MIT" ]
null
null
null
app/__init__.py
sythe100/maintenance-minder
f6c1494f6f8108ac206ba32bd2cd7c9bf85e9bbd
[ "MIT" ]
null
null
null
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) from app import views, models
17.7
43
0.785311
4a04c57033fb6f6435f86a0c86aa55290b4a06c8
1,320
py
Python
helium/auth/views/apis/usersettingsviews.py
HeliumEdu/platform
54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5
[ "MIT" ]
15
2018-01-02T00:44:58.000Z
2022-03-19T21:38:29.000Z
helium/auth/views/apis/usersettingsviews.py
HeliumEdu/platform
54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5
[ "MIT" ]
327
2017-11-24T22:36:07.000Z
2022-02-10T08:09:08.000Z
helium/auth/views/apis/usersettingsviews.py
HeliumEdu/platform
54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5
[ "MIT" ]
3
2018-05-04T17:57:58.000Z
2021-11-18T13:58:46.000Z
import logging from django.contrib.auth import get_user_model from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from helium.auth.serializers.usersettingsserializer import UserSettingsSerializer from helium.common.views.views import HeliumAPIView __author__ = "Alex La...
31.428571
119
0.744697
4a04c6923c9faa9634338334fe24955e29a5f0fe
2,910
py
Python
src/ggrc_basic_permissions/roles/Reader.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_basic_permissions/roles/Reader.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_basic_permissions/roles/Reader.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """A module with configuration of the Reader role's permissions.""" # pylint: disable=invalid-name from ggrc_basic_permissions.roles.Creator import owner_update scope = "System" description = """ This...
22.045455
78
0.47354
4a04c755e231cb5561fabc7e7105c8655722b358
2,621
py
Python
src/dispatch/incident_priority/views.py
BuildJet/dispatch
d9fcaabefecfb24bbf3bbed1ed942084b7bdbea2
[ "Apache-2.0" ]
null
null
null
src/dispatch/incident_priority/views.py
BuildJet/dispatch
d9fcaabefecfb24bbf3bbed1ed942084b7bdbea2
[ "Apache-2.0" ]
null
null
null
src/dispatch/incident_priority/views.py
BuildJet/dispatch
d9fcaabefecfb24bbf3bbed1ed942084b7bdbea2
[ "Apache-2.0" ]
null
null
null
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from dispatch.database.core import get_db from dispatch.database.service import common_parameters, search_filter_sort_paginate from dispatch.auth.permissions import SensitiveProjectActionPermission, PermissionsDependency from .mo...
31.202381
96
0.751622
4a04c792708b0dfcc86f28746d98e08203ddff23
125
py
Python
setup.py
jmathison/gym-simpleflappy
54acd54346f0ba4a611120a9ebba69acf0bae8b5
[ "MIT" ]
null
null
null
setup.py
jmathison/gym-simpleflappy
54acd54346f0ba4a611120a9ebba69acf0bae8b5
[ "MIT" ]
null
null
null
setup.py
jmathison/gym-simpleflappy
54acd54346f0ba4a611120a9ebba69acf0bae8b5
[ "MIT" ]
1
2019-09-19T05:26:02.000Z
2019-09-19T05:26:02.000Z
from setuptools import setup setup(name='gym_simpleflappy', version='0.0.1', install_requires=['gym','pygame'] )
20.833333
39
0.68
4a04c824459e8f20ee32e2dde4e638af1f687df0
255
py
Python
bin/template_minimal.py
cirosantilli/python-utils
3854d2c7973c6382f76e311423c219bccacb8c1d
[ "MIT" ]
1
2018-10-04T15:29:04.000Z
2018-10-04T15:29:04.000Z
bin/template_minimal.py
cirosantilli/python-utils
3854d2c7973c6382f76e311423c219bccacb8c1d
[ "MIT" ]
null
null
null
bin/template_minimal.py
cirosantilli/python-utils
3854d2c7973c6382f76e311423c219bccacb8c1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #================================================== # # Ciro D. Santilli # # default argparsers # #================================================== if __name__ == "__main__": import doctest doctest.testmod()
9.807692
51
0.352941
4a04c879a8a89aafc1478bec9b1c9f5a0525270e
2,344
py
Python
optuna/samplers/_search_space/group_decomposed.py
occamzrazor/optuna
89e38174e0f4ce245d31ea0e5fe3f6062deb093a
[ "MIT" ]
1
2021-02-25T12:30:12.000Z
2021-02-25T12:30:12.000Z
optuna/samplers/_search_space/group_decomposed.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
5
2021-05-23T08:39:21.000Z
2021-05-23T09:34:55.000Z
optuna/samplers/_search_space/group_decomposed.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
null
null
null
import copy from typing import Dict from typing import List from typing import Optional from typing import Tuple from optuna.distributions import BaseDistribution from optuna.study import BaseStudy from optuna.trial import TrialState class _SearchSpaceGroup(object): def __init__(self) -> None: self._sear...
37.206349
97
0.691126
4a04caf72dcf589752ad34b253ef70f1b92c083d
135,666
py
Python
salt/state.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/state.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/state.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The module used to execute states in salt. A state is unlike a module execution in that instead of just executing a command it ensure that a certain state is present on the system. The data sent to the state calls is as follows: { 'state': '<state module name>', 'fun': '<state fun...
42.408878
132
0.431081
4a04cb21c4bb5e8110cd9f795e680719f32470db
426
py
Python
microblog.py
Colton21/fat_logbook
059d58ee1218aff72d90aa463d4ddf5fd9379df6
[ "MIT" ]
null
null
null
microblog.py
Colton21/fat_logbook
059d58ee1218aff72d90aa463d4ddf5fd9379df6
[ "MIT" ]
null
null
null
microblog.py
Colton21/fat_logbook
059d58ee1218aff72d90aa463d4ddf5fd9379df6
[ "MIT" ]
null
null
null
from app import create_app, db, cli from app.models import User, Post, Message, Notification, Task, StartShiftPost, EndShiftPost app = create_app() cli.register(app) @app.shell_context_processor def make_shell_context(): return {'db': db, 'User': User, 'Post': Post, 'Message': Message, 'Notification'...
32.769231
92
0.70892
4a04cb24a8fecf1f76c6104ba56a84cdc1610df8
571
py
Python
config/celery_app.py
4kumax/lev
83f5f42c9a487875f4e77f0d45cab24ffd6eb52a
[ "MIT" ]
null
null
null
config/celery_app.py
4kumax/lev
83f5f42c9a487875f4e77f0d45cab24ffd6eb52a
[ "MIT" ]
null
null
null
config/celery_app.py
4kumax/lev
83f5f42c9a487875f4e77f0d45cab24ffd6eb52a
[ "MIT" ]
null
null
null
import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") app = Celery("levgit") # Using a string here means the worker doesn't have to serialize # the configuration object to child processes. # - n...
31.722222
72
0.781086
4a04ccc17123153de649d1674e34e0e8761a4169
10,074
py
Python
test/functional/p2p-acceptblock.py
BitBridgeCoin/BitBridgeCoin
7d4d78472bf9dbfd6458498cdef78954796674da
[ "MIT" ]
4
2021-04-07T15:12:54.000Z
2021-06-14T01:43:35.000Z
test/functional/p2p-acceptblock.py
BitBridgeCoin/BitBridgeCoin
7d4d78472bf9dbfd6458498cdef78954796674da
[ "MIT" ]
null
null
null
test/functional/p2p-acceptblock.py
BitBridgeCoin/BitBridgeCoin
7d4d78472bf9dbfd6458498cdef78954796674da
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The BitBridgeCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test processing of unrequested blocks. Since behavior differs when receiving unrequested blocks ...
44.773333
107
0.668156
4a04cd27a5a8ac51d0393a15da3a8bb86d9fd92a
615
py
Python
runserver.py
Samiasa/UsabilityConsole
38fa0d97d27c5f92e23f369d862602b0e9bca47d
[ "RSA-MD" ]
null
null
null
runserver.py
Samiasa/UsabilityConsole
38fa0d97d27c5f92e23f369d862602b0e9bca47d
[ "RSA-MD" ]
1
2021-06-07T17:15:42.000Z
2021-06-07T17:15:42.000Z
runserver.py
Samiasa/UsabilityConsole
38fa0d97d27c5f92e23f369d862602b0e9bca47d
[ "RSA-MD" ]
1
2021-03-03T20:18:15.000Z
2021-03-03T20:18:15.000Z
from console import app from config import DEBUG, HOST, PORT, RESET_DATABASE_ON_START from flask import session as flask_session import os import logging import utils logging.basicConfig(level=logging.DEBUG, format='[%(asctime)s] [%(levelname)s] -- %(message)s', datefmt='%d-%b-%y %H:%M:%S') if __name__ == "__main__"...
32.368421
124
0.699187
4a04d04953c5357d9136fd68edf035f03b91a845
881
py
Python
test/test_requirement_resource.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
1
2019-09-10T17:55:53.000Z
2019-09-10T17:55:53.000Z
test/test_requirement_resource.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
null
null
null
test/test_requirement_resource.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
2
2019-02-12T23:15:10.000Z
2022-03-11T20:08:28.000Z
# coding: utf-8 """ qTest Manager API Version 8.6 - 9.1 qTest Manager API Version 8.6 - 9.1 OpenAPI spec version: 8.6 - 9.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest impo...
20.488372
81
0.668558
4a04d1409df2d3b1d1bc8effbb1ba3078d537da2
3,098
py
Python
nipype/interfaces/mrtrix/tests/test_auto_SphericallyDeconvolutedStreamlineTrack.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/mrtrix/tests/test_auto_SphericallyDeconvolutedStreamlineTrack.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/mrtrix/tests/test_auto_SphericallyDeconvolutedStreamlineTrack.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ....testing import assert_equal from ..tracking import SphericallyDeconvolutedStreamlineTrack def test_SphericallyDeconvolutedStreamlineTrack_inputs(): input_map = dict(args=dict(argstr='%s', ), cutoff_value=dict(argstr='-cutoff %s', units='NA...
26.706897
78
0.629761
4a04d15ad9bf59e31d09746d2f74acef5c086c66
42,100
py
Python
django/contrib/gis/geos/tests/test_geos.py
mitar/django
aa757ac22de3e657df49086cf01a26f6c73b8dfb
[ "BSD-3-Clause" ]
1
2016-05-09T02:41:07.000Z
2016-05-09T02:41:07.000Z
django/contrib/gis/geos/tests/test_geos.py
akaihola/django
169b1a404c8118bb75840523d5fb3543de9c8889
[ "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/tests/test_geos.py
akaihola/django
169b1a404c8118bb75840523d5fb3543de9c8889
[ "BSD-3-Clause" ]
null
null
null
import ctypes import random import unittest from django.contrib.gis.geos import * from django.contrib.gis.geos.base import gdal, numpy, GEOSBase from django.contrib.gis.geos.libgeos import GEOS_PREPARE from django.contrib.gis.geometry.test_data import TestDataMixin class GEOSTest(unittest.TestCase, TestDataMixin): ...
40.993184
121
0.589287
4a04d186693ce004c4d673386d0582c0ab745e4e
982
py
Python
packs/windows/actions/winrm_cmd.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/windows/actions/winrm_cmd.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/windows/actions/winrm_cmd.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from winrm.protocol import Protocol from st2actions.runners.pythonrunner import Action __all__ = [ 'WinRMCmdAction' ] class WinRMCmdAction(Action): def run(self, host, password, command, params, username='Administrator', port=5732, secure=True): proto = 'https' if secure else...
32.733333
77
0.57332
4a04d1bdb1889a3e34b24add11b629884f782152
1,305
py
Python
Kitti_loader/kitti_dataset/data_loader.py
Jonas-LUOJIAN/KITTI-DepthCompletion-DataLoader
499ed92834c77c8c4f74dc3c057d4d4bd6bc7b51
[ "MIT" ]
1
2021-12-17T12:26:24.000Z
2021-12-17T12:26:24.000Z
Kitti_loader/kitti_dataset/data_loader.py
Jonas-LUOJIAN/KITTI-DepthCompletion-DataLoader
499ed92834c77c8c4f74dc3c057d4d4bd6bc7b51
[ "MIT" ]
null
null
null
Kitti_loader/kitti_dataset/data_loader.py
Jonas-LUOJIAN/KITTI-DepthCompletion-DataLoader
499ed92834c77c8c4f74dc3c057d4d4bd6bc7b51
[ "MIT" ]
null
null
null
from kitti_dataset.kitti_loader import Kitti_dataset, Kitti_Dataset from torch.utils.data import DataLoader import random # dataset_path = "D:/kitti" # kitti = Kitti_dataset(dataset_path) # print(kitti.train_paths) # kitti.read_kitti_from_local() # # kitti_train = Kitti_Dataset(kitti.train_paths, transform=Tr...
36.25
103
0.737931
4a04d295a72c2424fd2e0d9129f96492e37146ca
825
py
Python
bin/parse-ingredient-text.py
tiger1021/ingredient-phrase-tagger
71fba65aa99eacb9860bb9eeee6409236c10f0e1
[ "Apache-2.0" ]
null
null
null
bin/parse-ingredient-text.py
tiger1021/ingredient-phrase-tagger
71fba65aa99eacb9860bb9eeee6409236c10f0e1
[ "Apache-2.0" ]
null
null
null
bin/parse-ingredient-text.py
tiger1021/ingredient-phrase-tagger
71fba65aa99eacb9860bb9eeee6409236c10f0e1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys import os import tempfile import StringIO import json import subprocess from ingredient_phrase_tagger.training import utils if len(sys.argv) < 2: sys.stderr.write('Usage: parse-ingredients.py TEXT') sys.exit(1) text = sys.argv[1] _, tm...
23.571429
107
0.753939
4a04d2f43285c142f805c78a0d42021b4dbef0a8
1,801
py
Python
setup.py
HopeLapointe/fieldbioinformatics
c67295329b56a1bec0ae11ec0d12275a23badf54
[ "MIT" ]
null
null
null
setup.py
HopeLapointe/fieldbioinformatics
c67295329b56a1bec0ae11ec0d12275a23badf54
[ "MIT" ]
null
null
null
setup.py
HopeLapointe/fieldbioinformatics
c67295329b56a1bec0ae11ec0d12275a23badf54
[ "MIT" ]
null
null
null
import os from setuptools import setup version_py = os.path.join(os.path.dirname(__file__), 'artic', 'version.py') version = open(version_py).read().strip().split( '=')[-1].replace('"', '').strip() long_description = """ ``artic`` is a pipeline for working with virus sequencing data sequenced with nanopore """ HE...
34.634615
86
0.649084
4a04d2f761d22a62a0286e2ec724c0ed67ce8031
3,416
py
Python
test/test_derived_metric_api.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
test/test_derived_metric_api.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
test/test_derived_metric_api.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
28.705882
409
0.679157
4a04d41ebd60c8f9a623a91b07f9ccffab4035a1
657
py
Python
models/__init__.py
ChenWang8750/WTAM_net
b5c01b9ebc2514cf6fc8ce45c0944b79f0c2a54d
[ "MIT" ]
4
2021-07-12T23:28:21.000Z
2021-07-25T02:16:50.000Z
models/__init__.py
ChenWang8750/WTAM_net
b5c01b9ebc2514cf6fc8ce45c0944b79f0c2a54d
[ "MIT" ]
null
null
null
models/__init__.py
ChenWang8750/WTAM_net
b5c01b9ebc2514cf6fc8ce45c0944b79f0c2a54d
[ "MIT" ]
null
null
null
def create_model(opt): model = None print(opt.model) if opt.model == 'MuFA_Net': assert (opt.dataset_mode == 'aligned' or opt.dataset_mode == 'aligned_resized') from models.net_models.MuFANet_model import MuFANetModel model = MuFANetModel() elif opt.model == 'WTAM': asse...
34.578947
87
0.648402
4a04d51ba9098f83a85822c0ec308c1aaf932cf1
2,729
py
Python
colour/volume/tests/test_macadam_limits.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
1,380
2015-01-10T12:30:33.000Z
2022-03-30T10:19:57.000Z
colour/volume/tests/test_macadam_limits.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
638
2015-01-02T10:49:05.000Z
2022-03-29T10:16:22.000Z
colour/volume/tests/test_macadam_limits.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
250
2015-01-21T15:27:19.000Z
2022-03-30T10:23:58.000Z
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.volume.macadam_limits` module. """ import numpy as np import unittest from itertools import permutations from colour.volume import is_within_macadam_limits from colour.utilities import ignore_numpy_errors __author__ = 'Colour Developers' __copyr...
31.011364
78
0.652986
4a04d6f0ee0194532abd1a2bc453b13410755aab
325
py
Python
Codes/Math/perfect_number.py
datta-agni/python-codes
d902d0aaf23d2ea4b60ed7ecab0d593e3334c23b
[ "MIT" ]
null
null
null
Codes/Math/perfect_number.py
datta-agni/python-codes
d902d0aaf23d2ea4b60ed7ecab0d593e3334c23b
[ "MIT" ]
null
null
null
Codes/Math/perfect_number.py
datta-agni/python-codes
d902d0aaf23d2ea4b60ed7ecab0d593e3334c23b
[ "MIT" ]
null
null
null
def perfect_number(number: int) -> bool: sum: int = 0 for x in range(1, number): if number % x == 0: sum += x return sum == number if __name__ == "__main__": print( perfect_number( int(input("Enter the number to check for perfect number : ")) ) ...
21.666667
73
0.510769
4a04d8d85f77a8d7f657e505ececdd24908bbec2
7,104
py
Python
examples/eval_arith.py
schlichtanders/pyparsing-2.0.3-OrderedDict
50bb1a10b63ac623ef58ffa3ee59bb08be172ff4
[ "MIT" ]
null
null
null
examples/eval_arith.py
schlichtanders/pyparsing-2.0.3-OrderedDict
50bb1a10b63ac623ef58ffa3ee59bb08be172ff4
[ "MIT" ]
null
null
null
examples/eval_arith.py
schlichtanders/pyparsing-2.0.3-OrderedDict
50bb1a10b63ac623ef58ffa3ee59bb08be172ff4
[ "MIT" ]
null
null
null
# eval_arith.py # # Copyright 2009, 2011 Paul McGuire # # Expansion on the pyparsing example simpleArith.py, to include evaluation # of the parsed tokens. # # Added support for exponentiation, using right-to-left evaluation of # operands # from pyparsingOD import Word, nums, alphas, Combine, oneOf, \ opA...
31.157895
75
0.442286
4a04d91b06e56946d56460911ddd1e7c62a31fe4
4,181
py
Python
tests/test_oembed.py
kgaughan/adjunct
b4e845d3b9c0648e6ac46ee25e484e9660f3924e
[ "MIT" ]
null
null
null
tests/test_oembed.py
kgaughan/adjunct
b4e845d3b9c0648e6ac46ee25e484e9660f3924e
[ "MIT" ]
1
2019-02-23T14:41:35.000Z
2020-06-15T13:00:46.000Z
tests/test_oembed.py
kgaughan/adjunct
b4e845d3b9c0648e6ac46ee25e484e9660f3924e
[ "MIT" ]
null
null
null
from http import client import io import json import unittest from unittest import mock from adjunct.fixtureutils import FakeSocket, make_fake_http_response from adjunct.oembed import ( _build_url, fetch_oembed_document, find_first_oembed_link, parse_xml_oembed_response, ) class BuildUrlTest(unittest...
31.674242
84
0.566372
4a04da5f2d812a742b1816e73b2e299c829d08ff
2,884
py
Python
pystatreduce/doc/plot/plot_hadamard/plot_2DHadamard_contour.py
OptimalDesignLab/pyStatReduce
9ea128409b91dd582e574e2e1cc153572b6c60a4
[ "MIT" ]
null
null
null
pystatreduce/doc/plot/plot_hadamard/plot_2DHadamard_contour.py
OptimalDesignLab/pyStatReduce
9ea128409b91dd582e574e2e1cc153572b6c60a4
[ "MIT" ]
null
null
null
pystatreduce/doc/plot/plot_hadamard/plot_2DHadamard_contour.py
OptimalDesignLab/pyStatReduce
9ea128409b91dd582e574e2e1cc153572b6c60a4
[ "MIT" ]
null
null
null
# Plot the contours of a 2D Hadamard Quadratic. This figure has 3 subplots, # which describe the effect of different eigenvalue decay rates on the contours # of the Hadamard quadratic import os import sys import errno sys.path.insert(0, '../../src') import numpy as np from mpl_toolkits import mplot3d import matplotli...
36.506329
79
0.690707
4a04dad1a93a517dc1c0d49b0ef375f11430bc80
407
py
Python
tests/test_world.py
Will-Holden/cascadv2
fd43d47d4be075d30e75053f9af3cd82c33b6623
[ "Apache-2.0" ]
null
null
null
tests/test_world.py
Will-Holden/cascadv2
fd43d47d4be075d30e75053f9af3cd82c33b6623
[ "Apache-2.0" ]
null
null
null
tests/test_world.py
Will-Holden/cascadv2
fd43d47d4be075d30e75053f9af3cd82c33b6623
[ "Apache-2.0" ]
1
2022-03-24T10:01:28.000Z
2022-03-24T10:01:28.000Z
import sys import os sys.path.append('..') sys.path.append('.') import unittest from cascad.experiment.token_sender import ERC20TokenWorld class TestAgent(unittest.TestCase): def test_token_world(self): erc20_token_world = ERC20TokenWorld(0.5, 10, 10) print(erc20_token_world.next_id()) er...
22.611111
58
0.697789
4a04db344a155c70cb7857af7896426dc02f7f38
1,440
py
Python
db_format_helpers/strings_in_fields_to_numbers.py
ThorsteinnAdal/webcrawls_in_singapore_shippinglane
6f6073c58648407c495931678adb1d584e9105df
[ "Apache-2.0" ]
null
null
null
db_format_helpers/strings_in_fields_to_numbers.py
ThorsteinnAdal/webcrawls_in_singapore_shippinglane
6f6073c58648407c495931678adb1d584e9105df
[ "Apache-2.0" ]
null
null
null
db_format_helpers/strings_in_fields_to_numbers.py
ThorsteinnAdal/webcrawls_in_singapore_shippinglane
6f6073c58648407c495931678adb1d584e9105df
[ "Apache-2.0" ]
null
null
null
__author__ = 'thorsteinn' from is_number import is_number from is_int import is_int def strings_in_fields_to_numbers(db_key, db): """ A method for converting typed numbers to actual numbers u'123.22' should be turned into a floating point number u'123' should be turned into an integer number :param...
37.894737
119
0.555556
4a04db5c1a40b7c834d271b650c5a9f7e0dc8007
24,247
py
Python
python/ray/tests/test_client.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
33
2020-05-27T14:25:24.000Z
2022-03-22T06:11:30.000Z
python/ray/tests/test_client.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
227
2021-10-01T08:00:01.000Z
2021-12-28T16:47:26.000Z
python/ray/tests/test_client.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
5
2020-08-06T15:53:07.000Z
2022-02-09T03:31:31.000Z
import os import pytest import time import sys import logging import queue import threading import _thread from unittest.mock import patch import ray.util.client.server.server as ray_client_server from ray.tests.client_test_utils import create_remote_signal_actor from ray.tests.client_test_utils import run_wrapped_act...
31.286452
80
0.615829
4a04dc1e0162362683e5c9012f085d2067199f21
10,309
py
Python
models/true_or_false_model.py
katsugeneration/gap-conf-kaggle
6c91b40a0f7dd30b24cbc3cbab664d187540e159
[ "MIT" ]
null
null
null
models/true_or_false_model.py
katsugeneration/gap-conf-kaggle
6c91b40a0f7dd30b24cbc3cbab664d187540e159
[ "MIT" ]
null
null
null
models/true_or_false_model.py
katsugeneration/gap-conf-kaggle
6c91b40a0f7dd30b24cbc3cbab664d187540e159
[ "MIT" ]
null
null
null
import pandas import utils import pickle import numpy as np from sklearn.metrics import accuracy_score, log_loss import optuna import xgboost as xgb from models import stanfordnlp_model dtype = np.int32 DEFAULT_NGRAM_WINDOW = 2 DEFAULT_WINDOW_SIZE = 10 NONE_DEPENDENCY = 'NONE' def _load_data(df, use_preprocessdata=...
42.077551
212
0.644097
4a04de3340f24a7c515854fa5b96aeedb23f74c8
1,871
py
Python
lldb/test/API/lang/objc/foundation/TestObjCMethodsNSError.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lldb/test/API/lang/objc/foundation/TestObjCMethodsNSError.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/test/API/lang/objc/foundation/TestObjCMethodsNSError.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
""" Test more expression command sequences with objective-c. """ import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class FoundationTestCaseNSError(TestBase): mydir = TestBase.compute_mydir(__file__) @expectedFailureAll(archs=["i[...
38.183673
108
0.618386
4a04de881bbf71126f3dfd62a2c7df73418d8a33
5,446
py
Python
ckanext/datastore/cli.py
mabah-mst/ckan
105f613272c2e31daa0081ead24c678bf1b55c22
[ "Apache-2.0" ]
2
2017-05-15T08:16:49.000Z
2019-05-30T23:53:39.000Z
ckanext/datastore/cli.py
mabah-mst/ckan
105f613272c2e31daa0081ead24c678bf1b55c22
[ "Apache-2.0" ]
1
2021-05-13T11:24:02.000Z
2021-05-13T11:24:02.000Z
ckanext/datastore/cli.py
cascaoSDC/ckan
75a08caa7c688ce70229dfea7070cc667a15c5e8
[ "BSD-3-Clause" ]
4
2018-10-08T12:05:16.000Z
2021-11-24T16:18:52.000Z
# encoding: utf-8 import logging import os import click from ckan.model import parse_db_config from ckan.common import config import ckan.logic as logic import ckanext.datastore as datastore_module from ckanext.datastore.backend.postgres import identifier from ckanext.datastore.blueprint import DUMP_FORMATS, dump_t...
30.088398
78
0.643959
4a04e22adafbd1373a9d9fc82325fd3d15005b8b
647
py
Python
Lesson 13.gf/xml_Leader2.py
gfoo003/programming-together
225e0a2255dd8da1f1ef32d2a88deea27c050f10
[ "MIT" ]
null
null
null
Lesson 13.gf/xml_Leader2.py
gfoo003/programming-together
225e0a2255dd8da1f1ef32d2a88deea27c050f10
[ "MIT" ]
null
null
null
Lesson 13.gf/xml_Leader2.py
gfoo003/programming-together
225e0a2255dd8da1f1ef32d2a88deea27c050f10
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET xml_string = ''' <stuff> <users> <user x = "2"> <id>001</id> <name>Chuck</name> </user> <user x = "7"> <id>007</id> <name>Brent</name> </user> </users> </stuff> ''' root_stuff = ET.fromstring(xml...
23.107143
48
0.565688
4a04e26d0887bc85a21fc7afaeec298a95c56f0b
415
py
Python
basic/publishers/models.py
rmolinamir/Django-App
b1e7eac22caa0010ac2a592ee7edb829f6eeb95a
[ "MIT" ]
null
null
null
basic/publishers/models.py
rmolinamir/Django-App
b1e7eac22caa0010ac2a592ee7edb829f6eeb95a
[ "MIT" ]
7
2020-02-12T03:21:09.000Z
2022-02-10T09:04:52.000Z
basic/publishers/models.py
rmolinamir/Django-App
b1e7eac22caa0010ac2a592ee7edb829f6eeb95a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import BaseUserManager class Publisher(models.Model): """ Schema for publisher instances. """ name = models.TextField(null=False) created_at = models.DateField(editable=False, auto_now=True) objects = BaseUserManager() def __str...
25.9375
64
0.703614
4a04e350f4222ba29bc0dff4fb87e51d56ba0603
6,816
py
Python
migrations/versions/d6c0f2c3dfbe_.py
EandrewJones/srdp-database
22b9f5bcbffcd14b17cd62c6b268e5be079bf4fe
[ "MIT" ]
null
null
null
migrations/versions/d6c0f2c3dfbe_.py
EandrewJones/srdp-database
22b9f5bcbffcd14b17cd62c6b268e5be079bf4fe
[ "MIT" ]
null
null
null
migrations/versions/d6c0f2c3dfbe_.py
EandrewJones/srdp-database
22b9f5bcbffcd14b17cd62c6b268e5be079bf4fe
[ "MIT" ]
null
null
null
"""empty message Revision ID: d6c0f2c3dfbe Revises: Create Date: 2022-04-11 21:19:57.276686 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd6c0f2c3dfbe' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
52.030534
105
0.702171
4a04e38beb9bcefe3a2685a219769dc9a94c54da
1,017
py
Python
designate/scheduler/__init__.py
ISCAS-VDI/designate-base
bd945607e3345fbef8645c3441e96b032b70b098
[ "Apache-2.0" ]
null
null
null
designate/scheduler/__init__.py
ISCAS-VDI/designate-base
bd945607e3345fbef8645c3441e96b032b70b098
[ "Apache-2.0" ]
null
null
null
designate/scheduler/__init__.py
ISCAS-VDI/designate-base
bd945607e3345fbef8645c3441e96b032b70b098
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Hewlett Packard Enterprise Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
30.818182
75
0.751229
4a04e3a33b3983b23a06a7127a91a499cf37f0bf
4,355
py
Python
devutils/check_patch_files.py
InternetGoddessShinatama/Manamoon
abfdd8f247497cda2a57a8dbc93f6193c4b8345b
[ "BSD-3-Clause" ]
null
null
null
devutils/check_patch_files.py
InternetGoddessShinatama/Manamoon
abfdd8f247497cda2a57a8dbc93f6193c4b8345b
[ "BSD-3-Clause" ]
null
null
null
devutils/check_patch_files.py
InternetGoddessShinatama/Manamoon
abfdd8f247497cda2a57a8dbc93f6193c4b8345b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # Copyright (c) 2020 Saint Corp. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Run sanity checking algorithms over Manamoon's patch files It checks the following: * All patches exist ...
30.886525
85
0.679679
4a04e449f927196d2489985bf8319d6c891853bb
4,126
py
Python
video_generator.py
ArthurFDLR/SwainsonsThrush-detector
ce304ffc580380887261af30a02d1fc5ad231aba
[ "MIT" ]
null
null
null
video_generator.py
ArthurFDLR/SwainsonsThrush-detector
ce304ffc580380887261af30a02d1fc5ad231aba
[ "MIT" ]
null
null
null
video_generator.py
ArthurFDLR/SwainsonsThrush-detector
ce304ffc580380887261af30a02d1fc5ad231aba
[ "MIT" ]
null
null
null
import scipy.io.wavfile import scipy.signal import matplotlib.pyplot as plt import numpy as np from tqdm import tqdm import pathlib import os CURRENT_PATH = pathlib.Path(__file__).parent.absolute() def ln_GLRT(s_array:np.ndarray, x_array:np.ndarray) -> np.ndarray: """ Compute the value of natural logarithm of th...
35.878261
139
0.692923
4a04e483f58b592b661388a28fd37bb8827f6846
4,551
py
Python
Main.py
syzadele/CosmeticScanner
4834977b7b54a17324b88513cff84c3d6f6ff63e
[ "Apache-2.0" ]
null
null
null
Main.py
syzadele/CosmeticScanner
4834977b7b54a17324b88513cff84c3d6f6ff63e
[ "Apache-2.0" ]
null
null
null
Main.py
syzadele/CosmeticScanner
4834977b7b54a17324b88513cff84c3d6f6ff63e
[ "Apache-2.0" ]
null
null
null
import requests import codecs from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.keys import Keys from email.mime import image from test.test_email import openfile from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.w...
33.218978
126
0.686662
4a04e4c0c840fcec22a61a45d6570509cd073978
2,438
py
Python
octo_train/db/tinydbdatabase.py
dankondr/octo-train
3d1b38b498b3f551bff33410d64ffebc387b9e0f
[ "MIT" ]
2
2020-04-09T17:16:16.000Z
2020-04-10T00:16:18.000Z
octo_train/db/tinydbdatabase.py
dankondr/octo-train
3d1b38b498b3f551bff33410d64ffebc387b9e0f
[ "MIT" ]
null
null
null
octo_train/db/tinydbdatabase.py
dankondr/octo-train
3d1b38b498b3f551bff33410d64ffebc387b9e0f
[ "MIT" ]
null
null
null
from datetime import datetime from random import randint from tinydb import TinyDB, where from octo_train.db.database_interface import IDatabase class TinyDBDatabase(IDatabase): _DATE_FORMAT = '%d.%m.%y' def __init__(self, path_to_db): self.db = TinyDB(path_to_db) self.user = None se...
30.098765
96
0.578753
4a04e4cc59a680365e1cc183628b5134ba211ccb
2,532
py
Python
code/Access_delta.py
rodrigoms95/herramientas-climatico-22-1
a85a941e6680637b7b595ad534ce6775328707c8
[ "BSD-3-Clause" ]
null
null
null
code/Access_delta.py
rodrigoms95/herramientas-climatico-22-1
a85a941e6680637b7b595ad534ce6775328707c8
[ "BSD-3-Clause" ]
null
null
null
code/Access_delta.py
rodrigoms95/herramientas-climatico-22-1
a85a941e6680637b7b595ad534ce6775328707c8
[ "BSD-3-Clause" ]
null
null
null
# Obtiene el delta de temperatura entre el periodo 1970-2000 # y 2020-2040 con datos del modelo Access. import os import xarray as xr modelo = "Access" path_d= os.getcwd() + "/datos/" + modelo + "/" path_r = os.getcwd() + "/resultados/" + modelo + "/" name = ["tas_Amon_ACCESS1-0_historical_r1i1p1_185001-200512.nc"...
26.93617
64
0.593602
4a04e6d400c8fde598373ba480fcda1be2f82463
2,304
py
Python
source/Library/reflection/Reflection.py
JarrettWendt/FIEAEngine
0bf7e89cd66fec29550f7d7a1a11f5cf398c27e5
[ "MIT" ]
2
2020-05-27T14:01:39.000Z
2022-03-21T09:11:58.000Z
source/Library/reflection/Reflection.py
JarrettWendt/FIEAEngine
0bf7e89cd66fec29550f7d7a1a11f5cf398c27e5
[ "MIT" ]
null
null
null
source/Library/reflection/Reflection.py
JarrettWendt/FIEAEngine
0bf7e89cd66fec29550f7d7a1a11f5cf398c27e5
[ "MIT" ]
null
null
null
import os, sys from pathlib import Path # TODO: # Don't assume the filename is the class name. # Do some syntax checking with the KEYWORDS instead of just ignoring them. # Come up with a cleaner way to encode the indentation, perhaps at the cost of double-parsing the string. # Use a library for real C++ parsing. # Mak...
28.097561
109
0.670139
4a04e7734422842189da8d7db232303546d54d5a
788
py
Python
account/migrations/0008_auto_20200415_1840.py
TolimanStaR/Course-Work
79dbfcbaef0ae79209295fe8d36b6fd9610e99b8
[ "MIT" ]
1
2020-03-31T22:09:34.000Z
2020-03-31T22:09:34.000Z
account/migrations/0008_auto_20200415_1840.py
TolimanStaR/Course-Work
79dbfcbaef0ae79209295fe8d36b6fd9610e99b8
[ "MIT" ]
8
2021-03-30T14:20:10.000Z
2022-03-12T00:52:03.000Z
account/migrations/0008_auto_20200415_1840.py
TolimanStaR/Course-Work
79dbfcbaef0ae79209295fe8d36b6fd9610e99b8
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-04-15 15:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0007_auto_20200415_1707'), ] operations = [ migrations.AlterField( model_name='userprofile', name='contes...
41.473684
441
0.638325
4a04e81bc52758d3933b202384d7b24cac6607be
267
py
Python
config.py
parshnt/gclass-bot
d0ce5fe48fccb7c481b18d06e111c623bfe37e67
[ "MIT" ]
2
2021-08-24T19:26:51.000Z
2022-03-04T12:21:34.000Z
config.py
parshnt/gclass-bot
d0ce5fe48fccb7c481b18d06e111c623bfe37e67
[ "MIT" ]
null
null
null
config.py
parshnt/gclass-bot
d0ce5fe48fccb7c481b18d06e111c623bfe37e67
[ "MIT" ]
null
null
null
# EMAIL & PASS FOR YOUR G-ACCOUNT PASS = "" EMAIL = "" # YOUR G-CLASSROOM/G-MEET URL CLASSROOM_URL = "" # IF NUMBER OF PEOPLE IN MEETING GETS BELOW THIS, YOU'LL LEAVE THE MEETING AUTOMATICALLY # KEEP IT 0, IF YOU DON'T WANT TO USE THIS FEATURE THRESHOLD_PEOPLE = 0
24.272727
88
0.719101
4a04e8b6ed2a66e7acd5bdfca9acd9dfed4a036b
1,749
py
Python
python/openradar/db.py
manicmaniac/openradar
1f0401165f4e5b67b9a06bbdbeb2fc612d6b8e8e
[ "Apache-2.0" ]
264
2015-01-07T18:48:55.000Z
2022-02-07T15:09:59.000Z
python/openradar/db.py
manicmaniac/openradar
1f0401165f4e5b67b9a06bbdbeb2fc612d6b8e8e
[ "Apache-2.0" ]
32
2015-01-12T08:39:16.000Z
2022-03-26T10:30:08.000Z
python/openradar/db.py
manicmaniac/openradar
1f0401165f4e5b67b9a06bbdbeb2fc612d6b8e8e
[ "Apache-2.0" ]
28
2015-04-07T05:26:08.000Z
2022-02-22T09:14:54.000Z
"""@package docstring Provides database access for models. """ import models class Radar(): def fetchAll(self, page = 1, count = 100): return models.Radar.gql("ORDER BY number DESC").fetch(count, offset=(page - 1) * count) def fetchCount(self): return models.Radar.all().count(limit=10...
38.021739
122
0.618639
4a04e970484b8ed63ccfd49457e0826cf71042da
3,182
py
Python
code/model_classifier.py
acids-ircam/lottery_mir
1440d717d7fd688ac43c1a406602aaf2d5a3842d
[ "MIT" ]
10
2020-07-29T23:12:15.000Z
2022-03-23T16:27:43.000Z
code/model_classifier.py
acids-ircam/lottery_mir
1440d717d7fd688ac43c1a406602aaf2d5a3842d
[ "MIT" ]
null
null
null
code/model_classifier.py
acids-ircam/lottery_mir
1440d717d7fd688ac43c1a406602aaf2d5a3842d
[ "MIT" ]
1
2022-02-06T11:42:28.000Z
2022-02-06T11:42:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 23 17:41:02 2020 @author: esling """ import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from model import LotteryClassification """ Here we define a dilated 1d-CNN model for general purpose waveform classificati...
31.82
101
0.570082
4a04ea3a06ccd927cca5332fdc78ad899cae524a
8,060
py
Python
metatests/cloudcafe/bare_metal/drivers/models/test_driver_responses.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
metatests/cloudcafe/bare_metal/drivers/models/test_driver_responses.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
metatests/cloudcafe/bare_metal/drivers/models/test_driver_responses.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
1
2020-04-13T17:44:28.000Z
2020-04-13T17:44:28.000Z
""" Copyright 2014 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...
33.723849
79
0.359553
4a04eb9ca1a884fccbff255822fd042d715eccdd
396
py
Python
tests/test_field.py
samarjeet27/CSV-Mapper
90946a138b5690623ef1e2ada42b32c9f3e52b16
[ "MIT" ]
18
2015-01-21T15:03:21.000Z
2017-05-09T10:15:46.000Z
tests/test_field.py
samarsault/CSV-Mapper
90946a138b5690623ef1e2ada42b32c9f3e52b16
[ "MIT" ]
8
2015-03-14T14:22:26.000Z
2017-06-04T11:45:05.000Z
tests/test_field.py
samarsault/CSV-Mapper
90946a138b5690623ef1e2ada42b32c9f3e52b16
[ "MIT" ]
8
2015-01-21T15:03:22.000Z
2017-05-18T06:31:21.000Z
import unittest import csvmapper class FieldTest(unittest.TestCase): def setUp(self): parser = csvmapper.CSVParser('tests/data/sampleData.csv', csvmapper.FieldMapper(('name', 'job','country','age'))) self.obj = parser.buildDict() def test_attr(self): self.assertEqual(self.obj[0]['name'], 'John') self.assert...
28.285714
115
0.709596
4a04ecc0ea5491e30189c25e7bc6d7bea4cb874b
41
py
Python
tests/__init__.py
swallat/safe_reboot
f950deb429f38e0e80d8f884afc06f2d7201e023
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
swallat/safe_reboot
f950deb429f38e0e80d8f884afc06f2d7201e023
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
swallat/safe_reboot
f950deb429f38e0e80d8f884afc06f2d7201e023
[ "Apache-2.0" ]
null
null
null
"""Unit test package for safe_reboot."""
20.5
40
0.707317
4a04ee2c1a8b91e1f93c84c850d971f3b870dc19
74
py
Python
main.py
FranckEnriquez/pythonProject
28e7612ed19e5a9a124a7cfefadf6b8db5e84d12
[ "MIT" ]
null
null
null
main.py
FranckEnriquez/pythonProject
28e7612ed19e5a9a124a7cfefadf6b8db5e84d12
[ "MIT" ]
null
null
null
main.py
FranckEnriquez/pythonProject
28e7612ed19e5a9a124a7cfefadf6b8db5e84d12
[ "MIT" ]
null
null
null
''' main.py: gather the principals components of each project section. '''
24.666667
66
0.743243
4a04ee67b3640917360632de75e33771c4b16186
2,664
py
Python
djangox/lib/python3.8/site-packages/debug_toolbar/panels/sql/forms.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
1
2020-10-19T12:35:10.000Z
2020-10-19T12:35:10.000Z
djangox/lib/python3.8/site-packages/debug_toolbar/panels/sql/forms.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
6
2021-04-08T20:09:57.000Z
2022-03-12T00:49:24.000Z
djangox/lib/python3.8/site-packages/debug_toolbar/panels/sql/forms.py
DemarcusL/django_wiki_lab
3b7cf18af7e0f89c94d10eb953ca018a150a2f55
[ "MIT" ]
3
2020-10-07T20:19:52.000Z
2020-11-09T14:42:55.000Z
import hashlib import hmac import json from django import forms from django.conf import settings from django.core.exceptions import ValidationError from django.db import connections from django.utils.crypto import constant_time_compare from django.utils.encoding import force_bytes from django.utils.functional import c...
28.956522
83
0.664039
4a04ef8585e59a3d321deebceffd825ab1bbe049
547
py
Python
pytglib/api/types/chat_action_recording_voice_note.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/chat_action_recording_voice_note.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/chat_action_recording_voice_note.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class ChatActionRecordingVoiceNote(Object): """ The user is recording a voice note Attributes: ID (:obj:`str`): ``ChatActionRecordingVoiceNote`` No parameters required. Returns: ChatAction Raises: :class:`telegram.Error` """ ID =...
17.645161
63
0.621572
4a04ef9acaeeb7374c8d9e94079ecf6bcd1ed82a
342
py
Python
conanfile.py
CloudComputer/libInterpolate
75adc603364d19919909a89cfbfd02a1cc502bdb
[ "MIT" ]
1
2020-07-17T09:41:17.000Z
2020-07-17T09:41:17.000Z
conanfile.py
CloudComputer/libInterpolate
75adc603364d19919909a89cfbfd02a1cc502bdb
[ "MIT" ]
null
null
null
conanfile.py
CloudComputer/libInterpolate
75adc603364d19919909a89cfbfd02a1cc502bdb
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools import os class ConanBuild(ConanFile): generators = "cmake", "virtualenv" requires = 'boost/1.69.0@conan/stable', 'eigen/3.3.7@cd3/devel' build_requires = 'cmake_installer/3.13.0@conan/stable' def build(self): cmake = CMake(self) cmake.configure(...
24.428571
67
0.672515
4a04eff2ee2ce87d4181521b1d202b197c7c3a3a
556
py
Python
celery/contrib/test_runner.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
1
2017-12-26T06:29:37.000Z
2017-12-26T06:29:37.000Z
celery/contrib/test_runner.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
celery/contrib/test_runner.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.test.simple import run_tests as run_tests_orig USAGE = """\ Custom test runner to allow testing of celery delayed tasks. """ def run_tests(test_labels, *args, **kwargs): """Django test runner allowing testing of celery delayed tasks. All tasks are run locally, not...
27.8
67
0.726619
4a04f005c7d5f65452467a1f08104f5cebb9f8df
1,763
py
Python
tests/smartdatamodels/poi/test_poi.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
7
2022-02-25T09:55:28.000Z
2022-03-25T20:48:01.000Z
tests/smartdatamodels/poi/test_poi.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
tests/smartdatamodels/poi/test_poi.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Software Name: ngsildclient # SPDX-FileCopyrightText: Copyright (c) 2021 Orange # SPDX-License-Identifier: Apache 2.0 # # This software is distributed under the Apache 2.0; # see the NOTICE file for more details. # # Author: Fabien BATTELLO <fabien.battello@orange.com> et al. import pkg_resou...
32.054545
135
0.684061
4a04f2a90dd211dd0550fe3f62ffc632ce9e78e5
6,464
py
Python
Internetworking Distributed Project/finalProject/ovs/pox-master/tools/gui/communication.py
supriyasingh01/github_basics
8aa93f783cfe347368763ef31be5ab59fe8476a1
[ "CC0-1.0" ]
null
null
null
Internetworking Distributed Project/finalProject/ovs/pox-master/tools/gui/communication.py
supriyasingh01/github_basics
8aa93f783cfe347368763ef31be5ab59fe8476a1
[ "CC0-1.0" ]
null
null
null
Internetworking Distributed Project/finalProject/ovs/pox-master/tools/gui/communication.py
supriyasingh01/github_basics
8aa93f783cfe347368763ef31be5ab59fe8476a1
[ "CC0-1.0" ]
null
null
null
''' This module implements the communication between - the topology view and the monitoring backend that feeds it - the log view and NOX's logger - the json command prompt and NOX's json messenger @author Kyriakos Zarifis ''' from PyQt4 import QtGui, QtCore import SocketServer import socket ...
35.322404
93
0.568843
4a04f2ac56134703f643a6aeb3cdc6bc815685d3
19,348
py
Python
sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/test_query_text_async.py
bpkroth/azure-sdk-for-python
a269888e708c10d955b91b4ab421a81a8ccfda5b
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/test_query_text_async.py
bpkroth/azure-sdk-for-python
a269888e708c10d955b91b4ab421a81a8ccfda5b
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/test_query_text_async.py
bpkroth/azure-sdk-for-python
a269888e708c10d955b91b4ab421a81a8ccfda5b
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from azure.core.exceptions import HttpResponseError, ClientAuthenticationError from azure.core.credentials import AzureKeyCredential from testcase impor...
149.984496
6,497
0.729016
4a04f2ec50bbd3e759789a30aeb19903eac149ac
5,138
py
Python
files/exporter.py
astlz96/uptimerobot_exporter
dc27555fa50de1fa45dc8718af0f3846dde9b5e2
[ "Apache-2.0" ]
null
null
null
files/exporter.py
astlz96/uptimerobot_exporter
dc27555fa50de1fa45dc8718af0f3846dde9b5e2
[ "Apache-2.0" ]
null
null
null
files/exporter.py
astlz96/uptimerobot_exporter
dc27555fa50de1fa45dc8718af0f3846dde9b5e2
[ "Apache-2.0" ]
null
null
null
# FROM https://github.com/hnrd/uptimerobot_exporter/blob/master/exporter.py # Updated by Martin LEKPA import argparse import http.server import os import requests ## Monitors def _fetch_paginated(offset, api_key): params = { 'api_key': api_key, 'format': 'json', 'response_times': 1, ...
29.36
284
0.584079
4a04f311927921702e2609b21a37d0a9520597b7
1,548
py
Python
dcu/active_memory/__init__.py
dirkcuys/active-memory
ab226c7b636550823a9c91e3ebd81776d255f204
[ "MIT" ]
5
2019-05-01T19:38:54.000Z
2021-06-28T22:04:33.000Z
dcu/active_memory/__init__.py
dirkcuys/s3-backup-rotate
ab226c7b636550823a9c91e3ebd81776d255f204
[ "MIT" ]
null
null
null
dcu/active_memory/__init__.py
dirkcuys/s3-backup-rotate
ab226c7b636550823a9c91e3ebd81776d255f204
[ "MIT" ]
null
null
null
from dcu.active_memory.rotate import rotate from dcu.active_memory.rotate import splitext from dcu.active_memory.upload import upload import os.path import re import logging logger = logging.getLogger(__name__) def upload_rotate(file_path, s3_bucket, s3_key_prefix, aws_key=None, aws_secret=None): ''' Upload...
45.529412
121
0.718992
4a04f31d5b8ba127fdec10f31c16db4384b6b4d5
115
py
Python
jeecf/exceptions.py
cgfly/jeecf-cli
65b1577ea1ca169c8e296a7df15d13b7d9b84e12
[ "Apache-2.0" ]
2
2019-04-05T07:48:42.000Z
2019-07-26T10:42:25.000Z
jeecf/exceptions.py
cgfly/jeecf-cli
65b1577ea1ca169c8e296a7df15d13b7d9b84e12
[ "Apache-2.0" ]
null
null
null
jeecf/exceptions.py
cgfly/jeecf-cli
65b1577ea1ca169c8e296a7df15d13b7d9b84e12
[ "Apache-2.0" ]
1
2019-11-28T09:55:16.000Z
2019-11-28T09:55:16.000Z
class JeecfNotLoginException(Exception): def __str__(self): return "You need run 'jeecf login' first!"
28.75
50
0.704348
4a04f3425ea2361ef7c989c88d94ba8bf15fc78d
1,013
py
Python
server/app.py
Marcos-Seafloor/video-streamer-multi-container
d0628fbf9f633363686b444ad0cc8dd813426a10
[ "Apache-2.0" ]
51
2020-05-30T06:34:21.000Z
2022-03-03T05:05:52.000Z
server/app.py
Marcos-Seafloor/video-streamer-multi-container
d0628fbf9f633363686b444ad0cc8dd813426a10
[ "Apache-2.0" ]
3
2021-07-19T21:20:39.000Z
2021-11-17T02:55:05.000Z
server/app.py
Marcos-Seafloor/video-streamer-multi-container
d0628fbf9f633363686b444ad0cc8dd813426a10
[ "Apache-2.0" ]
21
2020-06-12T13:17:34.000Z
2021-11-10T15:14:54.000Z
from flask_socketio import SocketIO from flask import Flask, render_template, request app = Flask(__name__) socketio = SocketIO(app) @app.route('/') def index(): """Home page.""" return render_template('index.html') @socketio.on('connect', namespace='/web') def connect_web(): print('[INFO] Web client c...
24.119048
67
0.69003
4a04f39bb2919764e23d67b444421b15b8ee8bdb
483
py
Python
home/migrations/0002_auto_20190501_1313.py
ageorgiev97/fictional-octo-meme
afc0f69985c0e79f128cf1bdafa668a9a22a2f0f
[ "MIT" ]
null
null
null
home/migrations/0002_auto_20190501_1313.py
ageorgiev97/fictional-octo-meme
afc0f69985c0e79f128cf1bdafa668a9a22a2f0f
[ "MIT" ]
null
null
null
home/migrations/0002_auto_20190501_1313.py
ageorgiev97/fictional-octo-meme
afc0f69985c0e79f128cf1bdafa668a9a22a2f0f
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-05-01 10:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0001_initial'), ] operations = [ migrations.AlterField( model_name='restaurant', ...
24.15
124
0.637681
4a04f3bf24e3b6fd33a483c05552dc7c9fb9962d
13,239
py
Python
sdk/python/pulumi_google_native/cloudkms/v1/import_job.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/cloudkms/v1/import_job.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/cloudkms/v1/import_job.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
43.693069
287
0.653373
4a04f4352876c0d54cf6cc02d56c07a5d43a2512
1,521
py
Python
efren-graphs.py
luis9614/kidney-linces
192c2f6f56a957c3eee5b8242093d67ebbe59f78
[ "MIT" ]
null
null
null
efren-graphs.py
luis9614/kidney-linces
192c2f6f56a957c3eee5b8242093d67ebbe59f78
[ "MIT" ]
null
null
null
efren-graphs.py
luis9614/kidney-linces
192c2f6f56a957c3eee5b8242093d67ebbe59f78
[ "MIT" ]
null
null
null
import pandas as pd """df = pd.read_csv('renal.csv', header=None) Para iterar solo con indices""" df = pd.read_csv('renal.csv') columns = ['age','bp','sg','al','su','rbc','pc','pcc','ba','bgr','bu','sc','sod','pot','hemo','pcv','wc','rc','htn','dm','cad','appet','pe','ane'] def name_frec(filename, name, ignore=[]):...
31.6875
146
0.518738
4a04f4398328c42b48fbbd77ff1fe0d6f79c39bc
10,794
py
Python
neutron/tests/functional/test_server.py
FreeBSD-UPB/neutron
19372a3cd8b4e6e45f707753b914e133857dd629
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/test_server.py
FreeBSD-UPB/neutron
19372a3cd8b4e6e45f707753b914e133857dd629
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/test_server.py
FreeBSD-UPB/neutron
19372a3cd8b4e6e45f707753b914e133857dd629
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.485623
79
0.623217
4a04f4844f9f0c3bee1dcdadd24f325ceeb6aebf
4,997
py
Python
pythonforandroid/recipes/ffmpeg/__init__.py
Iqoqo/python-for-android
9361b9602923ab170b7aeb4e21bf5ec61f8823f2
[ "MIT" ]
2
2021-02-05T10:13:05.000Z
2021-11-12T07:31:57.000Z
pythonforandroid/recipes/ffmpeg/__init__.py
Iqoqo/python-for-android
9361b9602923ab170b7aeb4e21bf5ec61f8823f2
[ "MIT" ]
6
2020-01-31T18:04:48.000Z
2021-06-05T10:53:55.000Z
pythonforandroid/recipes/ffmpeg/__init__.py
Iqoqo/python-for-android
9361b9602923ab170b7aeb4e21bf5ec61f8823f2
[ "MIT" ]
1
2021-04-08T19:51:07.000Z
2021-04-08T19:51:07.000Z
from pythonforandroid.toolchain import Recipe, current_directory, shprint from os.path import exists, join, realpath import sh class FFMpegRecipe(Recipe): version = 'n3.4.5' # Moved to github.com instead of ffmpeg.org to improve download speed url = 'https://github.com/FFmpeg/FFmpeg/archive/{version}.zip'...
36.210145
107
0.479288
4a04f4fb3064cde5b5b6a0e13512bd8d57ff3876
8,272
py
Python
ryu/services/protocols/bgp/utils/circlist.py
w180112/ryu
aadb6609f585c287b4928db9462baf72c6410718
[ "Apache-2.0" ]
975
2015-01-03T02:30:13.000Z
2020-05-07T14:01:48.000Z
ryu/services/protocols/bgp/utils/circlist.py
DiegoRossiMafioletti/ryu
6f906e72c92e10bd0264c9b91a2f7bb85b97780c
[ "Apache-2.0" ]
66
2020-05-22T21:55:42.000Z
2022-03-31T12:35:04.000Z
ryu/services/protocols/bgp/utils/circlist.py
DiegoRossiMafioletti/ryu
6f906e72c92e10bd0264c9b91a2f7bb85b97780c
[ "Apache-2.0" ]
763
2015-01-01T03:38:43.000Z
2020-05-06T15:46:09.000Z
# Copyright (C) 2014 Nippon Telegraph and Telephone 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 appli...
30.637037
79
0.606141
4a04f65010da00ac99ce4e94458c045dadd7b2fe
67
py
Python
wave_reader/__init__.py
ztroop/wave-reader-utils
21b8fe941888e7ce5c4e3e04e87ee8cc9c2f0cbb
[ "MIT" ]
11
2021-02-10T04:32:07.000Z
2021-12-29T04:17:06.000Z
wave_reader/__init__.py
ztroop/wave-reader
21b8fe941888e7ce5c4e3e04e87ee8cc9c2f0cbb
[ "MIT" ]
12
2021-01-23T06:45:19.000Z
2021-12-29T04:20:53.000Z
wave_reader/__init__.py
ztroop/wave-reader
21b8fe941888e7ce5c4e3e04e87ee8cc9c2f0cbb
[ "MIT" ]
5
2021-02-12T09:15:20.000Z
2021-09-13T05:05:40.000Z
from .wave import WaveDevice, discover_devices, scan # noqa: F401
33.5
66
0.776119
4a04f6ec396aba28080116ad7234bf4b4915ac5d
882
py
Python
tests/app/public_contracts/__init__.py
davidbgk/notification-api
0ede6a61b48289236d1873124965d2bc22a9b27b
[ "MIT" ]
null
null
null
tests/app/public_contracts/__init__.py
davidbgk/notification-api
0ede6a61b48289236d1873124965d2bc22a9b27b
[ "MIT" ]
null
null
null
tests/app/public_contracts/__init__.py
davidbgk/notification-api
0ede6a61b48289236d1873124965d2bc22a9b27b
[ "MIT" ]
null
null
null
import os from urllib.parse import urljoin from urllib.request import pathname2url from flask import json import jsonschema from jsonschema import Draft4Validator def return_json_from_response(response): return json.loads(response.get_data(as_text=True)) def validate_v0(json_to_validate, schema_filename): ...
29.4
73
0.725624
4a04f79d7db5eab098b0e7198581895dc07a8683
8,182
py
Python
simulation/aws-robomaker-sample-application-deepracer/simulation_ws/src/deepracer_simulation/scripts/rotation.py
Lacan82/deepracer
4503480cf80993f1e94cec8d26d783d6b2121cd8
[ "Apache-2.0" ]
16
2019-12-24T06:46:31.000Z
2022-03-31T00:13:39.000Z
simulation/aws-robomaker-sample-application-deepracer/simulation_ws/src/deepracer_simulation/scripts/rotation.py
Lacan82/deepracer
4503480cf80993f1e94cec8d26d783d6b2121cd8
[ "Apache-2.0" ]
null
null
null
simulation/aws-robomaker-sample-application-deepracer/simulation_ws/src/deepracer_simulation/scripts/rotation.py
Lacan82/deepracer
4503480cf80993f1e94cec8d26d783d6b2121cd8
[ "Apache-2.0" ]
5
2020-02-11T22:13:07.000Z
2020-12-15T16:46:15.000Z
#!/usr/bin/env python """This code is taken from https://github.com/scipy/scipy/blob/master/scipy/spatial/transform/rotation.py because there is no python 3 implementation This is a stripped down version intended to be used by deepracer only. """ import re import numpy as np import scipy.linalg _AXIS_TO_IND ...
41.744898
92
0.551577
4a04f7fb55def05222c21af8e257039e75e96ed6
5,388
py
Python
canvas_workflow_helpers/tests/test_appointment_task_creator.py
canvas-medical/open-source-sdk
a7a17f1950f63c59646037358c9a437dbd827413
[ "Apache-2.0" ]
12
2022-02-25T18:15:43.000Z
2022-03-30T18:43:02.000Z
canvas_workflow_helpers/tests/test_appointment_task_creator.py
canvas-medical/open-source-sdk
a7a17f1950f63c59646037358c9a437dbd827413
[ "Apache-2.0" ]
1
2022-03-18T22:21:03.000Z
2022-03-18T22:22:36.000Z
canvas_workflow_helpers/tests/test_appointment_task_creator.py
canvas-medical/open-source-sdk
a7a17f1950f63c59646037358c9a437dbd827413
[ "Apache-2.0" ]
4
2022-02-25T18:15:33.000Z
2022-02-25T19:14:17.000Z
from pathlib import Path from canvas_workflow_kit.constants import CHANGE_TYPE from canvas_workflow_kit.utils import parse_class_from_python_source from .base import WorkflowHelpersBaseTest from canvas_workflow_kit import events from canvas_workflow_kit.protocol import (ProtocolResult, ...
40.208955
78
0.649963
4a04f7fd025984c30bd5191bf411ec6afd01e616
1,603
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/troubleshooting_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/troubleshooting_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/troubleshooting_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
38.166667
106
0.616968
4a04f81a79214195858f0482c5a90c62f0fc1253
9,966
py
Python
examples/train_lightning.py
blazingsiyan/geometric-vector-perceptron
eee1ee8e71148cfdb3e02b660d80f12cf1cecd0a
[ "MIT" ]
null
null
null
examples/train_lightning.py
blazingsiyan/geometric-vector-perceptron
eee1ee8e71148cfdb3e02b660d80f12cf1cecd0a
[ "MIT" ]
null
null
null
examples/train_lightning.py
blazingsiyan/geometric-vector-perceptron
eee1ee8e71148cfdb3e02b660d80f12cf1cecd0a
[ "MIT" ]
null
null
null
import gc from argparse import ArgumentParser from functools import partial from pathlib import Path from pprint import pprint import matplotlib.pyplot as plt import numpy as np import pytorch_lightning as pl import torch from einops import rearrange from loguru import logger from pytorch_lightning.callbacks import ( ...
31.438486
113
0.602047
4a04f956395a2e0ac97247a117cae7eb64c0c9e6
18,292
py
Python
runtests.py
farziengineer/numpy
4ff3af387f93ff37f04f42458d4590c33f61fb9e
[ "BSD-3-Clause" ]
null
null
null
runtests.py
farziengineer/numpy
4ff3af387f93ff37f04f42458d4590c33f61fb9e
[ "BSD-3-Clause" ]
null
null
null
runtests.py
farziengineer/numpy
4ff3af387f93ff37f04f42458d4590c33f61fb9e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ runtests.py [OPTIONS] [-- ARGS] Run tests, building the project first. Examples:: $ python runtests.py $ python runtests.py -s {SAMPLE_SUBMODULE} $ python runtests.py -t {SAMPLE_TEST} $ python runtests.py --ipython $ python runtests.py --python somescript.py $ python...
36.438247
88
0.560245
4a04fb97b1a6aac85ba2d8e61a85fb063ed767f5
551
py
Python
examples/ex9_adding_substrates_from_files.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
7
2020-06-08T16:18:56.000Z
2021-01-28T09:59:16.000Z
examples/ex9_adding_substrates_from_files.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
null
null
null
examples/ex9_adding_substrates_from_files.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
2
2020-11-16T04:52:43.000Z
2021-06-04T05:07:29.000Z
from cgbind import Cage, Substrate, Linker, CageSubstrateComplex # Generate an M4L6 bipyridyl Fe(III) based metallocage linker = Linker(name='linker', smiles='C1(C2=CC=C(C#CC3=CN=C(C4=NC=CC=C4)C=C3)C=N2)=NC=CC=C1', arch_name='m4l6n') cage = Cage(linker, metal='Fe', metal_charge='3') #...
34.4375
79
0.700544
4a04fbcae8f339821b5dd1fee169c1c63ac1c9b2
2,567
py
Python
tensorflow_privacy/privacy/estimators/head_utils.py
andrewyguo/privacy
a33afde0c105ece6c48b17a80f13899cf3e7c1b3
[ "Apache-2.0" ]
null
null
null
tensorflow_privacy/privacy/estimators/head_utils.py
andrewyguo/privacy
a33afde0c105ece6c48b17a80f13899cf3e7c1b3
[ "Apache-2.0" ]
null
null
null
tensorflow_privacy/privacy/estimators/head_utils.py
andrewyguo/privacy
a33afde0c105ece6c48b17a80f13899cf3e7c1b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, The TensorFlow 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 t...
45.035088
85
0.73471
4a04fc42f63d36c535bffbb99af63f66d3094945
120
py
Python
evaluation/__init__.py
mertozlutiras/BERTopic_evaluation
95b728947b73193caaf7c303fd91f4d8b779c807
[ "MIT" ]
12
2022-03-14T07:59:58.000Z
2022-03-16T09:14:52.000Z
evaluation/__init__.py
mertozlutiras/BERTopic_evaluation
95b728947b73193caaf7c303fd91f4d8b779c807
[ "MIT" ]
null
null
null
evaluation/__init__.py
mertozlutiras/BERTopic_evaluation
95b728947b73193caaf7c303fd91f4d8b779c807
[ "MIT" ]
2
2022-03-14T07:47:05.000Z
2022-03-15T09:20:00.000Z
from evaluation.data import DataLoader from evaluation.evaluation import Trainer from evaluation.results import Results
30
41
0.875
4a04fd1c4187d9164cb1731b6c09f76d1e33e3d6
1,045
py
Python
exp3.py
TonyShanc/new2pwn
6b127fca32e96ff1953dc25c6981610176b927be
[ "MIT" ]
null
null
null
exp3.py
TonyShanc/new2pwn
6b127fca32e96ff1953dc25c6981610176b927be
[ "MIT" ]
null
null
null
exp3.py
TonyShanc/new2pwn
6b127fca32e96ff1953dc25c6981610176b927be
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pwn import * libc = ELF('libc.so') elf = ELF('level2') #p = process('./level2') p = remote('127.0.0.1', 10003) plt_write = elf.symbols['write'] print 'plt_write= ' + hex(plt_write) got_write = elf.got['write'] print 'got_write= ' + hex(got_write) vulfun_addr = 0x08048404 print 'vulfun= ' +...
26.794872
88
0.664115
4a04fd8030387094a40d9737c936a1f2f3d961e3
2,849
py
Python
python/hongong/source/8_2.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/hongong/source/8_2.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/hongong/source/8_2.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """8-2.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/github/rickiepark/hg-mldl/blob/master/8-2.ipynb # 합성곱 신경망을 사용한 이미지 분류 <table align="left"> <td> <a target="_blank" href="https://colab.research.google.com/github/rick...
28.777778
195
0.678133
4a04fdc3c055c5b42928f2030fc7c2d4f6e824ca
16,987
py
Python
awsprocesscreds/saml.py
gbvanrenswoude/awsprocesscreds
99c8a20361ebd495d057e7960e5ef4578d1b3780
[ "Apache-2.0" ]
null
null
null
awsprocesscreds/saml.py
gbvanrenswoude/awsprocesscreds
99c8a20361ebd495d057e7960e5ef4578d1b3780
[ "Apache-2.0" ]
null
null
null
awsprocesscreds/saml.py
gbvanrenswoude/awsprocesscreds
99c8a20361ebd495d057e7960e5ef4578d1b3780
[ "Apache-2.0" ]
1
2020-03-18T10:38:43.000Z
2020-03-18T10:38:43.000Z
# pylint: disable=R1710 import base64 import getpass import logging import xml.etree.cElementTree as ET from hashlib import sha1 from copy import deepcopy import six import requests import botocore from botocore.client import Config from botocore.compat import urlsplit from botocore.compat import urljoin from botocore...
37.748889
79
0.631836
4a05002fb928d0a7eaf5041205098776902f546d
8,903
py
Python
scripts/timeseries_sampling/plot_boxes_timeseries_scans_finest_sampling.py
jiawu/Roller
a70e350905a59c2254dcefda7ab23c6417cf8f7d
[ "MIT" ]
null
null
null
scripts/timeseries_sampling/plot_boxes_timeseries_scans_finest_sampling.py
jiawu/Roller
a70e350905a59c2254dcefda7ab23c6417cf8f7d
[ "MIT" ]
2
2015-07-13T18:51:22.000Z
2015-07-16T15:35:24.000Z
scripts/timeseries_sampling/plot_boxes_timeseries_scans_finest_sampling.py
jiawu/Roller
a70e350905a59c2254dcefda7ab23c6417cf8f7d
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('Agg') from Swing.util.BoxPlot import BoxPlot from matplotlib.backends.backend_pdf import PdfPages from scipy import stats import pdb import numpy as np import matplotlib.pyplot as plt import pandas as pd import sys import os import time from Swing.util.mplstyle import style1 import s...
40.652968
219
0.640009
4a05008e9e7e6f446ddc73250f9ef3c9566eb1f6
2,199
py
Python
snmp_fabfile.py
edwinsteele/python-scripts
b2ed85df202f5e58ed178b00100357bde1002010
[ "CC0-1.0" ]
2
2015-10-05T04:20:52.000Z
2016-04-08T10:31:21.000Z
snmp_fabfile.py
edwinsteele/python-scripts
b2ed85df202f5e58ed178b00100357bde1002010
[ "CC0-1.0" ]
null
null
null
snmp_fabfile.py
edwinsteele/python-scripts
b2ed85df202f5e58ed178b00100357bde1002010
[ "CC0-1.0" ]
null
null
null
import os from fabric.api import env, local, parallel, task from fabric.context_managers import cd, hide, quiet, warn_only import fabric.colors from hnmp import SNMP, SNMPError import time ACCESS_POINTS = ["ap-kitchen", "ap-bedroom"] def retry_until_true(delay_secs=1): """Mostly pinched from https://wiki.python....
26.493976
81
0.607094
4a05010a7cfe77def2bee2b85c7f513d7675891c
3,877
py
Python
raphael/app/modules/schedule/models.py
major1201/raphael
18d7060834be7645b66144ba2a1638f3e1db2dd2
[ "MIT" ]
null
null
null
raphael/app/modules/schedule/models.py
major1201/raphael
18d7060834be7645b66144ba2a1638f3e1db2dd2
[ "MIT" ]
null
null
null
raphael/app/modules/schedule/models.py
major1201/raphael
18d7060834be7645b66144ba2a1638f3e1db2dd2
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import division, absolute_import, with_statement, print_function import json from apscheduler.jobstores.base import JobLookupError from raphael.utils.dao.context import DBContext from raphael.utils import num, strings, time, task, logger TASK_DATABASE = 'database' def get_schedule(...
35.245455
170
0.593242
4a0502d78ce2411de6a34f48157e656757a53ccf
1,232
py
Python
day-04/part-2/ludoge.py
badouralix/adventofcode-2018
543ce39d4eeb7d9d695459ffadca001a8c56386d
[ "MIT" ]
31
2018-12-01T00:43:40.000Z
2020-05-30T05:18:59.000Z
day-04/part-2/ludoge.py
badouralix/adventofcode-2018
543ce39d4eeb7d9d695459ffadca001a8c56386d
[ "MIT" ]
14
2018-12-01T12:14:26.000Z
2021-05-07T22:41:47.000Z
day-04/part-2/ludoge.py
badouralix/adventofcode-2018
543ce39d4eeb7d9d695459ffadca001a8c56386d
[ "MIT" ]
10
2018-12-01T23:38:34.000Z
2020-12-28T13:36:10.000Z
from tool.runners.python import SubmissionPy from collections import Counter class LudogeSubmission(SubmissionPy): def run(self, s): # :param s: input in string format # :return: solution flag # Your code goes here lines = sorted(s.splitlines()) guards = {} for line...
35.2
95
0.581981
4a050397033246bf229246395dd2ba79c96bb089
1,484
py
Python
SOLID/es2/isp_step2.py
nick87ds/MaterialeSerate
51627e47ff1d3c3ecfc9ce6741c04b91b3295359
[ "MIT" ]
12
2021-12-12T22:19:52.000Z
2022-03-18T11:45:17.000Z
SOLID/es2/isp_step2.py
nick87ds/MaterialeSerate
51627e47ff1d3c3ecfc9ce6741c04b91b3295359
[ "MIT" ]
1
2022-03-23T13:58:33.000Z
2022-03-23T14:05:08.000Z
SOLID/es2/isp_step2.py
nick87ds/MaterialeSerate
51627e47ff1d3c3ecfc9ce6741c04b91b3295359
[ "MIT" ]
7
2021-02-01T22:09:14.000Z
2021-06-22T08:30:16.000Z
""" E se aggiungiamo un altro metodo all'interfaccia IShape, come draw_triangle()? """ class IShape: def draw_square(self): raise NotImplementedError def draw_rectangle(self): raise NotImplementedError def draw_circle(self): raise NotImplementedError def draw_triangle(self):...
32.977778
79
0.789084
4a0503c3ed6999e3bd81aec4de8f7d64ec733bd9
5,406
py
Python
official/nlp/bert/tokenization_test.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
153
2020-10-25T13:58:04.000Z
2022-03-07T06:01:54.000Z
official/nlp/bert/tokenization_test.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
11
2020-07-13T08:29:00.000Z
2022-03-24T07:21:09.000Z
official/nlp/bert/tokenization_test.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
23
2020-10-25T14:44:47.000Z
2021-03-31T02:12:13.000Z
# Copyright 2019 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.57764
80
0.642249
4a0504385eab48722f836062cf1488feb079777d
3,729
py
Python
ligament/buildtarget.py
Archived-Object/ligament
ff3d78130522676a20dc64086dc8a27b197cc20f
[ "Apache-2.0" ]
1
2015-07-22T15:27:40.000Z
2015-07-22T15:27:40.000Z
ligament/buildtarget.py
Archived-Object/ligament
ff3d78130522676a20dc64086dc8a27b197cc20f
[ "Apache-2.0" ]
null
null
null
ligament/buildtarget.py
Archived-Object/ligament
ff3d78130522676a20dc64086dc8a27b197cc20f
[ "Apache-2.0" ]
null
null
null
from buildcontext import DeferredDependency from helpers import pdebug, indent_text class BuildTarget(object): """ An action in ligament BuildTargets exist within Build Contexts (see ligament.buildcontext.Context) Tasks extending buildtarget are expected to pass the keyword argument ...
35.855769
78
0.590507
4a05059e0ca2833b3a0b7c13b5bcb9c1b74be015
2,157
py
Python
django/apps/review/serializers.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
django/apps/review/serializers.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
93
2020-05-19T18:14:12.000Z
2022-03-29T00:26:39.000Z
django/apps/review/serializers.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
1
2020-11-21T20:24:35.000Z
2020-11-21T20:24:35.000Z
from django.utils.translation import gettext_lazy as _ from rest_framework.exceptions import ValidationError from rest_framework.fields import DateTimeField, CurrentUserDefault, HiddenField from rest_framework.relations import PrimaryKeyRelatedField, HyperlinkedIdentityField from rest_framework.serializers import Model...
33.703125
118
0.632823
4a050648c0f9f883708317d807464d4d2e5d105c
9,217
py
Python
django_autowired/autowired.py
yangyuecho/django-autowired
fbbd2e706813eff25916b308156a5f771bc44b51
[ "MIT" ]
null
null
null
django_autowired/autowired.py
yangyuecho/django-autowired
fbbd2e706813eff25916b308156a5f771bc44b51
[ "MIT" ]
null
null
null
django_autowired/autowired.py
yangyuecho/django-autowired
fbbd2e706813eff25916b308156a5f771bc44b51
[ "MIT" ]
null
null
null
import functools import json from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Set from typing import Type from django.http.request import HttpRequest from django.http.response import HttpResponse from django.http.response ...
33.035842
85
0.596289
4a0507eb00b9fb5d3b1f74e4a954275a678925f5
193
py
Python
data_collection/gazette/spiders/sc_guaramirim.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
3
2021-08-18T17:50:31.000Z
2021-11-12T23:36:33.000Z
data_collection/gazette/spiders/sc_guaramirim.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
4
2021-02-10T02:36:48.000Z
2022-03-02T14:55:34.000Z
data_collection/gazette/spiders/sc_guaramirim.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
null
null
null
from gazette.spiders.base import FecamGazetteSpider class ScGuaramirimSpider(FecamGazetteSpider): name = "sc_guaramirim" FECAM_QUERY = "cod_entidade:106" TERRITORY_ID = "4206504"
24.125
51
0.772021
4a05082ab42281f21a8c09b0b0fda8296ec7f6c1
24,281
py
Python
jax/experimental/loops.py
iolloj/jax
1b80feea6acf758fd9dc3e616e8efcb8db831ce9
[ "Apache-2.0" ]
17,375
2018-11-18T02:15:55.000Z
2022-03-31T23:49:46.000Z
jax/experimental/loops.py
iolloj/jax
1b80feea6acf758fd9dc3e616e8efcb8db831ce9
[ "Apache-2.0" ]
5,018
2018-11-22T17:04:07.000Z
2022-03-31T23:36:25.000Z
jax/experimental/loops.py
abattery/jax
62c7744e68c66fae9faf9d8d00fea8aad4418cf3
[ "Apache-2.0" ]
1,805
2018-11-21T10:13:53.000Z
2022-03-31T23:49:19.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.364566
106
0.687204
4a0508334b73c763011960a672e8eeff4c84dc8d
1,476
py
Python
dev/breeze/src/airflow_breeze/utils/ci_group.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
null
null
null
dev/breeze/src/airflow_breeze/utils/ci_group.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
null
null
null
dev/breeze/src/airflow_breeze/utils/ci_group.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
null
null
null
# 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...
34.325581
125
0.70935
4a050890aa903cfa9fc5aa904925c2bdd3633ffd
540
py
Python
Estrutura de Repetição/7 Qual o maior elemento.py
knapoli/programas-python
51c3f8f84c3237866a20f37859ef0bcfe9850d15
[ "MIT" ]
null
null
null
Estrutura de Repetição/7 Qual o maior elemento.py
knapoli/programas-python
51c3f8f84c3237866a20f37859ef0bcfe9850d15
[ "MIT" ]
null
null
null
Estrutura de Repetição/7 Qual o maior elemento.py
knapoli/programas-python
51c3f8f84c3237866a20f37859ef0bcfe9850d15
[ "MIT" ]
null
null
null
num1 = float(input('Entre com o primeiro numero: ')) num2 = float(input('Entre com o segundo numero: ')) num3 = float(input('Entre com o terceiro numero: ')) num4 = float(input('Entre com o quarto numero: ')) num5 = float(input('Entre com o quinto numero: ')) lista = [num1, num2, num3, num4, num5] primeiraVez = True fo...
36
52
0.683333
4a0508d88289743f4e96fe965e29e4d80a0ebf8d
8,075
py
Python
gpyrn/_utils.py
j-faria/gpyrn
61a3cd0333d8f474521ec7a8298bc97153e5ad34
[ "MIT" ]
null
null
null
gpyrn/_utils.py
j-faria/gpyrn
61a3cd0333d8f474521ec7a8298bc97153e5ad34
[ "MIT" ]
null
null
null
gpyrn/_utils.py
j-faria/gpyrn
61a3cd0333d8f474521ec7a8298bc97153e5ad34
[ "MIT" ]
1
2021-12-09T13:07:54.000Z
2021-12-09T13:07:54.000Z
""" Collection of useful functions """ import matplotlib.pyplot as plt import numpy as np from scipy.stats import invgamma from scipy.linalg import cho_solve, cho_factor from scipy.optimize import minimize from random import shuffle ##### Semi amplitude calculation ############################################## def s...
28.942652
80
0.536099
4a0509504b111555acb6c2937e83b5382d083703
13,421
py
Python
src/python/m5/simulate.py
zinob15/gem5
fb2946e314ea9e63c7696ee8023150ed13956582
[ "BSD-3-Clause" ]
1
2021-10-11T18:06:53.000Z
2021-10-11T18:06:53.000Z
src/python/m5/simulate.py
zinob15/gem5
fb2946e314ea9e63c7696ee8023150ed13956582
[ "BSD-3-Clause" ]
1
2022-01-31T13:15:08.000Z
2022-01-31T13:15:08.000Z
src/python/m5/simulate.py
zinob15/gem5
fb2946e314ea9e63c7696ee8023150ed13956582
[ "BSD-3-Clause" ]
1
2021-11-08T18:50:43.000Z
2021-11-08T18:50:43.000Z
# Copyright (c) 2012,2019 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
35.318421
80
0.681469
4a05097ceefec07a2924d2a19e1da7e6c513f02d
142,135
py
Python
traad/bottle.py
abingham/traad
815020cf0758606fec6bfa7d8ca8e918f377a64d
[ "MIT" ]
74
2015-01-10T20:02:41.000Z
2021-09-29T15:05:42.000Z
traad/bottle.py
abingham/traad
815020cf0758606fec6bfa7d8ca8e918f377a64d
[ "MIT" ]
37
2015-01-06T08:56:43.000Z
2022-02-18T06:51:32.000Z
traad/bottle.py
abingham/traad
815020cf0758606fec6bfa7d8ca8e918f377a64d
[ "MIT" ]
16
2015-08-02T13:14:58.000Z
2022-02-17T00:14:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
39.460022
103
0.592563