hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
735e193e4123d6eb999175eb3d861b7753c0fd60
25,818
py
Python
sentence_transformers/document_encoder/BiEncoder.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/document_encoder/BiEncoder.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/document_encoder/BiEncoder.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
import logging import os from collections import defaultdict from typing import Dict, Type, Callable, List, Union import nltk import numpy as np import torch import transformers from torch import nn, Tensor from torch.optim import Optimizer from torch.utils.data import DataLoader from tqdm.autonotebook import tqdm, tr...
47.988848
254
0.638508
735e27260b56dd3759aed6a7bf6c85bdf7823aa7
19,577
py
Python
croupier_plugin/infrastructure_interfaces/torque.py
ari-apc-lab/croupier
cfffa81df64898abb837da23921f7fa614033e85
[ "Apache-2.0" ]
5
2019-03-21T15:32:40.000Z
2022-02-16T09:16:06.000Z
croupier_plugin/infrastructure_interfaces/torque.py
ari-apc-lab/croupier
cfffa81df64898abb837da23921f7fa614033e85
[ "Apache-2.0" ]
25
2021-05-13T09:24:31.000Z
2022-03-03T16:20:38.000Z
croupier_plugin/infrastructure_interfaces/torque.py
ari-apc-lab/croupier
cfffa81df64898abb837da23921f7fa614033e85
[ "Apache-2.0" ]
3
2019-07-08T13:55:40.000Z
2021-05-20T13:13:22.000Z
""" Copyright (c) 2019 HLRS. All rights reserved. This file is part of Croupier. Croupier is free software: you can redistribute it and/or modify it under the terms of the Apache License, Version 2.0 (the License) License. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUD...
42.01073
112
0.573122
735e27d54172e948212256e2ec93d4d1b33d0850
11,404
py
Python
tests/test_routes/test_routes_sidecar.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
tests/test_routes/test_routes_sidecar.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
tests/test_routes/test_routes_sidecar.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
2
2022-02-04T19:55:40.000Z
2022-02-04T21:36:04.000Z
import io import os import unittest from flask import Response from tests.test_web_base import TestWebBase from hedweb.constants import base_constants class Test(TestWebBase): def test_sidecar_results_empty_data(self): response = self.app.test.post('/sidecar_submit') self.assertEqual(20...
62.31694
117
0.607243
735e87140fda613f249f085475214f3db77dbcd9
8,295
py
Python
pinax/projects/social_project/settings.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/projects/social_project/settings.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/projects/social_project/settings.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
# -*- coding: utf-8 -*- # Django settings for social pinax project. import os.path import posixpath import pinax PINAX_ROOT = os.path.abspath(os.path.dirname(pinax.__file__)) PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) # tells Pinax to use the default theme PINAX_THEME = "default" DEBUG = True TEMPLAT...
28.603448
122
0.70657
735e8bb9253abb4b7ad1a9ef0c2e779b412a7538
11,212
py
Python
homeassistant/components/raven_emu/sensor.py
dnschneid/home-assistant
6245774ed8705d9934815126f0edb4328cef2ff1
[ "Apache-2.0" ]
3
2017-09-16T23:34:59.000Z
2021-12-20T11:11:27.000Z
homeassistant/components/raven_emu/sensor.py
dnschneid/home-assistant
6245774ed8705d9934815126f0edb4328cef2ff1
[ "Apache-2.0" ]
18
2020-10-15T06:45:18.000Z
2021-05-04T08:29:32.000Z
homeassistant/components/raven_emu/sensor.py
dnschneid/home-assistant
6245774ed8705d9934815126f0edb4328cef2ff1
[ "Apache-2.0" ]
2
2019-08-04T13:39:43.000Z
2020-02-07T23:01:23.000Z
""" Support for the Rainforest Automation RAVEn and EMU smart meter interfaces. For more details about the XML API used, please refer to the documentation at https://rainforestautomation.com/wp-content/uploads/2014/02/raven_xml_api_r127.pdf or the example API implementation at https://github.com/rainforestautomation/E...
32.879765
82
0.601409
735e954fc7f7144e11e878663250874642355e79
5,234
py
Python
src/third_party/wiredtiger/test/suite/test_timestamp02.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_timestamp02.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_timestamp02.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2014-2017 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
38.20438
89
0.66068
735eb47b23a2fe6fab335a714cdf107876e2430e
1,156
py
Python
setup.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
2
2015-09-24T19:50:55.000Z
2015-11-06T10:45:08.000Z
setup.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
setup.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages VERSION = __import__("nashvegas").__version__ def read(*path): return open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *path)).read() tests_require = [ 'nose>=1.1.2', 'django-nose>=0.1.3', ] setup( name="nashvegas", version=VE...
27.52381
92
0.654844
735eb894cef5f68d8d9a1230472669b5436a643a
17,976
py
Python
vnpy_pro/app/cta_strategy/template.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
5
2020-09-13T05:07:38.000Z
2020-12-26T15:10:00.000Z
vnpy_pro/app/cta_strategy/template.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
null
null
null
vnpy_pro/app/cta_strategy/template.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
2
2020-06-03T06:40:31.000Z
2020-06-12T14:55:17.000Z
import csv import os import re from collections import defaultdict from typing import Any, Callable from datetime import date, datetime, timedelta import logging from pandas import DataFrame import pandas as pd import numpy as np from vnpy.app.cta_strategy import CtaTemplate from vnpy.app.cta_strategy.base import Engi...
34.635838
115
0.584557
735eb92a0dd06ee7fd621b92b1a8f894e09cee4a
7,578
py
Python
tensorflow/contrib/autograph/converters/control_flow_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/autograph/converters/control_flow_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/autograph/converters/control_flow_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
29.372093
80
0.61507
735ed78c1441e69b9cbd931c633b116a35b0a766
675
py
Python
vb_suite/plotting.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-03-10T04:16:05.000Z
2019-04-19T23:02:48.000Z
vb_suite/plotting.py
josericardo/pandas
fe9aa125c19ce2b22a0c4aabedd68b24df6cb98e
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
vb_suite/plotting.py
josericardo/pandas
fe9aa125c19ce2b22a0c4aabedd68b24df6cb98e
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from vbench.benchmark import Benchmark from datetime import datetime common_setup = """from pandas_vb_common import * try: from pandas import date_range except ImportError: def date_range(start=None, end=None, periods=None, freq=None): return DateRange(start, end, periods=periods, offset=freq) """ #...
25.961538
78
0.605926
735ee179304f1931e8817db04511820d0766fff2
4,056
py
Python
tests/test_app_components.py
vltr/sanic-boom
68369792764764352fa201ad9be867b6eb20c49f
[ "MIT" ]
6
2018-10-12T20:54:49.000Z
2019-05-30T16:57:24.000Z
tests/test_app_components.py
vltr/sanic-boom
68369792764764352fa201ad9be867b6eb20c49f
[ "MIT" ]
1
2018-10-17T18:48:24.000Z
2018-10-17T18:48:24.000Z
tests/test_app_components.py
vltr/sanic-boom
68369792764764352fa201ad9be867b6eb20c49f
[ "MIT" ]
1
2018-11-06T10:22:11.000Z
2018-11-06T10:22:11.000Z
import inspect import json import typing as t import uuid from sanic.response import text from sanic_boom import Component, ComponentCache class JSONBody: pass class Headers: pass class RequestIdentifier: pass class ComplexJSONBody(t.Generic[t.T_co]): pass class JSONBodyComponent(Component):...
26.684211
74
0.671844
735ef1fd6d613f2714db72b9f7648329bdac8413
7,417
py
Python
itunesxmlgen/generator.py
perminovs/iTunesXmlGen
f9cb95ce158ed23fc67de4dde1cb60709bb34ded
[ "MIT" ]
2
2020-03-26T12:06:08.000Z
2020-09-05T14:50:17.000Z
itunesxmlgen/generator.py
perminovs/iTunesXmlGen
f9cb95ce158ed23fc67de4dde1cb60709bb34ded
[ "MIT" ]
3
2018-06-10T12:13:30.000Z
2018-08-19T14:35:11.000Z
itunesxmlgen/generator.py
perminovs/iTunesXmlGen
f9cb95ce158ed23fc67de4dde1cb60709bb34ded
[ "MIT" ]
null
null
null
from datetime import datetime from itertools import cycle from lxml import etree as et from random import sample from .utils import Sequence, strand, intrand, validate_less, validate_positive __track_id = None __playlist_id = None def generate_xml( tracks_cnt=10, artists_cnt=5, playlists_cnt=3, playlist_fill_ra...
30.150407
91
0.676419
735ef6f66f807288dcf03e08d0a84121e92bc222
15,778
py
Python
src/trainer.py
time-series-tools/Sound_event_detection
4a95cb58397cf471795d7d9c7ae5bb9abb1cbe7c
[ "MIT" ]
91
2019-07-10T02:11:21.000Z
2022-03-30T13:57:47.000Z
src/trainer.py
time-series-tools/Sound_event_detection
4a95cb58397cf471795d7d9c7ae5bb9abb1cbe7c
[ "MIT" ]
3
2019-10-01T14:20:53.000Z
2021-11-10T03:01:47.000Z
src/trainer.py
time-series-tools/Sound_event_detection
4a95cb58397cf471795d7d9c7ae5bb9abb1cbe7c
[ "MIT" ]
23
2019-07-25T06:57:57.000Z
2022-03-20T05:46:37.000Z
import copy import configparser from keras import backend as K import keras from keras import objectives import tensorflow as tf from keras.models import load_model, Model import os import numpy as np import random import shutil import sys from src import data_loader as data from src import model as md from src import ...
27.975177
169
0.703955
735f49747525523a6422fc6bad5a4feb5751fa95
4,111
py
Python
pipe.py
VulcanoAhab/imagini2illud
a2eaacb9c8430983e21ece37a23b475018a7656d
[ "MIT" ]
null
null
null
pipe.py
VulcanoAhab/imagini2illud
a2eaacb9c8430983e21ece37a23b475018a7656d
[ "MIT" ]
6
2021-03-18T20:24:46.000Z
2022-03-11T23:17:09.000Z
pipe.py
VulcanoAhab/imagini2illud
a2eaacb9c8430983e21ece37a23b475018a7656d
[ "MIT" ]
null
null
null
import traceback import time import shutil import json import os import re from .toText import process_screenShot from .fileUtils import process_fileData, process_fileSystem from .textUtils import processFeatures from .report import ImaginiReport class FileSequence: """ """ def __init__(self,filePath,proj...
28.548611
79
0.518122
735f5a97a7df2182ec7a0edbc0bffb27472ca106
3,960
py
Python
tests/util/test_file.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
1
2021-01-27T18:24:02.000Z
2021-01-27T18:24:02.000Z
tests/util/test_file.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
null
null
null
tests/util/test_file.py
iryzhkov/stock-trading-backend
7161026b7b4deb78a934b66550c85a27c6b32933
[ "MIT" ]
null
null
null
"""Unit tests for file utils. """ from datetime import datetime import os import unittest import pandas as pd from stock_trading_backend.util import read_config_file, FileSourceType, read_manifest_file from stock_trading_backend.util import read_csv_file, write_csv_file, write_manifest_file from stock_trading_backend...
37.714286
91
0.672727
735f6a451c734088732e495d3135b90d325b887a
10,648
py
Python
src/dimsm/prior.py
ihmeuw-msca/dimsm
9b6f6023607e09b21f200cd87c421988db0ebd06
[ "BSD-2-Clause" ]
null
null
null
src/dimsm/prior.py
ihmeuw-msca/dimsm
9b6f6023607e09b21f200cd87c421988db0ebd06
[ "BSD-2-Clause" ]
null
null
null
src/dimsm/prior.py
ihmeuw-msca/dimsm
9b6f6023607e09b21f200cd87c421988db0ebd06
[ "BSD-2-Clause" ]
null
null
null
""" Prior ===== Prior class contains prior information for state and dimension variable. """ from operator import attrgetter from typing import Union, Optional import numpy as np from scipy.sparse import diags, csr_matrix def extend_info(info: np.ndarray, size: int) -> np.ndarray: """Extend infomation array. ...
30.863768
80
0.556349
73601239a349ebe7fb49fe4a170c4b92b055b611
97
py
Python
air_gym/envs/__init__.py
DustinAngerhofer/AirGym-1
467ef92083ddcbfe4da1ab1723ce7ab7eee27e54
[ "MIT" ]
2
2020-06-26T16:54:35.000Z
2021-04-08T17:39:46.000Z
air_gym/envs/__init__.py
DustinAngerhofer/AirGym-1
467ef92083ddcbfe4da1ab1723ce7ab7eee27e54
[ "MIT" ]
1
2020-04-02T19:19:10.000Z
2020-04-02T19:19:10.000Z
air_gym/envs/__init__.py
DustinAngerhofer/AirGym-1
467ef92083ddcbfe4da1ab1723ce7ab7eee27e54
[ "MIT" ]
2
2020-06-18T20:28:29.000Z
2020-11-05T12:19:29.000Z
from air_gym.envs.airsim_env import AirSimEnv from air_gym.envs.airsim_env import AirSimDroneEnv
32.333333
50
0.876289
736013bb407d4990137f300c6ee478c16c7fa2c6
1,786
py
Python
test/test_dag_number_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_dag_number_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_dag_number_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
27.060606
88
0.589586
7360182a084f996e48928d93588b4b0206ea86d9
4,462
py
Python
Day 66 - Cafe with REST API/main.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
2
2021-12-07T00:39:57.000Z
2021-12-07T01:44:21.000Z
Day 66 - Cafe with REST API/main.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
null
null
null
Day 66 - Cafe with REST API/main.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
1
2021-09-12T14:02:27.000Z
2021-09-12T14:02:27.000Z
from flask import Flask, jsonify, render_template, request from flask_sqlalchemy import SQLAlchemy import random app = Flask(__name__) # Connect to Database app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///cafes.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) # Cafe TABLE Configurati...
35.133858
118
0.645226
736043ba7167bf1515af1eb01b520e9d6018942d
3,177
py
Python
neuralmonkey/runners/base_runner.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/runners/base_runner.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/runners/base_runner.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
from typing import (Any, Dict, Tuple, List, NamedTuple, Union, Set, TypeVar, Generic, Optional) import numpy as np import tensorflow as tf from neuralmonkey.logging import notice from neuralmonkey.model.model_part import ModelPart # pylint: disable=invalid-name FeedDict = Dict[tf.Tensor, Union[int,...
36.102273
79
0.644633
7360467786bad5f70947b6cd55805aa8aaf078c2
120
py
Python
Chapter 8/08/PaxHeader/network.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/PaxHeader/network.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/PaxHeader/network.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
15 uid=2057284 20 ctime=1295329884 20 atime=1296417545 24 SCHILY.dev=234881026 23 SCHILY.ino=29226448 18 SCHILY.nlink=1
17.142857
23
0.825
73604a8eddab6a326350317927665e6ea5bca881
3,010
py
Python
dash_bio/utils/ngl_parser.py
brybackGMet/dash-bio
31cc7828e26094c4c49b08374dc515ef25637834
[ "MIT" ]
null
null
null
dash_bio/utils/ngl_parser.py
brybackGMet/dash-bio
31cc7828e26094c4c49b08374dc515ef25637834
[ "MIT" ]
null
null
null
dash_bio/utils/ngl_parser.py
brybackGMet/dash-bio
31cc7828e26094c4c49b08374dc515ef25637834
[ "MIT" ]
null
null
null
"""NGL Parser This module contains functions that parse and structure data into a dict for use with the NGL Molecule Viewer component. One or multiple input data files in the PDB or .cif.gz format can be entered to return a dict to input as the `data` param of the component. """ import glob import six.moves.urllib.r...
31.354167
94
0.564784
7360557270b7c6f781abd467e0dae85f3e8614bd
4,158
py
Python
src/nets/squeezeDet.py
jwwangchn/RSD
8d7597cad0b344775040d29a267378354daaca5d
[ "BSD-2-Clause" ]
1
2018-07-29T02:32:58.000Z
2018-07-29T02:32:58.000Z
src/nets/squeezeDet.py
jwwangchn/RSD
8d7597cad0b344775040d29a267378354daaca5d
[ "BSD-2-Clause" ]
null
null
null
src/nets/squeezeDet.py
jwwangchn/RSD
8d7597cad0b344775040d29a267378354daaca5d
[ "BSD-2-Clause" ]
null
null
null
# Author: Bichen Wu (bichen@berkeley.edu) 08/25/2016 """SqueezeDet model.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import joblib from utils import util from easydict import EasyDict as edict import numpy as np import tensorf...
38.146789
79
0.611592
7360708c0559942f058968a50cebc39ef296bae3
373
py
Python
arquivos/lucas.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
arquivos/lucas.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
arquivos/lucas.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
from random import randint import time nome1 = input("digite o primeiro nome: ") nome2 = input("digite o segundo nome: ") resultado = randint(0,1) print("Consultando culpido...") time.sleep(1) print("Consultando culpido...") time.sleep(1) if resultado == 1: print("Vai dar namoro...", nome1, "<3", nome2) else: ...
23.3125
55
0.66756
736078cd79fe09c584eb99a9a70dd9828c4c2991
9,164
py
Python
filesfolders/views_api.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
7
2021-12-15T04:37:08.000Z
2022-03-31T12:08:02.000Z
filesfolders/views_api.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
1
2021-05-03T13:11:56.000Z
2021-05-03T13:11:58.000Z
filesfolders/views_api.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
null
null
null
"""REST API views for the samplesheets app""" from rest_framework.generics import ( ListCreateAPIView, RetrieveUpdateDestroyAPIView, GenericAPIView, ) # Projectroles dependency from projectroles.models import SODAR_CONSTANTS from projectroles.plugins import get_backend_api from projectroles.views_api impo...
28.110429
84
0.646552
7360a110eae2cdca9b5fcb9466182baab81ba4f1
335
py
Python
practice/64.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
1
2020-01-15T11:04:16.000Z
2020-01-15T11:04:16.000Z
practice/64.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
2
2021-03-31T19:36:19.000Z
2021-06-10T22:29:26.000Z
practice/64.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
null
null
null
#The following code prints Hello, checks if 2 is greater than 1 and then breaks the loop because 2 is actually greater than 1. THerefore Hi is not printed out. Please replace break with something else so that Hello and Hi are printed out repeatedly. while True: print("Hello") if 2 > 1: break ...
37.222222
250
0.701493
7360ca33fa1fb45bb472613669c1710f6f0c1730
8,110
py
Python
src/lysate_urea_denaturation/preprocessing/6_sigmoid_fitting.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/lysate_urea_denaturation/preprocessing/6_sigmoid_fitting.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/lysate_urea_denaturation/preprocessing/6_sigmoid_fitting.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
import os import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from lmfit import Model, Parameters, minimize, report_fit from scipy.optimize import curve_fit from scipy import stats from utilities.statistical_tests import r_squared_calculator from GEN_Utils import FileHandling...
44.076087
209
0.680148
7360d73e1f19780f0f915c018d0ca826cc508c64
41,007
py
Python
python/dgl/transform.py
m30m/dgl
2190c39d674f76c65db9ee8da7b43d3021f19c29
[ "Apache-2.0" ]
null
null
null
python/dgl/transform.py
m30m/dgl
2190c39d674f76c65db9ee8da7b43d3021f19c29
[ "Apache-2.0" ]
null
null
null
python/dgl/transform.py
m30m/dgl
2190c39d674f76c65db9ee8da7b43d3021f19c29
[ "Apache-2.0" ]
null
null
null
"""Module for graph transformation utilities.""" from collections.abc import Iterable, Mapping from collections import defaultdict import numpy as np from scipy import sparse from ._ffi.function import _init_api from .graph import DGLGraph from .heterograph import DGLHeteroGraph from . import ndarray as nd from . impo...
34.692893
97
0.64389
7360df3c18cabc5c1816473b17770f207432a206
3,708
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_boardtest/boardtest_gpio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_boardtest/boardtest_gpio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_boardtest/boardtest_gpio.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2018 Shawn Hymel for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_boardtest.boardtest_gpio` ==================================================== Toggles all available GPIO on a board. Verify their operation with an LED, multimeter, another microcontroller, etc. Run this...
24.394737
79
0.623247
736118b2405250492e0b05a097712bd352ca6ba0
2,961
py
Python
custom_components/zha_counters/config_flow.py
zha-ng/ezsp-counters
597f8ec97f32023d0b149cbe847f0b6e7888a5a8
[ "MIT" ]
null
null
null
custom_components/zha_counters/config_flow.py
zha-ng/ezsp-counters
597f8ec97f32023d0b149cbe847f0b6e7888a5a8
[ "MIT" ]
null
null
null
custom_components/zha_counters/config_flow.py
zha-ng/ezsp-counters
597f8ec97f32023d0b149cbe847f0b6e7888a5a8
[ "MIT" ]
null
null
null
"""Config flow for EZSP Counters integration.""" import logging import uuid from homeassistant import config_entries, core, exceptions from homeassistant.components.zha.core.const import DATA_ZHA, DATA_ZHA_GATEWAY import homeassistant.helpers.config_validation as cv import voluptuous as vol from .const import CONF_EN...
32.9
81
0.675447
736129a6079d44ce54fd2aedc696956dfbb71ed0
2,504
py
Python
delfin/tests/unit/fake_notifier.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
19
2020-07-28T00:13:43.000Z
2022-02-15T16:44:21.000Z
delfin/tests/unit/fake_notifier.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
581
2020-06-22T15:20:58.000Z
2022-03-31T04:06:14.000Z
delfin/tests/unit/fake_notifier.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
153
2021-03-10T09:32:08.000Z
2022-02-22T01:32:32.000Z
# Copyright 2014 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
34.777778
78
0.661741
73613bc5758f1966da466a93fd14269d89db2b3c
868
py
Python
blog/signals.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
4
2018-08-17T08:06:06.000Z
2020-02-20T15:15:56.000Z
blog/signals.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
2
2018-10-08T15:59:58.000Z
2018-10-20T16:50:13.000Z
blog/signals.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
1
2019-09-14T23:15:10.000Z
2019-09-14T23:15:10.000Z
"""Blog signals.""" from django.contrib.sitemaps import ping_google from django.contrib.sites.shortcuts import get_current_site from django.dispatch import Signal, receiver post_published = Signal(providing_args=["instance", "request"]) @receiver(post_published) def ping_google_on_publish_post(sender, instance, req...
26.30303
76
0.698157
736164ad6ae97656a333324356fa84bcfa4e4204
4,390
py
Python
grumpy-tools-src/grumpy_tools/cli.py
corona10/grumpy
9df19bbc761a51935c63ca53b34d828741c81058
[ "Apache-2.0" ]
19
2018-03-27T07:46:26.000Z
2020-04-18T12:05:33.000Z
grumpy-tools-src/grumpy_tools/cli.py
corona10/grumpy
9df19bbc761a51935c63ca53b34d828741c81058
[ "Apache-2.0" ]
147
2018-08-03T16:18:53.000Z
2018-08-20T15:15:11.000Z
grumpy-tools-src/grumpy_tools/cli.py
corona10/grumpy
9df19bbc761a51935c63ca53b34d828741c81058
[ "Apache-2.0" ]
1
2018-07-28T14:17:35.000Z
2018-07-28T14:17:35.000Z
# -*- coding: utf-8 -*- """Console script for grumpy_tools.""" import os import sys from StringIO import StringIO from pkg_resources import resource_filename, Requirement, DistributionNotFound import logging logger = logging.getLogger(__package__) import click import click_log from click_log.core import ColorFormatte...
33.769231
109
0.666287
736164cf7994b77136ffc720c3389c9897a8e016
842
py
Python
Chapter07/ip_address/net_ip_planner.py
yangwawa0323/Learning-Python-Networking-Second-Edition
5460fe4fb6acc5d0df19bf36e52ac09e9a11eb8b
[ "MIT" ]
52
2018-12-17T19:33:06.000Z
2022-03-25T18:14:02.000Z
Chapter07/ip_address/net_ip_planner.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
null
null
null
Chapter07/ip_address/net_ip_planner.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
38
2018-12-18T09:08:43.000Z
2022-02-06T02:53:05.000Z
#!/usr/bin/env python3 import ipaddress as ip CLASS_C_ADDR = '192.168.0.0' mask = input("Enter the mask len (24-30): ") mask = int(mask) if mask not in range(23, 31): raise Exception("Mask length must be between 24 and 30") net_addr = CLASS_C_ADDR + '/' + str(mask) print("Using network address:%s " %net_addr) try...
32.384615
71
0.714964
736191403cb0c6f55160453da93dd4ad745483a7
7,359
py
Python
daphne/cli.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
2
2018-01-03T08:15:02.000Z
2018-01-03T08:15:03.000Z
daphne/cli.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
daphne/cli.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
import argparse import logging import sys from .access import AccessLogGenerator from .endpoints import build_endpoint_description_strings from .server import Server from .utils import import_by_path logger = logging.getLogger(__name__) DEFAULT_HOST = "127.0.0.1" DEFAULT_PORT = 8000 class CommandLineInterface(obje...
33.60274
117
0.556869
7361b4f56d16b4fb28b0cc6f26ee21da77241b63
12,295
py
Python
src/data/make_dataset.py
samulic/cmmd
5a12b11c65c8fc7d765a637e45b09bb93a10b043
[ "MIT" ]
null
null
null
src/data/make_dataset.py
samulic/cmmd
5a12b11c65c8fc7d765a637e45b09bb93a10b043
[ "MIT" ]
null
null
null
src/data/make_dataset.py
samulic/cmmd
5a12b11c65c8fc7d765a637e45b09bb93a10b043
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import logging from pathlib import Path import os import pandas as pd import numpy as np import cv2 import pydicom from tqdm import tqdm # N_PATIENTS=00 # if zero download all patients SEED=42 # to download the same N_patients CLINICAL_DATA_URL='https://wiki.cancerimagingarchive...
39.407051
172
0.658154
7361c79eda6f05816ae39f0c97374d1b7b617341
1,116
py
Python
vyperlogix/django/forms/form_as_html.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/django/forms/form_as_html.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/django/forms/form_as_html.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
from django.template import Context from vyperlogix.html import myOOHTML as oohtml from vyperlogix import misc def render_list_as_table(aList=[]): rows = [] h = oohtml.Html() for item in aList: rows.append(item) h.html_simple_table([[row] if (not isinstance(row,list)) else row for row in rows],width=...
34.875
100
0.725806
7361e89940e8711723cbf77ceb2477fb6807398c
2,381
py
Python
sdk/tables/azure-data-tables/tests/test_table_service_properties_cosmos_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/tables/azure-data-tables/tests/test_table_service_properties_cosmos_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/tables/azure-data-tables/tests/test_table_service_properties_cosmos_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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. # --------------------------------------------------------------------...
43.290909
134
0.696766
7362119d83a25de8c0c51962f8d0b2a25d61384e
630
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bluefruit_connect/gyro_packet.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bluefruit_connect/gyro_packet.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
16
2019-02-01T17:39:32.000Z
2021-12-14T13:11:51.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bluefruit_connect/gyro_packet.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Dan Halbert for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_bluefruit_connect.gyro_packet` ==================================================== Bluefruit Connect App Gyro data packet. * Author(s): Dan Halbert for Adafruit Industries """ from ._xyz_packet import...
23.333333
94
0.690476
73622db6a4aba02d1367a8394ea6269452eed4c0
4,456
py
Python
uaa_client/tests/test_views.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
uaa_client/tests/test_views.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
1
2021-06-10T23:13:04.000Z
2021-06-10T23:13:04.000Z
uaa_client/tests/test_views.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
from unittest import mock import urllib.parse from django.test import TestCase from django.test.utils import override_settings from contextlib import contextmanager def get_query(urlinfo): return dict(urllib.parse.parse_qsl(urlinfo.query)) @override_settings( UAA_CLIENT_ID='clientid', UAA_CLIENT_SECRET=...
42.846154
96
0.687837
73623787c5d04aa7c78447207ae9f88ae1161b75
105
py
Python
instapy/settings.py
MissProxy/followig
84ecbbad49556f54e4c3b6f531ce12a919a134a1
[ "MIT" ]
3
2019-10-03T21:16:11.000Z
2021-01-16T16:52:59.000Z
instapy/settings.py
cormo1990/InstaPy
7ca2d7bf670e75fbb4031ba8b14fbf190deff4ad
[ "MIT" ]
null
null
null
instapy/settings.py
cormo1990/InstaPy
7ca2d7bf670e75fbb4031ba8b14fbf190deff4ad
[ "MIT" ]
1
2021-11-30T20:28:27.000Z
2021-11-30T20:28:27.000Z
class Settings: database_location = "./db/instapy.db" browser_location = "./assets/chromedriver"
26.25
46
0.714286
73623a0c8d94829ad21399f5bae6f22979a769e7
1,562
py
Python
api/web/apps/auth/views.py
procool/itstructure
6aa3a43e1a759f5509f130ddf911779645dc89d0
[ "BSD-2-Clause" ]
null
null
null
api/web/apps/auth/views.py
procool/itstructure
6aa3a43e1a759f5509f130ddf911779645dc89d0
[ "BSD-2-Clause" ]
null
null
null
api/web/apps/auth/views.py
procool/itstructure
6aa3a43e1a759f5509f130ddf911779645dc89d0
[ "BSD-2-Clause" ]
null
null
null
from flask import url_for from flaskcbv.view import View from flaskcbv.conf import settings from misc.mixins import HelperMixin from misc.views import JSONView class authView(JSONView): def helper(self): return """Authorizaion handler Use "login" and "passwd" arguments by GET or POST to get ses...
26.474576
107
0.608195
736249b69cd78bda969c40f89fc3dd30bf46feac
25,052
py
Python
ironic/drivers/modules/network/common.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
1
2019-07-29T04:57:15.000Z
2019-07-29T04:57:15.000Z
ironic/drivers/modules/network/common.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
13
2019-04-12T21:55:36.000Z
2020-05-26T14:07:13.000Z
ironic/drivers/modules/network/common.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
11
2019-04-10T04:43:33.000Z
2020-01-31T10:34:14.000Z
# Copyright 2016 Cisco Systems # 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 ...
42.104202
79
0.63444
73625b4a9904b10fd765c5ed4716dc897db450ba
22,592
py
Python
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 ...
48.170576
205
0.689271
736266a4aabf6f02175c53fc0424859d226269a8
4,063
py
Python
src/GNN/network.py
Crazy-Jack/SpatialExpGeneCluster
9e57c308d1c577a936a2358d0641c65b8130034f
[ "MIT" ]
null
null
null
src/GNN/network.py
Crazy-Jack/SpatialExpGeneCluster
9e57c308d1c577a936a2358d0641c65b8130034f
[ "MIT" ]
null
null
null
src/GNN/network.py
Crazy-Jack/SpatialExpGeneCluster
9e57c308d1c577a936a2358d0641c65b8130034f
[ "MIT" ]
null
null
null
import numpy as np import itertools as it import torch from torch_geometric.data import InMemoryDataset from torch_geometric.data import Data from torch_geometric.data import DataLoader from torch_geometric.nn import GCNConv import torch.nn.functional as F # Creating dataset exp_matrix = np.loadtxt('seqfish/count_mat...
35.955752
111
0.685208
736297a3a4be59649beee38f14f84eea1bf0fa07
2,167
py
Python
01-Lesson-Plans/02-Python/2/Activities/04-Stu_Iterate_Lists/Solved/trading_log.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/02-Python/2/Activities/04-Stu_Iterate_Lists/Solved/trading_log.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/02-Python/2/Activities/04-Stu_Iterate_Lists/Solved/trading_log.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
# -*- coding: utf-8 -*- """ Student Do: Trading Log. This script demonstrates how to perform basic analysis of trading profits/losses over the course of a month (20 business days). """ # Initialize the metric variables count = 0 total = 0 average = 0 minimum = 0 maximum = 0 # Initialize lists to hold profitable and ...
29.684932
80
0.670512
7362bcf85ee7c262ea780103fbfe78c6ad90b860
5,607
py
Python
mauveinternet/ordering/order.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
mauveinternet/ordering/order.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
mauveinternet/ordering/order.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
import re from decimal import Decimal, ROUND_CEILING from django.conf import settings try: from django.dispatch import Signal except ImportError: from mauveinternet.signals import Signal class ItemNotRepeatable(Exception): """Indicates that an attempt to add an item to the basket failed because it is...
31.5
129
0.648118
7362c2513976b782cfd6cf0e0b0dea9c5070c054
18,964
py
Python
oscar/lib/python2.7/site-packages/django/forms/formsets.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/forms/formsets.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/forms/formsets.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.core.exceptions import ValidationError from django.forms import Form from django.forms.fields import BooleanField, IntegerField from django.forms.utils import ErrorList from django.forms.widgets import HiddenInput from django.utils import six from django.util...
40.87069
117
0.60657
7362cbd4f944677657ba35409a8d8a1e85c08902
518
py
Python
serie4/docu/plot_k_cond.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
serie4/docu/plot_k_cond.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
serie4/docu/plot_k_cond.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt import numpy import math def plot(parameter_list, data_points_list): plt.yscale('log', basey=10) x = numpy.arange(0, 6, 0.01) plt.plot(map(lambda t: t[4], parameter_list), map(lambda t: t[7], parameter_list), "ro", label="cond(A)")...
24.666667
113
0.662162
7362fb4aa32a77fd104fb5d8bf390542b8e0ff5c
248
py
Python
earlier-2020/python_mod_tutorials/tqdm_t.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
earlier-2020/python_mod_tutorials/tqdm_t.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
earlier-2020/python_mod_tutorials/tqdm_t.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
from tqdm import tqdm import os import sys import time pbar = tqdm(total=100) for i in range(100): time.sleep(0.02) pbar.update(1) # pbar.clear() pbar.refresh() for i in range(100): time.sleep(0.02) pbar.update(1) pbar.close()
12.4
22
0.66129
7362fe90de613330a98040c644ad4fa52f79ac56
25,831
py
Python
sdk/servicebus/azure-mgmt-servicebus/tests/disable_test_cli_mgmt_servicebus_namespace.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/servicebus/azure-mgmt-servicebus/tests/disable_test_cli_mgmt_servicebus_namespace.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/servicebus/azure-mgmt-servicebus/tests/disable_test_cli_mgmt_servicebus_namespace.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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. #----------------------------------------------------------------------...
49.108365
215
0.484573
736307770f2802c5405270259e4ca549713c0ce0
3,644
py
Python
yardstick/benchmark/scenarios/compute/affinity.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/scenarios/compute/affinity.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/scenarios/compute/affinity.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, ...
35.378641
78
0.596323
73630f4201ded54eaafcf6f7f0ba8106507b127d
682
py
Python
tests/index_entry_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
tests/index_entry_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
tests/index_entry_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
from datetime import date import pytest from regparser.history.versions import Version from regparser.index import entry from regparser.notice.citation import Citation @pytest.mark.django_db def test_iterator(): """Versions should be correctly linearized""" path = entry.Version("12", "1000") v1 = Versio...
28.416667
61
0.653959
73631d06ed114be2d323c41b7c62cd703372cecd
14,619
py
Python
openstack/connection.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
openstack/connection.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
openstack/connection.py
infonova/openstacksdk
3cf6730a71d8fb448f24af8a5b4e82f2af749cea
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.471053
79
0.677953
736361e757aeaaf5221abfdcd2fe7d67362bf5a9
4,561
py
Python
fire/console/console_io.py
loynoir/python-fire
1f99e282f079bea992105f609ad1a70ed60d6635
[ "Apache-2.0" ]
null
null
null
fire/console/console_io.py
loynoir/python-fire
1f99e282f079bea992105f609ad1a70ed60d6635
[ "Apache-2.0" ]
null
null
null
fire/console/console_io.py
loynoir/python-fire
1f99e282f079bea992105f609ad1a70ed60d6635
[ "Apache-2.0" ]
1
2021-04-10T14:17:27.000Z
2021-04-10T14:17:27.000Z
# -*- coding: utf-8 -*- # # Copyright 2013 Google LLC. 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 requir...
39.66087
83
0.659066
736365d64808a30471f484fbd81450c148639b5b
2,515
py
Python
nibble/expression/lexer.py
gebn/nibble
e82a2c43509ed38f3d039040591cc630fa676cb0
[ "MIT" ]
1
2018-09-05T21:38:11.000Z
2018-09-05T21:38:11.000Z
nibble/expression/lexer.py
gebn/nibble
e82a2c43509ed38f3d039040591cc630fa676cb0
[ "MIT" ]
20
2017-05-28T12:53:44.000Z
2022-02-18T18:03:17.000Z
nibble/expression/lexer.py
gebn/nibble
e82a2c43509ed38f3d039040591cc630fa676cb0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ply import lex from nibble import Information, Duration class LexingError(Exception): """ Raised if an error occurs during lexing. See the message for details. """ pass # noinspection PyPep8Naming,PyMethodMayBeStatic,PySingleQuote...
26.755319
80
0.563817
736367e3f2d51d7dbc4e20080a3a38e336a8d08b
60,059
py
Python
Main.py
Aashir5678/CubeTimer
b226ae875cde35fb573c618d70a408421e0e9f07
[ "MIT" ]
3
2020-08-26T19:05:25.000Z
2021-08-07T02:35:43.000Z
Main.py
Aashir5678/CubeTimer
b226ae875cde35fb573c618d70a408421e0e9f07
[ "MIT" ]
2
2022-01-13T03:51:54.000Z
2022-03-12T00:59:26.000Z
Main.py
Aashir5678/CubeTimer
b226ae875cde35fb573c618d70a408421e0e9f07
[ "MIT" ]
1
2021-07-28T06:04:02.000Z
2021-07-28T06:04:02.000Z
""" CubeTimer Copyright 2020 Aashir Alam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
37.70182
461
0.545314
73636b21e623b133880236e6e827b5c504066178
103
py
Python
proto/crypto/sigpb/sigpb_pb2_grpc.py
TinkerBoard2-Android/external-avb
5a2b0ed1b6e360303642ee05e970373fb86ca253
[ "MIT" ]
2
2021-08-17T16:43:52.000Z
2021-08-18T12:18:32.000Z
proto/crypto/sigpb/sigpb_pb2_grpc.py
TinkerBoard2-Android/external-avb
5a2b0ed1b6e360303642ee05e970373fb86ca253
[ "MIT" ]
null
null
null
proto/crypto/sigpb/sigpb_pb2_grpc.py
TinkerBoard2-Android/external-avb
5a2b0ed1b6e360303642ee05e970373fb86ca253
[ "MIT" ]
null
null
null
# pylint: skip-file # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc
20.6
69
0.76699
73638dabe53ac68a6fbc63f278ec5f1d10ba6ca4
18,921
py
Python
data/config.py
BXuan694/SOLO-pytorch
aef0ac47ce6989f6633fe4f71070bd6944c39abb
[ "Apache-2.0" ]
2
2022-03-19T12:58:58.000Z
2022-03-19T15:01:02.000Z
data/config.py
BXuan694/SOLO-pytorch
aef0ac47ce6989f6633fe4f71070bd6944c39abb
[ "Apache-2.0" ]
1
2022-03-19T15:06:25.000Z
2022-03-23T01:48:58.000Z
data/config.py
BXuan694/SOLO-pytorch
aef0ac47ce6989f6633fe4f71070bd6944c39abb
[ "Apache-2.0" ]
null
null
null
from .piplines import LoadImageFromFile, LoadAnnotations, Normalize, DefaultFormatBundle, Collect, TestCollect, Resize, Pad, RandomFlip, MultiScaleFlipAug, ImageToTensor process_funcs_dict = {'LoadImageFromFile': LoadImageFromFile, 'LoadAnnotations': LoadAnnotations, 'Norm...
40.603004
169
0.54273
7363a9f36737c7296637fc983ad0581d5b8113b3
135
py
Python
demo1-test/gaeunit/urlsauto.py
arjunsatyapal/lantern
073e1f86c6ef9234ab654af035e3870cb22f0dc4
[ "Apache-2.0" ]
1
2019-02-03T08:41:52.000Z
2019-02-03T08:41:52.000Z
demo1-test/gaeunit/urlsauto.py
arjunsatyapal/lantern
073e1f86c6ef9234ab654af035e3870cb22f0dc4
[ "Apache-2.0" ]
null
null
null
demo1-test/gaeunit/urlsauto.py
arjunsatyapal/lantern
073e1f86c6ef9234ab654af035e3870cb22f0dc4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^test', include('gaeunit.urls')), )
19.285714
40
0.622222
7363b7c902d76aaf828a78b6440f040df90fb349
2,697
py
Python
DeepJudge/neuron_fuzz.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
12
2022-01-11T08:17:16.000Z
2022-03-31T12:58:57.000Z
DeepJudge/neuron_fuzz.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
null
null
null
DeepJudge/neuron_fuzz.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
null
null
null
from tensorflow import keras from tensorflow.keras.models import Model import numpy as np import tensorflow.keras.backend as K import tensorflow as tf class NeuronFuzzing: def __init__(self, model): """ Generate white-box test cases for neurons args: model: victim model """ ...
34.139241
110
0.53096
7363ff8289f0e7c931cf872d34d3933995eac8c1
2,287
py
Python
tests/test_plain_io.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
108
2015-08-21T10:39:22.000Z
2022-03-04T22:10:49.000Z
tests/test_plain_io.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
60
2015-07-21T22:55:52.000Z
2022-03-24T21:20:00.000Z
tests/test_plain_io.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
40
2015-08-04T00:18:23.000Z
2021-12-30T13:41:54.000Z
#!/usr/bin/env python # Copyright (c) 2005 Gavin E. Crooks <gec@threeplusone.com> # # This software is distributed under the MIT Open Source License. # <http://www.opensource.org/licenses/mit-license.html> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and asso...
32.671429
80
0.721906
73640edd1ab2ed27a5652004263b372a0de399f4
3,243
py
Python
Add Button.py
lord-tx/Server-Client
2010624020f2157a1e4443fa32fc2501c421fe88
[ "MIT" ]
null
null
null
Add Button.py
lord-tx/Server-Client
2010624020f2157a1e4443fa32fc2501c421fe88
[ "MIT" ]
null
null
null
Add Button.py
lord-tx/Server-Client
2010624020f2157a1e4443fa32fc2501c421fe88
[ "MIT" ]
1
2019-02-06T17:27:49.000Z
2019-02-06T17:27:49.000Z
import tkinter as tk # For tkinter Widgets import os # For access to os properties such as path from tkinter import ttk # Themed tkinter for beautiful interfaces from tkinter import filedialog # Tkinter file dialog interface....
38.152941
119
0.646315
736419e713bb6c3bab3228069f9852664e0b6821
1,974
py
Python
venv/Lib/site-packages/pyrogram/raw/types/page_block_divider.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/page_block_divider.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/page_block_divider.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.84375
103
0.629686
73642c91150892b6028a4ce26508dc76c27cbce4
4,915
py
Python
src/encryption/encrypt.py
LPvdT/encryption-tool
b09903f89cb50d3bdf6baab3f82506e7ca2c49b0
[ "MIT" ]
null
null
null
src/encryption/encrypt.py
LPvdT/encryption-tool
b09903f89cb50d3bdf6baab3f82506e7ca2c49b0
[ "MIT" ]
null
null
null
src/encryption/encrypt.py
LPvdT/encryption-tool
b09903f89cb50d3bdf6baab3f82506e7ca2c49b0
[ "MIT" ]
null
null
null
from cryptography.fernet import Fernet from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from typing import Union, Optional import os import base64 import tarfile from .crypto import CryptoEngine...
29.787879
142
0.524517
736469e32e5ad77ca39fce8c9f638eb7fab58188
2,227
py
Python
mtr/sync/lib/processors/xlsx.py
mtrgroup/django-mtr-import-export
b8e7a6fa1cbc58b9e2126526f418306a7490cb52
[ "MIT" ]
null
null
null
mtr/sync/lib/processors/xlsx.py
mtrgroup/django-mtr-import-export
b8e7a6fa1cbc58b9e2126526f418306a7490cb52
[ "MIT" ]
null
null
null
mtr/sync/lib/processors/xlsx.py
mtrgroup/django-mtr-import-export
b8e7a6fa1cbc58b9e2126526f418306a7490cb52
[ "MIT" ]
null
null
null
import os os.environ['OPENPYXL_LXML'] = 'False' import openpyxl from ..processor import Processor from ..manager import manager from ...translation import gettext_lazy as _ @manager.register('processor') class XlsxProcessor(Processor): file_format = '.xlsx' file_description = _('Microsoft Excel 2007/2010/2...
27.493827
73
0.602155
73647b6b1bea21b7fb3fc748643a336d5e58233c
5,221
py
Python
pcapparser/parse_pcap.py
abzcoding/pcap-parser
09ef92e08547141637eff62b8a5b64f6d23e945d
[ "BSD-3-Clause" ]
5
2015-09-17T08:17:42.000Z
2021-11-09T08:21:03.000Z
pcapparser/parse_pcap.py
abzcoding/pcap-parser
09ef92e08547141637eff62b8a5b64f6d23e945d
[ "BSD-3-Clause" ]
null
null
null
pcapparser/parse_pcap.py
abzcoding/pcap-parser
09ef92e08547141637eff62b8a5b64f6d23e945d
[ "BSD-3-Clause" ]
4
2016-09-18T07:13:12.000Z
2021-08-30T16:15:50.000Z
from __future__ import unicode_literals, print_function, division from collections import OrderedDict import struct import sys from pcapparser import packet_parser from pcapparser import pcap, pcapng, utils from pcapparser.constant import FileFormat from pcapparser.printer import HttpPrinter from pcapparser.httpparser...
30.354651
92
0.607163
736492396fa16e2c5534a7fcdbe4abf04304c1ad
98,573
py
Python
glance_store/tests/unit/test_swift_store.py
cloudify-ro/glance_store
032b57a6afb34152636eb33991abf6f811a5cf18
[ "Apache-2.0" ]
49
2015-01-01T17:49:15.000Z
2021-01-12T07:08:58.000Z
glance_store/tests/unit/test_swift_store.py
cloudify-ro/glance_store
032b57a6afb34152636eb33991abf6f811a5cf18
[ "Apache-2.0" ]
1
2021-05-09T06:13:17.000Z
2021-05-09T06:13:18.000Z
glance_store/tests/unit/test_swift_store.py
cloudify-ro/glance_store
032b57a6afb34152636eb33991abf6f811a5cf18
[ "Apache-2.0" ]
50
2015-01-23T18:21:06.000Z
2021-11-23T04:42:25.000Z
# Copyright 2011 OpenStack Foundation # 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 requ...
42.071276
79
0.621052
7364fee36c65748a728cc14a292ddf0631553eac
845
py
Python
workalendar/africa/benin.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/africa/benin.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/africa/benin.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from workalendar.core import WesternCalendar, IslamicMixin, ChristianMixin class Benin(WesternCalendar, IslamicMixin, ChristianMixin): "Benin" include_easter_monday = True i...
31.296296
74
0.674556
7364ff7290165a6f85ae906fda0682555fe03daf
927
py
Python
tests/test_project/test_api/views.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
2
2019-01-29T08:21:38.000Z
2020-01-10T13:54:52.000Z
tests/test_project/test_api/views.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
null
null
null
tests/test_project/test_api/views.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
1
2020-01-10T14:28:50.000Z
2020-01-10T14:28:50.000Z
from django.http import JsonResponse from django.utils.translation import ugettext_lazy as _ from django.views import View from ..models import Project class ReceiveProjectView(View): """ This test view allows to check the validity of the pk and the key, and receive project name Required query string par...
30.9
95
0.594391
73650333011d00b169048a63fc9ad1dcffdd4e5f
6,009
bzl
Python
apple/module_map.bzl
hendych/rules_apple_line
f9e04f7ad20848262c55db01734e95de94ff945f
[ "Apache-2.0" ]
101
2020-04-23T07:43:45.000Z
2020-06-29T02:42:42.000Z
apple/module_map.bzl
hendych/rules_apple_line
f9e04f7ad20848262c55db01734e95de94ff945f
[ "Apache-2.0" ]
33
2020-07-25T15:05:51.000Z
2022-02-17T10:50:11.000Z
apple/module_map.bzl
hendych/rules_apple_line
f9e04f7ad20848262c55db01734e95de94ff945f
[ "Apache-2.0" ]
14
2020-07-25T14:34:30.000Z
2022-03-23T10:13:11.000Z
# Copyright 2020 LINE Corporation # # LINE Corporation licenses this file to you 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 ...
31.296875
94
0.633217
736509267bca956ba8d27520ecc4972494adc668
309
py
Python
venv/Lib/site-packages/jupyter_cache/__init__.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
2
2021-02-16T16:17:07.000Z
2021-11-08T20:27:13.000Z
venv/Lib/site-packages/jupyter_cache/__init__.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/jupyter_cache/__init__.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
4
2020-11-14T17:05:36.000Z
2020-11-16T18:44:54.000Z
# NOTE: never import anything here, in order to maintain CLI speed __version__ = "0.4.1" def get_cache(path, cache_cls=None): """Return a cache, with a given folder path.""" if cache_cls is None: from jupyter_cache.cache.main import JupyterCacheBase as cache_cls return cache_cls(path)
28.090909
74
0.718447
736532ce3e16d86abf581a3ac5931b4218356292
1,185
py
Python
setup.py
pilosus/c3linear
dece5c7af4cff7987dc5ded32860febce14beb12
[ "MIT" ]
4
2019-03-11T10:33:23.000Z
2021-09-02T18:59:46.000Z
setup.py
pilosus/c3linear
dece5c7af4cff7987dc5ded32860febce14beb12
[ "MIT" ]
null
null
null
setup.py
pilosus/c3linear
dece5c7af4cff7987dc5ded32860febce14beb12
[ "MIT" ]
1
2021-09-02T19:11:03.000Z
2021-09-02T19:11:03.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() version = "0.1.1" setuptools.setup( name="c3linear", version=version, python_requires='>=3.6', author="Vitaly R. Samigullin", author_email="vrs@pilosus.org", description="A naive implementation of C3 lineari...
28.902439
71
0.607595
736547409a2ec88f3bf00a05c3daa99e464b7107
56,813
py
Python
lib/XChemCootOld.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
10
2016-01-10T16:12:45.000Z
2021-11-23T11:33:20.000Z
lib/XChemCootOld.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
208
2017-06-30T10:32:12.000Z
2022-03-29T10:38:32.000Z
lib/XChemCootOld.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
8
2016-10-28T14:40:44.000Z
2021-01-15T10:34:30.000Z
# last edited: 21/07/2017 - 15:00 import gobject import sys import os import pickle from matplotlib.figure import Figure #from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas # XCE libraries sys.path.append(os.getenv('XChemExplorer_DIR')+'/lib') import XChemDB import XChemRe...
51.275271
186
0.60722
73655e89c802c4fbb0da00dcf759291db94a815d
768
py
Python
modules/dbnd/src/dbnd/_core/tracking/backends/channels/tracking_debug_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/backends/channels/tracking_debug_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/backends/channels/tracking_debug_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import logging import pprint from dbnd._core.tracking.backends.channels.abstract_channel import TrackingChannel from dbnd._core.tracking.backends.channels.marshmallow_mixin import MarshmallowMixin logger = logging.getLogger(__name__) class ConsoleDebugTrackingChannel(MarshmallowMixin, TrackingChannel): """Json...
32
84
0.740885
73656584675cc85184425daac1bb22ff6b74455f
1,121
py
Python
example/worldwide_all.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
null
null
null
example/worldwide_all.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
100
2021-02-06T17:50:15.000Z
2022-03-31T20:30:49.000Z
example/worldwide_all.py
ardhani31/Covid19-SIRV
813bc66f668a3d2945dc97474ea1149bbc6e40c2
[ "Apache-2.0" ]
1
2021-09-18T12:36:11.000Z
2021-09-18T12:36:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from pathlib import Path import covsirphy as cs def main(): # Create output directory in example directory code_path = Path(__file__) input_dir = code_path.parent.with_name("input") output_dir = code_path.with_name("output").joinpath(code_path.stem) o...
30.297297
71
0.702944
7365ae2dc0414318b88eb67909e97c7fb6798209
9,440
py
Python
salt/modules/shadow.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
salt/modules/shadow.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
salt/modules/shadow.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Manage the shadow file on Linux systems .. important:: If you feel that Salt should be using this module to manage passwords on a minion, and it is using a different module (or gives an error similar to *'shadow.info' is not available*), see :ref:`here <module-provider-overr...
25.722071
92
0.59661
7365d1bb8f06769287dd23f410ba8be5829a72c5
42,880
py
Python
corehq/apps/api/resources/v0_5.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/api/resources/v0_5.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
2
2020-04-16T13:25:44.000Z
2021-02-08T22:08:28.000Z
corehq/apps/api/resources/v0_5.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple from itertools import chain from django.conf.urls import url from django.contrib.auth.models import User from django.forms import ValidationError from django.http import Http404, HttpResponse, HttpResponseNotFound from django.urls import reverse from django.utils.translation import u...
39.33945
123
0.633559
7365de6d5dbb1c22da8708489d833d1b57a5856c
2,585
py
Python
doc/examples/cookbook/example11m.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/cookbook/example11m.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
doc/examples/cookbook/example11m.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function ############################################################################## # # Copyright (c) 2009-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apac...
33.571429
78
0.639845
7365e61ade8c354ff2ed809a415c3fdf161b47a2
19,894
py
Python
oscar/lib/python2.7/site-packages/pygments/cmdline.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pygments/cmdline.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pygments/cmdline.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.cmdline ~~~~~~~~~~~~~~~~ Command line interface. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import print_function import sys import getopt from textwrap import ...
34.963093
86
0.555997
736641085c0b66840e9901dddc13deafba787b23
4,857
py
Python
src/main/python/smv/runinfo.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
src/main/python/smv/runinfo.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
src/main/python/smv/runinfo.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
# # This file 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 # # Unless required by applicable law or agreed to in writing, software # distr...
32.817568
98
0.602018
7366490ba587d148ee4a4d642d828318934e781a
442
bzl
Python
third_party/junit.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/junit.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/junit.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "junit_junit", artifact = "junit:junit:4.13.2", artifact_sha256 = "8e495b634469d64fb8acfa3495a065cbacc8a0fff55ce1e31007be4c16dc57d3", srcjar_sha256 = "34181df6482d40ea4c046b...
34
93
0.690045
73665307320e0b7147a0877df37c7ac54d5ea6b9
28,444
py
Python
control_wrapper/node/kinematics.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
control_wrapper/node/kinematics.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
control_wrapper/node/kinematics.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Software License Agreement (MIT License) # # Copyright (c) 2020, control_warpper # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without rest...
44.03096
181
0.668471
73666953e0a71bbe6ecd564792c22aaf69df0851
192
py
Python
terrascript/utravis/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/utravis/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/utravis/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/utravis/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21.333333
79
0.765625
736689282587d171b3e754c7374f16c0c2c02a56
1,103
py
Python
majorityElement.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
1
2019-08-29T01:12:47.000Z
2019-08-29T01:12:47.000Z
majorityElement.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
majorityElement.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @project : LeetCode @File : majorityElement.py @Contact : 9824373@qq.com @Desc : 给定一个大小为 n 的数组,找到其中的多数元素。多数元素是指在数组中出现次数大于 ⌊ n/2 ⌋ 的元素。 你可以假设数组是非空的,并且给定的数组总是存在多数元素。 示例 1: 输入: [3,2,3] 输出: 3 示例 2: ...
23.978261
65
0.487761
7366906a487798a764ca129a24945d432ee91c4a
6,699
py
Python
maps/get_map_stats.py
szarta/stars-research
23dda7bb231868746da219d8a814c2ee984a0e5e
[ "MIT" ]
null
null
null
maps/get_map_stats.py
szarta/stars-research
23dda7bb231868746da219d8a814c2ee984a0e5e
[ "MIT" ]
null
null
null
maps/get_map_stats.py
szarta/stars-research
23dda7bb231868746da219d8a814c2ee984a0e5e
[ "MIT" ]
null
null
null
#!/usr/bin/python """ get_map_stats.py :author: Brandon Arrendondo :license: MIT """ import sys import os import argparse import math import logging import numpy as np from collections import Counter def calculate_dimensions(points): max_across = 0 min_across = 3000 for point in points: ...
28.751073
127
0.526347
7366a343fe79b7fb7c94e3ecf87263e9eea82786
8,126
py
Python
src/ros/tip2d_detection/src/tip2d_detection.py
sigproc/robotic_surgery
736ef5b210a781fd5532fd738e321c2a1bee50e5
[ "MIT" ]
4
2016-04-16T01:02:13.000Z
2022-02-01T06:02:20.000Z
src/ros/tip2d_detection/src/tip2d_detection.py
yangyipeng/robotic_surgery
736ef5b210a781fd5532fd738e321c2a1bee50e5
[ "MIT" ]
7
2015-01-05T11:45:32.000Z
2015-03-05T14:45:23.000Z
src/ros/tip2d_detection/src/tip2d_detection.py
yangyipeng/robotic_surgery
736ef5b210a781fd5532fd738e321c2a1bee50e5
[ "MIT" ]
10
2015-01-22T07:41:24.000Z
2022-01-21T10:03:08.000Z
# The MIT License (MIT) # # Copyright (c) 2015 Duong Le <tdl28@cam.ac.uk> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to u...
35.330435
125
0.59205
7366a4f5914f8f87846d671a6ef489063c004b8e
1,719
py
Python
py/98. Validate Binary Search Tree.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
py/98. Validate Binary Search Tree.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
py/98. Validate Binary Search Tree.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/validate-binary-search-tree/ # Given the root of a binary tree, determine if it is a valid binary search tree # (BST). # A valid BST is defined as follows: ################################################################################ # divide and conquer # need (is_valid, min_val,...
33.057692
80
0.548575
7366a7e2aa30547134e50960625c588528aed08b
10,748
py
Python
src/ftd/attribute.py
FabienTaxil/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
3
2022-01-26T23:43:16.000Z
2022-02-11T07:50:49.000Z
src/ftd/attribute.py
lixaft/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
null
null
null
src/ftd/attribute.py
lixaft/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
null
null
null
"""Provide utilities related to attributes.""" import contextlib import io import logging import sys from maya import cmds __all__ = ["SRT", "copy", "separator", "move", "reset", "unlock"] LOG = logging.getLogger(__name__) TRANSLATE = ("translateX", "translateY", "translateZ") ROTATE = ("rotateX", "rotateY", "rotat...
34.670968
112
0.620953
7366b5000aa2aa86e179597e385fa999a8579585
2,794
py
Python
examples/nas/search_space_zoo/darts_stack_cells.py
tblanchart/nni
bbb9137c323316d6de04e15d42cf6dc47a889fcc
[ "MIT" ]
2
2020-08-11T14:04:21.000Z
2020-09-28T05:39:57.000Z
examples/nas/search_space_zoo/darts_stack_cells.py
ajeets1978/nni
41312de5dcbe8ba1f59c08a7b62fd5207f623804
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
examples/nas/search_space_zoo/darts_stack_cells.py
johnarthur1/nni
2d026a13f97612bc7961d5a55f5088a169de9ee9
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch.nn as nn import ops class DartsStackedCells(nn.Module): """ builtin Darts Search Space Compared to Darts example, DartsSearchSpace removes Auxiliary Head, which is considered as a trick rather than part of model. ...
33.261905
118
0.625268
7366cd0163b8d75a8461f6f44f840dfba3e512b9
739
py
Python
binary-search/0287-find-the-duplicate-number(2、选右中位数).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
binary-search/0287-find-the-duplicate-number(2、选右中位数).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
binary-search/0287-find-the-duplicate-number(2、选右中位数).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
from typing import List class Solution: def findDuplicate(self, nums: List[int]) -> int: left = 1 right = len(nums) - 1 while left < right: mid = (left + right + 1) >> 1 count = 0 for num in nums: if num < mid: count ...
24.633333
53
0.453315
7366d9462efb584f4a3b827923716822283ec4da
981
py
Python
examples/SQSEncrypt.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
1
2021-04-03T22:24:36.000Z
2021-04-03T22:24:36.000Z
examples/SQSEncrypt.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
examples/SQSEncrypt.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
5
2020-05-10T13:50:32.000Z
2021-09-09T09:06:54.000Z
# Converted from SQS_With_CloudWatch_Alarms.template located at: # http://aws.amazon.com/cloudformation/aws-cloudformation-templates/ from troposphere import GetAtt, Output, Ref, Template from troposphere.sqs import Queue t = Template() t.set_description( "AWS CloudFormation Sample Template SQS: Sample template...
26.513514
77
0.701325
7366dbc5f1074e2bd105b4ff5416877f72ebc367
3,655
py
Python
app/core/config.py
cormorack/cava-metadata
eacbc49e56218dabe124071e6a7f4cb5ae959e05
[ "MIT" ]
null
null
null
app/core/config.py
cormorack/cava-metadata
eacbc49e56218dabe124071e6a7f4cb5ae959e05
[ "MIT" ]
6
2021-02-26T00:08:08.000Z
2021-06-30T21:38:46.000Z
app/core/config.py
cormorack/cava-metadata
eacbc49e56218dabe124071e6a7f4cb5ae959e05
[ "MIT" ]
2
2021-04-14T20:26:35.000Z
2021-04-14T20:27:00.000Z
import os import fsspec from pydantic import BaseSettings class Settings(BaseSettings): """ Setting for the whole application """ # TODO: Switch over fully to this settings SERVICE_NAME = "Metadata Service" SERVICE_ID = "metadata" OPENAPI_URL = f"/{SERVICE_ID}/openapi.json" DOCS_URL = f"/{SER...
29.007937
75
0.664295
736727d27be6d6b35a0b3041556f9267062d4049
11,610
py
Python
dnacentersdk/utils.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/utils.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/utils.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Package helper functions and classes. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, includin...
31.808219
79
0.62851
73672ce5f5129a412ba33a5c4d1ff87a2073fe6b
1,357
py
Python
Video_to_frame.py
Rasmussen-Christian/Christian-Tools
e94900d55485b8f4212c99c8818fe3fe38f6b4d7
[ "MIT" ]
null
null
null
Video_to_frame.py
Rasmussen-Christian/Christian-Tools
e94900d55485b8f4212c99c8818fe3fe38f6b4d7
[ "MIT" ]
null
null
null
Video_to_frame.py
Rasmussen-Christian/Christian-Tools
e94900d55485b8f4212c99c8818fe3fe38f6b4d7
[ "MIT" ]
null
null
null
"""Script used to convert a video into each individual frame and saves them """ import argparse from pathlib import Path from cv2 import cv2 def main(): """Converts a video into its individual frames and saves them """ parser = argparse.ArgumentParser(description='Set arguments for converting video to im...
33.097561
110
0.677966
736742dd89a1ede1675fb9bb3304409b9c798a49
414
py
Python
pyserver/fileapi.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
1
2015-05-22T14:11:17.000Z
2015-05-22T14:11:17.000Z
pyserver/fileapi.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
2
2021-09-02T20:01:35.000Z
2022-01-26T19:47:35.000Z
pyserver/fileapi.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
null
null
null
ROOT_PARENT_ID = 1 EMPTY_TAG = "__(empty)__" #might as well use google's mime type for folders FOLDER_MIME = "application/vnd.google-apps.folder" file_restricted_fields = set(["diskpath", "cached_path", "flag"]) import config; mod = None if config.serv_local: import fileapi_local as mod else: import fileapi_db ...
18.818182
65
0.707729
73674cb0d9e836a6e48c8dd78f8a7f9d98902640
4,332
py
Python
src/morpheus/composition/ParallelComposition.py
eliavw/morpheus
01c6d15416188254cfdcc7fe9461069cbf8dbe63
[ "MIT" ]
null
null
null
src/morpheus/composition/ParallelComposition.py
eliavw/morpheus
01c6d15416188254cfdcc7fe9461069cbf8dbe63
[ "MIT" ]
null
null
null
src/morpheus/composition/ParallelComposition.py
eliavw/morpheus
01c6d15416188254cfdcc7fe9461069cbf8dbe63
[ "MIT" ]
null
null
null
import numpy as np from .Composition import Composition from morpheus.utils import debug_print VERBOSITY = 0 class ParallelComposition(Composition): def __init__(self): super().__init__() return # Basics def predict(self, X, **kwargs): nb_rows, nb_atts = X.shape s_pred ...
30.507042
88
0.590028
73675d2d70ad61958841422d0df268f2736697c4
5,495
py
Python
rapt/fieldline.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
1
2021-04-12T09:44:56.000Z
2021-04-12T09:44:56.000Z
rapt/fieldline.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
rapt/fieldline.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 22 12:54:01 2015 @author: kaan """ import numpy as np from scipy.integrate import odeint from rapt.rkf import rkf from rapt import params class Fieldline: def __init__(self, tpos, field, ds=0, stopcond=None, Bmin=None, Bmax=None): self.time = tpos[0] ...
41.007463
106
0.535578
736789dec44323c50cb58010b70e23098113c26f
5,942
py
Python
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.014815
208
0.704981
736794c21abc27dd847dd37950ffc26837bc4845
9,059
py
Python
james_code/keen2act.py
Ajal88/crossact
da74eae9f21b4f74c2fdde3564844ac3e5d02b85
[ "BSD-3-Clause" ]
3
2019-01-16T02:16:14.000Z
2020-06-17T09:30:16.000Z
james_code/keen2act.py
Ajal88/crossact
da74eae9f21b4f74c2fdde3564844ac3e5d02b85
[ "BSD-3-Clause" ]
1
2019-02-26T08:04:30.000Z
2019-02-26T08:04:30.000Z
james_code/keen2act.py
Ajal88/crossact
da74eae9f21b4f74c2fdde3564844ac3e5d02b85
[ "BSD-3-Clause" ]
2
2019-10-12T01:58:10.000Z
2020-06-17T09:30:23.000Z
from utilities_ver2 import loadInteractions, loadUserFeatures, loadItemFeatures, loadInteractions_keenfunc_thres, \ mini_batch, load_data from lightfm import LightFM import pickle from sklearn.metrics import label_ranking_average_precision_score import numpy as np import torch.nn as nn import torch class NeuralNe...
42.331776
115
0.607793