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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
987d237bdddb2b7462cf1bdbb5b65fbc8aca3063 | 2,660 | py | Python | fuelweb_ui_test/tests/preconditions.py | Miroslav-Anashkin/fuel-main | 533d1722016da9774fb406f86d35942e5870ed73 | [
"Apache-2.0"
] | null | null | null | fuelweb_ui_test/tests/preconditions.py | Miroslav-Anashkin/fuel-main | 533d1722016da9774fb406f86d35942e5870ed73 | [
"Apache-2.0"
] | null | null | null | fuelweb_ui_test/tests/preconditions.py | Miroslav-Anashkin/fuel-main | 533d1722016da9774fb406f86d35942e5870ed73 | [
"Apache-2.0"
] | 1 | 2021-10-31T05:34:01.000Z | 2021-10-31T05:34:01.000Z | import time
from pageobjects.environments import Environments, Wizard, DeployChangesPopup
from pageobjects.header import TaskResultAlert
from pageobjects.nodes import Nodes, RolesPanel
from settings import OPENSTACK_CENTOS, OPENSTACK_RELEASE_CENTOS
from tests.base import BaseTestCase
| 32.439024 | 77 | 0.58609 |
987dfbf265d5a98d22ad6b1285c6bfb0af90398e | 3,080 | py | Python | web_client_external_partner_feedback.py | UKPLab/emnlp2019-NeuralWeb | 9f94eec6bff92396c0401b6981bcb46f8d5e1f80 | [
"Apache-2.0"
] | 3 | 2019-07-10T08:12:46.000Z | 2020-02-05T08:36:45.000Z | web_client_external_partner_feedback.py | UKPLab/emnlp2019-NeuralWeb | 9f94eec6bff92396c0401b6981bcb46f8d5e1f80 | [
"Apache-2.0"
] | 6 | 2020-01-28T22:49:43.000Z | 2022-02-10T00:11:52.000Z | web_client_external_partner_feedback.py | UKPLab/emnlp2019-NeuralWeb | 9f94eec6bff92396c0401b6981bcb46f8d5e1f80 | [
"Apache-2.0"
] | 1 | 2021-02-16T01:57:07.000Z | 2021-02-16T01:57:07.000Z | import base64
import datetime
import http.client
import json
import sys
from pyblake2 import blake2b
from flask import Flask, request
from flask import render_template
from util.config import host_config
app = Flask(__name__)
AUTH_SIZE = 16
API_KEY = 'aaeaa04350f3485eb3074dd3a2c4429a' # use the provided one
SECRE... | 29.333333 | 152 | 0.669156 |
987ebf3bb40f294fbfe683c9dee6246ece40b947 | 937 | py | Python | globus_contents_manager/scripts/spawn_tokens.py | NickolausDS/globus-contents-manager | 40ad5e8ef97686feff4ae36ff0f71b0c600c3e83 | [
"Apache-2.0"
] | null | null | null | globus_contents_manager/scripts/spawn_tokens.py | NickolausDS/globus-contents-manager | 40ad5e8ef97686feff4ae36ff0f71b0c600c3e83 | [
"Apache-2.0"
] | null | null | null | globus_contents_manager/scripts/spawn_tokens.py | NickolausDS/globus-contents-manager | 40ad5e8ef97686feff4ae36ff0f71b0c600c3e83 | [
"Apache-2.0"
] | null | null | null | import os
import json
from fair_research_login import NativeClient
CLIENT_ID = 'e54de045-d346-42ef-9fbc-5d466f4a00c6'
APP_NAME = 'My App'
SCOPES = 'openid email profile urn:globus:auth:scope:transfer.api.globus.org:all urn:globus:auth:scope:search.api.globus.org:all'
CONFIG_FILE = 'tokens-data.json'
tokens = None
# ... | 29.28125 | 129 | 0.709712 |
9881d8d0fdd5338a351035a1a6b03ec773499908 | 1,996 | py | Python | new_listings_scraper.py | hokkiefrank/gateio-crypto-trading-bot-binance-announcements-new-coins | 86d7ed0dd612fe85f2cfc314a966d32912ae73ec | [
"MIT"
] | null | null | null | new_listings_scraper.py | hokkiefrank/gateio-crypto-trading-bot-binance-announcements-new-coins | 86d7ed0dd612fe85f2cfc314a966d32912ae73ec | [
"MIT"
] | null | null | null | new_listings_scraper.py | hokkiefrank/gateio-crypto-trading-bot-binance-announcements-new-coins | 86d7ed0dd612fe85f2cfc314a966d32912ae73ec | [
"MIT"
] | null | null | null | import requests
import os.path, json
import time
from store_order import *
from load_config import *
def get_last_coin():
"""
Scrapes new listings page for and returns new Symbol when appropriate
"""
latest_announcement = requests.get("https://www.binance.com/bapi/composite/v1/public/cms/article/cata... | 32.721311 | 184 | 0.662826 |
98821ed78144f8e01e3dd237b4ed382e65a64488 | 797 | py | Python | setup.py | poliquin/pyfixwidth | a41f25b788f5bd78465f51b42258922709dce9bc | [
"MIT"
] | 6 | 2020-02-13T22:20:15.000Z | 2021-10-12T02:30:51.000Z | setup.py | poliquin/pyfixwidth | a41f25b788f5bd78465f51b42258922709dce9bc | [
"MIT"
] | null | null | null | setup.py | poliquin/pyfixwidth | a41f25b788f5bd78465f51b42258922709dce9bc | [
"MIT"
] | 1 | 2021-06-16T21:21:38.000Z | 2021-06-16T21:21:38.000Z | # -*- coding: utf8 -*-
from distutils.core import setup
setup(
name='pyfixwidth',
packages=['fixwidth'],
version='0.1.1',
description="Read fixed width data files",
author='Chris Poliquin',
author_email='chrispoliquin@gmail.com',
url='https://github.com/poliquin/pyfixwidth',
keywords=[... | 28.464286 | 75 | 0.624843 |
9882eef9c8c7e6195e084b2763326602869d2ca1 | 1,274 | py | Python | examples/oucru/oucru-full/test_invert_dicts.py | bahp/datablend | f0b69a012af6ea7cedc9210d46b3047d8e0bf504 | [
"FTL",
"RSA-MD",
"CECILL-B"
] | null | null | null | examples/oucru/oucru-full/test_invert_dicts.py | bahp/datablend | f0b69a012af6ea7cedc9210d46b3047d8e0bf504 | [
"FTL",
"RSA-MD",
"CECILL-B"
] | 1 | 2021-05-26T13:09:08.000Z | 2021-05-26T13:09:08.000Z | examples/oucru/oucru-full/test_invert_dicts.py | bahp/datablend | f0b69a012af6ea7cedc9210d46b3047d8e0bf504 | [
"FTL",
"RSA-MD",
"CECILL-B"
] | null | null | null | # Libraries
import ast
import collections
import pandas as pd
# -----------------
# Methods
# -----------------
codes = ['06dx', '13dx', '32dx', '42dx', 'md']
path = "../oucru-{0}/resources/outputs/"
path += "templates/ccfgs_{1}_data_fixed.xlsx"
# Loop
for c in codes:
# Create path
path_tmp = path.forma... | 21.965517 | 61 | 0.627159 |
9884063271053768538df189e1b6b1a2f033e411 | 3,424 | py | Python | twitter_likes.py | reinhartP/twitter-likes-media-downloader | d49857d9ef36776d47e076b88253d4dc5da7ebe2 | [
"MIT"
] | 1 | 2020-04-09T01:09:12.000Z | 2020-04-09T01:09:12.000Z | twitter_likes.py | reinhartP/twitter-likes-media-downloader | d49857d9ef36776d47e076b88253d4dc5da7ebe2 | [
"MIT"
] | null | null | null | twitter_likes.py | reinhartP/twitter-likes-media-downloader | d49857d9ef36776d47e076b88253d4dc5da7ebe2 | [
"MIT"
] | null | null | null | import argparse
import twitter
import os
import json
from likes import Likes
import sys
import time
downloader = Downloader()
downloader.main()
| 31.703704 | 105 | 0.56104 |
9885bedc72d4f736abfc8e9d034f0b9e67c7f3ad | 701 | py | Python | test.py | lusing/algo | 0f870715fa87f29df77d2a338ca40c76de887b8f | [
"BSD-2-Clause"
] | null | null | null | test.py | lusing/algo | 0f870715fa87f29df77d2a338ca40c76de887b8f | [
"BSD-2-Clause"
] | null | null | null | test.py | lusing/algo | 0f870715fa87f29df77d2a338ca40c76de887b8f | [
"BSD-2-Clause"
] | null | null | null | import gym
import numpy as np
env = gym.make('FrozenLake-v0')
#env = env.unwrapped
print(env.observation_space)
print(env.action_space)
random_policy = np.ones((env.unwrapped.nS, env.unwrapped.nA)) / env.unwrapped.nA
episode_reward = [play_policy(env,random_policy) for _ in range(100)]
print(np.mean(episode_reward))... | 26.961538 | 80 | 0.676177 |
9885d62567b0049d499341f31cbcc14bbd3eeb04 | 1,616 | py | Python | tests/test_pyspy.py | gjoseph92/scheduler-profiling | 826ed2bc65b7126789ac0b828a4116d746e85975 | [
"MIT"
] | null | null | null | tests/test_pyspy.py | gjoseph92/scheduler-profiling | 826ed2bc65b7126789ac0b828a4116d746e85975 | [
"MIT"
] | null | null | null | tests/test_pyspy.py | gjoseph92/scheduler-profiling | 826ed2bc65b7126789ac0b828a4116d746e85975 | [
"MIT"
] | null | null | null | import json
import pathlib
import platform
import dask
import distributed
import pytest
import scheduler_profilers
pytest_plugins = ["docker_compose"]
| 28.350877 | 87 | 0.701114 |
9887beb0001dc94ee9fbc4630bc1eeda2bccd16f | 1,889 | py | Python | setup.py | starofrainnight/ncstyler | d13a6fa330b955db1cb9aa7a6ff1751ec41e82eb | [
"MIT"
] | null | null | null | setup.py | starofrainnight/ncstyler | d13a6fa330b955db1cb9aa7a6ff1751ec41e82eb | [
"MIT"
] | null | null | null | setup.py | starofrainnight/ncstyler | d13a6fa330b955db1cb9aa7a6ff1751ec41e82eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from pydgutils_bootstrap import use_pydgutils
use_pydgutils()
import pydgutils
from setuptools import setup, find_packages
try:
from pip.req import parse_requirements
except:
from pip._internal.req import parse_requirements
package_name = 'ncstyler'
# Convert source to v2... | 33.140351 | 103 | 0.680783 |
98887097037d0611c0184d4d2ad833e081fa6d4a | 7,521 | py | Python | code/model.py | philippmarcus/CarND-Behavioral-Cloning-P3 | e5dc637dd211d4cd148f311dc36eb973bd80bf68 | [
"MIT"
] | null | null | null | code/model.py | philippmarcus/CarND-Behavioral-Cloning-P3 | e5dc637dd211d4cd148f311dc36eb973bd80bf68 | [
"MIT"
] | null | null | null | code/model.py | philippmarcus/CarND-Behavioral-Cloning-P3 | e5dc637dd211d4cd148f311dc36eb973bd80bf68 | [
"MIT"
] | null | null | null | import csv
import cv2
import numpy as np
import copy
from sklearn.utils import shuffle
"""
Data generator and augmentation methods. The generator called
get_flipped_copies and get_color_inverted_copies, if augmentation mode
is activated.
The usage of color inverted copies is done to make the algorithm also work on st... | 40.654054 | 129 | 0.622258 |
9888a42f23f0d00ae83842fcbe258a139ecdf9f3 | 689 | py | Python | abc/abc243/d/main.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/abc243/d/main.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/abc243/d/main.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | import sys
import math
from collections import defaultdict, deque
sys.setrecursionlimit(10 ** 6)
stdin = sys.stdin
INF = float('inf')
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
N, X = na()
S = ns()
up = 0
tmp_S = ""
for c in S[::-1]:
if c =... | 17.225 | 53 | 0.441219 |
98897ab6c0c2e516144b6f2d4b7b401c420c7e80 | 1,580 | py | Python | test/fcos/test_map.py | aclex/detection-experiments | f1cbf115573a8d509553335c5904ebc2e11511d2 | [
"Apache-2.0"
] | 5 | 2020-06-08T08:21:03.000Z | 2021-03-03T21:54:06.000Z | test/fcos/test_map.py | aclex/detection-experiments | f1cbf115573a8d509553335c5904ebc2e11511d2 | [
"Apache-2.0"
] | 3 | 2021-02-06T20:21:02.000Z | 2021-06-06T18:46:27.000Z | test/fcos/test_map.py | aclex/detection-experiments | f1cbf115573a8d509553335c5904ebc2e11511d2 | [
"Apache-2.0"
] | 2 | 2020-06-08T08:21:05.000Z | 2021-02-06T11:44:04.000Z | import pytest
import math
import torch
from detector.fcos.map import Mapper
from test.fcos.level_map_fixtures import (
image_size,
strides,
sample,
targets,
expected_level_map_sizes,
expected_joint_map_8x8
)
def test_level_thresholds_calculation(strides, expected_level_thresholds):
result = Mapper._calc... | 21.643836 | 74 | 0.777215 |
988b95133b50696e063c31455c67480729ea1f10 | 770 | py | Python | setup.py | BoaVaga/boavaga_server | 7d25a68832d3b9f4f5666d0a3d55c99025498511 | [
"MIT"
] | null | null | null | setup.py | BoaVaga/boavaga_server | 7d25a68832d3b9f4f5666d0a3d55c99025498511 | [
"MIT"
] | null | null | null | setup.py | BoaVaga/boavaga_server | 7d25a68832d3b9f4f5666d0a3d55c99025498511 | [
"MIT"
] | null | null | null | import sqlalchemy
from sqlalchemy.ext.compiler import compiles
import sys
from src.container import create_container
from src.models.base import Base
from src.models import *
if __name__ == '__main__':
main()
| 22 | 62 | 0.697403 |
988d858cdf7f3362f594136b2442041c83f7fa93 | 4,586 | py | Python | cli/src/pcluster/cli/middleware.py | enrico-usai/cfncluster | acf083776c301d4f2a03ce5cd6fc79f9b88c74e0 | [
"Apache-2.0"
] | 415 | 2018-11-13T15:02:15.000Z | 2022-03-31T15:26:06.000Z | cli/src/pcluster/cli/middleware.py | enrico-usai/cfncluster | acf083776c301d4f2a03ce5cd6fc79f9b88c74e0 | [
"Apache-2.0"
] | 2,522 | 2018-11-13T16:16:27.000Z | 2022-03-31T13:57:10.000Z | cli/src/pcluster/cli/middleware.py | yuleiwan/aws-parallelcluster | aad2a3019ef4ad08d702f5acf41b152b3f7a0b46 | [
"Apache-2.0"
] | 164 | 2018-11-14T22:47:46.000Z | 2022-03-22T11:33:22.000Z | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not
# use this file except in compliance with the License. A copy of the License is
# located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file acc... | 37.900826 | 113 | 0.711949 |
988f5d1f8daa9ec72e11862df13ec07c4e300748 | 3,696 | py | Python | src/pyrin/audit/api.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/audit/api.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/audit/api.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
audit api module.
"""
import pyrin.audit.services as audit_services
from pyrin.api.router.decorators import api
audit_config = audit_services.get_audit_configurations()
audit_config.update(no_cache=True)
is_enabled = audit_config.pop('enabled', False)
if is_enabled is True:
| 33 | 91 | 0.513528 |
988f6916ac656773613c7bb7507c1cac7e708d2f | 222 | py | Python | python/stage_2/2839.py | smartx-jshan/Coding_Practice | bc7d485e7992031e55df62483818b721ad7d1d4f | [
"Apache-2.0"
] | null | null | null | python/stage_2/2839.py | smartx-jshan/Coding_Practice | bc7d485e7992031e55df62483818b721ad7d1d4f | [
"Apache-2.0"
] | null | null | null | python/stage_2/2839.py | smartx-jshan/Coding_Practice | bc7d485e7992031e55df62483818b721ad7d1d4f | [
"Apache-2.0"
] | null | null | null | a = int(input())
sum = 0
while True:
if ( a == 0):
print (int(sum))
break
if ( a <= 2):
print (-1)
break
if (a%5 != 0):
a = a - 3
sum = sum + 1
else:
sum = sum + int(a/5)
a = 0
| 10.571429 | 24 | 0.400901 |
98907675d26bfe65790edfc2bde7b8179aee4ad8 | 5,793 | py | Python | tests/test_losses/test_mesh_losses.py | nightfuryyy/mmpose | 910d9e31dd9d46e3329be1b7567e6309d70ab64c | [
"Apache-2.0"
] | 1,775 | 2020-07-10T01:20:01.000Z | 2022-03-31T16:31:50.000Z | tests/test_losses/test_mesh_losses.py | KHB1698/mmpose | 93c3a742c540dfb4ca515ad545cef705a07d90b4 | [
"Apache-2.0"
] | 1,021 | 2020-07-11T11:40:24.000Z | 2022-03-31T14:32:26.000Z | tests/test_losses/test_mesh_losses.py | KHB1698/mmpose | 93c3a742c540dfb4ca515ad545cef705a07d90b4 | [
"Apache-2.0"
] | 477 | 2020-07-11T11:27:51.000Z | 2022-03-31T09:42:25.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch
from numpy.testing import assert_almost_equal
from mmpose.models import build_loss
from mmpose.models.utils.geometry import batch_rodrigues
def test_mesh_loss():
"""test mesh loss."""
loss_cfg = dict(
type='MeshLoss',
... | 35.323171 | 78 | 0.655619 |
9891a82e9057c30b7703a78123e0f01f73c0248f | 6,932 | py | Python | seqs/IntegerHeap.py | vincentdavis/special-sequences | b7b7f8c2bd2f655baeb7b2139ddf007615bffd67 | [
"MIT"
] | 1 | 2020-04-15T10:46:57.000Z | 2020-04-15T10:46:57.000Z | seqs/IntegerHeap.py | vincentdavis/special-sequences | b7b7f8c2bd2f655baeb7b2139ddf007615bffd67 | [
"MIT"
] | 1 | 2016-09-14T03:57:25.000Z | 2016-09-14T03:57:25.000Z | seqs/IntegerHeap.py | vincentdavis/special-sequences | b7b7f8c2bd2f655baeb7b2139ddf007615bffd67 | [
"MIT"
] | null | null | null | """IntegerHeap.py
Priority queues of integer keys based on van Emde Boas trees.
Only the keys are stored; caller is responsible for keeping
track of any data associated with the keys in a separate dictionary.
We use a version of vEB trees in which all accesses to subtrees
are performed indirectly through a hash table... | 34.147783 | 79 | 0.568523 |
9893aa6d0245de7a42d6065da71ab428fbb28e3b | 3,238 | py | Python | core/client/client.py | spiritotaku/fedlearn-algo | 842700d43e7f033a7b6a32d0845cb6d9db5b866a | [
"Apache-2.0"
] | 1 | 2021-07-20T23:44:28.000Z | 2021-07-20T23:44:28.000Z | core/client/client.py | kfliubo/fedlearn-algo | 3440bb10a8680319bcad1b9c9677874bab35550a | [
"Apache-2.0"
] | null | null | null | core/client/client.py | kfliubo/fedlearn-algo | 3440bb10a8680319bcad1b9c9677874bab35550a | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Fedlearn authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 26.540984 | 88 | 0.62446 |
9894e55664da246d5300969b91941e5dc7ab68d5 | 9,369 | py | Python | L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | from __future__ import print_function
#
# cfg file to pack (DigiToRaw) a GT DAQ record, unpack (RawToDigi) it back
# and compare the two set of digis
#
# V M Ghete 2009-04-06
import FWCore.ParameterSet.Config as cms
# process
process = cms.Process('TestGtPackUnpackAnalyzer')
###################### user choices #####... | 35.488636 | 139 | 0.732629 |
9896f98d8a2acdc2a185331ee790f1c4273955b0 | 39,103 | py | Python | ranges/RangeDict.py | wikti/ranges | 133376861d5595e040f0f18fd17de73a4ac2c3c2 | [
"MIT"
] | null | null | null | ranges/RangeDict.py | wikti/ranges | 133376861d5595e040f0f18fd17de73a4ac2c3c2 | [
"MIT"
] | null | null | null | ranges/RangeDict.py | wikti/ranges | 133376861d5595e040f0f18fd17de73a4ac2c3c2 | [
"MIT"
] | 1 | 2022-03-29T16:16:15.000Z | 2022-03-29T16:16:15.000Z | from operator import is_
from ._helper import _UnhashableFriendlyDict, _LinkedList, _is_iterable_non_string, Rangelike
from .Range import Range
from .RangeSet import RangeSet
from typing import Iterable, Union, Any, TypeVar, List, Tuple, Dict, Tuple
T = TypeVar('T', bound=Any)
V = TypeVar('V', bound=Any)
| 46.440618 | 120 | 0.616577 |
98985142e7c8b8249e12ffcb7bdd9280a12f0e9c | 428 | py | Python | cases/urls.py | testyourcodenow/core | 05865b02ff7e60ffd3b30652161b3523046b9696 | [
"MIT"
] | 1 | 2020-05-10T06:40:58.000Z | 2020-05-10T06:40:58.000Z | cases/urls.py | testyourcodenow/core | 05865b02ff7e60ffd3b30652161b3523046b9696 | [
"MIT"
] | 25 | 2020-05-03T08:10:38.000Z | 2021-09-22T18:59:29.000Z | cases/urls.py | testyourcodenow/core | 05865b02ff7e60ffd3b30652161b3523046b9696 | [
"MIT"
] | 10 | 2020-05-03T08:25:56.000Z | 2020-06-03T06:49:34.000Z | from django.urls import path
from cases.api.get_visuals_data import UpdateVisualsData
from cases.api.kenyan_cases import KenyanCaseList
from cases.api.visuals import VisualList
urlpatterns = [
path('kenyan/all', KenyanCaseList.as_view(), name='Historical data'),
path('history/', VisualList.as_view(), name='Hi... | 32.923077 | 87 | 0.766355 |
9898e2238b703d003f63b12f69d4c95669f7ebc5 | 1,198 | py | Python | tests/test_cloudfront_distribution.py | aexeagmbh/cfn-lint-rules | a7f39f3bab6d7e1aca28ba8bb8afec9965652ab4 | [
"MIT"
] | 1 | 2020-11-15T19:09:41.000Z | 2020-11-15T19:09:41.000Z | tests/test_cloudfront_distribution.py | aexeagmbh/cfn-lint-rules | a7f39f3bab6d7e1aca28ba8bb8afec9965652ab4 | [
"MIT"
] | 6 | 2019-03-21T15:13:14.000Z | 2021-06-02T09:32:27.000Z | tests/test_cloudfront_distribution.py | aexeagmbh/cfn-lint-rules | a7f39f3bab6d7e1aca28ba8bb8afec9965652ab4 | [
"MIT"
] | null | null | null | from typing import List
import pytest
from cfn_lint_ax.rules import (
CloudfrontDistributionComment,
CloudfrontDistributionLogging,
)
from tests.utils import BAD_TEMPLATE_FIXTURES_PATH, ExpectedError, assert_all_matches
| 27.860465 | 103 | 0.603506 |
9899186911f7d1599b3dc4fbf817f141da8c06f6 | 3,661 | py | Python | holdit/records.py | caltechlibrary/holdit | 474165764e3514303dfd118d1beb0b6570fb6e13 | [
"BSD-3-Clause"
] | 2 | 2019-01-31T21:47:13.000Z | 2020-11-18T04:28:58.000Z | holdit/records.py | caltechlibrary/holdit | 474165764e3514303dfd118d1beb0b6570fb6e13 | [
"BSD-3-Clause"
] | 4 | 2018-10-04T17:56:48.000Z | 2019-01-10T03:20:13.000Z | holdit/records.py | caltechlibrary/holdit | 474165764e3514303dfd118d1beb0b6570fb6e13 | [
"BSD-3-Clause"
] | null | null | null | '''
records.py: base record class for holding data
Authors
-------
Michael Hucka <mhucka@caltech.edu> -- Caltech Library
Copyright
---------
Copyright (c) 2018 by the California Institute of Technology. This code is
open-source software released under a 3-clause BSD license. Please see the
file "LICENSE" for more... | 35.201923 | 116 | 0.594373 |
989a09a83b041b1f75c98b22e68018d962171a76 | 12,080 | py | Python | pyroSAR/gamma/srtm.py | ibaris/pyroSAR | 04924500c61674a68e9dc56c1f71b7dd195c480a | [
"MIT"
] | 1 | 2020-03-09T10:33:06.000Z | 2020-03-09T10:33:06.000Z | pyroSAR/gamma/srtm.py | ibaris/pyroSAR | 04924500c61674a68e9dc56c1f71b7dd195c480a | [
"MIT"
] | null | null | null | pyroSAR/gamma/srtm.py | ibaris/pyroSAR | 04924500c61674a68e9dc56c1f71b7dd195c480a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
##############################################################
# preparation of srtm data for use in gamma
# module of software pyroSAR
# John Truckenbrodt 2014-18
##############################################################
"""
The following tasks are performed by executing this script:
-readi... | 38.107256 | 170 | 0.643543 |
989cb6547e6be414dacae50d087b530a3693e1f5 | 631 | py | Python | youtrack/test_create_issue.py | JiSoft/python_test_api | e162f84ff67d7848d55ba4d682876fac7f297f9b | [
"MIT"
] | null | null | null | youtrack/test_create_issue.py | JiSoft/python_test_api | e162f84ff67d7848d55ba4d682876fac7f297f9b | [
"MIT"
] | null | null | null | youtrack/test_create_issue.py | JiSoft/python_test_api | e162f84ff67d7848d55ba4d682876fac7f297f9b | [
"MIT"
] | null | null | null | import unittest
from my_test_api import TestAPI
if __name__ == '__main__':
unittest.main() | 26.291667 | 62 | 0.600634 |
989d14ba8bad9846c10db51fb0c7bf4b880dcf12 | 1,422 | py | Python | test/test_add_contact_to_group.py | havrylyshyn/python_training | 2b1e1a3dd3a2b86ce1068fe52e233dee42b07580 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_to_group.py | havrylyshyn/python_training | 2b1e1a3dd3a2b86ce1068fe52e233dee42b07580 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_to_group.py | havrylyshyn/python_training | 2b1e1a3dd3a2b86ce1068fe52e233dee42b07580 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
from model.group import Group
import random
# assert db.get_contacts_from_group(group).__contains__(contact)
| 41.823529 | 149 | 0.716596 |
989e5e0ff860fef2127fee5afea5afc3f6a62b14 | 35 | py | Python | deadtrees/network/extra/resunetplusplus/__init__.py | cwerner/deadtrees | 15ddfec58c4a40f22f9c1e2424fb535df4d29b03 | [
"Apache-2.0"
] | 1 | 2021-11-15T09:26:24.000Z | 2021-11-15T09:26:24.000Z | deadtrees/network/extra/resunetplusplus/__init__.py | cwerner/deadtrees | 15ddfec58c4a40f22f9c1e2424fb535df4d29b03 | [
"Apache-2.0"
] | 43 | 2021-04-19T14:55:05.000Z | 2022-03-29T13:34:16.000Z | deadtrees/network/extra/resunetplusplus/__init__.py | cwerner/deadtrees | 15ddfec58c4a40f22f9c1e2424fb535df4d29b03 | [
"Apache-2.0"
] | null | null | null | from .model import ResUnetPlusPlus
| 17.5 | 34 | 0.857143 |
989f321254ef2c700cd7d5e4e5510eef2ae556a7 | 1,416 | py | Python | datacamp/case_collections/study_crimes.py | anilgeorge04/learn-ds | f1a9c638e29270d4d72fc3aed0af3ccea8c53350 | [
"MIT"
] | null | null | null | datacamp/case_collections/study_crimes.py | anilgeorge04/learn-ds | f1a9c638e29270d4d72fc3aed0af3ccea8c53350 | [
"MIT"
] | null | null | null | datacamp/case_collections/study_crimes.py | anilgeorge04/learn-ds | f1a9c638e29270d4d72fc3aed0af3ccea8c53350 | [
"MIT"
] | null | null | null | import csv
from collections import Counter
from collections import defaultdict
from datetime import datetime
# Make dictionary with district as key
# Create the CSV file: csvfile
csvfile = open('crime_sampler.csv', 'r')
# Create a dictionary that defaults to a list: crimes_by_district
crimes_by_district = defaultdic... | 30.12766 | 87 | 0.694915 |
98a149a17f0d2633d0a5d99ecb5f2a1417468a75 | 4,016 | py | Python | python/nsc/nsc_instcal_combine_breakup_idstr.py | dnidever/noaosourcecatalog | bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb | [
"MIT"
] | 4 | 2017-05-23T20:57:33.000Z | 2018-01-30T22:51:42.000Z | python/nsc/nsc_instcal_combine_breakup_idstr.py | dnidever/noaosourcecatalog | bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb | [
"MIT"
] | null | null | null | python/nsc/nsc_instcal_combine_breakup_idstr.py | dnidever/noaosourcecatalog | bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb | [
"MIT"
] | 1 | 2021-07-15T03:06:22.000Z | 2021-07-15T03:06:22.000Z | #!/usr/bin/env python
# Break up idstr file into separate measid/objectid lists per exposure on /data0
import os
import sys
import numpy as np
import time
from dlnpyutils import utils as dln, db
from astropy.io import fits
import sqlite3
import socket
from argparse import ArgumentParser
def breakup_idstr(dbfile):
... | 39.372549 | 117 | 0.574701 |
98a2ca2296e875523ce2f68c78e6507e53f436a6 | 721 | py | Python | Chapter10/fabfile_operations.py | frankethp/Hands-On-Enterprise-Automation-with-Python | 4d20dc5fda2265a2c3666770b8ad53e63c7ae07c | [
"MIT"
] | 51 | 2018-07-02T04:03:07.000Z | 2022-03-08T07:20:29.000Z | Chapter10/fabfile_operations.py | MindaugasVaitkus2/Hands-On-Enterprise-Automation-with-Python | 39471804525701e634bd35046d8db3c0bca51dd6 | [
"MIT"
] | 1 | 2018-08-06T10:13:15.000Z | 2020-10-08T12:27:17.000Z | Chapter10/fabfile_operations.py | MindaugasVaitkus2/Hands-On-Enterprise-Automation-with-Python | 39471804525701e634bd35046d8db3c0bca51dd6 | [
"MIT"
] | 43 | 2018-07-24T08:50:41.000Z | 2022-03-18T21:45:40.000Z | #!/usr/bin/python
__author__ = "Bassim Aly"
__EMAIL__ = "basim.alyy@gmail.com"
from fabric.api import *
env.hosts = [
'10.10.10.140', # ubuntu machine
'10.10.10.193', # CentOS machine
]
env.user = "root"
env.password = "access123"
| 16.386364 | 78 | 0.614424 |
98a44edac65fd22c66ab9f5074e13352309bd948 | 1,882 | py | Python | WebApp/application.py | Ezetowers/AppEngine_EventsManagement | 23e496dee161fbe62596f466d3e83e9a88c2f2b4 | [
"MIT"
] | null | null | null | WebApp/application.py | Ezetowers/AppEngine_EventsManagement | 23e496dee161fbe62596f466d3e83e9a88c2f2b4 | [
"MIT"
] | null | null | null | WebApp/application.py | Ezetowers/AppEngine_EventsManagement | 23e496dee161fbe62596f466d3e83e9a88c2f2b4 | [
"MIT"
] | null | null | null | import os
from Model.Model import *
from Handlers.AddGuest import AddGuest
from Handlers.QueryGuest import QueryGuest
from Handlers.EventsCreation import EventsCreation
from Handlers.EventRemoval import EventRemoval
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoade... | 29.40625 | 76 | 0.670563 |
98a6da5934125aa84cc4de8ab3349dd673edbfc9 | 530 | py | Python | leap/leap_test.py | shozi91/xpython | f3eccb61910f9950a98c5524efcfd8784fbc4289 | [
"MIT"
] | null | null | null | leap/leap_test.py | shozi91/xpython | f3eccb61910f9950a98c5524efcfd8784fbc4289 | [
"MIT"
] | null | null | null | leap/leap_test.py | shozi91/xpython | f3eccb61910f9950a98c5524efcfd8784fbc4289 | [
"MIT"
] | 1 | 2020-06-10T23:33:20.000Z | 2020-06-10T23:33:20.000Z | import unittest
from year import is_leap_year
if __name__ == '__main__':
unittest.main()
| 22.083333 | 44 | 0.713208 |
98abe48e2e82e8030955b56dce5a86874efde1ce | 1,934 | py | Python | Examples/batch_data_reduction.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | Examples/batch_data_reduction.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | Examples/batch_data_reduction.py | keflavich/TurbuStat | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | [
"MIT"
] | null | null | null | # Licensed under an MIT open source license - see LICENSE
'''
Runs data_reduc on all data cubes in the file.
Creates a folder for each data cube and its products
Run from folder containing data cubes
'''
from turbustat.data_reduction import *
from astropy.io.fits import getdata
import os
import sys
import errno
im... | 24.794872 | 115 | 0.639607 |
98b33ea8451d3967d4ce2088f2eba80859167c6d | 44,549 | py | Python | tests/test_dataset_tensor_backend.py | evendrow/deepsnap | 8d5762bf4a2ef6910ad602895685cac892207ba8 | [
"MIT"
] | null | null | null | tests/test_dataset_tensor_backend.py | evendrow/deepsnap | 8d5762bf4a2ef6910ad602895685cac892207ba8 | [
"MIT"
] | null | null | null | tests/test_dataset_tensor_backend.py | evendrow/deepsnap | 8d5762bf4a2ef6910ad602895685cac892207ba8 | [
"MIT"
] | null | null | null | import copy
import random
import torch
import unittest
from torch_geometric.datasets import TUDataset, Planetoid
from copy import deepcopy
from deepsnap.graph import Graph
from deepsnap.hetero_graph import HeteroGraph
from deepsnap.dataset import GraphDataset, Generator, EnsembleGenerator
from tests.utils import (
... | 35.667734 | 79 | 0.548946 |
98b505993d7e054879c6dcdc1e0b5fdc721d797f | 5,425 | py | Python | kube-socialNetwork/scripts/init_social_graph.py | Romero027/DeathStarBench | 185b61851b7a89277c0c2c1845e18776a9dd7201 | [
"Apache-2.0"
] | null | null | null | kube-socialNetwork/scripts/init_social_graph.py | Romero027/DeathStarBench | 185b61851b7a89277c0c2c1845e18776a9dd7201 | [
"Apache-2.0"
] | null | null | null | kube-socialNetwork/scripts/init_social_graph.py | Romero027/DeathStarBench | 185b61851b7a89277c0c2c1845e18776a9dd7201 | [
"Apache-2.0"
] | null | null | null | import aiohttp
import asyncio
import os
import string
import random
import argparse
def getNumNodes(file):
return int(file.readline())
def getEdges(file):
edges = []
lines = file.readlines()
for line in lines:
edges.append(line.split())
return edges
def printResults(results):
result_type_count ... | 33.695652 | 122 | 0.650507 |
98b7f6b7b89c34e5105fa11524b6903c3e65f006 | 1,152 | py | Python | src/reader/test_cases/test_wiki_article.py | LukeMurphey/textcritical_net | 887b11ac66d1970576ea83b307cefc4fdc4319b5 | [
"CC-BY-3.0"
] | 6 | 2019-05-18T04:31:39.000Z | 2020-12-10T15:22:59.000Z | src/reader/test_cases/test_wiki_article.py | LukeMurphey/textcritical_net | 887b11ac66d1970576ea83b307cefc4fdc4319b5 | [
"CC-BY-3.0"
] | 1 | 2020-05-19T06:04:11.000Z | 2020-06-04T06:16:02.000Z | src/reader/test_cases/test_wiki_article.py | LukeMurphey/textcritical_net | 887b11ac66d1970576ea83b307cefc4fdc4319b5 | [
"CC-BY-3.0"
] | null | null | null | from . import TestReader
from reader.models import WikiArticle
| 41.142857 | 110 | 0.658854 |
98b9a46afb25d58d865589959a96d2c38ca63150 | 7,399 | py | Python | tests/test_predictions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 6 | 2019-09-16T13:07:20.000Z | 2021-06-02T19:02:05.000Z | tests/test_predictions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 325 | 2019-09-20T20:06:00.000Z | 2022-03-30T15:05:49.000Z | tests/test_predictions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 17 | 2019-08-02T16:55:47.000Z | 2021-06-26T19:13:35.000Z | # -*- coding: utf-8 -*-
import unittest
import unittest.mock as mock
import requests
import json
from io import BytesIO
from fastapi.testclient import TestClient
from projects.api.main import app
from projects.database import session_scope
import tests.util as util
app.dependency_overrides[session_scope] = util.ove... | 31.619658 | 104 | 0.554805 |
7f26586a1c1633037e799675a12e878cfa0662c1 | 37,344 | py | Python | terraform/stacks/threat-intelligence/lambdas/python/cloud-sniper-threat-intelligence/cloud_sniper_threat_intelligence.py | houey/cloud-sniper | b0ac98eddc0b2da0f37c70926e2cef897283d787 | [
"MIT"
] | 160 | 2019-09-27T18:02:03.000Z | 2022-03-15T23:46:40.000Z | terraform/stacks/threat-intelligence/lambdas/python/cloud-sniper-threat-intelligence/cloud_sniper_threat_intelligence.py | houey/cloud-sniper | b0ac98eddc0b2da0f37c70926e2cef897283d787 | [
"MIT"
] | 2 | 2019-10-21T13:30:17.000Z | 2019-10-30T00:09:11.000Z | terraform/stacks/threat-intelligence/lambdas/python/cloud-sniper-threat-intelligence/cloud_sniper_threat_intelligence.py | houey/cloud-sniper | b0ac98eddc0b2da0f37c70926e2cef897283d787 | [
"MIT"
] | 31 | 2019-10-19T18:10:23.000Z | 2022-02-28T14:13:19.000Z | import boto3
import json
import datetime
import logging
import os
import ipaddress
import requests
log = logging.getLogger()
log.setLevel(logging.INFO)
QUEUE_URL = os.environ['SQS_QUEUE_CLOUD_SNIPER']
DYNAMO_TABLE = os.environ['DYNAMO_TABLE_CLOUD_SNIPER']
WEBHOOK_URL = os.environ['WEBHOOK_URL_CLOUD_SNIPER']
HUB_ACCOU... | 39.350896 | 365 | 0.492449 |
7f265c229148e280301571ddc10324f031f42de0 | 17,311 | py | Python | tests/apitests/python/test_tag_immutability.py | tedgxt/harbor | 039733b200cc44ba23829499eb6cc71c63d3b9e6 | [
"Apache-2.0"
] | 1 | 2019-06-19T14:07:38.000Z | 2019-06-19T14:07:38.000Z | tests/apitests/python/test_tag_immutability.py | tedgxt/harbor | 039733b200cc44ba23829499eb6cc71c63d3b9e6 | [
"Apache-2.0"
] | null | null | null | tests/apitests/python/test_tag_immutability.py | tedgxt/harbor | 039733b200cc44ba23829499eb6cc71c63d3b9e6 | [
"Apache-2.0"
] | 1 | 2019-07-11T02:36:30.000Z | 2019-07-11T02:36:30.000Z | from __future__ import absolute_import
import unittest
import sys
from testutils import ADMIN_CLIENT
from testutils import harbor_server
from library.project import Project
from library.user import User
from library.repository import Repository
from library.repository import push_image_to_project
from li... | 57.511628 | 249 | 0.667841 |
7f26727fc4891343ad2b1f70064b4be1149f932b | 3,728 | py | Python | src/hackmds/tasks.py | chairco/dj-Hackmd-notifer | ae032537707ddba7b911b04b99645230ae350322 | [
"0BSD"
] | 4 | 2017-10-23T10:42:06.000Z | 2019-06-21T00:44:01.000Z | src/hackmds/tasks.py | chairco/dj-Hackmd-notifier | ae032537707ddba7b911b04b99645230ae350322 | [
"0BSD"
] | 2 | 2017-10-23T01:56:15.000Z | 2017-10-23T01:56:53.000Z | src/hackmds/tasks.py | chairco/dj-Hackmd-notifier | ae032537707ddba7b911b04b99645230ae350322 | [
"0BSD"
] | null | null | null | import requests
import logging
import os
import diffhtml
from django.conf import settings
from django.shortcuts import render
from django.core.mail import EmailMessage
from django.template import loader
from django.contrib.auth.models import User
from django_q.tasks import async_chain, result_group
from hackmds.mode... | 27.614815 | 81 | 0.616685 |
7f283665e8b6be70031379c582e3646c30d58f97 | 814 | py | Python | camunda/utils/log_utils.py | finexioinc/camunda-external-task-client-python3 | dd88da967e8cc1aaf91972e2667e01bfa02265d0 | [
"Apache-2.0"
] | null | null | null | camunda/utils/log_utils.py | finexioinc/camunda-external-task-client-python3 | dd88da967e8cc1aaf91972e2667e01bfa02265d0 | [
"Apache-2.0"
] | null | null | null | camunda/utils/log_utils.py | finexioinc/camunda-external-task-client-python3 | dd88da967e8cc1aaf91972e2667e01bfa02265d0 | [
"Apache-2.0"
] | 1 | 2020-08-05T22:20:06.000Z | 2020-08-05T22:20:06.000Z | import logging
from frozendict import frozendict
| 25.4375 | 82 | 0.665848 |
7f2882efd53bcebd87c22f2c0fd81888ec5db7e6 | 734 | py | Python | Python/Basic Data Types/Lists.py | justchilll/HackerRank | 948e5783007b0918b25bcef452a12c4dddb36fa6 | [
"MIT"
] | 1 | 2021-12-28T15:45:25.000Z | 2021-12-28T15:45:25.000Z | Python/Basic Data Types/Lists.py | justchilll/HackerRank | 948e5783007b0918b25bcef452a12c4dddb36fa6 | [
"MIT"
] | null | null | null | Python/Basic Data Types/Lists.py | justchilll/HackerRank | 948e5783007b0918b25bcef452a12c4dddb36fa6 | [
"MIT"
] | null | null | null | if __name__ == '__main__':
N = int(input())
main_list=[]
for iterate in range(N):
entered_string=input().split()
if entered_string[0] == 'insert':
main_list.insert(int(entered_string[1]),int(entered_string[2]))
elif entered_string[0] == 'print':
print(main_lis... | 36.7 | 75 | 0.569482 |
7f28a3ba2a1d3d7c7bdf664d76babed98cc0144e | 742 | py | Python | wildlifecompliance/migrations/0055_auto_20180704_0848.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0055_auto_20180704_0848.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0055_auto_20180704_0848.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-07-04 00:48
from __future__ import unicode_literals
from django.db import migrations, models
| 25.586207 | 72 | 0.521563 |
7f28fd8107aa3d01ef3f003e276b381cfb9af0d6 | 677 | py | Python | day2/day2.py | tlee911/aoc2021 | f3b46590be72ceccdf4915b67b050c0c3207f002 | [
"MIT"
] | null | null | null | day2/day2.py | tlee911/aoc2021 | f3b46590be72ceccdf4915b67b050c0c3207f002 | [
"MIT"
] | null | null | null | day2/day2.py | tlee911/aoc2021 | f3b46590be72ceccdf4915b67b050c0c3207f002 | [
"MIT"
] | null | null | null | with open('input.txt', 'r') as file:
input = file.readlines()
input = [ step.split() for step in input ]
input = [ {step[0]: int(step[1])} for step in input ]
print(part2()) | 20.515152 | 53 | 0.468242 |
7f297ce902d7f9247b5e656d705431d2cc8409f0 | 4,307 | py | Python | user_metrics/metrics/edit_count.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | 1 | 2017-09-03T21:33:35.000Z | 2017-09-03T21:33:35.000Z | user_metrics/metrics/edit_count.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | null | null | null | user_metrics/metrics/edit_count.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | null | null | null |
__author__ = "Ryan Faulkner"
__date__ = "July 27th, 2012"
__license__ = "GPL (version 2 or later)"
from os import getpid
from collections import namedtuple
import user_metric as um
from user_metrics.metrics import query_mod
from user_metrics.metrics.users import UMP_MAP
from user_metrics.utils import multiprocessing_... | 31.669118 | 78 | 0.58997 |
7f29a4a16372f3427a26db56be3bf0908d8eb335 | 7,210 | py | Python | sdk/python/pulumi_aws_native/panorama/get_application_instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/panorama/get_application_instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/panorama/get_application_instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # 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, overload
from .. import _utilities
from... | 43.433735 | 257 | 0.710402 |
7f29ba6ebc54ec3ef0a767a7c315061f9ee3a3ff | 8,224 | py | Python | year_3/comppi_1/managers/views.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | null | null | null | year_3/comppi_1/managers/views.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | 21 | 2020-03-24T16:26:04.000Z | 2022-02-18T15:56:16.000Z | year_3/comppi_1/managers/views.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | null | null | null | import json
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from django.http import JsonResponse
from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from .models... | 42.174359 | 102 | 0.678867 |
7f2d111e6a6fe6c8ef6ae197c105c8637536b22e | 101 | py | Python | tests/union-env.py | fangyuchen86/mini-pysonar | 541e55ebadee35afb22e17b19eed5c19ad31e21e | [
"BSD-3-Clause"
] | 22 | 2015-04-03T12:44:24.000Z | 2021-12-22T17:55:00.000Z | tests/union-env.py | GaoGersy/mini-pysonar | 541e55ebadee35afb22e17b19eed5c19ad31e21e | [
"BSD-3-Clause"
] | null | null | null | tests/union-env.py | GaoGersy/mini-pysonar | 541e55ebadee35afb22e17b19eed5c19ad31e21e | [
"BSD-3-Clause"
] | 43 | 2015-04-03T12:46:28.000Z | 2022-01-20T17:27:45.000Z |
f(1)
| 10.1 | 19 | 0.29703 |
7f2dfec0ea8564d6ada61226e115c7c09c151298 | 23,950 | py | Python | mechroutines/es/runner/scan.py | keceli/mechdriver | 978994ba5c77b6df00078b639c4482dacf269440 | [
"Apache-2.0"
] | null | null | null | mechroutines/es/runner/scan.py | keceli/mechdriver | 978994ba5c77b6df00078b639c4482dacf269440 | [
"Apache-2.0"
] | null | null | null | mechroutines/es/runner/scan.py | keceli/mechdriver | 978994ba5c77b6df00078b639c4482dacf269440 | [
"Apache-2.0"
] | 8 | 2019-12-18T20:09:46.000Z | 2020-11-14T16:37:28.000Z | """ Library to perform sequences of electronic structure calculations
along a molecular coordinate and save the resulting information to
SCAN or CSAN layers of the save filesystem.
"""
import numpy
import automol
import autofile
import elstruct
from phydat import phycon
from mechlib import filesys
from mechli... | 37.716535 | 79 | 0.590856 |
7f2e8ec226f72ce3fd345487aaba5e6c7912c451 | 3,296 | py | Python | book-copier.py | BoKnowsCoding/hbd-organizer | 5312e2678e7f0ee731540f283137c6e8127c6a60 | [
"Unlicense"
] | null | null | null | book-copier.py | BoKnowsCoding/hbd-organizer | 5312e2678e7f0ee731540f283137c6e8127c6a60 | [
"Unlicense"
] | 1 | 2020-06-15T15:52:21.000Z | 2020-06-26T20:27:15.000Z | book-copier.py | BoKnowsCoding/hbd-organizer | 5312e2678e7f0ee731540f283137c6e8127c6a60 | [
"Unlicense"
] | null | null | null | """
Designed to be used in conjunction with xtream1101/humblebundle-downloader.
Takes the download directory of that script, then copies all file types of
each non-comic book to a chosen directory.
Each folder in the target directory will be one book, containing the
different file formats available for the boo... | 33.979381 | 100 | 0.664442 |
7f2ed7e442eb4d9f8c00b399cb27de2af650d79c | 2,276 | py | Python | nemo/collections/tts/torch/helpers.py | 23jura23/NeMo | 6815146775432852feee1bc28ed1a7a2fc94010d | [
"Apache-2.0"
] | null | null | null | nemo/collections/tts/torch/helpers.py | 23jura23/NeMo | 6815146775432852feee1bc28ed1a7a2fc94010d | [
"Apache-2.0"
] | null | null | null | nemo/collections/tts/torch/helpers.py | 23jura23/NeMo | 6815146775432852feee1bc28ed1a7a2fc94010d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 38.576271 | 145 | 0.706503 |
7f2f313dd457f2204002811c97661a2ad5ef1b2a | 633 | py | Python | Project Pattern/pattern_26.py | AMARTYA2020/nppy | 7f750534bb5faa4e661447ca132077de0ce0a0ed | [
"MIT"
] | 4 | 2020-12-07T10:15:08.000Z | 2021-11-17T11:21:07.000Z | Project Pattern/pattern_26.py | AMARTYA2020/nppy | 7f750534bb5faa4e661447ca132077de0ce0a0ed | [
"MIT"
] | null | null | null | Project Pattern/pattern_26.py | AMARTYA2020/nppy | 7f750534bb5faa4e661447ca132077de0ce0a0ed | [
"MIT"
] | 1 | 2021-02-17T07:53:13.000Z | 2021-02-17T07:53:13.000Z |
if __name__ == '__main__':
Pattern_Twenty_Six()
| 19.181818 | 49 | 0.388626 |
7f2fcabb83cbf0cb2f3a253ecff31e49e9b71e6b | 1,069 | py | Python | SVD.py | divi9626/RANSAC | c109e41bc9a476b64572d82c92a8aa20504df41a | [
"MIT"
] | null | null | null | SVD.py | divi9626/RANSAC | c109e41bc9a476b64572d82c92a8aa20504df41a | [
"MIT"
] | null | null | null | SVD.py | divi9626/RANSAC | c109e41bc9a476b64572d82c92a8aa20504df41a | [
"MIT"
] | null | null | null | import numpy as np
A = np.asarray([[-5, -5, -1, 0, 0, 0, 500, 500, 100],
[0, 0, 0, -5, -5, -1, 500, 500, 100],
[-150, -5, -1, 0, 0, 0, 30000, 1000, 200],
[0, 0, 0, -150, -5, -1, 12000, 400, 80],
[-150, -150, -1, 0,... | 26.725 | 70 | 0.424696 |
7f2fea8781d091be4e8f7a425ea94d6e86e56885 | 911 | py | Python | apps/university/api/serializers.py | ilyukevich/university-schedule | 305e568b00a847a8d2d10217568e7f87833fb5b3 | [
"MIT"
] | null | null | null | apps/university/api/serializers.py | ilyukevich/university-schedule | 305e568b00a847a8d2d10217568e7f87833fb5b3 | [
"MIT"
] | null | null | null | apps/university/api/serializers.py | ilyukevich/university-schedule | 305e568b00a847a8d2d10217568e7f87833fb5b3 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ..models import Faculties, Departaments, StudyGroups, Auditories, Disciplines
| 21.186047 | 82 | 0.683864 |
7f303b0c11d6702e4f41fb8d7ecc0a87c19ce301 | 713 | py | Python | app/views/info/info_routes.py | tjdaley/publicdataws | 1aa4a98cf47fae10cc0f59a8d01168df806b4919 | [
"MIT"
] | null | null | null | app/views/info/info_routes.py | tjdaley/publicdataws | 1aa4a98cf47fae10cc0f59a8d01168df806b4919 | [
"MIT"
] | null | null | null | app/views/info/info_routes.py | tjdaley/publicdataws | 1aa4a98cf47fae10cc0f59a8d01168df806b4919 | [
"MIT"
] | null | null | null | """
info_routes.py - Handle the routes for basic information pages.
This module provides the views for the following routes:
/about
/privacy
/terms_and_conditions
Copyright (c) 2019 by Thomas J. Daley. All Rights Reserved.
"""
from flask import Blueprint, render_template
info_routes = Blueprint("info_routes", __na... | 23 | 77 | 0.751753 |
7f323a424962078f0d541730b2a001b0d6f3bd66 | 524 | py | Python | guppe/atividades/secao_7/ex030.py | WesleyLucas97/cursos_python | b2cbd393e8fed6e36b84253f7934766f2b4f1de8 | [
"MIT"
] | null | null | null | guppe/atividades/secao_7/ex030.py | WesleyLucas97/cursos_python | b2cbd393e8fed6e36b84253f7934766f2b4f1de8 | [
"MIT"
] | null | null | null | guppe/atividades/secao_7/ex030.py | WesleyLucas97/cursos_python | b2cbd393e8fed6e36b84253f7934766f2b4f1de8 | [
"MIT"
] | null | null | null | """
Faa um programa que leia dois vetores de 10 elementos. Crie um vetor que seja a intersecao entre os 2 vetores
anteriores, ou seja, que contm apenas os nmeros que estao em ambos os vetores. Nao deve conter nmeros repetidos.
"""
from random import randint
vetor1 = []
vetor2 = []
inter = []
for x in range(10):
ve... | 23.818182 | 115 | 0.69084 |
7f3456525e16a28ff65bdae2bcdeda6075e74b3f | 343 | py | Python | tests/internal/instance_type/test_instance_type_h_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_h_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_h_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | 1 | 2021-12-15T11:58:22.000Z | 2021-12-15T11:58:22.000Z |
# Testing module instance_type.h
import pytest
import ec2_compare.internal.instance_type.h
| 34.3 | 75 | 0.845481 |
7f350b0e080d9eba4c1970d4cf3a06f36a964718 | 1,529 | py | Python | gridSearch.py | piotrbla/pyExamples | d949784e614da53afc05a1245c824d0b853d8234 | [
"MIT"
] | null | null | null | gridSearch.py | piotrbla/pyExamples | d949784e614da53afc05a1245c824d0b853d8234 | [
"MIT"
] | null | null | null | gridSearch.py | piotrbla/pyExamples | d949784e614da53afc05a1245c824d0b853d8234 | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
# t = int(input().strip())
# for a0 in range(t):
# G = [
# "7283455864",
# "6731158619",
# "8988242643",
# "3830589324",
# "2229505813",
# "5633845374",
# "6473530293",
# "7053106601",
# "0834282956",
# "4607924137"
# ]
# P = ["9505", "3845", "3530"]
G... | 22.485294 | 97 | 0.400916 |
7f3544b7340939d1a01b2aecf308475476d4e6eb | 1,764 | py | Python | rollbar_udp_agent/util.py | lrascao/rollbar-udp-agent | 51c698837e5141bff5fef3e20afe7301c3ecdf27 | [
"MIT"
] | 1 | 2015-05-27T21:48:42.000Z | 2015-05-27T21:48:42.000Z | rollbar_udp_agent/util.py | lrascao/rollbar-udp-agent | 51c698837e5141bff5fef3e20afe7301c3ecdf27 | [
"MIT"
] | null | null | null | rollbar_udp_agent/util.py | lrascao/rollbar-udp-agent | 51c698837e5141bff5fef3e20afe7301c3ecdf27 | [
"MIT"
] | null | null | null | import os
import logging
import tempfile
log = logging.getLogger(__name__)
| 29.898305 | 89 | 0.570862 |
7f35a101be268b4de55d1e3fbef7b0fc92eca07c | 1,388 | py | Python | server/migrations/0019_auto_20151124_1806.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | 2 | 2019-11-01T20:50:35.000Z | 2021-01-13T22:02:55.000Z | server/migrations/0019_auto_20151124_1806.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | null | null | null | server/migrations/0019_auto_20151124_1806.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 31.545455 | 169 | 0.561239 |
7f3657c2007cb8e2fe9ba1e91d9490a327ac7d62 | 3,624 | py | Python | libc/kernel/tools/update_all.py | Keneral/abionic | 0f441ff93f011ed0069339e16f59e572134a5f3b | [
"Unlicense"
] | null | null | null | libc/kernel/tools/update_all.py | Keneral/abionic | 0f441ff93f011ed0069339e16f59e572134a5f3b | [
"Unlicense"
] | null | null | null | libc/kernel/tools/update_all.py | Keneral/abionic | 0f441ff93f011ed0069339e16f59e572134a5f3b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#
import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess
from defaults import *
from utils import *
try:
optlist, args = getopt.getopt(sys.argv[1:], '')
except:
# unrecognized option
sys.stderr.write("error: unrecognized option\n")
usage()
if len(optlist) > 0 or ... | 29.463415 | 96 | 0.631347 |
7f36be3439ad38bb0d3934200cfedbede2aee704 | 1,816 | py | Python | binding/python/ddls/feeder/batch.py | huzelin/ddls | 3333a669c59ce2e525945f814a54784dafc6191b | [
"MIT"
] | 3 | 2019-01-03T07:34:01.000Z | 2020-02-13T19:53:35.000Z | binding/python/ddls/feeder/batch.py | huzelin/ddls | 3333a669c59ce2e525945f814a54784dafc6191b | [
"MIT"
] | null | null | null | binding/python/ddls/feeder/batch.py | huzelin/ddls | 3333a669c59ce2e525945f814a54784dafc6191b | [
"MIT"
] | 1 | 2020-05-06T11:08:07.000Z | 2020-05-06T11:08:07.000Z | """ batch iterator"""
from __future__ import absolute_import
import ctypes
from ddls.base import check_call, LIB, c_str, c_array
from ddls.hpps.tensor import Tensor
| 32.428571 | 84 | 0.522026 |
7f373e1985a3fef43fa656105237573ff16bc399 | 3,520 | py | Python | pymoo/util/ref_dirs/energy_layer.py | jarreguit/pymoo | 0496a3c6765826148d8bab21650736760517dd25 | [
"Apache-2.0"
] | 762 | 2018-06-05T20:56:09.000Z | 2021-09-14T09:09:42.000Z | pymoo/util/ref_dirs/energy_layer.py | jarreguit/pymoo | 0496a3c6765826148d8bab21650736760517dd25 | [
"Apache-2.0"
] | 176 | 2018-09-05T18:37:05.000Z | 2021-09-14T01:18:43.000Z | pymoo/util/ref_dirs/energy_layer.py | jarreguit/pymoo | 0496a3c6765826148d8bab21650736760517dd25 | [
"Apache-2.0"
] | 160 | 2018-08-05T05:31:20.000Z | 2021-09-14T09:09:45.000Z | import autograd.numpy as anp
import numpy as np
from autograd import value_and_grad
from pymoo.factory import normalize
from pymoo.util.ref_dirs.energy import squared_dist
from pymoo.util.ref_dirs.optimizer import Adam
from pymoo.util.reference_direction import ReferenceDirectionFactory, scale_reference_directions
... | 29.579832 | 107 | 0.52642 |
7f3776d641ecf1c2ca820e1d8531b10c65ba6e21 | 1,555 | py | Python | convert_pfm_json.py | biolib/deepclip | 06e0a3c431db76745b6674afabc4d171f19b3eb0 | [
"MIT"
] | 7 | 2019-07-23T10:20:11.000Z | 2022-03-14T14:46:13.000Z | convert_pfm_json.py | biolib/deepclip | 06e0a3c431db76745b6674afabc4d171f19b3eb0 | [
"MIT"
] | 10 | 2019-09-05T22:45:04.000Z | 2022-03-21T08:40:49.000Z | convert_pfm_json.py | biolib/deepclip | 06e0a3c431db76745b6674afabc4d171f19b3eb0 | [
"MIT"
] | 5 | 2019-07-23T10:20:46.000Z | 2021-11-14T07:18:05.000Z | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import argparse
import json
parser = argparse.ArgumentParser()
parser.add_argument("-seqs",
required=True,
type=str,
default=None,
help="File contain... | 23.923077 | 130 | 0.607074 |
7f38a2c200ca531dbe41a48a8f774eb63c7b3ea0 | 83 | py | Python | xmpt/apps.py | anzrz/djangoapp | 85b4f73754af53ddf33ec281a04a70415af02eb6 | [
"MIT"
] | 1 | 2021-04-23T14:19:33.000Z | 2021-04-23T14:19:33.000Z | xmpt/apps.py | anzrz/djangoapp | 85b4f73754af53ddf33ec281a04a70415af02eb6 | [
"MIT"
] | null | null | null | xmpt/apps.py | anzrz/djangoapp | 85b4f73754af53ddf33ec281a04a70415af02eb6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 13.833333 | 33 | 0.73494 |
7f3bbf18433361fecef0405dbb0e62ddd2cecfda | 787 | py | Python | prc/fatigue.py | moulin1024/WIRELES2 | 2fcd190531d24e4f98885824c7d78acb3f79b304 | [
"MIT"
] | 3 | 2020-09-10T13:34:21.000Z | 2020-09-10T20:26:30.000Z | prc/fatigue.py | moulin1024/WIRELES2 | 2fcd190531d24e4f98885824c7d78acb3f79b304 | [
"MIT"
] | null | null | null | prc/fatigue.py | moulin1024/WIRELES2 | 2fcd190531d24e4f98885824c7d78acb3f79b304 | [
"MIT"
] | null | null | null | import numpy as np
import math
import fatpack
import matplotlib.pyplot as plt
import pandas as pd
#Create a function that reutrns the Goodman correction:
| 26.233333 | 79 | 0.673443 |
7f3d359af8382d37dc10d0318477d716c6a3d982 | 12,040 | py | Python | executor/process.py | xolox/python-executor | ea14d75ae3533fcc2f32554dd3ae1f6061c2c24c | [
"MIT"
] | 82 | 2015-03-03T17:12:28.000Z | 2022-02-11T21:54:15.000Z | executor/process.py | xolox/python-executor | ea14d75ae3533fcc2f32554dd3ae1f6061c2c24c | [
"MIT"
] | 19 | 2015-03-03T17:12:13.000Z | 2022-03-11T19:24:58.000Z | executor/process.py | xolox/python-executor | ea14d75ae3533fcc2f32554dd3ae1f6061c2c24c | [
"MIT"
] | 19 | 2016-10-15T02:53:58.000Z | 2021-07-22T15:28:25.000Z | # Programmer friendly subprocess wrapper.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: March 2, 2020
# URL: https://executor.readthedocs.io
"""
Portable process control functionality for the `executor` package.
The :mod:`executor.process` module defines the :class:`ControllableProcess`
abstract bas... | 43.623188 | 111 | 0.635133 |
7f3df3dc967b1922f0d38e1d9051faca1358ecc7 | 10,945 | py | Python | lambda/qldb/import_transport_product.py | UBC-CIC/VaccineDistribution | 3bd8d507eaabcf3a3213ec7c1d25127dd221c537 | [
"MIT"
] | null | null | null | lambda/qldb/import_transport_product.py | UBC-CIC/VaccineDistribution | 3bd8d507eaabcf3a3213ec7c1d25127dd221c537 | [
"MIT"
] | null | null | null | lambda/qldb/import_transport_product.py | UBC-CIC/VaccineDistribution | 3bd8d507eaabcf3a3213ec7c1d25127dd221c537 | [
"MIT"
] | null | null | null | from logging import basicConfig, getLogger, INFO
from connect_to_ledger import create_qldb_driver
from amazon.ion.simpleion import dumps, loads
logger = getLogger(__name__)
basicConfig(level=INFO)
from constants import Constants
from register_person import get_scentityid_from_personid,get_scentity_contact
from sampled... | 65.14881 | 202 | 0.56921 |
7f3df9c6bc7653f174e6f2a144e946916c638b4e | 1,467 | py | Python | rewx/components.py | akrk1986/re-wx | 2f50d1c0afe77313548847b279327d7041623721 | [
"MIT"
] | null | null | null | rewx/components.py | akrk1986/re-wx | 2f50d1c0afe77313548847b279327d7041623721 | [
"MIT"
] | null | null | null | rewx/components.py | akrk1986/re-wx | 2f50d1c0afe77313548847b279327d7041623721 | [
"MIT"
] | null | null | null | """
All components and wrappers currently
supported by rewx.
"""
import wx
import wx.adv
import wx.lib.scrolledpanel
import wx.media
ActivityIndicator = wx.ActivityIndicator
Button = wx.Button
BitmapButton = wx.BitmapButton
CalendarCtrl = wx.adv.CalendarCtrl
CheckBox = wx.CheckBox
# CollapsiblePane = wx.CollapsiblePa... | 20.957143 | 58 | 0.720518 |
7f3e241328fb148652ce6188714ae1004458cf72 | 3,733 | py | Python | test/blank_named_regtest.py | shraddha-pandhe/iscpy | 69173bb101dbc9e454c8050ba480fa4b2d0efc46 | [
"BSD-3-Clause"
] | null | null | null | test/blank_named_regtest.py | shraddha-pandhe/iscpy | 69173bb101dbc9e454c8050ba480fa4b2d0efc46 | [
"BSD-3-Clause"
] | null | null | null | test/blank_named_regtest.py | shraddha-pandhe/iscpy | 69173bb101dbc9e454c8050ba480fa4b2d0efc46 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2009, Purdue University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list ... | 40.139785 | 91 | 0.686579 |
7f3f0bcb734c5067a788e80bda49721133fbbbe5 | 4,247 | py | Python | oo/carro.py | RafaelLJC/pythonbirds | 43d401c6ef2b539ec45e19a218d0032de0435162 | [
"MIT"
] | null | null | null | oo/carro.py | RafaelLJC/pythonbirds | 43d401c6ef2b539ec45e19a218d0032de0435162 | [
"MIT"
] | null | null | null | oo/carro.py | RafaelLJC/pythonbirds | 43d401c6ef2b539ec45e19a218d0032de0435162 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 21 16:41:09 2020
@author: rafae
Exerccio
Voc deve criar uma classe carro que vai possuir dois atributos
compostos por outras duas classes:
1) motor;
2) Direo.
O motor ter a responsabilidade de controlar a velocidade.
Ele oferece os seguintes atributos:
1) Atributo de... | 23.859551 | 77 | 0.586296 |
7f4010676a7aac9aa896fa49d6f12bbf2ad6307d | 21 | py | Python | src/models/items/constants.py | MDRCS/deals-catcher | 0c2e344e402917cc284fbeb4d83c2829a08595aa | [
"MIT"
] | null | null | null | src/models/items/constants.py | MDRCS/deals-catcher | 0c2e344e402917cc284fbeb4d83c2829a08595aa | [
"MIT"
] | null | null | null | src/models/items/constants.py | MDRCS/deals-catcher | 0c2e344e402917cc284fbeb4d83c2829a08595aa | [
"MIT"
] | null | null | null | Collection = "items"
| 10.5 | 20 | 0.714286 |
7f42a433c6b582f0497ed7d135f6be1ed7ed4f11 | 3,829 | py | Python | before.py | PatrickLTI/Refactor-Code-Smell | 0c6c0369a39a3cbd375e541021165cccd5c1c1b5 | [
"MIT"
] | null | null | null | before.py | PatrickLTI/Refactor-Code-Smell | 0c6c0369a39a3cbd375e541021165cccd5c1c1b5 | [
"MIT"
] | null | null | null | before.py | PatrickLTI/Refactor-Code-Smell | 0c6c0369a39a3cbd375e541021165cccd5c1c1b5 | [
"MIT"
] | null | null | null | """
Very advanced Employee management system.
"""
from dataclasses import dataclass
from typing import List
FIXED_VACATION_DAYS_PAYOUT = 5 # The fixed nr of vacation days that can be paid out.
class Company:
"""Represents a company with employees."""
def add_employee(self, employee: Employee) -> None:
... | 31.130081 | 98 | 0.610342 |
7f4616f095924fa5eac33a11190968db43cccd4e | 261 | py | Python | python/decorator/function_transform_with_decorator.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/decorator/function_transform_with_decorator.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/decorator/function_transform_with_decorator.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null |
walkout() | 17.4 | 53 | 0.636015 |
7f46b98db9b94c982905dfaf5e2079f45ce4a9a6 | 850 | py | Python | logging_context/helpers.py | vuonglv1612/logging-context | beef9f11494d729bbb3f429fdd7cf69a29e0c527 | [
"MIT"
] | null | null | null | logging_context/helpers.py | vuonglv1612/logging-context | beef9f11494d729bbb3f429fdd7cf69a29e0c527 | [
"MIT"
] | null | null | null | logging_context/helpers.py | vuonglv1612/logging-context | beef9f11494d729bbb3f429fdd7cf69a29e0c527 | [
"MIT"
] | null | null | null | import functools
import logging
from typing import Callable
from logging_context.context.base import BaseContext
from .context import get_logging_context
| 31.481481 | 94 | 0.742353 |
7f4786e590d0a9418a3d92cb5ddc03d945909da4 | 6,840 | py | Python | script/proxycheck/check.py | kenshinx/rps | 3d141056f3512598525430ecc9ddb1ee79b887cf | [
"MIT"
] | 6 | 2017-06-20T09:44:03.000Z | 2018-07-28T06:44:10.000Z | script/proxycheck/check.py | kenshinx/rps | 3d141056f3512598525430ecc9ddb1ee79b887cf | [
"MIT"
] | null | null | null | script/proxycheck/check.py | kenshinx/rps | 3d141056f3512598525430ecc9ddb1ee79b887cf | [
"MIT"
] | 3 | 2017-09-23T16:48:18.000Z | 2018-05-26T19:12:12.000Z | #!/usr/bin/env python
import re
import sys
import time
import logging
import asyncore
import optparse
from datetime import datetime
import schedule
from pymongo import MongoReplicaSetClient, MongoClient
from async_s5 import AsyncSocks5Client
from async_http import AsyncHTTPClient
from async_http_tunnel import Async... | 31.232877 | 100 | 0.594591 |
7f48ff2758ca1da69efc97e333be34fa3b8a2d3b | 16,438 | py | Python | Notebook/KL Divergence Loop.py | yxie367/Mushrooms | 9b0fc5dfb6ab20c7c0c4146bff0d04de561302c5 | [
"MIT"
] | null | null | null | Notebook/KL Divergence Loop.py | yxie367/Mushrooms | 9b0fc5dfb6ab20c7c0c4146bff0d04de561302c5 | [
"MIT"
] | null | null | null | Notebook/KL Divergence Loop.py | yxie367/Mushrooms | 9b0fc5dfb6ab20c7c0c4146bff0d04de561302c5 | [
"MIT"
] | null | null | null | # %% [Algorithm 1c Loop]
# # MUSHROOMS
# %% [markdown]
# ## Binary Classification
# %% [markdown]
# ### Imports
# %%
import os
import pandas as pd
import numpy as np
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
# %% [markdown]
# ### Load Data
dataset = pd.read_csv(r"C:\User... | 27.673401 | 177 | 0.592469 |
7f490e0f83f0b93f89c7b7920c449eae9a2ea21b | 206 | py | Python | galaxydb/__init__.py | alantelles/galaxydb | 7eeeaae3c3f79736eade36a720fb1dc816570554 | [
"MIT"
] | 2 | 2019-03-15T17:14:16.000Z | 2019-03-15T20:47:14.000Z | galaxydb/__init__.py | alantelles/galaxydb | 7eeeaae3c3f79736eade36a720fb1dc816570554 | [
"MIT"
] | null | null | null | galaxydb/__init__.py | alantelles/galaxydb | 7eeeaae3c3f79736eade36a720fb1dc816570554 | [
"MIT"
] | null | null | null | from galaxydb.column import Column
from galaxydb.scheme import Scheme
from galaxydb.logic import Logic
from galaxydb.table import Table
from galaxydb.constants import *
from galaxydb.statics import *
| 29.428571 | 35 | 0.815534 |
7f495918acf00767d9fbeb784d409f5760173565 | 19,291 | py | Python | attic/library/kepler.py | vdods/heisenberg | 66921b80c2d035e5f10e0af4d0cec21d5470dbd1 | [
"MIT"
] | 3 | 2018-01-04T07:40:14.000Z | 2021-02-19T15:27:10.000Z | attic/library/kepler.py | vdods/heisenberg | 66921b80c2d035e5f10e0af4d0cec21d5470dbd1 | [
"MIT"
] | null | null | null | attic/library/kepler.py | vdods/heisenberg | 66921b80c2d035e5f10e0af4d0cec21d5470dbd1 | [
"MIT"
] | null | null | null | # NOTE: This changes a/b to produce a floating point approximation of that
# ratio, not the integer quotient. For integer quotient, use a//b instead.
from __future__ import division
import fourier_parameterization
import numpy as np
import multiindex
import symbolic
import sympy
import tensor
# TODO: look at and use... | 50.368146 | 220 | 0.696024 |
7f497463579627def6a6bc8b025032e2117e0a72 | 1,029 | py | Python | flaskr/tripods/tripod.py | ardtieboy/campy | dc59c62395aa45c0d125f6187a8a3b19521469d3 | [
"MIT"
] | null | null | null | flaskr/tripods/tripod.py | ardtieboy/campy | dc59c62395aa45c0d125f6187a8a3b19521469d3 | [
"MIT"
] | null | null | null | flaskr/tripods/tripod.py | ardtieboy/campy | dc59c62395aa45c0d125f6187a8a3b19521469d3 | [
"MIT"
] | null | null | null | import pantilthat | 30.264706 | 62 | 0.597668 |
7f49b39edb1cf25e08b2f0cebd80eaca4c038d5a | 5,592 | py | Python | mercury_engine_data_structures/pkg_editor.py | duncathan/mercury-engine-data-structures | 1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b | [
"MIT"
] | null | null | null | mercury_engine_data_structures/pkg_editor.py | duncathan/mercury-engine-data-structures | 1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b | [
"MIT"
] | null | null | null | mercury_engine_data_structures/pkg_editor.py | duncathan/mercury-engine-data-structures | 1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b | [
"MIT"
] | null | null | null | import collections
import contextlib
import os.path
import typing
from contextlib import ExitStack
from pathlib import Path
from typing import BinaryIO, Dict, Optional, Generator, Iterator, Set
from mercury_engine_data_structures import formats, dread_data
from mercury_engine_data_structures.formats.base_resource impo... | 40.817518 | 119 | 0.662375 |
7f4a8619142279843195d19ca55dc1994a765971 | 4,665 | py | Python | lrthubcore/users/api/views.py | xrojan/lrthub-core | 757189942c87f7136fd1f1fee536375d248d8233 | [
"BSD-3-Clause"
] | null | null | null | lrthubcore/users/api/views.py | xrojan/lrthub-core | 757189942c87f7136fd1f1fee536375d248d8233 | [
"BSD-3-Clause"
] | null | null | null | lrthubcore/users/api/views.py | xrojan/lrthub-core | 757189942c87f7136fd1f1fee536375d248d8233 | [
"BSD-3-Clause"
] | null | null | null | # Created by Joshua de Guzman on 09/07/2018
# @email code@jmdg.io
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status, generi... | 37.620968 | 82 | 0.653805 |
7f4a9a45f9839d4156f378a8a84cdc5c95302052 | 837 | py | Python | tests/test_api_key.py | sodrooome/bmaclient | 8d3609a63e3e2576642ecde77245ee0b02225e31 | [
"MIT"
] | null | null | null | tests/test_api_key.py | sodrooome/bmaclient | 8d3609a63e3e2576642ecde77245ee0b02225e31 | [
"MIT"
] | null | null | null | tests/test_api_key.py | sodrooome/bmaclient | 8d3609a63e3e2576642ecde77245ee0b02225e31 | [
"MIT"
] | null | null | null | import os
import unittest
from bmaclient.utils import get_api_key_from_file
DATA_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
if __name__ == '__main__':
unittest.main()
| 28.862069 | 75 | 0.706093 |
7f4c0b226d7280aa82d0b514ec3937f568c281d1 | 498 | py | Python | planner/forms.py | celord/mealprep | c51329dd86953963d0e0405e9a929553eca1e2cf | [
"MIT"
] | null | null | null | planner/forms.py | celord/mealprep | c51329dd86953963d0e0405e9a929553eca1e2cf | [
"MIT"
] | null | null | null | planner/forms.py | celord/mealprep | c51329dd86953963d0e0405e9a929553eca1e2cf | [
"MIT"
] | null | null | null | from django import forms
from django.forms import ModelForm
from .models import Plan
| 19.92 | 67 | 0.512048 |
7f4c4a6d4785bd3dfed7a18ec25a7e8626976917 | 2,856 | py | Python | lib/harm_plot.py | pnlbwh/multi-shell-dMRIharmonization | 46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8 | [
"CNRI-Python",
"Info-ZIP"
] | 4 | 2020-04-28T15:31:07.000Z | 2022-02-15T07:04:21.000Z | lib/harm_plot.py | pnlbwh/multi-shell-dMRIharmonization | 46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8 | [
"CNRI-Python",
"Info-ZIP"
] | 30 | 2019-11-10T20:51:34.000Z | 2021-04-19T19:08:14.000Z | lib/harm_plot.py | pnlbwh/multi-shell-dMRIharmonization | 46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8 | [
"CNRI-Python",
"Info-ZIP"
] | 3 | 2019-10-18T16:06:03.000Z | 2021-02-21T01:10:45.000Z | #!/usr/bin/env python
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pandas as pd
from conversion import read_imgs_masks
from os.path import isfile, basename
XERR=0.1
ELINEWIDTH=3
CAPSIZE=5
CAPTHICK=3
FMT='cD'
def harm_plot(ydata, labels, outPrefix, bshell_b):
'... | 27.2 | 100 | 0.619748 |
7f4c6dcef66737c0d797d459d092bd0f3dc07425 | 1,913 | py | Python | tests/test_preproc_badframes.py | ChrisDelaX/VIP | 7b728bdc78fdeb693e19de269ddfffba15064fb4 | [
"MIT"
] | 2 | 2017-02-10T02:02:17.000Z | 2018-02-16T16:07:24.000Z | tests/test_preproc_badframes.py | ChrisDelaX/VIP | 7b728bdc78fdeb693e19de269ddfffba15064fb4 | [
"MIT"
] | null | null | null | tests/test_preproc_badframes.py | ChrisDelaX/VIP | 7b728bdc78fdeb693e19de269ddfffba15064fb4 | [
"MIT"
] | 2 | 2020-07-18T19:31:03.000Z | 2022-01-24T21:11:20.000Z | """
Tests for the badframes detection routines.
"""
import numpy as np
import vip_hci as vip
| 39.854167 | 80 | 0.531103 |
7f4d15cfb3ed6c16d32e8b711404ca08ebd94da8 | 13,774 | py | Python | DE_rpy2.py | jhonP-Li/DE_rpy2 | 460724631527dc386a35268b9f923ab5c708166a | [
"MIT"
] | 6 | 2021-05-02T09:15:59.000Z | 2022-03-27T23:41:41.000Z | DE_rpy2.py | jhonP-Li/DE_rpy2 | 460724631527dc386a35268b9f923ab5c708166a | [
"MIT"
] | null | null | null | DE_rpy2.py | jhonP-Li/DE_rpy2 | 460724631527dc386a35268b9f923ab5c708166a | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 Li Pan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 43.726984 | 121 | 0.614709 |
7f4dddafff562d1d609415b1456d1843f25b7c47 | 3,049 | py | Python | cgatpipelines/tools/pipeline_docs/pipeline_rnaseqdiffexpression/trackers/Results.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | cgatpipelines/tools/pipeline_docs/pipeline_rnaseqdiffexpression/trackers/Results.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | cgatpipelines/tools/pipeline_docs/pipeline_rnaseqdiffexpression/trackers/Results.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z |
from CGATReport.Tracker import *
from CGATReport.Utils import PARAMS as P
from IsoformReport import *
###############################################################################
# parse params
###############################################################################
DATABASE = P.get('', P.get('sql_backend'... | 30.49 | 79 | 0.608396 |
7f4f7c16103c58deb5243e5a653fd451eaf61603 | 2,063 | py | Python | semseg/datasets/celebamaskhq.py | Genevievekim/semantic-segmentation-1 | f28b026e44cff80fe3ca4cac94cea27e4073821b | [
"BSD-3-Clause"
] | 196 | 2021-08-22T10:01:34.000Z | 2022-03-29T09:59:51.000Z | semseg/datasets/celebamaskhq.py | Genevievekim/semantic-segmentation-1 | f28b026e44cff80fe3ca4cac94cea27e4073821b | [
"BSD-3-Clause"
] | 21 | 2021-08-22T09:59:02.000Z | 2022-03-29T15:22:46.000Z | semseg/datasets/celebamaskhq.py | Genevievekim/semantic-segmentation-1 | f28b026e44cff80fe3ca4cac94cea27e4073821b | [
"BSD-3-Clause"
] | 36 | 2021-08-22T08:59:40.000Z | 2022-03-28T10:13:20.000Z | import torch
from torch import Tensor
from torch.utils.data import Dataset
from torchvision import io
from pathlib import Path
from typing import Tuple
from torchvision import transforms as T
if __name__ == '__main__':
from semseg.utils.visualize import visualize_dataset_sample
visualize_dataset_sample(Cele... | 38.924528 | 150 | 0.593311 |
7f54beba2b06ca2509ee89c2efe002bfd7c05562 | 282,158 | py | Python | gui/py37/images_rc.py | briansune/UART2ETHERNET_MODULE | 6ace3f5a7a75365d4d8c3d0e17b9368832237464 | [
"MIT"
] | 1 | 2022-03-30T20:37:33.000Z | 2022-03-30T20:37:33.000Z | gui/py37/images_rc.py | briansune/UART2ETHERNET_MODULE | 6ace3f5a7a75365d4d8c3d0e17b9368832237464 | [
"MIT"
] | null | null | null | gui/py37/images_rc.py | briansune/UART2ETHERNET_MODULE | 6ace3f5a7a75365d4d8c3d0e17b9368832237464 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.9.6)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x2d\x15\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\xc8\x0... | 65.284128 | 105 | 0.727202 |
7f5625881c7046dfae33e15d82f6f91717dbc467 | 430 | py | Python | PYTHON/pythonDesafios/desafio062.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | PYTHON/pythonDesafios/desafio062.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | PYTHON/pythonDesafios/desafio062.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | print('Gerador de PA\n','==-'*10)
primeiro = int(input('Primeiro termo:'))
razao = int(input('Razao da PA:'))
termo = primeiro
c = 1
total = 0
mais = 10
while mais != 0:
total = total + mais
while c <= total:
print(f'{termo} ->', end='')
c += 1
termo += razao
print('PAUSA')
mais ... | 25.294118 | 65 | 0.583721 |
7f57b8e3e5f7d093c4f07748cc4cc4d938880d93 | 4,409 | py | Python | codes/Lib/site-packages/RsInstrument/Internal/ConverterToScpiString.py | charlescayno/automation | a4a34d87f372d49fd69740ad3ca46ae19bf2612d | [
"MIT"
] | null | null | null | codes/Lib/site-packages/RsInstrument/Internal/ConverterToScpiString.py | charlescayno/automation | a4a34d87f372d49fd69740ad3ca46ae19bf2612d | [
"MIT"
] | null | null | null | codes/Lib/site-packages/RsInstrument/Internal/ConverterToScpiString.py | charlescayno/automation | a4a34d87f372d49fd69740ad3ca46ae19bf2612d | [
"MIT"
] | null | null | null | from enum import Enum
from .Conversions import list_to_csv_quoted_str, value_to_quoted_str, list_to_csv_str, value_to_str, enum_list_to_str, enum_scalar_to_str
from .Types import DataType
def value_to_scpi_string(data, data_type: DataType):
"""Method to be used in the driver implementation.
Convert data to SCPI st... | 54.432099 | 219 | 0.756181 |
7f57d7df7fd0834188bfe8a6c66e64ecd0ee8e3e | 565 | py | Python | examples/example_interactive_prefix/main.py | David-Lor/Python-DotEnv-Settings-Handler | ca234914a93f94f59a8a37e65ff9010ffc9c4e99 | [
"Apache-2.0"
] | 6 | 2019-06-30T14:49:28.000Z | 2020-03-10T19:56:30.000Z | examples/example_interactive_prefix/main.py | David-Lor/Python-DotEnv-Settings-Handler | ca234914a93f94f59a8a37e65ff9010ffc9c4e99 | [
"Apache-2.0"
] | null | null | null | examples/example_interactive_prefix/main.py | David-Lor/Python-DotEnv-Settings-Handler | ca234914a93f94f59a8a37e65ff9010ffc9c4e99 | [
"Apache-2.0"
] | null | null | null | """This example read the settings and print them out, so you can check how they get loaded.
"""
# noinspection PyUnresolvedReferences,PyPackageRequirements
from settings import my_settings as settings
print("Redis Host:", settings.redis_host)
print("Redis Port:", settings.redis_port)
print("Redis Port / 2:", settings... | 40.357143 | 91 | 0.753982 |
7f58ffa14e511fa65d58d25693bfa7dcc12acb63 | 1,109 | py | Python | Datasets/Generator/Disaster/main.py | undraaa/m2bench | b661b61ca04470ed1c9c50531ce760a2cd5000d9 | [
"RSA-MD"
] | null | null | null | Datasets/Generator/Disaster/main.py | undraaa/m2bench | b661b61ca04470ed1c9c50531ce760a2cd5000d9 | [
"RSA-MD"
] | null | null | null | Datasets/Generator/Disaster/main.py | undraaa/m2bench | b661b61ca04470ed1c9c50531ce760a2cd5000d9 | [
"RSA-MD"
] | null | null | null | import sys
import table_gen
import doc_gen
import graph_gen
import array_gen
import os
if __name__ == '__main__':
main(sys.argv) | 25.790698 | 58 | 0.71596 |
7f5e9b1cd835e4eff21472b20f8a3b722d2a03e6 | 4,450 | py | Python | MultiPManager/distProc.py | sebastiantrianac/SoftTLON | 3b798393efbd49b4a22acf19a056d64bef1d0ddf | [
"MIT"
] | null | null | null | MultiPManager/distProc.py | sebastiantrianac/SoftTLON | 3b798393efbd49b4a22acf19a056d64bef1d0ddf | [
"MIT"
] | null | null | null | MultiPManager/distProc.py | sebastiantrianac/SoftTLON | 3b798393efbd49b4a22acf19a056d64bef1d0ddf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
#
# A module for create a multi-agent system over Ad-hoc networks
# Copyright (C) 2017-2018
# Juan Sebastian Triana Correa <justrianaco@unal.edu.co>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as publ... | 32.481752 | 97 | 0.704494 |
7f60669d9c8f83bdc7550f5d0401483d476b3958 | 1,565 | py | Python | setup.py | charlesthomas/testrail_reporter | bc522ed3a66aee38c21cc45e2d3b9a786df45e02 | [
"MIT"
] | null | null | null | setup.py | charlesthomas/testrail_reporter | bc522ed3a66aee38c21cc45e2d3b9a786df45e02 | [
"MIT"
] | null | null | null | setup.py | charlesthomas/testrail_reporter | bc522ed3a66aee38c21cc45e2d3b9a786df45e02 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
NAME = 'testrail_reporter'
DESCRIPTION = 'Nosetests Plugin to Report Test Results to TestRail.'
VERSION = open('VERSION').read().strip()
LONG_DESC = open('README.rst').read()
LICENSE = open('LICENSE').read()
setup(
name=NAME,
version=VERSION,
author='Char... | 36.395349 | 98 | 0.645367 |
7f60d515f24c5c7adbd364f7654c2e0099fc891b | 871 | py | Python | bleach__examples__remove_tags__clear_html/escape_protocols.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | bleach__examples__remove_tags__clear_html/escape_protocols.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | bleach__examples__remove_tags__clear_html/escape_protocols.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://github.com/mozilla/bleach
# SOURCE: https://bleach.readthedocs.io/en/latest/clean.html#allowed-protocols-protocols
# pip install bleach
import bleach
# List of allowed protocols
print('List of allowed protocols:', bleach.san... | 21.243902 | 88 | 0.641791 |
7f6302ecae4a93f7afb3564d0a9c878a96bd226e | 4,920 | py | Python | test/test_entity_builder.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | test/test_entity_builder.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | test/test_entity_builder.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | import symro
import symro.src.handlers.metaentitybuilder as eb
from symro.src.parsing.amplparser import AMPLParser
from symro.test.test_util import *
# Scripts
# ----------------------------------------------------------------------------------------------------------------------
FIXED_DIM_SCRIPT = """
set I = {1, 2... | 36.176471 | 120 | 0.641057 |