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
2e56a21ee0064aad8337abb9489cfc89eeb27322
4,955
py
Python
docs/conf.py
spewil/RTGraph
0e3f4502988a36866ac2aaa27e232ade2128d7ea
[ "MIT" ]
43
2015-06-10T23:26:03.000Z
2021-12-16T11:40:40.000Z
docs/conf.py
spewil/RTGraph
0e3f4502988a36866ac2aaa27e232ade2128d7ea
[ "MIT" ]
3
2017-06-16T13:29:02.000Z
2019-03-12T22:33:26.000Z
docs/conf.py
spewil/RTGraph
0e3f4502988a36866ac2aaa27e232ade2128d7ea
[ "MIT" ]
31
2015-03-19T11:59:53.000Z
2021-10-10T13:15:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # RTGraph documentation build configuration file, created by # sphinx-quickstart on Tue Dec 20 22:19:34 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
30.58642
79
0.683552
4e18ca2164579871a64ba9bda93e7d956f7fa595
395
py
Python
beautifultable/compat.py
digitronik/beautifultable
23ce72f1d2491f3015e6419e828e2ea499404ecd
[ "MIT" ]
null
null
null
beautifultable/compat.py
digitronik/beautifultable
23ce72f1d2491f3015e6419e828e2ea499404ecd
[ "MIT" ]
null
null
null
beautifultable/compat.py
digitronik/beautifultable
23ce72f1d2491f3015e6419e828e2ea499404ecd
[ "MIT" ]
null
null
null
import sys PY3 = sys.version_info[0] == 3 if PY3: to_unicode = str basestring = (str, bytes) from itertools import zip_longest from collections.abc import Iterable else: # pragma: no cover basestring = basestring to_unicode = unicode # noqa: F821 from itertools import izip_longest as zi...
24.6875
67
0.703797
da3c93f3300d62ee4bf391d38d9382f29dd0e9db
2,955
py
Python
fridrich/server/WStationFuncs.py
Nilusink/Fridrich
73fb361207af9984ea5d9413c28c90d8fc56d33c
[ "MIT" ]
null
null
null
fridrich/server/WStationFuncs.py
Nilusink/Fridrich
73fb361207af9984ea5d9413c28c90d8fc56d33c
[ "MIT" ]
null
null
null
fridrich/server/WStationFuncs.py
Nilusink/Fridrich
73fb361207af9984ea5d9413c28c90d8fc56d33c
[ "MIT" ]
null
null
null
""" for weather-stations to commit data to the pool Author: Nilusink """ from fridrich.server.server_funcs import send_success from fridrich.classes import User from fridrich.server import Const import json def register(message: dict, user: User, *_args) -> None: """ register a new weather-station """ ...
26.150442
87
0.598646
8cf3285fc2c30bca6f21b1ac3717714afd942dff
11,561
py
Python
widget_team_block/views.py
chr0nu5/core
aa80ccb3ae30dd12a5c848079d1184a830fcb83b
[ "MIT" ]
null
null
null
widget_team_block/views.py
chr0nu5/core
aa80ccb3ae30dd12a5c848079d1184a830fcb83b
[ "MIT" ]
null
null
null
widget_team_block/views.py
chr0nu5/core
aa80ccb3ae30dd12a5c848079d1184a830fcb83b
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt @csrf_exempt def get_widget(request): return HttpResponse('<div class="container webrock-object ui-sortable" data-atts="{&quot;margin&quot;:&quot;&quot;,&quot;padding&quot;:&quot;&quot;,&...
1,445.125
11,395
0.723121
04ca7da1043045a1b5703433113c9a65a4a85c9e
146,983
py
Python
python/paddle/tensor/math.py
xiaoyangyang2/Paddle
b1a4668c5ff39e44efcfea46d567a5c398fdf3dc
[ "Apache-2.0" ]
null
null
null
python/paddle/tensor/math.py
xiaoyangyang2/Paddle
b1a4668c5ff39e44efcfea46d567a5c398fdf3dc
[ "Apache-2.0" ]
null
null
null
python/paddle/tensor/math.py
xiaoyangyang2/Paddle
b1a4668c5ff39e44efcfea46d567a5c398fdf3dc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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 appli...
37.505231
291
0.564467
54c87d3bb5eafbdda0c7721da76bda878f1f6103
17,893
py
Python
src/saltuser/saltuser.py
saltastro/saltuser
a5c97b15b5c2cbf732fb957c9dd91ac04ac23373
[ "MIT" ]
null
null
null
src/saltuser/saltuser.py
saltastro/saltuser
a5c97b15b5c2cbf732fb957c9dd91ac04ac23373
[ "MIT" ]
null
null
null
src/saltuser/saltuser.py
saltastro/saltuser
a5c97b15b5c2cbf732fb957c9dd91ac04ac23373
[ "MIT" ]
null
null
null
import pandas as pd class SALTUser: """ A user of the Southern African Large Telescope with roles and permissions. The user is identified by their username, as used for the Principal Investigator Proposal Tool (PIPT) or the Web Manager. The aim of this class is to allow checking roles and permis...
26.23607
88
0.565137
34b4b03703e9316af4fe90aded64acd1dff18b1d
40,714
py
Python
mmtbx/validation/molprobity/__init__.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/validation/molprobity/__init__.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/validation/molprobity/__init__.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Classes for MolProbity validation, combining all other analyses in mmtbx.validation, which use the same APIs for storing and displaying results. """ # TODO combine with some parts of mmtbx.kinemage.validation from __future__ import division, print_function from iotbx.cli_parser import CCTBXParser from libtbx.pro...
36.778681
102
0.672349
1000b0fcac70c571fd2bc6661dc6ca29755365af
1,119
py
Python
tune_parameters.py
wuga214/NCE_Projected_LRec
5628c33e66fec2709a7b4741aabeec90f948ae5c
[ "MIT" ]
30
2018-11-06T22:17:05.000Z
2022-01-31T23:32:10.000Z
tune_parameters.py
wuga214/NCE_Projected_LRec
5628c33e66fec2709a7b4741aabeec90f948ae5c
[ "MIT" ]
2
2018-12-17T06:07:31.000Z
2021-01-09T00:17:14.000Z
tune_parameters.py
wuga214/NCE_Projected_LRec
5628c33e66fec2709a7b4741aabeec90f948ae5c
[ "MIT" ]
7
2018-12-07T05:48:26.000Z
2021-07-28T13:49:42.000Z
import numpy as np import argparse from experiment.tuning import hyper_parameter_tuning from utils.io import load_numpy, save_dataframe_csv, load_yaml from utils.modelnames import models def main(args): params = load_yaml(args.grid) params['models'] = {params['models']: models[params['models']]} R_train =...
43.038462
120
0.723861
f74ed9c32ce2f3b2bef22c7458ed2566fe9abcdf
5,048
py
Python
dashboard/pagination.py
encode/dashboard
a184d749a3a806f8d65574b5712ddce24169c677
[ "BSD-3-Clause" ]
92
2020-04-09T17:26:33.000Z
2022-03-21T02:23:59.000Z
dashboard/pagination.py
encode/staradmin
a184d749a3a806f8d65574b5712ddce24169c677
[ "BSD-3-Clause" ]
6
2020-04-21T14:01:56.000Z
2021-11-23T14:29:50.000Z
dashboard/pagination.py
encode/staradmin
a184d749a3a806f8d65574b5712ddce24169c677
[ "BSD-3-Clause" ]
7
2020-04-13T13:59:07.000Z
2022-03-13T02:18:41.000Z
import typing from dataclasses import dataclass from starlette.datastructures import URL, QueryParams @dataclass class PageControl: text: str url: URL = None is_active: bool = False is_disabled: bool = False def inclusive_range(st: int, en: int, cutoff: int) -> typing.List[int]: """ Return ...
34.813793
86
0.636094
ea148b95f654a211233610ea11c4d24114cec630
958
py
Python
test/test_list_integrations_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_list_integrations_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_list_integrations_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import opsgenie_swagger from opsgenie_swagger.models.list...
23.365854
109
0.730689
be088c2a6648da2fb69c990b45fea7e3bc696d38
282
py
Python
Python/DefangIP.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
Python/DefangIP.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
Python/DefangIP.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
def defangIPaddr(address): #convert to mutable list lAddress = list(address) delim = '' for i in range(len(lAddress)): if lAddress[i] == ".": lAddress[i] = "[.]" return delim.join(lAddress) ip = "1.1.1.1.1" print(defangIPaddr(ip))
16.588235
34
0.556738
424a84acc68ad320302adc3d409aa491347d787c
1,693
py
Python
hata/ext/slash/client_wrapper_extension.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
173
2019-06-14T20:25:00.000Z
2022-03-21T19:36:10.000Z
hata/ext/slash/client_wrapper_extension.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
52
2020-01-03T17:05:14.000Z
2022-03-31T11:39:50.000Z
hata/ext/slash/client_wrapper_extension.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
47
2019-11-09T08:46:45.000Z
2022-03-31T14:33:34.000Z
__all__ = () from ...backend.utils import KeepType from ...discord.client.utils import ClientWrapper from ...discord.events.handling_helpers import _EventHandlerManagerRouter from .application_command import SlasherApplicationCommand from .slasher import Slasher def interactions_getter(manager_router): """ ...
26.453125
119
0.668636
be34d11c1611ac231e35cfbdbe5b460d2a618197
1,633
py
Python
grr/client/grr_response_client/client_actions/operating_system.py
dekoder/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
3
2018-09-30T01:31:29.000Z
2019-04-22T11:44:54.000Z
grr/client/grr_response_client/client_actions/operating_system.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
1
2022-03-02T09:58:05.000Z
2022-03-02T09:58:05.000Z
grr/client/grr_response_client/client_actions/operating_system.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """A facade to operating system dependent client actions.""" from __future__ import unicode_literals import platform # pylint: disable=g-import-not-at-top # pylint: disable=g-wrong-blank-lines # These imports populate the Action registry if platform.system() == "Linux": from grr_response_clie...
34.744681
86
0.818739
1dea2b1ae7abaae13eb07f27e2fd379b8fee2af0
784
py
Python
object_detection/YOLO_V3/models/layers/blocks_module.py
Gaurav14cs17/Computer-Vision
49054f6984bf3833bf0529da58c4d216bcc6b5bf
[ "MIT" ]
null
null
null
object_detection/YOLO_V3/models/layers/blocks_module.py
Gaurav14cs17/Computer-Vision
49054f6984bf3833bf0529da58c4d216bcc6b5bf
[ "MIT" ]
null
null
null
object_detection/YOLO_V3/models/layers/blocks_module.py
Gaurav14cs17/Computer-Vision
49054f6984bf3833bf0529da58c4d216bcc6b5bf
[ "MIT" ]
null
null
null
import torch.nn as nn from ..layers.conv_module import Convolutional class Residual_block(nn.Module): def __init__(self, filters_in=None, filters_out=None, filters_medium=None): super(Residual_block, self).__init__() self.__conv1 = Convolutional(filters_in=filters_in, filters_out=filters_medium, ke...
41.263158
113
0.604592
85871e733fe05835e1e9719ccdbdf17cbe1888cd
10,476
py
Python
tests/html_quotations_test.py
a-listware/talon
e9f65b3a8097193323829bccaf5233e02463265e
[ "Apache-2.0" ]
null
null
null
tests/html_quotations_test.py
a-listware/talon
e9f65b3a8097193323829bccaf5233e02463265e
[ "Apache-2.0" ]
null
null
null
tests/html_quotations_test.py
a-listware/talon
e9f65b3a8097193323829bccaf5233e02463265e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import # noinspection PyUnresolvedReferences import re from unittest.mock import Mock, patch from nose.tools import assert_false, assert_true, eq_, ok_ from tests.fixtures import (OLK_SRC_BODY_SECTION, REPLY_QUOTATIONS_SHARE_BLOCK, ...
23.917808
405
0.643948
66f701627e391a8dd856cd06cb1658959055c464
2,952
py
Python
ros/src/twist_controller/twist_controller.py
Abosobaie/CarND-Capstone-Project
ed26f4586120588b325916f2086420ef583be164
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
Abosobaie/CarND-Capstone-Project
ed26f4586120588b325916f2086420ef583be164
[ "MIT" ]
9
2020-01-28T22:18:21.000Z
2022-03-12T00:05:03.000Z
ros/src/twist_controller/twist_controller.py
Jianshu-Wang/CarND-Capstone-Project
ed26f4586120588b325916f2086420ef583be164
[ "MIT" ]
null
null
null
import rospy from yaw_controller import YawController from pid import PID from lowpass import LowPassFilter GAS_DENSITY = 2.858 ONE_MPH = 0.44704 class Controller(object): def __init__(self, vehicle_mass, fuel_capacity, brake_deadband, decel_li...
31.741935
144
0.614499
ec6bfc8bc2e6c1a6a670afb35530468e97fd07ef
10,192
py
Python
climetlab/readers/netcdf.py
emadehsan/climetlab
82d3911565179f66ae19d17d96e94fc7456e7725
[ "Apache-2.0" ]
182
2020-07-24T14:44:32.000Z
2022-03-31T12:25:28.000Z
climetlab/readers/netcdf.py
emadehsan/climetlab
82d3911565179f66ae19d17d96e94fc7456e7725
[ "Apache-2.0" ]
30
2020-07-22T10:29:12.000Z
2022-03-31T13:55:04.000Z
climetlab/readers/netcdf.py
emadehsan/climetlab
82d3911565179f66ae19d17d96e94fc7456e7725
[ "Apache-2.0" ]
32
2020-09-12T14:02:11.000Z
2022-02-17T08:18:37.000Z
# (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
27.397849
99
0.562206
c5dd915da1718c573bd1489fb012a2465fb7c2c6
2,293
py
Python
tests/test_dwi_run.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
null
null
null
tests/test_dwi_run.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
null
null
null
tests/test_dwi_run.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
1
2021-11-05T18:02:53.000Z
2021-11-05T18:02:53.000Z
import sys, os import unittest os.environ["TF_NUM_INTEROP_THREADS"] = "8" os.environ["TF_NUM_INTRAOP_THREADS"] = "8" os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "8" import tempfile import shutil import tensorflow as tf import antspymm import antspyt1w import antspynet import ants testingClass = unittest.Tes...
37.590164
81
0.726995
3fd1b0b09d0d48a7daeea19606b2c068b80c1e31
3,968
py
Python
experiments/sarsa_2way-single-intersection.py
huyz-git/sumo-rl
fb5c57b0664b8bf5d5673d84acb4dcc9c7a947e7
[ "MIT" ]
1
2021-01-13T00:55:03.000Z
2021-01-13T00:55:03.000Z
experiments/sarsa_2way-single-intersection.py
huyz-git/sumo-rl
fb5c57b0664b8bf5d5673d84acb4dcc9c7a947e7
[ "MIT" ]
null
null
null
experiments/sarsa_2way-single-intersection.py
huyz-git/sumo-rl
fb5c57b0664b8bf5d5673d84acb4dcc9c7a947e7
[ "MIT" ]
1
2021-04-14T05:53:07.000Z
2021-04-14T05:53:07.000Z
import argparse import os import sys import pandas as pd from datetime import datetime if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("Please declare the environment variable 'SUMO_HOME'") import traci from sumo_rl.util.gen_route ...
47.807229
164
0.614163
23f0db27ce933bc2bd64620c112cb731a4699a09
521
py
Python
rest/member/instance-post-example-1/instance-post-example-1.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
3
2020-05-05T10:01:02.000Z
2021-02-06T14:23:13.000Z
rest/member/instance-post-example-1/instance-post-example-1.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
null
null
null
rest/member/instance-post-example-1/instance-post-example-1.6.x.py
azaddeveloper/api-snippets
f88b153cd7186fa70b33733b205886502db0d1f2
[ "MIT" ]
1
2019-10-02T14:36:36.000Z
2019-10-02T14:36:36.000Z
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "your_auth_token" client = Client(account_sid, auth_token) member = client.queues("QU5e...
34.733333
72
0.712092
313c4ee2709eb07fbb5875e08cbd27711df3944f
3,634
py
Python
tests/st/ops/ascend/test_aicpu_ops/test_reshape.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/ops/ascend/test_aicpu_ops/test_reshape.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/ops/ascend/test_aicpu_ops/test_reshape.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2019 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...
28.390625
78
0.624381
9d9e5dcdd286f34161d29d70de25d6fc6a7675ff
933
py
Python
setup.py
alicebambi/idcode_recognition
64dd391d7be64cc8af40d610ad72a22843c73629
[ "MIT" ]
null
null
null
setup.py
alicebambi/idcode_recognition
64dd391d7be64cc8af40d610ad72a22843c73629
[ "MIT" ]
null
null
null
setup.py
alicebambi/idcode_recognition
64dd391d7be64cc8af40d610ad72a22843c73629
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- ############################################# # File Name: setup.py # Author: xingming # Mail: huoxingming@gmail.com # Created Time: 2015-12-11 01:25:34 AM ############################################# from setuptools import setup, find_packages setup( name = "ufzh",...
30.096774
204
0.596999
a3af649915970b070f8c497cf67a91b240f7d034
65,763
py
Python
O365/drive.py
livejake/python-o365
7179e85b95778a52affbf70596388530dedf90c9
[ "Apache-2.0" ]
null
null
null
O365/drive.py
livejake/python-o365
7179e85b95778a52affbf70596388530dedf90c9
[ "Apache-2.0" ]
null
null
null
O365/drive.py
livejake/python-o365
7179e85b95778a52affbf70596388530dedf90c9
[ "Apache-2.0" ]
null
null
null
import logging import warnings from pathlib import Path from time import sleep from urllib.parse import urlparse, quote from dateutil.parser import parse from .address_book import Contact from .utils import ApiComponent, Pagination, NEXT_LINK_KEYWORD, \ OneDriveWellKnowFolderNames log = logging.getLogger(__name_...
36.821389
92
0.577239
204a9dae555e8b94b1ad26ba3a89d291fb2723b6
1,608
py
Python
tests/test_merge.py
Be5yond/testtp
abefbb7e9d9e086f372c247df5df00713294f841
[ "Apache-2.0" ]
2
2020-12-15T03:01:39.000Z
2021-01-04T05:51:39.000Z
tests/test_merge.py
Be5yond/testtp
abefbb7e9d9e086f372c247df5df00713294f841
[ "Apache-2.0" ]
null
null
null
tests/test_merge.py
Be5yond/testtp
abefbb7e9d9e086f372c247df5df00713294f841
[ "Apache-2.0" ]
null
null
null
import json from copy import deepcopy import testtp merge = testtp.utils.merge DATA = { 'a': 1, 'b': 'strgs', 'c': [{'type': 'a'}, {'type': 'b'}], 'd': { 'd1': [1,2,3], 'd2': 123, 'd3': {'k': 'v'} }, 'e': True } def test_schema_equal(): schema = { 'a': 1, ...
20.1
44
0.49005
cb2bdc6b83d00092da195f03fe0e9f1c711a9a8c
519
py
Python
main_page/urls.py
slusarczyk41/my_django_website
1ae95297a1a5901a57f858cca1cf90fbd8c2dfb1
[ "MIT" ]
null
null
null
main_page/urls.py
slusarczyk41/my_django_website
1ae95297a1a5901a57f858cca1cf90fbd8c2dfb1
[ "MIT" ]
null
null
null
main_page/urls.py
slusarczyk41/my_django_website
1ae95297a1a5901a57f858cca1cf90fbd8c2dfb1
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'main_page' urlpatterns = [ path('', views.index, name='index'), path('services/', views.services, name='services'), path('about/', views.about, name='about'), path('contact/', views.contact, name='contact'), path('valuation/', views.valu...
37.071429
91
0.699422
fedd9bdeb6f2c4998b627d11f67593f879664eca
5,031
py
Python
test/functional/feature_versionbits_warning.py
BitcoinReload/BitcoinReload
c927ca366ba769e33903b8e4f90d364c74e5e590
[ "MIT" ]
1
2022-03-23T00:32:26.000Z
2022-03-23T00:32:26.000Z
test/functional/feature_versionbits_warning.py
BitcoinReload/BitcoinReload
c927ca366ba769e33903b8e4f90d364c74e5e590
[ "MIT" ]
null
null
null
test/functional/feature_versionbits_warning.py
BitcoinReload/BitcoinReload
c927ca366ba769e33903b8e4f90d364c74e5e590
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test version bits warning system. Generate chains with block versions that appear to be signalling unk...
48.375
142
0.719141
fbf0e14576e50aaa801de5dc50f88606553add6d
5,637
py
Python
tweet_engine.py
alybel/vrbase
c01a8b641e3e6c011fe32e343fa01eca01f4c7c6
[ "MIT" ]
null
null
null
tweet_engine.py
alybel/vrbase
c01a8b641e3e6c011fe32e343fa01eca01f4c7c6
[ "MIT" ]
null
null
null
tweet_engine.py
alybel/vrbase
c01a8b641e3e6c011fe32e343fa01eca01f4c7c6
[ "MIT" ]
null
null
null
#! /usr/bin/python -u import sys import os.path import time valureach_ops_path = "/home/vr/valureach_ops" sys.path.append("%s/bluebird" % valureach_ops_path) import load_config import bblib as bbl import random import vr_main import subprocess def rtime(): return int(random.random() * 10 * 60) def tweet_account(...
34.796296
87
0.573532
6e3169d0e8d671dc0eb5c30e1fe8db3a520d546f
118
py
Python
mujoco_parallel/__init__.py
thanhbok26b/mujoco-rewards-landscape-visualization
c1a95b38a0ea03468bbbb7ce013eff37ccd67101
[ "MIT" ]
null
null
null
mujoco_parallel/__init__.py
thanhbok26b/mujoco-rewards-landscape-visualization
c1a95b38a0ea03468bbbb7ce013eff37ccd67101
[ "MIT" ]
null
null
null
mujoco_parallel/__init__.py
thanhbok26b/mujoco-rewards-landscape-visualization
c1a95b38a0ea03468bbbb7ce013eff37ccd67101
[ "MIT" ]
null
null
null
from .mujoco_parallel import MujocoParallel from .worker_manager import WorkerManager from .config import benchmarks
23.6
43
0.864407
827735cfbb792b3d588edfd9636ab425182577de
1,539
py
Python
backend/tests/test_api_admin.py
kevinmonisit/shrunk
55106356735c3491f8c8c0774f5ae500ba1c970a
[ "MIT" ]
13
2015-05-08T00:26:23.000Z
2021-07-28T15:42:10.000Z
backend/tests/test_api_admin.py
kevinmonisit/shrunk
55106356735c3491f8c8c0774f5ae500ba1c970a
[ "MIT" ]
68
2015-01-12T20:27:44.000Z
2021-05-17T19:08:05.000Z
backend/tests/test_api_admin.py
kevinmonisit/shrunk
55106356735c3491f8c8c0774f5ae500ba1c970a
[ "MIT" ]
7
2015-08-05T20:31:20.000Z
2022-01-28T21:14:06.000Z
# admin.get_endpoint_stats GET /api/v1/admin/stats/endpoint # admin.get_overview_stats POST /api/v1/admin/stats/overview from datetime import datetime, timezone, timedelta from werkzeug.test import Client from util import dev_login def test_endpoint_stats(client: Client) -> None: with dev_lo...
32.0625
69
0.641975
ef072dc2734042c31d6d854b96644cc8d09645de
30,675
py
Python
tools/metrics/actions/extract_actions.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2020-09-02T03:05:41.000Z
2022-03-30T04:40:55.000Z
tools/metrics/actions/extract_actions.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
45
2020-09-02T03:21:37.000Z
2022-03-31T22:19:45.000Z
tools/metrics/actions/extract_actions.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2020-07-22T18:49:18.000Z
2022-02-08T10:27:16.000Z
#!/usr/bin/env python # # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Extract UserMetrics "actions" strings from the Chrome source. This program generates the list of known actions we expect to s...
37.591912
80
0.695485
302eeff0c32a51ff3b5056053c74952623c31ef1
4,216
py
Python
bin/newmap.py
sympolite/very-small-roguelike
cd3635cfe0db65a1df69fa5c1b72a4f794444449
[ "MIT" ]
1
2021-04-06T04:32:49.000Z
2021-04-06T04:32:49.000Z
bin/newmap.py
sympolite/very-small-roguelike
cd3635cfe0db65a1df69fa5c1b72a4f794444449
[ "MIT" ]
null
null
null
bin/newmap.py
sympolite/very-small-roguelike
cd3635cfe0db65a1df69fa5c1b72a4f794444449
[ "MIT" ]
1
2021-04-06T04:32:52.000Z
2021-04-06T04:32:52.000Z
import tdl import sys palettes = {'grey': ((45, 45, 45), (0, 0, 0), (180, 180, 180), (90, 90, 90))} MAXWIDTH = 9 MAXHEIGHT = 9 MINWIDTH = 3 MINHEIGHT = 3 FOV_ALGO = 'BASIC' FOV_LIGHT_WALLS = True class Tile: # a tile of the map and its properties def __init__(self, blocked, block_sight=None): ...
35.133333
88
0.446869
0fcf489f14e3b09b56d79865aa01194f384a99c3
160
py
Python
tests/python/test_browser.py
mdp/rpaframework
d427a3a4b9ea360780e449ece2674e275060310e
[ "Apache-2.0" ]
2
2021-04-17T17:24:20.000Z
2021-04-18T18:09:54.000Z
packages/main/tests/python/test_browser.py
aikarjal/rpaframework
cd0599b33b7fcca3d43ea45116a43fc7507b73c9
[ "Apache-2.0" ]
null
null
null
packages/main/tests/python/test_browser.py
aikarjal/rpaframework
cd0599b33b7fcca3d43ea45116a43fc7507b73c9
[ "Apache-2.0" ]
1
2021-02-11T21:00:11.000Z
2021-02-11T21:00:11.000Z
from unittest import TestCase class TestBrowserFunctionality(TestCase): def test_import(self): from RPA.Browser import Browser Browser()
17.777778
41
0.71875
47ae17fb1c7800cad28eaf9509185c35ad8ebeb8
6,842
py
Python
tests/test_dynamicbatching.py
terrorizer1980/ParlAI
f8fda24bd11804104b0a91aa84e170d3efbd8983
[ "MIT" ]
2
2020-08-27T05:21:14.000Z
2020-09-29T14:34:09.000Z
tests/test_dynamicbatching.py
terrorizer1980/ParlAI
f8fda24bd11804104b0a91aa84e170d3efbd8983
[ "MIT" ]
316
2021-03-19T14:53:31.000Z
2022-03-27T03:36:51.000Z
tests/test_dynamicbatching.py
terrorizer1980/ParlAI
f8fda24bd11804104b0a91aa84e170d3efbd8983
[ "MIT" ]
2
2020-10-29T18:14:33.000Z
2020-11-07T09:46:23.000Z
#!/usr/bin/env python3 # 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 parlai.core.opt import Opt from parlai.tasks.integration_tests.agents import NUM_TEST, EXAMPLE_SIZE from parlai.uti...
34.38191
88
0.647033
1333ec44fb48dc1afc96258d5fd14bb02e79d81d
566
py
Python
checkout/migrations/0005_order_user_profile.py
vladoprea/dream-woollies
7113400a03e4047312b88a3afff7e5969ff96f6b
[ "W3C", "PostgreSQL" ]
null
null
null
checkout/migrations/0005_order_user_profile.py
vladoprea/dream-woollies
7113400a03e4047312b88a3afff7e5969ff96f6b
[ "W3C", "PostgreSQL" ]
5
2021-06-04T23:31:01.000Z
2021-09-22T19:18:34.000Z
checkout/migrations/0005_order_user_profile.py
vladoprea/dream-woollies
7113400a03e4047312b88a3afff7e5969ff96f6b
[ "W3C", "PostgreSQL" ]
1
2020-08-17T14:27:29.000Z
2020-08-17T14:27:29.000Z
# Generated by Django 3.0.7 on 2020-07-23 12:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles', '0001_initial'), ('checkout', '0004_auto_20200723_1235'), ] operations = [ migrations.Ad...
26.952381
155
0.64841
596a942c40345e424ffbf90e7ddd80001482fddd
7,337
py
Python
pysnmp/EQLTAG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/EQLTAG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/EQLTAG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module EQLTAG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EQLTAG-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:51:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
116.460317
932
0.76857
e942c0deab528bd045371e99c9201111017a2648
1,857
py
Python
Django/api-basic2/photo/views.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
null
null
null
Django/api-basic2/photo/views.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
102
2020-02-12T00:10:33.000Z
2022-03-11T23:58:41.000Z
Django/api-basic2/photo/views.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
null
null
null
from django.views.generic import ListView, CreateView, DetailView, UpdateView, DeleteView from rest_framework import generics from django.http import HttpResponse from .models import Photo from .serializers import * # Create your views here. def index(request): return HttpResponse('index') class PhotoList(Lis...
23.506329
89
0.695746
77ce043ae32f18025f1a4130286956c126ed8131
3,026
py
Python
util/DFA.py
MartrixG/comlier
a29a9201478d59da6786bbe1cd6760cd3bb481a9
[ "MIT" ]
null
null
null
util/DFA.py
MartrixG/comlier
a29a9201478d59da6786bbe1cd6760cd3bb481a9
[ "MIT" ]
null
null
null
util/DFA.py
MartrixG/comlier
a29a9201478d59da6786bbe1cd6760cd3bb481a9
[ "MIT" ]
null
null
null
import string class DFA(object): def __init__(self, data): self.name = data['name'][0] self.Q = data['Q'][0].split(' ') self.sigma = data['sigma'][0].split(' ') self.q0 = data['q0'][0] species = data['F'][0].split(' ') self.F = {} self.error = {} for...
33.252747
105
0.41573
61fb23047037ee307ef4070a9eed543209d7b75d
947
py
Python
src/utils/snapshot.py
TUM-LMF/MTLCC-pytorch
894a470be2fb4b9e2e0b9e20e8684131ffdb5577
[ "MIT" ]
39
2018-08-27T11:33:28.000Z
2021-12-13T11:17:31.000Z
src/utils/snapshot.py
TUM-LMF/MTLCC-pytorch
894a470be2fb4b9e2e0b9e20e8684131ffdb5577
[ "MIT" ]
2
2019-02-16T11:40:54.000Z
2020-04-23T08:01:53.000Z
src/utils/snapshot.py
TUM-LMF/MTLCC-pytorch
894a470be2fb4b9e2e0b9e20e8684131ffdb5577
[ "MIT" ]
16
2018-08-29T02:03:31.000Z
2022-03-12T09:41:06.000Z
import torch def save(path, model, optimizer, **kwargs): model_state = None optimizer_state = None if model is not None: model_state = model.state_dict() if optimizer is not None: optimizer_state = optimizer.state_dict() torch.save( dict(model_state=model_state, ...
28.69697
61
0.663147
7f590493906211f152f3834baf12c64bd1f02b6d
1,986
py
Python
python/caffe2_benchmarks/models/deep_mnist.py
joehandzik/dlcookbook-dlbs
7c5ca5a6dfa4e2f7b8b4d81c60bd8be343dabd30
[ "Apache-2.0" ]
123
2017-11-28T20:21:24.000Z
2022-03-22T11:21:04.000Z
python/caffe2_benchmarks/models/deep_mnist.py
joehandzik/dlcookbook-dlbs
7c5ca5a6dfa4e2f7b8b4d81c60bd8be343dabd30
[ "Apache-2.0" ]
17
2018-01-05T00:05:13.000Z
2020-09-18T05:12:45.000Z
python/caffe2_benchmarks/models/deep_mnist.py
joehandzik/dlcookbook-dlbs
7c5ca5a6dfa4e2f7b8b4d81c60bd8be343dabd30
[ "Apache-2.0" ]
48
2018-01-04T20:52:51.000Z
2022-03-06T00:47:17.000Z
# (c) Copyright [2017] Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.72
93
0.662638
2427b69bec93ef3bc82d3ad46daa19f43e0c4d1a
2,674
py
Python
cptm/utils/inputgeneration.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
13
2016-03-14T14:58:04.000Z
2020-11-03T22:48:59.000Z
cptm/utils/inputgeneration.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
5
2015-10-30T12:34:16.000Z
2017-10-27T04:55:07.000Z
cptm/utils/inputgeneration.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
3
2016-03-03T10:49:05.000Z
2018-02-03T14:36:59.000Z
"""Helpers to generate input data for cross-perspective topic modeling.""" import os import logging import codecs import re logger = logging.getLogger('inputgeneration') class Perspective(): def __init__(self, name, posTopic, posOpinion): """Initialize inputgeneration Perspective. Parameters: ...
34.727273
79
0.618175
feaad7b597b6126d98a8c190505671c0aa793dba
78,865
py
Python
tests/core/consensus/test_blockchain.py
kd637xx/chia-blockchain
b82f3ba8a2953de12bddf5c5d6a33e443b51bc8b
[ "Apache-2.0" ]
null
null
null
tests/core/consensus/test_blockchain.py
kd637xx/chia-blockchain
b82f3ba8a2953de12bddf5c5d6a33e443b51bc8b
[ "Apache-2.0" ]
null
null
null
tests/core/consensus/test_blockchain.py
kd637xx/chia-blockchain
b82f3ba8a2953de12bddf5c5d6a33e443b51bc8b
[ "Apache-2.0" ]
null
null
null
# flake8: noqa: F811, F401 import asyncio import multiprocessing import time from dataclasses import replace import logging import pytest from blspy import AugSchemeMPL, G2Element from src.consensus.blockchain import ReceiveBlockResult from src.types.classgroup import ClassgroupElement from src.types.end_of_slot_bundl...
48.088415
120
0.63416
592d342df6c9858c4c94c87ee163aac0c7eacb74
11,556
py
Python
hsequeces_bench.py
bankbiz/Key.Net
5ba46614821e94be1b36d97721bd6c2e5fff9e20
[ "BSD-3-Clause-Clear" ]
162
2019-09-26T09:03:31.000Z
2022-03-29T08:51:44.000Z
keypoint/hsequeces_bench.py
semnan-university-ai/Key.Net
887f595cb7b87e0551d52e34441f61546a9aee97
[ "MIT" ]
14
2019-10-30T07:36:12.000Z
2022-03-23T03:22:19.000Z
keypoint/hsequeces_bench.py
semnan-university-ai/Key.Net
887f595cb7b87e0551d52e34441f61546a9aee97
[ "MIT" ]
36
2019-10-15T10:14:51.000Z
2021-12-08T13:02:28.000Z
import os import argparse import numpy as np import pickle from tqdm import tqdm import HSequences_bench.tools.aux_tools as aux import HSequences_bench.tools.geometry_tools as geo_tools import HSequences_bench.tools.repeatability_tools as rep_tools import HSequences_bench.tools.matching_tools as match_tools from HSeque...
47.360656
146
0.624351
5bae3e62b32ead986ab1ddb7763be7ffd4563d98
1,246
py
Python
setup.py
ahmadiesa-abu/cloudify-kubernetes-plugin
3f5363e82f12bb97dafee178c972491898f54680
[ "Apache-2.0" ]
null
null
null
setup.py
ahmadiesa-abu/cloudify-kubernetes-plugin
3f5363e82f12bb97dafee178c972491898f54680
[ "Apache-2.0" ]
null
null
null
setup.py
ahmadiesa-abu/cloudify-kubernetes-plugin
3f5363e82f12bb97dafee178c972491898f54680
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2019 Cloudify Platform Ltd. 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 ...
34.611111
74
0.698234
65841c48a969f11c93a2932f27057380f030a1f0
1,830
py
Python
venv/Lib/site-packages/nipype/interfaces/mipav/tests/test_auto_JistLaminarProfileSampling.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/interfaces/mipav/tests/test_auto_JistLaminarProfileSampling.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/interfaces/mipav/tests/test_auto_JistLaminarProfileSampling.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..developer import JistLaminarProfileSampling def test_JistLaminarProfileSampling_inputs(): input_map = dict( args=dict( argstr="%s", ), environ=dict( nohash=True, usedefault=True, ), ...
26.521739
67
0.533333
9677eae2ae1c192f3bb5a8e3f2446930f7a144b3
7,790
py
Python
pysnmp/ARISTA-CONFIG-COPY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ARISTA-CONFIG-COPY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ARISTA-CONFIG-COPY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ARISTA-CONFIG-COPY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ARISTA-CONFIG-COPY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:09:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
118.030303
1,173
0.783312
19391e510f1d4c983df94b15ea0b6a7366930d67
1,036
py
Python
problem_4.py
YoussefAli99/Problems-vs-Algorithms
081022d196ec0185374868a4654ec8795cd1cbe3
[ "MIT" ]
null
null
null
problem_4.py
YoussefAli99/Problems-vs-Algorithms
081022d196ec0185374868a4654ec8795cd1cbe3
[ "MIT" ]
null
null
null
problem_4.py
YoussefAli99/Problems-vs-Algorithms
081022d196ec0185374868a4654ec8795cd1cbe3
[ "MIT" ]
null
null
null
def sort_012(input_list): """ Given an input array consisting on only 0, 1, and 2, sort the array in a single traversal. Args: input_list(list): List to be sorted """ z,o = 0,0 t = len(input_list) - 1 while o <= t: if input_list[o] == 0: input_list[o], input_list...
28
94
0.530888
e600abd8b90788d1401b155cee468ad6e556ea1b
2,335
py
Python
Projects_in_Python/Message- I Love You/love.py
vivekagarwal2349/Mini_Python_Projects
96fa28d851cddefa5d9a63823b1a9b04ad6c3e04
[ "MIT" ]
null
null
null
Projects_in_Python/Message- I Love You/love.py
vivekagarwal2349/Mini_Python_Projects
96fa28d851cddefa5d9a63823b1a9b04ad6c3e04
[ "MIT" ]
null
null
null
Projects_in_Python/Message- I Love You/love.py
vivekagarwal2349/Mini_Python_Projects
96fa28d851cddefa5d9a63823b1a9b04ad6c3e04
[ "MIT" ]
null
null
null
#here we are importing the required stuffs - from turtle import color, back, left, forward, right, exitonclick import turtle color("black") back(450) color("orange") # let us start creating the words left(90) forward(100) back(100) right(90) color("black") forward(100) left(90) color("orange") forward(...
15.671141
104
0.6394
239ddaf4723f9d579e4b033891462be6213efdc4
698
py
Python
venv/Scripts/rst2html.py
muatahunt/django_cityloc_pkg_muatahunt
68074cc3d96ef183b350c1b6492a7c0f7c2524b8
[ "MIT" ]
null
null
null
venv/Scripts/rst2html.py
muatahunt/django_cityloc_pkg_muatahunt
68074cc3d96ef183b350c1b6492a7c0f7c2524b8
[ "MIT" ]
null
null
null
venv/Scripts/rst2html.py
muatahunt/django_cityloc_pkg_muatahunt
68074cc3d96ef183b350c1b6492a7c0f7c2524b8
[ "MIT" ]
null
null
null
#!C:\Users\Name\Desktop\Nucamp\Python\3-DevOps\week4\github_packaging\django_cityloc_pkg_muatahunt\venv\Scripts\python.exe # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the D...
29.083333
122
0.755014
1485ecc01b16979a783502985855a829802807bd
17,691
py
Python
scipy/linalg/basic.py
jasonmccampbell/scipy-refactor
52708e04bca51e7043248d56383780b1e51e0d8f
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/linalg/basic.py
enthought/scipy-refactor
52708e04bca51e7043248d56383780b1e51e0d8f
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/basic.py
enthought/scipy-refactor
52708e04bca51e7043248d56383780b1e51e0d8f
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
# # Author: Pearu Peterson, March 2002 # # w/ additions by Travis Oliphant, March 2002 __all__ = ['solve', 'solve_triangular', 'solveh_banded', 'solve_banded', 'inv', 'det', 'lstsq', 'pinv', 'pinv2'] from numpy import asarray, zeros, sum, conjugate, dot, transpose, \ asarray_chkfinite, single imp...
32.224044
93
0.567916
08f48f78e32c8607808e34b785c090af34ff0e63
5,172
py
Python
flexget/plugins/sites/cpasbien.py
davidcollom/Flexget
cd763e04afdf6da8f1673dd567a42d55d4cb3b6c
[ "MIT" ]
1
2021-03-24T11:54:01.000Z
2021-03-24T11:54:01.000Z
flexget/plugins/sites/cpasbien.py
davidcollom/Flexget
cd763e04afdf6da8f1673dd567a42d55d4cb3b6c
[ "MIT" ]
null
null
null
flexget/plugins/sites/cpasbien.py
davidcollom/Flexget
cd763e04afdf6da8f1673dd567a42d55d4cb3b6c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import quote_plus import logging import re from flexget import plugin from flexget.entry import Entry from flexget.event import event from f...
38.311111
118
0.49478
a7332523db26dfe9c695ddb1723177bb76c57101
111
py
Python
Bases/Practice/Solution/TicTacToe/Player.py
PierreAnken/TrainingPython
a788090d335d8d940838d17e68f263ba4aa013d4
[ "MIT" ]
null
null
null
Bases/Practice/Solution/TicTacToe/Player.py
PierreAnken/TrainingPython
a788090d335d8d940838d17e68f263ba4aa013d4
[ "MIT" ]
null
null
null
Bases/Practice/Solution/TicTacToe/Player.py
PierreAnken/TrainingPython
a788090d335d8d940838d17e68f263ba4aa013d4
[ "MIT" ]
1
2021-12-07T10:53:43.000Z
2021-12-07T10:53:43.000Z
class Player: def __init__(self, name: str, sign: str): self.name = name self.sign = sign
18.5
45
0.576577
2e184de571210a4e4dcfab2bd59b86a9f19df7b3
167
py
Python
reformat_gherkin/ast_node/doc_string.py
rayjolt/reformat-gherkin
4869bd5b3a904283171f8a49849d53e8e9e81c18
[ "MIT" ]
null
null
null
reformat_gherkin/ast_node/doc_string.py
rayjolt/reformat-gherkin
4869bd5b3a904283171f8a49849d53e8e9e81c18
[ "MIT" ]
null
null
null
reformat_gherkin/ast_node/doc_string.py
rayjolt/reformat-gherkin
4869bd5b3a904283171f8a49849d53e8e9e81c18
[ "MIT" ]
null
null
null
from ._base import prepare from .location import LocationMixin @prepare class DocString(LocationMixin): content: str def __iter__(self): yield self
15.181818
35
0.724551
e89cafdde490cb1a0cb94bd31e995a45ddf87570
174
py
Python
104-maximum-depth-of-binary-tree/104-maximum-depth-of-binary-tree.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
1
2021-10-10T20:21:18.000Z
2021-10-10T20:21:18.000Z
104-maximum-depth-of-binary-tree/104-maximum-depth-of-binary-tree.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
104-maximum-depth-of-binary-tree/104-maximum-depth-of-binary-tree.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
class Solution: def maxDepth(self, root: Optional[TreeNode]) -> int: if not root:return 0 return max(self.maxDepth(root.left),self.maxDepth(root.right))+1
43.5
72
0.678161
29c541cfb13bfb1add79b7909c4b1aab18641aab
12,721
py
Python
python/paddle/distributed/fleet/utils/recompute.py
ucsk/Paddle
1d4566592287d84b39f7f3cab2f00e9d3f993d92
[ "Apache-2.0" ]
2
2022-01-04T10:51:58.000Z
2022-01-10T12:29:08.000Z
python/paddle/distributed/fleet/utils/recompute.py
ucsk/Paddle
1d4566592287d84b39f7f3cab2f00e9d3f993d92
[ "Apache-2.0" ]
1
2020-09-08T01:45:28.000Z
2020-09-08T01:45:28.000Z
python/paddle/distributed/fleet/utils/recompute.py
ucsk/Paddle
1d4566592287d84b39f7f3cab2f00e9d3f993d92
[ "Apache-2.0" ]
5
2021-12-10T11:20:06.000Z
2022-02-18T05:18:12.000Z
# Copyright (c) 2021 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 ap...
41.571895
118
0.57975
ebb45d136800e7f29e236c0c0336318158b9c6f1
327
py
Python
lagom/agents/__init__.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
lagom/agents/__init__.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
lagom/agents/__init__.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
from .base_agent import BaseAgent from .random_agent import RandomAgent from .reinforce_agent import REINFORCEAgent from .actor_critic_agent import ActorCriticAgent #from lagom.agents.a2c_agent import A2CAgent #from lagom.agents.reinforce_agent import REINFORCEAgent #rom lagom.agents.actor_critic_agent import ActorCrit...
46.714286
60
0.877676
11fa402140c4eca3a6b55eaf1ef14756db1a68de
1,554
py
Python
A_source_code/generalcode/trunk/hydraulic_load.py
vanHoek-dgnm/CARBON-DISC
3ecd5f4efba5e032d43679ee977064d6b25154a9
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
A_source_code/generalcode/trunk/hydraulic_load.py
vanHoek-dgnm/CARBON-DISC
3ecd5f4efba5e032d43679ee977064d6b25154a9
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
A_source_code/generalcode/trunk/hydraulic_load.py
vanHoek-dgnm/CARBON-DISC
3ecd5f4efba5e032d43679ee977064d6b25154a9
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ****************************************************** ## Revision "$LastChangedDate: 2018-06-01 15:05:44 +0200 (Fri, 01 Jun 2018) $" ## Date "$LastChangedRevision: 1 $" ## Author "$LastChangedBy: arthurbeusen $" ## URL "$HeadURL: https://pbl.sliksvn.com/generalcode/trunk/hydraulic_load.py $" ## Copyright 2017, PBL N...
42
107
0.657658
f3647a856685abe6be6d6c0d90eed286e115d19e
610
py
Python
pymatgen/phasediagram/__init__.py
ltalirz/pymatgen
894cdb2ec7b9bd74f0ac3cdad40d144203ccdcf6
[ "MIT" ]
null
null
null
pymatgen/phasediagram/__init__.py
ltalirz/pymatgen
894cdb2ec7b9bd74f0ac3cdad40d144203ccdcf6
[ "MIT" ]
null
null
null
pymatgen/phasediagram/__init__.py
ltalirz/pymatgen
894cdb2ec7b9bd74f0ac3cdad40d144203ccdcf6
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
32.105263
79
0.74918
657eb74a7a5970e9183a0dcc4462c6385ec32fb3
352
py
Python
pysoup/display/__init__.py
illBeRoy/pysoup
742fd6630e1be27c275cb8dc6ee94412472cb20b
[ "MIT" ]
4
2016-02-21T12:40:44.000Z
2019-06-13T13:23:19.000Z
pysoup/display/__init__.py
illBeRoy/pysoup
742fd6630e1be27c275cb8dc6ee94412472cb20b
[ "MIT" ]
null
null
null
pysoup/display/__init__.py
illBeRoy/pysoup
742fd6630e1be27c275cb8dc6ee94412472cb20b
[ "MIT" ]
1
2020-07-16T12:22:12.000Z
2020-07-16T12:22:12.000Z
import pysoup.display.interactive_display import pysoup.display.silent_display class DisplayAdapter(object): @staticmethod def create_interactive_display(): return pysoup.display.interactive_display.InteractiveDisplay() @staticmethod def create_silent_display(): return pysoup.display...
25.142857
70
0.78125
bd7c783ddd41806d08f2eeeb5802c9822ec903b4
2,915
py
Python
src/models/FeatExtractNet.py
sunshuofeng/Bi3D
aa4a4bf739017d0a9bf0149a6df891f3b97752cb
[ "BSD-Source-Code" ]
null
null
null
src/models/FeatExtractNet.py
sunshuofeng/Bi3D
aa4a4bf739017d0a9bf0149a6df891f3b97752cb
[ "BSD-Source-Code" ]
null
null
null
src/models/FeatExtractNet.py
sunshuofeng/Bi3D
aa4a4bf739017d0a9bf0149a6df891f3b97752cb
[ "BSD-Source-Code" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
29.744898
94
0.656604
7bb9a43b4a986f022cefd5da35c7deec19972bc8
1,017
py
Python
2021/day3/main.py
g-ford/advent-of-code
b706680df004cc1072551626816ce871300760f1
[ "MIT" ]
null
null
null
2021/day3/main.py
g-ford/advent-of-code
b706680df004cc1072551626816ce871300760f1
[ "MIT" ]
null
null
null
2021/day3/main.py
g-ford/advent-of-code
b706680df004cc1072551626816ce871300760f1
[ "MIT" ]
null
null
null
from operator import ge, lt from utils import log_time, to_dec, transpose def parse_line(l): return list(map(int, l.strip())) @log_time def part_a(input): transposed = transpose(input) mid = len(input) // 2 gamma = [int(sum(c) > mid) for c in transposed] epsilon = [abs(x - 1) for x in gamma] ...
23.113636
65
0.6647
7581139e3890799b2af7c684fd5c2e63c33f385f
385,398
py
Python
ns3/ns-3.26/src/visualizer/bindings/modulegen__gcc_LP64.py
Aedemon/clusim
7f09cdb79b5f02cf0fed1bd44842981941f29f32
[ "Apache-2.0" ]
7
2017-08-11T06:06:47.000Z
2022-02-27T07:34:33.000Z
ns3/ns-3.26/src/visualizer/bindings/modulegen__gcc_LP64.py
Aedemon/clusim
7f09cdb79b5f02cf0fed1bd44842981941f29f32
[ "Apache-2.0" ]
3
2017-08-11T03:04:59.000Z
2017-09-11T14:01:14.000Z
ns3/ns-3.26/src/visualizer/bindings/modulegen__gcc_LP64.py
Aedemon/clusim
7f09cdb79b5f02cf0fed1bd44842981941f29f32
[ "Apache-2.0" ]
3
2017-08-08T13:36:30.000Z
2018-07-04T09:49:41.000Z
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
64.233
934
0.624277
7d93b75165a7e8b230cab1db0603290b95648605
20,627
py
Python
mmdet/core/evaluation/eval_hooks.py
opencv/mmdetection
6a7dfa5b954d6bbad7f8d33db8268b0fafc7d555
[ "Apache-2.0" ]
24
2020-04-15T14:54:44.000Z
2020-08-12T12:45:57.000Z
mmdet/core/evaluation/eval_hooks.py
opencv/mmdetection
6a7dfa5b954d6bbad7f8d33db8268b0fafc7d555
[ "Apache-2.0" ]
46
2020-04-10T12:01:59.000Z
2020-09-04T06:25:56.000Z
mmdet/core/evaluation/eval_hooks.py
opencv/mmdetection
6a7dfa5b954d6bbad7f8d33db8268b0fafc7d555
[ "Apache-2.0" ]
11
2020-04-16T17:55:29.000Z
2020-08-25T11:13:58.000Z
# Copyright (C) 2018-2021 OpenMMLab # SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # # Is based on # * https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/hooks/evaluation.py import os import os.path as osp import torch.distributed as d...
42.442387
105
0.602608
70b31579fb7a81e51c07058fd91c64e633bedc5f
599
py
Python
addons/bi_hr_payroll/models/hr_employee.py
nathanbangwa243/house-location
fa38203b2c92dd97f253fc3b4354af228f1b0338
[ "MIT" ]
1
2021-11-17T18:49:44.000Z
2021-11-17T18:49:44.000Z
addons/bi_hr_payroll/models/hr_employee.py
nathanbangwa243/house-location
fa38203b2c92dd97f253fc3b4354af228f1b0338
[ "MIT" ]
null
null
null
addons/bi_hr_payroll/models/hr_employee.py
nathanbangwa243/house-location
fa38203b2c92dd97f253fc3b4354af228f1b0338
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of BrowseInfo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class HrEmployee(models.Model): _inherit = 'hr.employee' _description = 'Employee' slip_ids = fields.One2many('hr.payslip', 'employee_id', string='Payslips', read...
35.235294
138
0.72621
c49869593f4ded53c42023304e6098f3cc065118
731
py
Python
dataset_script/analysis_predict.py
TITC/bert
bed2ff5dc4cdf2f01599cfdcb9862f6016bf44f6
[ "Apache-2.0" ]
null
null
null
dataset_script/analysis_predict.py
TITC/bert
bed2ff5dc4cdf2f01599cfdcb9862f6016bf44f6
[ "Apache-2.0" ]
null
null
null
dataset_script/analysis_predict.py
TITC/bert
bed2ff5dc4cdf2f01599cfdcb9862f6016bf44f6
[ "Apache-2.0" ]
null
null
null
in_csv = '/content/bert/tmp/predict/test_results.tsv' file1 = open(in_csv, 'r') Lines_predict = file1.readlines() number_lines = sum(1 for row in (open(in_csv))) in_csv = '/content/bert/datasets/chinese_dictionary-master/ant_syn_datasets/test.tsv' file1 = open(in_csv, 'r') Lines_test = file1.readlines() correct = 0 fo...
31.782609
85
0.677155
5b3ea335d97d318e9ebd0514855f1d47ab5a194c
9,641
py
Python
research/object_detection/models/retinanet_feature_extractor.py
y-kallel/models
4d073d82d988d0147cb2d17b4390e8fab1f46e6d
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/retinanet_feature_extractor.py
y-kallel/models
4d073d82d988d0147cb2d17b4390e8fab1f46e6d
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/retinanet_feature_extractor.py
y-kallel/models
4d073d82d988d0147cb2d17b4390e8fab1f46e6d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.624434
92
0.695467
246720425b71f6f9968abd5573e054fe3530dbbb
1,943
py
Python
csc301-winter-2020/assignments/assignment2/coverage_grader.py
shibshib/gitomator-classroom
7d3c504063ebf8cb34de3872f78baf86fdbeec52
[ "MIT" ]
null
null
null
csc301-winter-2020/assignments/assignment2/coverage_grader.py
shibshib/gitomator-classroom
7d3c504063ebf8cb34de3872f78baf86fdbeec52
[ "MIT" ]
null
null
null
csc301-winter-2020/assignments/assignment2/coverage_grader.py
shibshib/gitomator-classroom
7d3c504063ebf8cb34de3872f78baf86fdbeec52
[ "MIT" ]
null
null
null
import xmltodict import json import argparse from loguru import logger import os COV_GRADE_FILE = "coverage_grade.txt" def evaluate_line_rate(line_rate): logger.info("Evaluating line rate of {}".format(line_rate)) grade = 0 if line_rate > 90: grade = 35 elif line_rate > 80 and line_rate < 90: ...
29.439394
77
0.661863
c474dbb5f76c2f0fa6fc82e7ead58ed2c61d5cab
4,332
py
Python
metalibm_functions/unit_tests/function_formats.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
2
2019-02-18T13:42:04.000Z
2021-03-12T18:54:53.000Z
metalibm_functions/unit_tests/function_formats.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
metalibm_functions/unit_tests/function_formats.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
39.381818
91
0.724608
aa6a7f67ae524865af85cc0252b61c21372e92c1
12,276
py
Python
official/resnet/imagenet_main.py
kichiro09/object-detection
b7087955bb5f2689b0ef42ab5400931cd8f416b6
[ "Apache-2.0" ]
48
2018-12-19T13:09:14.000Z
2021-11-12T12:04:36.000Z
official/resnet/imagenet_main.py
bhushan23/models
e498d28503fd4a12d1fa9ade41891f2f9601c674
[ "Apache-2.0" ]
12
2018-12-13T18:04:36.000Z
2019-06-14T20:49:33.000Z
official/resnet/imagenet_main.py
bhushan23/models
e498d28503fd4a12d1fa9ade41891f2f9601c674
[ "Apache-2.0" ]
44
2018-11-09T21:04:52.000Z
2019-06-24T07:40:28.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.386555
80
0.678804
78de34db1136d45b305fa61e25c62b02195ed359
168
py
Python
Pcolors/shortcuts/__init__.py
rafalou38/Pcolors
a4dc57c57d6a142a23a8ce8bc422581028fc8abd
[ "MIT" ]
1
2020-08-31T09:45:28.000Z
2020-08-31T09:45:28.000Z
Pcolors/shortcuts/__init__.py
rafalou38/Pcolors
a4dc57c57d6a142a23a8ce8bc422581028fc8abd
[ "MIT" ]
null
null
null
Pcolors/shortcuts/__init__.py
rafalou38/Pcolors
a4dc57c57d6a142a23a8ce8bc422581028fc8abd
[ "MIT" ]
null
null
null
from . import dark, light, format def to_bg(id): """ :param id: id of a color (light or dark) :return: id of the color for background """ return str(int(id) + 10)
21
41
0.654762
80bc55b42901ad1ac86043ba360ea5d3fe5ba8b1
9,865
py
Python
src/retroasm/asm_parser.py
mthuurne/retroasm
90b6617f7b24da05f55efceb1447314b251192e8
[ "MIT" ]
2
2019-11-29T22:57:42.000Z
2022-03-29T21:31:47.000Z
src/retroasm/asm_parser.py
mthuurne/retroasm
90b6617f7b24da05f55efceb1447314b251192e8
[ "MIT" ]
null
null
null
src/retroasm/asm_parser.py
mthuurne/retroasm
90b6617f7b24da05f55efceb1447314b251192e8
[ "MIT" ]
null
null
null
from __future__ import annotations from logging import getLogger from pathlib import Path from typing import Iterable, Iterator from .asm_directives import DataDirective, OriginDirective, StringDirective from .expression import Expression, IntLiteral, truncate from .expression_nodes import IdentifierNode, NumberNode,...
36.402214
88
0.597567
bd3a0d0c2b71afda19f90c92c54c25c94c187e0e
744
py
Python
kubernetes_engine/django_tutorial/mysite/wsgi.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
5,938
2015-05-18T05:04:37.000Z
2022-03-31T20:16:39.000Z
kubernetes_engine/django_tutorial/mysite/wsgi.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
4,730
2015-05-07T19:00:38.000Z
2022-03-31T21:59:41.000Z
kubernetes_engine/django_tutorial/mysite/wsgi.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
6,734
2015-05-05T17:06:20.000Z
2022-03-31T12:02:51.000Z
# Copyright 2015 Google 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 writing, ...
32.347826
74
0.774194
df82a27c999d633f6a723a63f73f2a48e8f853e1
9,121
py
Python
libs/sdc_etl_libs/api_helpers/apis/Ultipro/UltiproServices.py
darknegma/docker-airflow
44e3d02d7ac43c8876145ae47acfbbbde67230df
[ "Apache-2.0" ]
null
null
null
libs/sdc_etl_libs/api_helpers/apis/Ultipro/UltiproServices.py
darknegma/docker-airflow
44e3d02d7ac43c8876145ae47acfbbbde67230df
[ "Apache-2.0" ]
3
2021-03-31T19:26:57.000Z
2021-12-13T20:33:01.000Z
libs/sdc_etl_libs/api_helpers/apis/Ultipro/UltiproServices.py
darknegma/docker-airflow
44e3d02d7ac43c8876145ae47acfbbbde67230df
[ "Apache-2.0" ]
null
null
null
import datetime import decimal import json import logging import zeep from sdc_etl_libs.api_helpers.apis.Ultipro.Ultipro import Ultipro from sdc_etl_libs.sdc_dataframe.Dataframe import Dataframe, SDCDFTypes from sdc_etl_libs.sdc_file_helpers.SDCFileHelpers import SDCFileHelpers logging.basicConfig(level=logging.INFO)...
36.484
98
0.612871
1e2d427612b4edf234eaddeb1d90644a8def46ea
9,653
py
Python
vcx/wrappers/python3/demo/vcxdemo.py
dastardlychimp/indy-sdk
febdc881ccfba7a0b1b19e1c2c985142ff147548
[ "Apache-2.0" ]
null
null
null
vcx/wrappers/python3/demo/vcxdemo.py
dastardlychimp/indy-sdk
febdc881ccfba7a0b1b19e1c2c985142ff147548
[ "Apache-2.0" ]
2
2018-09-13T20:07:09.000Z
2021-12-29T20:52:05.000Z
vcx/wrappers/python3/demo/vcxdemo.py
dastardlychimp/indy-sdk
febdc881ccfba7a0b1b19e1c2c985142ff147548
[ "Apache-2.0" ]
1
2021-08-16T23:07:17.000Z
2021-08-16T23:07:17.000Z
from vcx.api.connection import Connection from demo.wait import wait_for_state from demo.vcxbase import VCXBase import json import asyncio from vcx.state import State from vcx.api.issuer_credential import IssuerCredential from vcx.api.schema import Schema from vcx.api.credential_def import CredentialDef from vcx.api.pr...
39.88843
139
0.673469
7f56bbf8631758a7a2a0a36430ae46dd483f58fc
61,876
py
Python
src/sage/symbolic/units.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/symbolic/units.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/symbolic/units.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
1
2020-07-24T12:08:30.000Z
2020-07-24T12:08:30.000Z
""" Units of measurement This is the units package. It contains information about many units and conversions between them. TUTORIAL: To return a unit:: sage: units.length.meter meter This unit acts exactly like a symbolic variable:: sage: s = units.length.meter sage: s^2 meter^2 sage: s + ...
43.149233
382
0.63658
b78c1e5aa1c6406208f62c223bc7eb41761a4311
1,127
py
Python
Examples/Basic/chatting.py
NekoGamiYuki/SpicyTwitch
b74b64026ba64c2303d7cc32da094f5c80cab325
[ "MIT" ]
null
null
null
Examples/Basic/chatting.py
NekoGamiYuki/SpicyTwitch
b74b64026ba64c2303d7cc32da094f5c80cab325
[ "MIT" ]
null
null
null
Examples/Basic/chatting.py
NekoGamiYuki/SpicyTwitch
b74b64026ba64c2303d7cc32da094f5c80cab325
[ "MIT" ]
null
null
null
""" This example file shows how to send a message to a twitch channel. It waits 30 seconds before sending the same message again, so as to not spam the channel. WARNING: Please do not remove the time.sleep(), or lower it, as you may get banned from twitch for a certain amount of time. Do so only if you know what you ...
34.151515
80
0.704525
5a9d30f852d1adc98dcd88d5ec1624df21b1d59c
1,575
py
Python
app/models/calendar.py
Joeper214/barm
77cd8ddcf73ceacf86b13ca819d8e56471e43574
[ "MIT" ]
2
2015-03-04T07:05:57.000Z
2015-03-04T07:06:00.000Z
app/models/calendar.py
Joeper214/barm
77cd8ddcf73ceacf86b13ca819d8e56471e43574
[ "MIT" ]
null
null
null
app/models/calendar.py
Joeper214/barm
77cd8ddcf73ceacf86b13ca819d8e56471e43574
[ "MIT" ]
null
null
null
from ferris import BasicModel, ndb from datetime import datetime, timedelta from google.appengine.ext import deferred class Calendar(BasicModel): event_id = ndb.KeyProperty(required=True) calendar_id = ndb.StringProperty(required=True) alloc_date = ndb.DateProperty(required=True) alloc_end = ndb.DateP...
28.125
86
0.664127
aab0b4d85864d5dfba3206393c38dde21b19d0cc
1,608
py
Python
firewall/app/main/controllers/ipController.py
vivitek/box
82b8f9fec3b92b38b8587e18bdfeb08d50708d03
[ "CC-BY-4.0" ]
2
2020-05-28T14:39:46.000Z
2020-06-19T18:38:46.000Z
firewall/app/main/controllers/ipController.py
vivitek/deep-thought
9f0e3ec1e1c1dbc14466ec8ebd24ae83e6fcee94
[ "CC-BY-4.0" ]
35
2020-06-19T18:43:47.000Z
2021-04-02T13:23:30.000Z
firewall/app/main/controllers/ipController.py
vivitek/box
82b8f9fec3b92b38b8587e18bdfeb08d50708d03
[ "CC-BY-4.0" ]
1
2020-09-01T16:08:49.000Z
2020-09-01T16:08:49.000Z
from flask import Blueprint, request, abort from flask_api import status from app.main import redis_client from app.main.firewall_manager import FWManager from app.main.utils.custom_exception import CustomException import app.main.utils.validate_form as validateForm bp = Blueprint('ip', __name__, url_prefix='/ip') PyN...
34.956522
113
0.648632
3319ef9f8f12dbab4d86177de680b7204b490299
651
py
Python
Lib/site-packages/registration/__init__.py
pablotose/Curso-Django
812ffc0b45cf8c26b3b052ad2e5a5ce22fa7ad7f
[ "bzip2-1.0.6" ]
16
2016-09-01T20:34:48.000Z
2020-03-20T06:16:25.000Z
Lib/site-packages/registration/__init__.py
pablotose/Curso-Django
812ffc0b45cf8c26b3b052ad2e5a5ce22fa7ad7f
[ "bzip2-1.0.6" ]
1
2017-01-26T19:50:36.000Z
2017-01-26T20:01:41.000Z
Lib/site-packages/registration/__init__.py
pablotose/Curso-Django
812ffc0b45cf8c26b3b052ad2e5a5ce22fa7ad7f
[ "bzip2-1.0.6" ]
5
2016-09-28T20:24:26.000Z
2019-10-07T08:33:13.000Z
VERSION = (1, 4, 0, 'final', 0) def get_version(): "Returns a PEP 386-compliant version number from VERSION." assert len(VERSION) == 5 assert VERSION[3] in ('alpha', 'beta', 'rc', 'final') # Now build the two parts of the version number: # main = X.Y[.Z] # sub = .devN - for pre-alpha releases...
28.304348
62
0.554531
10f52a70b0562e02b5160d6512b8fdef69d24e54
14,613
py
Python
Python_Tello(DJI_UAV)/tello_image_ros/2022_2_12/TelloGO_IMAG/src/tello_control/tello_control/tello_base.py
Chentao2000/practice_code
aa4fb6bbc26ac1ea0fb40e6e0889050b7e9f096c
[ "Apache-2.0" ]
4
2022-01-07T13:07:48.000Z
2022-02-08T04:46:02.000Z
Python_Tello(DJI_UAV)/tello_image_ros/2022_2_12/TelloGO_IMAG/src/tello_control/tello_control/tello_base.py
Chentao2000/practice_code
aa4fb6bbc26ac1ea0fb40e6e0889050b7e9f096c
[ "Apache-2.0" ]
null
null
null
Python_Tello(DJI_UAV)/tello_image_ros/2022_2_12/TelloGO_IMAG/src/tello_control/tello_control/tello_base.py
Chentao2000/practice_code
aa4fb6bbc26ac1ea0fb40e6e0889050b7e9f096c
[ "Apache-2.0" ]
null
null
null
import socket import threading import time import numpy as np import libh264decoder from stats import Stats class Tello: """Wrapper class to interact with the Tello drone.""" def __init__(self, local_ip, local_port, imperial=False, command_timeout=.3, tello_ip='192.168.10.1', tello...
28.822485
114
0.529665
37478165cbb1270124f8fd9d85f2a48e92615606
910
py
Python
docs/source/examples/FB2.0/post_quotas_users.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
docs/source/examples/FB2.0/post_quotas_users.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
docs/source/examples/FB2.0/post_quotas_users.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
from pypureclient.flashblade import UserQuota file_system_name = "quotaFs" # Add a quota of 1024 for the file system to apply to the users with ids 123 and 124 res = client.post_quotas_users(file_system_names=[file_system_name], uids=[123, 124], quota=UserQuota(quota=1024)) # print the ...
39.565217
90
0.696703
3a30879e0d09658c2b82e6bd126f4eec74259c1e
1,068
py
Python
dingo/migrations/0001_initial.py
MartorSkull/Tomu
8bcc2676b030fca1720efce185c398a52eed005a
[ "MIT" ]
null
null
null
dingo/migrations/0001_initial.py
MartorSkull/Tomu
8bcc2676b030fca1720efce185c398a52eed005a
[ "MIT" ]
null
null
null
dingo/migrations/0001_initial.py
MartorSkull/Tomu
8bcc2676b030fca1720efce185c398a52eed005a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-19 18:58 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
31.411765
121
0.608614
42cc51a10a19fd868be3bffb77ded5505a8ee90b
4,113
py
Python
misc/model-builder/quant/tflite.py
jackwish/shrub
acd14c72269c88e3143997288efcc6f0130c4c8e
[ "Apache-2.0" ]
2
2020-09-23T01:16:39.000Z
2022-01-26T23:16:21.000Z
misc/model-builder/quant/tflite.py
jackwish/shrub
acd14c72269c88e3143997288efcc6f0130c4c8e
[ "Apache-2.0" ]
1
2020-09-23T01:09:54.000Z
2020-09-23T01:09:54.000Z
misc/model-builder/quant/tflite.py
jackwish/shrub
acd14c72269c88e3143997288efcc6f0130c4c8e
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import tensorflow as tf from tensorflow.python.platform import gfile from tensorflow.core.framework import graph_pb2 from tensorflow.python.framework import graph_util class OpChecker: def __init__(self, op, ishape, range_min, range_max, mode="MIN_COMBINED"): # args in Tensor...
32.904
110
0.592025
952eb3ab8d7cc0df19291f01e960de255a4ae1a4
2,005
py
Python
solutions/2021/day_13.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_13.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_13.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Puzzle Title: AoC 2021 Day 13: Transparent Origami Puzzle Link: https://adventofcode.com/2021/day/13 Solution Author: Luke Spademan <info@lukespademan.com> Solution License: MIT """ import fileinput from dataclasses import dataclass import copy @dataclass class Fold: axis: st...
22.784091
61
0.555611
36713fc18c6674c212407ad55c4487c7aec9645d
4,512
py
Python
db/Student.py
sysu-team1/BackEnd
4773545897fee3aa7a767cbe6d011372623e1e58
[ "MIT" ]
1
2019-11-19T09:08:50.000Z
2019-11-19T09:08:50.000Z
db/Student.py
sysu-team1/BackEnd
4773545897fee3aa7a767cbe6d011372623e1e58
[ "MIT" ]
null
null
null
db/Student.py
sysu-team1/BackEnd
4773545897fee3aa7a767cbe6d011372623e1e58
[ "MIT" ]
null
null
null
import copy import random from .prepare import app, db, model_repr, SEX, EDUBG, ALL_TAGS class Student(db.Model): ''' 使用的sql语句: ```sql CREATE TABLE `students` ( `openid` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户的唯一标识符', `email` varchar(40) NOT NULL COMMENT '学校邮箱', `password`...
41.777778
179
0.61547
2b506051142c4cac247166250931716794b59bc6
647
py
Python
md5sum/md5sum/handler.py
quartz010/OpenAPI
a62383e7ec606a1106c56e7ddc840142711250a7
[ "MIT" ]
null
null
null
md5sum/md5sum/handler.py
quartz010/OpenAPI
a62383e7ec606a1106c56e7ddc840142711250a7
[ "MIT" ]
null
null
null
md5sum/md5sum/handler.py
quartz010/OpenAPI
a62383e7ec606a1106c56e7ddc840142711250a7
[ "MIT" ]
null
null
null
import json import random import hashlib def handle(req): """handle a request to the function Args: req (str): request body """ ret = { "code": 0, "msg": "" } if req == "": ret["code"] = 0 ret["msg"] = "invalid parameters" return json.dumps(ret) ...
23.107143
63
0.476043
936d2d5340df81b206be3de68bd604659ede6009
6,290
py
Python
utils/metric.py
zhoufangquan/sccl
4a30cca7980f1e7319d4ce727196ea74854025b8
[ "MIT-0" ]
null
null
null
utils/metric.py
zhoufangquan/sccl
4a30cca7980f1e7319d4ce727196ea74854025b8
[ "MIT-0" ]
null
null
null
utils/metric.py
zhoufangquan/sccl
4a30cca7980f1e7319d4ce727196ea74854025b8
[ "MIT-0" ]
null
null
null
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved Author: Dejiao Zhang (dejiaoz@amazon.com) Date: 02/26/2021 """ from __future__ import print_function import time import torch import numpy as np from scipy.optimize import linear_sum_assignment as hungarian from sklearn.metrics.cluster import norma...
33.280423
118
0.574245
f4728ba13f09797b37c9db6214f9680bb58f6aab
5,848
py
Python
ironic_inspector/conf/default.py
xudan16/ironic-inspector
1d8383d0ae82730c7a107dbe85712171430b237a
[ "Apache-2.0" ]
null
null
null
ironic_inspector/conf/default.py
xudan16/ironic-inspector
1d8383d0ae82730c7a107dbe85712171430b237a
[ "Apache-2.0" ]
null
null
null
ironic_inspector/conf/default.py
xudan16/ironic-inspector
1d8383d0ae82730c7a107dbe85712171430b237a
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
45.333333
79
0.569596
adec575a6cfd91740bba0af163e0cda71cc2cc6a
5,984
py
Python
fracdiff/fracdiffstat.py
vishalbelsare/fracdiff
d51d575b147dbabd9eff9833ef207716d69f9e40
[ "BSD-3-Clause" ]
44
2019-12-23T12:25:50.000Z
2022-01-08T16:04:33.000Z
fracdiff/fracdiffstat.py
simaki/fracdiff
d51d575b147dbabd9eff9833ef207716d69f9e40
[ "BSD-3-Clause" ]
71
2019-12-23T12:55:54.000Z
2021-04-30T10:14:09.000Z
fracdiff/fracdiffstat.py
vishalbelsare/fracdiff
d51d575b147dbabd9eff9833ef207716d69f9e40
[ "BSD-3-Clause" ]
19
2020-06-23T01:34:44.000Z
2022-02-19T21:01:51.000Z
import numpy from sklearn.base import BaseEstimator from sklearn.base import TransformerMixin from sklearn.utils.validation import check_array from sklearn.utils.validation import check_is_fitted from fracdiff import Fracdiff from fracdiff.stat import StatTester class FracdiffStat(TransformerMixin, BaseEstimator): ...
32.172043
87
0.586397
2007ecff4db118c8dacb9f8abdbef4203b900a64
14,581
py
Python
dev-docs/extlibs/rar_SSokolow.py
VenoMpie/pyrescene
f75d98d9173f1576b5d8fd42da300673e918707c
[ "MIT" ]
18
2020-08-09T02:17:46.000Z
2022-02-18T09:17:25.000Z
dev-docs/extlibs/rar_SSokolow.py
VenoMpie/pyrescene
f75d98d9173f1576b5d8fd42da300673e918707c
[ "MIT" ]
1
2021-11-23T21:13:37.000Z
2021-11-23T21:13:37.000Z
dev-docs/extlibs/rar_SSokolow.py
VenoMpie/pyrescene
f75d98d9173f1576b5d8fd42da300673e918707c
[ "MIT" ]
9
2020-10-15T11:02:49.000Z
2022-03-15T10:36:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A pure-Python module for identifying and examining RAR files developed without any exposure to the original unrar code. (Just format docs from wotsit.org) It was, however, influenced by the zipfile module in the Python standard library as, having already decided to mat...
41.77937
127
0.646183
1588a4c8fc8dec91174e5dd32a884294dd46addb
23,832
py
Python
tests/conftest.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
1
2020-03-16T10:02:46.000Z
2020-03-16T13:37:42.000Z
tests/conftest.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Configuration fixtures for pytest for `nipyapi` package.""" from __future__ import absolute_import import logging import pytest from os import environ, path from collections import namedtuple from time import sleep import nipyapi log = logging.getLogger(__name__) # T...
34.489146
90
0.642707
a2883339c046d6caa326d2d2e642068f9d2e2994
1,081
py
Python
src/interface/main.py
NikolaTesla13/Hackerman-chat
8422a1ee45a08231c83572a8926ba571d3e29146
[ "MIT" ]
null
null
null
src/interface/main.py
NikolaTesla13/Hackerman-chat
8422a1ee45a08231c83572a8926ba571d3e29146
[ "MIT" ]
null
null
null
src/interface/main.py
NikolaTesla13/Hackerman-chat
8422a1ee45a08231c83572a8926ba571d3e29146
[ "MIT" ]
null
null
null
import sys import string import random import requests import pretty_errors args = [] other_token = "" my_token = "" status = None def generate_token(): token = "" for i in range(0, 20): token += random.choice(string.ascii_letters + string.digits) return token if __name__ == "__main__": ...
24.022222
84
0.592044
033ed341967cbdcafb87f52cee71b1b9bc88a026
497
py
Python
env/lib/python3.8/site-packages/plotly/validators/scattergl/_xaxis.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/scattergl/_xaxis.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/scattergl/_xaxis.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): def __init__(self, plotly_name="xaxis", parent_name="scattergl", **kwargs): super(XaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.5
79
0.641851
d8cfee4089c96d7f7a68007b0367260a4f424572
4,016
py
Python
Assets/PrefixAllAssets.py
ChinaArvin/UnrealEditorPythonScripts
3bed2f3e1cf7f0ce93eac13726a18b3094e63145
[ "MIT" ]
414
2019-01-23T10:54:47.000Z
2022-03-31T02:58:18.000Z
Assets/PrefixAllAssets.py
ChinaArvin/UnrealEditorPythonScripts
3bed2f3e1cf7f0ce93eac13726a18b3094e63145
[ "MIT" ]
3
2019-08-29T21:42:21.000Z
2022-01-04T04:05:02.000Z
Assets/PrefixAllAssets.py
ColaTAL/UnrealEditorPythonScripts
b4478befb4764cae95ddc09bb7c6b3a23155e987
[ "MIT" ]
161
2019-01-21T08:55:44.000Z
2022-03-31T02:58:22.000Z
# _ # (_) # _ __ ___ __ _ _ __ ___ ___ _ __ _ ___ _ __ ___ # | '_ ` _ \ / _` | '_ ` _ \ / _ \| '_ \| |/ _ \ '_ ` _ \ # | | | | | | (_| | | | | | | (_) | | | | | __/ | | | | | # |_| |_| |_|\__,_|_| |_| |_|\___/|_| |_|_|\___|_| |_| |_| # www.mamoniem.com # www.ue4u.xyz #Copyright 20...
34.033898
135
0.626992
9c6bc99833193bf2b0aa8290d9c5cda0ff3c26d3
274
py
Python
modules/mod_reload.py
crdx/face
d2980e3ab47934ab7c8097c37f18abad6a96aa06
[ "MIT" ]
null
null
null
modules/mod_reload.py
crdx/face
d2980e3ab47934ab7c8097c37f18abad6a96aa06
[ "MIT" ]
null
null
null
modules/mod_reload.py
crdx/face
d2980e3ab47934ab7c8097c37f18abad6a96aa06
[ "MIT" ]
null
null
null
name = "Module reloader" desc = "Reloads modules" def on_pubmsg(p): words = p.event.arguments[0].split() if words[0] == "!r": p.connection.privmsg(p.event.target, "Rehashing") p.face.reload() # we've handled this event return True
21.076923
57
0.59854
a6e8d7ce89f10d0b16487484edb33a34f47a26da
3,215
py
Python
auth0/v3/management/rules.py
mdornseif/auth0-python
e87afb3754a1a10fef2c9197df1e3a7681c9eb61
[ "MIT" ]
null
null
null
auth0/v3/management/rules.py
mdornseif/auth0-python
e87afb3754a1a10fef2c9197df1e3a7681c9eb61
[ "MIT" ]
null
null
null
auth0/v3/management/rules.py
mdornseif/auth0-python
e87afb3754a1a10fef2c9197df1e3a7681c9eb61
[ "MIT" ]
null
null
null
from .rest import RestClient class Rules(object): """Rules endpoint implementation. Args: domain (str): Your Auth0 domain, e.g: 'username.auth0.com' token (str): Management API v2 Token telemetry (bool, optional): Enable or disable Telemetry (defaults to True) """ ...
32.15
92
0.570762
a96d98149365a6eeece426ca15a19325bddcf684
5,035
py
Python
Packages/matplotlib-2.2.2/lib/mpl_examples/lines_bars_and_markers/psd_demo.py
NightKirie/NCKU_NLP_2108_industry3
23ac13644b140587e23cfeffb114c7c6f46f17a2
[ "MIT" ]
1
2018-06-11T07:36:04.000Z
2018-06-11T07:36:04.000Z
Packages/matplotlib-2.2.2/lib/mpl_examples/lines_bars_and_markers/psd_demo.py
NightKirie/NCKU_NLP_2108_industry3
23ac13644b140587e23cfeffb114c7c6f46f17a2
[ "MIT" ]
null
null
null
Packages/matplotlib-2.2.2/lib/mpl_examples/lines_bars_and_markers/psd_demo.py
NightKirie/NCKU_NLP_2108_industry3
23ac13644b140587e23cfeffb114c7c6f46f17a2
[ "MIT" ]
4
2018-05-19T11:31:20.000Z
2018-07-01T20:58:29.000Z
""" ======== Psd Demo ======== Plotting Power Spectral Density (PSD) in Matplotlib. The PSD is a common plot in the field of signal processing. NumPy has many useful libraries for computing a PSD. Below we demo a few examples of how this can be accomplished and visualized with Matplotlib. """ import matplotlib.pyplot...
28.771429
79
0.636941
15c505a74a81a49bff17b4a0ef55b4fd5b09973e
17,485
py
Python
pines/gpr/__init__.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
2
2017-08-09T02:42:37.000Z
2020-06-16T14:14:16.000Z
pines/gpr/__init__.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
pines/gpr/__init__.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
from sklearn.linear_model import LinearRegression as _sklearn_LinearRegression from sklearn.gaussian_process import GaussianProcessRegressor from sklearn import preprocessing from sklearn.base import TransformerMixin from sklearn.gaussian_process.kernels import RBF, ConstantKernel as C, RationalQuadratic as RQ from sk...
25.903704
107
0.693795
8ee309537169151d1fc3e6f22eae7b5685388650
2,690
py
Python
src/cryptojwt/jws/utils.py
openid/JWTConnect-Python-CryptoJWT
ec79b98f62f033afc596a4be5229a0ded4ee771b
[ "Apache-2.0" ]
4
2018-10-02T14:47:43.000Z
2019-09-12T02:53:46.000Z
src/cryptojwt/jws/utils.py
IdentityPython/JWTConnect-Python-CryptoJWT
a7dd24f07e7bab2ce2580d7111340cc753a965c0
[ "Apache-2.0" ]
67
2020-01-23T17:33:56.000Z
2022-03-26T17:58:33.000Z
src/cryptojwt/jws/utils.py
openid/JWTConnect-Python-CryptoJWT
ec79b98f62f033afc596a4be5229a0ded4ee771b
[ "Apache-2.0" ]
5
2018-06-22T07:08:28.000Z
2019-12-20T09:57:03.000Z
# import struct from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding from ..exception import UnsupportedAlgorithm from ..jwk.hmac import sha256_digest from ..jwk.hmac import sha384_digest from ..jwk.hmac import sha512_digest from ..utils import as_unicode from...
30.568182
95
0.641636
c413df3e531e6990ed380923836adcfe61080053
5,140
py
Python
djangae/contrib/processing/mapreduce/tests/mapreduce_tests.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/processing/mapreduce/tests/mapreduce_tests.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/processing/mapreduce/tests/mapreduce_tests.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from mapreduce.mapreduce_pipeline import MapreducePipeline from django.db import models from djangae.test import TestCase from djangae.test import process_task_queues from djangae.contrib.processing.mapreduce.helpers import DjangoInputReader from djangae.contrib.processing.mapre...
32.948718
97
0.615175
3918496e46d3aa23a4f2631ef5731b89994d5935
3,434
py
Python
metachains/synchronizer.py
Storj/metachains
ed68e29eaf49da77a6fb924cdb9790de4e5e8965
[ "MIT" ]
2
2015-01-03T00:08:36.000Z
2015-10-10T03:32:23.000Z
metachains/synchronizer.py
StorjOld/metachains
ed68e29eaf49da77a6fb924cdb9790de4e5e8965
[ "MIT" ]
null
null
null
metachains/synchronizer.py
StorjOld/metachains
ed68e29eaf49da77a6fb924cdb9790de4e5e8965
[ "MIT" ]
4
2015-06-15T19:49:01.000Z
2015-10-16T03:29:02.000Z
from decimal import Decimal from collections import defaultdict import operator import logging class Synchronizer(object): """Synchronizer accesses data from and to a blockchain. Synchronizer must be instantiated with three objects: coin -- An object that responds to blocks() and transactions(...
38.155556
145
0.610076