hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed17f5890d6b8f37c6b6d897dfdeee0fd244dace | 544 | py | Python | config.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | config.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | config.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
| 24.727273 | 44 | 0.549632 |
ed17fa4c7a350d13f37c06feb06cdcd3b65f55bf | 859 | gyp | Python | binding.gyp | HupuInc/node-mysql-listener | d23e55910acd1559d8339f36b1549f21aee8adaa | [
"MIT"
] | 2 | 2015-10-04T02:09:11.000Z | 2021-02-03T00:12:28.000Z | binding.gyp | HupuInc/node-mysql-listener | d23e55910acd1559d8339f36b1549f21aee8adaa | [
"MIT"
] | 1 | 2015-10-04T02:10:02.000Z | 2015-10-05T07:29:40.000Z | binding.gyp | HupuInc/node-mysql-listener | d23e55910acd1559d8339f36b1549f21aee8adaa | [
"MIT"
] | null | null | null | {
'targets': [
{
# have to specify 'liblib' here since gyp will remove the first one :\
'target_name': 'mysql_bindings',
'sources': [
'src/mysql_bindings.cc',
'src/mysql_bindings_connection.cc',
'src/mysql_bindings_result.cc',
'src/mysql_bindings_statement.cc',
... | 23.861111 | 76 | 0.436554 |
ed1909657faffd879b4424a3c02025a1afc7ff54 | 1,272 | py | Python | pymel/__init__.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | pymel/__init__.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | pymel/__init__.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null |
# copyright Chad Dombrova chadd@luma-pictures.com
# created at luma pictures www.luma-pictures.com
"""
*******************************
PyMEL
*******************************
PyMEL makes python scripting in Maya work the way it should. Maya's command module is a direct
translation of MEL commands into p... | 37.411765 | 116 | 0.676887 |
ed1acc095f46eeb713b4bbe4bbc113d4ca38760c | 399 | py | Python | setup.py | rlbellaire/ActT | b6e936e5037c5f92ad1c281e2bf3700bf91aea42 | [
"BSD-3-Clause"
] | 2 | 2020-01-24T20:20:02.000Z | 2021-09-25T03:32:17.000Z | setup.py | rlbellaire/ActT | b6e936e5037c5f92ad1c281e2bf3700bf91aea42 | [
"BSD-3-Clause"
] | 1 | 2020-11-16T17:08:08.000Z | 2020-11-16T17:08:08.000Z | setup.py | rlbellaire/ActT | b6e936e5037c5f92ad1c281e2bf3700bf91aea42 | [
"BSD-3-Clause"
] | 1 | 2020-11-16T16:58:39.000Z | 2020-11-16T16:58:39.000Z | from setuptools import find_packages, setup
setup(name='ActT',
version='0.6',
description='Active Testing',
url='',
author='',
author_email='none',
license='BSD',
packages=find_packages(),
install_requires=[
'numpy', 'pandas', 'matplotlib','scipy','scikit-learn',... | 24.9375 | 79 | 0.588972 |
ed1aeb45638b0f4e22adf71d2445a7c3b1908ff3 | 3,121 | py | Python | Fusion/deltat.py | coylen/pySG | 6af1b8387c256f8898e2198c635c8e4b72ec3942 | [
"MIT"
] | 264 | 2015-10-07T19:31:15.000Z | 2022-03-31T23:34:59.000Z | deltat.py | CharlesAO/micropython-fusion | fe72a6870357c8f9b1cae78b98564412382943d9 | [
"MIT"
] | 14 | 2015-11-13T02:40:30.000Z | 2022-01-22T10:44:48.000Z | deltat.py | CharlesAO/micropython-fusion | fe72a6870357c8f9b1cae78b98564412382943d9 | [
"MIT"
] | 75 | 2015-12-12T00:26:28.000Z | 2022-03-23T13:32:30.000Z | # deltat.py time difference calculation for sensor fusion
# Released under the MIT License (MIT)
# Copyright (c) 2018 Peter Hinch
# Provides TimeDiff function and DeltaT class.
# The following notes cover special cases. Where the device performing fusion
# is linked to the IMU and is running MicroPython no special tre... | 41.065789 | 97 | 0.707786 |
ed1b14ee7367d8cae14cb322f5cd81df68be3c15 | 11,336 | py | Python | colour/models/rgb/datasets/sony.py | wenh06/colour | 445fdad2711ae39c95b4375166905568d24a95f4 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T01:53:40.000Z | 2021-09-09T01:53:40.000Z | colour/models/rgb/datasets/sony.py | wenh06/colour | 445fdad2711ae39c95b4375166905568d24a95f4 | [
"BSD-3-Clause"
] | null | null | null | colour/models/rgb/datasets/sony.py | wenh06/colour | 445fdad2711ae39c95b4375166905568d24a95f4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Sony Colourspaces
=================
Defines the *Sony* colourspaces:
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3_CINE`.
- :attr:`colour.models.RGB_COLOURSPACE_VENICE_S_GAMUT3`.
- ... | 28.918367 | 81 | 0.763585 |
ed1b3de2cf4ee0d6a94657c3843653ea66d9ad27 | 723 | py | Python | network.py | QiaoZhongzheng/EWC-sample-PMNIST | cd5e10b401582ab7f0dcd7a1e38aed6552192484 | [
"MIT"
] | null | null | null | network.py | QiaoZhongzheng/EWC-sample-PMNIST | cd5e10b401582ab7f0dcd7a1e38aed6552192484 | [
"MIT"
] | null | null | null | network.py | QiaoZhongzheng/EWC-sample-PMNIST | cd5e10b401582ab7f0dcd7a1e38aed6552192484 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
'''=================================================
@Project -> File EWC -> network
@IDE PyCharm
@Author Qiao Zhongzheng
@Date 2021/6/23 20:28
@Desc
=================================================='''
from tensorflow.keras import Model
from tensorflow.keras.layers import Dense, Conv... | 36.15 | 83 | 0.562932 |
ed1b9e6a531c569f1a1cfb6234bd90d5b845bbe9 | 1,909 | py | Python | src/quanguru/classes/exceptions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | null | null | null | src/quanguru/classes/exceptions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | null | null | null | src/quanguru/classes/exceptions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | null | null | null | # TODO turn prints into actual error raise, they are print for testing
| 40.617021 | 92 | 0.600838 |
ed1c74c77f9a61e232ea9a2a837cdc1274993efb | 6,997 | py | Python | reagent/gym/tests/test_gym.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/gym/tests/test_gym.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/gym/tests/test_gym.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import os
import pprint
import unittest
import numpy as np
# pyre-fixme[21]: Could not find module `pytest`.
import pytest
import torch
from parameterized import parameterized
from reagent.core.types import R... | 36.253886 | 88 | 0.711019 |
ed1ce2b7ae05d6c1c0bdabe48547eeeb53fe25e1 | 1,949 | py | Python | src/deep_dialog/usersims/usersim.py | CommissarSilver/TC-Bot | 4579706a18028b5da9b8a7807fb2e2d4043dcaf8 | [
"MIT"
] | 1 | 2021-05-29T01:32:49.000Z | 2021-05-29T01:32:49.000Z | D3Q/src/deep_dialog/usersims/usersim.py | Yuqing2018/D3Q_Python3 | 2a9918494e3f0ed18f9b7560b1e6f13119fbee91 | [
"MIT"
] | null | null | null | D3Q/src/deep_dialog/usersims/usersim.py | Yuqing2018/D3Q_Python3 | 2a9918494e3f0ed18f9b7560b1e6f13119fbee91 | [
"MIT"
] | null | null | null |
"""
Created on June 7, 2016
a rule-based user simulator
@author: xiul, t-zalipt
"""
import random
| 30.453125 | 99 | 0.606978 |
ed1dd7ccddd4e92e0775574a201cc45ae9f018c0 | 57 | py | Python | kendall_w/__init__.py | ugolbck/KendallW | ace7c68d6c3c2dfcf6b3ee5fb3817240ed050c9b | [
"BSD-3-Clause"
] | 4 | 2020-03-28T13:42:58.000Z | 2021-04-05T12:45:25.000Z | kendall_w/__init__.py | ugolbck/KendallW | ace7c68d6c3c2dfcf6b3ee5fb3817240ed050c9b | [
"BSD-3-Clause"
] | null | null | null | kendall_w/__init__.py | ugolbck/KendallW | ace7c68d6c3c2dfcf6b3ee5fb3817240ed050c9b | [
"BSD-3-Clause"
] | 2 | 2020-08-05T03:36:43.000Z | 2020-09-09T00:33:06.000Z | from .kendall_w import compute_w
__version__ = (1, 0, 0) | 19 | 32 | 0.736842 |
ed1e65bf06947a5b605eebf0c5bd1f30e38649c8 | 142 | py | Python | admin.py | nielsrolf/django-error-logs | 4e516e021d34e255f1282c98bffa53a265c48bab | [
"Apache-2.0"
] | null | null | null | admin.py | nielsrolf/django-error-logs | 4e516e021d34e255f1282c98bffa53a265c48bab | [
"Apache-2.0"
] | null | null | null | admin.py | nielsrolf/django-error-logs | 4e516e021d34e255f1282c98bffa53a265c48bab | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(ErrorGroup)
admin.site.register(Error) | 28.4 | 32 | 0.809859 |
ed1f38ec9a444c4d387d2b1c3bbd4a46cc3895ba | 2,132 | py | Python | mcpython/common/block/ISlab.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 2 | 2019-11-02T05:26:11.000Z | 2019-11-03T08:52:18.000Z | mcpython/common/block/ISlab.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 25 | 2019-11-02T05:24:29.000Z | 2022-02-09T14:09:08.000Z | mcpython/common/block/ISlab.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 5 | 2019-11-09T05:36:06.000Z | 2021-11-28T13:07:08.000Z | """
mcpython - a minecraft clone written in python licenced under the MIT-licence
(https://github.com/mcpython4-coding/core)
Contributors: uuk, xkcdjerry (inactive)
Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence
Original game "minecraft" by Mojang Studios (www.m... | 32.30303 | 103 | 0.701689 |
ed207a7611696af8395d372e4e8d01f42d7c6467 | 25,419 | py | Python | CourseOutlineBackend/courseoutline/serializers.py | stancsz/web-development-project-ensf-607 | 03b11df4971afd4f27fee54a1800a40d4cc10240 | [
"Apache-2.0"
] | null | null | null | CourseOutlineBackend/courseoutline/serializers.py | stancsz/web-development-project-ensf-607 | 03b11df4971afd4f27fee54a1800a40d4cc10240 | [
"Apache-2.0"
] | null | null | null | CourseOutlineBackend/courseoutline/serializers.py | stancsz/web-development-project-ensf-607 | 03b11df4971afd4f27fee54a1800a40d4cc10240 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import *
| 42.649329 | 108 | 0.66824 |
ed2132797a348954493a3cea6dfb9bfa857770a6 | 209 | py | Python | tools/math_tools.py | oliverscheer/python-pytest-ci | d67c379440d1873a753c47e7031bb9564d96de21 | [
"MIT"
] | null | null | null | tools/math_tools.py | oliverscheer/python-pytest-ci | d67c379440d1873a753c47e7031bb9564d96de21 | [
"MIT"
] | 1 | 2021-05-26T19:58:09.000Z | 2021-05-26T19:58:09.000Z | tools/math_tools.py | oliverscheer/python-pytest-ci | d67c379440d1873a753c47e7031bb9564d96de21 | [
"MIT"
] | null | null | null | """ some math tools """
| 17.416667 | 36 | 0.444976 |
ed2176e9a9c0aa2fe888859654d1422302e6cce3 | 325 | py | Python | hackerrank/Algorithms/Correctness and the Loop Invariant/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Correctness and the Loop Invariant/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Correctness and the Loop Invariant/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null |
m = int(input().strip())
ar = [int(i) for i in input().strip().split()]
insertion_sort(ar)
print(" ".join(map(str, ar)))
| 21.666667 | 46 | 0.443077 |
ed2203dc728c9eb06bb608004ab33922f3baa3bc | 3,279 | py | Python | cvp_rest_api_examples/cvpLabelAdd.py | kakkotetsu/CVP-Scripts | 4075eaf9987be6220a7bed188dcee11f56a7bf35 | [
"Apache-2.0"
] | 8 | 2019-06-04T14:22:45.000Z | 2020-10-02T16:56:43.000Z | cvp_rest_api_examples/cvpLabelAdd.py | kakkotetsu/CVP-Scripts | 4075eaf9987be6220a7bed188dcee11f56a7bf35 | [
"Apache-2.0"
] | 1 | 2021-04-16T00:43:00.000Z | 2021-04-16T00:43:00.000Z | cvp_rest_api_examples/cvpLabelAdd.py | kakkotetsu/CVP-Scripts | 4075eaf9987be6220a7bed188dcee11f56a7bf35 | [
"Apache-2.0"
] | 4 | 2020-05-13T14:03:13.000Z | 2021-08-10T14:47:23.000Z | #!/usrb/bin/env python
# Copyright (c) 2019, Arista Networks, Inc.
# 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,
# t... | 42.584416 | 84 | 0.720647 |
ed22f71576a11a3b9302f73902c8de9c8f96d4dd | 1,244 | py | Python | frontends/pytorch/python/torch_mlir_torchscript_e2e_test_configs/torchscript.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | frontends/pytorch/python/torch_mlir_torchscript_e2e_test_configs/torchscript.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | frontends/pytorch/python/torch_mlir_torchscript_e2e_test_configs/torchscript.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
import copy
from typing import Any
import torch
from torch_mlir_torchscript.e2e_test.framework import TestConfig, Tr... | 34.555556 | 82 | 0.644695 |
ed23166702dcea8d3e5e73f8ed58f0971f2a45b0 | 2,495 | py | Python | app/balltracking/pubnubpython/pnconfiguration.py | gdmgent-1718-wot/interactive-wall | af7ecff126b1ee9c85c270fe13d1338aa790c34b | [
"Apache-2.0"
] | null | null | null | app/balltracking/pubnubpython/pnconfiguration.py | gdmgent-1718-wot/interactive-wall | af7ecff126b1ee9c85c270fe13d1338aa790c34b | [
"Apache-2.0"
] | null | null | null | app/balltracking/pubnubpython/pnconfiguration.py | gdmgent-1718-wot/interactive-wall | af7ecff126b1ee9c85c270fe13d1338aa790c34b | [
"Apache-2.0"
] | null | null | null | from .enums import PNHeartbeatNotificationOptions, PNReconnectionPolicy
from . import utils
| 29.352941 | 85 | 0.666132 |
ed2393de8d1d80d0e5b9c6610dd11fbf42e62a83 | 18,305 | py | Python | tests/scripts/thread-cert/thread_cert.py | lmaciejonczyk/openthread | 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c | [
"BSD-3-Clause"
] | null | null | null | tests/scripts/thread-cert/thread_cert.py | lmaciejonczyk/openthread | 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c | [
"BSD-3-Clause"
] | null | null | null | tests/scripts/thread-cert/thread_cert.py | lmaciejonczyk/openthread | 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2019, The OpenThread Authors.
# 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
# ... | 36.536926 | 170 | 0.607648 |
ed242bad81da2f05250a803d492c40b86c9b59d3 | 1,770 | py | Python | FaceMaskDetection with webcam.py | Anurag-Varma/facemask-detection | 9ac681261e246e6ab1837c576d933dc7324e3a92 | [
"MIT"
] | 1 | 2021-07-13T09:16:12.000Z | 2021-07-13T09:16:12.000Z | FaceMaskDetection with webcam.py | Anurag-Varma/facemask-detection | 9ac681261e246e6ab1837c576d933dc7324e3a92 | [
"MIT"
] | null | null | null | FaceMaskDetection with webcam.py | Anurag-Varma/facemask-detection | 9ac681261e246e6ab1837c576d933dc7324e3a92 | [
"MIT"
] | null | null | null |
import cv2
import numpy as np
from keras.models import model_from_json
from keras.preprocessing.image import img_to_array
#load model
model = model_from_json(open("fer.json", "r").read()) #change the path accoring to files
#load weights
model.load_weights('fer.h5') #change the path accor... | 28.095238 | 124 | 0.641243 |
ed24828337abdac65179c3d1fc89a55415ddc15a | 1,871 | py | Python | language/Basics/stringformatting.py | Binary-bug/Python | 233425ded6abc26c889599a82a181487789e3bab | [
"MIT"
] | null | null | null | language/Basics/stringformatting.py | Binary-bug/Python | 233425ded6abc26c889599a82a181487789e3bab | [
"MIT"
] | null | null | null | language/Basics/stringformatting.py | Binary-bug/Python | 233425ded6abc26c889599a82a181487789e3bab | [
"MIT"
] | null | null | null | age = 24
print("My age is " + str(age) + " years ")
# the above procedure is tedious since we dont really want to include str for every number we encounter
#Method1 Replacement Fields
print("My age is {0} years ".format(age)) # {0} is the actual replacement field, number important for multiple replacement fields
... | 25.986111 | 140 | 0.649385 |
ed24c0adb8cc7ebd6871903b985fa571a276f939 | 5,391 | py | Python | toggl.py | ulrikpedersen/toggl-gnome-applet | ae48358414d14d44ef5731c59f1813bac97e3257 | [
"Unlicense"
] | null | null | null | toggl.py | ulrikpedersen/toggl-gnome-applet | ae48358414d14d44ef5731c59f1813bac97e3257 | [
"Unlicense"
] | 1 | 2017-11-21T09:36:06.000Z | 2017-11-21T09:36:06.000Z | toggl.py | ulrikpedersen/toggl-gnome-applet | ae48358414d14d44ef5731c59f1813bac97e3257 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import logging
from datetime import datetime
logging.basicConfig(level=logging.WARNING)
import os
import urllib2, base64, json
import dateutil.parser
| 38.234043 | 116 | 0.586533 |
ed2565f6739ecf83e80e8445b8eb480489832a2d | 432 | py | Python | gs_divergence/symmetrized_geodesical_skew_divergence.py | ISMHinoLab/geodesical_skew_divergence | 293648a30e86bdd14749af5b107f1d3687d67700 | [
"MIT"
] | 7 | 2021-04-01T09:21:49.000Z | 2022-03-24T05:28:22.000Z | gs_divergence/symmetrized_geodesical_skew_divergence.py | ISMHinoLab/geodesical_skew_divergence | 293648a30e86bdd14749af5b107f1d3687d67700 | [
"MIT"
] | 21 | 2021-04-01T02:56:54.000Z | 2021-05-07T01:02:09.000Z | gs_divergence/symmetrized_geodesical_skew_divergence.py | ISMHinoLab/geodesical_skew_divergence | 293648a30e86bdd14749af5b107f1d3687d67700 | [
"MIT"
] | 2 | 2021-04-12T15:00:17.000Z | 2021-04-26T03:10:26.000Z | from typing import Optional
import torch
from gs_divergence import gs_div
| 24 | 74 | 0.680556 |
ed25675ecd1960dc8b520c3cb84ff43fb7cab0a0 | 1,946 | py | Python | train.py | kushaliitm/deep-learning | ab8e23d1414d3b79bbe4a3acd57a475f6def7277 | [
"MIT"
] | null | null | null | train.py | kushaliitm/deep-learning | ab8e23d1414d3b79bbe4a3acd57a475f6def7277 | [
"MIT"
] | null | null | null | train.py | kushaliitm/deep-learning | ab8e23d1414d3b79bbe4a3acd57a475f6def7277 | [
"MIT"
] | null | null | null | import argparse
import helper as hp
import torch
import os
import json
parser = argparse.ArgumentParser(description = 'train.py')
parser.add_argument('--data-dir', nargs = '*', action = "store", default = "./flowers/", help = "folder path for data")
parser.add_argument('--save-dir', action = "store", required=True, h... | 37.423077 | 155 | 0.731757 |
ed25ac3871761ab8e7fb05fe5b59a6a001de70b4 | 154 | py | Python | Euler0001.py | rbarillec/project_euler | db812f9ae53090b34716452d0cb9ec14bf218290 | [
"MIT"
] | null | null | null | Euler0001.py | rbarillec/project_euler | db812f9ae53090b34716452d0cb9ec14bf218290 | [
"MIT"
] | null | null | null | Euler0001.py | rbarillec/project_euler | db812f9ae53090b34716452d0cb9ec14bf218290 | [
"MIT"
] | null | null | null |
Euler0001() | 15.4 | 32 | 0.448052 |
ed261100e8ba320319dd45fa75984055274a92f9 | 11,020 | py | Python | models/blip.py | lmathia2/BLIP | 8ca42256e83654858856d40886509be8fbca51a7 | [
"BSD-3-Clause"
] | null | null | null | models/blip.py | lmathia2/BLIP | 8ca42256e83654858856d40886509be8fbca51a7 | [
"BSD-3-Clause"
] | null | null | null | models/blip.py | lmathia2/BLIP | 8ca42256e83654858856d40886509be8fbca51a7 | [
"BSD-3-Clause"
] | null | null | null | '''
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
* By Junnan Li
'''
import warnings
warnings.filterwarnings("ignore")
from models.vit import V... | 45.916667 | 128 | 0.551996 |
ed26aa5f1dfa9b893282f08b252dba7679012685 | 28,524 | py | Python | venv/Lib/site-packages/pandas/tests/reshape/merge/test_multi.py | OliviaNabbosa89/Disaster_Responses | 1e66d77c303cec685dfc2ca94f4fca4cc9400570 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tests/reshape/merge/test_multi.py | OliviaNabbosa89/Disaster_Responses | 1e66d77c303cec685dfc2ca94f4fca4cc9400570 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tests/reshape/merge/test_multi.py | OliviaNabbosa89/Disaster_Responses | 1e66d77c303cec685dfc2ca94f4fca4cc9400570 | [
"MIT"
] | null | null | null | import numpy as np
from numpy.random import randn
import pytest
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series
import pandas._testing as tm
from pandas.core.reshape.concat import concat
from pandas.core.reshape.merge import merge
class TestMergeMulti:
def setu... | 33.876485 | 89 | 0.425186 |
ed26d3056f6a5641259d87e73533b42ec4832318 | 11,894 | py | Python | test/api/test_histories.py | mmiladi/galaxy | 7857b152cd10d9490ac2433ff2905ca1a47ee32c | [
"CC-BY-3.0"
] | 1 | 2021-04-26T08:46:21.000Z | 2021-04-26T08:46:21.000Z | test/api/test_histories.py | mmiladi/galaxy | 7857b152cd10d9490ac2433ff2905ca1a47ee32c | [
"CC-BY-3.0"
] | null | null | null | test/api/test_histories.py | mmiladi/galaxy | 7857b152cd10d9490ac2433ff2905ca1a47ee32c | [
"CC-BY-3.0"
] | 1 | 2018-12-09T13:50:28.000Z | 2018-12-09T13:50:28.000Z | # -*- coding: utf-8 -*-
from requests import (
get,
post,
put
)
from base import api # noqa: I100
from base.populators import ( # noqa: I100
DatasetCollectionPopulator,
DatasetPopulator,
wait_on
)
| 41.442509 | 105 | 0.673701 |
ed26edcb5cf96b914509d3c9f532db02422a6189 | 701 | py | Python | Algorithms_easy/0461. Hamming Distance.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_easy/0461. Hamming Distance.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_easy/0461. Hamming Distance.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
0461. Hamming Distance
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.
Given two integers x and y, calculate the Hamming distance.
Note:
0 x, y < 231.
Example:
Input: x = 1, y = 4
Output: 2
Explanation:
1 (0 0 0 1)
4 (0 1 0 0)
... | 20.028571 | 115 | 0.596291 |
ed275088d36ba770ab503299abfac84060ea0475 | 2,136 | py | Python | AllProjects/Projects/Spider/DownloadImage.py | CoderXAndZ/PycharmProjects | 94b3cc68d39614a4291bd63d4811dab61eb2e64a | [
"MIT"
] | 3 | 2018-08-30T03:53:25.000Z | 2020-07-02T09:27:39.000Z | Spider/DownloadImage.py | CoderXAndZ/Python_demo | b1b1067f3ee2de82b4b2678ac9d09a5a0bf7d698 | [
"MIT"
] | null | null | null | Spider/DownloadImage.py | CoderXAndZ/Python_demo | b1b1067f3ee2de82b4b2678ac9d09a5a0bf7d698 | [
"MIT"
] | 4 | 2020-07-01T02:29:33.000Z | 2021-06-07T09:32:30.000Z | #! /usr/local/bin/python3
# -*- coding: UTF-8 -*-
#
import urllib.request
import os
import random
# id
# url
#
#
if __name__ == '__main__':
download_img() | 24.837209 | 108 | 0.586142 |
ed2762c6cacc123594407c4391a955c0922acc79 | 7,324 | py | Python | utility/extractor_batch.py | BA-HanseML/NF_Prj_MIMII_Dataset | c9dd130a48c5ee28491a3f9369ace8f7217753d6 | [
"MIT"
] | 10 | 2020-08-25T21:12:32.000Z | 2021-11-04T22:14:37.000Z | utility/extractor_batch.py | BA-HanseML/NF_Prj_MIMII_Dataset | c9dd130a48c5ee28491a3f9369ace8f7217753d6 | [
"MIT"
] | 44 | 2020-05-04T11:37:55.000Z | 2021-09-26T04:12:23.000Z | utility/extractor_batch.py | ArneSch/NF_Prj_MIMII_Dataset | c9dd130a48c5ee28491a3f9369ace8f7217753d6 | [
"MIT"
] | 4 | 2020-11-24T02:14:13.000Z | 2021-07-01T08:52:59.000Z | print('load extractor_batch')
# Utility to run multiple feature extraction
# diagrams over many files with multiple threats
import pandas as pd
import os
import sys
import glob
from tqdm.auto import tqdm
from queue import Queue
from threading import Thread
from datetime import datetime
import time
im... | 38.34555 | 120 | 0.497679 |
ed27ebcd5adfdfd408f83681c96698af5592ab3f | 393 | py | Python | multitenancy/context_processors.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | multitenancy/context_processors.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | multitenancy/context_processors.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | from .models import Tenant
def tenant(request):
"""
Return context variables required by apps that use django-site-multitenancy.
If there is no 'tenant' attribute in the request, extract one from the request.
"""
if hasattr(request, 'tenant'):
tenant = request.tenant
else:
ten... | 24.5625 | 83 | 0.6743 |
ed28fda11893d2529a33ba5b4cee8f469db7aad9 | 185 | py | Python | hello/forms.py | odhiambocuttice/mypersonalapp | b2fb12046302104569aa5c4e4869aeb669e51b1b | [
"MIT"
] | null | null | null | hello/forms.py | odhiambocuttice/mypersonalapp | b2fb12046302104569aa5c4e4869aeb669e51b1b | [
"MIT"
] | 10 | 2019-12-04T23:35:48.000Z | 2022-02-10T09:04:53.000Z | hello/forms.py | odhiambocuttice/app-version3 | 6b5e526a03c905cf832aae805c2a570b373aea52 | [
"MIT"
] | null | null | null | from django import forms
from .models import Project
| 18.5 | 52 | 0.67027 |
ed2903bbc29759d94352b5e8a5d0370e20ce8b16 | 361 | py | Python | pset_classes/class_basics/solutions/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_classes/class_basics/solutions/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_classes/class_basics/solutions/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
Person class
"""
# Create a Person class with the following properties
# 1. name
# 2. age
# 3. social security number
p1 = Person("John", 36, "111-11-1111")
print(p1.name)
print(p1.age)
print(p1.social)
| 15.695652 | 53 | 0.645429 |
ed29375d22bb9febc1771fb6ca4eaac661a4c75a | 19,452 | py | Python | python/paddle/fluid/contrib/slim/tests/test_imperative_out_scale.py | huangxu96/Paddle | 372ac08a171d76c745deaab0feed2d587798f734 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/contrib/slim/tests/test_imperative_out_scale.py | huangxu96/Paddle | 372ac08a171d76c745deaab0feed2d587798f734 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/contrib/slim/tests/test_imperative_out_scale.py | huangxu96/Paddle | 372ac08a171d76c745deaab0feed2d587798f734 | [
"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... | 38.826347 | 127 | 0.585955 |
ed297c05f15fda89099111b92e19812bf53e5838 | 4,289 | py | Python | grr/server/hunts/results.py | nickamon/grr | ad1936c74728de00db90f6fafa47892b54cfc92d | [
"Apache-2.0"
] | null | null | null | grr/server/hunts/results.py | nickamon/grr | ad1936c74728de00db90f6fafa47892b54cfc92d | [
"Apache-2.0"
] | 1 | 2018-05-08T21:15:51.000Z | 2018-05-08T21:15:51.000Z | grr/server/hunts/results.py | nickamon/grr | ad1936c74728de00db90f6fafa47892b54cfc92d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Classes to store and manage hunt results.
"""
from grr.lib import rdfvalue
from grr.lib import registry
from grr.lib.rdfvalues import structs as rdf_structs
from grr_response_proto import jobs_pb2
from grr.server import access_control
from grr.server import aff4
from grr.server import data_sto... | 30.41844 | 80 | 0.669853 |
ed298e1020b52cd93721c03300f989d51ef1134b | 4,748 | py | Python | src/simple_sharepoint/site.py | NodeJSmith/py-simple-rest-sharepoint | 77ee5f76364e7b6096228945ed7e3bd637214a66 | [
"MIT"
] | null | null | null | src/simple_sharepoint/site.py | NodeJSmith/py-simple-rest-sharepoint | 77ee5f76364e7b6096228945ed7e3bd637214a66 | [
"MIT"
] | null | null | null | src/simple_sharepoint/site.py | NodeJSmith/py-simple-rest-sharepoint | 77ee5f76364e7b6096228945ed7e3bd637214a66 | [
"MIT"
] | null | null | null | """
Module for higher level SharePoint REST api actions - utilize methods in the api.py module
"""
# TODO Add large file upload with chunking
# https://github.com/JonathanHolvey/sharepy/issues/23
| 31.03268 | 116 | 0.619208 |
ed2abc9ecde219ec6fc0610ffdc2709ba8c49de3 | 6,317 | py | Python | pypeit/tests/test_metadata.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | pypeit/tests/test_metadata.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | pypeit/tests/test_metadata.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | import os
import glob
import shutil
import yaml
from IPython import embed
import pytest
import numpy as np
from pypeit.par.util import parse_pypeit_file
from pypeit.pypeitsetup import PypeItSetup
from pypeit.tests.tstutils import dev_suite_required, data_path
from pypeit.metadata import PypeItMetaData
from pypeit.s... | 38.054217 | 97 | 0.653158 |
ed2b4e055e79bf5051229abe9c3b6aceb972d7aa | 15,930 | py | Python | tortoise/query_utils.py | DDevine/tortoise-orm | 414737a78e98ffd247174590720f5c90aeac4dde | [
"Apache-2.0"
] | 1 | 2020-05-15T19:50:12.000Z | 2020-05-15T19:50:12.000Z | tortoise/query_utils.py | Tomes111/tortoise-orm | 8b55499a228e44f33fec9099f4d559c77c73beb7 | [
"Apache-2.0"
] | null | null | null | tortoise/query_utils.py | Tomes111/tortoise-orm | 8b55499a228e44f33fec9099f4d559c77c73beb7 | [
"Apache-2.0"
] | null | null | null | from copy import copy
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, cast
from pypika import Table
from pypika.terms import Criterion
from tortoise.exceptions import FieldError, OperationalError
from tortoise.fields.relational import BackwardFKRelation, ManyToManyFieldInstance, RelationalFi... | 37.748815 | 101 | 0.629881 |
ed2c2633a7cab56346726bab1085f5ed14b0a1bf | 1,372 | py | Python | L3_numpy_pandas_2D/B_NumPy_Axis.py | angelmtenor/IDAFC | 9d23746fd02e4eda2569d75b3c7a1383277e6e78 | [
"MIT"
] | null | null | null | L3_numpy_pandas_2D/B_NumPy_Axis.py | angelmtenor/IDAFC | 9d23746fd02e4eda2569d75b3c7a1383277e6e78 | [
"MIT"
] | null | null | null | L3_numpy_pandas_2D/B_NumPy_Axis.py | angelmtenor/IDAFC | 9d23746fd02e4eda2569d75b3c7a1383277e6e78 | [
"MIT"
] | null | null | null | import numpy as np
# Change False to True for this block of code to see what it does
# NumPy axis argument
if True:
a = np.array([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
])
print(a.sum())
print(a.sum(axis=0))
print(a.sum(axis=1))
# Subway ridership for 5 stations on 10 different... | 28.583333 | 85 | 0.652332 |
ed2ce29f604f771e38af6d30ffbe09233cdd48b6 | 9,956 | py | Python | Protein-ligand-binding/TopBio/Feature/LigandFeature.py | WeilabMSU/TopologyNet | 4f4d13cec7e50624b43990c863dd84b8bbf359d8 | [
"MIT"
] | 1 | 2021-12-09T02:38:53.000Z | 2021-12-09T02:38:53.000Z | Protein-ligand-binding/TopBio/Feature/LigandFeature.py | WeilabMSU/TopologyNet | 4f4d13cec7e50624b43990c863dd84b8bbf359d8 | [
"MIT"
] | null | null | null | Protein-ligand-binding/TopBio/Feature/LigandFeature.py | WeilabMSU/TopologyNet | 4f4d13cec7e50624b43990c863dd84b8bbf359d8 | [
"MIT"
] | 1 | 2021-12-09T02:38:54.000Z | 2021-12-09T02:38:54.000Z | import numpy as np
import pickle
import os
| 49.78 | 264 | 0.518682 |
ed2d4c9ed22365d84b24c00ca0cddff12ecae572 | 1,105 | py | Python | emailthreads/util.py | emersion/python-emailthreads | 99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd | [
"MIT"
] | 34 | 2018-06-14T09:30:29.000Z | 2022-03-13T20:56:06.000Z | emailthreads/util.py | emersion/python-emailreview | 99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd | [
"MIT"
] | 5 | 2019-12-01T20:20:51.000Z | 2022-01-26T08:42:37.000Z | emailthreads/util.py | emersion/python-emailreview | 99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd | [
"MIT"
] | 3 | 2019-06-21T20:31:42.000Z | 2021-12-18T00:09:07.000Z | import re
import sys
from email.message import EmailMessage
| 22.1 | 69 | 0.709502 |
ed2e075475e31924b346949bce0058c5690b9443 | 7,930 | py | Python | trainval.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | trainval.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | trainval.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | from haven import haven_chk as hc
from haven import haven_results as hr
from haven import haven_utils as hu
import torch
import torchvision
import tqdm
import pandas as pd
import pprint
import itertools
import os
import pylab as plt
import exp_configs
import time
import numpy as np
from src import models
from src impo... | 33.459916 | 82 | 0.577427 |
ed2e4b3cf6fdf1d5d74d3435c7259f6fa34ae5df | 297,511 | py | Python | languages/pt-br.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | 1 | 2017-03-15T23:29:41.000Z | 2017-03-15T23:29:41.000Z | languages/pt-br.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | languages/pt-br.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | # coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" uma expresso opcional como "field1=\'newvalue\'". No possvel atualizar ou excluir os resultados de uma juno',
'# of International Staff': '# De equipe internacional',
'# o... | 61.737082 | 995 | 0.74161 |
ed2e9fbfce1e8173a04660813facfdf161e513ee | 598 | py | Python | pyxq/app/__init__.py | goodchinas/pyxq | c7f6ea63084c18178049451f30f32f04080a511c | [
"MIT"
] | 4 | 2019-12-17T11:05:53.000Z | 2020-06-01T05:41:02.000Z | pyxq/app/__init__.py | goodchinas/pyxq | c7f6ea63084c18178049451f30f32f04080a511c | [
"MIT"
] | null | null | null | pyxq/app/__init__.py | goodchinas/pyxq | c7f6ea63084c18178049451f30f32f04080a511c | [
"MIT"
] | 2 | 2019-11-13T01:11:53.000Z | 2019-12-17T10:55:44.000Z | from .. import ba, cb, actor
from ..service import account
| 27.181818 | 87 | 0.610368 |
ed2eaa3880c0ded822c74f91d96fe10e19adfbe7 | 25 | py | Python | python-files/Analysis/plot_rber_curve.py | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | 1 | 2022-03-07T15:52:10.000Z | 2022-03-07T15:52:10.000Z | python-files/Analysis/plot_rber_curve.py | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | 6 | 2022-03-09T10:31:25.000Z | 2022-03-09T10:50:34.000Z | python-files/Analysis/plot_rber_curve.py | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | null | null | null | #%%
#Calculate_capacity
| 6.25 | 19 | 0.72 |
ed2f544f652b3b129baea0ccaadd7dd101ff1f6a | 49 | py | Python | 2_b_builtins_dynamic_recall.py | traff/python_completion_benchmark | df25caaabf46f8b6eca34d5618052bff7ea8b0bf | [
"Xnet",
"X11"
] | 1 | 2018-11-23T18:53:05.000Z | 2018-11-23T18:53:05.000Z | 2_b_builtins_dynamic_recall.py | traff/python_completion_benchmark | df25caaabf46f8b6eca34d5618052bff7ea8b0bf | [
"Xnet",
"X11"
] | null | null | null | 2_b_builtins_dynamic_recall.py | traff/python_completion_benchmark | df25caaabf46f8b6eca34d5618052bff7ea8b0bf | [
"Xnet",
"X11"
] | null | null | null | import builtins
builtins.foo = 'bar'
foo # foo | 9.8 | 20 | 0.693878 |
ed2f62da1eeae65673f61b0ca0f66640810c94b0 | 7,802 | py | Python | gva/data/validator/__init__.py | gva-jhabte/gva-data | 7a605ff01faa3fd38e91a324341d6166f17544a7 | [
"Apache-2.0"
] | null | null | null | gva/data/validator/__init__.py | gva-jhabte/gva-data | 7a605ff01faa3fd38e91a324341d6166f17544a7 | [
"Apache-2.0"
] | null | null | null | gva/data/validator/__init__.py | gva-jhabte/gva-data | 7a605ff01faa3fd38e91a324341d6166f17544a7 | [
"Apache-2.0"
] | null | null | null | """
Schema Validation
Tests a dictionary against a schema to test for conformity.
Schema definition is similar to - but not the same as - avro schemas
Supported Types:
- string - a character sequence
- format
- numeric - a number
- min:
- max
- date - a datetime.date or... | 32.781513 | 137 | 0.57575 |
ed3077484491f3ce68c431839bde2db924a8e7be | 2,350 | py | Python | fuzzers/ECP5/050-pio_routing/fuzzer.py | umarcor/prjtrellis | 9b3db7ba9a02e7d2f49c52ce062d5b22e320004c | [
"MIT"
] | 256 | 2018-03-05T00:28:46.000Z | 2022-03-04T22:33:29.000Z | fuzzers/ECP5/050-pio_routing/fuzzer.py | umarcor/prjtrellis | 9b3db7ba9a02e7d2f49c52ce062d5b22e320004c | [
"MIT"
] | 70 | 2018-03-12T21:55:02.000Z | 2020-06-22T12:06:08.000Z | fuzzers/ECP5/050-pio_routing/fuzzer.py | umarcor/prjtrellis | 9b3db7ba9a02e7d2f49c52ce062d5b22e320004c | [
"MIT"
] | 68 | 2018-03-12T21:05:01.000Z | 2021-03-14T21:08:33.000Z | from fuzzconfig import FuzzConfig
import interconnect
import nets
import pytrellis
import re
jobs = [
{
"pos": [(47, 0), (48, 0), (49, 0)],
"cfg": FuzzConfig(job="PIOROUTEL", family="ECP5", device="LFE5U-45F", ncl="pioroute.ncl",
tiles=["MIB_R47C0:PICL0", "MIB_R48C0:PICL1"... | 36.71875 | 109 | 0.50383 |
ed32adc4f5470b9099ab1976e987f8994269a9b8 | 6,841 | py | Python | convnet3d/backend/tensorflow_backend.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | 6 | 2020-03-12T10:28:41.000Z | 2021-11-18T16:17:20.000Z | convnet3d/backend/tensorflow_backend.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | null | null | null | convnet3d/backend/tensorflow_backend.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | 1 | 2019-08-01T02:50:05.000Z | 2019-08-01T02:50:05.000Z | import tensorflow as tf
def _is_tensor(x):
"""Returns `True` if `x` is a symbolic tensor-like object.
From http://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/image_ops_impl.py
Args:
x: A python object to check.
Returns:
`True` if `x` is a `tf.Tensor` or `tf.Va... | 35.630208 | 217 | 0.627686 |
ed333974ac7fc15e4814ac031f495886accd5008 | 1,169 | py | Python | extensions/everywhere.py | cobrab11/black1-bot | 47c1a80029d6183fc990960b422bb3155360702d | [
"Apache-2.0"
] | 3 | 2015-10-15T15:40:17.000Z | 2021-06-08T05:39:21.000Z | extensions/everywhere.py | cobrab11/black1-bot | 47c1a80029d6183fc990960b422bb3155360702d | [
"Apache-2.0"
] | 1 | 2019-04-06T11:54:56.000Z | 2019-04-07T00:57:49.000Z | extensions/everywhere.py | cobrab11/black1-bot | 47c1a80029d6183fc990960b422bb3155360702d | [
"Apache-2.0"
] | 3 | 2015-10-26T14:49:57.000Z | 2018-03-04T15:34:11.000Z | # BS mark.1-55
# /* coding: utf-8 */
# BlackSmith plugin
# everywhere_plugin.py
# Coded by: WitcherGeralt (WitcherGeralt@jabber.ru)
# http://witcher-team.ucoz.ru/
command_handler(handler_everywhere, 100, "everywhere")
| 27.186047 | 97 | 0.637297 |
ed34a763af3706d73ed657481a4202938e665e7b | 327 | py | Python | 0100.same_tree/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 5 | 2020-05-23T02:18:26.000Z | 2021-07-05T05:36:01.000Z | 0100.same_tree/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2020-06-10T07:17:24.000Z | 2020-07-20T02:21:24.000Z | 0100.same_tree/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2019-04-23T13:01:50.000Z | 2019-04-23T13:01:50.000Z | from utils import TreeNode
| 29.727273 | 107 | 0.620795 |
ed38d1c43b9d70e3ac1c1d8a3bb7c7068b2ec679 | 6,946 | py | Python | tests/test_azure.py | The-Academic-Observatory/mag-archiver | 76988020047b4ab9eb2d125f5141dfa7297a6fb3 | [
"Apache-2.0"
] | null | null | null | tests/test_azure.py | The-Academic-Observatory/mag-archiver | 76988020047b4ab9eb2d125f5141dfa7297a6fb3 | [
"Apache-2.0"
] | 5 | 2020-07-22T03:51:17.000Z | 2021-08-08T21:56:00.000Z | tests/test_azure.py | The-Academic-Observatory/mag-archiver | 76988020047b4ab9eb2d125f5141dfa7297a6fb3 | [
"Apache-2.0"
] | 1 | 2020-07-19T22:39:20.000Z | 2020-07-19T22:39:20.000Z | # Copyright 2020 Curtin University
#
# 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 writi... | 39.022472 | 119 | 0.662971 |
ed3a7989a6ca1353a9b8069ec10dfdff872950bd | 16,283 | py | Python | tensorflow/contrib/framework/python/framework/tensor_util_test.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/framework/python/framework/tensor_util_test.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/framework/python/framework/tensor_util_test.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 41.966495 | 81 | 0.63772 |
ed3a9aaa2f6bd7c47892c2149c2e5804bf96b4fe | 1,442 | py | Python | tpv/modals/sugerencias.py | vallemrv/tpvB3 | 9988a528b32692b01bd042cc6486188c4dc2109b | [
"Apache-2.0"
] | 3 | 2017-07-16T09:31:56.000Z | 2019-03-20T11:11:24.000Z | tpv/modals/sugerencias.py | ljimaz33/tpvB3 | 9988a528b32692b01bd042cc6486188c4dc2109b | [
"Apache-2.0"
] | null | null | null | tpv/modals/sugerencias.py | ljimaz33/tpvB3 | 9988a528b32692b01bd042cc6486188c4dc2109b | [
"Apache-2.0"
] | 1 | 2022-01-02T11:22:45.000Z | 2022-01-02T11:22:45.000Z | # @Author: Manuel Rodriguez <valle>
# @Date: 10-May-2017
# @Email: valle.mrv@gmail.com
# @Last modified by: valle
# @Last modified time: 23-Feb-2018
# @License: Apache license vesion 2.0
from kivy.uix.modalview import ModalView
from kivy.uix.button import Button
from kivy.properties import ObjectProperty, String... | 29.428571 | 72 | 0.645631 |
ed3b6f60e4e30cf75b95e63f68e2b18f1cb5a0e8 | 1,122 | py | Python | templates/integration/__init__.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 308 | 2016-12-07T16:49:27.000Z | 2022-03-15T10:06:45.000Z | templates/integration/__init__.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,928 | 2016-11-28T17:13:18.000Z | 2022-03-31T21:43:19.000Z | templates/integration/__init__.py | p7g/dd-trace-py | 141ac0ab6e9962e3b3bafc9de172076075289a19 | [
"Apache-2.0",
"BSD-3-Clause"
] | 311 | 2016-11-27T03:01:49.000Z | 2022-03-18T21:34:03.000Z | """
The foo integration instruments the bar and baz features of the
foo library.
Enabling
~~~~~~~~
The foo integration is enabled automatically when using
:ref:`ddtrace-run <ddtracerun>` or :ref:`patch_all() <patch_all>`.
Or use :ref:`patch() <patch>` to manually enable the integration::
from ddtrace import pa... | 20.777778 | 70 | 0.678253 |
ed3b7de286ac4f4bebceec94867062df2dc32542 | 8,194 | py | Python | libs/linux/wpa_cli.py | hpagseddy/ZPUI | b82819e523987639c2dfab417f9895d7cd7ce049 | [
"Apache-2.0",
"MIT"
] | null | null | null | libs/linux/wpa_cli.py | hpagseddy/ZPUI | b82819e523987639c2dfab417f9895d7cd7ce049 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-01-17T00:44:53.000Z | 2020-01-19T21:10:48.000Z | libs/linux/wpa_cli.py | hpagseddy/ZPUI | b82819e523987639c2dfab417f9895d7cd7ce049 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-01-14T22:44:27.000Z | 2020-01-14T22:44:27.000Z | from subprocess import check_output, CalledProcessError
from ast import literal_eval
from time import sleep
from helpers import setup_logger
logger = setup_logger(__name__, "warning")
current_interface = None
#wpa_cli related functions and objects
#wpa_cli command wrappers and their helpers
def connect_new_networ... | 35.167382 | 128 | 0.691726 |
ed3c39ee9d299277d428f6d6c8408e0b9a778f0c | 17,635 | py | Python | demos/ServerSideBrowser.py | eukreign/python-v8 | f20d7bef766a2ae3573cc536e7d03e07afe9b173 | [
"Apache-2.0"
] | 2 | 2018-02-12T22:34:09.000Z | 2019-01-03T05:18:00.000Z | demos/ServerSideBrowser.py | eukreign/python-v8 | f20d7bef766a2ae3573cc536e7d03e07afe9b173 | [
"Apache-2.0"
] | null | null | null | demos/ServerSideBrowser.py | eukreign/python-v8 | f20d7bef766a2ae3573cc536e7d03e07afe9b173 | [
"Apache-2.0"
] | 3 | 2019-02-13T08:00:06.000Z | 2020-05-17T22:40:20.000Z | #!/usr/bin/env python
from __future__ import with_statement
import sys, traceback, os, os.path
import xml.dom.minidom
import logging
if __name__ == "__main__":
with Browser() as browser:
if browser.parseCmdLine():
browser.runShell() | 34.176357 | 155 | 0.489424 |
ed3c6cc6ba561bf90153ae8e03fe8da305f91245 | 4,169 | py | Python | pypeira/io/fits.py | WielderOfMjoelnir/pypeira | 4ef554c577875e09f55673f8e6ea53ba129fb37f | [
"MIT"
] | null | null | null | pypeira/io/fits.py | WielderOfMjoelnir/pypeira | 4ef554c577875e09f55673f8e6ea53ba129fb37f | [
"MIT"
] | null | null | null | pypeira/io/fits.py | WielderOfMjoelnir/pypeira | 4ef554c577875e09f55673f8e6ea53ba129fb37f | [
"MIT"
] | null | null | null | from __future__ import division
import fitsio
"""
A FITS file is comprised of segments called Header/Data Units (HDUs), where the first
HDU is called the 'Primary HDU', or 'Primary Array'. The primary data array can contain
a 1-999 dimensional array of 1, 2 or 4 byte integers or 4 or 8 byte floating point numbers
usi... | 38.962617 | 104 | 0.710962 |
ed3d3135e9d1178c7b64b4da6cccbf9abc64c76d | 1,727 | py | Python | system/lib/update_musl.py | RyanCargan/emscripten | 6d3859f88e1d6394395760153c0a8cfa6a876ac7 | [
"MIT"
] | 6,541 | 2019-01-17T22:13:18.000Z | 2022-03-31T07:20:21.000Z | system/lib/update_musl.py | RyanCargan/emscripten | 6d3859f88e1d6394395760153c0a8cfa6a876ac7 | [
"MIT"
] | 7,584 | 2019-01-17T22:58:27.000Z | 2022-03-31T23:10:22.000Z | system/lib/update_musl.py | RyanCargan/emscripten | 6d3859f88e1d6394395760153c0a8cfa6a876ac7 | [
"MIT"
] | 1,275 | 2019-01-19T16:18:04.000Z | 2022-03-30T19:32:35.000Z | #!/usr/bin/env python3
# Copyright 2021 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
"""Simple script for updating musl from extern... | 28.311475 | 78 | 0.72264 |
ed3dd47b74e1445e656b23816bec9c93f6315a3e | 3,358 | py | Python | src/scout_apm/instruments/pymongo.py | xiamx/scout_apm_python | d03dab45f65cf7d1030e11fabf6da4cf6e72ee59 | [
"MIT"
] | null | null | null | src/scout_apm/instruments/pymongo.py | xiamx/scout_apm_python | d03dab45f65cf7d1030e11fabf6da4cf6e72ee59 | [
"MIT"
] | null | null | null | src/scout_apm/instruments/pymongo.py | xiamx/scout_apm_python | d03dab45f65cf7d1030e11fabf6da4cf6e72ee59 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import logging
# Used in the exec() call below.
from scout_apm.core.monkey import monkeypatch_method, unpatch_method # noqa: F401
from scout_apm.core.tracked_request import TrackedRequest # noqa: F401
logger = logging.getLogger(__na... | 28.700855 | 87 | 0.579512 |
ed3e5d031590d8e6dff347577131d013386c5855 | 3,235 | py | Python | measures/tests/factories.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | measures/tests/factories.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | measures/tests/factories.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | import random
from typing import Optional
import factory
from common.tests import factories
from measures.sheet_importers import MeasureSheetRow
| 37.616279 | 98 | 0.681607 |
ed3e7f550a07ae5965b40bbbda69660ec272d2cf | 6,077 | py | Python | autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 6 | 2021-03-10T16:23:10.000Z | 2022-01-14T04:57:46.000Z | autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | null | null | null | autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 1 | 2022-01-14T04:57:55.000Z | 2022-01-14T04:57:55.000Z | from abc import ABC, abstractmethod
import collections
import pandas as pd
from autoscalingsim.utils.error_check import ErrorChecker
from .correlators import *
| 57.87619 | 245 | 0.751687 |
ed3f22bc9cd6901491dd74a1964aa19636812550 | 581 | py | Python | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | 18 | 2021-04-20T17:03:20.000Z | 2022-03-12T05:56:24.000Z | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | null | null | null | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | 1 | 2021-07-08T17:44:15.000Z | 2021-07-08T17:44:15.000Z | import sys
import logging
from seglossbias.utils import mkdir, setup_logging
from seglossbias.engine import default_argument_parser, load_config, DefaultTester
logger = logging.getLogger(__name__)
if __name__ == "__main__":
main()
| 20.75 | 82 | 0.717728 |
ed3f423aba07bd3e0294dc5b518080a8998ed87f | 1,047 | py | Python | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
| 29.914286 | 60 | 0.621777 |
ed402a46ff5fc00fad7e1376b1ab297b4013340b | 7,808 | py | Python | jp_doodle/quantity_forest.py | lingruiluo/jp_doodle | b3935208821898f22ab504c2b26dd4d37f08f0e4 | [
"BSD-2-Clause"
] | 43 | 2018-10-10T08:38:07.000Z | 2022-03-19T22:44:42.000Z | jp_doodle/quantity_forest.py | firmfrol19/jp_doodle | cb34938edaedbe15590ebe8024060dd97bb69fa9 | [
"BSD-2-Clause"
] | 8 | 2018-09-17T19:49:45.000Z | 2020-08-24T15:51:16.000Z | jp_doodle/quantity_forest.py | firmfrol19/jp_doodle | cb34938edaedbe15590ebe8024060dd97bb69fa9 | [
"BSD-2-Clause"
] | 5 | 2019-06-13T15:53:55.000Z | 2020-11-13T01:22:56.000Z | from jp_doodle import doodle_files
qf_js = doodle_files.vendor_path("js/quantity_forest.js")
from jp_doodle import dual_canvas
import jp_proxy_widget
import os
from subprocess import check_output
import pprint
if bytes != str:
unicode = str
RIGHT = {"x": 1, "y":0}
UP = {"x": 0, "y":1}
| 34.702222 | 115 | 0.523309 |
ed40391b29c9dd84fbde6dce8cec5a7ba2c96f0b | 3,139 | py | Python | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0035-Search-Insert-Position.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-01-01
============================... | 28.798165 | 107 | 0.572794 |
ed4086f481b4822d573ede5f8a9108ee4da236b6 | 290 | py | Python | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | import requests
url = 'https://64.103.26.61/api/contextaware/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone'
headers = {'Authorization': 'Basic bGVhcm5pbmc6bGVhcm5pbmc=='}
response = requests.get(url, headers=headers, verify=False)
responseString = response.text
print(responseString)
| 41.428571 | 97 | 0.8 |
ed4193bd5735a5283b0caa027d333560a4c2793c | 1,078 | py | Python | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 605 | 2019-10-18T01:15:54.000Z | 2022-03-31T14:31:04.000Z | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 3,180 | 2019-10-18T01:21:21.000Z | 2022-03-31T23:25:41.000Z | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 275 | 2019-10-18T05:27:22.000Z | 2022-03-30T09:04:21.000Z | import lldb
from lldbsuite.test.decorators import *
import lldbsuite.test.lldbtest as lldbtest
import lldbsuite.test.lldbutil as lldbutil
import os
import unittest2
| 35.933333 | 79 | 0.705009 |
ed4253185dfabd501835c1030a3d60a0f1a59215 | 296 | py | Python | kervi/kervi/plugin/routing/kervi_io/__init__.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | kervi/kervi/plugin/routing/kervi_io/__init__.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | kervi/kervi/plugin/routing/kervi_io/__init__.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | #Copyright 2017 Tim Wentlau.
#Distributed under the MIT License. See LICENSE in root of project. | 32.888889 | 75 | 0.787162 |
ed42d7a8a9a02745abd1180b0c82d5235e6a3711 | 903 | py | Python | bc_gym_planning_env/envs/base/action.py | ghostFaceKillah/bc-gym-planning-env | 3cc0eb03adb752d304c3f007675cfff86691d007 | [
"MIT"
] | 2 | 2019-04-28T02:26:23.000Z | 2021-12-06T16:04:36.000Z | bc_gym_planning_env/envs/base/action.py | ghostFaceKillah/bc-gym-planning-env | 3cc0eb03adb752d304c3f007675cfff86691d007 | [
"MIT"
] | 7 | 2019-03-12T14:07:40.000Z | 2019-05-02T04:46:30.000Z | bc_gym_planning_env/envs/base/action.py | ghostFaceKillah/bc-gym-planning-env | 3cc0eb03adb752d304c3f007675cfff86691d007 | [
"MIT"
] | 7 | 2019-01-08T08:09:09.000Z | 2022-02-07T09:57:02.000Z | """ Code for wrapping the motion primitive action in an object. """
from __future__ import division
from __future__ import absolute_import
import attr
import numpy as np
from bc_gym_planning_env.utilities.serialize import Serializable
| 28.21875 | 100 | 0.713178 |
ed42fcb801fa38e9585e0b02fe9fd71eff57af66 | 1,863 | py | Python | histogram.py | ccfelius/queueing | c38bd2fe230e52d6166a94449cec28f82e245ec2 | [
"MIT"
] | 1 | 2020-12-10T17:36:40.000Z | 2020-12-10T17:36:40.000Z | histogram.py | ccfelius/queueing | c38bd2fe230e52d6166a94449cec28f82e245ec2 | [
"MIT"
] | null | null | null | histogram.py | ccfelius/queueing | c38bd2fe230e52d6166a94449cec28f82e245ec2 | [
"MIT"
] | 1 | 2021-01-05T13:08:03.000Z | 2021-01-05T13:08:03.000Z | import matplotlib.pyplot as plt
import pandas as pd
import math
import numpy as np
from scipy import stats
import seaborn as sns
data = pd.read_csv("data/500-4.txt", sep="\t")
# example1 = data[data["SIM_TIME"] == 500]
simulations = 500
simtimes = [5, 50, 150, 500, 1000]
# for i in [1, 2, 4]:
# data = pd.read_c... | 30.540984 | 83 | 0.662909 |
ed4391eec6c0ca45d66a840d1a081ef7d248ea7e | 558 | py | Python | python/1931.py | zheedong/BaekJoon | 7f9e00085276a337d18ee3bb90c98126f7af4d3a | [
"MIT"
] | null | null | null | python/1931.py | zheedong/BaekJoon | 7f9e00085276a337d18ee3bb90c98126f7af4d3a | [
"MIT"
] | null | null | null | python/1931.py | zheedong/BaekJoon | 7f9e00085276a337d18ee3bb90c98126f7af4d3a | [
"MIT"
] | null | null | null | n = int(input())
conf_set = []
for _ in range(n):
conf_set.append(tuple(map(int, input().split())))
conf_set.sort(key=lambda x : (x[1], x[0]))
#
# ,
solution_list = [conf_set[0]]
# Greedy Algorithm
for conf in conf_set[1:]:
last_conf = solution_list[-1]
_, last_end_time = last_conf
n... | 23.25 | 59 | 0.664875 |
ed4408c93538d9f83abe75060897c6705abd216b | 2,219 | py | Python | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | 2 | 2017-06-21T15:29:09.000Z | 2022-01-26T21:12:25.000Z | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | null | null | null | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | 1 | 2018-10-21T07:33:36.000Z | 2018-10-21T07:33:36.000Z | import web
from social_core.actions import do_auth, do_complete, do_disconnect
from .utils import psa, load_strategy, load_strategy
urls = (
r'/login/(?P<backend>[^/]+)/?', 'auth',
r'/complete/(?P<backend>[^/]+)/?', 'complete',
r'/disconnect/(?P<backend>[^/]+)/?', 'disconnect',
r'/disconnect/(?P<bac... | 28.818182 | 78 | 0.598918 |
ed4409f82d978378f6be973493d164c3f3a747dd | 2,133 | py | Python | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | import os
import logging
import yaml
from schema import Use, Schema, SchemaError, Optional
default_config = {
'logging': 30,
'migrate_from_0_3_2': True
}
schema = Schema({
'stellar_url': Use(str),
'url': Use(str),
'project_name': Use(str),
'tracked_databases': [Use(str)],
Optional('loggi... | 23.43956 | 70 | 0.554149 |
ed446ef71ae2d9e250f77adc4d3e36a498ecb373 | 3,239 | py | Python | egs2/mr_openslr64/asr1/local/data_prep.py | texpomru13/espnet | 7ef005e832e2fb033f356c16f54e0f08762fb4b0 | [
"Apache-2.0"
] | 1 | 2022-03-25T14:41:05.000Z | 2022-03-25T14:41:05.000Z | egs2/mr_openslr64/asr1/local/data_prep.py | texpomru13/espnet | 7ef005e832e2fb033f356c16f54e0f08762fb4b0 | [
"Apache-2.0"
] | 2 | 2019-04-23T04:43:33.000Z | 2019-05-13T13:06:52.000Z | egs2/mr_openslr64/asr1/local/data_prep.py | texpomru13/espnet | 7ef005e832e2fb033f356c16f54e0f08762fb4b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2021 Carnegie Mellon University (Peter Wu)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
import argparse
import os
import random
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-d", help="downloads directory", type=str, def... | 32.39 | 88 | 0.538747 |
ed44cdd790149a7a7aba7ae668b2598d57504c5a | 9,404 | py | Python | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module will hold a class that will be referenced when processing features.
I'd like to move things from "config" into here ...
- @JimHokanson
"""
from __future__ import division
from .. import utils
#Can't do this, would be circular
#from .worm_features import WormFeatures
... | 34.072464 | 116 | 0.606231 |
ed44fdb0f01181ea268ba486b1d64620229b6b81 | 634 | py | Python | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | #from .sync_external_routes import SyncExternalRoutes
#from .sync_network_slivers import SyncNetworkSlivers
#from .sync_networks import SyncNetworks
#from .sync_network_deployments import SyncNetworkDeployments
#from .sync_site_privileges import SyncSitePrivilege
#from .sync_slice_memberships import SyncSliceMembership... | 39.625 | 61 | 0.865931 |
ed45225f06a1a8cadf577895bd9772f8a5fae7c7 | 1,240 | py | Python | src/napari_geojson/_tests/test_writer.py | NHPatterson/napari-geojson | 8e7925dc7600608673d489e24e8760c4669eaa0b | [
"BSD-3-Clause"
] | null | null | null | src/napari_geojson/_tests/test_writer.py | NHPatterson/napari-geojson | 8e7925dc7600608673d489e24e8760c4669eaa0b | [
"BSD-3-Clause"
] | 6 | 2021-12-31T06:04:05.000Z | 2022-02-27T15:19:29.000Z | src/napari_geojson/_tests/test_writer.py | NHPatterson/napari-geojson | 8e7925dc7600608673d489e24e8760c4669eaa0b | [
"BSD-3-Clause"
] | 1 | 2022-02-22T20:35:07.000Z | 2022-02-22T20:35:07.000Z | import geojson
import pytest
from napari_geojson import write_shapes
ellipse = [[[0, 0], [0, 5], [5, 5], [5, 0]], "ellipse", "Polygon"]
line = [[[0, 0], [5, 5]], "line", "LineString"]
polygon = [[[0, 0], [5, 5], [0, 10]], "polygon", "Polygon"]
polyline = [[[0, 0], [5, 5], [0, 10]], "path", "LineString"]
rectangle = [... | 33.513514 | 75 | 0.647581 |
ed487e9bb61e7b47c76c3fe0f4b895d4d0e7a7e7 | 12,688 | py | Python | pgmpy/models/ClusterGraph.py | echoyi/pgmpy | c37dda4401f23ec73fc5d17d957867cd62e588d3 | [
"MIT"
] | null | null | null | pgmpy/models/ClusterGraph.py | echoyi/pgmpy | c37dda4401f23ec73fc5d17d957867cd62e588d3 | [
"MIT"
] | null | null | null | pgmpy/models/ClusterGraph.py | echoyi/pgmpy | c37dda4401f23ec73fc5d17d957867cd62e588d3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from collections import defaultdict
import numpy as np
from pgmpy.base import UndirectedGraph
from pgmpy.factors import factor_product
| 34.953168 | 119 | 0.534994 |
ed48aebeb275b2b66a2ca1e46510e44f4c833499 | 1,474 | py | Python | plugins/commands_window/plugin.py | stonewell/eim | 50fc4bb6e265ed8a5eb84577fd203e83934d55a7 | [
"MIT"
] | null | null | null | plugins/commands_window/plugin.py | stonewell/eim | 50fc4bb6e265ed8a5eb84577fd203e83934d55a7 | [
"MIT"
] | null | null | null | plugins/commands_window/plugin.py | stonewell/eim | 50fc4bb6e265ed8a5eb84577fd203e83934d55a7 | [
"MIT"
] | null | null | null | from PySide6.QtWidgets import QListWidgetItem
from yapsy.IPlugin import IPlugin
| 25.859649 | 80 | 0.683853 |
ed493a7b9c217715b159a3e6f8cf67b68a3aa7f3 | 478 | py | Python | custom_components/helpers.py | zroger49/broadlink_custom_component | c7b0f9648f1dbaad64e573561e852b689be5a755 | [
"MIT"
] | null | null | null | custom_components/helpers.py | zroger49/broadlink_custom_component | c7b0f9648f1dbaad64e573561e852b689be5a755 | [
"MIT"
] | 2 | 2022-01-30T15:29:17.000Z | 2022-03-13T10:54:58.000Z | custom_components/helpers.py | racelandshop/broadlink_custom_component | c7b0f9648f1dbaad64e573561e852b689be5a755 | [
"MIT"
] | 1 | 2022-01-16T16:05:24.000Z | 2022-01-16T16:05:24.000Z | """Helpers for the Broadlink remote."""
from base64 import b64decode
from homeassistant.helpers import config_validation as cv
def decode_packet(value):
"""Decode a data packet given for a Broadlink remote."""
value = cv.string(value)
extra = len(value) % 4
if extra > 0:
value = value + ("=" ... | 26.555556 | 60 | 0.65272 |
ed49ab3c5d4f24945d71fc6987cac08699af6050 | 692 | py | Python | problems/139.Word_Break/AC_dp_n2.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/139.Word_Break/AC_dp_n2.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/139.Word_Break/AC_dp_n2.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: illuz <iilluzen[at]gmail.com>
# File: AC_dp_n2.py
# Create Date: 2015-04-21 10:21:18
# Usage: AC_dp_n2.py
# Descripton:
# debug
s = Solution()
print s.wordBreak('a', ['a'])
| 23.862069 | 58 | 0.460983 |
ed49cff59f1ab26e4ca17666763624af983410cc | 8,641 | py | Python | examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py | motionfigures/bullet3 | 4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22 | [
"Zlib"
] | 51 | 2018-11-11T12:47:38.000Z | 2022-03-06T08:39:43.000Z | examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py | motionfigures/bullet3 | 4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22 | [
"Zlib"
] | 2 | 2019-11-15T03:21:45.000Z | 2020-09-10T11:53:58.000Z | examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py | motionfigures/bullet3 | 4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22 | [
"Zlib"
] | 14 | 2018-12-12T09:12:14.000Z | 2021-10-17T14:30:25.000Z | import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0,parentdir)
import math
import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
import time
import pybullet... | 32.731061 | 270 | 0.661035 |
ed4a2840446404d2f282a8452d7b98f961fd5554 | 6,392 | py | Python | hi-ml-histopathology/src/histopathology/preprocessing/tiling.py | kumar-pratik/hi-ml | a108cf4ea244a76127adedc0ca60f0a5afdfb3e8 | [
"MIT"
] | 402 | 2020-09-22T16:38:16.000Z | 2022-03-30T09:56:03.000Z | hi-ml-histopathology/src/histopathology/preprocessing/tiling.py | kumar-pratik/hi-ml | a108cf4ea244a76127adedc0ca60f0a5afdfb3e8 | [
"MIT"
] | 259 | 2020-09-23T09:32:33.000Z | 2022-03-30T18:15:01.000Z | hi-ml-histopathology/src/histopathology/preprocessing/tiling.py | kumar-pratik/hi-ml | a108cf4ea244a76127adedc0ca60f0a5afdfb3e8 | [
"MIT"
] | 112 | 2020-09-23T00:12:58.000Z | 2022-03-31T07:39:55.000Z | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | 49.550388 | 110 | 0.661608 |
ed4a5900145229cd2e22ae9792f8a8881bfd83d3 | 9,697 | py | Python | miniapp/miniapp/hartreefock/hf.py | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | miniapp/miniapp/hartreefock/hf.py | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | 1 | 2018-12-28T13:30:16.000Z | 2018-12-29T10:30:33.000Z | miniapp/miniapp/hartreefock/hf.py | savcardamone/tyche | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | from math import pi
from numpy import array, ndarray, divide, sqrt, argsort, sort, diag, trace
from numpy.linalg import eig, norm
if __name__ == "__main__":
hf = HartreeFock(4)
hf.run(2000) | 39.579592 | 131 | 0.607301 |
ed4a99de0c0a371040dd37f7fc6fad45e488b616 | 132 | py | Python | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 12,023 | 2019-03-13T08:53:27.000Z | 2022-03-31T21:31:15.000Z | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 100 | 2019-03-14T04:09:12.000Z | 2022-03-22T14:24:11.000Z | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 3,693 | 2019-03-13T08:21:22.000Z | 2022-03-31T16:07:08.000Z | # -*- coding:utf-8 -*-
from uiObject import uiObject
# main
if __name__ == '__main__':
ui = uiObject()
ui.ui_process() | 13.2 | 29 | 0.621212 |
ed4ce61eb4af04f3704ae96a5870d43583535a63 | 524 | py | Python | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | from django.db import models
from cloudinary.models import CloudinaryField
# Create your models here. | 29.111111 | 94 | 0.71374 |
ed4d3cea76d6d1815b54c52a975d47ddfb5f8c99 | 7,496 | py | Python | server/djangoapp/restapis.py | christiansencq/ibm_capstone | d445fd40c0267be0948a5d85e9d43828b908641c | [
"Apache-2.0"
] | null | null | null | server/djangoapp/restapis.py | christiansencq/ibm_capstone | d445fd40c0267be0948a5d85e9d43828b908641c | [
"Apache-2.0"
] | null | null | null | server/djangoapp/restapis.py | christiansencq/ibm_capstone | d445fd40c0267be0948a5d85e9d43828b908641c | [
"Apache-2.0"
] | null | null | null | import requests
import json
# import related models here
from .models import CarDealer, DealerReview
from requests.auth import HTTPBasicAuth
import logging
logger = logging.getLogger(__name__)
# Create a `get_request` to make HTTP GET requests
# e.g., response = requests.get(url, params=params, headers={'Content-Type... | 46.271605 | 140 | 0.603522 |
ed4d8f444cbb7eba10514b86dbcd28fb80cd5824 | 2,035 | py | Python | examples/python/upload.py | oslokommune/okdata-data-uploader | fc006ae90440b267613260bba90235799bf0cf6e | [
"MIT"
] | null | null | null | examples/python/upload.py | oslokommune/okdata-data-uploader | fc006ae90440b267613260bba90235799bf0cf6e | [
"MIT"
] | null | null | null | examples/python/upload.py | oslokommune/okdata-data-uploader | fc006ae90440b267613260bba90235799bf0cf6e | [
"MIT"
] | null | null | null | import logging
from configparser import ConfigParser
from sdk.data_uploader import DataUploader
logging.basicConfig(level=logging.INFO)
log = logging.getLogger()
config = ConfigParser()
config.read("config.ini")
#####
# Datasets to be added to metadata API
datasetData = {
"title": "Test",
"description": "Tes... | 30.373134 | 86 | 0.678624 |
ed4da4c3e62ea1a20080eade8fbb9743d55cdd88 | 3,558 | py | Python | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 254 | 2017-09-20T15:02:20.000Z | 2022-03-28T11:33:28.000Z | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 39 | 2017-09-23T14:28:36.000Z | 2022-01-06T08:41:57.000Z | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 38 | 2017-10-19T09:06:53.000Z | 2022-03-15T05:08:22.000Z | from mahjong.hand_calculating.hand import HandCalculator
from mahjong.meld import Meld
from mahjong.hand_calculating.hand_config import HandConfig, OptionalRules
from mahjong.shanten import Shanten
from mahjong.tile import TilesConverter
calculator = HandCalculator()
# useful helper
###############################... | 35.227723 | 133 | 0.537943 |
ed4e6dc26f15763248de005c84025114cd89fa6c | 436 | py | Python | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | from ..base.mounter import MounterMixin, execute_mount
| 31.142857 | 84 | 0.694954 |
ed4edc151ca26cac5de8e4d708a84551964ac057 | 14,366 | py | Python | sdk/python/pulumi_oci/database/get_external_non_container_database.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/database/get_external_non_container_database.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/database/get_external_non_container_database.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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, overload
from .. import... | 45.034483 | 457 | 0.69748 |
ed4f8a612b9b05faf17087ad729a1b5925503103 | 1,358 | py | Python | setup.py | xmedius/xmedius-mailrelayserver | 44bb55c4b543e96bb23a45499d281c1bbab18abf | [
"MIT"
] | null | null | null | setup.py | xmedius/xmedius-mailrelayserver | 44bb55c4b543e96bb23a45499d281c1bbab18abf | [
"MIT"
] | null | null | null | setup.py | xmedius/xmedius-mailrelayserver | 44bb55c4b543e96bb23a45499d281c1bbab18abf | [
"MIT"
] | null | null | null | from setuptools import setup
from setuptools.command.install import install
setup(
name='xmediusmailrelayserver',
version='1.0.0',
description='The Python module to be used to relay mail to different servers depending on patterns',
long_description='See https://github.com/xmedius/xmedius-mailrelayserve... | 30.863636 | 104 | 0.667158 |
ed502bad0b09f0685ca1ff615fe9d8b7f8ad7287 | 1,554 | py | Python | 143.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | 143.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | 143.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | # 143.
# LL0L1Ln-1Ln
# L0LnL1Ln-1L2Ln-2
#
# 1:
# 1->2->3->4, 1->4->2->3.
# 2:
# 1->2->3->4->5, 1->5->2->4->3.
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
# Definition for singly-linked list.
... | 24.28125 | 62 | 0.462677 |
ed50775b4eac2d767b8b5f1e618533d64da3321f | 1,882 | py | Python | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 21 | 2018-05-12T20:18:02.000Z | 2022-02-18T17:33:50.000Z | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 1 | 2018-06-23T09:13:39.000Z | 2018-06-27T01:22:27.000Z | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 2 | 2018-05-19T21:36:00.000Z | 2020-10-02T03:23:13.000Z | #!/usr/bin/env python
from CraftProtocol.NBT.NBTBase import NBTBase
from CraftProtocol.NBT.NBTProvider import NBTProvider
from CraftProtocol.StreamIO import StreamIO
| 25.093333 | 88 | 0.643996 |
ed5085f9be9c98ff85fd3851495ed53a851d06cd | 25,960 | py | Python | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 37 | 2021-12-12T17:36:24.000Z | 2022-03-12T15:46:56.000Z | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 1 | 2021-12-19T12:39:10.000Z | 2021-12-19T12:39:10.000Z | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 3 | 2021-12-17T17:29:35.000Z | 2022-03-12T15:26:49.000Z | # This program was generated by "Generative Art Synthesizer"
# Generation date: 2021-11-28 09:21:40 UTC
# GAS change date: 2021-11-28 09:20:21 UTC
# GAS md5 hash: ad55481e87ca5a7e9a8e92cd336d1cad
# Python version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# For more informat... | 64.9 | 346 | 0.689908 |
ed510f09d28e1fdb65727ee044b934fd67984f9c | 2,555 | py | Python | onmt/bin/build_vocab.py | comydream/OpenNMT-py | 2f3c810069ca03b752d9886782648e576b39a06d | [
"MIT"
] | 1 | 2021-10-01T15:03:35.000Z | 2021-10-01T15:03:35.000Z | onmt/bin/build_vocab.py | urialon/OpenNMT-py | bdca05a3fac8f864b21c86a8ad03c09895212e70 | [
"MIT"
] | null | null | null | onmt/bin/build_vocab.py | urialon/OpenNMT-py | bdca05a3fac8f864b21c86a8ad03c09895212e70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Get vocabulary coutings from transformed corpora samples."""
from onmt.utils.logging import init_logger
from onmt.utils.misc import set_random_seed, check_path
from onmt.utils.parse import ArgumentParser
from onmt.opts import dynamic_prepare_opts
from onmt.inputters.corpus import build_vocab
fr... | 33.618421 | 77 | 0.706849 |
ed51b4414d9639f63dd9eb5d177b6130aa8d5108 | 2,756 | py | Python | schools3/ml/experiments/feat_pruning_experiment.py | dssg/mlpolicylab_fall20_schools3_public | f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4 | [
"MIT"
] | null | null | null | schools3/ml/experiments/feat_pruning_experiment.py | dssg/mlpolicylab_fall20_schools3_public | f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4 | [
"MIT"
] | null | null | null | schools3/ml/experiments/feat_pruning_experiment.py | dssg/mlpolicylab_fall20_schools3_public | f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from schools3.ml.experiments.models_experiment import ModelsExperiment
from schools3.data.base.cohort import Cohort
from schools3.config import main_config
from schools3.config import global_config
from schools3.data.datasets.dataset import Dataset
from schools3.ml.experiments.fea... | 43.746032 | 123 | 0.717707 |