hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
c6b70da5ea5a9e6511345209e484cf5db4d2d48c
18,889
py
Python
blender_bindings/material_loader/shaders/source1_shaders/heroes_hair.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
null
null
null
blender_bindings/material_loader/shaders/source1_shaders/heroes_hair.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
null
null
null
blender_bindings/material_loader/shaders/source1_shaders/heroes_hair.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
null
null
null
import numpy as np from typing import Iterable import bpy from ...shader_base import Nodes from ..source1_shader_base import Source1ShaderBase class HeroesArmor(Source1ShaderBase): SHADER: str = 'heroes_hair' @property def bumpmap(self): texture_path = self._vmt.get_string('$bumpmap', None) ...
49.190104
124
0.586373
75402423b596bfef433802a6f7c11cdc78954eed
4,426
py
Python
yatube/posts/views.py
kotofey97/yatube_project_finale
01a11edd771035f961eecfd8dbf0dc004cee537d
[ "MIT" ]
3
2021-10-07T14:11:32.000Z
2021-12-07T12:23:53.000Z
yatube/posts/views.py
kotofey97/yatube_project_finale
01a11edd771035f961eecfd8dbf0dc004cee537d
[ "MIT" ]
null
null
null
yatube/posts/views.py
kotofey97/yatube_project_finale
01a11edd771035f961eecfd8dbf0dc004cee537d
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator from django.shortcuts import get_object_or_404, redirect, render from django.utils import timezone from .forms import CommentForm, PostForm from .models import Follow, Group, Post, User PER_PAGE = 10 def index(requ...
30.736111
73
0.676005
b41b794f2b4f981437188ede73fb8dbc1cf341cd
1,758
py
Python
localstack/services/secretsmanager/secretsmanager_listener.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
31,928
2017-07-04T03:06:28.000Z
2022-03-31T22:33:27.000Z
localstack/services/secretsmanager/secretsmanager_listener.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
5,216
2017-07-04T11:45:41.000Z
2022-03-31T22:02:14.000Z
localstack/services/secretsmanager/secretsmanager_listener.py
lambdafunc/localstack
6285b43bec57435a2179310a8de2af8d8d8cf8dd
[ "Apache-2.0" ]
3,056
2017-06-05T13:29:11.000Z
2022-03-31T20:54:43.000Z
import json import logging from requests.models import Request from localstack.utils.aws import aws_stack from localstack.utils.aws.aws_responses import MessageConversion from localstack.utils.common import to_str from localstack.utils.persistence import PersistingProxyListener LOG = logging.getLogger(__name__) cl...
35.877551
106
0.624005
c977c3c23897ff6268eb207936bb3dfe5f62c1da
796
py
Python
migrations/versions/0c4d3d7722d9_.py
CapitalD/taplist
08a113f721f0cba2e33aa6cee00c97db1af24b4e
[ "MIT" ]
null
null
null
migrations/versions/0c4d3d7722d9_.py
CapitalD/taplist
08a113f721f0cba2e33aa6cee00c97db1af24b4e
[ "MIT" ]
34
2017-03-30T22:14:02.000Z
2017-09-13T03:18:47.000Z
migrations/versions/0c4d3d7722d9_.py
CapitalD/taplist
08a113f721f0cba2e33aa6cee00c97db1af24b4e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 0c4d3d7722d9 Revises: 602fa0cf66f9 Create Date: 2017-08-23 23:28:01.689046 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0c4d3d7722d9' down_revision = '602fa0cf66f9' branch_labels = None depends_on = None def upgrade(): # ...
25.677419
92
0.701005
181926489308f2f48beee4b3b398ba427a2197f7
731
py
Python
neutron/version.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
1
2016-04-23T21:33:31.000Z
2016-04-23T21:33:31.000Z
neutron/version.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
null
null
null
neutron/version.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
4
2015-04-14T10:06:51.000Z
2019-10-02T01:28:34.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack Foundation # # 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/LICEN...
36.55
78
0.735978
26aa5ab25b1f17baacf04ac7b8d6876f3b300fd7
5,765
py
Python
env/Lib/site-packages/pandas_datareader/tests/test_quandl.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
env/Lib/site-packages/pandas_datareader/tests/test_quandl.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
env/Lib/site-packages/pandas_datareader/tests/test_quandl.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
import os import pandas as pd import pytest from pandas_datareader import data as web from pandas_datareader.compat import assert_frame_equal TEST_API_KEY = os.getenv("QUANDL_API_KEY") # Ensure blank TEST_API_KEY not used in pull request TEST_API_KEY = None if not TEST_API_KEY else TEST_API_KEY pytestmark = [ p...
29.870466
85
0.485343
798fc879f847c774d6bceb4e144f59b443a5b8ec
1,825
py
Python
src/arch/x86/X86NativeTrace.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
src/arch/x86/X86NativeTrace.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
src/arch/x86/X86NativeTrace.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2009 The Regents of The University of Michigan # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list ...
48.026316
72
0.790685
0ca87652837f1df905884621ab95c9489b490585
416
py
Python
utils.py
satyenrajpal/yeet-sparsh
a39c7b23bb68ff60f3536b91f01238ff7f7500e9
[ "MIT" ]
null
null
null
utils.py
satyenrajpal/yeet-sparsh
a39c7b23bb68ff60f3536b91f01238ff7f7500e9
[ "MIT" ]
1
2020-10-26T22:05:24.000Z
2020-11-09T01:06:41.000Z
utils.py
satyenrajpal/yeet-sparsh
a39c7b23bb68ff60f3536b91f01238ff7f7500e9
[ "MIT" ]
null
null
null
import numpy as np def average(frame): return np.average(frame) # Average tiles in row major format def average_tiles(frame,coords, max_val, scale = 1): avgs = [] for section in coords: for top_left_x, top_left_y, bottom_right_x, bottom_right_y in section: avgs.append(min(average(frame...
32
120
0.713942
6b5203f80d18674044dc835e6474dc5c2e2cf143
6,166
py
Python
lib/tests/test_wallet_vertical.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
lib/tests/test_wallet_vertical.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
lib/tests/test_wallet_vertical.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
import unittest from unittest import mock import lib.bitcoin as bitcoin import lib.keystore as keystore import lib.storage as storage import lib.wallet as wallet # TODO: 2fa class TestWalletKeystoreAddressIntegrity(unittest.TestCase): gap_limit = 1 # make tests run faster def _check_seeded_keystore_sanity...
46.360902
164
0.746027
8377659567809ecc3b87166715a255799a9e6378
1,536
py
Python
examples/multiple_files.py
vBLFTePebWNi6c/Flask-Shell2HTTP
369cb6a605eca9434e4b6d63f2533dce995dde47
[ "BSD-3-Clause" ]
null
null
null
examples/multiple_files.py
vBLFTePebWNi6c/Flask-Shell2HTTP
369cb6a605eca9434e4b6d63f2533dce995dde47
[ "BSD-3-Clause" ]
null
null
null
examples/multiple_files.py
vBLFTePebWNi6c/Flask-Shell2HTTP
369cb6a605eca9434e4b6d63f2533dce995dde47
[ "BSD-3-Clause" ]
null
null
null
# system imports import requests import tempfile import json # web imports from flask import Flask from flask_executor import Executor from flask_shell2http import Shell2HTTP # Flask application instance app = Flask(__name__) # application factory executor = Executor() executor.init_app(app) shell2http = Shell2HTTP(...
26.482759
88
0.690755
68cbb7e0ed4271f18b5db9e30135fcd547736435
25,025
py
Python
DeepLearning UK Lottery -Euro-Hotpick-Latest.py
chad-38/EuroHotpicks_Prediction
d4ae18ef7e08e14e8bc6e360f46edfa5653f11e7
[ "MIT" ]
1
2021-02-11T20:28:31.000Z
2021-02-11T20:28:31.000Z
DeepLearning UK Lottery -Euro-Hotpick-Latest.py
chad-38/EuroHotpicks_Prediction
d4ae18ef7e08e14e8bc6e360f46edfa5653f11e7
[ "MIT" ]
null
null
null
DeepLearning UK Lottery -Euro-Hotpick-Latest.py
chad-38/EuroHotpicks_Prediction
d4ae18ef7e08e14e8bc6e360f46edfa5653f11e7
[ "MIT" ]
1
2021-06-25T15:49:35.000Z
2021-06-25T15:49:35.000Z
#!/usr/bin/env python # coding: utf-8 # In[3]: # -*- coding: utf-8 -*- """ Created on 10th Feb 2021 @author: Chaid Daud """ #importing libraries import tensorflow as tf #tensorflow lib for defining the architecture of neural network import pandas as pd #pandas lib we will use to load the dataset from excel (.csv) ...
83.97651
165
0.597682
f68f6f5910489f5867b781b7161c0f4b37db14a0
5,782
py
Python
metaflow/plugins/kfp/tests/run_integration_tests.py
talebzeghmi/metaflow
3c56e09c10deca88ebc5b572eac25aa605df1bc1
[ "Apache-2.0" ]
null
null
null
metaflow/plugins/kfp/tests/run_integration_tests.py
talebzeghmi/metaflow
3c56e09c10deca88ebc5b572eac25aa605df1bc1
[ "Apache-2.0" ]
null
null
null
metaflow/plugins/kfp/tests/run_integration_tests.py
talebzeghmi/metaflow
3c56e09c10deca88ebc5b572eac25aa605df1bc1
[ "Apache-2.0" ]
null
null
null
from os import listdir from os.path import isfile, join from subprocess import run, PIPE from typing import List, Dict from .... import R import kfp import pytest import yaml import tempfile """ To run these tests from your terminal, go to the tests directory and run: `python -m pytest -s -n 3 run_integration_tes...
32.301676
85
0.666378
eed727887d12726278ecc0642eb1b262bd22a096
2,641
py
Python
carbon_black_protection/komand_carbon_black_protection/triggers/new_approval_request/trigger.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
carbon_black_protection/komand_carbon_black_protection/triggers/new_approval_request/trigger.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
carbon_black_protection/komand_carbon_black_protection/triggers/new_approval_request/trigger.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import komand import time from .schema import NewApprovalRequestInput, NewApprovalRequestOutput # Custom imports below class NewApprovalRequest(komand.Trigger): starting_id = 0 def __init__(self): super(self.__class__, self).__init__( name='new_approval_request', descr...
39.41791
138
0.599016
48026e0e1631456c4e7fe64de7c449923e533449
7,684
py
Python
vnpy/trader/object.py
jerryhe26/vnpy
d7607da780c57a2ab182688f4e52bc3a300acfda
[ "MIT" ]
2
2020-04-17T03:10:17.000Z
2020-04-17T03:15:10.000Z
vnpy/trader/object.py
jerryhe26/vnpy
d7607da780c57a2ab182688f4e52bc3a300acfda
[ "MIT" ]
1
2020-04-29T01:42:22.000Z
2020-04-29T01:42:22.000Z
vnpy/trader/object.py
jerryhe26/vnpy
d7607da780c57a2ab182688f4e52bc3a300acfda
[ "MIT" ]
1
2021-02-19T07:25:22.000Z
2021-02-19T07:25:22.000Z
""" Basic data structure used for general trading function in VN Trader. """ from dataclasses import dataclass from datetime import datetime from logging import INFO from .constant import Direction, Exchange, Interval, Offset, Status, Product, OptionType, OrderType ACTIVE_STATUSES = set([Status.SUBMITTING, Status.NO...
22.869048
99
0.621812
7891952c419424673afcfae34a388416d6230adb
41
py
Python
suppliers/utils/__init__.py
dazeus/dazeus-plugin-refter
0769fe49bbfbe06273fd26500059108cc6fd13ee
[ "BSD-3-Clause" ]
null
null
null
suppliers/utils/__init__.py
dazeus/dazeus-plugin-refter
0769fe49bbfbe06273fd26500059108cc6fd13ee
[ "BSD-3-Clause" ]
null
null
null
suppliers/utils/__init__.py
dazeus/dazeus-plugin-refter
0769fe49bbfbe06273fd26500059108cc6fd13ee
[ "BSD-3-Clause" ]
null
null
null
from .dateformatter import DateFormatter
20.5
40
0.878049
0089fd326f628491bf8f8f3002813089b4bae8bc
14,888
py
Python
lib/galaxy/datatypes/isa.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/isa.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/isa.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
null
null
null
""" ISA datatype See https://github.com/ISA-tools """ from __future__ import print_function import io import json import logging import os import os.path import re import shutil import sys import tempfile from cgi import escape # Imports isatab after turning off warnings inside logger settings to avoid pandas warnin...
40.237838
386
0.556354
4155167e48b90597e7530b454f1dbf6cf9eedd27
1,024
py
Python
test/transfer_action_test.py
mvdbeek/pulsar
0ae163325868c575e23ca71e559904d2de981b78
[ "Apache-2.0" ]
null
null
null
test/transfer_action_test.py
mvdbeek/pulsar
0ae163325868c575e23ca71e559904d2de981b78
[ "Apache-2.0" ]
null
null
null
test/transfer_action_test.py
mvdbeek/pulsar
0ae163325868c575e23ca71e559904d2de981b78
[ "Apache-2.0" ]
null
null
null
import os from .test_utils import files_server from pulsar.client.action_mapper import RemoteTransferAction def test_write_to_file(): with files_server() as (server, directory): from_path = os.path.join(directory, "remote_get") open(from_path, "wb").write(b"123456") to_path = os.path.joi...
34.133333
73
0.679688
859505897f03d3735f285d5afe178bf8d1b63b9e
4,896
py
Python
matches/tests/test_views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
null
null
null
matches/tests/test_views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
1
2017-12-14T07:42:02.000Z
2017-12-14T10:22:19.000Z
matches/tests/test_views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from django.utils import timezone from accounts.factories import UserFactory from matches.factories import PastMatchFactory, BetFactory, FutureMatchFactory from matches.models import Match, Bet, WRONG_BET_FORMA...
40.46281
109
0.664011
57964349548021949962e674a636d2d4cd7f4b72
5,070
py
Python
generalized_rates/datasets/load_compas.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
generalized_rates/datasets/load_compas.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
generalized_rates/datasets/load_compas.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
37.007299
85
0.714596
d5ed5ed80ab7c9bf39e1cd6a629e68fd4018b45c
1,991
py
Python
azure-mgmt-datafactory/azure/mgmt/datafactory/models/hbase_object_dataset.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/hbase_object_dataset.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/hbase_object_dataset.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "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 ...
42.361702
228
0.69111
3fc4012062df8999ba2c526655d85d6efe6ff627
4,196
py
Python
TIDALDL-PY/tidal_dl/lang/french.py
tahder/Tidal-Media-Downloader
6192be9726fc75fd707517f7a8c0f776f66976ba
[ "Apache-2.0" ]
2
2020-11-01T09:41:14.000Z
2021-12-15T22:51:37.000Z
TIDALDL-PY/tidal_dl/lang/french.py
tahder/Tidal-Media-Downloader
6192be9726fc75fd707517f7a8c0f776f66976ba
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/french.py
tahder/Tidal-Media-Downloader
6192be9726fc75fd707517f7a8c0f776f66976ba
[ "Apache-2.0" ]
1
2020-11-03T10:14:02.000Z
2020-11-03T10:14:02.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : french.py @Time : 2020/09/07 @Author : flamme-demon @Version : 0.2 @Contact : @Desc : ''' class LangFrench(object): SETTING = "RÉGLAGES" VALUE = "VALEUR" SETTING_DOWNLOAD_PATH = "Emplacement des téléchargement...
45.11828
122
0.68756
7614dfef66c7d2c381c366571a6863f7890e5f55
3,022
py
Python
refs/initial_Python_port/covariances.py
avlab/manifolder
9f1aea7a1bd1bafca1dcc6ab32f347f013f9c19d
[ "MIT" ]
1
2020-07-12T22:22:15.000Z
2020-07-12T22:22:15.000Z
refs/initial_Python_port/covariances.py
avlab/manifolder
9f1aea7a1bd1bafca1dcc6ab32f347f013f9c19d
[ "MIT" ]
7
2020-06-24T20:00:46.000Z
2020-07-01T21:15:51.000Z
refs/initial_Python_port/covariances.py
avlab/manifolder
9f1aea7a1bd1bafca1dcc6ab32f347f013f9c19d
[ "MIT" ]
1
2020-06-26T17:50:32.000Z
2020-06-26T17:50:32.000Z
### covariances print('computing local covariances ', end='') # from scipy.linalg import svd import manifolder_helper as mh from numpy.linalg import inv # import numpy # Estimate local covariance matrices # ***************************************************************@ ## Configuration # ncov = 10 # (previous...
32.847826
152
0.577101
0f75a1c016f0fa73d86874e9563897528d750abd
293
py
Python
03-Template-Basics/03-Template-Control-Flow.py
saidulislam/flask-bootcamp-1
590bcac5a242b0f1f1e7540019bc3fc3e109c9b9
[ "Apache-2.0" ]
1
2019-08-07T08:05:32.000Z
2019-08-07T08:05:32.000Z
Flask/03-Template-Basics/03-Template-Control-Flow.py
Sandy1811/demandforecasting
fdb6878d93502773ba8da809c2de1b33c96fb9a0
[ "Apache-2.0" ]
8
2021-02-08T20:32:03.000Z
2022-03-11T23:56:31.000Z
Flask/03-Template-Basics/03-Template-Control-Flow.py
Sandy1811/demandforecasting
fdb6878d93502773ba8da809c2de1b33c96fb9a0
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): puppies = ['Fluffy','Rufus','Spike'] return render_template('03-Template-Control-Flow.html', puppies=puppies) if __name__ == '__main__': app.run(debug=True)
19.533333
59
0.624573
9a94a4799fa69e98763b03be6814cf01e5ae67b7
25,222
py
Python
models/client.py
RichardTZX/FL-Reweighing
63125837ccb86a81088d74a1aa324f5191e094a4
[ "BSD-2-Clause" ]
null
null
null
models/client.py
RichardTZX/FL-Reweighing
63125837ccb86a81088d74a1aa324f5191e094a4
[ "BSD-2-Clause" ]
null
null
null
models/client.py
RichardTZX/FL-Reweighing
63125837ccb86a81088d74a1aa324f5191e094a4
[ "BSD-2-Clause" ]
null
null
null
import random import warnings import timeout_decorator import sys import numpy as np import json from utils.logger import Logger from device import Device from timer import Timer from grad_compress.grad_drop import GDropUpdate from grad_compress.sign_sgd import SignSGDUpdate from comm_effi import StructuredUpdate L ...
48.041905
180
0.577472
0d36e3985a92a90b5c1fe42c799646c1467b96ed
4,909
py
Python
tests/test_sqlalchemy_without_db.py
lucafaggianelli/layabase
90733c6b9efd56051dfce5c3d89bd4e657ce7b3f
[ "MIT" ]
3
2019-12-02T23:29:44.000Z
2019-12-31T00:55:01.000Z
tests/test_sqlalchemy_without_db.py
lucafaggianelli/layabase
90733c6b9efd56051dfce5c3d89bd4e657ce7b3f
[ "MIT" ]
29
2019-12-02T16:12:45.000Z
2022-02-17T16:01:55.000Z
tests/test_sqlalchemy_without_db.py
lucafaggianelli/layabase
90733c6b9efd56051dfce5c3d89bd4e657ce7b3f
[ "MIT" ]
3
2020-01-02T10:58:47.000Z
2022-02-17T10:55:18.000Z
import sqlalchemy import pytest import layabase from layabase.testing import mock_sqlalchemy_health_datetime @pytest.fixture def controller(): class TestTable: __tablename__ = "test" key = sqlalchemy.Column(sqlalchemy.String, primary_key=True) return layabase.CRUDController(TestTable) @py...
37.473282
291
0.662253
ed9688ae2a7376784e869510361d45a5cf1dd8c4
290
py
Python
Codeforces sheet solutions/Sheet 1/S.py
failedconnection/hack_the_fest
494a283f4cc52279487b4a57055225ceea95f4d3
[ "MIT" ]
1
2020-10-01T16:47:59.000Z
2020-10-01T16:47:59.000Z
Codeforces sheet solutions/Sheet 1/S.py
failedconnection/hack_the_fest
494a283f4cc52279487b4a57055225ceea95f4d3
[ "MIT" ]
4
2020-10-01T14:41:07.000Z
2020-10-04T06:08:04.000Z
Codeforces sheet solutions/Sheet 1/S.py
failedconnection/hack_the_fest
494a283f4cc52279487b4a57055225ceea95f4d3
[ "MIT" ]
15
2020-10-01T08:34:34.000Z
2020-10-22T18:25:05.000Z
x,y=input().split() x=float(x) y=float(y) if (x==0 and y==0): print ("Origem") elif (y==0 ): print("Eixo X") elif (x==0): print("Eixo Y") elif (x>0 and y>0): print("Q1") elif (x<0 and y>0): print("Q2") elif (x<0 and y<0): print("Q3") else :print("Q4")
18.125
21
0.493103
d58593dd8c4983a7591a6fe7bb9bbad92fdd2c9f
15,661
py
Python
python/ccxt/async_support/base/exchange.py
bitzlato/ccxt
fe514678d84dfe7c13b7f927707fc0b31bdb6ceb
[ "MIT" ]
null
null
null
python/ccxt/async_support/base/exchange.py
bitzlato/ccxt
fe514678d84dfe7c13b7f927707fc0b31bdb6ceb
[ "MIT" ]
null
null
null
python/ccxt/async_support/base/exchange.py
bitzlato/ccxt
fe514678d84dfe7c13b7f927707fc0b31bdb6ceb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- __version__ = '1.58.6' # ----------------------------------------------------------------------------- import asyncio import concurrent.futures import socket import certifi import aiohttp import ssl import sys im...
43.868347
355
0.618224
1aa45aaaaabace3fd2b3e99b1d5924e8b40b5248
434
py
Python
python-basic-grammer/python-basic/02-python-variables-and-string/type_of_variable.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
python-basic-grammer/python-basic/02-python-variables-and-string/type_of_variable.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
python-basic-grammer/python-basic/02-python-variables-and-string/type_of_variable.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
# 字符串类型 name = "Kim" # 整数类型 age = 28 # 浮点数类型 weight = 143.5 # 布尔型 is_boy = True print(name) print(age) print(weight) print(is_boy) # type函数用于得到变量的数据类型 type_of_name = type(name) type_of_age = type(age) type_of_weight = type(weight) type_of_is_boy = type(is_boy) print(type_of_name) print(type_of_age) print(type_of_wei...
14.466667
29
0.751152
060d8338ac7c4565298ce69c455c6f13e28433dd
1,839
py
Python
kmeans/compile.py
oprecomp/flexfloat-benchmarks
0acb1a53c57901e873ee7ba69e4f2bf9c2fbe348
[ "Apache-2.0" ]
2
2019-02-06T15:34:56.000Z
2020-02-20T23:44:27.000Z
kmeans/compile.py
oprecomp/flexfloat-benchmarks
0acb1a53c57901e873ee7ba69e4f2bf9c2fbe348
[ "Apache-2.0" ]
null
null
null
kmeans/compile.py
oprecomp/flexfloat-benchmarks
0acb1a53c57901e873ee7ba69e4f2bf9c2fbe348
[ "Apache-2.0" ]
null
null
null
import sys import csv import subprocess # Pulp with SmallFloat extensions def set_coefficient_bits(prec): if(prec <= 3): # float8 return 5 elif(prec > 3 and prec <= 8): # float16ext return 8 elif(prec > 8 and prec <= 11): # float16 return 5 elif(prec > 11 ...
36.058824
164
0.568787
8989d97c5fe9cec2c566e970332c640a4c321dd0
1,588
py
Python
api/app/services/serveQrcode.py
JexPY/filemanager-fastapi
da830fe6d9a3d515e0d04e6e690ff366225ec251
[ "MIT" ]
24
2020-09-15T11:59:55.000Z
2022-03-13T19:58:02.000Z
api/app/services/serveQrcode.py
JexPY/filemanager-fastapi
da830fe6d9a3d515e0d04e6e690ff366225ec251
[ "MIT" ]
null
null
null
api/app/services/serveQrcode.py
JexPY/filemanager-fastapi
da830fe6d9a3d515e0d04e6e690ff366225ec251
[ "MIT" ]
5
2020-10-11T08:41:29.000Z
2022-03-10T07:23:55.000Z
import os import copy import _thread from fastapi import HTTPException,status from .helpers.alena import local_savings from .images.generateQr import qr_code_image from .storage.googleCloud import upload_image_file_to_google_storage from .storage.s3 import upload_image_file_to_s3_storage def handle_qr_code(text = str...
51.225806
184
0.731108
f0ea6c5944d61f5ed47e5caa708ef2cde38647d1
6,057
py
Python
CZUR/head_data_preprocess/split_hollywood_train_val.py
lhwcv/mmdet
eaa05547305441539ba49a08d39bf364c033e9f1
[ "Apache-2.0" ]
1
2020-12-14T05:32:10.000Z
2020-12-14T05:32:10.000Z
CZUR/head_data_preprocess/split_hollywood_train_val.py
lhwcv/mmdet
eaa05547305441539ba49a08d39bf364c033e9f1
[ "Apache-2.0" ]
null
null
null
CZUR/head_data_preprocess/split_hollywood_train_val.py
lhwcv/mmdet
eaa05547305441539ba49a08d39bf364c033e9f1
[ "Apache-2.0" ]
null
null
null
import os import argparse import glob import tqdm import xml.etree.ElementTree as ET from CZUR.head_data_preprocess.quantize_bbox_hollywood_head import quantize_head_anno CLASS_NAMES=[ 'head' ] #MIN_SIZE_RATIO = [1/10.0 , 1/ 10.0] MIN_SIZE_RATIO = [0.2 , 0.2] MAX_HEAD_N = 4 def get_args(): ...
35.421053
91
0.511309
ee55f5e3467fb4f98fbb57fe11c424259ed56963
886
py
Python
country_date&time.py
Adel-Charef/scripts
0d80784f74e0e4cb6d38c23d50ba96cf036a3692
[ "MIT" ]
null
null
null
country_date&time.py
Adel-Charef/scripts
0d80784f74e0e4cb6d38c23d50ba96cf036a3692
[ "MIT" ]
null
null
null
country_date&time.py
Adel-Charef/scripts
0d80784f74e0e4cb6d38c23d50ba96cf036a3692
[ "MIT" ]
null
null
null
from datetime import datetime import pytz color = { 'RED': '\033[1;91m', 'UNDERLINE_PURPLE': '\033[4;34m', 'GREEN': '\033[1;92m', 'YELLOW': '\033[1;33m', 'CYAN': '\033[0;36m', 'PURPLE': '\033[0;34m', 'MAGENTA': '\033[0;35m', 'DEFAULT': '\033[0m', 'TWITTER_BLUE': '\033[38;5;33m', } c...
34.076923
215
0.638826
45fa7cd96afab58bf6c542cd659223859c844cce
626
py
Python
bubble_sort.py
dlenhart/algorithms
23649abfb5750fbf71ef28259534e9840761342b
[ "MIT" ]
null
null
null
bubble_sort.py
dlenhart/algorithms
23649abfb5750fbf71ef28259534e9840761342b
[ "MIT" ]
null
null
null
bubble_sort.py
dlenhart/algorithms
23649abfb5750fbf71ef28259534e9840761342b
[ "MIT" ]
null
null
null
# Author: Drew D. Lenhart # # Desc: Sorting algorithm, repeatedly swapping adjacent elements if they # are in the wrong order ( repeatedly moves the higher value to the # right untill all numbers are in sorted order. ) # # Date: Aug 25th 2021 # # def bubble_sort(list): swapped = True ...
25.04
77
0.565495
9b0a0e7ccd9fbc5cfa860ad9d21af3574784d7b9
1,330
py
Python
ato/ia_rep/urls.py
jefke-glider/gliding
22ebc03879be7d62ec64a0990cd4d3e1b263409b
[ "MIT" ]
null
null
null
ato/ia_rep/urls.py
jefke-glider/gliding
22ebc03879be7d62ec64a0990cd4d3e1b263409b
[ "MIT" ]
4
2017-05-03T15:10:07.000Z
2017-05-05T13:41:18.000Z
ato/ia_rep/urls.py
jefke-glider/gliding
22ebc03879be7d62ec64a0990cd4d3e1b263409b
[ "MIT" ]
null
null
null
"""ia_rep URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
39.117647
95
0.718797
050557669bf9df5e0fd199d89b5e3904a413f15f
42,086
py
Python
mmnrm/models.py
T-Almeida/mmnrm
f67441a4e2cb0a8335b5e96f3ea9ea0a0eba080a
[ "MIT" ]
1
2021-04-19T10:10:43.000Z
2021-04-19T10:10:43.000Z
mmnrm/models.py
T-Almeida/mmnrm
f67441a4e2cb0a8335b5e96f3ea9ea0a0eba080a
[ "MIT" ]
1
2020-09-30T11:34:01.000Z
2020-09-30T11:34:01.000Z
mmnrm/models.py
T-Almeida/mmnrm
f67441a4e2cb0a8335b5e96f3ea9ea0a0eba080a
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import backend as K from mmnrm.layers.interaction import SemanticInteractions, ExactInteractions from mmnrm.layers.local_relevance import MultipleNgramConvs, MaskedSoftmax from mmnrm.layers.transformations import * from mmnrm.layers.aggregation import * def build_PACRR(ma...
40.623552
133
0.578102
52dd20adf2be63c6e164f907551674b2f8190f86
1,003
py
Python
setup.py
HolmesNL/lir
f8a2a66c4bb7b1f1687c5bdca3d39c4b712f7ea4
[ "Apache-2.0" ]
4
2020-04-27T11:31:41.000Z
2020-12-16T12:33:42.000Z
setup.py
HolmesNL/lir
f8a2a66c4bb7b1f1687c5bdca3d39c4b712f7ea4
[ "Apache-2.0" ]
6
2020-03-23T18:01:03.000Z
2020-07-28T09:00:15.000Z
setup.py
HolmesNL/lir
f8a2a66c4bb7b1f1687c5bdca3d39c4b712f7ea4
[ "Apache-2.0" ]
1
2020-10-02T13:46:53.000Z
2020-10-02T13:46:53.000Z
from setuptools import setup, find_packages with open("README.md") as f: long_description = f.read() setup( name="lir", version="0.1.12", description="scripts for calculating likelihood ratios", long_description=long_description, long_description_content_type="text/markdown", url="https://g...
35.821429
78
0.652044
bb3de622271b59defbcb7cb7962426ef261c1839
340
py
Python
Tuple.py
satz2000/Python-practiced-notes
30aac786bc75f85ca841a25aa82c9f3d0f4721b2
[ "Apache-2.0" ]
null
null
null
Tuple.py
satz2000/Python-practiced-notes
30aac786bc75f85ca841a25aa82c9f3d0f4721b2
[ "Apache-2.0" ]
null
null
null
Tuple.py
satz2000/Python-practiced-notes
30aac786bc75f85ca841a25aa82c9f3d0f4721b2
[ "Apache-2.0" ]
null
null
null
""" # What is Tuple? Tuple is same as list, but it is immutable (unchangeable) () is represented as Tuple """ nums = (12, 23, 5, 32, 19) # There are 2 methods in tuple print(nums.count(19)) # count the value, How many times its present in it print(nums.index(5)) # Finds the index valu...
26.153846
80
0.629412
e121e0bd3126ab74672e98ffaf528aa1ca8d61a1
2,135
py
Python
lib/smisk/test/mvc/test_matter.py
rsms/smisk
f12a5606dfff49a15fa91448ff36652d60add4c0
[ "MIT" ]
4
2015-11-05T11:51:12.000Z
2020-12-30T18:55:58.000Z
lib/smisk/test/mvc/test_matter.py
rsms/smisk
f12a5606dfff49a15fa91448ff36652d60add4c0
[ "MIT" ]
5
2021-11-16T17:21:51.000Z
2021-11-16T17:22:09.000Z
lib/smisk/test/mvc/test_matter.py
rsms/smisk
f12a5606dfff49a15fa91448ff36652d60add4c0
[ "MIT" ]
null
null
null
# encoding: utf-8 '''MVC test matter ''' from smisk.mvc import * # A controller tree class root(Controller): def func_on_root(self): return '/func_on_root' @expose(delegates=True) def delegating_func_on_root(self): return '/delegating_func_on_root' def __call__(self, *va, **kw): return '/' def one_named_arg...
31.397059
92
0.712412
9677e94a394b30ba2eeb317974a669d2f0f03d86
10,999
py
Python
froi/gui/component/unused/labeldialog.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
13
2016-02-12T05:10:23.000Z
2021-01-13T01:40:12.000Z
froi/gui/component/unused/labeldialog.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
14
2015-05-04T05:56:45.000Z
2021-01-24T11:49:13.000Z
froi/gui/component/unused/labeldialog.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
8
2016-03-07T06:29:51.000Z
2017-10-30T13:59:27.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from PyQt4.QtCore import * from PyQt4.QtGui import * from drawsettings import DrawSettings class LabelDialog(QDialog, DrawSettings): """ A dialog window for label selection. """ color_c...
33.431611
86
0.603509
985681cee8f196579fceadbf8db3e58a3ed10d6b
469
py
Python
tests/test_prebuilt.py
GlobalMaksimum/sadedegel
8e28dbeabc3bf0d6f2222089ac5e3a849f9d3a6b
[ "MIT" ]
100
2020-07-06T05:50:49.000Z
2022-03-21T21:56:55.000Z
tests/test_prebuilt.py
LyotardPostmodernizm/sadedegel
8e28dbeabc3bf0d6f2222089ac5e3a849f9d3a6b
[ "MIT" ]
244
2020-07-06T06:31:01.000Z
2022-02-26T10:40:17.000Z
tests/test_prebuilt.py
LyotardPostmodernizm/sadedegel
8e28dbeabc3bf0d6f2222089ac5e3a849f9d3a6b
[ "MIT" ]
23
2020-07-27T16:32:48.000Z
2022-03-18T11:13:07.000Z
# flake8: noqa from pathlib import Path # pylint: disable=unused-import from os.path import expanduser # pylint: disable=unused-import import pytest from .context import tweet_sentiment @pytest.mark.skip() @pytest.mark.skipif('not Path(expanduser("~/.sadedegel_data")).exists()') def test_cv(): tweet_sentiment.c...
26.055556
73
0.739872
482ab7a89e2cddf92847911ee667cf0bd2a111fa
2,615
py
Python
get_images.py
kvswim/vision_proj_2017
9b791e77ab15a3a69637ee50eb1b65cc9f2a2156
[ "MIT" ]
null
null
null
get_images.py
kvswim/vision_proj_2017
9b791e77ab15a3a69637ee50eb1b65cc9f2a2156
[ "MIT" ]
null
null
null
get_images.py
kvswim/vision_proj_2017
9b791e77ab15a3a69637ee50eb1b65cc9f2a2156
[ "MIT" ]
null
null
null
#Kyle Verdeyen #Computer Vision 600.431 Final Project #get_images.py: captures images for use in training known user database #to be run on a Raspberry Pi with camera device, not for PC use #point rpi at subject and run this, will capture approximately 1000 images and save to ./subjectimages #usage: python get_images.p...
41.507937
126
0.702103
e744aa178d0253de74edefebb12e1886964c4ae6
31,086
py
Python
owllook/config/rules.py
cklx0719/owllook
263cbc5fc40478da140ec0a54684205f92b5403a
[ "Apache-2.0" ]
2,344
2017-05-05T00:16:05.000Z
2022-03-31T15:46:06.000Z
owllook/config/rules.py
cklx0719/owllook
263cbc5fc40478da140ec0a54684205f92b5403a
[ "Apache-2.0" ]
91
2017-05-27T12:43:14.000Z
2022-03-20T04:51:35.000Z
owllook/config/rules.py
cklx0719/owllook
263cbc5fc40478da140ec0a54684205f92b5403a
[ "Apache-2.0" ]
811
2017-05-05T03:01:25.000Z
2022-03-22T02:09:37.000Z
#!/usr/bin/env python from collections import namedtuple ####################################### 规则 ########################################### # DOMAIN BLACK_DOMAIN = ['www.17k.com', 'mm.17k.com', 'www.xs8.cn', 'www.zongheng.com', 'yunqi.qq.com', 'chuangshi.qq.com', 'book.qidian.com', 'www.soduso.co...
46.258929
120
0.540533
25c84e4f06773911f2cbd28c87c4c9f60b952cae
61
py
Python
Test/import_test.py
Spiderz11/ACLTracker
fe833ac4bfebf94c8f4f212d849d26f41ebba9f7
[ "MIT" ]
1
2016-09-01T02:37:27.000Z
2016-09-01T02:37:27.000Z
Test/import_test.py
Spiderz11/ACLTracker
fe833ac4bfebf94c8f4f212d849d26f41ebba9f7
[ "MIT" ]
null
null
null
Test/import_test.py
Spiderz11/ACLTracker
fe833ac4bfebf94c8f4f212d849d26f41ebba9f7
[ "MIT" ]
null
null
null
import sys from acltracker import * print('Passed') sys.mod
10.166667
24
0.754098
257011af524dedb7be6a8a5e4bba6b454cd4146a
1,370
py
Python
Fig3-cmm/cmmlib/inout/off.py
YuePengUSTC/AADR
ed19730fc56f5d019089dbfd7544eeb35ba9c9a2
[ "BSD-3-Clause" ]
7
2020-07-01T09:30:18.000Z
2022-01-18T04:19:50.000Z
Fig3-cmm/cmmlib/inout/off.py
YuePengUSTC/AADR
ed19730fc56f5d019089dbfd7544eeb35ba9c9a2
[ "BSD-3-Clause" ]
null
null
null
Fig3-cmm/cmmlib/inout/off.py
YuePengUSTC/AADR
ed19730fc56f5d019089dbfd7544eeb35ba9c9a2
[ "BSD-3-Clause" ]
1
2021-01-19T03:09:38.000Z
2021-01-19T03:09:38.000Z
import numpy as np from io import StringIO def save_mesh(filename, vertices=None, faces=None): if vertices is None: vertices = [] if faces is None: faces = [] with open(filename, 'w') as f: f.write("OFF\n%d %d 0\n" % (len(vertices), len(faces))) if len(vertices) > 1: ...
34.25
84
0.554015
8c047fad2474a52e691a27d18bcd68866e48fdc3
6,396
py
Python
src/hmm_diabimmune.py
aametwally/FoodAllergyPredictor
2ce44590670f579434480a9286d05e002a53e0ba
[ "MIT" ]
8
2019-04-30T03:56:47.000Z
2021-02-15T04:36:32.000Z
src/hmm_diabimmune.py
aametwally/FoodAllergyPredictor
2ce44590670f579434480a9286d05e002a53e0ba
[ "MIT" ]
null
null
null
src/hmm_diabimmune.py
aametwally/FoodAllergyPredictor
2ce44590670f579434480a9286d05e002a53e0ba
[ "MIT" ]
2
2020-01-01T15:21:59.000Z
2021-06-17T01:57:10.000Z
#!/usr/bin/env python -W ignore::DeprecationWarning def warn(*args, **kwargs): pass import warnings warnings.warn = warn # Third-party libraries import numpy as np import os import sys import struct import argparse from array import array as pyarray from seqlearn.hmm import MultinomialHMM from seql...
33.3125
169
0.635397
aeca2829df54ee11711b00c5bdcc58b723dbff73
6,371
py
Python
dummy_data/graphsage/model.py
SaeelPai/GraphVizards2
f734991a40d30ff6cb89cc42e01b3180e001dc2e
[ "MIT" ]
null
null
null
dummy_data/graphsage/model.py
SaeelPai/GraphVizards2
f734991a40d30ff6cb89cc42e01b3180e001dc2e
[ "MIT" ]
null
null
null
dummy_data/graphsage/model.py
SaeelPai/GraphVizards2
f734991a40d30ff6cb89cc42e01b3180e001dc2e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import init from torch.autograd import Variable import numpy as np import time import random from sklearn.metrics import f1_score from collections import defaultdict from graphsage.encoders import Encoder from graphsage.aggregators import MeanAggregator """ Simple sup...
35.005495
106
0.636635
ab9b2b659cf8ed87373e260f33182f3e23ba36f8
18,840
py
Python
mkt/files/tests/test_views.py
spasovski/zamboni
c7f4714029e3b2dc918ddfc2103f8e051193c14d
[ "BSD-3-Clause" ]
1
2021-07-29T00:51:09.000Z
2021-07-29T00:51:09.000Z
mkt/files/tests/test_views.py
imclab/olympia
35bc9c484e384bafab520ca8b5d5b0f8da5b62c0
[ "BSD-3-Clause" ]
null
null
null
mkt/files/tests/test_views.py
imclab/olympia
35bc9c484e384bafab520ca8b5d5b0f8da5b62c0
[ "BSD-3-Clause" ]
null
null
null
import json import os import shutil import urlparse from django.conf import settings from django.core.cache import cache from django.utils.http import http_date from mock import patch from nose import SkipTest from nose.tools import eq_ from pyquery import PyQuery as pq import amo import amo.tests from amo.utils imp...
36.091954
79
0.618312
12155082692473c88c0892a1f8213dfd73e85b32
7,296
py
Python
opentelemetry-sdk/tests/context/propagation/test_b3_format.py
Jamim/opentelemetry-python
6d1cd1f8f826bd7f36baaee949ff66f3c8007243
[ "Apache-2.0" ]
1
2020-01-15T06:58:27.000Z
2020-01-15T06:58:27.000Z
opentelemetry-sdk/tests/context/propagation/test_b3_format.py
willingc/opentelemetry-python
c24b3b5032cd27dd4912348e633abcd2bb48d53a
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/tests/context/propagation/test_b3_format.py
willingc/opentelemetry-python
c24b3b5032cd27dd4912348e633abcd2bb48d53a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
39.225806
75
0.645833
b6c67ed9e7213a27b6a611c1fb51b0c21b2bca3c
5,344
py
Python
code/data_wrangling.py
dirac-institute/TESSHacks
a6b08102cc30f61e48394bab391001a1cc571046
[ "MIT" ]
1
2018-12-06T19:29:53.000Z
2018-12-06T19:29:53.000Z
code/data_wrangling.py
dirac-institute/TESSHacks
a6b08102cc30f61e48394bab391001a1cc571046
[ "MIT" ]
null
null
null
code/data_wrangling.py
dirac-institute/TESSHacks
a6b08102cc30f61e48394bab391001a1cc571046
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import glob import astropy.io.fits as fits def read_tess_info(datadir): """ Traverse the directory structure of TESS light curve files and get out some useful information, like the TESS object ID, the subdirectory, file name and cadence. Parameter...
31.809524
82
0.622942
d4ad464bcfce2d9a45fa5fb431148c2eb7a99e24
2,448
py
Python
backend/voting/tests/test_schema.py
patrick91/pycon
9d7e15f540adcf0eaceb61fdbf67206d6aef73ec
[ "MIT" ]
2
2017-07-18T21:51:25.000Z
2017-12-23T11:08:39.000Z
backend/voting/tests/test_schema.py
patrick91/pycon
9d7e15f540adcf0eaceb61fdbf67206d6aef73ec
[ "MIT" ]
23
2017-07-18T20:22:38.000Z
2018-01-05T05:45:15.000Z
backend/voting/tests/test_schema.py
patrick91/pycon
9d7e15f540adcf0eaceb61fdbf67206d6aef73ec
[ "MIT" ]
2
2017-07-18T21:27:33.000Z
2017-07-18T22:07:03.000Z
from pytest import mark @mark.django_db def test_get_logged_user_vote_on_a_submission( graphql_client, user, vote_factory, settings, requests_mock ): vote = vote_factory(user_id=user.id, value=1) conference = vote.submission.conference requests_mock.post( f"{settings.PRETIX_API}organizers/{co...
27.505618
141
0.609069
11d11ab3a01afb04daee15180e6ad7df6279911c
3,686
py
Python
airflow/kubernetes/kube_client.py
codejunction/airflow
04614841c77154cae64df175252a3bcf64d4e6ea
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-11-18T22:51:10.000Z
2019-11-18T22:51:10.000Z
airflow/kubernetes/kube_client.py
codejunction/airflow
04614841c77154cae64df175252a3bcf64d4e6ea
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2018-03-23T10:16:45.000Z
2018-09-09T11:47:07.000Z
airflow/kubernetes/kube_client.py
codejunction/airflow
04614841c77154cae64df175252a3bcf64d4e6ea
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
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...
38.395833
97
0.698589
c428eacd1e7bfc6bd588dbe783564cc3a1d7417f
26,889
py
Python
UQLibrary/gsa.py
HarleyHanes/UQLibrary-CourseProject
d66b73b12a68f144be468e6cda109ca0e12a7f9c
[ "MIT" ]
null
null
null
UQLibrary/gsa.py
HarleyHanes/UQLibrary-CourseProject
d66b73b12a68f144be468e6cda109ca0e12a7f9c
[ "MIT" ]
null
null
null
UQLibrary/gsa.py
HarleyHanes/UQLibrary-CourseProject
d66b73b12a68f144be468e6cda109ca0e12a7f9c
[ "MIT" ]
2
2022-01-25T18:03:53.000Z
2022-01-25T18:05:21.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jan 18 14:03:35 2022 @author: USER """ #3rd party Modules import numpy as np #import sys import warnings from scipy.stats import qmc import scipy.stats as sct import mpi4py.MPI as MPI class GsaOptions: def __init__(self, run = True, run_sobol=True, run_morris=True, n_s...
41.051908
125
0.597791
c8f01d179cf66c3677d8b84350596fab5d895f50
13,991
py
Python
conans/client/rest/rest_client_v1.py
chris-se/conan
812c8ec8185e24b2bc41fb6e855d35c925526670
[ "MIT" ]
null
null
null
conans/client/rest/rest_client_v1.py
chris-se/conan
812c8ec8185e24b2bc41fb6e855d35c925526670
[ "MIT" ]
null
null
null
conans/client/rest/rest_client_v1.py
chris-se/conan
812c8ec8185e24b2bc41fb6e855d35c925526670
[ "MIT" ]
null
null
null
import os import time import traceback from six.moves.urllib.parse import parse_qs, urljoin, urlparse, urlsplit from conans.client.remote_manager import check_compressed_files from conans.client.rest.client_routes import ClientV1Router from conans.client.rest.rest_client_common import RestCommonMethods, handle_return...
43.996855
100
0.638839
31861e0bb469aba8441b4ba66af3c3dc36dd3764
1,499
py
Python
profiles_api/serializers.py
makimovsky/profiles-rest-api
488d9d709e8e821350dd57b317e7b9a4e91cfe6d
[ "MIT" ]
null
null
null
profiles_api/serializers.py
makimovsky/profiles-rest-api
488d9d709e8e821350dd57b317e7b9a4e91cfe6d
[ "MIT" ]
null
null
null
profiles_api/serializers.py
makimovsky/profiles-rest-api
488d9d709e8e821350dd57b317e7b9a4e91cfe6d
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializers a user profile...
28.826923
68
0.620414
651541cacd9a3fa21ac8a451224aa34b7da28c73
85,073
py
Python
autosar/behavior.py
Warchant/autosar
beaae0205345a6d695982a670d621ace4e4c6aab
[ "MIT" ]
199
2016-07-27T17:14:43.000Z
2022-03-30T12:28:02.000Z
autosar/behavior.py
Warchant/autosar
beaae0205345a6d695982a670d621ace4e4c6aab
[ "MIT" ]
50
2017-10-10T08:19:21.000Z
2022-03-27T18:43:29.000Z
autosar/behavior.py
Warchant/autosar
beaae0205345a6d695982a670d621ace4e4c6aab
[ "MIT" ]
125
2016-07-27T17:16:08.000Z
2022-03-30T17:03:28.000Z
import copy import autosar.component import autosar.portinterface import autosar.base from autosar.element import Element, DataElement import collections ###################################### Events ########################################### class Event(Element): def __init__(self,name,startOnEventRef...
46.361308
217
0.64936
77f4aa392774eaf05a823f7c86050cfbd234e463
4,162
py
Python
pywikibot/families/wikisource_family.py
5j9/pywikibot-core
e4af37f1034e63e7027278b81c4c78e80ab4b370
[ "MIT" ]
null
null
null
pywikibot/families/wikisource_family.py
5j9/pywikibot-core
e4af37f1034e63e7027278b81c4c78e80ab4b370
[ "MIT" ]
null
null
null
pywikibot/families/wikisource_family.py
5j9/pywikibot-core
e4af37f1034e63e7027278b81c4c78e80ab4b370
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Family module for Wikisource.""" # # (C) Pywikibot team, 2004-2019 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, division, unicode_literals from pywikibot import family from pywikibot.tools import classproperty # The Wikimedia family that is ...
29.728571
90
0.451946
236953c1621726b582d2f00802ac072dc27b6181
11,489
py
Python
tempest/cmd/run.py
HybridF5/tempest-jacket
7066346b3de76e024df6f1230b8a829b53840d40
[ "Apache-2.0" ]
null
null
null
tempest/cmd/run.py
HybridF5/tempest-jacket
7066346b3de76e024df6f1230b8a829b53840d40
[ "Apache-2.0" ]
null
null
null
tempest/cmd/run.py
HybridF5/tempest-jacket
7066346b3de76e024df6f1230b8a829b53840d40
[ "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 # distrib...
41.476534
79
0.612499
6a4bcc8d86878d26a3a90c5375675a6f371d0851
7,084
py
Python
vtkPointCloud.py
nakawang/py_Pointcloud_viewer_example
31918ba354ce99d9c86402ac112d8c08a570bb1c
[ "Apache-2.0" ]
null
null
null
vtkPointCloud.py
nakawang/py_Pointcloud_viewer_example
31918ba354ce99d9c86402ac112d8c08a570bb1c
[ "Apache-2.0" ]
null
null
null
vtkPointCloud.py
nakawang/py_Pointcloud_viewer_example
31918ba354ce99d9c86402ac112d8c08a570bb1c
[ "Apache-2.0" ]
null
null
null
import vtk,sys import numpy as np from numpy import random from vtk.util import numpy_support class VtkPointCloud: def __init__(self, zMin=-100.0, zMax=100.0, maxNumPoints=5e9): self.maxNumPoints = maxNumPoints self.vtkPolyData = vtk.vtkPolyData() self.clearPoints() mapper =...
40.712644
71
0.641022
0e1faa26329c43e0a7ef6507d29cd11d340a5972
602
py
Python
setup.py
gytdau/pto-thingy
d7c0ef109591d2d0c155f8f728ffbbd9123cb863
[ "MIT" ]
1
2020-05-02T16:41:38.000Z
2020-05-02T16:41:38.000Z
setup.py
gytdau/holiday-thingy
d7c0ef109591d2d0c155f8f728ffbbd9123cb863
[ "MIT" ]
null
null
null
setup.py
gytdau/holiday-thingy
d7c0ef109591d2d0c155f8f728ffbbd9123cb863
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup file for holiday_bot. This file was generated with PyScaffold 2.5.7, a tool that easily puts up a scaffold for your new Python project. Learn more under: http://pyscaffold.readthedocs.org/ """ import sys from setuptools import setup def setup_p...
26.173913
73
0.679402
7ca2f46a5690cee08e979481846ca4f405aedf2e
3,240
py
Python
ml-agents/mlagents/trainers/components/reward_signals/reward_signal.py
peitaozhao/ml-agents
f344f10d723120c31c992a57ca8bd1b9f0fa836a
[ "Apache-2.0" ]
1
2020-01-29T22:26:49.000Z
2020-01-29T22:26:49.000Z
ml-agents/mlagents/trainers/components/reward_signals/reward_signal.py
isehd/ml-agents
d11229820f3d7f090341c76edea7bad83fc0eeec
[ "Apache-2.0" ]
1
2020-04-27T01:52:49.000Z
2020-04-27T01:52:49.000Z
ml-agents/mlagents/trainers/components/reward_signals/reward_signal.py
isehd/ml-agents
d11229820f3d7f090341c76edea7bad83fc0eeec
[ "Apache-2.0" ]
1
2020-04-26T00:17:25.000Z
2020-04-26T00:17:25.000Z
import logging from typing import Any, Dict, List from collections import namedtuple import numpy as np import abc import tensorflow as tf from mlagents.envs.brain import BrainInfo from mlagents.trainers.trainer import UnityTrainerException from mlagents.trainers.tf_policy import TFPolicy from mlagents.trainers.buffe...
40.5
119
0.662037
9e8ca99dece1a3dea8aae3b530f640fe35a9f462
472
py
Python
mla/tests/test_random_forest.py
qianlv/MachineLearningAlgorithm
c66d37bc9c0c1bebf97cdc142213b96cb6ceb989
[ "MIT" ]
null
null
null
mla/tests/test_random_forest.py
qianlv/MachineLearningAlgorithm
c66d37bc9c0c1bebf97cdc142213b96cb6ceb989
[ "MIT" ]
null
null
null
mla/tests/test_random_forest.py
qianlv/MachineLearningAlgorithm
c66d37bc9c0c1bebf97cdc142213b96cb6ceb989
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sklearn import datasets from mla.ensemble import RandomForest from mla.ensemble import DecisionTreeClassifier from mla.base import plot_decision_bounary def test_random_forest(): iris = datasets.load_iris() model = RandomForest( DecisionTreeClassifier, model_params=(None, ...
29.5
74
0.71822
c1ab07b73b8278c0dac5c257a0c8dbe23fe304ef
331
py
Python
September 2020/05-Functions-Advanced/Exercises/04-Negative-vs-Positive.py
eclipse-ib/Software-University-Professional-Advanced-Module
636385f9e5521840f680644824d725d074b93c9a
[ "MIT" ]
null
null
null
September 2020/05-Functions-Advanced/Exercises/04-Negative-vs-Positive.py
eclipse-ib/Software-University-Professional-Advanced-Module
636385f9e5521840f680644824d725d074b93c9a
[ "MIT" ]
null
null
null
September 2020/05-Functions-Advanced/Exercises/04-Negative-vs-Positive.py
eclipse-ib/Software-University-Professional-Advanced-Module
636385f9e5521840f680644824d725d074b93c9a
[ "MIT" ]
null
null
null
numbers = [int(i) for i in input().split()] negative = sum(filter(lambda x: x < 0, numbers)) positive = sum(filter(lambda x: x >= 0, numbers)) print(f"{negative}\n{positive}") if abs(negative) > positive: print(f"The negatives are stronger than the positives") else: print(f"The positives are stronger than the ...
36.777778
59
0.697885
ea212ee19ec0d8da4d891bfb4948533b40096438
1,424
py
Python
gridpath/objective/system/reserve_violation_penalties/spinning_reserves.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
gridpath/objective/system/reserve_violation_penalties/spinning_reserves.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
gridpath/objective/system/reserve_violation_penalties/spinning_reserves.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.956522
74
0.734551
6e723a1dbf82e18f51eff58dac46f9b0fe8f40a7
187
py
Python
Scripts/pip-script.py
alvin-leong/real-python-test
b23671f9b8d9fc25e79f31305fe40942f078898b
[ "PSF-2.0" ]
null
null
null
Scripts/pip-script.py
alvin-leong/real-python-test
b23671f9b8d9fc25e79f31305fe40942f078898b
[ "PSF-2.0" ]
null
null
null
Scripts/pip-script.py
alvin-leong/real-python-test
b23671f9b8d9fc25e79f31305fe40942f078898b
[ "PSF-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
17
69
0.572193
434e97f7ab24857225177625755b3e88b6d0a526
8,590
py
Python
copy/routes.py
sunilswain/Raspberry
54193a3ba50341ff627d88f8c66c69bf6834b7e6
[ "MIT" ]
2
2021-05-24T06:30:15.000Z
2021-07-28T18:01:17.000Z
copy/routes.py
sunilswain/Raspberry
54193a3ba50341ff627d88f8c66c69bf6834b7e6
[ "MIT" ]
null
null
null
copy/routes.py
sunilswain/Raspberry
54193a3ba50341ff627d88f8c66c69bf6834b7e6
[ "MIT" ]
null
null
null
import os, secrets from PIL import Image from flask import render_template,url_for, flash , redirect, request, abort from flaskblog import app, db, bcrypt,mail from flaskblog.forms import( ResistrationForm , LogInForm, UpdateAccountForm, PostForm, RequestResetForm, ResetPasswordForm) ...
40.904762
117
0.651804
32aab2d5992ef7dc83cb381cc8d824c43e7efa0f
2,901
py
Python
pycn_lite/lib/suite/ccnx2015_enc.py
cn-uofbasel/pycn-lite
2c2bdbe76b60cd36ebb1f1b51d72cbde553b9351
[ "BSD-3-Clause" ]
6
2018-02-13T13:49:15.000Z
2020-04-17T22:07:05.000Z
pycn_lite/lib/suite/ccnx2015_enc.py
cn-uofbasel/pycn-lite
2c2bdbe76b60cd36ebb1f1b51d72cbde553b9351
[ "BSD-3-Clause" ]
null
null
null
pycn_lite/lib/suite/ccnx2015_enc.py
cn-uofbasel/pycn-lite
2c2bdbe76b60cd36ebb1f1b51d72cbde553b9351
[ "BSD-3-Clause" ]
2
2020-01-10T05:03:23.000Z
2020-02-11T01:39:53.000Z
# pycn_lite/lib/suite/ccnx2015.py # (c) 2018-02-01 <christian.tschudin@unibas.ch> # encoder for CCNX packets # this module is not needed for forwarding and repo, saves memory for ESP8266 try: from uhashlib import sha256 import ustruct as struct except: from hashlib import sha256 import struct impo...
29.907216
79
0.606343
5235e10bcd2685997a08a1cd238a57f3a3152cfe
3,799
py
Python
pypy/interpreter/test/test_exceptcomp.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/interpreter/test/test_exceptcomp.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/interpreter/test/test_exceptcomp.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
"""Test comparisons of Exceptions in except clauses. New for PyPy - Could be incorporated into CPython regression tests. """ class AppTestExceptionComp: ### XXX - String exceptions depreciated? ## def test_string(self): ## string = "string" ## try: ## raise string ## except string...
29
80
0.549618
5c5ae4bc8e1abbf941bf140312e3c51186462645
605
py
Python
main.py
enigma10245/discordpy-startup
2f139f521f8ffb36d4c3c7a962bed6f1869eb78c
[ "MIT" ]
null
null
null
main.py
enigma10245/discordpy-startup
2f139f521f8ffb36d4c3c7a962bed6f1869eb78c
[ "MIT" ]
null
null
null
main.py
enigma10245/discordpy-startup
2f139f521f8ffb36d4c3c7a962bed6f1869eb78c
[ "MIT" ]
null
null
null
import discord client = discord.Client() @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(message): # 「おはよう」で始まるか調べる if message.content.startswith("おはよう"): # 送り主がBotだった場合反応したくないので...
26.304348
73
0.654545
3be80da4c38fc3e590b84d25be5177010290f8a9
675
py
Python
h2o-bindings/bin/custom/R/gen_generic.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2
2020-09-23T14:23:55.000Z
2020-09-23T19:26:30.000Z
h2o-bindings/bin/custom/R/gen_generic.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2021-04-06T13:07:04.000Z
2021-04-06T13:07:04.000Z
h2o-bindings/bin/custom/R/gen_generic.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2021-09-09T03:47:11.000Z
2021-09-09T03:47:11.000Z
extensions = dict( required_params=[], # empty to override defaults in gen_defaults validate_required_params=""" # Required args: either model_key or path if (is.null(model_key) && is.null(path)) stop("argument 'model_key' or 'path' must be provided") """, set_required_params="", ) doc = dict( preamb...
28.125
96
0.70963
652288cad4a32557b51dea4e4b93eebd722ba27a
1,030
py
Python
courses/admin.py
melodyPereira05/EdZone
6180fa4b58d43bcaa4e3c7a7518ce87bc7ce8aaf
[ "MIT" ]
null
null
null
courses/admin.py
melodyPereira05/EdZone
6180fa4b58d43bcaa4e3c7a7518ce87bc7ce8aaf
[ "MIT" ]
null
null
null
courses/admin.py
melodyPereira05/EdZone
6180fa4b58d43bcaa4e3c7a7518ce87bc7ce8aaf
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Subject, Course, Module,Wishlist,Contact @admin.register(Subject) class SubjectAdmin(admin.ModelAdmin): list_display = ['title', 'slug'] prepopulated_fields = {'slug': ('title',)} class ModuleInline(admin.StackedInline): model = Mo...
24.52381
60
0.653398
6e1cc169845c0d95ca67f3f19455dee9d7760f95
87,991
py
Python
nilearn/plotting/displays.py
lemiceterieux/nilearn
bb3c9bf0aaf82ae99a5c425d17ce4bd174ec7056
[ "BSD-2-Clause" ]
null
null
null
nilearn/plotting/displays.py
lemiceterieux/nilearn
bb3c9bf0aaf82ae99a5c425d17ce4bd174ec7056
[ "BSD-2-Clause" ]
null
null
null
nilearn/plotting/displays.py
lemiceterieux/nilearn
bb3c9bf0aaf82ae99a5c425d17ce4bd174ec7056
[ "BSD-2-Clause" ]
null
null
null
""" The Slicer classes. The main purpose of these classes is to have auto adjust of axes size to the data with different layout of cuts. """ import collections.abc import numbers from distutils.version import LooseVersion import matplotlib import matplotlib.pyplot as plt import numpy as np import warnings from matpl...
37.347623
101
0.549965
71f1e5ce9af7a05b5bdb4cfdc322061724be5db4
5,482
py
Python
python/GafferUI/NodeMenu.py
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferUI/NodeMenu.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/NodeMenu.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
35.830065
152
0.718898
aa31d84de1bcf21e1c9dc6d3060b7cb447b0ce5e
178
py
Python
src/ui_macro.py
vincentX3/TrainingRecords
1863761356887b0d20448fc46cf57d00dbba77b2
[ "MIT" ]
null
null
null
src/ui_macro.py
vincentX3/TrainingRecords
1863761356887b0d20448fc46cf57d00dbba77b2
[ "MIT" ]
null
null
null
src/ui_macro.py
vincentX3/TrainingRecords
1863761356887b0d20448fc46cf57d00dbba77b2
[ "MIT" ]
null
null
null
HEIGHT = 900 WIDTH = 1300 SIDEBAR_WIDTH = 200 SIDEBAR_MARGIN = 10 PAGE_WIDTH = 1000 PAGE_TAB_HEIGHT = 800 PAGE_TABLE_HEIGHT = 785 PAGE_MARGIN = 0 DB_PATH = "../db/TRecords_ui.db"
19.777778
32
0.764045
55875bd5fd5bcf14b426aed32824a234fd44f18c
26,634
py
Python
pandadoc_client/api/document_attachments_api.py
PandaDoc/pandadoc-api-python-client
a707c540e788eee485cc338f29ca363acca4973e
[ "MIT" ]
27
2021-11-16T11:30:13.000Z
2022-03-17T08:56:18.000Z
pandadoc_client/api/document_attachments_api.py
PandaDoc/pandadoc-api-python-client
a707c540e788eee485cc338f29ca363acca4973e
[ "MIT" ]
null
null
null
pandadoc_client/api/document_attachments_api.py
PandaDoc/pandadoc-api-python-client
a707c540e788eee485cc338f29ca363acca4973e
[ "MIT" ]
2
2021-12-16T13:38:15.000Z
2022-01-09T00:38:00.000Z
""" PandaDoc Public API PandaDoc Public API documentation # noqa: E501 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from pandadoc_client.api_client import ApiClient, Endpoint as _Endpoint from pandadoc_client.model_utils import ( # noqa: F401 c...
36.040595
98
0.495344
6714d65c94390efea6bd184fca69066cb41aa97a
4,713
py
Python
src/ZServer/Zope2/App/tests/test_schema.py
gogobd/ZServer
d85912680297f67138ebe38409fcb36068b37c3d
[ "ZPL-2.1" ]
4
2017-08-01T15:06:47.000Z
2020-04-19T05:22:13.000Z
src/ZServer/Zope2/App/tests/test_schema.py
gogobd/ZServer
d85912680297f67138ebe38409fcb36068b37c3d
[ "ZPL-2.1" ]
12
2017-06-21T03:56:04.000Z
2021-03-29T05:47:10.000Z
src/ZServer/Zope2/App/tests/test_schema.py
gogobd/ZServer
d85912680297f67138ebe38409fcb36068b37c3d
[ "ZPL-2.1" ]
7
2017-05-12T07:30:54.000Z
2020-10-08T01:51:50.000Z
############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
32.958042
78
0.586039
60c418804e867bc504132c5735db91ad01488a36
1,000
py
Python
bosm2015/registration/migrations/0003_auto_20150811_1241.py
dvm-bitspilani/BITS-BOSM-2015
df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a
[ "MIT" ]
1
2015-09-15T17:19:30.000Z
2015-09-15T17:19:30.000Z
bosm2015/registration/migrations/0003_auto_20150811_1241.py
DVM-BITS-Pilani/BITS-BOSM-2015
df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a
[ "MIT" ]
null
null
null
bosm2015/registration/migrations/0003_auto_20150811_1241.py
DVM-BITS-Pilani/BITS-BOSM-2015
df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a
[ "MIT" ]
1
2016-03-28T19:44:41.000Z
2016-03-28T19:44:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('registration', '0002_auto_20150731_2332'), ] operations = [ migrations.AlterField( model_name='participant', ...
28.571429
96
0.581
7765c29ee59c8b2419b3fc661434d9582c9c34af
77,967
py
Python
pandas/tests/arithmetic/test_timedelta64.py
IamJasonBian/pandas
21024d5a8e05f611d0fef5ddf884ffa237643772
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/arithmetic/test_timedelta64.py
IamJasonBian/pandas
21024d5a8e05f611d0fef5ddf884ffa237643772
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/arithmetic/test_timedelta64.py
IamJasonBian/pandas
21024d5a8e05f611d0fef5ddf884ffa237643772
[ "BSD-3-Clause" ]
null
null
null
# Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. from datetime import ( datetime, timedelta, ) import numpy as np import pytest from pandas.errors import ( OutOfBoundsDatetime, PerformanceWarning, ) import pandas as pd from pandas import ( DataFrame, ...
35.797521
88
0.601165
ddb38bb70289ed91d23e73f36f410690be82bffd
1,515
py
Python
rx/operators/observable/range.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-16T09:07:13.000Z
2018-11-16T09:07:13.000Z
rx/operators/observable/range.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/operators/observable/range.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-08T08:23:08.000Z
2020-05-08T08:23:08.000Z
from rx.core import ObservableBase, AnonymousObservable from rx.concurrency import current_thread_scheduler from rx.disposables import MultipleAssignmentDisposable def from_range(start: int, stop: int = None, step: int = None) -> ObservableBase: """Generates an observable sequence of integral numbers within a ...
32.934783
81
0.678548
be128cdfc3da41e8fc3d2ef1700e48ca52be4c1a
5,885
py
Python
code/visuals_test_cartopy_netcdf_20211202.py
goldford/NEMO-Salish-Sea-2021
c6a78956293f1741ff9537747dd02ce37c20a4d3
[ "MIT" ]
null
null
null
code/visuals_test_cartopy_netcdf_20211202.py
goldford/NEMO-Salish-Sea-2021
c6a78956293f1741ff9537747dd02ce37c20a4d3
[ "MIT" ]
null
null
null
code/visuals_test_cartopy_netcdf_20211202.py
goldford/NEMO-Salish-Sea-2021
c6a78956293f1741ff9537747dd02ce37c20a4d3
[ "MIT" ]
null
null
null
# created Dec 1 2021 by GO # - issues with applying projections # - following http://tech.weatherforce.org/blog/ecmwf-data-animation/index.html # - you can't add cartopy layers for background etc while not declaring projection, but declaring projection doesn't work with my lat lon data import xarray as xr import mat...
28.02381
142
0.663042
2402e54f1f504d7fed82bc94c15c82b8d79aef99
3,863
py
Python
deep_sort/deep_sort/deep_sort.py
rohitkuk/yolox_deepsort
d593ab48757a87e2267fb11b35ebf5c4b73d1f89
[ "Apache-2.0" ]
null
null
null
deep_sort/deep_sort/deep_sort.py
rohitkuk/yolox_deepsort
d593ab48757a87e2267fb11b35ebf5c4b73d1f89
[ "Apache-2.0" ]
1
2022-02-04T09:49:10.000Z
2022-02-09T09:20:48.000Z
deep_sort/deep_sort/deep_sort.py
rohitkuk/yolox_deepsort
d593ab48757a87e2267fb11b35ebf5c4b73d1f89
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from .deep.feature_extractor import Extractor from .sort.nn_matching import NearestNeighborDistanceMetric from .sort.detection import Detection from .sort.tracker import Tracker __all__ = ['DeepSort'] class DeepSort(object): def __init__(self, model_path, max_dist=0.2, min_confi...
33.885965
164
0.598757
810cdf162da4245e3a7ad18ff4274731958df3a6
4,054
py
Python
dungeon_maps/demos/ego_flow/run.py
Ending2015a/dungeon_maps
c4f269c7fe67694d9b8a693f1902e70859e5ab25
[ "MIT" ]
1
2022-03-26T06:18:26.000Z
2022-03-26T06:18:26.000Z
dungeon_maps/demos/ego_flow/run.py
Ending2015a/dungeon_maps
c4f269c7fe67694d9b8a693f1902e70859e5ab25
[ "MIT" ]
null
null
null
dungeon_maps/demos/ego_flow/run.py
Ending2015a/dungeon_maps
c4f269c7fe67694d9b8a693f1902e70859e5ab25
[ "MIT" ]
null
null
null
# --- built in --- import os import math # --- 3rd party --- import numpy as np import torch import cv2 # --- my module --- import dungeon_maps as dmap # import simulators, so that one can use dmap.sim.make() # to create simulators. import dungeon_maps.sim from dungeon_maps.demos.ego_flow import vis # Some constants W...
29.591241
72
0.630982
d91e0f0e5edda0b3fe3140ce21fd03e3925e95ae
29,765
py
Python
test/tool_shed/functional/test_1080_advanced_circular_dependency_installation.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
null
null
null
test/tool_shed/functional/test_1080_advanced_circular_dependency_installation.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
test/tool_shed/functional/test_1080_advanced_circular_dependency_installation.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os, logging column_repository_name = 'column_maker_0080' column_repository_description = "Add column" column_repository_long_description = "Compute an expression on every row" convert_repository_name = 'convert_chars_0080' convert_repository_descripti...
74.974811
180
0.582631
b7cf11209490dcd07e44a3134c3ea9e84df9da06
3,289
py
Python
homeassistant/components/shelly/device_trigger.py
amatas/home-assistant-core
bdbb4f939f34682b2eca993bb041cfb21214015c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/shelly/device_trigger.py
amatas/home-assistant-core
bdbb4f939f34682b2eca993bb041cfb21214015c
[ "Apache-2.0" ]
60
2020-07-06T15:10:30.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/shelly/device_trigger.py
jotunacorn/home-assistant
1a13728cd0241a9e26c687dbd031fd144a748f4b
[ "Apache-2.0" ]
null
null
null
"""Provides device triggers for Shelly.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import AutomationActionType from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA from homeassistant.components.device_automation.exceptions import ( ...
30.453704
82
0.703557
5fdd540635150cd516c917aa63d20999692fe91f
5,809
py
Python
intersight/models/cep_initiate_cluster_bringup_ref.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/cep_initiate_cluster_bringup_ref.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/cep_initiate_cluster_bringup_ref.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class CepInitiateCluste...
31.917582
576
0.612842
ffddbf104ab8878cec070af62f448a249f9c1dd2
667
py
Python
estore_project/users/tests/test_drf_urls.py
Jawayria/estore_project
ad0c2f30b9a4d8a02b37ea29dfb2259635c55517
[ "MIT" ]
null
null
null
estore_project/users/tests/test_drf_urls.py
Jawayria/estore_project
ad0c2f30b9a4d8a02b37ea29dfb2259635c55517
[ "MIT" ]
1
2021-05-19T06:41:50.000Z
2021-05-19T06:41:50.000Z
estore_project/users/tests/test_drf_urls.py
Jawayria/estore_project
ad0c2f30b9a4d8a02b37ea29dfb2259635c55517
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from estore_project.users.models import User pytestmark = pytest.mark.django_db def test_user_detail(user: User): assert ( reverse("api:user-detail", kwargs={"username": user.username}) == f"/api/users/{user.username}/" ) assert reso...
26.68
81
0.671664
0d18de38d64771d358d1c78783858e003e51010f
3,414
py
Python
tests/models/validators/v2_2_1/jsd_f7abdb7ab46a5918a74e839488ff6ae0.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_2_1/jsd_f7abdb7ab46a5918a74e839488ff6ae0.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_2_1/jsd_f7abdb7ab46a5918a74e839488ff6ae0.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center getSiteTopology data model. Copyright (c) 2019-2021 Cisco Systems. 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 witho...
32.207547
83
0.529291
98ffbfb45ad2ec2ab4bef8a5048c72e8d38818b6
749
py
Python
routingpolicy/dotenv.py
48ix/routingpolicy
fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef
[ "MIT" ]
1
2020-09-22T19:06:01.000Z
2020-09-22T19:06:01.000Z
routingpolicy/dotenv.py
48ix/routingpolicy
fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef
[ "MIT" ]
null
null
null
routingpolicy/dotenv.py
48ix/routingpolicy
fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef
[ "MIT" ]
null
null
null
"""Import Environment Variables from Local Files.""" # Standard Library import os import re from typing import Generator from pathlib import Path ENV_FILES = (".env", ".env.local") REPO = Path(__file__).parent.parent def find_env() -> Generator[Path, None, None]: """Locate environment files.""" for file in...
24.966667
64
0.580774
84c0f3b15ea070858b04ac552c3c962173c282b3
1,276
py
Python
src/cobra/apps/organization/summary/app.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
1
2015-01-27T08:56:46.000Z
2015-01-27T08:56:46.000Z
src/cobra/apps/organization/summary/app.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
null
null
null
src/cobra/apps/organization/summary/app.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.contrib.auth.decorators import login_required from cobra.core.application import Application from cobra.core.loading import get_class class SummaryOrganizationApplication(Application): name = 'summary' summary_report_view = get_class('organization.summary.views',...
39.875
143
0.71395
7fbca2f83522bf8df4118f64e509ef242d448078
7,660
py
Python
sklearn/semi_supervised/tests/test_label_propagation.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
1
2020-12-03T16:35:55.000Z
2020-12-03T16:35:55.000Z
sklearn/semi_supervised/tests/test_label_propagation.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
null
null
null
sklearn/semi_supervised/tests/test_label_propagation.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
1
2020-02-16T05:40:12.000Z
2020-02-16T05:40:12.000Z
""" test the label propagation module """ import numpy as np import pytest import warnings from scipy.sparse import issparse from sklearn.semi_supervised import _label_propagation as label_propagation from sklearn.metrics.pairwise import rbf_kernel from sklearn.model_selection import train_test_split from sklearn.nei...
35.137615
82
0.648042
7822553bb31de99d7698ed2b7b281913cfa0850f
416
py
Python
python/helpers/rest_runners/sphinx_runner.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/helpers/rest_runners/sphinx_runner.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/helpers/rest_runners/sphinx_runner.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
if __name__ == "__main__": import sys try: import sphinx except ImportError: raise NameError("Cannot find sphinx in selected interpreter.") version = sphinx.version_info if (version[0] >= 1 and version[1] >= 7) or version[0] >= 2: from sphinx.cmd import build build...
24.470588
70
0.612981
14575b14abd4a1642bfe6d5d64a25a4b96ae82f7
717
py
Python
client/tests/terminal_test.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
5,975
2018-05-11T15:54:32.000Z
2022-03-31T14:38:00.000Z
client/tests/terminal_test.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
524
2018-05-11T16:47:20.000Z
2022-03-22T17:43:06.000Z
client/tests/terminal_test.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
501
2018-05-11T16:46:29.000Z
2022-03-19T04:41:57.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import unittest from unittest.mock import MagicMock, patch from .. import terminal class PyreTest(unittest.TestCase): de...
29.875
65
0.665272
50cbd80edfa4181e2c3e758293b49eb0ab722b23
6,165
py
Python
frappe-bench/env/lib/python2.7/site-packages/faker/providers/person/fr_CH/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
412
2020-04-16T08:11:58.000Z
2022-02-02T19:49:53.000Z
frappe-bench/env/lib/python2.7/site-packages/faker/providers/person/fr_CH/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
1
2020-04-16T14:03:46.000Z
2020-04-17T03:41:18.000Z
frappe-bench/env/lib/python2.7/site-packages/faker/providers/person/fr_CH/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
33
2020-04-16T08:48:53.000Z
2021-10-20T04:39:29.000Z
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = ( '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_name}}', '{{first_name_fe...
28.808411
92
0.454826
edb4f7398f1d3401c899855ffc443ec2c68fa01e
516
py
Python
entity/cards/BARL_007H/LETL_340.py
x014/lushi_script
edab2b88e3f0de8139de2541ab2daa331f777c0e
[ "MIT" ]
102
2021-10-20T09:06:39.000Z
2022-03-28T13:35:11.000Z
entity/cards/BARL_007H/LETL_340.py
x014/lushi_script
edab2b88e3f0de8139de2541ab2daa331f777c0e
[ "MIT" ]
98
2021-10-19T16:13:27.000Z
2022-03-27T13:27:49.000Z
entity/cards/BARL_007H/LETL_340.py
x014/lushi_script
edab2b88e3f0de8139de2541ab2daa331f777c0e
[ "MIT" ]
55
2021-10-19T03:56:50.000Z
2022-03-25T08:25:26.000Z
# -*- coding: utf-8 -*- from hearthstone.entities import Entity from entity.spell_entity import SpellEntity class LETL_340(SpellEntity): """ 毒蛇噬咬5 对一个角色造成$6点伤害。在本回合结束时,使其受到$6点伤害。0对一个角色造成$7点伤害。在本回合结束时,使其受到$7点伤害。0对一个角色造成$8点伤害。在本回合结束时,使其受到$8点伤害。0对一个角色造成$9点伤害。在本回合结束时,使其受到$9点伤害。0对一个角色造成$10点伤害。在本回合结束时,...
24.571429
169
0.668605
0cbf19bf7c40e1193b50f0a588730ca20c909a26
2,990
py
Python
tests/emukit/benchmarking/test_metrics.py
EmuKit/Emukit
2df951e42c82400192220eb18af428f3eb764f6c
[ "Apache-2.0" ]
272
2018-09-18T11:56:37.000Z
2020-10-10T22:21:25.000Z
tests/emukit/benchmarking/test_metrics.py
EmuKit/Emukit
2df951e42c82400192220eb18af428f3eb764f6c
[ "Apache-2.0" ]
278
2018-09-19T15:38:50.000Z
2020-10-14T13:45:24.000Z
tests/emukit/benchmarking/test_metrics.py
EmuKit/Emukit
2df951e42c82400192220eb18af428f3eb764f6c
[ "Apache-2.0" ]
88
2018-09-18T11:56:48.000Z
2020-09-23T13:33:55.000Z
import mock import numpy as np from emukit.benchmarking.loop_benchmarking.metrics import ( CumulativeCostMetric, MeanSquaredErrorMetric, MinimumObservedValueMetric, TimeMetric, ) from emukit.core.interfaces import IModel from emukit.core.loop import LoopState, ModelUpdater, OuterLoop from emukit.core.l...
30.510204
87
0.746488
899ea79b0c84ce11030a02bfec469836f3e53b9b
6,959
py
Python
azure-iot-device/tests/iothub/client_fixtures.py
nextdynamic/azure-iot-sdk-python
217853005ea507a5a415e8ca9ca4f6adb7284b7a
[ "MIT" ]
1
2019-02-06T06:52:44.000Z
2019-02-06T06:52:44.000Z
azure-iot-device/tests/iothub/client_fixtures.py
nextdynamic/azure-iot-sdk-python
217853005ea507a5a415e8ca9ca4f6adb7284b7a
[ "MIT" ]
null
null
null
azure-iot-device/tests/iothub/client_fixtures.py
nextdynamic/azure-iot-sdk-python
217853005ea507a5a415e8ca9ca4f6adb7284b7a
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import py...
30.388646
176
0.706854
33d5f42296dbd0cc6c26d7097141f7881fd9ddfb
3,048
py
Python
web/transiq/fms/helper.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/fms/helper.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/fms/helper.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, division from api.utils import get_or_none from broker.models import BrokerVehicle, Broker from driver.models import WaytrackerGPSDevice, TempoGoGPSDevice, SecuGPSDevice, MahindraGPSDevice from owner.models import Vehicle from owner.vehicle_util import compare_for...
49.16129
115
0.699147
cf15880eadfa00f5ca7f6eae412ce02dbd6896ca
28,235
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_network_virtual_appliances_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_network_virtual_appliances_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_network_virtual_appliances_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
50.600358
217
0.67349
491932453d5475050d6eb0276ce1ae6d7e8ea881
25,857
py
Python
delphin/itsdb.py
matichorvat/pydelphin
7e3a3fd15f33255dd4a11ebe716cec3ef0ca4558
[ "MIT" ]
null
null
null
delphin/itsdb.py
matichorvat/pydelphin
7e3a3fd15f33255dd4a11ebe716cec3ef0ca4558
[ "MIT" ]
null
null
null
delphin/itsdb.py
matichorvat/pydelphin
7e3a3fd15f33255dd4a11ebe716cec3ef0ca4558
[ "MIT" ]
null
null
null
""" The itsdb module makes it easy to work with [incr tsdb()] profiles. The ItsdbProfile class works with whole profiles, but it generally relies on the module-level functions to do its work (such as get_relations() or decode_row()). Queries over profiles can be customized through the use of filters (see filter_rows())...
35.179592
78
0.572379
994ccffcc823c454a34d4e923d97979cd5beafba
4,547
py
Python
figuras/PycharmKayStatisticalReport/bayesian_gaussian_pdf_properties.py
bor9/estudiando_el_kay
6e07908b8b0b5a5166dadce30001e6100e8304c3
[ "MIT" ]
null
null
null
figuras/PycharmKayStatisticalReport/bayesian_gaussian_pdf_properties.py
bor9/estudiando_el_kay
6e07908b8b0b5a5166dadce30001e6100e8304c3
[ "MIT" ]
null
null
null
figuras/PycharmKayStatisticalReport/bayesian_gaussian_pdf_properties.py
bor9/estudiando_el_kay
6e07908b8b0b5a5166dadce30001e6100e8304c3
[ "MIT" ]
1
2021-11-02T05:27:27.000Z
2021-11-02T05:27:27.000Z
import matplotlib.pyplot as plt import numpy as np from scipy.stats import multivariate_normal from mpl_toolkits.mplot3d import proj3d from matplotlib.patches import FancyArrowPatch from matplotlib import cm from matplotlib import rc __author__ = 'ernesto' # if use latex or mathtext rc('text', usetex=True) rc('mathte...
32.248227
119
0.632945
701a3a59daf08b397b94d8c4e1994629d7ae2419
17,493
py
Python
intersight/model/policy_abstract_config_result.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/policy_abstract_config_result.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/policy_abstract_config_result.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
53.659509
1,678
0.64763