hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f4c2d51c1a41fbd181e16dd142b468d8067d57be
2,256
py
Python
compiler_gym/util/timer.py
kokizzu/CompilerGym
4dd454f7a386c26308ab60be12315c28f3fa1cbc
[ "MIT" ]
null
null
null
compiler_gym/util/timer.py
kokizzu/CompilerGym
4dd454f7a386c26308ab60be12315c28f3fa1cbc
[ "MIT" ]
null
null
null
compiler_gym/util/timer.py
kokizzu/CompilerGym
4dd454f7a386c26308ab60be12315c28f3fa1cbc
[ "MIT" ]
null
null
null
# 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. from time import time from typing import Callable, Optional from absl.logging import skip_log_prefix def humanize_duration(seconds: float) -...
25.931034
82
0.580674
adf357ab70fa0ee5b0568587d2bab3a25dca279e
6,358
py
Python
cesium_app/models.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
null
null
null
cesium_app/models.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
6
2020-07-17T08:50:22.000Z
2022-02-26T11:56:52.000Z
cesium_app/models.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
null
null
null
import os import pandas as pd import sqlalchemy as sa from sqlalchemy.orm import relationship from baselayer.app.models import (init_db, join_model, Base, DBSession, User, Token) from cesium import featurize def is_owned_by(self, user): if hasattr(self, 'users'): return...
39.246914
81
0.628185
94e3766829729814b626e9048789c7200d3aa44a
6,697
py
Python
python_modules/dagster/dagster/core/execution/plan/outputs.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/outputs.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/outputs.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
from typing import List, NamedTuple, Optional, Union import dagster._check as check from dagster.core.definitions import ( AssetMaterialization, Materialization, MetadataEntry, NodeHandle, ) from dagster.core.definitions.events import AssetKey from dagster.serdes import whitelist_for_serdes from .hand...
32.197115
100
0.639241
7a3e3e15043fe138210398bd8c3d5de1d5171de5
1,635
py
Python
tasks/copy_memory/main.py
abhitoronto/keras-tcn
3b6880f54bc50fbf2c0dfd2b7cd4b9bc13ac58fa
[ "MIT" ]
null
null
null
tasks/copy_memory/main.py
abhitoronto/keras-tcn
3b6880f54bc50fbf2c0dfd2b7cd4b9bc13ac58fa
[ "MIT" ]
null
null
null
tasks/copy_memory/main.py
abhitoronto/keras-tcn
3b6880f54bc50fbf2c0dfd2b7cd4b9bc13ac58fa
[ "MIT" ]
null
null
null
from uuid import uuid4 import tensorflow.keras as keras import numpy as np from tcn import compiled_tcn from utils import data_generator x_train, y_train = data_generator(601, 10, 30000) x_test, y_test = data_generator(601, 10, 6000) class PrintSomeValues(keras.callbacks.Callback): def on_epoch_begin(self, ep...
30.277778
83
0.570642
4d64e76965099ecdaede15c64fe62fc49665fc1f
328
py
Python
Patterns/Preetam-Das.py
Princekumaraj/HACKTOBERFEST2021_PATTERN
44dde2261be002d5d0664eb023045e34848e686b
[ "MIT" ]
2
2021-10-03T13:02:28.000Z
2021-10-03T15:24:50.000Z
Patterns/Preetam-Das.py
Princekumaraj/HACKTOBERFEST2021_PATTERN
44dde2261be002d5d0664eb023045e34848e686b
[ "MIT" ]
1
2021-10-01T11:52:40.000Z
2021-10-01T11:52:40.000Z
Patterns/Preetam-Das.py
Princekumaraj/HACKTOBERFEST2021_PATTERN
44dde2261be002d5d0664eb023045e34848e686b
[ "MIT" ]
1
2021-10-09T05:48:05.000Z
2021-10-09T05:48:05.000Z
n = 15 # change the value to chenge the size print() for i in range(0, n): print('*'*(i+1),end='') print(' '*(n - i),end='') print(' '*(n - i - 1),end='') print('*'*(i + 1),end='') print('*'*(i),end='') print(' '*(n - i),end='') print(' '*(n - i - 1),end='') print('*'*(i + 1),end='') ...
27.333333
44
0.414634
8e39f5f03de74e50e46cb492d1cc975d12f005cf
118,461
py
Python
tests/test_http_graphql_query.py
Xen0byte/edgedb
9d8e020503793609547ffa0455e6c2fd8dff5a4d
[ "Apache-2.0" ]
null
null
null
tests/test_http_graphql_query.py
Xen0byte/edgedb
9d8e020503793609547ffa0455e6c2fd8dff5a4d
[ "Apache-2.0" ]
null
null
null
tests/test_http_graphql_query.py
Xen0byte/edgedb
9d8e020503793609547ffa0455e6c2fd8dff5a4d
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
30.073877
79
0.336347
0ebe25db1a14518bb117b795863e597070695586
9,853
py
Python
app/recipe/tests/test_recipe_api.py
Eliran-b/django_cookies_recipe_api
917e9f8934966f26e2896278450f19370178dd41
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
Eliran-b/django_cookies_recipe_api
917e9f8934966f26e2896278450f19370178dd41
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
Eliran-b/django_cookies_recipe_api
917e9f8934966f26e2896278450f19370178dd41
[ "MIT" ]
null
null
null
import tempfile import os from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import Recipe, Tag, Ingredient from recipe.serializers import Re...
34.57193
78
0.645692
b037a4e255aa7b1adeb9cb48a8c1c5d326c19fd6
2,211
py
Python
src/to_vcf.py
milkschen/chaintools
2a981ce3065bca37beb6e05acfed063374366a48
[ "MIT" ]
null
null
null
src/to_vcf.py
milkschen/chaintools
2a981ce3065bca37beb6e05acfed063374366a48
[ "MIT" ]
1
2022-02-08T01:30:26.000Z
2022-02-23T15:57:58.000Z
src/to_vcf.py
milkschen/chaintools
2a981ce3065bca37beb6e05acfed063374366a48
[ "MIT" ]
1
2022-02-13T19:04:25.000Z
2022-02-13T19:04:25.000Z
''' Convert a chain file to the SAM format Nancy Fisher Hansen NIH/NHGRI Nae-Chyun Chen Johns Hopkins University 2021-2022 ''' import argparse import pysam import utils import sys from typing import TextIO def parse_args(): parser = argparse.ArgumentParser() parser.add_argument( '-c', '--chain', def...
24.566667
89
0.602442
62605df26459d4dc4a5fdaf11aadf5819c8d9464
15,812
py
Python
sympy/mpmath/ctx_iv.py
benjaminmcdonald/sympy
dc44dcc6d6d5f2d0a7ede35eff5f421ab4b11a3e
[ "BSD-3-Clause" ]
1
2016-07-13T04:30:25.000Z
2016-07-13T04:30:25.000Z
sympy/mpmath/ctx_iv.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
sympy/mpmath/ctx_iv.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
import operator import libmp from libmp import ( int_types, MPZ_ONE, prec_to_dps, dps_to_prec, repr_dps, round_floor, round_ceiling, fzero, finf, fninf, fnan, mpf_le, mpf_neg, from_int, from_float, from_str, from_rational, mpi_mid, mpi_delta, mpi_str, mpi_abs, mpi_pos, mpi_neg, mpi_add,...
31.249012
111
0.557804
2570f65d8ee7448d2465694b9fe332469ab21612
1,097
py
Python
app/blueprints/auth/routes/account.py
neurothrone/project-dot
20889075611bed645689a76a30257f96e4b55988
[ "MIT" ]
null
null
null
app/blueprints/auth/routes/account.py
neurothrone/project-dot
20889075611bed645689a76a30257f96e4b55988
[ "MIT" ]
null
null
null
app/blueprints/auth/routes/account.py
neurothrone/project-dot
20889075611bed645689a76a30257f96e4b55988
[ "MIT" ]
null
null
null
from flask import flash, redirect, render_template, url_for from flask_login import current_user, login_required, logout_user from app.blueprints.auth import bp_auth from app.blueprints.auth.forms.account import DeleteAccountForm @bp_auth.get("/delete-account") @login_required def delete_account(): return render...
36.566667
84
0.66454
e0f041989db26554cc495247378bc40d8017a3ab
2,575
py
Python
gdc/task/news/hupu.py
UniqueHK/pholcus
bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a
[ "MIT" ]
4
2015-12-15T06:06:40.000Z
2016-06-20T07:52:06.000Z
gdc/task/news/hupu.py
UniqueHK/pholcus
bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a
[ "MIT" ]
1
2016-02-02T04:35:16.000Z
2016-02-02T04:35:16.000Z
gdc/task/news/hupu.py
UniqueHK/pholcus
bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a
[ "MIT" ]
1
2016-06-18T03:47:26.000Z
2016-06-18T03:47:26.000Z
#!/usr/bin/env python # coding=utf-8 import time from datetime import * from webcrawl.character import * from webcrawl.task import * from newsspider import * from webcrawl import request #_print, logger = logprint(modulename(__file__), modulepath(__file__)) class SpiderHupu(SpiderNewsOrigin): """ 新浪网 数据爬虫...
34.333333
161
0.543689
78eaa574041275a040a285b1c17b901ffe309d83
466,741
py
Python
Cython/Compiler/ExprNodes.py
BigFav/cython
c66287f6f71a7a2223a7b8b636d5c1acdd0a1d69
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/ExprNodes.py
BigFav/cython
c66287f6f71a7a2223a7b8b636d5c1acdd0a1d69
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/ExprNodes.py
BigFav/cython
c66287f6f71a7a2223a7b8b636d5c1acdd0a1d69
[ "Apache-2.0" ]
null
null
null
# # Parse tree nodes for expressions # from __future__ import absolute_import import cython cython.declare(error=object, warning=object, warn_once=object, InternalError=object, CompileError=object, UtilityCode=object, TempitaUtilityCode=object, StringEncoding=object, operator=object, ...
39.357534
188
0.588249
4411db6d2856462ced8c3be2fe1cb15a6b3cebe6
4,781
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/concur_linked_service_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/concur_linked_service_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2020-03-06T05:57:16.000Z
2020-03-06T05:57:16.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/concur_linked_service_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "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 ...
51.408602
297
0.695043
507573c8213366d529082887fd6d8911784e0bc5
5,107
py
Python
cogs/nsfw.py
MrLar/Godavaru
6e62bd6d4fdc385717b75b55245c3a6a0a55c913
[ "MIT" ]
9
2017-12-14T03:56:05.000Z
2018-06-01T18:58:28.000Z
cogs/nsfw.py
MrLar/Godavaru
6e62bd6d4fdc385717b75b55245c3a6a0a55c913
[ "MIT" ]
3
2018-03-09T16:54:50.000Z
2018-10-02T02:04:58.000Z
cogs/nsfw.py
MrLar/Godavaru
6e62bd6d4fdc385717b75b55245c3a6a0a55c913
[ "MIT" ]
11
2017-08-31T23:22:50.000Z
2020-06-12T06:08:52.000Z
import discord import random import json from discord.ext import commands from .utils import checks from .utils.tools import resolve_emoji from .assets import gifs class NSFW: def __init__(self, bot): self.bot = bot @commands.command(usage="<members>") @checks.is_nsfw() @commands.bot_has_perm...
53.757895
273
0.58038
3419e04f949f800a50b931e71996d39c1278d160
239
py
Python
Python_Ex_vazio/ex079.py
matheusmiguelsa/Exerc-cios-de-Python
53387266b747f79e67964356993b38c2267ac04a
[ "MIT" ]
null
null
null
Python_Ex_vazio/ex079.py
matheusmiguelsa/Exerc-cios-de-Python
53387266b747f79e67964356993b38c2267ac04a
[ "MIT" ]
null
null
null
Python_Ex_vazio/ex079.py
matheusmiguelsa/Exerc-cios-de-Python
53387266b747f79e67964356993b38c2267ac04a
[ "MIT" ]
null
null
null
#lista lista = [9] #while #negar igual #sort no print a = 999999 while True: if a not in list: a = lista.append(int(input('Digite um valor: '))) else: print('Valor já registrado, digite outro valor')
15.933333
57
0.585774
cc71cadb2302537f7eb707416b967889c578b6c1
1,338
py
Python
lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py
LChristakis/chalice-hunter
6bffea4620e23ce9ff12ac30526ebafcb9c10058
[ "MIT" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py
LChristakis/chalice-hunter
6bffea4620e23ce9ff12ac30526ebafcb9c10058
[ "MIT" ]
27
2017-04-01T15:06:36.000Z
2021-02-08T20:19:58.000Z
lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py
LChristakis/chalice-hunter
6bffea4620e23ce9ff12ac30526ebafcb9c10058
[ "MIT" ]
24
2017-03-10T15:12:13.000Z
2017-06-22T10:07:12.000Z
import os import zipfile import contextlib import pytest from setuptools.command.upload_docs import upload_docs from setuptools.dist import Distribution from .textwrap import DALS from . import contexts SETUP_PY = DALS( """ from setuptools import setup setup(name='foo') """) @pytest.fixture def ...
22.3
75
0.649477
eb42ef53726246d4db4cb13a789b8f39ec18dc5d
1,873
py
Python
profil3r/app/modules/email/email.py
3453-315h/Profil3r
e8f8dc8620e3c0e2af9118b7e84dc194aa475126
[ "MIT" ]
22
2022-01-04T10:36:57.000Z
2022-03-23T18:11:20.000Z
profil3r/app/modules/email/email.py
3453-315h/Profil3r
e8f8dc8620e3c0e2af9118b7e84dc194aa475126
[ "MIT" ]
null
null
null
profil3r/app/modules/email/email.py
3453-315h/Profil3r
e8f8dc8620e3c0e2af9118b7e84dc194aa475126
[ "MIT" ]
null
null
null
import time import pwnedpasswords class Email: def __init__(self, config, permutations_list): # Have I been pwned API rate limit ( 1500 ms) self.delay = DELAY = config['plateform']['email']['rate_limit'] / 1000 # The 20 most common email domains, you can add more if you wish (in the config...
36.72549
97
0.597437
a7e85a236d3b5c965ed00feeb6e7eb6b7586df30
5,083
py
Python
tests/unit/resources/storage/test_storage_pools.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
107
2015-02-16T12:40:36.000Z
2022-03-09T05:27:58.000Z
tests/unit/resources/storage/test_storage_pools.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
148
2015-03-17T16:09:39.000Z
2020-02-09T16:28:06.000Z
tests/unit/resources/storage/test_storage_pools.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
80
2015-01-03T22:58:53.000Z
2021-04-16T11:37:03.000Z
# -*- coding: utf-8 -*- ### # (C) Copyright (2012-2017) Hewlett Packard Enterprise Development LP # # 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 limi...
42.358333
97
0.713752
4da81ed591abe6115978664a86c0b091f1b523cb
16,141
py
Python
hybridnets/dataset.py
beraterenterzi/HybridNets
a7f4ade0225dfe93048c8fb92c97bbf4c5af9efe
[ "MIT" ]
2
2022-03-21T13:28:17.000Z
2022-03-21T13:28:30.000Z
hybridnets/dataset.py
beraterenterzi/HybridNets
a7f4ade0225dfe93048c8fb92c97bbf4c5af9efe
[ "MIT" ]
null
null
null
hybridnets/dataset.py
beraterenterzi/HybridNets
a7f4ade0225dfe93048c8fb92c97bbf4c5af9efe
[ "MIT" ]
null
null
null
import cv2 import numpy as np # np.set_printoptions(threshold=np.inf) import random import torch import torchvision.transforms as transforms from pathlib import Path from torch.utils.data import Dataset from utils.utils import letterbox, augment_hsv, random_perspective from tqdm.autonotebook import tqdm import json imp...
39.368293
136
0.511431
c57252555b78146de755a8b3e101e725dcc86288
2,557
py
Python
src/hyde/driver/configuration/generic/drv_configuration_tags.py
c-hydro/hyde
3a3ff92d442077ce353b071d5afe726fc5465201
[ "MIT" ]
null
null
null
src/hyde/driver/configuration/generic/drv_configuration_tags.py
c-hydro/hyde
3a3ff92d442077ce353b071d5afe726fc5465201
[ "MIT" ]
18
2020-04-07T16:34:59.000Z
2021-07-02T07:32:39.000Z
src/hyde/driver/configuration/generic/drv_configuration_tags.py
c-hydro/fp-hyde
b0728397522aceebec3e7ff115aff160a10efede
[ "MIT" ]
null
null
null
""" Class Features Name: drv_configuration_tags Author(s): Fabio Delogu (fabio.delogu@cimafoundation.org) Date: '20180521' Version: '2.0.7' """ ####################################################################################### # Library import logging from copy import deepcopy from s...
36.014085
95
0.308956
2300d526fdc9b4b0245b0df7c1d04496a66675fb
10,513
py
Python
tests/auth/providers/test_openpeerpower.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
tests/auth/providers/test_openpeerpower.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
tests/auth/providers/test_openpeerpower.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
1
2019-04-24T14:10:08.000Z
2019-04-24T14:10:08.000Z
"""Test the Open Peer Power local auth provider.""" import asyncio from unittest.mock import Mock, patch import pytest import voluptuous as vol from openpeerpower import data_entry_flow from openpeerpower.auth import auth_manager_from_config, auth_store from openpeerpower.auth.providers import ( auth_provider_fro...
34.133117
88
0.69571
3f2ec7a206bee562b085d03658a3e4fafeebd4ca
290
py
Python
dst/report/urls.py
Ecotrust/floodplain-restoration
426ae8d9c83f364c9758eeebb4ca0339503431b5
[ "MIT" ]
2
2015-01-16T07:56:16.000Z
2017-12-26T06:06:26.000Z
dst/report/urls.py
Ecotrust/floodplain-restoration
426ae8d9c83f364c9758eeebb4ca0339503431b5
[ "MIT" ]
77
2015-01-08T16:54:05.000Z
2019-12-06T15:01:42.000Z
dst/report/urls.py
Ecotrust/floodplain-restoration
426ae8d9c83f364c9758eeebb4ca0339503431b5
[ "MIT" ]
null
null
null
from django.conf.urls import * from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', url('^export/(?P<pk>\d+)/$', 'report.views.export_pdf'), url('^view/(?P<pk>\d+)/$', 'report.views.printer_friendly'), )
24.166667
41
0.648276
fe0398cfd5e4390a660d486b926eebacbeaba81c
1,702
py
Python
client_code/MessagePill/__init__.py
hugetim/anvil-extras
ca83f6ada5149514c2affbe1ab081a4ca677c7e0
[ "MIT" ]
null
null
null
client_code/MessagePill/__init__.py
hugetim/anvil-extras
ca83f6ada5149514c2affbe1ab081a4ca677c7e0
[ "MIT" ]
null
null
null
client_code/MessagePill/__init__.py
hugetim/anvil-extras
ca83f6ada5149514c2affbe1ab081a4ca677c7e0
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # # Copyright (c) 2021 The Anvil Extras project team members listed at # https://github.com/anvilistas/anvil-extras/graphs/contributors # # This software is published at https://github.com/anvilistas/anvil-extras from ..utils._component_helpers import _html_injector from ._anvil_designer ...
27.451613
78
0.629847
fc8b8471ee04ad7fbc83f97f929239325d4cdd30
7,816
py
Python
umierrorcorrect/call_variants6.py
tobbeost/umierrorcorrect
883155c6d664e2ed1a2288b9ed8e23eefb2820ba
[ "MIT" ]
1
2021-12-20T08:51:20.000Z
2021-12-20T08:51:20.000Z
umierrorcorrect/call_variants6.py
tobbeost/umierrorcorrect
883155c6d664e2ed1a2288b9ed8e23eefb2820ba
[ "MIT" ]
5
2020-03-17T08:21:41.000Z
2020-03-26T09:53:36.000Z
umierrorcorrect/call_variants6.py
tobbeost/umierrorcorrect
883155c6d664e2ed1a2288b9ed8e23eefb2820ba
[ "MIT" ]
2
2021-10-14T11:12:21.000Z
2021-11-10T09:37:42.000Z
#!/usr/bin/env python3 import numpy as np from numpy import inf from numpy import nan from scipy.optimize import fmin from scipy.stats import beta from scipy.special import beta as B from scipy.special import comb import argparse import glob import sys import logging #import matplotlib.pyplot as plt def parseArgs(): ...
38.885572
170
0.585594
061764b4e05356423073295861f267a5dbdac3e4
2,208
py
Python
salt/output/newline_values_only.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/output/newline_values_only.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/output/newline_values_only.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Display values only, separated by newlines ========================================== .. versionadded:: 2015.5.0 This outputter is designed for Salt CLI return data. It will do the following to the return dict: 1. Get just the values (ignoring the minion IDs). 2. Each value, if it is iter...
20.256881
79
0.632699
92f0d8ee8858045a8901ad0038c85efc6ae9a7ae
5,076
py
Python
ENV/lib/python3.6/site-packages/pyramid_debugtoolbar/panels/request_vars.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid_debugtoolbar/panels/request_vars.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid_debugtoolbar/panels/request_vars.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
from pprint import saferepr from pyramid_debugtoolbar.panels import DebugPanel from pyramid_debugtoolbar.utils import dictrepr _ = lambda x: x # extractable_request_attributes allow us to programmatically pull data # the format is (attr, is_dict) extractable_request_attributes = ( ('accept_charset', False), ...
31.924528
79
0.632388
fa820fe9f3a285c32b9f976434548e3110265d31
1,088
py
Python
conjureup/controllers/summary/gui.py
ops-sandy/conjure-up
fe2960d79065f9b67109e53a7738bdbd4a777c9b
[ "MIT" ]
null
null
null
conjureup/controllers/summary/gui.py
ops-sandy/conjure-up
fe2960d79065f9b67109e53a7738bdbd4a777c9b
[ "MIT" ]
null
null
null
conjureup/controllers/summary/gui.py
ops-sandy/conjure-up
fe2960d79065f9b67109e53a7738bdbd4a777c9b
[ "MIT" ]
null
null
null
import os from conjureup import events from conjureup.app_config import app from conjureup.controllers.summary import common from conjureup.telemetry import track_screen from conjureup.ui.views.summary import SummaryView class SummaryController: def __init__(self): self.view = None self.save_pat...
31.085714
70
0.629596
5893ede54d7fc5e635d179d510e1636764dd476a
842
py
Python
mundo2/exercicio045.py
beatriznaimaite/Exercicios-Python-Curso-Em-Video
e4213c2054a67d7948aa9023f2f0f33ab7e8eb96
[ "MIT" ]
null
null
null
mundo2/exercicio045.py
beatriznaimaite/Exercicios-Python-Curso-Em-Video
e4213c2054a67d7948aa9023f2f0f33ab7e8eb96
[ "MIT" ]
null
null
null
mundo2/exercicio045.py
beatriznaimaite/Exercicios-Python-Curso-Em-Video
e4213c2054a67d7948aa9023f2f0f33ab7e8eb96
[ "MIT" ]
null
null
null
# Crie um programa que faça o computador jogar Jokenpô com você. import random from time import sleep lista = ['pedra', 'papel', 'tesoura'] pc = random.choice(lista) print('------ JOKEMPÔ ------'.center(30)) sleep(1) print('Vamos jogar...') sleep(1) jogador = str(input('Escolha: PEDRA, PAPEL OU TESOURA: ')).strip()....
36.608696
132
0.640143
153bab0b1be5ebc645a0d19184e0e4cf1890051d
5,181
py
Python
account_test.py
mwalo254/passwordlocker
75633ef4911ae8a956c322898bdf7a2e9a8d1fba
[ "Unlicense" ]
null
null
null
account_test.py
mwalo254/passwordlocker
75633ef4911ae8a956c322898bdf7a2e9a8d1fba
[ "Unlicense" ]
null
null
null
account_test.py
mwalo254/passwordlocker
75633ef4911ae8a956c322898bdf7a2e9a8d1fba
[ "Unlicense" ]
null
null
null
import unittest import pyperclip from account import User from account import Account class testUser(unittest.TestCase): ''' Test class that defines test cases for the user class behaviours. Args: unittest.TestCase: TestCase class that helps in creating test cases ''' def setUp(self): ...
29.605714
91
0.629415
c27d6945b56b848dc085f8c3a8d3d17f8c1dfdb5
1,926
py
Python
ad2web/notifications/models.py
billfor/alarmdecoder-webapp
43c3ebb2b44c7291cd89a2a7a31bbdfdb3ec06dc
[ "BSD-3-Clause", "MIT" ]
46
2015-06-14T02:19:16.000Z
2022-03-24T03:11:19.000Z
ad2web/notifications/models.py
billfor/alarmdecoder-webapp
43c3ebb2b44c7291cd89a2a7a31bbdfdb3ec06dc
[ "BSD-3-Clause", "MIT" ]
66
2015-03-14T16:30:43.000Z
2021-08-28T22:20:01.000Z
ad2web/notifications/models.py
billfor/alarmdecoder-webapp
43c3ebb2b44c7291cd89a2a7a31bbdfdb3ec06dc
[ "BSD-3-Clause", "MIT" ]
44
2015-02-13T19:23:37.000Z
2021-12-30T04:17:21.000Z
# -*- coding: utf-8 -*- from OpenSSL import crypto, SSL from sqlalchemy import Column, orm from sqlalchemy.orm.collections import attribute_mapped_collection from ..extensions import db class Notification(db.Model): __tablename__ = 'notifications' id = Column(db.Integer, primary_key=True, autoincrement=True...
30.571429
85
0.635514
e34b66d86e41624ae84aec481a70bdde1ddfc7c5
1,456
py
Python
accounts/views.py
DubaSravani/finalproject
05b598909e881c167d0f76ba3020434ad9f1bc42
[ "MIT" ]
9
2019-05-30T21:43:45.000Z
2022-01-02T12:54:52.000Z
accounts/views.py
DubaSravani/finalproject
05b598909e881c167d0f76ba3020434ad9f1bc42
[ "MIT" ]
null
null
null
accounts/views.py
DubaSravani/finalproject
05b598909e881c167d0f76ba3020434ad9f1bc42
[ "MIT" ]
4
2019-04-13T23:00:56.000Z
2021-11-25T16:48:09.000Z
from django.shortcuts import render, redirect, get_object_or_404 from django.views.generic import View, TemplateView, CreateView, UpdateView from django.contrib.auth import logout from .forms import RegisterForm from django.urls import reverse_lazy from django.contrib.auth.models import User from django.contrib.auth.mi...
34.666667
75
0.756868
77d781e957dcd6cc3dbc3a5b313086820fcd3c14
13,633
py
Python
env/lib/python3.7/encodings/mac_croatian.py
JacobMiske/nuclear-database-APIs
bc9fb6afb9aa0d98dde5d744d8f22b2791597e78
[ "MIT" ]
null
null
null
env/lib/python3.7/encodings/mac_croatian.py
JacobMiske/nuclear-database-APIs
bc9fb6afb9aa0d98dde5d744d8f22b2791597e78
[ "MIT" ]
null
null
null
env/lib/python3.7/encodings/mac_croatian.py
JacobMiske/nuclear-database-APIs
bc9fb6afb9aa0d98dde5d744d8f22b2791597e78
[ "MIT" ]
1
2020-05-01T20:23:35.000Z
2020-05-01T20:23:35.000Z
""" Python Character Mapping Codec mac_croatian generated from 'MAPPINGS/VENDORS/APPLE/CROATIAN.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,inp...
44.262987
118
0.54016
d67cd8d83bc9e413bc539635fb815f0d1a9eb85c
1,264
py
Python
2020/21/food_list_2.py
lvaughn/advent
ff3f727b8db1fd9b2a04aad5dcda9a6c8d1c271e
[ "CC0-1.0" ]
null
null
null
2020/21/food_list_2.py
lvaughn/advent
ff3f727b8db1fd9b2a04aad5dcda9a6c8d1c271e
[ "CC0-1.0" ]
null
null
null
2020/21/food_list_2.py
lvaughn/advent
ff3f727b8db1fd9b2a04aad5dcda9a6c8d1c271e
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import re from collections import defaultdict from pprint import pprint allergen_sets = defaultdict(list) # allergen => list of sets of foods with open('input.txt', 'r') as infile: line_re = re.compile(r'((\w+\s+)+)\(contains(.*)\)') for line in infile: m = line_re.match(line) ...
31.6
74
0.64557
e803064b7e87e42b59989de25826e0b1ab0d171d
1,280
py
Python
indy_node/test/upgrade/test_pool_upgrade_no_loop_force_unsuccessful.py
pysingh09/indy-node
060944dfcd1530fd0a11b7f119a6c37ab00b3c17
[ "Apache-2.0" ]
1
2018-07-05T19:34:29.000Z
2018-07-05T19:34:29.000Z
indy_node/test/upgrade/test_pool_upgrade_no_loop_force_unsuccessful.py
pysingh09/indy-node
060944dfcd1530fd0a11b7f119a6c37ab00b3c17
[ "Apache-2.0" ]
null
null
null
indy_node/test/upgrade/test_pool_upgrade_no_loop_force_unsuccessful.py
pysingh09/indy-node
060944dfcd1530fd0a11b7f119a6c37ab00b3c17
[ "Apache-2.0" ]
1
2021-06-06T15:48:30.000Z
2021-06-06T15:48:30.000Z
from copy import deepcopy from indy_node.test import waits from stp_core.loop.eventually import eventually from plenum.common.constants import VERSION from indy_common.constants import FORCE from indy_node.test.upgrade.helper import bumpedVersion, checkUpgradeScheduled, \ check_no_loop, sdk_ensure_upgrade_sent fr...
33.684211
89
0.730469
993ce7ada4a7e19845df1f7cbab6231da15d1274
647
py
Python
disturbance/migrations/0125_apiarychecklistanswer_referral.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
1
2020-06-30T04:47:42.000Z
2020-06-30T04:47:42.000Z
disturbance/migrations/0125_apiarychecklistanswer_referral.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0125_apiarychecklistanswer_referral.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-08-06 07:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('disturbance', '0124_apiarychecklistanswer_text_answer'), ...
29.409091
179
0.692427
8b24b88c05feb1ccfb1e58a73349d86ae668b9df
2,625
py
Python
tests/schema/models.py
onursa/django
23d9f517dc3ca31816bb8596f5a59f1ae44304ee
[ "BSD-3-Clause" ]
1
2016-08-14T13:08:47.000Z
2016-08-14T13:08:47.000Z
tests/schema/models.py
onursa/django
23d9f517dc3ca31816bb8596f5a59f1ae44304ee
[ "BSD-3-Clause" ]
null
null
null
tests/schema/models.py
onursa/django
23d9f517dc3ca31816bb8596f5a59f1ae44304ee
[ "BSD-3-Clause" ]
null
null
null
from django.core.apps.cache import AppCache from django.db import models # Because we want to test creation and deletion of these as separate things, # these models are all inserted into a separate AppCache so the main test # runner doesn't migrate them. new_app_cache = AppCache() class Author(models.Model): na...
25
78
0.706667
0c14a684864e285a45461aa7aafe0365173074b2
4,702
py
Python
isi_sdk_8_1_1/isi_sdk_8_1_1/models/storagepool_status.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/isi_sdk_8_1_1/models/storagepool_status.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/isi_sdk_8_1_1/models/storagepool_status.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_1_1.models.storage...
31.77027
124
0.6208
9ef1580f3cd99b31cf350745f1106e43b251fc98
1,881
py
Python
stellar_sdk/xdr/clawback_result.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
null
null
null
stellar_sdk/xdr/clawback_result.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
27
2022-01-12T10:55:38.000Z
2022-03-28T01:38:24.000Z
stellar_sdk/xdr/clawback_result.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
2
2021-12-02T12:42:03.000Z
2021-12-07T20:53:10.000Z
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from ..type_checked import type_checked from .clawback_result_code import ClawbackResultCode __all__ = ["ClawbackResult"] @type_checked class ClawbackResult: """ XDR ...
26.125
61
0.624668
ab46c87b29a25eeae08d7266f704f0290463a749
237
py
Python
UTDVN_crawler/crawled_data_loader.py
NewLuminous/UTDVN
e3e628fd9aa68278780b88e41ffe2ecdd97704b2
[ "MIT" ]
1
2020-02-20T12:41:49.000Z
2020-02-20T12:41:49.000Z
UTDVN_crawler/crawled_data_loader.py
NewLuminous/UTDVN
e3e628fd9aa68278780b88e41ffe2ecdd97704b2
[ "MIT" ]
10
2021-03-10T14:27:55.000Z
2022-03-02T15:01:13.000Z
UTDVN_crawler/crawled_data_loader.py
NewLuminous/UTDVN
e3e628fd9aa68278780b88e41ffe2ecdd97704b2
[ "MIT" ]
1
2021-12-31T11:15:13.000Z
2021-12-31T11:15:13.000Z
from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings if __name__ == "__main__": process = CrawlerProcess(get_project_settings()) process.crawl('crawled_data_loader') process.start()
33.857143
53
0.78903
14150b500f3b7b7f1084f7d78b80acb7e7cd7c00
1,606
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/monitor/models/DescribeTopNSlowSqlSpec.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/monitor/models/DescribeTopNSlowSqlSpec.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/monitor/models/DescribeTopNSlowSqlSpec.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
39.170732
164
0.721046
e00d3884e791760bcba088884bc5c17a985af2ce
3,703
py
Python
hifiberrydsp/hardware/spi.py
ssalonen/hifiberry-dsp
4bac2358bb95cf24c2008cabcbe0e5b9aca08f0a
[ "MIT" ]
92
2018-07-09T18:45:57.000Z
2022-02-01T11:33:15.000Z
hifiberrydsp/hardware/spi.py
ssalonen/hifiberry-dsp
4bac2358bb95cf24c2008cabcbe0e5b9aca08f0a
[ "MIT" ]
35
2018-07-31T07:38:23.000Z
2022-01-13T00:49:33.000Z
hifiberrydsp/hardware/spi.py
ssalonen/hifiberry-dsp
4bac2358bb95cf24c2008cabcbe0e5b9aca08f0a
[ "MIT" ]
30
2018-09-23T08:39:57.000Z
2021-12-22T13:40:19.000Z
''' Copyright (c) 2018 Modul 9/HiFiBerry 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, distribu...
33.36036
78
0.593033
63eade1ebc1c9477bc87bcd21d7206e933de8f71
522
py
Python
bingads/v13/internal/reporting/row_report.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
86
2016-02-29T03:24:28.000Z
2022-03-29T09:30:21.000Z
bingads/v13/internal/reporting/row_report.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
135
2016-04-12T13:31:28.000Z
2022-03-29T02:18:51.000Z
bingads/v13/internal/reporting/row_report.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
154
2016-04-08T04:11:27.000Z
2022-03-29T21:21:07.000Z
from .row_report_header import _RowReportHeader from .row_report_iterator import _ReportStreamReader, _RowReportIterator from bingads.v13.reporting.report_contract import Report class _RowReport(Report): def __init__(self, file, format = 'Csv'): self._stream_reader = _ReportStreamReader(file, format)...
37.285714
72
0.762452
66fedcab8c4528e59b067506b6934e384bcbc1df
980
py
Python
tests/unit/sagemaker/image_uris/jumpstart/conftest.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
1
2021-12-10T16:18:29.000Z
2021-12-10T16:18:29.000Z
tests/unit/sagemaker/image_uris/jumpstart/conftest.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
20
2021-09-17T20:50:11.000Z
2021-12-09T00:29:02.000Z
tests/unit/sagemaker/image_uris/jumpstart/conftest.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
30.625
72
0.734694
4e84bda6d5f2314d45838a2ec7036936e0ed88bc
23,769
py
Python
execution-frameworks/contrib/python/runner.py
blackburnjrb/atomic-red-team
59f2b264e96f31244f4ede9224923714291814f2
[ "MIT" ]
null
null
null
execution-frameworks/contrib/python/runner.py
blackburnjrb/atomic-red-team
59f2b264e96f31244f4ede9224923714291814f2
[ "MIT" ]
null
null
null
execution-frameworks/contrib/python/runner.py
blackburnjrb/atomic-red-team
59f2b264e96f31244f4ede9224923714291814f2
[ "MIT" ]
null
null
null
""" ART Attack Runner Version: 1.0 Author: Olivier Lemelin Script that was built in order to automate the execution of ART. """ import os import os.path import fnmatch import platform import re import subprocess import sys import hashlib import json import argparse import yaml import unidecode # pylint: disable=lin...
35.370536
172
0.622702
bb8b072fb061f0bb9da2adeeb0a78afeb17d35bc
3,936
py
Python
homeassistant/components/axis/camera.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
4
2021-07-11T09:11:00.000Z
2022-02-27T14:43:50.000Z
homeassistant/components/axis/camera.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
277
2021-10-04T06:39:33.000Z
2021-12-28T22:04:17.000Z
homeassistant/components/axis/camera.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
1
2022-01-12T22:14:01.000Z
2022-01-12T22:14:01.000Z
"""Support for Axis camera streaming.""" from urllib.parse import urlencode from homeassistant.components.camera import SUPPORT_STREAM from homeassistant.components.mjpeg.camera import ( CONF_MJPEG_URL, CONF_STILL_IMAGE_URL, MjpegCamera, filter_urllib3_logging, ) from homeassistant.config_entries impor...
32.8
119
0.684705
66a4509386815b1c58f481728e762c084baea924
1,080
py
Python
nipype/interfaces/fsl/tests/test_auto_ProjThresh.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/fsl/tests/test_auto_ProjThresh.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/fsl/tests/test_auto_ProjThresh.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..dti import ProjThresh def test_ProjThresh_inputs(): input_map = dict(args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=Tr...
25.116279
67
0.64537
c8a05134caab6853f9e53271a8ed78ed1688cf53
6,449
py
Python
crys3d/images.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
crys3d/images.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
crys3d/images.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from gltbx.images import img_data inspector_img = img_data(width=32, height=32, mask=-1, encoded_data = """\ ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\ ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\ ffffffffffffffffff...
75.870588
79
0.969763
22072befe873499564a71364a5c946aacff5b32e
520
py
Python
pizzaca2/ca/migrations/0003_subca_last_modified.py
ffaraone/pizzaca2
6ecc64d34fe431f45f48e008699866ca53b3e1b0
[ "Apache-1.1" ]
null
null
null
pizzaca2/ca/migrations/0003_subca_last_modified.py
ffaraone/pizzaca2
6ecc64d34fe431f45f48e008699866ca53b3e1b0
[ "Apache-1.1" ]
null
null
null
pizzaca2/ca/migrations/0003_subca_last_modified.py
ffaraone/pizzaca2
6ecc64d34fe431f45f48e008699866ca53b3e1b0
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-02 09:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ca', '0002_ca_last_modified'), ] operations = [ migrations.AddField( ...
24.761905
122
0.638462
7d48cea7cc15636ecccef7ca135aad0e9d384441
2,632
py
Python
venv/lib/python3.8/site-packages/ansible_collections/kubernetes/core/tests/unit/module_utils/test_marshal.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
7
2019-06-17T21:46:31.000Z
2022-03-03T07:43:59.000Z
venv/lib/python3.8/site-packages/ansible_collections/kubernetes/core/tests/unit/module_utils/test_marshal.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
223
2019-01-17T19:22:40.000Z
2022-03-31T16:12:49.000Z
release/ansible/ansible_collections/kubernetes/core/tests/unit/module_utils/test_marshal.py
jmrodri/ocp-release-operator-sdk
fe08de5bb8fe56f3ea2868da7f467dae03cd3829
[ "Apache-2.0" ]
24
2019-01-17T19:19:49.000Z
2022-02-03T13:34:08.000Z
# Copyright [2017] [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 agreed to in writ...
28.301075
113
0.505319
c11519d21a032ea401ffd7365055b0d9334fc39c
3,500
py
Python
torchcmh/models/MSnet.py
chrisbyd/deep-cross-modal-hashing
b67bed412a499fdb619769d5132d897f5910c433
[ "MIT" ]
65
2019-12-08T12:11:53.000Z
2022-03-10T09:25:45.000Z
torchcmh/models/MSnet.py
silencelzx/deep-cross-modal-hashing
9784397c1076c81b43ebd856cb24b8a67cf8f41e
[ "MIT" ]
17
2020-05-07T09:22:20.000Z
2022-03-02T02:05:18.000Z
torchcmh/models/MSnet.py
silencelzx/deep-cross-modal-hashing
9784397c1076c81b43ebd856cb24b8a67cf8f41e
[ "MIT" ]
17
2020-04-02T06:38:49.000Z
2022-01-11T12:41:49.000Z
# -*- coding: utf-8 -*- # @Time : 2019/6/20 # @Author : Godder # @Github : https://github.com/WangGodder import torch from torch import nn from torch.nn import functional as F from torch.nn.functional import interpolate from torchcmh.models import BasicModule SEMANTIC_EMBED = 512 class MS_Block(nn.Module): ...
33.333333
89
0.577714
b362b050d9dfbd72888d27786f0e5d55a82e25bc
51,959
py
Python
aloha/create_aloha.py
jlrainbolt/MG5_v2_6_1
241f0c6f309342d6e8b813284467b2edd393c7d6
[ "NCSA" ]
5
2018-10-23T14:37:18.000Z
2021-11-22T20:59:02.000Z
aloha/create_aloha.py
jlrainbolt/MG5_v2_6_1
241f0c6f309342d6e8b813284467b2edd393c7d6
[ "NCSA" ]
2
2021-01-01T19:42:09.000Z
2022-03-12T12:22:02.000Z
aloha/create_aloha.py
jlrainbolt/MG5_v2_6_1
241f0c6f309342d6e8b813284467b2edd393c7d6
[ "NCSA" ]
4
2019-02-18T11:42:18.000Z
2021-11-11T20:46:08.000Z
################################################################################ # # Copyright (c) 2010 The MadGraph5_aMC@NLO Development team and Contributors # # This file is a part of the MadGraph5_aMC@NLO project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # h...
40.624707
187
0.5273
e41f0a4c39f9b762d501cdb1e4f53047de5b835f
660
py
Python
openprescribing/dmd/migrations/0007_auto_20171213_1355.py
rebkwok/openprescribing
28c7500a7e4cb725fc6cda0f8c58b07ac7e916a4
[ "MIT" ]
null
null
null
openprescribing/dmd/migrations/0007_auto_20171213_1355.py
rebkwok/openprescribing
28c7500a7e4cb725fc6cda0f8c58b07ac7e916a4
[ "MIT" ]
null
null
null
openprescribing/dmd/migrations/0007_auto_20171213_1355.py
rebkwok/openprescribing
28c7500a7e4cb725fc6cda0f8c58b07ac7e916a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2017-12-13 13:55 from __future__ import unicode_literals from datetime import date from django.db import migrations def convert_to_dates(apps, schema_editor): NCSOConcession = apps.get_model('dmd', 'NCSOConcession') for concession in NCSOConcession.objec...
25.384615
60
0.686364
94541e6ae31ed128d46449a413607caae2affdd8
1,419
py
Python
mongo.py
binary-signal/tuc-forum-crawler
75902eabee53868f4869fa21a83b1938081a05b4
[ "BSD-3-Clause" ]
null
null
null
mongo.py
binary-signal/tuc-forum-crawler
75902eabee53868f4869fa21a83b1938081a05b4
[ "BSD-3-Clause" ]
null
null
null
mongo.py
binary-signal/tuc-forum-crawler
75902eabee53868f4869fa21a83b1938081a05b4
[ "BSD-3-Clause" ]
null
null
null
from pymongo import MongoClient from pymongo.errors import ConnectionFailure from bson.objectid import ObjectId from pprint import pprint class MDB(object): def __init__(self, port, host, dbname, dbcollection): self.__port = port self.__host = host self.__dbname = dbname self.__dbc...
28.959184
76
0.606061
36f49a57da0996416b335a04349a31948b9a3560
6,591
py
Python
1-Training/train_logging.py
Pcoric/bert-stack-overflow
2cec618b3c12aad72cf8d9921e1539945fd772bd
[ "MIT" ]
3
2021-03-02T23:12:07.000Z
2022-01-19T16:10:01.000Z
1-Training/train_logging.py
Pcoric/bert-stack-overflow
2cec618b3c12aad72cf8d9921e1539945fd772bd
[ "MIT" ]
null
null
null
1-Training/train_logging.py
Pcoric/bert-stack-overflow
2cec618b3c12aad72cf8d9921e1539945fd772bd
[ "MIT" ]
2
2020-01-16T22:24:10.000Z
2020-01-16T22:39:11.000Z
import os import argparse import logging import pandas as pd import tensorflow as tf from absl import app from absl import flags from transformers import BertTokenizer from model import TFBertForMultiClassification from azureml.core.run import Run # Ignore warnings in logs logging.getLogger("transformers.tokenization_...
42.25
119
0.706873
b64e34f533a12bc093a59db2a9f957f0e9dae15a
3,148
py
Python
cowbird/cli/__init__.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
1
2021-02-04T18:56:36.000Z
2021-02-04T18:56:36.000Z
cowbird/cli/__init__.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
12
2021-02-05T22:01:10.000Z
2022-03-09T14:23:10.000Z
cowbird/cli/__init__.py
Ouranosinc/cowbird
108195ca6abbd58fd75b180f6fa7d40eab0f8ea5
[ "MIT" ]
null
null
null
import argparse import importlib import os import sys from typing import TYPE_CHECKING from cowbird import __meta__ from cowbird.cli.utils import get_logger_parser, subparser_help from cowbird.utils import get_logger if TYPE_CHECKING: from cowbird.cli.utils import ParserMaker, ParserRunner LOGGER = get_logger(__...
49.1875
120
0.673126
c80ae4f600d55e20b08a01db3e0a623c7851524f
3,962
py
Python
gradient.py
DylanFrank/optimize
8377262354eebfe827a5587726eb58e5c9f45e86
[ "MIT" ]
null
null
null
gradient.py
DylanFrank/optimize
8377262354eebfe827a5587726eb58e5c9f45e86
[ "MIT" ]
null
null
null
gradient.py
DylanFrank/optimize
8377262354eebfe827a5587726eb58e5c9f45e86
[ "MIT" ]
null
null
null
import numpy as np from numpy.linalg import norm from scipy.optimize import minimize_scalar, OptimizeResult def is_stop(next_val, current, tol): """ 停机准则梯度方法 :param next_val: :param current: :return: bool """ return norm(next_val - current, 2) / max(1, norm(current, 2)) < tol def fast_g...
34.452174
122
0.547956
a5d1b13817c2e5009ed80c78ea25bdbebe6c9a86
1,071
py
Python
bcs/contrib/sites/migrations/0003_set_site_domain_and_name.py
pavlovicr/bcsinstalacijski
8d9e76c6ffea97a5eeef16966d903f7a7ae5e2b9
[ "MIT" ]
2
2018-02-26T19:19:47.000Z
2018-02-26T19:19:50.000Z
bcs/contrib/sites/migrations/0003_set_site_domain_and_name.py
pavlovicr/bcs
e38a2cf988bf4470dedfb4ca0b02d3c4ba6b80f2
[ "MIT" ]
null
null
null
bcs/contrib/sites/migrations/0003_set_site_domain_and_name.py
pavlovicr/bcs
e38a2cf988bf4470dedfb4ca0b02d3c4ba6b80f2
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
24.906977
129
0.639589
4acff64ff5b1242ba01d29ff597a3c026094a617
3,475
py
Python
arcade/examples/view_screens_minimal.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2021-03-04T14:02:29.000Z
2021-03-04T14:02:29.000Z
arcade/examples/view_screens_minimal.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2019-08-11T18:47:27.000Z
2019-08-12T03:02:11.000Z
arcade/examples/view_screens_minimal.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
null
null
null
""" This program shows how to: * Display a sequence of screens in your game. The "arcade.View" class makes it easy to separate the code for each screen into its own class. * This example shows the absolute basics of using "arcade.View". See the "different_screens_example.py" for how to handle scree...
32.783019
87
0.644317
82ad83bd3bd35a0bc28c82b2d48837beb4933036
4,680
py
Python
espnet-semi-supervised/test/test_recog.py
ElinaBaral/espnet_speech2speech
fb9a02f71339eb5494656c5ff2fdebf5051cd2cd
[ "Apache-2.0" ]
1
2021-02-05T03:33:52.000Z
2021-02-05T03:33:52.000Z
espnet-semi-supervised/test/test_recog.py
ElinaBaral/espnet_speech2speech
fb9a02f71339eb5494656c5ff2fdebf5051cd2cd
[ "Apache-2.0" ]
null
null
null
espnet-semi-supervised/test/test_recog.py
ElinaBaral/espnet_speech2speech
fb9a02f71339eb5494656c5ff2fdebf5051cd2cd
[ "Apache-2.0" ]
1
2021-02-05T03:33:54.000Z
2021-02-05T03:33:54.000Z
# coding: utf-8 # Copyright 2018 Hiroshi Seki # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import lm_pytorch import lm_chainer import argparse import importlib import numpy import pytest def make_arg(**kwargs): defaults = dict( elayers=4, subsample="1_2_2_1_1", etype="b...
31.621622
84
0.583547
8899e0b5db45482c5c6a53d02c79daaed21e878d
1,071
py
Python
scripts/field/EntereurelTW.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/field/EntereurelTW.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/field/EntereurelTW.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
# Elluel (101050000) from net.swordie.ms.constants import JobConstants mercTutEnd = 24009 kingsSeat = 101050010 kingsSeatExit = 3 def exitFromKingsSeat(): return sm.getPreviousFieldID() == kingsSeat and sm.getPreviousPortalID() == kingsSeatExit # Only play cutscene for Mercedes when exiting from King's Seat th...
28.184211
133
0.724556
ce91d5a02b1fd3a7e6e0f5851633c8104e138e4d
246
py
Python
setup.py
lucascoelhof/rosinterface_handler
5c2e8968fecbe821ef7ed2f36e398fe897828ceb
[ "BSD-2-Clause-FreeBSD" ]
10
2017-12-05T15:10:31.000Z
2021-06-02T14:01:18.000Z
setup.py
lucascoelhof/rosinterface_handler
5c2e8968fecbe821ef7ed2f36e398fe897828ceb
[ "BSD-2-Clause-FreeBSD" ]
3
2017-11-25T15:45:47.000Z
2019-10-11T20:21:56.000Z
setup.py
KIT-MRT/rosinterface_handler
521e280ff6990256db63b11d523a846aa4802443
[ "BSD-2-Clause-FreeBSD" ]
3
2019-10-03T11:09:04.000Z
2020-03-26T17:26:15.000Z
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['rosinterface_handler'], package_dir={'': 'src'}, requires=[] ) setup(**d)
18.923077
60
0.731707
220f04861660cca1e4e3f10841dd98ff7b842e55
15,634
py
Python
colossalai/communication/p2p.py
feifeibear/ColossalAI
4c4388c46ed1cee9e535bf9ea5a5e5fb61d9a769
[ "Apache-2.0" ]
null
null
null
colossalai/communication/p2p.py
feifeibear/ColossalAI
4c4388c46ed1cee9e535bf9ea5a5e5fb61d9a769
[ "Apache-2.0" ]
null
null
null
colossalai/communication/p2p.py
feifeibear/ColossalAI
4c4388c46ed1cee9e535bf9ea5a5e5fb61d9a769
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from typing import List, Tuple, Union import torch import torch.distributed as dist from colossalai.context.parallel_mode import ParallelMode from colossalai.core import global_context as gpc from colossalai.utils import get_current_device from functools import reduce i...
45.054755
120
0.590892
8d36d46076f74a25a0a97e1478c79119d5f1e242
1,963
py
Python
aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/DetachAggregateConfigRuleToCompliancePackRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/DetachAggregateConfigRuleToCompliancePackRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/DetachAggregateConfigRuleToCompliancePackRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
40.061224
97
0.775853
1befaad97ed9e6249c59a54010b4a8b730aa3f1c
27,570
py
Python
sam/scraper/app.py
pbarber/ni-covid-tweets
fd108d8d570aafe4dca6741066af8c2ef92e6b03
[ "MIT" ]
null
null
null
sam/scraper/app.py
pbarber/ni-covid-tweets
fd108d8d570aafe4dca6741066af8c2ef92e6b03
[ "MIT" ]
18
2021-03-30T19:45:37.000Z
2022-02-02T18:36:17.000Z
sam/scraper/app.py
pbarber/ni-covid-tweets
fd108d8d570aafe4dca6741066af8c2ef92e6b03
[ "MIT" ]
1
2021-12-13T23:08:32.000Z
2021-12-13T23:08:32.000Z
import json import datetime import re import os import logging from copy import deepcopy import requests from bs4 import BeautifulSoup import boto3 from user_agent import generate_user_agent from shared import S3_scraper_index, launch_lambda_async, get_url, get_and_sort_index def extract_doh_file_list(text,number,re...
45.345395
1,065
0.621146
8b693c3a37c1db79fbe8fd1c9ea9cbe33ecbf95a
550
py
Python
errors.py
ckyycc/hana_os_monitor_script
385a9b4bf29b4e617fec7467b38aaebc042a7d32
[ "MIT" ]
2
2019-03-04T22:14:03.000Z
2021-04-25T02:13:51.000Z
errors.py
ckyycc/hana_os_monitor_script
385a9b4bf29b4e617fec7467b38aaebc042a7d32
[ "MIT" ]
null
null
null
errors.py
ckyycc/hana_os_monitor_script
385a9b4bf29b4e617fec7467b38aaebc042a7d32
[ "MIT" ]
1
2019-01-16T14:14:29.000Z
2019-01-16T14:14:29.000Z
"""Provides exceptions used by the hana_os_monitor modules. All exceptions here start with "Monitor" and end with "Error".""" class MonitorError(Exception): """The root of all Monitor errors.""" pass class MonitorOSOpError(MonitorError): """Raised by OS Operator""" pass class MonitorDBOpError(Moni...
20.37037
65
0.694545
5d16ea6b7a54c0dd04f7ebdc586355190b839b02
4,028
py
Python
keywordTool/pubfiles/src/keyGen.py
dsofowote/KW-Tool
d8d9a5a6f79c33732f0301b7c72ec21d1df4d750
[ "MIT" ]
null
null
null
keywordTool/pubfiles/src/keyGen.py
dsofowote/KW-Tool
d8d9a5a6f79c33732f0301b7c72ec21d1df4d750
[ "MIT" ]
null
null
null
keywordTool/pubfiles/src/keyGen.py
dsofowote/KW-Tool
d8d9a5a6f79c33732f0301b7c72ec21d1df4d750
[ "MIT" ]
null
null
null
import sys; print(sys.version) import array as arr import os import json import csv filelist = ["Test entry"] dataList = [] for root, dirs, files in os.walk(".", topdown=False): i = 0 for name in files: if name.endswith("default.dep"): filenames = os.path.join(root, name) ...
36.618182
102
0.456058
7350a722387f7670b10e47635909977409300d4b
1,962
py
Python
rexfw/test/cases/communicators/__init__.py
simeoncarstens/rexfw
b31e17a77767cd1357407a0343fb74d9c3247b16
[ "Unlicense", "MIT" ]
null
null
null
rexfw/test/cases/communicators/__init__.py
simeoncarstens/rexfw
b31e17a77767cd1357407a0343fb74d9c3247b16
[ "Unlicense", "MIT" ]
7
2021-01-22T13:37:49.000Z
2021-03-05T15:27:44.000Z
rexfw/test/cases/communicators/__init__.py
tweag/rexfw
b31e17a77767cd1357407a0343fb74d9c3247b16
[ "Unlicense", "MIT" ]
1
2021-01-07T14:37:22.000Z
2021-01-07T14:37:22.000Z
''' ''' import unittest from collections import deque from rexfw import Parcel from rexfw.communicators import AbstractCommunicator from rexfw.communicators.mpi import MPICommunicator class MockCommunicator(AbstractCommunicator): def __init__(self): self.sent = deque() self.received = deque() ...
22.813953
73
0.639653
749aa8c4a72054e774f385a69e2235a2f900d5c8
986
py
Python
jarviscli/plugins/systemOptions.py
lakshay3697/Pydex
348add631838280f904ddb6869d511216b165dc4
[ "MIT" ]
1
2019-06-24T18:27:52.000Z
2019-06-24T18:27:52.000Z
jarviscli/plugins/systemOptions.py
lakshay3697/Pydex
348add631838280f904ddb6869d511216b165dc4
[ "MIT" ]
null
null
null
jarviscli/plugins/systemOptions.py
lakshay3697/Pydex
348add631838280f904ddb6869d511216b165dc4
[ "MIT" ]
null
null
null
import os import subprocess from platform import architecture, dist, release from platform import system as sys from colorama import Fore from plugin import LINUX, MACOS, plugin @plugin(plattform=MACOS, native="pmset") def screen_off__MAC(jarvis, s): """Turn of screen instantly""" os.system('pmset displaysl...
25.947368
61
0.680527
05b5db8eb0f20b3b136089fde8d6f954bf1835af
413
py
Python
t_w_d_project/rango/migrations/0002_auto_20180616_0140.py
Spitpat/ranguito
e7b6483a091ae94af57a9e3daee16628a3006b5b
[ "MIT" ]
null
null
null
t_w_d_project/rango/migrations/0002_auto_20180616_0140.py
Spitpat/ranguito
e7b6483a091ae94af57a9e3daee16628a3006b5b
[ "MIT" ]
null
null
null
t_w_d_project/rango/migrations/0002_auto_20180616_0140.py
Spitpat/ranguito
e7b6483a091ae94af57a9e3daee16628a3006b5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2018-06-16 01:40 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rango', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
20.65
58
0.617433
f9f879f68d3afb5ea3baba62475dd1a0802c86d4
1,739
py
Python
25. Reverse Nodes in k-Group.py
Nriver/leetcode
e0b30fae8a31513172fcbd13d67eded8922ba785
[ "MIT" ]
null
null
null
25. Reverse Nodes in k-Group.py
Nriver/leetcode
e0b30fae8a31513172fcbd13d67eded8922ba785
[ "MIT" ]
null
null
null
25. Reverse Nodes in k-Group.py
Nriver/leetcode
e0b30fae8a31513172fcbd13d67eded8922ba785
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: zengjq # @Date: 2020-05-22 09:27:18 # @Last Modified by: zengjq # @Last Modified time: 2020-05-22 09:59:05 # https://leetcode.com/problems/reverse-nodes-in-k-group/ class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # Run...
28.048387
104
0.527315
a81b3ac829f62712009bd84ece3cf8ca7d8267e7
1,598
py
Python
pex/build_system/testing.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/build_system/testing.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/build_system/testing.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import glob import os from pex.build_system.pep_517 import build_sdist from pex.dist_metadata import Distribution from pex.pep_440 import Version f...
32.612245
92
0.737797
802612d42d46aaa626b4cd5218cb8f2419b28d5f
2,831
py
Python
examples/synthetic_vectors/main.py
blt2114/bayesian-coresets
59633c97aeaa78442e047aba726845dbebc80e00
[ "MIT" ]
1
2019-03-30T15:56:34.000Z
2019-03-30T15:56:34.000Z
examples/synthetic_vectors/main.py
blt2114/bayesian-coresets
59633c97aeaa78442e047aba726845dbebc80e00
[ "MIT" ]
null
null
null
examples/synthetic_vectors/main.py
blt2114/bayesian-coresets
59633c97aeaa78442e047aba726845dbebc80e00
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import bayesiancoresets as bc import time import warnings warnings.filterwarnings('ignore', category=UserWarning) #tests will generate lots of warnings re: reaching numeric limits; ignore those here n_trials = 20 Ms = np.unique(np.logspace(0., 4., 100, dtype=n...
35.835443
144
0.583893
9e1dc76061b98583f76075326de0528f3399366f
1,823
py
Python
app/app.py
mvanderlee/beanstalk-fastapi-socketio
68d41e3f2e46024b8e9f733dd1370d2c32156e81
[ "Unlicense" ]
2
2020-11-26T06:24:11.000Z
2022-03-04T14:39:41.000Z
app/app.py
mvanderlee/beanstalk-fastapi-socketio
68d41e3f2e46024b8e9f733dd1370d2c32156e81
[ "Unlicense" ]
null
null
null
app/app.py
mvanderlee/beanstalk-fastapi-socketio
68d41e3f2e46024b8e9f733dd1370d2c32156e81
[ "Unlicense" ]
null
null
null
import random from threading import Lock from typing import Any, Dict from fastapi import FastAPI, Request from fastapi.responses import HTMLResponse from fastapi.templating import Jinja2Templates from fastapi_socketio import SocketManager from .loading_messages import loading_messages app = FastAPI() socket_manager...
31.431034
113
0.736149
cde19714c168dbf42ae441e1af15b6e6aa78b568
51,822
py
Python
mindspore/train/serialization.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
null
null
null
mindspore/train/serialization.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
null
null
null
mindspore/train/serialization.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
43.077307
119
0.643954
2754c44dbf48e100af8c8eae791017248573a3d5
935
py
Python
Pywikibot/export/wowpedia_html.py
Ketho/WowpediaDoc
4c9388157f3311e1be4c4f8bc5983dd28ab171c4
[ "MIT" ]
null
null
null
Pywikibot/export/wowpedia_html.py
Ketho/WowpediaDoc
4c9388157f3311e1be4c4f8bc5983dd28ab171c4
[ "MIT" ]
null
null
null
Pywikibot/export/wowpedia_html.py
Ketho/WowpediaDoc
4c9388157f3311e1be4c4f8bc5983dd28ab171c4
[ "MIT" ]
null
null
null
# crappy script that gets category pages from html import requests from html.parser import HTMLParser class MyHTMLParser(HTMLParser): def handle_data(self, data): if data.find("AbandonQuest") > 0: l = sorted(list(data.split("\n"))) xml = get_api_pages(l) write_file("Pywikibot/export/wowpedia_api.xml", xml)...
23.375
62
0.708021
bae89c5460a10a0eb67b9d005eabf6c8e8dcf95c
24,634
py
Python
sirepo/sim_data/srw.py
radiasoft/sirepo
db3d1737bab7a84d39d456c0e8913c88deff3c31
[ "Apache-2.0" ]
49
2015-07-29T14:11:29.000Z
2021-12-10T15:24:26.000Z
sirepo/sim_data/srw.py
radiasoft/sirepo
db3d1737bab7a84d39d456c0e8913c88deff3c31
[ "Apache-2.0" ]
3,732
2015-08-03T22:07:26.000Z
2022-03-31T22:48:33.000Z
sirepo/sim_data/srw.py
radiasoft/sirepo
db3d1737bab7a84d39d456c0e8913c88deff3c31
[ "Apache-2.0" ]
28
2015-11-20T16:23:46.000Z
2021-09-20T07:22:48.000Z
# -*- coding: utf-8 -*- u"""simulation data operations :copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkconfig from pykern import pkio from pykern.pkcol...
41.19398
106
0.568686
9dbdc5a1a341b6505ab4cd0d647a99c3ca5f4107
1,604
py
Python
code/utils/functions/benjamini_hochberg.py
berkeley-stat159/project-alpha
330d025c4eda94d390a82e86deecb791086c9dbf
[ "BSD-3-Clause" ]
4
2015-10-30T23:08:32.000Z
2021-06-24T03:44:02.000Z
code/utils/functions/benjamini_hochberg.py
berkeley-stat159/project-alpha
330d025c4eda94d390a82e86deecb791086c9dbf
[ "BSD-3-Clause" ]
179
2015-10-25T15:59:56.000Z
2017-10-31T02:40:24.000Z
code/utils/functions/benjamini_hochberg.py
berkeley-stat159/project-alpha
330d025c4eda94d390a82e86deecb791086c9dbf
[ "BSD-3-Clause" ]
11
2015-10-20T19:15:10.000Z
2019-02-23T19:33:03.000Z
from __future__ import absolute_import, division, print_function import numpy as np def bh_procedure(p_vals, Q): """ Return an array (mask) of the significant, valid tests out of the p-values. not significant p-values are denoted by ones. Parameters ---------- p_vals: p-values from the t_stat function (1-d...
28.642857
80
0.692643
526ad3163944e67a51bd077fc61ed8a771a6f844
47,928
py
Python
tensorflow/python/kernel_tests/embedding_ops_test.py
KosingZhu/tensorflow
7ac2521a4e609ddef0f0ea3ffc2e76102da934d7
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/kernel_tests/embedding_ops_test.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/kernel_tests/embedding_ops_test.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.651399
80
0.658154
22d981d2acd290950f441a99d9a10fb7830a9c67
2,017
py
Python
RNN/RNN/test/saliency_map.py
ylyanlin/ReSIL
fda7528687f11bc1b00f6d6dbfdee23906da159a
[ "MIT" ]
1
2022-02-26T00:00:38.000Z
2022-02-26T00:00:38.000Z
RNN/RNN/test/saliency_map.py
ylyanlin/ReSIL
fda7528687f11bc1b00f6d6dbfdee23906da159a
[ "MIT" ]
null
null
null
RNN/RNN/test/saliency_map.py
ylyanlin/ReSIL
fda7528687f11bc1b00f6d6dbfdee23906da159a
[ "MIT" ]
null
null
null
import os import sys import pickle import numpy import heapq def compute_saliency_map(filename): with open(filename,'rb') as f: total_result = pickle.load(f) function_info = total_result['func_name'] gradients = total_result['gradient'] function_index = 0 print("len of gradients", len(gradients)) for ...
24.301205
85
0.667328
a503f0f8fa678edec3ac9faa1d282a3c26ec3e7d
2,008
py
Python
scratch/shawn/logpackets.py
slaclab/pysmurf
0fef2dda87e6da292485266b3bf630c9b7ca97dc
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T02:37:59.000Z
2022-03-09T16:42:34.000Z
scratch/shawn/logpackets.py
slaclab/pysmurf
0fef2dda87e6da292485266b3bf630c9b7ca97dc
[ "BSD-3-Clause-LBNL" ]
446
2019-04-10T04:46:20.000Z
2022-03-15T20:27:57.000Z
scratch/shawn/logpackets.py
slaclab/pysmurf
0fef2dda87e6da292485266b3bf630c9b7ca97dc
[ "BSD-3-Clause-LBNL" ]
13
2019-02-05T18:02:05.000Z
2021-03-02T18:41:49.000Z
from epics import PV import os import sys slots=[2,3,4,5,6,7] cadence_sec=60 def get_packet_stats(slot,timeout=5): frameCntPV=PV(f'smurf_server_s{slot}:AMCc:SmurfProcessor:FrameRxStats:FrameCnt') frameSizePV=PV(f'smurf_server_s{slot}:AMCc:SmurfProcessor:FrameRxStats:FrameSize') frameLossCntPV=PV(f'smurf_s...
38.615385
109
0.646912
7c5d94fa69b5d72ebad5c0f3f383d17afae328ea
16,282
py
Python
Interface/JSON Editor/json_layoutOld.py
arouse01/pyoperant
e61de84862096720cca7dbecf517ee11c5d504d4
[ "BSD-3-Clause" ]
1
2019-01-26T17:19:47.000Z
2019-01-26T17:19:47.000Z
Interface/JSON Editor/json_layoutOld.py
arouse01/pyoperant
e61de84862096720cca7dbecf517ee11c5d504d4
[ "BSD-3-Clause" ]
null
null
null
Interface/JSON Editor/json_layoutOld.py
arouse01/pyoperant
e61de84862096720cca7dbecf517ee11c5d504d4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'json_layout2.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(...
60.753731
118
0.744503
df9b4ebedd02514962424a1cc0a1b5aae502b670
1,896
py
Python
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
null
null
null
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
9
2019-12-04T23:15:59.000Z
2022-02-10T09:08:38.000Z
friendcircle/models.py
jossafossa/Project24_backend
bb5cc91d21c9f93034b85b3e94e829f7ab33c565
[ "MIT" ]
null
null
null
from django.db import models class FriendCircle(models.Model): name = models.CharField(blank=True, max_length=255) description = models.CharField(blank=True, max_length=1000) interests = models.ManyToManyField('interests.Interest', blank=True) members = models.ManyToManyField( 'users.CustomUser...
35.773585
103
0.68038
ab3ea1821f388108edf753420e90d37c8abfcbc0
2,479
py
Python
PaddleCV/3d_vision/PointNet++/ext_op/tests/test_query_ball_op.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleCV/3d_vision/PointNet++/ext_op/tests/test_query_ball_op.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
null
null
null
PaddleCV/3d_vision/PointNet++/ext_op/tests/test_query_ball_op.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
3
2021-09-28T15:33:45.000Z
2021-09-29T01:44:32.000Z
# Copyright (c) 2019 PaddlePaddle 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 app...
35.414286
98
0.63695
a0528d1a7629fa78323a91457e911571180dd5dd
2,377
py
Python
setup.py
acidbotmaker/python-sqs-listener
71e62e763def9636c9b01be57a812b57cf24f0b8
[ "Apache-2.0" ]
null
null
null
setup.py
acidbotmaker/python-sqs-listener
71e62e763def9636c9b01be57a812b57cf24f0b8
[ "Apache-2.0" ]
null
null
null
setup.py
acidbotmaker/python-sqs-listener
71e62e763def9636c9b01be57a812b57cf24f0b8
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( ...
33.013889
79
0.678166
fc580bcd4a9469fdc7541587a95030991c498f85
12,968
py
Python
slowfast/config/defaults.py
vhvkhoa/SlowFast
c26ea06fecc436e507ff554af94d4fa83e29bc31
[ "Apache-2.0" ]
null
null
null
slowfast/config/defaults.py
vhvkhoa/SlowFast
c26ea06fecc436e507ff554af94d4fa83e29bc31
[ "Apache-2.0" ]
null
null
null
slowfast/config/defaults.py
vhvkhoa/SlowFast
c26ea06fecc436e507ff554af94d4fa83e29bc31
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """Configs.""" from fvcore.common.config import CfgNode # ----------------------------------------------------------------------------- # Config definition # -----------------------------------------------------------------...
27.888172
85
0.603948
258642509cfdff1cf29bc41204de1a956b6ac59c
66,270
py
Python
onnxruntime/python/tools/symbolic_shape_infer.py
NathanTP/onnxruntime
11c194ce290eb6309c44c1ecf1991a84f26dbf51
[ "MIT" ]
null
null
null
onnxruntime/python/tools/symbolic_shape_infer.py
NathanTP/onnxruntime
11c194ce290eb6309c44c1ecf1991a84f26dbf51
[ "MIT" ]
null
null
null
onnxruntime/python/tools/symbolic_shape_infer.py
NathanTP/onnxruntime
11c194ce290eb6309c44c1ecf1991a84f26dbf51
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -*- coding: UTF-8 -*- import argparse import numpy as np import onnx import sys from onnx import helper, numpy_helper, shape_inference import sympy from packaging import version assert version.parse(onnx.__version__) >= ve...
50.898618
181
0.579418
f7b6fcc876568ae09f5dbde6e99e47cacf519143
897
py
Python
weather.py
Coder-007/pyweather
a82f87eab71f9e22874b5a6a2f8b11477306a46a
[ "MIT" ]
null
null
null
weather.py
Coder-007/pyweather
a82f87eab71f9e22874b5a6a2f8b11477306a46a
[ "MIT" ]
null
null
null
weather.py
Coder-007/pyweather
a82f87eab71f9e22874b5a6a2f8b11477306a46a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import requests import json import sys class weather: def __init__(self,city_name): info = get_info(city_name) self.name = info['name'] self.country = info['sys']['country'] self.dt = info['dt'] self.temp = info['main']['temp'] self.temp_min = info['main']['temp_min'] self.temp_m...
25.628571
87
0.656633
0885214fb48578c8e3ea76755a1a25e950886eb1
5,715
py
Python
python_modules/dagster/dagster/daemon/controller.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/daemon/controller.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/daemon/controller.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
import datetime import uuid import pendulum from dagster import check from dagster.core.run_coordinator import QueuedRunCoordinator from dagster.core.scheduler import DagsterDaemonScheduler from dagster.daemon.daemon import SchedulerDaemon, SensorDaemon, get_default_daemon_logger from dagster.daemon.run_coordinator.qu...
34.636364
99
0.686264
ad838cfa1f6c86ea2cb39dc13df1710e9a5c6d1d
8,071
py
Python
Code/Python/Main_analysis.py
spicella/Intro_to_ComplexSystems-Kuramoto
64c027f1f0d16b2358d6889de453c1474d3dea6b
[ "MIT" ]
1
2020-01-04T22:36:10.000Z
2020-01-04T22:36:10.000Z
Code/Python/Main_analysis.py
spicella/Intro_to_ComplexSystems-Kuramoto
64c027f1f0d16b2358d6889de453c1474d3dea6b
[ "MIT" ]
1
2020-01-01T16:13:24.000Z
2020-01-01T16:13:24.000Z
Code/Python/Main_analysis.py
spicella/IntroCS-Kuramoto
64c027f1f0d16b2358d6889de453c1474d3dea6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import os from sympy import * import pandas as pd import numpy as np import scipy.fftpack import matplotlib as mpl import matplotlib.pyplot as plt plt.style.use("seaborn-paper") def find_nearest(array, value): array = np.asarray(array) idx = (np.abs(array - val...
24.164671
177
0.674018
7f7cf0485c0c9f75200da897f700e2cab49fb491
377
py
Python
run.py
larrabyte/sddtask
baa6e9ed68951cfe2a7b66a9a54b217744730d46
[ "BSD-2-Clause" ]
2
2021-08-13T01:44:00.000Z
2021-09-29T05:40:57.000Z
run.py
larrabyte/sddtask
baa6e9ed68951cfe2a7b66a9a54b217744730d46
[ "BSD-2-Clause" ]
null
null
null
run.py
larrabyte/sddtask
baa6e9ed68951cfe2a7b66a9a54b217744730d46
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import os # Get the folder this script is in and add the source folder to the PATH. scriptPath = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(1, os.path.join(scriptPath, 'src')) import main if __name__ == "__main__": # Ensure we are in the root folder for resourc...
23.5625
73
0.724138
987572119e6fb7786cd6be5f5fb6445d18df5d7f
2,221
py
Python
claf/metric/wikisql_lib/dbengine.py
clovaai/claf
97d5379b4c6014b527b894cac4e761ec8fec67a6
[ "MIT" ]
10
2019-06-11T00:59:51.000Z
2021-11-06T09:58:30.000Z
claf/metric/wikisql_lib/dbengine.py
clovaai/claf
97d5379b4c6014b527b894cac4e761ec8fec67a6
[ "MIT" ]
null
null
null
claf/metric/wikisql_lib/dbengine.py
clovaai/claf
97d5379b4c6014b527b894cac4e761ec8fec67a6
[ "MIT" ]
4
2019-08-16T20:44:31.000Z
2020-10-29T11:03:15.000Z
import records import re from babel.numbers import parse_decimal, NumberFormatError schema_re = re.compile(r"\((.+)\)") num_re = re.compile(r"[-+]?\d*\.\d+|\d+") agg_ops = ["", "MAX", "MIN", "COUNT", "SUM", "AVG"] cond_ops = ["=", ">", "<", "OP"] class DBEngine: # pragma: no cover def __init__(self, fdb): ...
38.293103
97
0.554255
bcedfad95e350f67f0f77d1202048bf9f05831ee
2,064
py
Python
networkunit/plots/plot_covar_pdf_ei.py
morales-gregorio/NetworkUnit
b858c3b2698fe3c0a7324ae8b8b388b74fd13c4d
[ "BSD-3-Clause" ]
8
2017-11-16T08:45:48.000Z
2021-11-29T16:51:45.000Z
networkunit/plots/plot_covar_pdf_ei.py
morales-gregorio/NetworkUnit
b858c3b2698fe3c0a7324ae8b8b388b74fd13c4d
[ "BSD-3-Clause" ]
17
2017-11-16T07:53:26.000Z
2021-05-07T10:27:34.000Z
networkunit/plots/plot_covar_pdf_ei.py
russelljjarvis/NetworkUnit
32179371d3a0ba354e6637cf4f97ba70522d4054
[ "BSD-3-Clause" ]
5
2019-03-23T00:55:33.000Z
2020-01-24T10:12:11.000Z
import numpy as np #import matplotlib # Force matplotlib to not use any Xwindows backend. #matplotlib.use('Agg') import matplotlib.pyplot as plt #============================================================================== class covar_pdf_ei: """ Plots the probability density distributions of prediction and...
34.983051
79
0.549903
56e2963589906ef844f4fd99f52a5ff60e8a786f
931
py
Python
remove-nans.py
zooniverse/planet-hunters-importer
9220ba19802e617654483cd696d38d10e904506c
[ "Apache-2.0" ]
1
2019-07-22T08:31:27.000Z
2019-07-22T08:31:27.000Z
remove-nans.py
zooniverse/planet-hunters-importer
9220ba19802e617654483cd696d38d10e904506c
[ "Apache-2.0" ]
null
null
null
remove-nans.py
zooniverse/planet-hunters-importer
9220ba19802e617654483cd696d38d10e904506c
[ "Apache-2.0" ]
null
null
null
import json import math import os for path in ('/data/json_lightcurve/sims/', '/data/json_lightcurve/'): for json_file in os.listdir(path): if not json_file.endswith('.json'): continue with open(os.path.join(path, json_file)) as f: try: d = json.load(f) ...
32.103448
73
0.498389
e11c16dd6e47de808ccc5ca485792daf4bb5f016
12,554
py
Python
yubikit/management.py
nevun/yubikey-manager
01ba3dac6237bb05456820176ebadd6350991c2b
[ "BSD-2-Clause" ]
null
null
null
yubikit/management.py
nevun/yubikey-manager
01ba3dac6237bb05456820176ebadd6350991c2b
[ "BSD-2-Clause" ]
null
null
null
yubikit/management.py
nevun/yubikey-manager
01ba3dac6237bb05456820176ebadd6350991c2b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2020 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
33.566845
88
0.658913
33608a01f86986197e73e9bef3aeea3d6402d2f1
17,931
py
Python
selfdrive/thermald/thermald.py
nasser-glx/openpilot22
fdd3c69d1af0d4ae318760a99022f0e8eb4730ff
[ "MIT" ]
null
null
null
selfdrive/thermald/thermald.py
nasser-glx/openpilot22
fdd3c69d1af0d4ae318760a99022f0e8eb4730ff
[ "MIT" ]
null
null
null
selfdrive/thermald/thermald.py
nasser-glx/openpilot22
fdd3c69d1af0d4ae318760a99022f0e8eb4730ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import datetime import os import time from pathlib import Path from typing import Dict, Optional, Tuple from collections import namedtuple, OrderedDict import psutil from smbus2 import SMBus import cereal.messaging as messaging from cereal import log from common.filter_simple import FirstOrderF...
39.322368
165
0.72489
038b7e750287bef9e42054f90f60361858b2d6fb
223
py
Python
cmapBQ/auth.py
cmap/cmapBQ
4bac69bd683264f40ee6a7716b62a01a6b2f2f27
[ "MIT" ]
5
2020-12-18T13:45:35.000Z
2021-10-08T04:07:59.000Z
cmapBQ/auth.py
cmap/cmapBQ
4bac69bd683264f40ee6a7716b62a01a6b2f2f27
[ "MIT" ]
2
2020-12-01T13:41:31.000Z
2020-12-17T14:32:23.000Z
cmapBQ/auth.py
cmap/cmapBQ
4bac69bd683264f40ee6a7716b62a01a6b2f2f27
[ "MIT" ]
4
2020-12-26T11:07:14.000Z
2021-11-04T07:17:48.000Z
import os def _check_path_exists(): PATH = os.path.expanduser('~/.cmapBQ') if os.path.exists(PATH): pass else: os.mkdir(PATH) return PATH def _get_credentials(): _check_path_exists()
14.866667
42
0.623318
0539e806cc7e9f79d9d67ed0bdc182446bc777f6
499
py
Python
trains/ATIO.py
thuiar/Self-MM
c4525c15f9c16859a371d48e0c822172eb4b2312
[ "MIT" ]
77
2021-02-04T05:08:13.000Z
2022-03-31T02:19:38.000Z
trains/ATIO.py
Columbine21/Self-MM
9453dab01a897e2d341fa6c8c473ab827e82fab3
[ "MIT" ]
12
2021-03-17T03:19:34.000Z
2022-02-28T11:46:45.000Z
trains/ATIO.py
Columbine21/Self-MM
9453dab01a897e2d341fa6c8c473ab827e82fab3
[ "MIT" ]
14
2021-02-16T02:18:42.000Z
2022-03-11T07:02:20.000Z
""" AIO -- All Trains in One """ import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.nn.parameter import Parameter from torch.nn.init import xavier_uniform, xavier_normal, orthogonal from trains.multiTask import * __all__ = ['ATIO'] class ATIO(): def ...
21.695652
67
0.685371
94c4152209e50dd25603b5dd219e03856a03c1c0
9,546
py
Python
pyxhook/hookmanager.py
saraivaufc/PySpy
711a14da559c0315335eaf843f6d2a68daf9acbf
[ "MIT" ]
null
null
null
pyxhook/hookmanager.py
saraivaufc/PySpy
711a14da559c0315335eaf843f6d2a68daf9acbf
[ "MIT" ]
null
null
null
pyxhook/hookmanager.py
saraivaufc/PySpy
711a14da559c0315335eaf843f6d2a68daf9acbf
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import re import time import threading from Xlib import X, XK, display, error from Xlib.ext import record from Xlib.protocol import rq class HookManager(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.finished = threading.Event() ...
39.775
240
0.582548
4b080e5eae173cbb66ecd56ba2dcca1d005faa7a
7,961
py
Python
c_example/framework/checkapi_fs.py
JustinCappos/checkapi
2508c414869eda3479e1384b1bea65ec1e749d3b
[ "Apache-2.0" ]
null
null
null
c_example/framework/checkapi_fs.py
JustinCappos/checkapi
2508c414869eda3479e1384b1bea65ec1e749d3b
[ "Apache-2.0" ]
null
null
null
c_example/framework/checkapi_fs.py
JustinCappos/checkapi
2508c414869eda3479e1384b1bea65ec1e749d3b
[ "Apache-2.0" ]
null
null
null
""" Define a virtual file system including creation, deletion, and manipulation of directories, files, and file paths """ import os import checkapi_globals as glob from framework.checkapi_exceptions import * def get_std_abs_path(path): """ Create a standardized absolute file path from a relative or absolute pat...
25.113565
85
0.647657
3d57d05e3781fda697f330e0854f04cc714c0c59
881
py
Python
src/pylero/planning_constraint.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
src/pylero/planning_constraint.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
src/pylero/planning_constraint.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import absolute_import, division, print_function from __future__ import unicode_literals from pylero.base_polarion import BasePolarion from pylero.enum_option_id import EnumOptionId class PlanningConstraint(BasePolarion): """Object to handle the Polarion WSDL tns5:PlanningCo...
31.464286
71
0.659478