content stringlengths 21 24.2k | avg_line_length float64 10.4 231 | max_line_length int64 20 8.17k | alphanum_fraction float64 0.25 0.82 | licenses list | repository_name stringlengths 11 51 | path stringlengths 7 121 | size int64 21 24.2k | lang stringclasses 1
value | nl_text stringlengths 19 20.6k | nl_size int64 19 20.6k | nl_ratio float64 0.8 1.07 |
|---|---|---|---|---|---|---|---|---|---|---|---|
#-----------------------------------------------------------------------------
# Copyright (c) 2015-2017, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this s... | 39.538462 | 78 | 0.529183 | [
"MIT"
] | JohnWJackson/arcadePython | venv/Lib/site-packages/PyInstaller/hooks/hook-netCDF4.py | 514 | Python | ----------------------------------------------------------------------------- Copyright (c) 2015-2017, PyInstaller Development Team. Distributed under the terms of the GNU General Public License with exception for distributing bootloader. The full license is in the file COPYING.txt, distributed with this software.-----... | 446 | 0.867704 |
# The MIT License (MIT)
#
# Copyright (c) 2015, Nicolas Sebrecht & contributors
#
# 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
... | 41.419355 | 79 | 0.759346 | [
"MIT"
] | Deepanshu2017/imapfw | imapfw/testing/libcore.py | 1,284 | Python | The MIT License (MIT) Copyright (c) 2015, Nicolas Sebrecht & contributors 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, ... | 1,094 | 0.852025 |
# -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
Module: Collect/SRTM
Description:
This module downloads DEM data from http://earlywarning.usgs.gov/hydrodata/.
Use the DEM functions to download and create DEM images in Gtiff format.
Examples:
from pyWAPOR.Collect import SRTM
SRTM.DEM(Dir='C:/TempDEM4/', latlim=[29, ... | 20.95 | 76 | 0.711217 | [
"Apache-2.0"
] | DHI-GRAS/wapor-et-look | pyWAPOR/Collect/SRTM/__init__.py | 419 | Python | Authors: Tim Hessels
Module: Collect/SRTM
Description:
This module downloads DEM data from http://earlywarning.usgs.gov/hydrodata/.
Use the DEM functions to download and create DEM images in Gtiff format.
Examples:
from pyWAPOR.Collect import SRTM
SRTM.DEM(Dir='C:/TempDEM4/', latlim=[29, 32], lonlim=[-113, -109])
... | 341 | 0.813842 |
"""Plot graphs from human-readable file formats."""
| 26 | 51 | 0.730769 | [
"MIT"
] | Sean1708/uniplot | uniplot/__init__.py | 52 | Python | Plot graphs from human-readable file formats. | 45 | 0.865385 |
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Configurable configuration
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Sing... | 36.942197 | 109 | 0.668388 | [
"Apache-2.0"
] | TrinathY/pipeline | config/jupyter/jupyter_notebook_config.py | 19,173 | Python | Configuration file for jupyter-notebook.------------------------------------------------------------------------------ Configurable configuration------------------------------------------------------------------------------------------------------------------------------------------------------------ SingletonConfigura... | 17,935 | 0.93543 |
#
# Tencent is pleased to support the open source community by making Angel available.
#
# Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of ... | 31.967742 | 102 | 0.744702 | [
"Apache-2.0",
"BSD-3-Clause"
] | 20100507/angel | angel-ps/python/build/lib/pyangel/running_mode.py | 991 | Python | Enum for running mode
Tencent is pleased to support the open source community by making Angel available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain ... | 793 | 0.800202 |
# MIT License
#
# Copyright (c) 2019 Red Hat, Inc.
# 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,... | 50.318182 | 80 | 0.775971 | [
"MIT"
] | FilipSchad/packit | packit/cli/__init__.py | 1,107 | Python | MIT License Copyright (c) 2019 Red Hat, Inc. 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, distr... | 1,065 | 0.96206 |
# inclass/mongo_queries.py
import pymongo
import os
from dotenv import load_dotenv
import sqlite3
load_dotenv()
DB_USER = os.getenv("MONGO_USER", default="OOPS")
DB_PASSWORD = os.getenv("MONGO_PASSWORD", default="OOPS")
CLUSTER_NAME = os.getenv("MONGO_CLUSTER_NAME", default="OOPS")
connection_uri = f"mongodb+srv://{D... | 26.685864 | 150 | 0.566314 | [
"MIT"
] | ekselan/DS-Unit-3-Sprint-2-SQL-and-Databases | assignment3/a3_mongo_queries_abw.py | 10,194 | Python | inclass/mongo_queries.py print(dir(client)) print("DB NAMES:", client.list_database_names()) > ['admin', 'local'] "ds14_db" or whatever you want to call it print("----------------") print("DB:", type(db), db) collection = db.ds14_pokemon_collection "ds14_collection" or whatever you want to call it print("-------------... | 8,333 | 0.817442 |
# -*- coding: utf-8 -*-
#
# Python Github documentation build configuration file, created by
# sphinx-quickstart on Tue Feb 3 23:23:15 2015.
#
# 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
# autogenerated file.... | 31.524164 | 79 | 0.71816 | [
"MIT"
] | nicchub/PythonGithub | docs/conf.py | 8,480 | Python | -*- coding: utf-8 -*- Python Github documentation build configuration file, created by sphinx-quickstart on Tue Feb 3 23:23:15 2015. 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 autogenerated file. All configuration v... | 7,108 | 0.838208 |
'''
TRIES
Trie support search, insert, and deletion in O(L) time where L is length of the key
why Trie?
* With Trie, we can insert and find strings in O(L) time where L represent the length of a single word. This is obviously faster than BST.
This is also faster than Hashing because of the ways it is im... | 28.925 | 147 | 0.703544 | [
"MIT"
] | Wmeng98/Leetcode | CTCI/Data Structures/Trees/tries.py | 1,157 | Python | TRIES
Trie support search, insert, and deletion in O(L) time where L is length of the key
why Trie?
* With Trie, we can insert and find strings in O(L) time where L represent the length of a single word. This is obviously faster than BST.
This is also faster than Hashing because of the ways it is impleme... | 1,015 | 0.877269 |
# Configuration file with default options,
# There are four main sections: General, Features, LQP and Learning corresponding to different
# functionalities. You can disable any of the Features or Learning section (by commenting it out) according to your requirement.
[General]
# general options
idir=/home/hussain/dat... | 68.241379 | 256 | 0.698585 | [
"BSD-3-Clause"
] | csgcmai/lqp_face | face-rec/config.py | 3,958 | Python | Configuration file with default options, There are four main sections: General, Features, LQP and Learning corresponding to different functionalities. You can disable any of the Features or Learning section (by commenting it out) according to your requirement. general options images directory path path where cropped_i... | 3,347 | 0.845629 |
# -*- coding: utf-8 -*-
#
# python_exameple documentation build configuration file, created by
# sphinx-quickstart on Fri Feb 26 00:29:33 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
# autogenerated fil... | 32.511864 | 79 | 0.719737 | [
"MIT"
] | bascloud/BASCloudAPI | pyBAScloudAPI/docs/conf.py | 9,591 | Python | -*- coding: utf-8 -*- python_exameple documentation build configuration file, created by sphinx-quickstart on Fri Feb 26 00:29:33 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 autogenerated file. All configuration... | 8,018 | 0.835992 |
# Demo Python Datetime - The strftime() Method
'''
The strftime() Method
The datetime object has a method for formatting date objects into readable strings.
The method is called strftime(), and takes one parameter, format, to specify the format of the returned string.
Directive Description ... | 57.333333 | 111 | 0.354236 | [
"MIT"
] | luis2ra/py3-00-w3schools | 0-python-tutorial/25-dates05_strftime23_z.py | 2,408 | Python | The strftime() Method
The datetime object has a method for formatting date objects into readable strings.
The method is called strftime(), and takes one parameter, format, to specify the format of the returned string.
Directive Description Example
%a ... | 2,588 | 1.074751 |
#!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: Shijie Qin
@license: Apache Licence
@contact: qsj4work@gmail.com
@site: https://shijieqin.github.io
@software: PyCharm
@file: __init__.py.py
@time: 2018/11/8 3:13 PM
"""
| 17.928571 | 35 | 0.669323 | [
"Apache-2.0"
] | shijieqin/flatfish | core/__init__.py | 251 | Python | @version: v1.0
@author: Shijie Qin
@license: Apache Licence
@contact: qsj4work@gmail.com
@site: https://shijieqin.github.io
@software: PyCharm
@file: __init__.py.py
@time: 2018/11/8 3:13 PM
!/usr/bin/env python encoding: utf-8 | 237 | 0.944223 |
"""
Listas
Listas em Python funcionam como vetores/matrizes (arrays) em outras linguagens, com a diferença
de serem DINÂMICO e também de podermos colocar QUALQUER tipo de dado.
Linguagens C/Java: Arrays
- Possuem tamanho e tipo de dado fixo;
Ou seja, nestas linguagens se você criar um array do tipo int e com tamanh... | 25.703812 | 116 | 0.712949 | [
"MIT"
] | vdonoladev/aprendendo-programacao | Python/Programação_em_Python_Essencial/5- Coleções/listas.py | 8,882 | Python | Listas
Listas em Python funcionam como vetores/matrizes (arrays) em outras linguagens, com a diferença
de serem DINÂMICO e também de podermos colocar QUALQUER tipo de dado.
Linguagens C/Java: Arrays
- Possuem tamanho e tipo de dado fixo;
Ou seja, nestas linguagens se você criar um array do tipo int e ... | 8,938 | 1.019738 |
import re
from pygbif.gbifutils import gbif_baseurl, bool2str, requests_argset, gbif_GET
def search(
taxonKey=None,
repatriated=None,
kingdomKey=None,
phylumKey=None,
classKey=None,
orderKey=None,
familyKey=None,
genusKey=None,
subgenusKey=None,
scientificName=None,
countr... | 50.844282 | 250 | 0.676748 | [
"MIT"
] | livatras/pygbif | pygbif/occurrences/search.py | 20,897 | Python | Search GBIF occurrences
:param taxonKey: [int] A GBIF occurrence identifier
:param q: [str] Simple search parameter. The value for this parameter can be a simple word or a phrase.
:param spellCheck: [bool] If ``True`` ask GBIF to check your spelling of the value passed to the ``search`` parameter.
IMPORTANT: This ... | 16,767 | 0.802364 |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | 36.172414 | 76 | 0.656816 | [
"Apache-2.0"
] | HydAu/AzureSDKForPython | azure-mgmt-resource/azure/mgmt/resource/features/__init__.py | 1,049 | Python | coding=utf-8 -------------------------------------------------------------------------- Copyright (c) Microsoft and contributors. 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... | 883 | 0.841754 |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 35.711538 | 79 | 0.661282 | [
"MIT"
] | keathmilligan/flask-jwt-refresh | docs/conf.py | 1,857 | Python | Configuration file for the Sphinx documentation builder. This file only contains a selection of the most common options. For a full list see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html -- Path setup -------------------------------------------------------------- If extensions (or mod... | 1,546 | 0.832526 |
# partesanato/__init__.py
| 13.5 | 26 | 0.777778 | [
"MIT"
] | edgarbs1998/partesanato-server | src/partesanato/__init__.py | 27 | Python | partesanato/__init__.py | 23 | 0.851852 |
# Copyright 2015 Ciara Kamahele-Sanfratello
#
# 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... | 36.727273 | 85 | 0.75 | [
"Apache-2.0"
] | ciarakamahele/sasy | simulator/Planners/Planner.py | 808 | Python | Copyright 2015 Ciara Kamahele-Sanfratello 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, so... | 648 | 0.80198 |
#!/usr/bin/python
# coding: utf-8
# 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
# autogenerated file. All configuration values have a default; values that are
# commented out serve to show the default.
import sys
... | 32.072874 | 79 | 0.709038 | [
"MIT"
] | metaist/pageit | docs/conf.py | 7,922 | Python | !/usr/bin/python coding: utf-8 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 autogenerated file. All configuration values have a default; values that are commented out serve to show the default. If extensions (or module... | 6,568 | 0.829084 |
# Scrapy settings for amzASINScrapper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-mi... | 35.460674 | 103 | 0.78327 | [
"MIT"
] | sunil-dhaka/python-webScrappers | amzASINScrapper/amzASINScrapper/settings.py | 3,156 | Python | Scrapy settings for amzASINScrapper project For simplicity, this file contains only settings considered important or commonly used. You can find more settings consulting the documentation: https://docs.scrapy.org/en/latest/topics/settings.html https://docs.scrapy.org/en/latest/topics/downloader-middleware.html ... | 2,860 | 0.90621 |
"""Archive Tests
Copyright 2015 Archive Analytics Solutions - University of Liverpool
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... | 32.047619 | 72 | 0.793462 | [
"Apache-2.0"
] | pericles-project/ERMR | indigo-web/archive/tests.py | 673 | Python | Archive Tests
Copyright 2015 Archive Analytics Solutions - University of Liverpool
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... | 630 | 0.936107 |
# Copyright Bruno da Silva de Oliveira 2003. Use, modification and
# distribution is subject to the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
| 34.142857 | 70 | 0.74477 | [
"MIT"
] | DD-L/deel.boost.python | origin/libs/python/pyste/src/Pyste/__init__.py | 239 | Python | Copyright Bruno da Silva de Oliveira 2003. Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | 222 | 0.92887 |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 33.551724 | 79 | 0.661871 | [
"Apache-2.0"
] | saltstack/rend | docs/conf.py | 1,946 | Python | Configuration file for the Sphinx documentation builder. This file only contains a selection of the most common options. For a full list see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html -- Path setup -------------------------------------------------------------- If extensions (or mod... | 1,593 | 0.818602 |
# Copyright 2016-2021 The Van Valen Lab at the California Institute of
# Technology (Caltech), with support from the Paul Allen Family Foundation,
# Google, & National Institutes of Health (NIH) under Grant U24CA224309-01.
# All rights reserved.
#
# Licensed under a modified Apache License, Version 2.0 (the "License");... | 42.861111 | 80 | 0.747894 | [
"Apache-2.0"
] | GuillaumeMougeot/deepcell-tf | deepcell/applications/multiplex_segmentation.py | 1,543 | Python | Multiplex segmentation application.
Deprecated in favor of ``deepcell.applications.Mesmer`` instead.
Copyright 2016-2021 The Van Valen Lab at the California Institute of Technology (Caltech), with support from the Paul Allen Family Foundation, Google, & National Institutes of Health (NIH) under Grant U24CA224309-01.... | 1,303 | 0.844459 |
# -*- coding: utf-8 -*-
"""
Indices library
===============
This module describes climate indicator functions. Functions are listed in alphabetical order and describe the raw
computation performed over xarray.DataArrays. DataArrays should carry unit information to allow for any needed
unit conversions. The output's a... | 35.088608 | 117 | 0.712843 | [
"Apache-2.0"
] | gacou54/xclim | xclim/indices/__init__.py | 2,772 | Python | Indices library
===============
This module describes climate indicator functions. Functions are listed in alphabetical order and describe the raw
computation performed over xarray.DataArrays. DataArrays should carry unit information to allow for any needed
unit conversions. The output's attributes (CF-Convention) are... | 2,674 | 0.964646 |
"""On-premise Gitlab clients
"""
# from .v4 import *
| 13.25 | 28 | 0.641509 | [
"BSD-3-Clause"
] | shwetagopaul92/tapis-cli-ng | tapis_cli/clients/services/gitlab/__init__.py | 53 | Python | On-premise Gitlab clients
from .v4 import * | 45 | 0.849057 |
# coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 34.192308 | 99 | 0.767154 | [
"Apache-2.0"
] | Amourspirit/ooo_uno_tmpl | ooobuild/dyn/configuration/backend/multi_layer_stratum.py | 889 | Python | coding: utf-8 Copyright 2022 :Barry-Thomas-Paul: Moss 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... | 713 | 0.802025 |
"""hackernews URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | 35.136364 | 78 | 0.690815 | [
"MIT"
] | Saltiest-Hacker-News-Trolls-2/DS | hackernews/hackernews/urls.py | 773 | Python | hackernews URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 626 | 0.809832 |
############################################################################
# examples/multi_webcamera/host/test_module/__init__.py
#
# Copyright 2019, 2020 Sony Semiconductor Solutions Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the ... | 49.777778 | 76 | 0.717634 | [
"Apache-2.0"
] | Curly386/spresense | examples/multi_webcamera/host/test_module/__init__.py | 1,792 | Python | examples/multi_webcamera/host/test_module/__init__.py Copyright 2019, 2020 Sony Semiconductor Solutions Corporation 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 cop... | 1,540 | 0.859375 |
import os
import sys
__all__ = [
'lexsort','sort', 'argsort','argmin', 'argmax', 'searchsorted']
from pnumpy._pnumpy import getitem, lexsort32, lexsort64
import numpy as np
from numpy import asarray, array, asanyarray
from numpy import concatenate
#array_function_dispatch = functools.partial(
# overrides.arr... | 33.043887 | 94 | 0.591737 | [
"MIT"
] | Quansight/numpy-threading-extensions | src/pnumpy/sort.py | 21,082 | Python | Returns the indices of the maximum values along an axis.
Parameters
----------
a : array_like
Input array.
axis : int, optional
By default, the index is into the flattened array, otherwise
along the specified axis.
out : array, optional
If provided, the result will be inserted into this array. It shoul... | 17,146 | 0.8133 |
# -*- coding: utf-8 -*-
#
# This document is free and open-source software, subject to the OSI-approved
# BSD license below.
#
# Copyright (c) 2011 - 2013 Alexis Petrounias <www.petrounias.org>,
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted p... | 46.925 | 80 | 0.773042 | [
"BSD-3-Clause"
] | kordian-kowalski/django-cte-forest | cte_forest/__init__.py | 1,877 | Python | Django CTE Trees - an experimental PostgreSQL Common Table Expressions (CTE)
implementation of of Adjacency-Linked trees.
-*- coding: utf-8 -*- This document is free and open-source software, subject to the OSI-approved BSD license below. Copyright (c) 2011 - 2013 Alexis Petrounias <www.petrounias.org>, All rights re... | 1,738 | 0.925946 |
# -*- coding: utf-8 -*-
#
# Submittable API Client documentation build configuration file, created by
# sphinx-quickstart on Mon Jun 9 15:21:21 2014.
#
# 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
# autogenera... | 31.961977 | 112 | 0.721865 | [
"MIT"
] | shawnr/submittable-api-client | docs/source/conf.py | 8,406 | Python | -*- coding: utf-8 -*- Submittable API Client documentation build configuration file, created by sphinx-quickstart on Mon Jun 9 15:21:21 2014. 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 autogenerated file. All config... | 7,000 | 0.832739 |
# -*- coding: utf-8 -*-
#
# github-cli documentation build configuration file, created by
# sphinx-quickstart on Tue May 5 17:40:34 2009.
#
# 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
# autogenerated file.
#
# ... | 32.34359 | 80 | 0.722531 | [
"BSD-3-Clause"
] | jsmits/github-cli | docs/source/conf.py | 6,307 | Python | -*- coding: utf-8 -*- github-cli documentation build configuration file, created by sphinx-quickstart on Tue May 5 17:40:34 2009. 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 autogenerated file. All configuration valu... | 5,552 | 0.880292 |
# -*- coding: utf-8 -*-
#
# Political Dynamics documentation build configuration file, created by
# sphinx-quickstart.
#
# 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
# autogenerated file.
#
# All configuration va... | 32.420408 | 127 | 0.709178 | [
"MIT"
] | aryamccarthy/ANES | docs/conf.py | 7,943 | Python | -*- coding: utf-8 -*- Political Dynamics documentation build configuration file, created by sphinx-quickstart. 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 autogenerated file. All configuration values have a default; v... | 6,666 | 0.83923 |
"""This module contains wunderkafka producer's boilerplate."""
| 31.5 | 62 | 0.777778 | [
"Apache-2.0"
] | severstal-digital/wunderkafka | wunderkafka/producers/__init__.py | 63 | Python | This module contains wunderkafka producer's boilerplate. | 56 | 0.888889 |
#for fixture loading
| 10.5 | 20 | 0.809524 | [
"BSD-2-Clause"
] | chalkchisel/django-rest-framework | examples/permissionsexample/models.py | 21 | Python | for fixture loading | 19 | 0.904762 |
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ============================================================================ #
# Project : Airbnb #
# Version : 0.1.0 #
# File : split_names.py ... | 52.7 | 80 | 0.253004 | [
"BSD-3-Clause"
] | decisionscients/Airbnb | src/lab/split_names.py | 1,581 | Python | !/usr/bin/env python3 -*- coding:utf-8 -*- ============================================================================ Project : Airbnb Version : 0.1.0 File : split_names.py ... | 1,373 | 0.868438 |
# Copyright 2021 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 limitation
# the rights to use, copy, modif... | 47.62963 | 76 | 0.773717 | [
"MIT"
] | Cray-HPE/bos | src/bos/operators/utils/clients/bos/__init__.py | 1,286 | Python | Copyright 2021 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 limitation the rights to use, copy, modify, merge, pu... | 1,092 | 0.849145 |
"""BackPACK extensions/hooks for computing low-rank factors of the GGN."""
| 37.5 | 74 | 0.76 | [
"MIT"
] | PwLo3K46/vivit | vivit/extensions/secondorder/__init__.py | 75 | Python | BackPACK extensions/hooks for computing low-rank factors of the GGN. | 68 | 0.906667 |
# Character field ID when accessed: 100000201
# ParentID: 32226
# ObjectID: 0
| 19.5 | 45 | 0.75641 | [
"MIT"
] | doriyan13/doristory | scripts/quest/autogen_q32226s.py | 78 | Python | Character field ID when accessed: 100000201 ParentID: 32226 ObjectID: 0 | 71 | 0.910256 |
"""
Conjuntos são chamados de set's
- Set não possui duplicidade
- Set não possui valor ordenado
- Não são acessados via indice, ou seja, não são indexados
Bons para armazenar elementos são ordenação, sem se preocupar com chaves, valores e itens duplicados.
Set's são referenciados por {}
Diferença de set e dict
- Dic... | 31.863014 | 117 | 0.479364 | [
"MIT"
] | PauloFTeixeira/curso_python | Secao7_ColecoesPython/Conjutos.py | 4,683 | Python | Conjuntos são chamados de set's
- Set não possui duplicidade
- Set não possui valor ordenado
- Não são acessados via indice, ou seja, não são indexados
Bons para armazenar elementos são ordenação, sem se preocupar com chaves, valores e itens duplicados.
Set's são referenciados por {}
Diferença de set e dict
- Dict te... | 4,643 | 0.998065 |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 33.169492 | 79 | 0.666326 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | MonetDB/MonetDB | documentation/monetdbe/conf.py | 1,957 | Python | Configuration file for the Sphinx documentation builder. This file only contains a selection of the most common options. For a full list see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html -- Path setup -------------------------------------------------------------- If extensions (or mod... | 1,634 | 0.834951 |
from abaqusConstants import *
from .BoundaryConditionState import BoundaryConditionState
class DisplacementBaseMotionBCState(BoundaryConditionState):
"""The DisplacementBaseMotionBCState object stores the propagating data for a velocity base
motion boundary condition in a step. One instance of this object is ... | 35.756757 | 179 | 0.733182 | [
"MIT"
] | Haiiliin/PyAbaqus | src/abaqus/BoundaryCondition/DisplacementBaseMotionBCState.py | 2,646 | Python | The DisplacementBaseMotionBCState object stores the propagating data for a velocity base
motion boundary condition in a step. One instance of this object is created internally
by the DisplacementBaseMotionBC object for each step. The instance is also deleted
internally by the DisplacementBaseMotionBC object.
The Dis... | 2,117 | 0.800076 |
'''
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any late... | 43.555556 | 76 | 0.741071 | [
"MIT"
] | Malekhy/ws2122-lspm | ws2122-lspm/Lib/site-packages/pm4py/visualization/decisiontree/__init__.py | 784 | Python | This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PM4Py is dis... | 665 | 0.848214 |
# -*- coding: utf-8 -*-
#
# ns-3 documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 14 09:00:39 2010.
#
# 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
# autogenerated file.
#
# All co... | 32.267281 | 80 | 0.716938 | [
"BSD-3-Clause"
] | maxvonhippel/snake | ns-3-dev/doc/models/source/conf.py | 7,002 | Python | -*- coding: utf-8 -*- ns-3 documentation build configuration file, created by sphinx-quickstart on Tue Dec 14 09:00:39 2010. 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 autogenerated file. All configuration values hav... | 6,102 | 0.871465 |
#coding:utf-8
#
# id: bugs.core_5275
# title: CORE-5275: Expression index may become inconsistent if CREATE INDEX was interrupted after b-tree creation but before commiting
# decription:
# This test (and CORE- ticket) has been created after wrong initial implementation of test for ... | 39.711712 | 452 | 0.556148 | [
"MIT"
] | artyom-smirnov/firebird-qa | tests/bugs/core_5275_test.py | 17,632 | Python | coding:utf-8 id: bugs.core_5275 title: CORE-5275: Expression index may become inconsistent if CREATE INDEX was interrupted after b-tree creation but before commiting decription: This test (and CORE- ticket) has been created after wrong initial implementation of test for CORE-1746. ... | 14,141 | 0.802008 |
"""This is a set of tools built up over time for working with Gaussian and
QChem input and output."""
########################################################################
# #
# ... | 61.25 | 74 | 0.348105 | [
"Apache-2.0"
] | theavey/QM-calc-scripts | gautools/__init__.py | 1,715 | Python | This is a set of tools built up over time for working with Gaussian and
QChem input and output.
This script was written by Thomas Heavey in 2017. theav... | 1,388 | 0.809329 |
# -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 36.285714 | 77 | 0.740157 | [
"Apache-2.0"
] | Aniruddha120/qiskit-aqua | test/aqua/operators/__init__.py | 508 | Python | -*- coding: utf-8 -*- This code is part of Qiskit. (C) Copyright IBM 2018, 2019. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license in the LICENSE.txt file in the root directory of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. Any modifications or der... | 482 | 0.948819 |
###
# Copyright (c) 2004, Daniel DiPaolo
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condition... | 40.8 | 79 | 0.768854 | [
"BSD-3-Clause"
] | Alcheri/Limnoria | plugins/QuoteGrabs/__init__.py | 2,652 | Python | Quotegrabs are like IRC sound bites. When someone says something funny,
incriminating, stupid, outrageous, ... anything that might be worth
remembering, you can grab that quote for that person. With this plugin, you
can store many quotes per person and display their most recent quote, as well
as see who "grabbed" the... | 2,255 | 0.850302 |
# coding: utf-8
"""
Velo Payments APIs
## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor.... | 134.475 | 4,651 | 0.770961 | [
"Apache-2.0"
] | velopaymentsapi/velo-python | test/test_ping.py | 5,383 | Python | Ping unit test stubs
Test Ping
Velo Payments APIs
## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payo... | 4,918 | 0.914296 |
# The code for this extension is based on https://github.com/ulrobix/sphinxcontrib-contentui
| 46.5 | 92 | 0.806452 | [
"Apache-2.0"
] | NivekNey/sparkling-water | doc/src/site/sphinx/extensions/contentui/__init__.py | 93 | Python | The code for this extension is based on https://github.com/ulrobix/sphinxcontrib-contentui | 90 | 0.967742 |
# Solution of;
# Project Euler Problem 564: Maximal polygons
# https://projecteuler.net/problem=564
#
# A line segment of length $2n-3$ is randomly split into $n$ segments of
# integer length ($n \ge 3$). In the sequence given by this split, the
# segments are then used as consecutive sides of a convex $n$-polygon, ... | 44.416667 | 79 | 0.68793 | [
"MIT"
] | lcsm29/project-euler | py/py_0564_maximal_polygons.py | 1,599 | Python | Solution of; Project Euler Problem 564: Maximal polygons https://projecteuler.net/problem=564 A line segment of length $2n-3$ is randomly split into $n$ segments of integer length ($n \ge 3$). In the sequence given by this split, the segments are then used as consecutive sides of a convex $n$-polygon, formed in suc... | 1,401 | 0.876173 |
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
spyderlib.widgets
=================
Widgets defined in this module may be used in any other Qt-based application
They are also used in Spyder throug... | 23.375 | 77 | 0.679144 | [
"MIT"
] | MarlaJahari/Marve | spyderlib/widgets/__init__.py | 375 | Python | spyderlib.widgets
=================
Widgets defined in this module may be used in any other Qt-based application
They are also used in Spyder through the Plugin interface
(see spyderlib.plugins)
-*- coding: utf-8 -*- Copyright © 2009-2010 Pierre Raybaut Licensed under the terms of the MIT License (see spyderlib/__i... | 341 | 0.911765 |
# -*- coding: utf-8 -*-
# Copyright (c) 2014, 2015 Mitch Garnaat
#
# 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 appl... | 37.294118 | 74 | 0.741325 | [
"Apache-2.0"
] | BrunoCarrier/kappa | kappa/__init__.py | 634 | Python | -*- coding: utf-8 -*- Copyright (c) 2014, 2015 Mitch Garnaat 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... | 582 | 0.917981 |
"""FastAPI Project for CodeSpace.
https://csdot.ml
"""
| 13.75 | 33 | 0.690909 | [
"Apache-2.0"
] | codespacedot/CodeSpaceAPI | src/__init__.py | 55 | Python | FastAPI Project for CodeSpace.
https://csdot.ml | 47 | 0.854545 |
""" Global and local Scopes
Scopes and Namespaces
When an object is assigned to a variable # a = 10
that variable points to some object
and we say that the variable (name) is bound to that object
That object can be accessed using that name in various parts of our code... | 29.707692 | 102 | 0.626618 | [
"Unlicense"
] | minefarmer/deep-Dive-1 | .history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709212514.py | 1,931 | Python | Global and local Scopes
Scopes and Namespaces
When an object is assigned to a variable # a = 10
that variable points to some object
and we say that the variable (name) is bound to that object
That object can be accessed using that name in various parts of our code
# ### I can't refere... | 1,902 | 0.984982 |
# The MIT License (MIT)
#
# Copyright (c) 2015-present, vn-crypto
#
# 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... | 44.75 | 80 | 0.783719 | [
"MIT"
] | NovelResearchInvestment/vnpy_deribit | vnpy_deribit/__init__.py | 1,253 | Python | The MIT License (MIT) Copyright (c) 2015-present, vn-crypto 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,... | 1,080 | 0.861931 |
# Copyright (c) 2015 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... | 40.605263 | 71 | 0.755023 | [
"BSD-2-Clause"
] | 1M15M3/yubikey-manager | ykman/__init__.py | 1,543 | Python | Copyright (c) 2015 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 conditions and the follow... | 1,318 | 0.85418 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021 Northwestern University.
#
# invenio-subjects-mesh is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""Version information for invenio-subjects-mesh.
This file is imported by ``invenio_s... | 25.25 | 73 | 0.725248 | [
"MIT"
] | fenekku/invenio-subjects-mesh | invenio_subjects_mesh/version.py | 404 | Python | Version information for invenio-subjects-mesh.
This file is imported by ``invenio_subjects_mesh.__init__``,
and parsed by ``setup.py``.
-*- coding: utf-8 -*- Copyright (C) 2021 Northwestern University. invenio-subjects-mesh is free software; you can redistribute it and/or modify it under the terms of the MIT License... | 356 | 0.881188 |
# 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... | 32.696203 | 79 | 0.714092 | [
"Apache-2.0"
] | kucerakk/template | umn/source/conf.py | 5,166 | Python | 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 License is dist... | 4,222 | 0.817267 |
"""[Lambda Expressions]
Lambda expressions are simply another way to create functions anonymous functions
keyword \ parameter list optional
\ \ the : is required, even for zero arguments
\ \ / / this expression is evaluated and returned when the lamb... | 19.966102 | 161 | 0.633277 | [
"Unlicense"
] | minefarmer/deep-Dive-1 | .history/my_classes/FirstClassFunctions/LambdaExpressions_20210704152007.py | 1,178 | Python | [Lambda Expressions]
Lambda expressions are simply another way to create functions anonymous functions
keyword \ parameter list optional
\ \ the : is required, even for zero arguments
\ \ / / this expression is evaluated and returned when the lambda ... | 1,167 | 0.990662 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2020 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the ... | 39.933333 | 79 | 0.724958 | [
"BSD-3-Clause"
] | BelligerG/improver | improver/cli/sleet_probability.py | 2,396 | Python | Calculate sleet probability.
Calculates the sleet probability using the
calculate_sleet_probability plugin.
Args:
snow (iris.cube.Cube):
An iris Cube of the probability of snow.
rain (iris.cube.Cube):
An iris Cube of the probability of rain.
Returns:
iris.cube.Cube:
Returns a cube... | 2,014 | 0.840568 |
# Theory: Indexes
# There are several types of collections to store data in Python.
# Positionally ordered collections of elements are usually called
# sequences, and both lists and strings belong to them. EAch
# element in a list, as well as each character in a string, has an
# index that corresponds to its position.... | 40.333333 | 66 | 0.770661 | [
"MIT"
] | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | Computer science/Programming languages/Python/Working with data/Collections/Lists/Indexes/topic.py | 484 | Python | Theory: Indexes There are several types of collections to store data in Python. Positionally ordered collections of elements are usually called sequences, and both lists and strings belong to them. EAch element in a list, as well as each character in a string, has an index that corresponds to its position. Indexes are ... | 463 | 0.956612 |
"""
This is the UGaLi analysis sub-package.
Classes related to higher-level data analysis live here.
Modules
objects :
mask :
"""
| 13.454545 | 56 | 0.655405 | [
"MIT"
] | DarkEnergySurvey/ugali | ugali/analysis/__init__.py | 148 | Python | This is the UGaLi analysis sub-package.
Classes related to higher-level data analysis live here.
Modules
objects :
mask : | 138 | 0.932432 |
# -*- coding: utf-8 -*-
# @Author: Yanqi Gu
# @Date: 2019-04-20 16:30:52
# @Last Modified by: Yanqi Gu
# @Last Modified time: 2019-04-20 16:57:49
| 25 | 42 | 0.613333 | [
"MIT"
] | Guyanqi/DPC4.5 | DPDecisionTree/__init__.py | 150 | Python | -*- coding: utf-8 -*- @Author: Yanqi Gu @Date: 2019-04-20 16:30:52 @Last Modified by: Yanqi Gu @Last Modified time: 2019-04-20 16:57:49 | 139 | 0.926667 |
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 33.915254 | 82 | 0.270365 | [
"BSD-3-Clause"
] | BiYandong110/bokeh | tests/unit/bokeh/sampledata/test_glucose.py | 2,001 | Python | ----------------------------------------------------------------------------- Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. All rights reserved. The full license is in the file LICENSE.txt, distributed with this software.------------------------------------------------------------------------------... | 1,609 | 0.804098 |
# Databricks notebook source
# MAGIC %md-sandbox
# MAGIC
# MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;">
# MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px">
# MAGIC </div>
# COMMAND ----------
# M... | 42.167857 | 315 | 0.720505 | [
"CC0-1.0"
] | databricks-academy/data-engineering-with-databricks | Data-Engineering-with-Databricks/06 - Incremental Data Processing/DE 6.1 - Incremental Data Ingestion with Auto Loader.py | 11,807 | Python | Databricks notebook source MAGIC %md-sandbox MAGIC MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> MAGIC </div> COMMAND ---------- MAGIC %md MAGIC MA... | 10,104 | 0.855764 |
# Copyright 2018 Yegor Bitensky
# 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, ... | 34.15 | 74 | 0.746706 | [
"Apache-2.0"
] | YegorDB/THPoker | tests/utils.py | 683 | Python | Copyright 2018 Yegor Bitensky 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 distri... | 551 | 0.806735 |
"""
This module stores global variables that must be shared between all modules of
envprobe.
Please do not introduce a too large global state in this module.
Please do not add dependencies of other modules to this module because almost
all parts of envprobe refers this module.
"""
# This list contains the valid subco... | 35.076923 | 78 | 0.785088 | [
"MIT"
] | steakhal/envprobe | configuration/global_config.py | 456 | Python | This module stores global variables that must be shared between all modules of
envprobe.
Please do not introduce a too large global state in this module.
Please do not add dependencies of other modules to this module because almost
all parts of envprobe refers this module.
This list contains the valid subcommands th... | 419 | 0.91886 |
# Solution to Problem 8
# Program outputs today's date and time in the format "Monday, January 10th 2019 at 1:15pm"
# To start we import the Python datetime module as dt.
from datetime import datetime as dt
#now equals the date and time now.
now = dt.now()
# Copied verbatim initially from stacoverflow Reference 1 bel... | 67.869565 | 276 | 0.726457 | [
"Apache-2.0"
] | LauraBrogan/pands-problem-set-2019 | solution-8.py | 1,563 | Python | Solution to Problem 8 Program outputs today's date and time in the format "Monday, January 10th 2019 at 1:15pm" To start we import the Python datetime module as dt.now equals the date and time now. Copied verbatim initially from stacoverflow Reference 1 below but amended to fit my referenceing of time as now. Suffix eq... | 1,282 | 0.821268 |
from ui import *
startUI()
# # - read the input data:
# import MnistLoader
# training_data, validation_data, test_data = MnistLoader.load_data_wrapper()
# training_data = list(training_data)
# # ---------------------
... | 10.374194 | 113 | 0.631219 | [
"MIT"
] | YuriyAksenov/ImageRecognition | Test.py | 1,744 | Python | - read the input data: import MnistLoader training_data, validation_data, test_data = MnistLoader.load_data_wrapper() training_data = list(training_data) --------------------- - network.py example: from Network import Network, vectorized_result from NetworkLoader import save, load netPath = "E:\\ITMO University\\Инт... | 1,365 | 0.848881 |
# Copyright 2021 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 ... | 35.263158 | 77 | 0.731343 | [
"Apache-2.0"
] | openstack/tripleo-repos | tests/unit/yum_config/mock_modules.py | 670 | Python | Copyright 2021 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 writing, softw... | 569 | 0.849254 |
#
#
# Needs to be expanded to accommodate the common occurrence of sparse.multiSparse objects in the geounitNode class vs pure numpy arrays
#
#
import os
import sys
# If there is __init__.py in the directory where this file is, then Python adds das_decennial directory to sys.path
# automatically. Not sure why and how ... | 63.478261 | 562 | 0.642466 | [
"CC0-1.0"
] | dkifer/census2020-das-e2e | programs/engine/unit_tests/json_nodes_test.py | 2,920 | Python | Needs to be expanded to accommodate the common occurrence of sparse.multiSparse objects in the geounitNode class vs pure numpy arrays If there is __init__.py in the directory where this file is, then Python adds das_decennial directory to sys.path automatically. Not sure why and how it works, therefore, keeping the fol... | 2,363 | 0.809247 |
#!/usr/bin/env python
# Problem: Many forked repos on GitHub fall behind from their origins.
# Solution:
# 1) Verify that `apt install myrepos` is available on the system.
# 2) Query GitHub API to find all of my repositories
# 3) Clone each *fork* into *~/repos/mynameofit*, such that place I forked it
# from is git... | 40.285714 | 77 | 0.719858 | [
"MIT"
] | edunham/toys | utilities/updatify.py | 564 | Python | !/usr/bin/env python Problem: Many forked repos on GitHub fall behind from their origins. Solution: 1) Verify that `apt install myrepos` is available on the system. 2) Query GitHub API to find all of my repositories 3) Clone each *fork* into *~/repos/mynameofit*, such that place I forked it from is git origin (or up... | 540 | 0.957447 |
"""
Conditional Generative adversarial networks:
https://arxiv.org/abs/1611.07004
U-net:
https://arxiv.org/abs/1505.04597
Conditional generative adversarial network architecture modules
used for simulation of detector response and unfolding in JetGAN framework.
Generator() returns the generator model, and Discriminato... | 27.923077 | 75 | 0.807163 | [
"MIT"
] | nickelsey/jetgan | jetgan/model/cgan.py | 363 | Python | Conditional Generative adversarial networks:
https://arxiv.org/abs/1611.07004
U-net:
https://arxiv.org/abs/1505.04597
Conditional generative adversarial network architecture modules
used for simulation of detector response and unfolding in JetGAN framework.
Generator() returns the generator model, and Discriminator() ... | 353 | 0.972452 |
# AutoTransform
# Large scale, component based code modification library
#
# Licensed under the MIT License <http://opensource.org/licenses/MIT>
# SPDX-License-Identifier: MIT
# Copyright (c) 2022-present Nathan Rockenbach <http://github.com/nathro>
# @black_format
"""A change represents a submission from a run of Au... | 37.538462 | 91 | 0.780738 | [
"MIT"
] | nathro/AutoTransform | src/python/autotransform/change/__init__.py | 488 | Python | A change represents a submission from a run of AutoTransform on a particular Batch. They
are used for managing submissions to code review/source control systems. A pull request is
an example of a potential change.
AutoTransform Large scale, component based code modification library Licensed under the MIT License <htt... | 467 | 0.956967 |
# ReID Online Upload Service | 28 | 28 | 0.821429 | [
"MIT"
] | MikeCun/PersonReID | upload/__init__.py | 28 | Python | ReID Online Upload Service | 26 | 0.928571 |
"""
WSGI config for CongressionalRecord project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_AP... | 44.181818 | 79 | 0.807956 | [
"Apache-2.0"
] | kdunn926/eunomia-django | CongressionalRecord/wsgi.py | 1,458 | Python | WSGI config for CongressionalRecord project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLIC... | 1,250 | 0.857339 |
# Copyright 2018-2022 Streamlit 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 wr... | 35.555556 | 74 | 0.760938 | [
"Apache-2.0"
] | Aaryanverma/streamlit | e2e/scripts/st_text.py | 640 | Python | Copyright 2018-2022 Streamlit 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, software di... | 555 | 0.867188 |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 33.438596 | 79 | 0.659496 | [
"MIT"
] | BrambleXu/SeqAL | docs/source/conf.py | 1,906 | Python | Configuration file for the Sphinx documentation builder. This file only contains a selection of the most common options. For a full list see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html -- Path setup -------------------------------------------------------------- If extensions (or mod... | 1,578 | 0.827912 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# flake8: noqa
#
# AppDaemon documentation build configuration file, created by
# sphinx-quickstart on Fri Aug 11 14:36:18 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are pre... | 32.043624 | 91 | 0.709708 | [
"Apache-2.0"
] | ReneTode/appdaemon | docs/conf.py | 9,549 | Python | !/usr/bin/env python3 -*- coding: utf-8 -*- flake8: noqa AppDaemon documentation build configuration file, created by sphinx-quickstart on Fri Aug 11 14:36:18 2017. 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 autogene... | 8,018 | 0.839669 |
# -*- coding: utf-8 -*-
# Author:Qiujie Yao
# Email: yaoqiujie@gscopetech.com
# @Time: 2019-06-26 14:15
| 20.8 | 33 | 0.653846 | [
"Apache-2.0"
] | iyaoqiujie/VehicleInspection | VehicleInspection/apps/appointment/permissions.py | 106 | Python | -*- coding: utf-8 -*- Author:Qiujie Yao Email: yaoqiujie@gscopetech.com @Time: 2019-06-26 14:15 | 95 | 0.913462 |
# -*- coding: utf-8 -*-
"""Tests for :mod:`docdata`."""
| 14.25 | 31 | 0.491228 | [
"MIT"
] | cthoyt/docdata | tests/__init__.py | 57 | Python | Tests for :mod:`docdata`.
-*- coding: utf-8 -*- | 49 | 0.859649 |
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 37.866667 | 76 | 0.558099 | [
"MIT"
] | tbyfield/azure-cli-extensions | src/fidalgo/azext_fidalgo/generated/_params.py | 568 | Python | -------------------------------------------------------------------------- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior ... | 506 | 0.890845 |
# from nonbonded.cli.project.project import project
#
# __all__ = [project]
| 19 | 51 | 0.75 | [
"MIT"
] | SimonBoothroyd/nonbonded | nonbonded/cli/projects/__init__.py | 76 | Python | from nonbonded.cli.project.project import project __all__ = [project] | 69 | 0.907895 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# capmetrics-etl documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 11 00:08:57 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 th... | 32.452962 | 79 | 0.719025 | [
"MIT"
] | jga/capmetrics-etl | docs/conf.py | 9,314 | Python | !/usr/bin/env python3 -*- coding: utf-8 -*- capmetrics-etl documentation build configuration file, created by sphinx-quickstart on Mon Jan 11 00:08:57 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 autogenerated fi... | 7,889 | 0.847005 |
"""nflDAs URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | 34 | 77 | 0.708556 | [
"MIT"
] | BARarch/NFL-Topics | nflDAs/nflDAs/urls.py | 748 | Python | nflDAs URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | 622 | 0.831551 |
# -*- coding: utf-8 -*-
#
# django-staticbuilder documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 30 22:32:51 2013.
#
# 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
# autogenerated ... | 32.708502 | 82 | 0.714692 | [
"MIT"
] | hzdg/django-staticbuilder | docs/source/conf.py | 8,079 | Python | -*- coding: utf-8 -*- django-staticbuilder documentation build configuration file, created by sphinx-quickstart on Wed Jan 30 22:32:51 2013. 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 autogenerated file. All configur... | 6,654 | 0.823617 |
# -*- coding: utf-8 -*-
# Scrapy settings for mySpider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | 33.945055 | 102 | 0.775332 | [
"MIT"
] | zxallen/spider | mySpider/mySpider/settings.py | 3,089 | Python | -*- coding: utf-8 -*- Scrapy settings for mySpider project For simplicity, this file contains only settings considered important or commonly used. You can find more settings consulting the documentation: https://doc.scrapy.org/en/latest/topics/settings.html https://doc.scrapy.org/en/latest/topics/downloader-mid... | 2,698 | 0.873422 |
"""
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed. It doesn't matter what you leave beyond the ... | 38.844444 | 133 | 0.680778 | [
"MIT"
] | ChenhaoJiang/LeetCode-Solution | 1-50/27_remove-element.py | 1,748 | Python | :type nums: List[int]
:type val: int
:rtype: int
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed.... | 1,433 | 0.819794 |
#
# Copyright 2021 IBM 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 applicable law or agreed... | 34.947368 | 74 | 0.753012 | [
"Apache-2.0"
] | hardik-dadhich/appconfiguration-python-sdk | ibm_appconfiguration/version.py | 664 | Python | Version of ibm-appconfiguration-python-sdk
Copyright 2021 IBM 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... | 607 | 0.914157 |
# coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 39.368421 | 102 | 0.783422 | [
"Apache-2.0"
] | BeeAlarmed/datasets | tensorflow_datasets/image_classification/i_naturalist2018/__init__.py | 748 | Python | i_naturalist2018 dataset.
coding=utf-8 Copyright 2021 The TensorFlow Datasets Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required... | 610 | 0.815508 |
# ---------------------------------------------------------------------
#
# Copyright (c) 2012 University of Oxford
#
# 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, incl... | 43.878788 | 90 | 0.679558 | [
"MIT"
] | dataflow/DataStage | datastage/web/documentation/urls.py | 1,448 | Python | --------------------------------------------------------------------- Copyright (c) 2012 University of Oxford 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 ... | 1,204 | 0.831492 |
# -*- coding: utf-8 -*-
#
# pytest-dasktest documentation build configuration file, created by
# sphinx-quickstart on Thu Oct 1 00:43:18 2015.
#
# 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
# autogenerated fil... | 32.801394 | 116 | 0.719567 | [
"MIT"
] | mariusvniekerk/pytest-dask | docs/conf.py | 9,414 | Python | -*- coding: utf-8 -*- pytest-dasktest documentation build configuration file, created by sphinx-quickstart on Thu Oct 1 00:43:18 2015. 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 autogenerated file. All configuration... | 7,941 | 0.843531 |
"""
mbed SDK
Copyright (c) 2011-2015 ARM Limited
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 wr... | 31.708333 | 72 | 0.788436 | [
"Apache-2.0"
] | ARMmbed/mbed-os-tools | packages/mbed-host-tests/mbed_host_tests/host_tests_plugins/module_copy_silabs.py | 761 | Python | mbed SDK
Copyright (c) 2011-2015 ARM Limited
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 writin... | 624 | 0.819974 |
""" Visualize the single different data samples or averages
All visualization nodes are zero-processing nodes, i.e. their execute method
returns exactly the data that it gets as parameter. However, when the data
is passed through the visualization node, it performs different kinds of
analysis and creates some plots o... | 49.066667 | 78 | 0.80163 | [
"BSD-3-Clause"
] | pyspace/pyspace | pySPACE/missions/nodes/visualization/__init__.py | 736 | Python | Visualize the single different data samples or averages
All visualization nodes are zero-processing nodes, i.e. their execute method
returns exactly the data that it gets as parameter. However, when the data
is passed through the visualization node, it performs different kinds of
analysis and creates some plots of th... | 727 | 0.987772 |
# Copyright (c) 2021. Slonos Labs. All rights Reserved.
| 28.5 | 56 | 0.719298 | [
"MIT"
] | kapousa/BrontoMind2 | app/base/gg.py | 57 | Python | Copyright (c) 2021. Slonos Labs. All rights Reserved. | 53 | 0.929825 |
# -*- coding: utf-8 -*-
#
# RequestsThrottler documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 31 13:40:59 2013.
#
# 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
# autogenerated f... | 31.758491 | 81 | 0.72279 | [
"Apache-2.0"
] | a-tal/requests-throttler | docs/conf.py | 8,416 | Python | -*- coding: utf-8 -*- RequestsThrottler documentation build configuration file, created by sphinx-quickstart on Tue Dec 31 13:40:59 2013. 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 autogenerated file. All configurati... | 7,035 | 0.835908 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.