hexsha stringlengths 40 40 | size int64 4 1.02M | ext stringclasses 8
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 209 | max_stars_repo_name stringlengths 5 121 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 209 | max_issues_repo_name stringlengths 5 121 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 209 | max_forks_repo_name stringlengths 5 121 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 4 1.02M | avg_line_length float64 1.07 66.1k | max_line_length int64 4 266k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3e142ca1cb364737d4450b3867cd93525109cda | 91 | py | Python | example.py | 01abhishek10/Attendance | 7c4faf67205fabcc6c8b509a9d433b0a4b4b3a28 | [
"MIT"
] | null | null | null | example.py | 01abhishek10/Attendance | 7c4faf67205fabcc6c8b509a9d433b0a4b4b3a28 | [
"MIT"
] | null | null | null | example.py | 01abhishek10/Attendance | 7c4faf67205fabcc6c8b509a9d433b0a4b4b3a28 | [
"MIT"
] | null | null | null | def git_operation():
print("I am adding example.py to my github repo")
git_operation()
| 22.75 | 53 | 0.725275 |
3bac55bef2f440b9dc013faf74e25c2af9ad388f | 918 | py | Python | examples/django_waveapps/django_waveapps/urls.py | gbozee/waveapps | 3a3505b135e8002ced59d5458090326aeef3822b | [
"MIT"
] | null | null | null | examples/django_waveapps/django_waveapps/urls.py | gbozee/waveapps | 3a3505b135e8002ced59d5458090326aeef3822b | [
"MIT"
] | null | null | null | examples/django_waveapps/django_waveapps/urls.py | gbozee/waveapps | 3a3505b135e8002ced59d5458090326aeef3822b | [
"MIT"
] | null | null | null | """django_waveapps URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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='hom... | 35.307692 | 88 | 0.674292 |
ba7d80ac63f8efbb72e696693dbd5cc40829ed26 | 4,023 | py | Python | model_train/train_mixup2.py | rftgy-bow/ElectricTimbreDictionaryV2 | 566efa30f4b2186e71a75557c041110c6e8f1bfa | [
"MIT"
] | 3 | 2021-09-17T07:07:27.000Z | 2021-09-17T07:07:37.000Z | model_train/train_mixup2.py | rftgy-bow/ElectricTimbreDictionaryV2 | 566efa30f4b2186e71a75557c041110c6e8f1bfa | [
"MIT"
] | null | null | null | model_train/train_mixup2.py | rftgy-bow/ElectricTimbreDictionaryV2 | 566efa30f4b2186e71a75557c041110c6e8f1bfa | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
import numpy as np
from tensorflow import keras, saved_model, distribute
#from keras.models import Model
#from keras.layers import Input, Dense, Dropout, Activation
#from keras.layers import Conv2D, GlobalAveragePooling2D
#from keras.layers import BatchNormalization, Add
from tensorflow.keras.ca... | 29.580882 | 95 | 0.706687 |
de7a7c95baa8f39d84f3b9a9af22505379c9bc6e | 586 | py | Python | testsuite/complement-reg/run.py | luyatshimbalanga/OpenShadingLanguage | 2120647911af732f0d12d70e2f7f4e1ebe8fadcb | [
"BSD-3-Clause"
] | 1,105 | 2015-01-02T20:47:19.000Z | 2021-01-25T13:20:56.000Z | testsuite/complement-reg/run.py | luyatshimbalanga/OpenShadingLanguage | 2120647911af732f0d12d70e2f7f4e1ebe8fadcb | [
"BSD-3-Clause"
] | 696 | 2015-01-07T23:42:08.000Z | 2021-01-25T03:55:08.000Z | testsuite/complement-reg/run.py | luyatshimbalanga/OpenShadingLanguage | 2120647911af732f0d12d70e2f7f4e1ebe8fadcb | [
"BSD-3-Clause"
] | 248 | 2015-01-05T13:41:28.000Z | 2021-01-24T23:29:55.000Z | #!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
command += testshade("-t 1 -g 32 32 -od uint8 v_complement -o cout v_comp.tif -o mcout mv_comp.tif")
outputs.append ("v_comp.... | 27.904762 | 100 | 0.745734 |
d4f485496ed32ba0577e402b38aa06d9b61cd209 | 203 | py | Python | python/extend_cpp/main.py | DaniloZZZ/Ideas-Fun | 8b9fff17935e39d2a00630013045298e190cfe12 | [
"Apache-2.0"
] | null | null | null | python/extend_cpp/main.py | DaniloZZZ/Ideas-Fun | 8b9fff17935e39d2a00630013045298e190cfe12 | [
"Apache-2.0"
] | null | null | null | python/extend_cpp/main.py | DaniloZZZ/Ideas-Fun | 8b9fff17935e39d2a00630013045298e190cfe12 | [
"Apache-2.0"
] | null | null | null | import cdan
def main():
a = [1.2,3,0,-4]
b = [-1.2,9,1.2,-8]
l = cdan.loop_add(a,b)
print("loop",l)
s = cdan.simd_add(a,b)
print("simd",s)
if __name__=='__main__':
main()
| 13.533333 | 26 | 0.502463 |
6ede4d4c35ffce8cc22717b83650208c4c32f186 | 2,252 | py | Python | pmbrl/control/agent.py | paul-kinghorn/rl-inference | 007dba5836b79417aaa0aa6216492745aa9e1bb3 | [
"MIT"
] | 20 | 2020-04-16T18:13:39.000Z | 2022-02-25T01:20:39.000Z | pmbrl/control/agent.py | paul-kinghorn/rl-inference | 007dba5836b79417aaa0aa6216492745aa9e1bb3 | [
"MIT"
] | null | null | null | pmbrl/control/agent.py | paul-kinghorn/rl-inference | 007dba5836b79417aaa0aa6216492745aa9e1bb3 | [
"MIT"
] | 8 | 2020-04-23T05:39:46.000Z | 2021-08-29T20:21:44.000Z | # pylint: disable=not-callable
# pylint: disable=no-member
from copy import deepcopy
import numpy as np
import torch
import torch.nn as nn
class Agent(object):
def __init__(self, env, planner, logger=None):
self.env = env
self.planner = planner
self.logger = logger
def get_seed_epis... | 30.849315 | 85 | 0.535524 |
ab73a85b7503b188e15fb52c190ea9c3057ca953 | 257 | py | Python | tests/testdata/models/identity_model.py | radu-matei/wasi-nn-onnx | 03791230353350b197bdd03037a026ba938e2f90 | [
"MIT"
] | 14 | 2021-07-07T16:03:11.000Z | 2022-03-29T01:01:57.000Z | tests/testdata/models/identity_model.py | radu-matei/wasi-nn-onnx | 03791230353350b197bdd03037a026ba938e2f90 | [
"MIT"
] | 2 | 2021-07-23T15:25:44.000Z | 2021-08-04T05:08:10.000Z | tests/testdata/models/identity_model.py | radu-matei/wasi-nn-onnx | 03791230353350b197bdd03037a026ba938e2f90 | [
"MIT"
] | 1 | 2021-09-30T20:29:07.000Z | 2021-09-30T20:29:07.000Z | """
Usage: pip install torch
python identity_model.py
"""
import torch
__version__ = '0.1.0'
class Model(torch.nn.Module):
def forward(self, x):
return x
m = Model()
x = torch.randn(1, 4)
torch.onnx.export(m, (x, ), 'identity_input_output.onnx')
| 15.117647 | 57 | 0.673152 |
f05db209e52280ab4d845ba388c64cb8e72b210a | 1,609 | py | Python | list-targets.py | lhunath/xcanalyzer | 93fae7f53dfb642664724e7ee58536f56f9c4790 | [
"BSD-3-Clause"
] | 4 | 2019-09-08T03:47:19.000Z | 2021-11-24T10:38:19.000Z | list-targets.py | lhunath/xcanalyzer | 93fae7f53dfb642664724e7ee58536f56f9c4790 | [
"BSD-3-Clause"
] | 1 | 2021-10-04T19:30:37.000Z | 2021-10-04T19:30:37.000Z | list-targets.py | lhunath/xcanalyzer | 93fae7f53dfb642664724e7ee58536f56f9c4790 | [
"BSD-3-Clause"
] | 4 | 2021-06-05T16:12:19.000Z | 2022-03-21T06:39:41.000Z | #!/usr/bin/env python3
import argparse
from xcanalyzer.xcodeproject.parsers import XcProjectParser
from xcanalyzer.xcodeproject.exceptions import XcodeProjectReadException
from xcanalyzer.xcodeproject.generators import XcProjReporter
# --- Arguments ---
argument_parser = argparse.ArgumentParser(description="List al... | 34.234043 | 110 | 0.684897 |
a63d0001a134b894edbff46b5d9955fcc1fd2a1b | 2,875 | py | Python | remove/myjira/test_ccc.py | nukeguys/myutil | 65d0aff36ec45bffbd2e52fea0fabfbabd5609b1 | [
"Apache-2.0"
] | null | null | null | remove/myjira/test_ccc.py | nukeguys/myutil | 65d0aff36ec45bffbd2e52fea0fabfbabd5609b1 | [
"Apache-2.0"
] | null | null | null | remove/myjira/test_ccc.py | nukeguys/myutil | 65d0aff36ec45bffbd2e52fea0fabfbabd5609b1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
from jira.client import JIRA
from jira.config import get_jira
from jira.utils import json_loads
from pprint import pprint
import os
import subprocess
import json
import sys
class Shell:
@staticmethod
def execute(bashCommand, wantToError=True):
process = su... | 35.9375 | 107 | 0.642087 |
9745bb4362f4ab1d32071368495412023849db4f | 8,570 | py | Python | padertorch/contrib/cb/summary.py | sibange/padertorch | 494692d877f04c66847c2943795b23aea488217d | [
"MIT"
] | 62 | 2019-12-22T08:30:29.000Z | 2022-03-22T11:02:59.000Z | padertorch/contrib/cb/summary.py | sibange/padertorch | 494692d877f04c66847c2943795b23aea488217d | [
"MIT"
] | 47 | 2020-01-06T09:23:47.000Z | 2022-01-24T16:55:06.000Z | padertorch/contrib/cb/summary.py | sibange/padertorch | 494692d877f04c66847c2943795b23aea488217d | [
"MIT"
] | 13 | 2019-12-16T08:12:46.000Z | 2021-11-08T14:37:06.000Z |
import collections
import torch
import einops
import cached_property
import padertorch as pt
# loss: torch.Tenso r =None,
# losses: dict =None,
# scalars: dict =None,
# histograms: dict =None,
# audios: dict =None,
# images: dict =None,
class ReviewSummary(collections.abc.Mapping):
"""
>>> review_summary... | 31.050725 | 121 | 0.535123 |
9de73177fd56fe2cc0101a79442e867055bd7dbb | 9,219 | py | Python | tests/test_postgresql_search.py | VanilleBid/weekly-saleor | e776e86ee7ce710929ef33878d936e2a8367a217 | [
"BSD-3-Clause"
] | null | null | null | tests/test_postgresql_search.py | VanilleBid/weekly-saleor | e776e86ee7ce710929ef33878d936e2a8367a217 | [
"BSD-3-Clause"
] | 86 | 2018-03-08T14:19:19.000Z | 2018-05-12T14:55:16.000Z | tests/test_postgresql_search.py | JesusDelgadoPatlan/tiendaSpark | 0c8cfe7fa6e070f57daf4d06e2776bc4059ad830 | [
"BSD-3-Clause"
] | 2 | 2018-03-05T12:29:10.000Z | 2018-09-28T12:40:52.000Z | from saleor.product.models import Product
from saleor.order.models import Order
from saleor.userprofile.models import Address, User
from django.urls import reverse
from decimal import Decimal
import pytest
@pytest.fixture(scope='function', autouse=True)
def postgresql_search_enabled(settings):
settings.ENABLE_SE... | 36.729084 | 79 | 0.692917 |
5729d5da16f4b7eada51126d5bb6485bc1d2dbc3 | 49 | py | Python | 01-holamundo/holamundo.py | tulcas/master-python | ddac8aa1bf3e6448fe237eac239d27ce3fda705c | [
"MIT"
] | null | null | null | 01-holamundo/holamundo.py | tulcas/master-python | ddac8aa1bf3e6448fe237eac239d27ce3fda705c | [
"MIT"
] | null | null | null | 01-holamundo/holamundo.py | tulcas/master-python | ddac8aa1bf3e6448fe237eac239d27ce3fda705c | [
"MIT"
] | null | null | null | print("Hola mundo !! Soy Victor Robles!!!\n\n")
| 16.333333 | 47 | 0.632653 |
8e53e00d4f5c1a21fec538b2ab32025aec76fbd6 | 6,634 | py | Python | impacket/NDP.py | wuerror/impacket | 142cacb649b8c6441df9330ac22fe4d15a0d1bbc | [
"Apache-1.1"
] | 23 | 2020-02-21T02:44:21.000Z | 2022-03-03T23:40:32.000Z | impacket/NDP.py | cipher9rat/impacket | 142cacb649b8c6441df9330ac22fe4d15a0d1bbc | [
"Apache-1.1"
] | null | null | null | impacket/NDP.py | cipher9rat/impacket | 142cacb649b8c6441df9330ac22fe4d15a0d1bbc | [
"Apache-1.1"
] | 21 | 2021-06-29T23:14:54.000Z | 2022-03-24T13:13:58.000Z | # SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved.
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
import array
import struct
from impacket import ImpactPacket
from impacket.... | 39.963855 | 131 | 0.66521 |
be13266e224fb72cd4c0d6c30d7b386cee07dc6a | 1,042 | py | Python | kubernetes/test/test_v1beta2_deployment_condition.py | iamneha/python | 5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0 | [
"Apache-2.0"
] | 1 | 2019-02-17T15:28:39.000Z | 2019-02-17T15:28:39.000Z | kubernetes/test/test_v1beta2_deployment_condition.py | iamneha/python | 5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0 | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_v1beta2_deployment_condition.py | iamneha/python | 5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.13.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... | 23.155556 | 105 | 0.731286 |
3629fca193ee45491cf0cdc41eea9a096a771349 | 275 | py | Python | csip/datasets/__init__.py | isaaccorley/contrastive-surface-image-pretraining | a918d4fd3b9cc61ec512af978fb4f086d3b46a70 | [
"MIT"
] | 1 | 2022-03-03T09:26:49.000Z | 2022-03-03T09:26:49.000Z | csip/datasets/__init__.py | isaaccorley/contrastive-surface-image-pretraining | a918d4fd3b9cc61ec512af978fb4f086d3b46a70 | [
"MIT"
] | 1 | 2022-03-09T08:50:01.000Z | 2022-03-09T08:51:11.000Z | csip/datasets/__init__.py | isaaccorley/contrastive-surface-image-pretraining | a918d4fd3b9cc61ec512af978fb4f086d3b46a70 | [
"MIT"
] | null | null | null | from .landcover_ai import LandCoverAI, LandCoverAIDataModule
from .oscd import OSCD, OSCDDataModule
from .overhead_geopose import OverheadGeopose, OverheadGeoposeSSLDataModule
from .s2looking import S2Looking, S2LookingDataModule
from .xview2 import xView2, xView2DataModule
| 45.833333 | 75 | 0.872727 |
cdc7205e74804a2f51fc90157872b7aec9ada281 | 2,128 | py | Python | capirca/lib/srxlo.py | google-admin/capirca | 8c9e66456fedb3c0fc1c641dbefc41793e5c68d5 | [
"Apache-2.0"
] | null | null | null | capirca/lib/srxlo.py | google-admin/capirca | 8c9e66456fedb3c0fc1c641dbefc41793e5c68d5 | [
"Apache-2.0"
] | null | null | null | capirca/lib/srxlo.py | google-admin/capirca | 8c9e66456fedb3c0fc1c641dbefc41793e5c68d5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Google Inc. 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 agr... | 33.777778 | 74 | 0.719925 |
eaa72539e6430beedac7c2b67837bf560cb7f908 | 506 | py | Python | migrations/versions/47b4ac7d7d6e_.py | d82078010/The-Anti-Social-Network | 68941cda2e855f91d7ea4c8bf3c8159118d7f09b | [
"MIT"
] | 16 | 2015-01-22T17:14:56.000Z | 2019-08-15T13:14:08.000Z | migrations/versions/47b4ac7d7d6e_.py | aquario-crypto/Anti_Social_Network | 8d7113ce34b9ecc8208cf98f2ddba1b98c4dd1d9 | [
"MIT"
] | 6 | 2020-03-24T15:32:44.000Z | 2021-02-02T21:46:33.000Z | migrations/versions/47b4ac7d7d6e_.py | aquario-crypto/Anti_Social_Network | 8d7113ce34b9ecc8208cf98f2ddba1b98c4dd1d9 | [
"MIT"
] | 5 | 2015-02-06T12:35:37.000Z | 2018-08-09T15:14:23.000Z | """empty message
Revision ID: 47b4ac7d7d6e
Revises: 57b811035a20
Create Date: 2014-09-09 20:26:07.166443
"""
# revision identifiers, used by Alembic.
revision = '47b4ac7d7d6e'
down_revision = '57b811035a20'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | 18.740741 | 63 | 0.689723 |
fd95eaa709757b6c32e43db1dbf3474c2443248c | 1,712 | py | Python | scripts/cross_validation_results.py | jannesgg/rasa-train-test-gha | 2c12be4555d893b16cf98b09064c8b9eb9b0c6ff | [
"Apache-2.0"
] | null | null | null | scripts/cross_validation_results.py | jannesgg/rasa-train-test-gha | 2c12be4555d893b16cf98b09064c8b9eb9b0c6ff | [
"Apache-2.0"
] | null | null | null | scripts/cross_validation_results.py | jannesgg/rasa-train-test-gha | 2c12be4555d893b16cf98b09064c8b9eb9b0c6ff | [
"Apache-2.0"
] | null | null | null | from pytablewriter import MarkdownTableWriter
import json
import os
result_dir = os.environ["RESULT_DIR"]
def intent_table():
writer = MarkdownTableWriter()
writer.table_name = "Intent Cross-Validation Results"
with open(f"{result_dir}/intent_report.json", "r") as f:
data = json.loads(f.read())
... | 24.112676 | 74 | 0.599299 |
3f99e4387227f93b61af143c16e04c84fb4250a0 | 1,445 | py | Python | dufi/gui/boxes/custombox/logbox.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/boxes/custombox/logbox.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/boxes/custombox/logbox.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
import os
import io
import subprocess
try:
import tkinter as tk
except ImportError:
import Tkinter as tk
from ..pygubuapp import GUIApplication
from .logboxui import logboxui
__all__ = ("logbox", )
... | 20.352113 | 82 | 0.631834 |
9f0448b2870040c705004f28c3ffef226b616a5b | 1,370 | py | Python | tracker/serializers.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 39 | 2016-01-04T04:13:27.000Z | 2022-01-18T19:17:24.000Z | tracker/serializers.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 140 | 2015-11-01T01:19:54.000Z | 2022-03-10T13:00:33.000Z | tracker/serializers.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 35 | 2016-01-20T12:42:21.000Z | 2022-01-20T07:06:47.000Z | from django.core.serializers.python import Serializer as PythonSerializer
from django.db import models
from tracker.models import Prize
_ExtraFields = {
Prize: ['start_draw_time', 'end_draw_time'],
}
class TrackerSerializer(PythonSerializer):
def __init__(self, Model, request):
self.Model = Model
... | 35.128205 | 78 | 0.638686 |
2924a197c4b7f920f444d05dcbdbd95d145a3dbc | 1,538 | py | Python | Winston/code/pgn_to_df3.py | wel51x/ItsOver9000-DS | 288dced311a77ad3c1945f68a1ab8ed2c075b755 | [
"MIT"
] | null | null | null | Winston/code/pgn_to_df3.py | wel51x/ItsOver9000-DS | 288dced311a77ad3c1945f68a1ab8ed2c075b755 | [
"MIT"
] | null | null | null | Winston/code/pgn_to_df3.py | wel51x/ItsOver9000-DS | 288dced311a77ad3c1945f68a1ab8ed2c075b755 | [
"MIT"
] | 2 | 2019-04-12T23:51:43.000Z | 2019-04-16T04:43:23.000Z | import chess.pgn
import pandas as pd
import datetime
import numpy as np
def categorize(score):
bin = score - 700
if bin < 0:
bin = 0
return int(bin / 100)
pgn = open("/Users/wel51x/Downloads/ficsgamesdb_201902_chess_nomovetimes_63077.pgn")
ix = 0
df_cols = ["Result", "Category"]
playerSet = {}
Re... | 23.30303 | 84 | 0.587776 |
7293d7d26d00da65ad03ed2d895c795bbdfa568e | 1,182 | py | Python | setup.py | JNRowe-retired/restfulie-py | 8ac2bc401068c7bae6da3d107b004835618165d7 | [
"Apache-2.0"
] | 3 | 2015-03-09T09:17:46.000Z | 2016-05-03T02:51:25.000Z | setup.py | JNRowe-retired/restfulie-py | 8ac2bc401068c7bae6da3d107b004835618165d7 | [
"Apache-2.0"
] | null | null | null | setup.py | JNRowe-retired/restfulie-py | 8ac2bc401068c7bae6da3d107b004835618165d7 | [
"Apache-2.0"
] | 1 | 2020-12-14T23:23:26.000Z | 2020-12-14T23:23:26.000Z | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='restfulie',
version='0.9.2',
description='Writing hypermedia aware resource based clients and servers',
author=' ',
author_email=' ',
url='http://restfulie.caelumobjects.com/',
long_description='CRUD through ... | 38.129032 | 218 | 0.64467 |
be0f95114f6955cd6ef31ac1ab20e646647cc4aa | 32,747 | py | Python | ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | 3 | 2016-12-01T15:55:11.000Z | 2016-12-01T15:56:38.000Z | ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 54.669449 | 3,967 | 0.573946 |
7c7e3b0b132b68cbb5f8c8a452d0b372e6c235fb | 3,418 | py | Python | Eg01_neural_network/mnist_loader.py | chengfzy/DeepLearningStudy | 46b7dd1e5ee33c3556b2acd6820ed5254c93197f | [
"MIT"
] | null | null | null | Eg01_neural_network/mnist_loader.py | chengfzy/DeepLearningStudy | 46b7dd1e5ee33c3556b2acd6820ed5254c93197f | [
"MIT"
] | null | null | null | Eg01_neural_network/mnist_loader.py | chengfzy/DeepLearningStudy | 46b7dd1e5ee33c3556b2acd6820ed5254c93197f | [
"MIT"
] | null | null | null | """
mnist_loader
~~~~~~~~~~~~
A library to load the MNIST image data. For details of the data
structures that are returned, see the doc strings for ``load_data``
and ``load_data_wrapper``. In practice, ``load_data_wrapper`` is the
function usually called by our neural network code.
"""
#### Libraries
# Standard lib... | 38.404494 | 80 | 0.696899 |
7e3066c4bc08cfdd8a5da6d108268971f845108e | 3,248 | py | Python | profiles_project/settings.py | joeward60/profiles-rest-api | a7e2d01d27290a510dc8392137a6dea8a3ec55ee | [
"MIT"
] | null | null | null | profiles_project/settings.py | joeward60/profiles-rest-api | a7e2d01d27290a510dc8392137a6dea8a3ec55ee | [
"MIT"
] | null | null | null | profiles_project/settings.py | joeward60/profiles-rest-api | a7e2d01d27290a510dc8392137a6dea8a3ec55ee | [
"MIT"
] | null | null | null | """
Django settings for profiles_project project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | 25.777778 | 91 | 0.699815 |
88dbe224bf514de2885b180337ccc23f3e13b810 | 2,667 | py | Python | aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SearchMediaWorkflowRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SearchMediaWorkflowRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SearchMediaWorkflowRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 38.652174 | 78 | 0.760405 |
3627aa39512d87b65c10006b6fb6074031e4218f | 1,849 | py | Python | tests/superset_test_config.py | rodrigoguariento/incubator-superset | b2633a51d43faaca74751349b96fc32784d4b377 | [
"Apache-2.0"
] | 7 | 2017-11-01T06:00:12.000Z | 2019-01-05T13:31:48.000Z | tests/superset_test_config.py | Odirlei-Stein/incubator-superset | 52afc33b31475536b287b56d262b9eaa32f479ab | [
"Apache-2.0"
] | 59 | 2019-10-29T10:43:54.000Z | 2020-01-13T20:28:00.000Z | tests/superset_test_config.py | Odirlei-Stein/incubator-superset | 52afc33b31475536b287b56d262b9eaa32f479ab | [
"Apache-2.0"
] | 3 | 2020-04-15T16:34:09.000Z | 2020-06-22T17:26:45.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 30.816667 | 79 | 0.760411 |
c36b8fafa51e904b32a3484dd7c30d755b94ebe3 | 586 | py | Python | users/forms.py | PatriciaAnduru/awwards | 0873af52f60a635df47bf42cbef9445d816fea23 | [
"MIT"
] | null | null | null | users/forms.py | PatriciaAnduru/awwards | 0873af52f60a635df47bf42cbef9445d816fea23 | [
"MIT"
] | null | null | null | users/forms.py | PatriciaAnduru/awwards | 0873af52f60a635df47bf42cbef9445d816fea23 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
class UserRegisterForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username','email','password1','passwo... | 21.703704 | 61 | 0.680887 |
f5998d555805ed397a3e36f684a0918968ddd1e1 | 6,257 | py | Python | nexus/tests/unit/test_pwscf_postprocessor_analyzers.py | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | null | null | null | nexus/tests/unit/test_pwscf_postprocessor_analyzers.py | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | 11 | 2020-05-09T20:57:21.000Z | 2020-06-10T00:00:17.000Z | nexus/tests/unit/test_pwscf_postprocessor_analyzers.py | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | null | null | null |
import testing
from testing import value_eq,object_eq,text_eq
def test_import():
from pwscf_postprocessors import PPAnalyzer
from pwscf_postprocessors import DosAnalyzer
from pwscf_postprocessors import BandsAnalyzer
from pwscf_postprocessors import ProjwfcAnalyzer
from pwscf_postprocessors impo... | 28.184685 | 114 | 0.4109 |
de7e278d28be0106d8f9e3e21e98057ee35e44ed | 5,977 | py | Python | ci_hackathon_july_2020/settings.py | maliahavlicek/ci_hackathon_july_2020 | 48c269da0c1f375337164d8bf23df494cccf1d3c | [
"ADSL"
] | 1 | 2020-07-06T05:57:00.000Z | 2020-07-06T05:57:00.000Z | ci_hackathon_july_2020/settings.py | maliahavlicek/ci_hackathon_july_2020 | 48c269da0c1f375337164d8bf23df494cccf1d3c | [
"ADSL"
] | 8 | 2020-07-04T16:53:12.000Z | 2022-01-13T02:58:55.000Z | ci_hackathon_july_2020/settings.py | maliahavlicek/ci_hackathon_july_2020 | 48c269da0c1f375337164d8bf23df494cccf1d3c | [
"ADSL"
] | null | null | null | """
Django settings for ci_hackathon_july_2020 project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
""... | 28.061033 | 100 | 0.703865 |
8b3c6dfb93dc4177686bded217cd8d55ea70e467 | 180 | py | Python | vscvs/cli/show/__init__.py | fcoclavero/vscvs | 27fab0bc62fb68da044cf6f2516e3c1853f77533 | [
"MIT"
] | 1 | 2019-07-02T19:07:15.000Z | 2019-07-02T19:07:15.000Z | vscvs/cli/show/__init__.py | fcoclavero/vscvs | 27fab0bc62fb68da044cf6f2516e3c1853f77533 | [
"MIT"
] | 2 | 2019-10-23T18:05:37.000Z | 2020-09-25T14:16:25.000Z | vscvs/cli/show/__init__.py | fcoclavero/vscvs | 27fab0bc62fb68da044cf6f2516e3c1853f77533 | [
"MIT"
] | null | null | null | __author__ = ["Francisco Clavero"]
__description__ = "CLI for visualizations."
__email__ = ["fcoclavero32@gmail.com"]
__status__ = "Prototype"
from .show import show, tensorboard
| 25.714286 | 43 | 0.766667 |
752234e0e14256a8aaf40c19e5b45bbd980f50cd | 2,564 | py | Python | docs/source/conf.py | messcode/ITCA | 829aa695f5f470cdf928653dd7a8c5ad576a4223 | [
"MIT"
] | null | null | null | docs/source/conf.py | messcode/ITCA | 829aa695f5f470cdf928653dd7a8c5ad576a4223 | [
"MIT"
] | null | null | null | docs/source/conf.py | messcode/ITCA | 829aa695f5f470cdf928653dd7a8c5ad576a4223 | [
"MIT"
] | 2 | 2021-08-16T04:22:02.000Z | 2021-08-16T04:34:08.000Z | # 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... | 34.186667 | 79 | 0.666927 |
857eb91acb9ac2f91b638291928b85803f90cb7d | 55,356 | py | Python | src/module_list.py | rekhabiswal/sage | e8633b09919542a65e7e990c8369fee30c7edefd | [
"BSL-1.0"
] | null | null | null | src/module_list.py | rekhabiswal/sage | e8633b09919542a65e7e990c8369fee30c7edefd | [
"BSL-1.0"
] | null | null | null | src/module_list.py | rekhabiswal/sage | e8633b09919542a65e7e990c8369fee30c7edefd | [
"BSL-1.0"
] | null | null | null | import os
from glob import glob
from distutils.extension import Extension
from sage.env import SAGE_LOCAL
SAGE_INC = os.path.join(SAGE_LOCAL, 'include')
#########################################################
### pkg-config setup
#########################################################
import pkgconfig
# CBLAS c... | 34.640801 | 208 | 0.551503 |
617357c4900d9f389c9c1bdf99fb5ce19ad9e274 | 2,437 | py | Python | speakeasy/winenv/arch.py | certego/speakeasy | 7cc983603d09ee0bd62115b8b8c9a17c81abe9a4 | [
"MIT"
] | null | null | null | speakeasy/winenv/arch.py | certego/speakeasy | 7cc983603d09ee0bd62115b8b8c9a17c81abe9a4 | [
"MIT"
] | null | null | null | speakeasy/winenv/arch.py | certego/speakeasy | 7cc983603d09ee0bd62115b8b8c9a17c81abe9a4 | [
"MIT"
] | null | null | null | # Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
ARCH_X86 = 32
ARCH_AMD64 = 64
PAGE_SIZE = 0x1000
BITS_32 = 32
BITS_64 = 64
LSTAR = 0xC0000082
X86_REG_CS = 1001
X86_REG_DS = 1002
X86_REG_EAX = 1003
X86_REG_EBP = 1004
X86_REG_EBX = 1005
X86_REG_ECX = 1006
X86_REG_EDI = 1007
X86_REG_EDX = 1008
X86_REG_EFLAGS = ... | 18.891473 | 55 | 0.730406 |
a6ca7b8ff20a6966dc7cb38126eff74c55b248b1 | 1,860 | py | Python | eskill_custom/sales_invoice.py | mohsinalimat/eskill_custom | 1aa4a591c71144d751b78e0a2907353336e71f37 | [
"MIT"
] | null | null | null | eskill_custom/sales_invoice.py | mohsinalimat/eskill_custom | 1aa4a591c71144d751b78e0a2907353336e71f37 | [
"MIT"
] | null | null | null | eskill_custom/sales_invoice.py | mohsinalimat/eskill_custom | 1aa4a591c71144d751b78e0a2907353336e71f37 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import json
import frappe
@frappe.whitelist()
def update_service_order(invoice_name: str):
"Updates information on service order to indicate invoice."
invoice = frappe.get_doc("Sales Invoice", invoice_name)
service_order = frappe.get_doc("Service Order", invoice.s... | 37.959184 | 100 | 0.682796 |
b347e8d10d0f9a971883adc7b7aef8c97ba13abe | 496 | py | Python | build/lib/tzager/diseases.py | tzagerAI/tzager | a6787f02fde58babd9999867d2cc3ced94926da8 | [
"MIT"
] | 2 | 2021-01-25T17:05:59.000Z | 2021-04-11T19:05:16.000Z | build/lib/tzager/diseases.py | tzagerAI/tzager | a6787f02fde58babd9999867d2cc3ced94926da8 | [
"MIT"
] | null | null | null | build/lib/tzager/diseases.py | tzagerAI/tzager | a6787f02fde58babd9999867d2cc3ced94926da8 | [
"MIT"
] | null | null | null | import json
import requests
def get_data(password, concept_list, filters='None'):
concept_list = '|'.join(concept_list)
if filters != 'None':
filters = '|'.join(filters)
response = requests.get('https://cloud.bolooba.com:25556/diseases_data/' + password + '/' + concept_list + '/' + filters)
i... | 27.555556 | 125 | 0.618952 |
51ea747e5a5a1ce7b83d752f573877cb525cdad7 | 1,022 | py | Python | Python2/ejercicios/ejercicio_clase6.py | eveiramirez/python_class | 7a3830cc92dc842b853b243c6b01e06993faa97e | [
"MIT"
] | null | null | null | Python2/ejercicios/ejercicio_clase6.py | eveiramirez/python_class | 7a3830cc92dc842b853b243c6b01e06993faa97e | [
"MIT"
] | null | null | null | Python2/ejercicios/ejercicio_clase6.py | eveiramirez/python_class | 7a3830cc92dc842b853b243c6b01e06993faa97e | [
"MIT"
] | 3 | 2021-04-09T19:12:15.000Z | 2021-08-24T18:24:58.000Z | from Bio import Entrez
# Ejercicio 2
Entrez.email = "iramirez@lcg.unam.mx"
handle = Entrez.esearch(db="Taxonomy", term="Notoryctes typhlops")
record = Entrez.read(handle)
ids = record["IdList"][0]
handle = Entrez.efetch(db="Taxonomy", id=ids, retmode="xml")
Notoryctes = Entrez.read(handle)
lineages = [Notoryctes[0][... | 22.711111 | 69 | 0.638943 |
2b977edbb02e06ab391708b7275b2af0229950f2 | 6,364 | py | Python | gamestonk_terminal/stocks/comparison_analysis/yahoo_finance_view.py | Flodur871/GamestonkTerminal | 6b7a8efc594c06987a155b823afb8c838b49066b | [
"MIT"
] | null | null | null | gamestonk_terminal/stocks/comparison_analysis/yahoo_finance_view.py | Flodur871/GamestonkTerminal | 6b7a8efc594c06987a155b823afb8c838b49066b | [
"MIT"
] | null | null | null | gamestonk_terminal/stocks/comparison_analysis/yahoo_finance_view.py | Flodur871/GamestonkTerminal | 6b7a8efc594c06987a155b823afb8c838b49066b | [
"MIT"
] | null | null | null | """ Comparison Analysis Yahoo Finance View """
__docformat__ = "numpy"
import os
from datetime import datetime, timedelta
from typing import List
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from pandas.plotting import register_matplotlib_converters
from sklearn.preproc... | 32.635897 | 88 | 0.652891 |
efff5efe47df9c803896bc61222f53016b36678d | 2,169 | py | Python | pwndbg/commands/dumpargs.py | n00bSec/pwndbg | 400502bc2787f4bf7004a542156ca9c6cc28db67 | [
"MIT"
] | 2 | 2018-10-08T13:07:17.000Z | 2020-02-08T11:55:53.000Z | pwndbg/commands/dumpargs.py | n00bSec/pwndbg | 400502bc2787f4bf7004a542156ca9c6cc28db67 | [
"MIT"
] | null | null | null | pwndbg/commands/dumpargs.py | n00bSec/pwndbg | 400502bc2787f4bf7004a542156ca9c6cc28db67 | [
"MIT"
] | 1 | 2019-04-08T18:44:34.000Z | 2019-04-08T18:44:34.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import pwndbg.arguments
import pwndbg.chain
import pwndbg.commands
import pwndbg.commands.telescope
import ... | 31.897059 | 200 | 0.695712 |
83f3dd5f9c29669c5c9a181cef12663024e4ff71 | 2,140 | py | Python | api/http/python/example/GET-example.py | yzs981130/gStore | 6e9936e6cabd2617f1c451759fbfdfcee39fc6bf | [
"BSD-3-Clause"
] | 1 | 2020-03-01T12:32:20.000Z | 2020-03-01T12:32:20.000Z | api/http/python/example/GET-example.py | yzs981130/gStore | 6e9936e6cabd2617f1c451759fbfdfcee39fc6bf | [
"BSD-3-Clause"
] | null | null | null | api/http/python/example/GET-example.py | yzs981130/gStore | 6e9936e6cabd2617f1c451759fbfdfcee39fc6bf | [
"BSD-3-Clause"
] | 1 | 2020-09-17T13:06:30.000Z | 2020-09-17T13:06:30.000Z | # -*- coding: UTF-8 -*-
"""
# Filename: GET-example.py
# Author: suxunbin
# Last Modified: 2019-5-15 18:26
# Description: a simple GET-example of python API
"""
import sys
sys.path.append('../src')
import GstoreConnector
# before you run this example, make sure that you have started up ghttp service (using bin/ghttp p... | 24.883721 | 102 | 0.62243 |
433fc65f9b2194ebf13cb59b01e78f923ad6daf7 | 1,934 | py | Python | edl/records.py | jmeppley/py-metagenomics | 0dbab073cb7e52c4826054e40eb802c9e0298e9a | [
"MIT"
] | 7 | 2015-05-14T09:36:36.000Z | 2022-03-30T14:32:21.000Z | edl/records.py | jmeppley/py-metagenomics | 0dbab073cb7e52c4826054e40eb802c9e0298e9a | [
"MIT"
] | 1 | 2015-07-14T11:47:25.000Z | 2015-07-17T01:45:26.000Z | edl/records.py | jmeppley/py-metagenomics | 0dbab073cb7e52c4826054e40eb802c9e0298e9a | [
"MIT"
] | 7 | 2015-07-25T22:29:29.000Z | 2022-03-01T21:26:14.000Z | from edl.util import parse_list_to_set
def recordIterator(stream, separatorRE, idRE=None):
"""
Given:
na file-like object (any iterator over strings)
1 or 2 regular expressions that define record boundaries
and identifiers
Return:
an iterator over records that returns a tuple o... | 26.861111 | 78 | 0.573423 |
d03fbdd948acb631e6c603b81d3b2f0583d03277 | 175 | py | Python | servertime/__main__.py | tmat-project/time-recorder-backend | 47f2fc9dbc0a7e50a055e0253baf74a38a955d9e | [
"MIT"
] | 3 | 2021-11-18T01:26:36.000Z | 2021-11-18T17:50:22.000Z | servertime/__main__.py | tmat-project/time-recorder-backend | 47f2fc9dbc0a7e50a055e0253baf74a38a955d9e | [
"MIT"
] | null | null | null | servertime/__main__.py | tmat-project/time-recorder-backend | 47f2fc9dbc0a7e50a055e0253baf74a38a955d9e | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
from . rest import app
url = urlparse('http://0.0.0.0:8001')
host, port = url.hostname, url.port
app.run(host=host, port=port, debug=True)
| 21.875 | 41 | 0.72 |
770cfc3e47ba4bb3596d3ec75c718da8b9c092cb | 2,234 | py | Python | src/main/python/app/workers/ArchiveExtractorWorker.py | karlpet/WadLauncher | 512f5d28de5c57e4dffdc642b170891a99a00ea8 | [
"MIT"
] | 2 | 2020-09-06T11:16:30.000Z | 2020-09-15T17:11:34.000Z | src/main/python/app/workers/ArchiveExtractorWorker.py | karlpet/WadLauncher | 512f5d28de5c57e4dffdc642b170891a99a00ea8 | [
"MIT"
] | 74 | 2020-09-07T16:40:54.000Z | 2021-06-18T00:22:39.000Z | src/main/python/app/workers/ArchiveExtractorWorker.py | karlpet/WadLauncher | 512f5d28de5c57e4dffdc642b170891a99a00ea8 | [
"MIT"
] | null | null | null | import shutil, os, re, pathlib
from PyQt5.QtCore import QThread, pyqtSignal
from app.config import Config
from app.workers.WorkerPool import *
def archive_extractor_worker_wrapper(file_path, should_remove_archive=False, done_handlers=[]):
worker = ArchiveExtractorWorker(file_path, should_remove_archive)
for ... | 39.892857 | 95 | 0.69248 |
f178eb6e61fdf87401afb87d9ac44938fe9f7291 | 2,860 | py | Python | tests/whitebox/integration/physical/test_list.py | jbaublitz/stratis-cli | 602199fb476f53e519a36b1894337e96a68459cd | [
"Apache-2.0"
] | null | null | null | tests/whitebox/integration/physical/test_list.py | jbaublitz/stratis-cli | 602199fb476f53e519a36b1894337e96a68459cd | [
"Apache-2.0"
] | null | null | null | tests/whitebox/integration/physical/test_list.py | jbaublitz/stratis-cli | 602199fb476f53e519a36b1894337e96a68459cd | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 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... | 28.316832 | 81 | 0.651748 |
cf00b9ead27e6b6726b54c6f11fd0360fcb70201 | 2,799 | py | Python | pelicanconf.py | ogrisel/website | 04a9434f5f146d232211643d60c64f5dd9714c09 | [
"Artistic-2.0"
] | null | null | null | pelicanconf.py | ogrisel/website | 04a9434f5f146d232211643d60c64f5dd9714c09 | [
"Artistic-2.0"
] | null | null | null | pelicanconf.py | ogrisel/website | 04a9434f5f146d232211643d60c64f5dd9714c09 | [
"Artistic-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Ga\xebl Varoquaux'
SITENAME = u'Ga\xebl Varoquaux'
SITEURL = 'http://gael-varoquaux.info'
AUTHOR_EMAIL = 'gael.varoquaux@normalesup.org'
GITHUB_URL = 'https://github.com/GaelVaroquaux/'
TWITTER_USERNAME = 'GaelVaroquaux'... | 27.99 | 79 | 0.67667 |
fecbc3bb5981f3998115506a86e20f1bc4add811 | 1,803 | py | Python | src/cv/cv/src/webcam.py | APMMonteiro/european_robotic_league | 1a7345bdbdf4a57c434c6fda44b0714c277877a7 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/cv/cv/src/webcam.py | APMMonteiro/european_robotic_league | 1a7345bdbdf4a57c434c6fda44b0714c277877a7 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/cv/cv/src/webcam.py | APMMonteiro/european_robotic_league | 1a7345bdbdf4a57c434c6fda44b0714c277877a7 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-11-26T12:06:56.000Z | 2022-02-15T14:15:16.000Z | #!/usr/bin/python
# Adapted from https://automaticaddison.com/working-with-ros-and-opencv-in-ros-noetic/
# Basics ROS program to publish real-time streaming
# video from your built-in webcam
# Author:
# - Addison Sears-Collins
# - https://automaticaddison.com
# Import the necessary libraries
import rospy # Python ... | 30.05 | 86 | 0.65391 |
73b2cb6e0cb2aad260e42c81d2c2fc622f0b2068 | 1,134 | py | Python | tests/storage/cases/test_KT1JGnD4XhVE1pXt7oy97jLydZctekDtJjwD.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-08-11T02:31:24.000Z | 2020-08-11T02:31:24.000Z | tests/storage/cases/test_KT1JGnD4XhVE1pXt7oy97jLydZctekDtJjwD.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-12-30T16:44:56.000Z | 2020-12-30T16:44:56.000Z | tests/storage/cases/test_KT1JGnD4XhVE1pXt7oy97jLydZctekDtJjwD.py | tqtezos/pytezos | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | [
"MIT"
] | 1 | 2022-03-20T19:01:00.000Z | 2022-03-20T19:01:00.000Z | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1JGnD4XhVE1pXt7oy97jLydZctekDtJjwD(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | 40.5 | 112 | 0.749559 |
82640dd39550477f2cd518c44c41b9e883d4b68a | 5,450 | py | Python | src/plugins/voice.py | NNNMM12345/Discord_Sandbot1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | [
"MIT"
] | 4 | 2019-01-02T20:31:17.000Z | 2020-09-06T09:43:22.000Z | src/plugins/voice.py | NNNMM12345/Discord_Sandbot1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | [
"MIT"
] | 2 | 2018-03-23T00:45:17.000Z | 2018-03-27T15:44:13.000Z | src/plugins/voice.py | NNNMM12345/Discord_Sandbot1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | [
"MIT"
] | 2 | 2018-03-24T22:48:33.000Z | 2018-03-24T22:49:09.000Z | import discord
import youtube_dl
import asyncio
from discord.ext import commands
# Suppress noise about console usage from errors
youtube_dl.utils.bug_reports_message = lambda: ''
ytdl_format_options = {
'format': 'bestaudio/best',
'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
'restrictfilenames': ... | 36.092715 | 117 | 0.593211 |
c2b84cabb7bbd6013414fbc38f523fa9dd5b4017 | 3,656 | py | Python | ironic_python_agent/tests/functional/test_commands.py | poojaghumre/ironic-python-agent | dc8c1f16f9a00e2bff21612d1a9cf0ea0f3addf0 | [
"Apache-2.0"
] | 86 | 2015-01-21T22:04:48.000Z | 2022-03-29T12:15:49.000Z | ironic_python_agent/tests/functional/test_commands.py | poojaghumre/ironic-python-agent | dc8c1f16f9a00e2bff21612d1a9cf0ea0f3addf0 | [
"Apache-2.0"
] | 3 | 2018-01-29T07:44:43.000Z | 2021-09-04T06:13:42.000Z | ironic_python_agent/tests/functional/test_commands.py | poojaghumre/ironic-python-agent | dc8c1f16f9a00e2bff21612d1a9cf0ea0f3addf0 | [
"Apache-2.0"
] | 110 | 2015-01-29T09:26:52.000Z | 2021-12-29T03:16:27.000Z | # Copyright 2015 Rackspace, 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... | 44.048193 | 79 | 0.664661 |
1ab0c77132b21de667bbd743134c81541cd64f2f | 13,899 | py | Python | SimLight/field.py | Miyoshichi/SimLight | 9f01dee5e324026bfdcdbe9f83cd29bbd447adda | [
"MIT"
] | null | null | null | SimLight/field.py | Miyoshichi/SimLight | 9f01dee5e324026bfdcdbe9f83cd29bbd447adda | [
"MIT"
] | null | null | null | SimLight/field.py | Miyoshichi/SimLight | 9f01dee5e324026bfdcdbe9f83cd29bbd447adda | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on May 21, 2020
@author: Zhou Xiang
"""
import math
import copy
import numpy as np
from .plottools import plot_wavefront, plot_intensity
from .utils import cart2pol
from .units import *
class Field:
"""
A basic light field.
Parameters
----------
waveleng... | 29.57234 | 77 | 0.497086 |
7af436513e53f597d76de8edd8372419889046f8 | 6,331 | py | Python | mlrun/datastore/store_resources.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | mlrun/datastore/store_resources.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | mlrun/datastore/store_resources.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Iguazio
#
# 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, softwa... | 34.977901 | 100 | 0.618544 |
39154d4bb9405dcae342c683b31171e25b444956 | 4,796 | py | Python | sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py | mohamedshabanofficial/azure-sdk-for-python | 81c585f310cd2ec23d2ad145173958914a075a58 | [
"MIT"
] | 2 | 2019-08-23T21:14:00.000Z | 2021-09-07T18:32:34.000Z | sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py | mohamedshabanofficial/azure-sdk-for-python | 81c585f310cd2ec23d2ad145173958914a075a58 | [
"MIT"
] | 2 | 2021-11-03T06:10:36.000Z | 2021-12-01T06:29:39.000Z | sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py | mohamedshabanofficial/azure-sdk-for-python | 81c585f310cd2ec23d2ad145173958914a075a58 | [
"MIT"
] | 1 | 2021-12-18T20:01:22.000Z | 2021-12-18T20:01:22.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 29.78882 | 95 | 0.673686 |
9b03a95ea6a4c636187db6f4f6dd3515d087d717 | 2,693 | py | Python | python/paddle/fluid/tests/unittests/test_clip_op.py | jinyuKING/Paddle | 1f4d46fa885448af4ce45827eae3c609280d4e34 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_clip_op.py | jinyuKING/Paddle | 1f4d46fa885448af4ce45827eae3c609280d4e34 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_clip_op.py | jinyuKING/Paddle | 1f4d46fa885448af4ce45827eae3c609280d4e34 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 28.956989 | 75 | 0.621983 |
9eb17ca027b2f2a21cc7db7a0cd5521cfd12da79 | 32,318 | py | Python | src/vendor/geniv3rpc/g3rpc/genivthree.py | GENI-NSF/geni-soil | e3dcec0bd5f31db2d69a3db652da15eb0baf774f | [
"BSD-3-Clause"
] | null | null | null | src/vendor/geniv3rpc/g3rpc/genivthree.py | GENI-NSF/geni-soil | e3dcec0bd5f31db2d69a3db652da15eb0baf774f | [
"BSD-3-Clause"
] | null | null | null | src/vendor/geniv3rpc/g3rpc/genivthree.py | GENI-NSF/geni-soil | e3dcec0bd5f31db2d69a3db652da15eb0baf774f | [
"BSD-3-Clause"
] | null | null | null | import os, os.path
import urllib2
import traceback
from datetime import datetime
from dateutil import parser as dateparser
from lxml import etree
from lxml.builder import ElementMaker
import ext.geni
import ext.sfa.trust.gid as gid
import amsoil.core.pluginmanager as pm
from amsoil.core import serviceinterface
from ... | 55.624785 | 267 | 0.666935 |
3aaa1ee678ac916fa1903d14c39a3c01ea8d08f7 | 21,387 | py | Python | tests/test_ext.py | wpilibsuite/sphinxext-rediraffe | d8961c2402015dafa6039ed27d973ad835d7fc09 | [
"MIT"
] | 19 | 2020-08-30T05:52:49.000Z | 2022-02-19T21:57:57.000Z | tests/test_ext.py | wpilibsuite/sphinxext-rediraffe | d8961c2402015dafa6039ed27d973ad835d7fc09 | [
"MIT"
] | 29 | 2020-08-21T01:36:14.000Z | 2021-09-16T12:20:33.000Z | tests/test_ext.py | wpilibsuite/sphinxext-rediraffe | d8961c2402015dafa6039ed27d973ad835d7fc09 | [
"MIT"
] | 7 | 2020-08-18T18:22:51.000Z | 2021-05-22T09:54:27.000Z | import pytest
import seleniumbase
from seleniumbase import BaseCase
from sphinx.testing.path import path
from sphinx.application import Sphinx
from sphinx.errors import ExtensionError
from pathlib import Path
import shutil
import logging
from conftest import rel2url
@pytest.fixture(scope="module")
def rootdir():
... | 40.582543 | 113 | 0.638472 |
f70d2269439119cb16be737012dc189740de1235 | 19,878 | py | Python | networkx/generators/community.py | jeanfrancois8512/networkx | 1d5e2183f514a847db63ce0cb78979a3cf7263bb | [
"BSD-3-Clause"
] | null | null | null | networkx/generators/community.py | jeanfrancois8512/networkx | 1d5e2183f514a847db63ce0cb78979a3cf7263bb | [
"BSD-3-Clause"
] | null | null | null | networkx/generators/community.py | jeanfrancois8512/networkx | 1d5e2183f514a847db63ce0cb78979a3cf7263bb | [
"BSD-3-Clause"
] | null | null | null | # Copyright(C) 2011, 2015, 2018 by
# Ben Edwards <bedwards@cs.unm.edu>
# Aric Hagberg <hagberg@lanl.gov>
# Konstantinos Karakatsanis <dinoskarakas@gmail.com>
# All rights reserved.
# BSD license.
#
# Authors: Ben Edwards (bedwards@cs.unm.edu)
# Aric Hagberg (hagberg@lanl.gov)
# Ko... | 31.107981 | 79 | 0.597495 |
0ada46dca4a375b9b089b0b77f15b8a6e740d946 | 413 | py | Python | watchneighborhood/migrations/0006_profile_bio.py | Koech-code/Neighborhood | 5ff01cca9d9d5ff05068e20c0b36f5ca629db2fb | [
"MIT"
] | null | null | null | watchneighborhood/migrations/0006_profile_bio.py | Koech-code/Neighborhood | 5ff01cca9d9d5ff05068e20c0b36f5ca629db2fb | [
"MIT"
] | null | null | null | watchneighborhood/migrations/0006_profile_bio.py | Koech-code/Neighborhood | 5ff01cca9d9d5ff05068e20c0b36f5ca629db2fb | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-29 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('watchneighborhood', '0005_alter_post_user'),
]
operations = [
migrations.AddField(
model_name='profile',
name='bio',... | 21.736842 | 74 | 0.610169 |
8fcf33a692788b47d320d5c9982b3cd3f542f329 | 7,736 | py | Python | auth/oidc_auth.py | sam-glendenning/dynafed-oidc-plugin | d22c274e80eb717edff3c8ea849f632432d3c31b | [
"Apache-2.0"
] | null | null | null | auth/oidc_auth.py | sam-glendenning/dynafed-oidc-plugin | d22c274e80eb717edff3c8ea849f632432d3c31b | [
"Apache-2.0"
] | 2 | 2020-01-27T16:30:44.000Z | 2021-02-23T13:48:24.000Z | auth/oidc_auth.py | sam-glendenning/dynafed-oidc-plugin | d22c274e80eb717edff3c8ea849f632432d3c31b | [
"Apache-2.0"
] | 1 | 2020-11-26T17:28:12.000Z | 2020-11-26T17:28:12.000Z | #!/usr/bin/python3.6
# A DynaFed plugin which contacts an OpenID Connect identity provider
# and then compares token attributes with a JSON file in order to
# determine whether a user with certain attributes can access a
# resource
#
# This is modified from dynafed-ldap-plugin, written by Louise Davies
# and available... | 39.469388 | 237 | 0.634566 |
a27f5876d1017a8c3e96137461acd97b2bb8d88c | 7,392 | py | Python | tests/chainer_tests/backends_tests/test_chainerx.py | prabhatnagarajan/chainer | 3029bbaa587c15b3539b55ee1fd357a4149e5aed | [
"MIT"
] | null | null | null | tests/chainer_tests/backends_tests/test_chainerx.py | prabhatnagarajan/chainer | 3029bbaa587c15b3539b55ee1fd357a4149e5aed | [
"MIT"
] | null | null | null | tests/chainer_tests/backends_tests/test_chainerx.py | prabhatnagarajan/chainer | 3029bbaa587c15b3539b55ee1fd357a4149e5aed | [
"MIT"
] | null | null | null | import unittest
import numpy
import chainer
from chainer import backend
from chainer.backends import cuda
from chainer import testing
from chainer.testing import attr
import chainerx
@testing.inject_backend_tests(
None,
[
{'use_chainerx': True, 'chainerx_device': 'native:0'},
{'use_chainerx'... | 34.542056 | 77 | 0.662879 |
53d9d483e04a858a19c90ccb40bd37970f0735ac | 3,021 | py | Python | B2G/gecko/testing/tps/tps/firefoxrunner.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/testing/tps/tps/firefoxrunner.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/testing/tps/tps/firefoxrunner.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import shutil
import sys
from mozprocess.pid import get_pids
from mozprofile import Pro... | 30.826531 | 80 | 0.618669 |
bbb2ea40aabc214898813371531dd98a5d3aaab4 | 552 | py | Python | nsd1802/python/day08/tcp_serv2.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1802/python/day08/tcp_serv2.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1802/python/day08/tcp_serv2.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | import socket
host = ''
port = 12345
addr = (host, port)
s = socket.socket()
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(addr)
s.listen(1)
while True:
cli_sock, cli_addr = s.accept()
print('Client connect from:', cli_addr)
while True:
data = cli_sock.recv(1024)
if data.st... | 25.090909 | 57 | 0.61413 |
0c2194e0f7b4ecc76c8dcc95d9f7387c4c4dc1f7 | 13,771 | py | Python | test/test_functional_tensor.py | 1pikachu/vision | 913657061e62a91ee44fee90b8486436ebc1b1b1 | [
"BSD-3-Clause"
] | null | null | null | test/test_functional_tensor.py | 1pikachu/vision | 913657061e62a91ee44fee90b8486436ebc1b1b1 | [
"BSD-3-Clause"
] | null | null | null | test/test_functional_tensor.py | 1pikachu/vision | 913657061e62a91ee44fee90b8486436ebc1b1b1 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torchvision.transforms as transforms
import torchvision.transforms.functional_tensor as F_t
import torchvision.transforms.functional_pil as F_pil
import torchvision.transforms.functional as F
import numpy as np
import unittest
import random
import colorsys
from PIL import Image
class Tester(unitt... | 48.489437 | 106 | 0.608162 |
5ac43f8ba72a922918f9477de63adeff874e9660 | 2,564 | py | Python | python/mzcloud/api/deployments/deployments_metrics_cpu_retrieve.py | MaterializeInc/cloud-sdks | b7886468ceb9e76d1c4b9e0b1b82a957ddd2b1c8 | [
"Apache-2.0"
] | null | null | null | python/mzcloud/api/deployments/deployments_metrics_cpu_retrieve.py | MaterializeInc/cloud-sdks | b7886468ceb9e76d1c4b9e0b1b82a957ddd2b1c8 | [
"Apache-2.0"
] | null | null | null | python/mzcloud/api/deployments/deployments_metrics_cpu_retrieve.py | MaterializeInc/cloud-sdks | b7886468ceb9e76d1c4b9e0b1b82a957ddd2b1c8 | [
"Apache-2.0"
] | 1 | 2021-08-05T17:33:39.000Z | 2021-08-05T17:33:39.000Z | from typing import Any, Dict, List, Optional, Union, cast
import httpx
from ...client import AuthenticatedClient, Client
from ...models.prometheus_metrics import PrometheusMetrics
from ...types import UNSET, Response
def _get_kwargs(
*,
client: AuthenticatedClient,
id: str,
period: float,
) -> Dict[... | 22.690265 | 104 | 0.636115 |
c105d0acb7c515fc33d321f8d4d98c39da406b4d | 265 | py | Python | employee/filters.py | jamp-scp28/interviews | a3cc7a05bdd8fc6afc09e18b6663a83f49852293 | [
"MIT"
] | null | null | null | employee/filters.py | jamp-scp28/interviews | a3cc7a05bdd8fc6afc09e18b6663a83f49852293 | [
"MIT"
] | null | null | null | employee/filters.py | jamp-scp28/interviews | a3cc7a05bdd8fc6afc09e18b6663a83f49852293 | [
"MIT"
] | null | null | null | from .models import *
import django_filters
from django_filters import CharFilter
class EmployeeFilter(django_filters.FilterSet):
name = CharFilter(field_name="fullname", lookup_expr='icontains')
class Meta:
model = Employee
fields = ''
| 20.384615 | 69 | 0.724528 |
da1a57919102a9cd294ff48e511b6051672004c0 | 4,071 | py | Python | ExamplesPython_3.6/Chapter9/MeanShift.py | Nixon-Aguado/Feature-Extraction-and-Image-Processing-Book-Examples | d6f4c45314b481705958ee336e83ce331926e894 | [
"MIT"
] | 30 | 2019-10-01T11:03:12.000Z | 2022-03-22T09:44:33.000Z | ExamplesPython_3.6/Chapter9/MeanShift.py | suryabranwal/Feature-Extraction-and-Image-Processing-Book-Examples | d6f4c45314b481705958ee336e83ce331926e894 | [
"MIT"
] | 1 | 2020-01-05T18:26:05.000Z | 2020-01-06T16:47:07.000Z | ExamplesPython_3.6/Chapter9/MeanShift.py | suryabranwal/Feature-Extraction-and-Image-Processing-Book-Examples | d6f4c45314b481705958ee336e83ce331926e894 | [
"MIT"
] | 16 | 2019-11-22T20:13:53.000Z | 2022-02-06T20:10:08.000Z | '''
Feature Extraction and Image Processing
Mark S. Nixon & Alberto S. Aguado
http://www.southampton.ac.uk/~msn/book/
Chapter 9
MeanShift: Tracks a region in an image by considering the colour histogram
'''
# Set module functions
from ImageUtilities import imageReadRGB, showImageRGB, createImageF, createIma... | 33.925 | 97 | 0.604765 |
eb5095e12bdedb77c706b98ad0b62a6071262e81 | 43,094 | py | Python | datalad/distributed/ora_remote.py | christinerogers/datalad | 8b91f3767b45371e213aa7ade146a290a13c00f2 | [
"MIT"
] | null | null | null | datalad/distributed/ora_remote.py | christinerogers/datalad | 8b91f3767b45371e213aa7ade146a290a13c00f2 | [
"MIT"
] | null | null | null | datalad/distributed/ora_remote.py | christinerogers/datalad | 8b91f3767b45371e213aa7ade146a290a13c00f2 | [
"MIT"
] | null | null | null | from annexremote import SpecialRemote
from annexremote import RemoteError
from annexremote import ProtocolError
from pathlib import (
Path,
PurePosixPath
)
import requests
import shutil
from shlex import quote as sh_quote
import subprocess
import logging
from functools import wraps
from datalad.customremotes.r... | 37.538328 | 120 | 0.587901 |
fb1876be0cb7704d064207b4cca05865cb775d4c | 1,924 | py | Python | src/compas_igs/ui/Rhino/IGS/dev/IGS_form_move_nodes_cmd.py | BlockResearchGroup/compas-IGS | b40698466b91c867600b94ae2530b19d336ad1b0 | [
"MIT"
] | 1 | 2021-11-03T23:22:37.000Z | 2021-11-03T23:22:37.000Z | src/compas_igs/ui/Rhino/IGS/dev/IGS_form_move_nodes_cmd.py | BlockResearchGroup/compas-IGS | b40698466b91c867600b94ae2530b19d336ad1b0 | [
"MIT"
] | 1 | 2021-11-10T03:27:58.000Z | 2021-11-17T13:51:17.000Z | src/compas_igs/ui/Rhino/IGS/dev/IGS_form_move_nodes_cmd.py | BlockResearchGroup/compas-IGS | b40698466b91c867600b94ae2530b19d336ad1b0 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import scriptcontext as sc
import compas_rhino
__commandname__ = "IGS_form_move_nodes"
def RunCommand(is_interactive):
if 'IGS' not in sc.sticky:
compas_rhino.display_message('IGS has not been... | 26.722222 | 88 | 0.605509 |
0456f6ee3e3b6d578aa70ec24c7714bb8d52fde9 | 4,226 | py | Python | aci2xml.py | blackjade/aci2xml | adc1b4b0d048790c6ba8cdd599f2595cb3349c40 | [
"Apache-2.0"
] | null | null | null | aci2xml.py | blackjade/aci2xml | adc1b4b0d048790c6ba8cdd599f2595cb3349c40 | [
"Apache-2.0"
] | null | null | null | aci2xml.py | blackjade/aci2xml | adc1b4b0d048790c6ba8cdd599f2595cb3349c40 | [
"Apache-2.0"
] | null | null | null |
#
# Copyright (c) 2015 Fluke Networks.
# All rights reserved.
# No part of this source code may be copied, used, or modified
# without the express written consent of Fluke Networks.
#
# aci2xml.py: Convert the policy manager related section in a *.aci
# file to xml. For example, these lines:
# [\Polic... | 31.774436 | 124 | 0.566493 |
a4512d1248c4c51a27a30daebbea403195fa077c | 1,644 | py | Python | python/getoracleprice.py | buzzkillb/Fantom-Tools | 2853cfca0b7eb4b710bf7a423dd9153649000fd6 | [
"MIT"
] | 1 | 2021-10-02T10:30:54.000Z | 2021-10-02T10:30:54.000Z | python/getoracleprice.py | buzzkillb/Fantom-Tools | 2853cfca0b7eb4b710bf7a423dd9153649000fd6 | [
"MIT"
] | null | null | null | python/getoracleprice.py | buzzkillb/Fantom-Tools | 2853cfca0b7eb4b710bf7a423dd9153649000fd6 | [
"MIT"
] | null | null | null | from web3 import Web3
import json
# Grab Prices from Syfin Price Oracle Contract
# https://syfinance.gitbook.io/sy-finance/syf-price-oracle
# Public RPC's
# https://rpcapi.fantom.network
# https://rpc.ftm.tools/
rpc_url = "https://rpc.ftm.tools/"
web3 = Web3(Web3.HTTPProvider(rpc_url))
syfinPriceOracleContract = "0x... | 56.689655 | 527 | 0.768248 |
a96496be7f45432906ca774b0dbcf8c965b3bacd | 51,025 | py | Python | src/prefect/core/task.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 8,633 | 2019-03-23T17:51:03.000Z | 2022-03-31T22:17:42.000Z | src/prefect/core/task.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 3,903 | 2019-03-23T19:11:21.000Z | 2022-03-31T23:21:23.000Z | src/prefect/core/task.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 937 | 2019-03-23T18:49:44.000Z | 2022-03-31T21:45:13.000Z | import collections.abc
import copy
import enum
import functools
import inspect
import typing
import warnings
from datetime import timedelta
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterable,
Iterator,
List,
Mapping,
Optional,
Union,
Tuple,
)
from collections i... | 38.480392 | 102 | 0.589005 |
403a7991da317baa154503a15d09da6e0085265f | 16,288 | py | Python | BioSTEAM 2.x.x/biorefineries/TAL/analyses/models.py | yoelcortes/Bioindustrial-Complex | d39edfec88e443ef7a62218ca0215e3b105f4b96 | [
"MIT"
] | 2 | 2020-01-03T21:04:41.000Z | 2020-01-09T01:15:48.000Z | BioSTEAM 2.x.x/biorefineries/TAL/analyses/models.py | yoelcortes/Bioindustrial-Complex | d39edfec88e443ef7a62218ca0215e3b105f4b96 | [
"MIT"
] | 6 | 2020-01-03T21:31:27.000Z | 2020-02-28T13:53:56.000Z | BioSTEAM 2.x.x/biorefineries/TAL/analyses/models.py | yoelcortes/Bioindustrial-Complex | d39edfec88e443ef7a62218ca0215e3b105f4b96 | [
"MIT"
] | 2 | 2020-01-07T14:04:06.000Z | 2020-01-08T23:05:25.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 12:11:15 2020
Modified from the cornstover biorefinery constructed in Cortes-Peña et al., 2020,
with modification of fermentation system for 2,3-Butanediol instead of the original ethanol
[1] Cortes-Peña et al., BioSTEAM: A Fast and Flexible Pla... | 40.217284 | 122 | 0.657048 |
e9d61fc05f1c3467d09d8e2d6ef4e3dd47e671d4 | 2,945 | py | Python | Lock.py | myrlund/salabim | a45da9d07dbb65a084d617344b5b0a016b3ec665 | [
"MIT"
] | 1 | 2021-01-04T12:24:55.000Z | 2021-01-04T12:24:55.000Z | Lock.py | myrlund/salabim | a45da9d07dbb65a084d617344b5b0a016b3ec665 | [
"MIT"
] | null | null | null | Lock.py | myrlund/salabim | a45da9d07dbb65a084d617344b5b0a016b3ec665 | [
"MIT"
] | 1 | 2018-07-02T10:42:30.000Z | 2018-07-02T10:42:30.000Z | import salabim as sim
left = -1
right = +1
def sidename(side):
return 'l' if side == left else 'r'
class Shipgenerator(sim.Component):
def process(self):
while True:
yield self.hold(sim.Exponential(iat).sample())
ship = Ship(name=sidename(self.side) + 'ship.')
s... | 29.747475 | 75 | 0.609847 |
5c8841874ee5b88eb19c2ba87a8fc87a66e0d52b | 8,637 | py | Python | scripts/harmonic_operators.py | tsutterley/model-harmonics | 17f6842d5fa1f2abf42caea51cfb09b6a4b2ee30 | [
"MIT"
] | 4 | 2021-01-04T00:40:03.000Z | 2021-12-29T13:37:32.000Z | scripts/harmonic_operators.py | tsutterley/model-harmonics | 17f6842d5fa1f2abf42caea51cfb09b6a4b2ee30 | [
"MIT"
] | 2 | 2021-10-10T06:57:20.000Z | 2021-12-06T19:28:34.000Z | scripts/harmonic_operators.py | tsutterley/model-harmonics | 17f6842d5fa1f2abf42caea51cfb09b6a4b2ee30 | [
"MIT"
] | 4 | 2021-05-18T21:00:59.000Z | 2021-12-06T18:22:58.000Z | #!/usr/bin/env python
u"""
harmonic_operators.py
Written by Tyler Sutterley (08/2021)
Performs basic operations on spherical harmonic files
CALLING SEQUENCE:
python harmonic_operators.py --operation add infile1 infile2 outfile
INPUTS:
path to input harmonic files
path to output harmonic file
COMMAND LINE... | 38.558036 | 79 | 0.636679 |
1a2cd21fd7f39e1c2256b2eb9e8e488bfa4af0c0 | 311 | py | Python | @Test/get historical stock data/get historical data.py | guozc12/QuantPy | bf8df57616c11475081839050715ce8152092557 | [
"MIT"
] | 1 | 2020-09-24T04:14:00.000Z | 2020-09-24T04:14:00.000Z | @Test/get historical stock data/get historical data.py | guozc12/QuantPy | bf8df57616c11475081839050715ce8152092557 | [
"MIT"
] | null | null | null | @Test/get historical stock data/get historical data.py | guozc12/QuantPy | bf8df57616c11475081839050715ce8152092557 | [
"MIT"
] | 1 | 2020-09-22T15:35:54.000Z | 2020-09-22T15:35:54.000Z | """This function is for getting historical data of stocks"""
import tushare as ts
mytoken = 'ecd07cde131c84a0419eae37bcd2f231ca2553c5e47b0061c511280a'
pro = ts.pro_api(mytoken)
data = pro.us_daily(ts_code='AAPL', start_date='20190101', end_date='20200928')
print(data)
#data.to_csv('600848.csv',index=False) | 28.272727 | 79 | 0.78135 |
1132a7ee6eeed49c93acfee877a47e8204fd9609 | 930 | py | Python | greatestcommondivisor.py | TheArcMagician/Number-theory | b92351168af478d98a5c95ab229409abca558e42 | [
"MIT"
] | 2 | 2016-07-08T17:56:49.000Z | 2016-07-08T17:56:55.000Z | greatestcommondivisor.py | TheArcMagician/Number-theory | b92351168af478d98a5c95ab229409abca558e42 | [
"MIT"
] | null | null | null | greatestcommondivisor.py | TheArcMagician/Number-theory | b92351168af478d98a5c95ab229409abca558e42 | [
"MIT"
] | null | null | null | #A program that takes two given numbers and finds their
#greatest common divisor -Shriram Krishnamachari 7/18/16
from collections import Counter as mset
def smallestFactor(n):
for i in range(2, n+1):
if n % i == 0:
return i
def factorize(number):
factor = list()
if number == 1:
... | 21.136364 | 65 | 0.622581 |
5ab6d5922a9db29b890514b7a99e6435a32ec15b | 4,873 | py | Python | docs/conf.py | DanGSun/pysonofflan | dd8790a0dbd1b1879f32d66f87c49acb5ff1a859 | [
"MIT"
] | 31 | 2019-01-27T23:34:59.000Z | 2022-03-18T04:11:50.000Z | docs/conf.py | DanGSun/pysonofflan | dd8790a0dbd1b1879f32d66f87c49acb5ff1a859 | [
"MIT"
] | 92 | 2019-01-30T11:03:28.000Z | 2021-11-15T17:48:19.000Z | docs/conf.py | DanGSun/pysonofflan | dd8790a0dbd1b1879f32d66f87c49acb5ff1a859 | [
"MIT"
] | 18 | 2019-02-04T15:06:41.000Z | 2021-11-09T16:35:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pysonofflan documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 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
#... | 29.713415 | 77 | 0.687256 |
0c4d9f422a3d64618300eaaa1d29faa98b1457bb | 5,102 | py | Python | scripts/postprocessing.py | MauriceKarrenbrock/PythonFSDAM | efd4a1717af37d6598aaaca0fa520f735cf254b0 | [
"BSD-3-Clause"
] | null | null | null | scripts/postprocessing.py | MauriceKarrenbrock/PythonFSDAM | efd4a1717af37d6598aaaca0fa520f735cf254b0 | [
"BSD-3-Clause"
] | null | null | null | scripts/postprocessing.py | MauriceKarrenbrock/PythonFSDAM | efd4a1717af37d6598aaaca0fa520f735cf254b0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=line-too-long
# pylint: disable=duplicate-code
#############################################################
# Copyright (c) 2020-2021 Maurice Karrenbrock #
# #
# This software is open-source and is distrib... | 30.369048 | 153 | 0.622501 |
ab502be65277f77defad031c3d472cd4b3ea615e | 2,314 | py | Python | expanduino/classes/meta.py | Expanduino/Expanduino-Python | 468b97091c5808158e05895cc1a9fb244dfdc6c7 | [
"Unlicense"
] | null | null | null | expanduino/classes/meta.py | Expanduino/Expanduino-Python | 468b97091c5808158e05895cc1a9fb244dfdc6c7 | [
"Unlicense"
] | null | null | null | expanduino/classes/meta.py | Expanduino/Expanduino-Python | 468b97091c5808158e05895cc1a9fb244dfdc6c7 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
from expanduino.subdevice import Subdevice
from expanduino.codec import *
from enum import IntEnum
from functools import lru_cache
from cached_property import cached_property
class MetaSubdevice(Subdevice):
class Command(IntEnum):
VENDOR_NAME = 0
PRODUCT_NAME = ... | 35.060606 | 107 | 0.727312 |
7582c4f0eb0c719f0befcf44104e2c27340ffba6 | 1,187 | py | Python | app/routers/file_.py | penM000/SHINtube-video-api | 924e823af318cce69f06745359f8b35d8920ebfa | [
"MIT"
] | null | null | null | app/routers/file_.py | penM000/SHINtube-video-api | 924e823af318cce69f06745359f8b35d8920ebfa | [
"MIT"
] | null | null | null | app/routers/file_.py | penM000/SHINtube-video-api | 924e823af318cce69f06745359f8b35d8920ebfa | [
"MIT"
] | 1 | 2021-09-20T15:50:01.000Z | 2021-09-20T15:50:01.000Z | import asyncio
import re
from ..internal.video.filemanager import filemanager
from ..internal.video.database import database
from fastapi import APIRouter
from fastapi import BackgroundTasks
from fastapi import File, UploadFile
router = APIRouter(
prefix="/api/file",
tags=["file_api"],
responses={404: {... | 25.255319 | 59 | 0.63016 |
06c0d862018a69258893bbcbef975e5817ab5291 | 2,256 | py | Python | polygon.py | hermannbene/BeamTomography | 39eae19c54128f27eb90a2717b1876768d730f29 | [
"Apache-2.0"
] | 2 | 2021-01-25T12:31:21.000Z | 2021-04-02T23:13:09.000Z | polygon.py | hermannbene/BeamTomography | 39eae19c54128f27eb90a2717b1876768d730f29 | [
"Apache-2.0"
] | null | null | null | polygon.py | hermannbene/BeamTomography | 39eae19c54128f27eb90a2717b1876768d730f29 | [
"Apache-2.0"
] | null | null | null | def genPoly(nWires,radius,scanLength,offAngle,center):
'''
this function generates a polygon path for wire scan tomography.
Input
center: np.array([x,y,z,rx,ry,rz]) in um,deg
nWires: int
radius: flaot um
scanLength: flaot um
offAngle: offset angle of the wire star, 0 means wire 0 is ho... | 36.387097 | 141 | 0.60461 |
d55c23b440db9040c253ab97bed56d28fc561068 | 9,436 | py | Python | gym_collision_avoidance/envs/policies/social_lstm/validation.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | 3 | 2021-12-16T05:39:14.000Z | 2022-02-25T06:07:51.000Z | gym_collision_avoidance/envs/policies/social_lstm/validation.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | gym_collision_avoidance/envs/policies/social_lstm/validation.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | 1 | 2021-11-09T18:04:01.000Z | 2021-11-09T18:04:01.000Z | import os
import pickle
import argparse
import time
import subprocess
import torch
from torch.autograd import Variable
import numpy as np
from utils import DataLoader
from helper import get_mean_error, get_final_error
from helper import *
from grid import getSequenceGridMask
def main():
parser = argparse... | 41.752212 | 195 | 0.654939 |
87574cedab14c247e3a7b597a87e796cb89a9c38 | 16,234 | py | Python | xtune/src/transformers/data/processors/xtreme.py | aimore-globality/unilm | f25b30a2b33374e6fa407849c3749a07960535a2 | [
"MIT"
] | 5,129 | 2019-09-30T11:21:03.000Z | 2022-03-31T22:35:12.000Z | xtune/src/transformers/data/processors/xtreme.py | aimore-globality/unilm | f25b30a2b33374e6fa407849c3749a07960535a2 | [
"MIT"
] | 604 | 2019-10-05T00:39:46.000Z | 2022-03-31T11:12:07.000Z | xtune/src/transformers/data/processors/xtreme.py | aimore-globality/unilm | f25b30a2b33374e6fa407849c3749a07960535a2 | [
"MIT"
] | 1,034 | 2019-09-30T15:01:32.000Z | 2022-03-31T06:14:50.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | 40.483791 | 156 | 0.609831 |
11ff5f5cf63658772e869b15199de039a84880e3 | 913 | py | Python | samples/openapi3/client/petstore/python-experimental/test/test_health_check_result.py | data-experts/openapi-generator | b86a51ae17e25feae0e0c9f9e6f423b8ff54057d | [
"Apache-2.0"
] | 1 | 2021-07-13T23:28:49.000Z | 2021-07-13T23:28:49.000Z | samples/openapi3/client/petstore/python-experimental/test/test_health_check_result.py | data-experts/openapi-generator | b86a51ae17e25feae0e0c9f9e6f423b8ff54057d | [
"Apache-2.0"
] | 5 | 2021-05-11T22:59:16.000Z | 2022-02-27T10:31:06.000Z | samples/openapi3/client/petstore/python-experimental/test/test_health_check_result.py | data-experts/openapi-generator | b86a51ae17e25feae0e0c9f9e6f423b8ff54057d | [
"Apache-2.0"
] | 1 | 2019-10-06T12:57:47.000Z | 2019-10-06T12:57:47.000Z | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | 23.410256 | 174 | 0.705367 |
cf6e47425c9dec3696936929e9c01c78eb0d6e23 | 2,401 | py | Python | src/advent/solutions/day12.py | khwilson/advent2021 | 6499b883f1b6d7366f3fe75dc229d646154a4cf8 | [
"MIT"
] | null | null | null | src/advent/solutions/day12.py | khwilson/advent2021 | 6499b883f1b6d7366f3fe75dc229d646154a4cf8 | [
"MIT"
] | null | null | null | src/advent/solutions/day12.py | khwilson/advent2021 | 6499b883f1b6d7366f3fe75dc229d646154a4cf8 | [
"MIT"
] | null | null | null | import string
from collections import defaultdict
from typing import Dict, List
from ..solution import Solution
def count_paths(data: Dict[str, List[str]], path: List[str]) -> int:
cur_end = path[-1]
retval = 0
for next_step in data[cur_end]:
if next_step == "end":
retval += 1
... | 30.392405 | 88 | 0.540608 |
5671b54d7e6630a1fb02aafb4cd401d16382ae6e | 162 | py | Python | 4.17/demo/cookdemo/urls.py | 1179069501/- | b76902a35ed78678c1663f243330bcb014abace1 | [
"MIT"
] | null | null | null | 4.17/demo/cookdemo/urls.py | 1179069501/- | b76902a35ed78678c1663f243330bcb014abace1 | [
"MIT"
] | null | null | null | 4.17/demo/cookdemo/urls.py | 1179069501/- | b76902a35ed78678c1663f243330bcb014abace1 | [
"MIT"
] | null | null | null | from django.urls import re_path
from .import views
urlpatterns = [
re_path(r'^setcook/$',views.setcookfunc),
re_path(r'^getcook/$',views.getcookfunc),
]
| 20.25 | 45 | 0.709877 |
c97a58d000e753a8634c6be4026c80a7d76912be | 1,864 | py | Python | transformer/classes/transformer_model.py | alfa-th/lang-modeler-pytorch | a13e94841df9fc3996b33a93d0a58a99c0596359 | [
"Apache-2.0"
] | null | null | null | transformer/classes/transformer_model.py | alfa-th/lang-modeler-pytorch | a13e94841df9fc3996b33a93d0a58a99c0596359 | [
"Apache-2.0"
] | null | null | null | transformer/classes/transformer_model.py | alfa-th/lang-modeler-pytorch | a13e94841df9fc3996b33a93d0a58a99c0596359 | [
"Apache-2.0"
] | null | null | null | import math
import torch
from torch import nn, Tensor
from torch.nn import TransformerEncoder, TransformerEncoderLayer
from .positional_encoding import PositionalEncoding
class TransformerModel(nn.Module):
def __init__(self, ntoken: int, d_model: int, nhead: int, d_hid: int, nlayers: int, dropout: float = 0.5):
... | 32.701754 | 108 | 0.701717 |
47edbedb3d595d42ff4451d944bf4104c7472f02 | 2,417 | py | Python | venv/Lib/site-packages/pyrogram/raw/functions/invoke_with_takeout.py | D1ne2021/jjhhhjj | a090da30983b3ef276dfe4cef2ded4526f36002a | [
"MIT"
] | 2 | 2021-12-13T07:09:55.000Z | 2022-01-12T12:15:20.000Z | venv/Lib/site-packages/pyrogram/raw/functions/invoke_with_takeout.py | hoangkiet1906/Botcie_ver1 | c133b915edde06dac690a7dc6ca160f6792fc4c8 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pyrogram/raw/functions/invoke_with_takeout.py | hoangkiet1906/Botcie_ver1 | c133b915edde06dac690a7dc6ca160f6792fc4c8 | [
"MIT"
] | null | null | null | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | 30.987179 | 103 | 0.618535 |
dc3691a226cf89fb68d71d7082de6ca1bc1a9a56 | 1,314 | py | Python | core/searchLocalCH.py | Ankesh054-official/LittleBrother-GUI- | db1f338109b756a78c2fb142a9f7a5263aef3c12 | [
"MIT"
] | 16 | 2020-09-16T09:10:43.000Z | 2022-02-17T02:19:54.000Z | core/searchLocalCH.py | swagkarna/LittleBrother-GUI- | 73bfca36c3c0640b9c59c135ca1877e84449bf77 | [
"MIT"
] | 1 | 2020-12-24T02:06:26.000Z | 2021-01-14T05:50:08.000Z | core/searchLocalCH.py | Ankesh054-official/LittleBrother-GUI- | db1f338109b756a78c2fb142a9f7a5263aef3c12 | [
"MIT"
] | 4 | 2020-09-16T14:00:47.000Z | 2021-01-04T04:16:23.000Z | import time
import requests
from tkinter import *
from bs4 import BeautifulSoup
from terminaltables import SingleTable
def searchLocalCH(progress, self, text,url):
data = requests.get(url).content.decode("utf-8")
soup = BeautifulSoup(data, "html.parser")
nameList = soup.find_all("span", {"class": "listing-title... | 23.052632 | 118 | 0.711568 |
8a4e71c1f768547a8bffe7ae96575f0cce9a23fc | 2,927 | py | Python | aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListJobStatusRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListJobStatusRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListJobStatusRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.164835 | 74 | 0.760847 |
1cfcd019dfb18eb755b9773780c874c7950c123e | 4,776 | py | Python | python/pyspark/ml/feature.py | MiguelPeralvo/spark | 979a73f86f77e7ae294979b7962b8ae30d38f1ff | [
"Apache-2.0"
] | 13 | 2015-02-11T21:20:03.000Z | 2019-02-07T22:29:06.000Z | python/pyspark/ml/feature.py | MiguelPeralvo/spark | 979a73f86f77e7ae294979b7962b8ae30d38f1ff | [
"Apache-2.0"
] | 6 | 2019-11-13T07:48:07.000Z | 2022-01-21T23:24:20.000Z | python/pyspark/ml/feature.py | MiguelPeralvo/spark | 979a73f86f77e7ae294979b7962b8ae30d38f1ff | [
"Apache-2.0"
] | 9 | 2015-06-05T22:02:01.000Z | 2020-11-24T06:12:17.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 37.3125 | 85 | 0.66541 |
4cc2a26dbba9d78b0330fe26b4421923a256af23 | 25,156 | py | Python | tests/core/test_bungiesearch.py | ChristopherRabotin/bungiesearch | 13768342bc2698b214eb0003c2d113b6e273c30d | [
"BSD-3-Clause"
] | 40 | 2015-12-12T05:27:59.000Z | 2020-06-11T13:20:00.000Z | tests/core/test_bungiesearch.py | Sparrho/bungiesearch | 13768342bc2698b214eb0003c2d113b6e273c30d | [
"BSD-3-Clause"
] | 56 | 2015-02-02T17:00:02.000Z | 2015-11-25T09:43:27.000Z | tests/core/test_bungiesearch.py | ChristopherRabotin/bungiesearch | 13768342bc2698b214eb0003c2d113b6e273c30d | [
"BSD-3-Clause"
] | 22 | 2016-02-15T13:54:49.000Z | 2020-12-24T08:00:18.000Z | from datetime import datetime
from django.core.management import call_command
from django.test import TestCase, override_settings
from six import iteritems
import pytz
from bungiesearch import Bungiesearch
from bungiesearch.utils import update_index
from core.bungie_signal import BungieTestSignalProcessor
from core.m... | 62.577114 | 250 | 0.638615 |
e8bbfac0af7fadffa4638843d4a39d2ec5b23b21 | 1,197 | py | Python | river/optim/newton.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | 2,184 | 2020-11-11T12:31:12.000Z | 2022-03-31T16:45:41.000Z | river/optim/newton.py | raphaelsty/river | 2e0b25a2ef2d2ba9ec080cf86a491f7465433b18 | [
"BSD-3-Clause"
] | 262 | 2020-11-11T17:15:47.000Z | 2022-03-31T23:54:03.000Z | river/optim/newton.py | raphaelsty/river | 2e0b25a2ef2d2ba9ec080cf86a491f7465433b18 | [
"BSD-3-Clause"
] | 240 | 2020-11-11T14:25:03.000Z | 2022-03-31T08:25:50.000Z | from .. import utils
from . import base
__all__ = ["Newton"]
class Newton(base.Optimizer):
"""Online Newton Step (ONS) optimizer.
This optimizer uses second-order information (i.e. the Hessian of the cost function) in
addition to first-order information (i.e. the gradient of the cost function).
Par... | 26.021739 | 215 | 0.59315 |
01cb0ee24d32680881d01891d8aba07cec1c1102 | 6,897 | py | Python | spin-hokuyo_ws/devel/lib/python2.7/dist-packages/dynamixel_controllers/srv/_TorqueEnable.py | leontius/hokuyo_ros | d76f8847d3ddc372c17bdb80fd68e89412801a29 | [
"MIT"
] | 1 | 2020-10-06T14:02:44.000Z | 2020-10-06T14:02:44.000Z | spin-hokuyo_ws/devel/lib/python2.7/dist-packages/dynamixel_controllers/srv/_TorqueEnable.py | leontius/hokuyo_ros | d76f8847d3ddc372c17bdb80fd68e89412801a29 | [
"MIT"
] | null | null | null | spin-hokuyo_ws/devel/lib/python2.7/dist-packages/dynamixel_controllers/srv/_TorqueEnable.py | leontius/hokuyo_ros | d76f8847d3ddc372c17bdb80fd68e89412801a29 | [
"MIT"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from dynamixel_controllers/TorqueEnableRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class TorqueEnableRequest(genpy.Message):
_md5sum = "e44dc96db32bd58b5a89... | 33.808824 | 145 | 0.681021 |
8d1e78e4789ab2e451bde36c0e690352a4b2ca18 | 1,975 | py | Python | PokemonTypes/MatchupList.py | Pedro29152/poke-types | 021647e0bd3008d70c412af92b56be7d46f08428 | [
"MIT"
] | 1 | 2021-10-17T22:50:17.000Z | 2021-10-17T22:50:17.000Z | PokemonTypes/MatchupList.py | Pedro29152/poke-types | 021647e0bd3008d70c412af92b56be7d46f08428 | [
"MIT"
] | null | null | null | PokemonTypes/MatchupList.py | Pedro29152/poke-types | 021647e0bd3008d70c412af92b56be7d46f08428 | [
"MIT"
] | null | null | null | from typing import overload
from .PokemonTypes import Types
class MatchupList:
def __init__(self, defaultValues = 1, matchupList: list = None):
if matchupList:
if not isinstance(matchupList, list):
raise TypeError('matchupList argument must be a list')
max = Types.ma... | 31.854839 | 131 | 0.586329 |
5cd445a207e80ae1cb9492a1eba7f93e977bb945 | 1,565 | py | Python | cupy/indexing/insert.py | mdeegen/chainer | d4ef0ca4a04c958f07d70a0be6ba3c900baffbdb | [
"MIT"
] | null | null | null | cupy/indexing/insert.py | mdeegen/chainer | d4ef0ca4a04c958f07d70a0be6ba3c900baffbdb | [
"MIT"
] | null | null | null | cupy/indexing/insert.py | mdeegen/chainer | d4ef0ca4a04c958f07d70a0be6ba3c900baffbdb | [
"MIT"
] | 1 | 2021-05-27T16:52:11.000Z | 2021-05-27T16:52:11.000Z | import numpy
# TODO(okuta): Implement place
# TODO(okuta): Implement put
# TODO(okuta): Implement putmask
def fill_diagonal(a, val, wrap=False):
"""Fill the main diagonal of the given array of any dimensionality.
For an array `a` with ``a.ndim > 2``, the diagonal is the list of
locations with indice... | 30.096154 | 79 | 0.587859 |
cbbee1a20f163831e4b888da4b65e7dfa4b63505 | 957 | py | Python | students/K33422/Iskhakova_Emina/labs/lab2/hotel/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | students/K33422/Iskhakova_Emina/labs/lab2/hotel/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | students/K33422/Iskhakova_Emina/labs/lab2/hotel/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import *
urlpatterns = [
path('', index, name='index'),
path('hotels/', ListHotels.as_view(), name='hotels'),
path('rooms/', ListRooms.as_view(), name='rooms'),
path('hotels/<int:pk>/', ListHotelRooms.as_view()),
path('rooms/<int:pk>/', RoomDetail.... | 45.571429 | 95 | 0.653083 |
ee2afb55fdc7d9064a2495151eadd7eae28802c7 | 7,537 | py | Python | test/integration/component/test_secsr_mount.py | elShiaLabeouf/cloudstack | 3c5580632425ded5a468c3cd82cd141e7410ef39 | [
"Apache-2.0"
] | 1 | 2020-03-22T14:55:12.000Z | 2020-03-22T14:55:12.000Z | test/integration/component/test_secsr_mount.py | elShiaLabeouf/cloudstack | 3c5580632425ded5a468c3cd82cd141e7410ef39 | [
"Apache-2.0"
] | null | null | null | test/integration/component/test_secsr_mount.py | elShiaLabeouf/cloudstack | 3c5580632425ded5a468c3cd82cd141e7410ef39 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 39.255208 | 141 | 0.543187 |
7730fbc615fd1fa265420b6f7e671c93ca9e515d | 24,964 | py | Python | pypy/interpreter/test/test_function.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 381 | 2018-08-18T03:37:22.000Z | 2022-02-06T23:57:36.000Z | pypy/interpreter/test/test_function.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 16 | 2018-09-22T18:12:47.000Z | 2022-02-22T20:03:59.000Z | pypy/interpreter/test/test_function.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 30 | 2018-08-20T03:16:34.000Z | 2022-01-12T17:39:22.000Z | import pytest, sys
from pypy.interpreter import eval
from pypy.interpreter.function import Function, Method, descr_function_get
from pypy.interpreter.pycode import PyCode
from pypy.interpreter.argument import Arguments
class AppTestFunctionIntrospection:
def test_attributes(self):
globals()['__name__'] = ... | 29.578199 | 93 | 0.539377 |
4e5fd23b328228698afca0f8f7fff41792e52026 | 3,235 | py | Python | data/image_folder.py | jiaojiening/pytorch-CycleGAN | ab83fe4638f32cb560b8cd1117e8307153b8b5a1 | [
"BSD-3-Clause"
] | 1 | 2018-12-12T02:47:16.000Z | 2018-12-12T02:47:16.000Z | data/image_folder.py | jiaojiening/pytorch-CycleGAN | ab83fe4638f32cb560b8cd1117e8307153b8b5a1 | [
"BSD-3-Clause"
] | null | null | null | data/image_folder.py | jiaojiening/pytorch-CycleGAN | ab83fe4638f32cb560b8cd1117e8307153b8b5a1 | [
"BSD-3-Clause"
] | 1 | 2019-03-04T13:28:48.000Z | 2019-03-04T13:28:48.000Z | ###############################################################################
# Code from
# https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py
# Modified the original code so that it also loads images from the current
# directory as well as the subdirectories
################################... | 30.809524 | 105 | 0.553014 |
a589cd0c39a411c4afa98dc37e3ceaceedc2c156 | 4,330 | py | Python | sdk/python/pulumi_azure_nextgen/resources/v20190801/get_resource_group.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/resources/v20190801/get_resource_group.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/resources/v20190801/get_resource_group.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 33.828125 | 156 | 0.645497 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.