hexsha stringlengths 40 40 | size int64 2 1.05M | ext stringclasses 9
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 193 | max_stars_repo_name stringlengths 6 109 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 36.6k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 193 | max_issues_repo_name stringlengths 6 109 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 29.8k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 193 | max_forks_repo_name stringlengths 6 109 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 11.2k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 1.05M | avg_line_length float64 1 404k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33a6f91098d3ddbb0dc4f031b8def5a64edf79bc | 1,029 | py | Python | tests/platonpm/validation/test_manifest_assets_are_valid.py | shinnng/platon.py | 3197fac3839896290210da04dd0d45f0bdc731ce | [
"MIT"
] | null | null | null | tests/platonpm/validation/test_manifest_assets_are_valid.py | shinnng/platon.py | 3197fac3839896290210da04dd0d45f0bdc731ce | [
"MIT"
] | null | null | null | tests/platonpm/validation/test_manifest_assets_are_valid.py | shinnng/platon.py | 3197fac3839896290210da04dd0d45f0bdc731ce | [
"MIT"
] | null | null | null | import json
import pytest
from platonpm import (
ASSETS_DIR,
)
from platonpm.exceptions import (
InsufficientAssetsError,
)
from platonpm.validation.manifest import (
validate_manifest_against_schema,
)
SOURCES_GLOB = "**/*.json"
def get_all_manifest_paths():
# Expects all json in platonpm/assets to... | 27.078947 | 84 | 0.730807 |
33a6fe85372616158374c66c1724477137ab6c10 | 2,470 | py | Python | experiments/ashvin/vae/fixed3/pusher2d/state_sparse_exploration.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | experiments/ashvin/vae/fixed3/pusher2d/state_sparse_exploration.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | experiments/ashvin/vae/fixed3/pusher2d/state_sparse_exploration.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv
from rlkit.envs.multitask.pusher2d import FullPusher2DEnv
from rlkit.launchers.arglauncher import run_variants
import rlkit.misc.hyperparameter as hyp
from rlkit.torch.vae.relabeled_vae_experiment import experiment
if __name__ == "__main__":
# noin... | 32.077922 | 73 | 0.596761 |
33a71b836ae29623def25555176fe0a31b2e4c4f | 273 | py | Python | sitegate/repo.py | idlesign/django-sitegate | ae53fa7f40e9ead0e4201bd7787682a9f1a3a122 | [
"BSD-3-Clause"
] | 19 | 2015-04-09T04:56:07.000Z | 2019-12-26T03:56:42.000Z | sitegate/repo.py | idlesign/django-sitegate | ae53fa7f40e9ead0e4201bd7787682a9f1a3a122 | [
"BSD-3-Clause"
] | 9 | 2015-04-19T10:20:07.000Z | 2017-05-15T20:29:25.000Z | sitegate/repo.py | idlesign/django-sitegate | ae53fa7f40e9ead0e4201bd7787682a9f1a3a122 | [
"BSD-3-Clause"
] | 4 | 2015-08-25T18:13:12.000Z | 2017-09-17T05:32:25.000Z | from typing import List
ANONYMOUS_MAILERS: List[str] = [
'3a.by',
'dispostable.com',
'grandmamail.com',
'harakirimail.com',
'lackmail.ru',
'maildrop.cc',
'mailinator.com',
]
"""Known anonymous mailing hosts to be used in BlacklistedDomain."""
| 19.5 | 68 | 0.648352 |
33a7478b91ad6d7c5089b7b672f7072ff3a0156d | 983 | py | Python | cms/apps.py | pbs/django-cms | f230e63f98fafb75beb3956328021f8976564c96 | [
"BSD-3-Clause"
] | null | null | null | cms/apps.py | pbs/django-cms | f230e63f98fafb75beb3956328021f8976564c96 | [
"BSD-3-Clause"
] | 9 | 2015-06-25T10:31:12.000Z | 2022-03-12T00:41:22.000Z | cms/apps.py | pbs/django-cms | f230e63f98fafb75beb3956328021f8976564c96 | [
"BSD-3-Clause"
] | 1 | 2017-08-22T07:00:30.000Z | 2017-08-22T07:00:30.000Z | from django.apps import AppConfig
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from cms.conf import global_settings
from cms.conf.patch import pre_patch, post_patch, post_patch_check
class CMSConfig(AppConfig):
name = 'cms'
verbose_name = _("django CMS")
def __... | 33.896552 | 83 | 0.670397 |
33a76e6efa94e4e5d1b081052df7a11d9e93e2ad | 4,064 | py | Python | alipay/aop/api/request/AlipayCommerceEducateCompetitionResultNotifyRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/request/AlipayCommerceEducateCompetitionResultNotifyRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/request/AlipayCommerceEducateCompetitionResultNotifyRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCommerceEducateCompetitionResultNotifyModel import AlipayCommerceEducateCompetitionResultNotifyModel
class AlipayCommerceEduca... | 28.027586 | 148 | 0.652559 |
33a777d621b4a11a04bbc22d4c63b63044db028d | 3,183 | py | Python | alipay/aop/api/request/AlipayOpenIotbpaasDeviceUnbindRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/request/AlipayOpenIotbpaasDeviceUnbindRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/request/AlipayOpenIotbpaasDeviceUnbindRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenIotbpaasDeviceUnbindRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._version = "1.0"... | 24.867188 | 142 | 0.635878 |
33a77d5aa4b38bc36b8b6fbc8ed61998f2e16e69 | 2,915 | py | Python | services/director/src/simcore_service_director/exceptions.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | services/director/src/simcore_service_director/exceptions.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | 2 | 2018-05-13T09:10:57.000Z | 2019-03-06T08:10:40.000Z | services/director/src/simcore_service_director/exceptions.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | """ Defines the different exceptions that may arise in the director
TODO: Exceptions should provide all info to create Error instances of the API model
For instance, assume there is a ficticious exception class FieldValidationError, then it would
translate into something like
// response - 422
{
"error": ... | 38.355263 | 95 | 0.677873 |
33a79e9d000bbe26c070a508b8f65108896679fc | 4,995 | py | Python | nova/api/openstack/compute/flavors.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2016-04-28T16:20:38.000Z | 2021-04-25T11:19:03.000Z | nova/api/openstack/compute/flavors.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2016-07-11T20:59:47.000Z | 2020-07-28T09:56:35.000Z | nova/api/openstack/compute/flavors.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2020-04-08T20:24:45.000Z | 2020-10-05T19:02:13.000Z | # Copyright 2010 OpenStack Foundation
# 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... | 35.935252 | 79 | 0.623023 |
33a7a455a0573b769c6fea5ceb6415611542b0ba | 5,504 | py | Python | src/updateEdgeAttribute.py | ashish-code/gps-denied-geospatial-positioning | 5006b963e0b8fe50b0cabd5e3a9deb6aeb2416f2 | [
"MIT"
] | 2 | 2021-09-07T14:15:50.000Z | 2021-12-27T06:04:54.000Z | src/updateEdgeAttribute.py | ashish-code/gps-denied-geospatial-positioning | 5006b963e0b8fe50b0cabd5e3a9deb6aeb2416f2 | [
"MIT"
] | null | null | null | src/updateEdgeAttribute.py | ashish-code/gps-denied-geospatial-positioning | 5006b963e0b8fe50b0cabd5e3a9deb6aeb2416f2 | [
"MIT"
] | null | null | null | '''
Created on Sep 9, 2015
@author: ash
'''
import networkx as nx
import matplotlib.pyplot as plt
import random
import math
import numpy as np
import os
import sys
from scipy import interpolate
from scipy.interpolate import interp1d, UnivariateSpline , splprep, splev
from numpy import arange, cos, linspace, pi, sin... | 29.913043 | 112 | 0.589026 |
33a7b09e87fb48d8d71dcd9bc297cd861705f9a3 | 6,156 | py | Python | jobs/preprocess.py | CubeSkyy/ILU-RL | 676d88587e1d8638487de1b5a3f8785a7375ad1a | [
"MIT"
] | null | null | null | jobs/preprocess.py | CubeSkyy/ILU-RL | 676d88587e1d8638487de1b5a3f8785a7375ad1a | [
"MIT"
] | null | null | null | jobs/preprocess.py | CubeSkyy/ILU-RL | 676d88587e1d8638487de1b5a3f8785a7375ad1a | [
"MIT"
] | null | null | null | """Baseline:
* uses train script for setting up experiment
* has to have a command line `tls_type`: `actuated`, `static`
TODO: Include config for evaluation
"""
from collections import defaultdict
from os import environ
from pathlib import Path
from datetime import datetime
import json
import tempfile
impor... | 31.896373 | 92 | 0.636127 |
33a7e36bdc3acb7f866909a2f280601446278830 | 3,402 | py | Python | src/test/tests/databases/metadata.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 226 | 2018-12-29T01:13:49.000Z | 2022-03-30T19:16:31.000Z | src/test/tests/databases/metadata.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 5,100 | 2019-01-14T18:19:25.000Z | 2022-03-31T23:08:36.000Z | src/test/tests/databases/metadata.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 84 | 2019-01-24T17:41:50.000Z | 2022-03-10T10:01:46.000Z | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: metadata.py
#
# Tests: Getting a usable metadata object from the viewer.
#
# Programmer: Brad Whitlock
# Date: Wed Mar 14 16:40:31 PST 2007
#
# Modifications:
#
# Mark C. Miller, Wed Jan... | 30.375 | 78 | 0.587889 |
33a80dae13ec49dba8ae65f25a515c4029ef71aa | 597 | py | Python | src/assignments/test_assign6.py | acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino | c2ee6a9914383716347765f148d2d15b9e3211b7 | [
"MIT"
] | null | null | null | src/assignments/test_assign6.py | acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino | c2ee6a9914383716347765f148d2d15b9e3211b7 | [
"MIT"
] | 1 | 2018-02-03T03:41:28.000Z | 2018-02-03T03:41:28.000Z | src/assignments/test_assign6.py | acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino | c2ee6a9914383716347765f148d2d15b9e3211b7 | [
"MIT"
] | 1 | 2018-04-13T01:17:50.000Z | 2018-04-13T01:17:50.000Z | import unittest
#write the import for function get_count_A_C_G_and_T_in_string
class Test_Assign6(unittest.TestCase):
def test_countACGT_w_string_ATGCTTCAGAAAGGTCTTACG(self):
'''
Create a test case to test the count of As, Cs, Gs, and Ts in string ATGCTTCAGAAAGGTCTTACG
'''
def test_... | 33.166667 | 109 | 0.748744 |
33a8357d09764e40669f376f27bcfd39df8d83ec | 1,003 | py | Python | src/sns_logger/sns_logger.py | edyesed/aws_advent_2015 | 162aef7aadd8c72c5e600271ab653bbdd74a6e7e | [
"Apache-2.0"
] | null | null | null | src/sns_logger/sns_logger.py | edyesed/aws_advent_2015 | 162aef7aadd8c72c5e600271ab653bbdd74a6e7e | [
"Apache-2.0"
] | null | null | null | src/sns_logger/sns_logger.py | edyesed/aws_advent_2015 | 162aef7aadd8c72c5e600271ab653bbdd74a6e7e | [
"Apache-2.0"
] | 2 | 2016-11-27T22:50:26.000Z | 2016-11-30T12:04:05.000Z | from __future__ import print_function
import time
import os
import json
import urlparse
import boto3
def handler(event, context):
"""
This function puts into dynamo and get from it.
"""
message = event['Records'][0]['Sns']['Message']
# xxx print("Started up")
# xxx print("message Below")
#... | 28.657143 | 72 | 0.662014 |
33a83e9878e04461fc79ed211fa7683936a504fa | 503 | py | Python | almonds/tests/test_logger.py | Tenchi2xh/Almonds | 6b27024729f055f2cb5e14ae3ca3cb428ae054bc | [
"MIT"
] | 45 | 2015-10-16T10:25:40.000Z | 2022-03-23T00:54:47.000Z | almonds/tests/test_logger.py | Tenchi2xh/Almonds | 6b27024729f055f2cb5e14ae3ca3cb428ae054bc | [
"MIT"
] | 9 | 2015-10-15T09:55:05.000Z | 2022-01-02T13:44:48.000Z | almonds/tests/test_logger.py | Tenchi2xh/Almonds | 6b27024729f055f2cb5e14ae3ca3cb428ae054bc | [
"MIT"
] | 3 | 2015-12-27T09:44:50.000Z | 2017-12-21T14:00:19.000Z | # -*- encoding: utf-8 -*-
import pytest
from ..logger import *
from ..utils import range
def test_empty():
log = Logger()
with pytest.raises(IndexError) as excinfo:
_ = log[0]
def test_log():
log = Logger()
for i in range(100):
log(i)
assert log[i].split(" ")[1] == str(i)
... | 17.344828 | 57 | 0.564612 |
33a8576896559c6c4641c936ef7a5efca444d38a | 1,639 | py | Python | scripts/bot/bot.py | cfh294/machinedriling | 88c5f89d6c65594941fd0071b704f561df6ac0cb | [
"MIT"
] | null | null | null | scripts/bot/bot.py | cfh294/machinedriling | 88c5f89d6c65594941fd0071b704f561df6ac0cb | [
"MIT"
] | 5 | 2020-09-26T00:30:29.000Z | 2022-02-10T00:39:24.000Z | scripts/bot/bot.py | cfh294/machinedriling | 88c5f89d6c65594941fd0071b704f561df6ac0cb | [
"MIT"
] | 1 | 2020-05-05T04:14:00.000Z | 2020-05-05T04:14:00.000Z | #!/usr/bin/env python3
import os
import gpt_2_simple as gpt2
import fire
import tweepy
import tqdm
import random
from pathlib import Path
from dotenv import load_dotenv
# root directory
load_dotenv(".env")
def generate_tweets(run, sess):
"""
Generate a couple tweets from our already
trained and tuned mo... | 22.148649 | 85 | 0.663819 |
33a8658b2936b1b52ebbcb564252c493666cfe03 | 19,638 | py | Python | srcs/datagen.py | noambuckman/PIXOR | 70a7033874ac1f84baa307049b2891ebc4db83d2 | [
"MIT"
] | null | null | null | srcs/datagen.py | noambuckman/PIXOR | 70a7033874ac1f84baa307049b2891ebc4db83d2 | [
"MIT"
] | null | null | null | srcs/datagen.py | noambuckman/PIXOR | 70a7033874ac1f84baa307049b2891ebc4db83d2 | [
"MIT"
] | null | null | null | '''
Load pointcloud/labels from the KITTI dataset folder
'''
import os.path
import numpy as np
import time
import torch
from utils import load_config, get_discretization_from_geom, plot_bev, get_points_in_a_rotated_box, get_points_in_a_rotated_box_metric, plot_label_map, transform_metric2label, transform_label2metric
f... | 36.775281 | 198 | 0.587789 |
33a8885d6b17dacee1fd38aab2f29366b04df510 | 3,336 | py | Python | tensorflow_compression/python/layers/gdn_test.py | yuhongjiu/compression | 54d66a632ffb13b2ccdf676128352ec4dc0f361e | [
"Apache-2.0"
] | 10 | 2021-01-10T10:15:14.000Z | 2022-01-20T14:40:11.000Z | tensorflow_compression/python/layers/gdn_test.py | yuhongjiu/compression | 54d66a632ffb13b2ccdf676128352ec4dc0f361e | [
"Apache-2.0"
] | 2 | 2021-01-12T08:02:43.000Z | 2021-07-22T08:37:56.000Z | tensorflow_compression/python/layers/gdn_test.py | yuhongjiu/compression | 54d66a632ffb13b2ccdf676128352ec4dc0f361e | [
"Apache-2.0"
] | 1 | 2022-01-24T05:38:35.000Z | 2022-01-24T05:38:35.000Z | # Lint as: python3
# Copyright 2018 Google LLC. 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.7 | 80 | 0.673561 |
33a88a0ba32076a0deb93528bd8c0dadc30429a0 | 2,771 | py | Python | tests/unit/examples/utils/test_trajectories.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 40 | 2021-03-24T10:41:56.000Z | 2022-03-15T09:50:47.000Z | tests/unit/examples/utils/test_trajectories.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 12 | 2021-03-25T18:36:27.000Z | 2021-07-27T11:09:34.000Z | tests/unit/examples/utils/test_trajectories.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 3 | 2021-04-25T03:18:44.000Z | 2021-11-14T15:54:34.000Z | # Copyright 2021 The Bellman Contributors
#
# 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... | 36.460526 | 92 | 0.78275 |
33a89e8ff66db52fd5e754d49fcf248fcd022942 | 3,729 | py | Python | regparser/tree/interpretation.py | cfpb/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 36 | 2015-01-05T21:17:36.000Z | 2020-04-28T21:02:55.000Z | regparser/tree/interpretation.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 49 | 2015-01-28T15:54:25.000Z | 2018-08-20T20:20:08.000Z | regparser/tree/interpretation.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 23 | 2015-01-28T15:34:18.000Z | 2021-02-20T10:53:34.000Z | from itertools import takewhile
import logging
from regparser import utils
from regparser.citations import internal_citations, Label
from regparser.grammar import unified
import regparser.grammar.interpretation_headers as grammar
from regparser.tree.paragraph import ParagraphParser
from regparser.tree.struct import No... | 36.203883 | 79 | 0.655672 |
33a8a5c0c097c23be68d4928a55ae6ecccbc45ad | 2,299 | py | Python | oscar/lib/python2.7/site-packages/phonenumbers/data/region_AL.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/data/region_AL.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/data/region_AL.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | """Auto-generated file, do not edit by hand. AL metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AL = PhoneMetadata(id='AL', country_code=355, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[2-57]\\d{7}|6\\d{8}|8\\d{5,7}|9\\d{... | 121 | 525 | 0.638538 |
33a8c67e2d68de80efea504be3ff8c7623fe5800 | 3,613 | py | Python | Aula16/web.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | Aula16/web.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | Aula16/web.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | #--- Importação da classe e funções do flask
#--- Primeiro informando para a instrução 'from' de qual módulo será importado
#--- Depois informando cada classe e função do flask que será utilizada
from flask import Flask, render_template, redirect, request
#--- Importação das funções para manipulação de faixa musical qu... | 64.517857 | 147 | 0.744257 |
33a8d9c498aaed1e8a1eeaa0a68748a03c5980fd | 2,994 | py | Python | ngsvtools/sam/data/shortread.py | xcoo/ngsv-tools | 3afe26e58d5d6ddcbb5891971ce0f8c9fb97e727 | [
"Apache-2.0"
] | null | null | null | ngsvtools/sam/data/shortread.py | xcoo/ngsv-tools | 3afe26e58d5d6ddcbb5891971ce0f8c9fb97e727 | [
"Apache-2.0"
] | null | null | null | ngsvtools/sam/data/shortread.py | xcoo/ngsv-tools | 3afe26e58d5d6ddcbb5891971ce0f8c9fb97e727 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# ngsv-console
# http://github.com/xcoo/ngsv-console
# Copyright (C) 2012, Xcoo, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.or... | 32.543478 | 240 | 0.52839 |
33a8f35de4e33f5e6314bd9e2782c7495a319077 | 46 | py | Python | adapters/pox/ext/debugger/elt/message_server/__init__.py | ARCCN/elt | 3bf4e6cc0c7abbe442d6513ed294e956143c3bea | [
"BSD-3-Clause"
] | 1 | 2016-07-14T14:45:56.000Z | 2016-07-14T14:45:56.000Z | adapters/pox/ext/debugger/elt/message_server/__init__.py | ARCCN/elt | 3bf4e6cc0c7abbe442d6513ed294e956143c3bea | [
"BSD-3-Clause"
] | null | null | null | adapters/pox/ext/debugger/elt/message_server/__init__.py | ARCCN/elt | 3bf4e6cc0c7abbe442d6513ed294e956143c3bea | [
"BSD-3-Clause"
] | null | null | null | from .messages import Message, ClosingMessage
| 23 | 45 | 0.847826 |
33a9060d9ddc673f745cece2088f2862f63180ac | 2,475 | py | Python | google-cloud-sdk/lib/surface/config/configurations/describe.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2017-11-29T18:52:27.000Z | 2017-11-29T18:52:27.000Z | google-cloud-sdk/.install/.backup/lib/surface/config/configurations/describe.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/.install/.backup/lib/surface/config/configurations/describe.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2020-07-25T12:09:01.000Z | 2020-07-25T12:09:01.000Z | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 33 | 79 | 0.694949 |
33a913da9962d2b67b39c1e1e043d0df4c9da356 | 24,378 | py | Python | tests/gpuarray/test_scan.py | anirudhacharya/Theano-PyMC | 55f54243cf88397b032ebc7121d1090ee91aea7d | [
"BSD-3-Clause"
] | null | null | null | tests/gpuarray/test_scan.py | anirudhacharya/Theano-PyMC | 55f54243cf88397b032ebc7121d1090ee91aea7d | [
"BSD-3-Clause"
] | null | null | null | tests/gpuarray/test_scan.py | anirudhacharya/Theano-PyMC | 55f54243cf88397b032ebc7121d1090ee91aea7d | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pytest
import aesara
import aesara.sandbox.rng_mrg
from aesara import gpuarray
from aesara import tensor as at
from aesara.gpuarray.basic_ops import GpuFromHost, HostFromGpu
from aesara.gpuarray.elemwise import GpuElemwise
from aesara.scan.basic import scan
from aesara.scan.checkpoints import... | 33.486264 | 87 | 0.570227 |
33a924741d706d4fb5ca2ff7549dbbbe5b442826 | 1,291 | py | Python | setup.py | aaboffill/django-allmedia | 67ef405623574d90abf9eefac9a512f609300775 | [
"BSD-3-Clause"
] | null | null | null | setup.py | aaboffill/django-allmedia | 67ef405623574d90abf9eefac9a512f609300775 | [
"BSD-3-Clause"
] | null | null | null | setup.py | aaboffill/django-allmedia | 67ef405623574d90abf9eefac9a512f609300775 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="django-allmedia",
url="http://github.com/suselrd/django-allmedia/",
author="Susel Ruiz Duran",
author_email="suselrd@gmail.com",
version="1.0.20",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
descriptio... | 34.891892 | 69 | 0.501936 |
33a929bd9e141cdaa14f305abd219d3ef1a89085 | 36,132 | py | Python | neuro-sdk/src/neuro_sdk/storage.py | neuro-inc/platform-client-python | 012e355249ea900b76f9ce4209fb9d029652f9b2 | [
"Apache-2.0"
] | 11 | 2020-10-11T15:38:11.000Z | 2021-11-09T11:29:50.000Z | neuro-sdk/src/neuro_sdk/storage.py | neuro-inc/platform-client-python | 012e355249ea900b76f9ce4209fb9d029652f9b2 | [
"Apache-2.0"
] | 611 | 2020-09-30T21:27:52.000Z | 2022-01-10T10:44:44.000Z | neuro-sdk/src/neuro_sdk/storage.py | neuro-inc/platform-client-python | 012e355249ea900b76f9ce4209fb9d029652f9b2 | [
"Apache-2.0"
] | 1 | 2020-10-05T15:10:24.000Z | 2020-10-05T15:10:24.000Z | import asyncio
import enum
import errno
import fnmatch
import json
import logging
import os
import re
import time
import warnings
from dataclasses import dataclass
from email.utils import parsedate_to_datetime
from pathlib import Path
from stat import S_ISREG
from typing import (
AbstractSet,
Any,
AsyncCont... | 34.876448 | 88 | 0.549485 |
33a93128e5771cd56cdb0d7591a5465b52b5aa52 | 2,757 | py | Python | PythonProjects/18-MoreLoopsWithinLoops/src/m2_more_nested_loops_in_graphics.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/18-MoreLoopsWithinLoops/src/m2_more_nested_loops_in_graphics.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/18-MoreLoopsWithinLoops/src/m2_more_nested_loops_in_graphics.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | """
This project lets you practice NESTED LOOPS (i.e., loops within loops)
in the context of TWO-DIMENSIONAL GRAPHICS.
Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher,
Mark Hays, Amanda Stouder, Derek Whitley, their colleagues,
and Seth Mutchler.
""" # DONE: 1. PUT YOUR NAME IN THE... | 32.821429 | 79 | 0.565832 |
33a9466d707221a9e8d21be7962d5126e038b5d9 | 835 | py | Python | myia/operations/prim_scalar_sin.py | strint/myia | 3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a | [
"MIT"
] | 222 | 2019-02-13T07:56:28.000Z | 2022-03-28T07:07:54.000Z | myia/operations/prim_scalar_sin.py | strint/myia | 3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a | [
"MIT"
] | 107 | 2019-02-12T21:56:39.000Z | 2022-03-12T01:08:03.000Z | myia/operations/prim_scalar_sin.py | strint/myia | 3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a | [
"MIT"
] | 27 | 2017-11-14T17:58:15.000Z | 2019-01-14T01:36:09.000Z | """Definitions for the primitive `scalar_sin`."""
import math
from ..lib import UniformPrimitiveInferrer, assert_scalar
from ..xtype import Number
from . import primitives as P
def pyimpl_scalar_sin(x: Number) -> Number:
"""Implement `scalar_sin`."""
assert_scalar(x)
return math.sin(x)
infer_scalar_si... | 22.567568 | 64 | 0.718563 |
33a958982860d2791ae8ea983febbab495ad3c4d | 2,151 | py | Python | helix/submit_match_folder.py | ckrivacic/helix_matcher | e1acb518117faf7de9a91270f86d78e066eea903 | [
"MIT"
] | 2 | 2021-04-26T15:14:08.000Z | 2021-06-07T10:56:37.000Z | helix/submit_match_folder.py | ckrivacic/helix_matcher | e1acb518117faf7de9a91270f86d78e066eea903 | [
"MIT"
] | null | null | null | helix/submit_match_folder.py | ckrivacic/helix_matcher | e1acb518117faf7de9a91270f86d78e066eea903 | [
"MIT"
] | null | null | null | '''
Usage:
submit_match.py <parent_directory> [options]
Options:
--max-runtime=TIME Maximum amount of time the cluster will allow
the job to run [default: 12:00:00]
--max-memory=MEM Maximum memory allocated to the job [default: 6G]
--tasks=#, -j Number of tasks to split the job into
--o... | 29.875 | 93 | 0.631334 |
33a96a7666f1568a5039e7510b325d9ec8186860 | 27,584 | py | Python | autokeras/tasks/image.py | micheleFraccaroli/autokeras | 4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1 | [
"Apache-2.0"
] | 3,979 | 2019-04-02T02:01:52.000Z | 2022-03-31T16:53:14.000Z | autokeras/tasks/image.py | micheleFraccaroli/autokeras | 4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1 | [
"Apache-2.0"
] | 939 | 2019-04-02T18:13:53.000Z | 2022-03-31T16:25:08.000Z | autokeras/tasks/image.py | micheleFraccaroli/autokeras | 4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1 | [
"Apache-2.0"
] | 826 | 2019-04-02T00:53:31.000Z | 2022-03-31T10:11:02.000Z | # Copyright 2020 The AutoKeras 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 i... | 48.139616 | 97 | 0.623042 |
33a9853b94ffd34e75ccce5e696dc2e39d26e78d | 26,594 | py | Python | mzidGenerator/psims/controlled_vocabulary/unimod.py | toppic-suite/topmsv | fef5d1f1f1c00ffdad2c258401d319f1e227c7cb | [
"Apache-2.0"
] | null | null | null | mzidGenerator/psims/controlled_vocabulary/unimod.py | toppic-suite/topmsv | fef5d1f1f1c00ffdad2c258401d319f1e227c7cb | [
"Apache-2.0"
] | 8 | 2021-02-19T18:42:42.000Z | 2022-02-10T17:37:42.000Z | mzidGenerator/psims/controlled_vocabulary/unimod.py | toppic-suite/topmsv | fef5d1f1f1c00ffdad2c258401d319f1e227c7cb | [
"Apache-2.0"
] | 1 | 2021-04-19T11:55:08.000Z | 2021-04-19T11:55:08.000Z | import warnings
import re
from collections import Counter
from lxml import etree
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref, object_session
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy import (Numeric, Unicode,
... | 31.849102 | 106 | 0.618335 |
33a9a2b7c2a25c4b34c3295810674ae5a5eabd93 | 897 | py | Python | client/verta/verta/_swagger/_public/modeldb/model/ModeldbFindExperimentRunsResponse.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 835 | 2017-02-08T20:14:24.000Z | 2020-03-12T17:37:49.000Z | client/verta/verta/_swagger/_public/modeldb/model/ModeldbFindExperimentRunsResponse.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 651 | 2019-04-18T12:55:07.000Z | 2022-03-31T23:45:09.000Z | client/verta/verta/_swagger/_public/modeldb/model/ModeldbFindExperimentRunsResponse.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 170 | 2017-02-13T14:49:22.000Z | 2020-02-19T17:59:12.000Z | # THIS FILE IS AUTO-GENERATED. DO NOT EDIT
from verta._swagger.base_type import BaseType
class ModeldbFindExperimentRunsResponse(BaseType):
def __init__(self, experiment_runs=None, total_records=None):
required = {
"experiment_runs": False,
"total_records": False,
}
self.experiment_runs = exp... | 28.935484 | 81 | 0.697882 |
33a9c602308febe31271d9a59a3b5b214a9871ca | 3,912 | py | Python | scripts/analyticalSolutions/analyticalData.py | fracturica/policrack | 653167ffb9bd1bc53811bbe8eb050978076713ba | [
"MIT"
] | 1 | 2020-08-12T11:19:09.000Z | 2020-08-12T11:19:09.000Z | scripts/analyticalSolutions/analyticalData.py | fracturica/policrack | 653167ffb9bd1bc53811bbe8eb050978076713ba | [
"MIT"
] | null | null | null | scripts/analyticalSolutions/analyticalData.py | fracturica/policrack | 653167ffb9bd1bc53811bbe8eb050978076713ba | [
"MIT"
] | null | null | null |
import math
import miscFunctions
import embeddedAE
import surfaceAE
import edgeAE
class AnalyticalData:
"""
"""
def __init__(self, dataStr):
"""
"""
self.dataStr = dataStr
resultRequests = self.dataStr.getResultRequests()
analysisKeys = resultRequests["analysisKey... | 34.928571 | 87 | 0.569018 |
33a9f89c45921160d3d95d884a568c535f72a1bf | 1,328 | py | Python | backend/src/viasp/asp/ast_types.py | glaserL/viasp | 740cb13c9d71c76b9a702597083b5b75b5a5eafb | [
"MIT"
] | null | null | null | backend/src/viasp/asp/ast_types.py | glaserL/viasp | 740cb13c9d71c76b9a702597083b5b75b5a5eafb | [
"MIT"
] | 9 | 2022-03-15T12:10:58.000Z | 2022-03-23T19:33:51.000Z | backend/src/viasp/asp/ast_types.py | glaserL/viasp | 740cb13c9d71c76b9a702597083b5b75b5a5eafb | [
"MIT"
] | null | null | null | from clingo.ast import ASTType
SUPPORTED_TYPES = {
ASTType.Comparison, ASTType.Aggregate, ASTType.Rule, ASTType.Program, ASTType.ShowSignature, ASTType.Definition,
ASTType.Literal, ASTType.HeadAggregate, ASTType.HeadAggregateElement, ASTType.BodyAggregate, ASTType.Aggregate,
ASTType.ConditionalLiteral, AST... | 49.185185 | 120 | 0.818524 |
33aa3c2af2468c8135e600280dc6a7719a3eec06 | 5,081 | py | Python | src/topology/topologyBuilder.py | nico989/SVMN | a0d1c7edbd7f4be309d4042f4e5d552c3672694c | [
"MIT"
] | 1 | 2022-03-23T13:28:24.000Z | 2022-03-23T13:28:24.000Z | src/topology/topologyBuilder.py | nico989/SVMN | a0d1c7edbd7f4be309d4042f4e5d552c3672694c | [
"MIT"
] | null | null | null | src/topology/topologyBuilder.py | nico989/SVMN | a0d1c7edbd7f4be309d4042f4e5d552c3672694c | [
"MIT"
] | null | null | null | from typing import Dict, Tuple, Union
from comnetsemu.node import DockerHost
from comnetsemu.net import Containernet, VNFManager
from mininet import node, link as mnlink
from .topologyParser import ControllerLocal, ControllerRemote, Host, Topology
from logger import logger
from serde.json import to_json
def controlle... | 32.780645 | 84 | 0.639244 |
33aa620e31e816c6fd9854889a68c11dbc15ad7c | 3,900 | py | Python | btd6_memory_info/cheat_engine_output_offsets.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/cheat_engine_output_offsets.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/cheat_engine_output_offsets.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | offsets = {'BloonsTD6.exe': 140696381030400, 'ntdll.dll': 140717057703936, 'KERNEL32.DLL': 140717035880448, 'KERNELBASE.dll': 140717021593600, 'UnityPlayer.dll': 140714963107840, 'USER32.dll': 140717044400128, 'win32u.dll': 140717015957504, 'GDI32.dll': 140717030899712, 'gdi32full.dll': 140717020479488, 'msvcp_win.dll'... | 1,950 | 3,899 | 0.787436 |
33aa9e8b55d44d09e0a5624e31fb3901eead417b | 1,268 | py | Python | applications/user/management/commands/CreateUser.py | dev-easyshares/mighty | a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b | [
"MIT"
] | null | null | null | applications/user/management/commands/CreateUser.py | dev-easyshares/mighty | a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b | [
"MIT"
] | 1 | 2022-03-12T00:57:37.000Z | 2022-03-12T00:57:37.000Z | applications/user/management/commands/CreateUser.py | dev-easyshares/mighty | a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b | [
"MIT"
] | null | null | null | from mighty.management import BaseCommand
from django.contrib.auth import get_user_model
UserModel = get_user_model()
class Command(BaseCommand):
def add_arguments(self, parser):
super().add_arguments(parser)
parser.add_argument('--email')
parser.add_argument('--password')
parser.a... | 36.228571 | 77 | 0.638013 |
33aaa033b5f76464cf19897369e8fe58b4ef1853 | 8,343 | py | Python | pollination_sdk/models/recipe_package_list.py | pollination/python-sdk | 599e8dbfc6e547c5e18aa903b27c70d7ffef84e5 | [
"RSA-MD"
] | 2 | 2020-01-30T23:28:59.000Z | 2020-05-06T16:43:47.000Z | pollination_sdk/models/recipe_package_list.py | pollination/python-sdk | 599e8dbfc6e547c5e18aa903b27c70d7ffef84e5 | [
"RSA-MD"
] | 1 | 2020-10-02T18:00:25.000Z | 2020-10-02T18:00:25.000Z | pollination_sdk/models/recipe_package_list.py | pollination/python-sdk | 599e8dbfc6e547c5e18aa903b27c70d7ffef84e5 | [
"RSA-MD"
] | null | null | null | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.16.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pollination_sdk.configu... | 31.247191 | 161 | 0.611171 |
33aabfd3fc8aa1a0827f8e5be2a0fecce1c52d46 | 1,876 | py | Python | lepidoptera/migrations/0003_auto_20180807_1544.py | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-11-17T18:02:44.000Z | 2021-02-02T04:00:21.000Z | lepidoptera/migrations/0003_auto_20180807_1544.py | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2020-06-05T19:00:59.000Z | 2022-01-13T00:52:30.000Z | lepidoptera/migrations/0003_auto_20180807_1544.py | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # Generated by Django 2.0.8 on 2018-08-07 13:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lepidoptera', '0002_load_initial_data'),
]
operations = [
migrations.AlterModelOptions(
name='family',
options={'ord... | 33.5 | 103 | 0.56823 |
33aad310842530bc13f42a5d7210b4d80e680496 | 4,282 | py | Python | src/spn/algorithms/SPMNHelper.py | SwarajPawar/SPFlow | ac128935a901359679a098b51ac70ba0f9d7d687 | [
"Apache-2.0"
] | 2 | 2021-09-29T19:51:25.000Z | 2021-09-29T19:51:27.000Z | src/spn/algorithms/SPMNHelper.py | minimum-LaytonC/SPFlow | 6890436c9b9ebd2cac02e9fe8e902f3b82b6abbc | [
"Apache-2.0"
] | null | null | null | src/spn/algorithms/SPMNHelper.py | minimum-LaytonC/SPFlow | 6890436c9b9ebd2cac02e9fe8e902f3b82b6abbc | [
"Apache-2.0"
] | 1 | 2022-03-01T20:14:19.000Z | 2022-03-01T20:14:19.000Z | """
Created on March 28, 2019
@author: Hari Teja Tatavarti
"""
import numpy as np
from spn.structure.Base import Context
from spn.structure.StatisticalTypes import MetaType
from spn.structure.leaves.parametric.Parametric import Categorical
# below functions are used by learn_spmn_structure
def get_ds_context_prod(... | 32.687023 | 150 | 0.709248 |
33aae3c8f4432532f7a94188c1e063e94307b7cf | 1,172 | py | Python | Aula17/exercicio/exercicio2.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | Aula17/exercicio/exercicio2.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | Aula17/exercicio/exercicio2.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | null | null | null | # 1 - Faça um menu interativo que tenha: Cadastro da banda, cadastro
# do album, cadastro da musica, Sair.
# O menu deve ser executado até que se escolha a opção sair.
# Cada opção deve ser mostrada
# quando selecionado a opção sair, deverá aparecer na tela as
# informações das banda cadastradas,
# albuns e musicas... | 25.478261 | 111 | 0.548635 |
33ab00fb9178856c191eff125ec96d62c9cd63fb | 5,451 | py | Python | docs/source/conf.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | 2 | 2020-11-28T07:56:09.000Z | 2021-11-08T09:30:39.000Z | docs/source/conf.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | null | null | null | docs/source/conf.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | 29.149733 | 79 | 0.650706 |
33ab0b2d01ff0f7ffbf8518d34efcdcf3aabba16 | 3,337 | py | Python | deal/linter/_extractors/exceptions.py | m4ta1l/deal | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | [
"MIT"
] | 1 | 2020-09-05T13:54:16.000Z | 2020-09-05T13:54:16.000Z | deal/linter/_extractors/exceptions.py | m4ta1l/deal | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | [
"MIT"
] | 7 | 2020-09-05T13:54:28.000Z | 2020-11-27T05:59:19.000Z | deal/linter/_extractors/exceptions.py | Smirenost/deal | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | [
"MIT"
] | null | null | null | # built-in
import ast
import builtins
from typing import Iterator, Optional, Union
# external
import astroid
# app
from .common import TOKENS, Extractor, Token, get_name, infer
from .contracts import get_contracts
get_exceptions = Extractor()
@get_exceptions.register(*TOKENS.ASSERT)
def handle_assert(expr, **kwar... | 34.05102 | 84 | 0.649685 |
33ab4f673b9a1773d527e639c28d222718abbecb | 1,366 | py | Python | dopamine/thesis/scratch/test_checkpointing.py | xqz-u/dopamine | d562750a58bcf681a6f8b590f4e4dfb263654b5e | [
"Apache-2.0"
] | null | null | null | dopamine/thesis/scratch/test_checkpointing.py | xqz-u/dopamine | d562750a58bcf681a6f8b590f4e4dfb263654b5e | [
"Apache-2.0"
] | null | null | null | dopamine/thesis/scratch/test_checkpointing.py | xqz-u/dopamine | d562750a58bcf681a6f8b590f4e4dfb263654b5e | [
"Apache-2.0"
] | null | null | null | from dopamine.jax import losses
from thesis.agents import dqv_max
from thesis.runner import reporter, runner
repo = "/home/xqz-u/uni/dopamine/resources/data/test_checkpointing_2"
cartpole_path = "CartPole-DQVMax"
conf_cartpole = {
"nets": {
"qnet": {
"model": {"hiddens": (512, 512)},
... | 26.784314 | 69 | 0.508785 |
33ab56096580055ac30869fdf2b2dcd0d3a0fbc7 | 2,172 | py | Python | t.py | maysrp/fans_clock_esp01s | 88563584a7c8fd4d8500e662715ebb9b0fd8da75 | [
"Apache-2.0"
] | null | null | null | t.py | maysrp/fans_clock_esp01s | 88563584a7c8fd4d8500e662715ebb9b0fd8da75 | [
"Apache-2.0"
] | null | null | null | t.py | maysrp/fans_clock_esp01s | 88563584a7c8fd4d8500e662715ebb9b0fd8da75 | [
"Apache-2.0"
] | null | null | null | from machine import I2C, Pin,RTC,WDT,reset
from ssd1306 import SSD1306_I2C
from font import Font
import gc
import network,time
import ujson
try:
f=open("config.ini","r")
c=f.read()
cc=ujson.loads(c)
f.close()
except Exception as e:
import web
web.ha=["wifi","password","api","bil... | 21.72 | 59 | 0.517035 |
33ab6e5bf568a760b07b1b75199e1f5e26a69871 | 762 | py | Python | examples/Cliner/CliNER/code/feature_extraction/genia_dir/genia_cache.py | swapnull7/forte | 737a72afd440d40c3826c3a7c5e4e44235c0f701 | [
"Apache-2.0"
] | null | null | null | examples/Cliner/CliNER/code/feature_extraction/genia_dir/genia_cache.py | swapnull7/forte | 737a72afd440d40c3826c3a7c5e4e44235c0f701 | [
"Apache-2.0"
] | null | null | null | examples/Cliner/CliNER/code/feature_extraction/genia_dir/genia_cache.py | swapnull7/forte | 737a72afd440d40c3826c3a7c5e4e44235c0f701 | [
"Apache-2.0"
] | null | null | null | import os
import pickle
import sys
from .. import utils
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if parentdir not in sys.path:
sys.path.append(parentdir)
class GeniaCache:
def __init__(self):
try:
prefix = os.path.dirname(__file__)
self.filename... | 23.8125 | 71 | 0.628609 |
33ab8eb7ff51ca1a6234ea8896973b257492a29f | 6,434 | py | Python | datumaro/plugins/yolo_format/extractor.py | chuneuny-emily/datumaro | 25d459e0d130f250f071f9de52171d52a454d381 | [
"MIT"
] | null | null | null | datumaro/plugins/yolo_format/extractor.py | chuneuny-emily/datumaro | 25d459e0d130f250f071f9de52171d52a454d381 | [
"MIT"
] | null | null | null | datumaro/plugins/yolo_format/extractor.py | chuneuny-emily/datumaro | 25d459e0d130f250f071f9de52171d52a454d381 | [
"MIT"
] | null | null | null |
# Copyright (C) 2019-2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
from collections import OrderedDict
import os.path as osp
import re
from datumaro.components.extractor import (SourceExtractor, Extractor,
DatasetItem, AnnotationType, Bbox, LabelCategories, Importer
)
from datumaro.util.os_util import ... | 32.659898 | 80 | 0.565278 |
33abd587b404f80a42b887c8c74a7a8038c8ff97 | 259 | py | Python | sunpy/visualization/animator/__init__.py | Naman9639/sunpy | 24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56 | [
"BSD-2-Clause"
] | null | null | null | sunpy/visualization/animator/__init__.py | Naman9639/sunpy | 24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56 | [
"BSD-2-Clause"
] | null | null | null | sunpy/visualization/animator/__init__.py | Naman9639/sunpy | 24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56 | [
"BSD-2-Clause"
] | null | null | null | from sunpy.visualization.animator.base import *
from sunpy.visualization.animator.line import *
from sunpy.visualization.animator.image import *
from sunpy.visualization.animator.mapcube import *
from sunpy.visualization.animator.mapsequenceanimator import *
| 43.166667 | 62 | 0.84556 |
33abec0f37d9fb3c3c788d8f7e5cf5fe18758c9b | 2,079 | py | Python | example/wide_and_deep/reader.py | qiaoshuangshuang/PaddleFlow | 15155a553587f18b09d4edfc604cb64a1fbe01a7 | [
"Apache-2.0"
] | 23 | 2021-12-31T02:36:13.000Z | 2022-03-29T07:38:43.000Z | example/wide_and_deep/reader.py | qiaoshuangshuang/PaddleFlow | 15155a553587f18b09d4edfc604cb64a1fbe01a7 | [
"Apache-2.0"
] | 10 | 2022-01-05T08:47:37.000Z | 2022-03-29T11:59:43.000Z | example/wide_and_deep/reader.py | qiaoshuangshuang/PaddleFlow | 15155a553587f18b09d4edfc604cb64a1fbe01a7 | [
"Apache-2.0"
] | 19 | 2021-12-30T14:37:24.000Z | 2022-03-23T03:30:32.000Z | #!/usr/bin/env python3.7
# -*- coding: utf-8 -*-
"""
Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/... | 34.081967 | 86 | 0.612314 |
33ac1fb177fd1a7a72273e23220e6ad5f35c76eb | 739 | py | Python | migrations/versions/868cf42a68be_add_roles.py | trevor-ngugi/Drew-Of-Lines | 83d0ea0c5d6fc292d593de394f7a12c4106941fc | [
"Unlicense"
] | null | null | null | migrations/versions/868cf42a68be_add_roles.py | trevor-ngugi/Drew-Of-Lines | 83d0ea0c5d6fc292d593de394f7a12c4106941fc | [
"Unlicense"
] | null | null | null | migrations/versions/868cf42a68be_add_roles.py | trevor-ngugi/Drew-Of-Lines | 83d0ea0c5d6fc292d593de394f7a12c4106941fc | [
"Unlicense"
] | null | null | null | """add roles
Revision ID: 868cf42a68be
Revises: d5524280ecee
Create Date: 2020-01-20 14:51:58.892618
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '868cf42a68be'
down_revision = 'd5524280ecee'
branch_labels = None
depends_on = None
def upgrade():
# ### ... | 22.393939 | 65 | 0.677943 |
33ac2f1572ee2a45033af69ee4446c3e59c6f608 | 401 | py | Python | django_imager/imagersite/wsgi.py | marco-zangari/django-imager | 60bc3f12e567a18eb7bdea815c725a633f801e04 | [
"MIT"
] | null | null | null | django_imager/imagersite/wsgi.py | marco-zangari/django-imager | 60bc3f12e567a18eb7bdea815c725a633f801e04 | [
"MIT"
] | null | null | null | django_imager/imagersite/wsgi.py | marco-zangari/django-imager | 60bc3f12e567a18eb7bdea815c725a633f801e04 | [
"MIT"
] | 1 | 2018-01-03T04:20:14.000Z | 2018-01-03T04:20:14.000Z | """
WSGI config for django_imager project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | 23.588235 | 78 | 0.790524 |
33ac5171227f2d698ba6eff1e2f3ae6ecf07cb16 | 64,744 | py | Python | tests/test_feedexport.py | yifeiwu/scrapy | 5a386393595ae6505840f00d6ea4a51beda31e19 | [
"BSD-3-Clause"
] | null | null | null | tests/test_feedexport.py | yifeiwu/scrapy | 5a386393595ae6505840f00d6ea4a51beda31e19 | [
"BSD-3-Clause"
] | null | null | null | tests/test_feedexport.py | yifeiwu/scrapy | 5a386393595ae6505840f00d6ea4a51beda31e19 | [
"BSD-3-Clause"
] | null | null | null | import csv
import json
import os
import random
import shutil
import string
import tempfile
import warnings
from abc import ABC, abstractmethod
from collections import defaultdict
from io import BytesIO
from logging import getLogger
from pathlib import Path
from string import ascii_letters, digits
from unittest import m... | 35.515085 | 110 | 0.558059 |
33ac51ac72bec4854ad1ce008ff319fca01b0a47 | 7,405 | py | Python | echopype/convert/set_groups_base.py | ngkavin/echopype | 2783abec6ea33412f50641500ab63943a19b5cd4 | [
"Apache-2.0"
] | 1 | 2020-06-20T20:50:24.000Z | 2020-06-20T20:50:24.000Z | echopype/convert/set_groups_base.py | ngkavin/echopype | 2783abec6ea33412f50641500ab63943a19b5cd4 | [
"Apache-2.0"
] | 3 | 2020-12-18T03:22:57.000Z | 2021-08-12T21:04:44.000Z | echopype/convert/set_groups_base.py | ngkavin/echopype | 2783abec6ea33412f50641500ab63943a19b5cd4 | [
"Apache-2.0"
] | 1 | 2020-11-13T22:35:55.000Z | 2020-11-13T22:35:55.000Z | import pynmea2
from datetime import datetime as dt
import xarray as xr
import numpy as np
import zarr
from xarray import coding
from _echopype_version import version as ECHOPYPE_VERSION
COMPRESSION_SETTINGS = {
'netcdf4': {'zlib': True, 'complevel': 4},
'zarr': {'compressor': zarr.Blosc(cname='zstd', clevel=3,... | 36.121951 | 113 | 0.5553 |
33ac89f62218994cb0fbf8eaeb69f27ca4889a6f | 10,551 | py | Python | HDF4_H5_NETCDF/source2.7/pyhdf/HDF.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | HDF4_H5_NETCDF/source2.7/pyhdf/HDF.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | HDF4_H5_NETCDF/source2.7/pyhdf/HDF.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | # $Id: HDF.py,v 1.3 2005-07-14 01:36:41 gosselin_a Exp $
# $Log: not supported by cvs2svn $
# Revision 1.2 2004/08/02 15:36:04 gosselin
# pyhdf-0.7-1
#
# Revision 1.1 2004/08/02 15:22:59 gosselin
# Initial revision
#
# Author: Andre Gosselin
# Maurice-Lamontagne Institute
# gosselina@dfo-mpo.gc.ca
... | 32.365031 | 78 | 0.558051 |
33ac90d61d1d3a31519314738cde36a75f5a693c | 40,526 | py | Python | Tools/scons/scons-local/SCons/Script/SConsOptions.py | Syeberman/nohtyP | 59d7214a5a5474a03c54f45d79ad4fd037989a79 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Tools/scons/scons-local/SCons/Script/SConsOptions.py | Syeberman/nohtyP | 59d7214a5a5474a03c54f45d79ad4fd037989a79 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Tools/scons/scons-local/SCons/Script/SConsOptions.py | Syeberman/nohtyP | 59d7214a5a5474a03c54f45d79ad4fd037989a79 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | #
# Copyright (c) 2001 - 2017 The SCons Foundation
#
# 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,... | 40.976744 | 104 | 0.540567 |
33ac9c1312b7685d7e671d1837f0fe6e8a769df6 | 1,291 | py | Python | examples/fast_neural_style/handlers.py | VinhLoiIT/ignite | 3b2b9655ea9f80ce49b8a9f1c2d72f80e2a95f56 | [
"BSD-3-Clause"
] | 1 | 2020-06-13T15:22:08.000Z | 2020-06-13T15:22:08.000Z | examples/fast_neural_style/handlers.py | hefv57/ignite | a22a0f5e909ac70d2a1f76a60b6e84b2134f196c | [
"BSD-3-Clause"
] | 5 | 2020-08-29T16:49:48.000Z | 2020-08-29T17:05:54.000Z | examples/fast_neural_style/handlers.py | hefv57/ignite | a22a0f5e909ac70d2a1f76a60b6e84b2134f196c | [
"BSD-3-Clause"
] | 1 | 2020-10-15T06:21:01.000Z | 2020-10-15T06:21:01.000Z | import sys
class Progbar(object):
def __init__(self, loader, metrics):
self.num_iterations = len(loader)
self.output_stream = sys.stdout
self.metrics = metrics
self.alpha = 0.98
def _calc_running_avg(self, engine):
for k, v in engine.state.output.items():
o... | 33.102564 | 90 | 0.577847 |
33aca6a8fbb4fb42e288d911699b051fc561d246 | 191 | py | Python | (2)Data Structures/array_sequence.py | mass9/Python | 66499164e36a4fe9630029d34b292ab06f849b2f | [
"MIT"
] | null | null | null | (2)Data Structures/array_sequence.py | mass9/Python | 66499164e36a4fe9630029d34b292ab06f849b2f | [
"MIT"
] | null | null | null | (2)Data Structures/array_sequence.py | mass9/Python | 66499164e36a4fe9630029d34b292ab06f849b2f | [
"MIT"
] | null | null | null | import array
import pprint
a = array.array('i',range(3))
print('Intial: ',a)
a.extend(range(3))
print('Extended: ',a)
print('Slice :',a[2:5])
print('Iterator:')
print(list(enumerate(a)))
| 13.642857 | 29 | 0.65445 |
33acb0e552fe70ae95f69e086b3de27691a7ce9e | 7,997 | py | Python | semantic/encoder/commen.py | alpha-gradient/cugDT | 8acbaf5b1fe8d9aa90719f4036b7820c16ce072a | [
"MIT"
] | null | null | null | semantic/encoder/commen.py | alpha-gradient/cugDT | 8acbaf5b1fe8d9aa90719f4036b7820c16ce072a | [
"MIT"
] | null | null | null | semantic/encoder/commen.py | alpha-gradient/cugDT | 8acbaf5b1fe8d9aa90719f4036b7820c16ce072a | [
"MIT"
] | null | null | null | import torch
import numpy as np
import math
import torch.nn as nn
def autopad(k, p=None): # kernel, padding
# Pad to 'same'
if p is None:
p = k // 2 if isinstance(k, int) else [x // 2 for x in k] # auto-pad
return p
def DWConv(c1, c2, k=1, s=1, act=True):
# Depthwise convolution
return C... | 36.515982 | 117 | 0.568713 |
33acd3347390b5f65af16db4849f73cecc8ba9fe | 14,025 | py | Python | support/titanium.py | arnaudsj/titanium_mobile | 4ed83dd6b355947a88f52efbf4ac82d86a2eeffd | [
"Apache-2.0"
] | 1 | 2015-11-05T13:59:16.000Z | 2015-11-05T13:59:16.000Z | support/titanium.py | arnaudsj/titanium_mobile | 4ed83dd6b355947a88f52efbf4ac82d86a2eeffd | [
"Apache-2.0"
] | null | null | null | support/titanium.py | arnaudsj/titanium_mobile | 4ed83dd6b355947a88f52efbf4ac82d86a2eeffd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Titanium SDK script
#
import os, sys, subprocess, types, re, uuid, platform
from tiapp import *
from manifest import *
template_dir = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename))
def die(msg):
print msg
sys.exit(1)
def validate_project_nam... | 31.028761 | 125 | 0.681783 |
33ace42faef6635ff39ffeac8e1d4388f925e0e1 | 8,142 | py | Python | modules/tools/routing/debug_topo.py | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | 6 | 2019-10-11T07:57:49.000Z | 2022-02-23T15:23:41.000Z | modules/tools/routing/debug_topo.py | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | null | null | null | modules/tools/routing/debug_topo.py | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | 12 | 2019-10-11T07:57:49.000Z | 2022-03-16T05:13:00.000Z | #!/usr/bin/env python
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
# Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not ... | 31.55814 | 97 | 0.593712 |
33ad00543a3eb94597fab16399456c1a6ba43c01 | 2,688 | py | Python | plotly/tests/test_optional/test_matplotlylib/test_data.py | awesome-archive/plotly.py | 0af4ef6abd0fe9907268d266304de630f94cda60 | [
"MIT"
] | null | null | null | plotly/tests/test_optional/test_matplotlylib/test_data.py | awesome-archive/plotly.py | 0af4ef6abd0fe9907268d266304de630f94cda60 | [
"MIT"
] | null | null | null | plotly/tests/test_optional/test_matplotlylib/test_data.py | awesome-archive/plotly.py | 0af4ef6abd0fe9907268d266304de630f94cda60 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from nose.plugins.attrib import attr
from plotly.tests.test_optional.optional_utils import run_fig
from plotly.tests.test_optional.test_matplotlylib.data.data import *
# TODO: matplotlib-build-wip
from plotly.tools import _matplotlylib_imported
if _matplotlylib_imported:
im... | 36.821918 | 76 | 0.546875 |
33ad08df6574a314c91a64e2289d0a4a06c7c541 | 2,670 | py | Python | src/luna1/api_lcd.py | hodgerpodger/staketaxcsv | d341fc8e54225aafd5401e89daaf9b71cdb1e1a4 | [
"MIT"
] | 140 | 2021-12-11T23:37:46.000Z | 2022-03-29T23:04:36.000Z | src/luna1/api_lcd.py | hodgerpodger/staketaxcsv | d341fc8e54225aafd5401e89daaf9b71cdb1e1a4 | [
"MIT"
] | 80 | 2021-12-17T15:13:47.000Z | 2022-03-31T13:33:53.000Z | src/luna1/api_lcd.py | hodgerpodger/staketaxcsv | d341fc8e54225aafd5401e89daaf9b71cdb1e1a4 | [
"MIT"
] | 52 | 2021-12-12T00:37:17.000Z | 2022-03-29T23:25:09.000Z | """
LCD documentation:
* https://lcd.terra.dev/swagger/#/
* https://github.com/terra-money/terra.py/tree/main/terra_sdk/client/lcd/api
"""
import logging
import time
from urllib.parse import urlencode
import requests
from settings_csv import TERRA_LCD_NODE
from common.ibc.api_common import (
EVENTS_TYPE_RECIPIE... | 30.689655 | 88 | 0.649064 |
33ad0d58d0128e3892daf25f7edf70ef12c68784 | 491 | py | Python | walkingtree/letspatternmatch.py | nebiutadele/2022-02-28-Alta3-Python | 9c065540bfdf432103bfffac6eae4972c9f9061a | [
"MIT"
] | 1 | 2022-01-14T20:47:47.000Z | 2022-01-14T20:47:47.000Z | walkingtree/letspatternmatch.py | nebiutadele/2022-02-28-Alta3-Python | 9c065540bfdf432103bfffac6eae4972c9f9061a | [
"MIT"
] | null | null | null | walkingtree/letspatternmatch.py | nebiutadele/2022-02-28-Alta3-Python | 9c065540bfdf432103bfffac6eae4972c9f9061a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
## Script to search for a pattern match
import os, fnmatch
def find(pattern, path):
result = []
for root, dirs, files in os.walk(path):
for name in files:
if fnmatch.fnmatch(name, pattern):
result.append(os.path.join(root, name))
return result
loo... | 27.277778 | 74 | 0.649695 |
33ad1243ea80fc168a593ac9c399d84189015b6f | 1,472 | py | Python | examples/lilypondExample.py | c64cryptoboy/ChiptuneSAK | 8759135b5c9c26dc9da155b006c575243ba5304a | [
"MIT"
] | 9 | 2020-08-16T05:06:55.000Z | 2021-11-05T06:18:54.000Z | examples/lilypondExample.py | c64cryptoboy/ChiptuneSAK | 8759135b5c9c26dc9da155b006c575243ba5304a | [
"MIT"
] | null | null | null | examples/lilypondExample.py | c64cryptoboy/ChiptuneSAK | 8759135b5c9c26dc9da155b006c575243ba5304a | [
"MIT"
] | null | null | null | import os
import subprocess
import chiptunesak
from chiptunesak.constants import project_to_absolute_path
"""
This example shows how to process a song into PDF file using Lilypond using the following steps:
1. Import the song to chirp format from a MIDI file, quantizing the notes to the nearest 32nd note
2. Conver... | 35.047619 | 103 | 0.777174 |
33ad22c45ead1889d0258caad18bf79267c5db80 | 347 | py | Python | py-vgdl-0.3/setup.py | Cheung2509/RuleGenerator | 556b6bf710d1f86e16ff7b3c9abcf656b6d0810f | [
"MIT"
] | null | null | null | py-vgdl-0.3/setup.py | Cheung2509/RuleGenerator | 556b6bf710d1f86e16ff7b3c9abcf656b6d0810f | [
"MIT"
] | null | null | null | py-vgdl-0.3/setup.py | Cheung2509/RuleGenerator | 556b6bf710d1f86e16ff7b3c9abcf656b6d0810f | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
libname="vgdl"
setup(
name = libname,
version="1.0",
description='A video game description language (VGDL) built on top pf pygame',
author='Tom Schaul',
url='https://github.com/schaul/py-vgdl',
packages= ['vgdl'],
in... | 23.133333 | 78 | 0.717579 |
33ad2da43194565a205144cd72c7af613552ea73 | 22,939 | py | Python | nova/virt/disk/api.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | nova/virt/disk/api.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | nova/virt/disk/api.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
#
# Copyright 2011, Piston Cloud Computing, Inc.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License... | 34.967988 | 79 | 0.613671 |
33ad533c33b3a7a8d99dd35b600f4a7ac68ddfc1 | 8,001 | py | Python | examples/pythonGrammarParser.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 1 | 2021-10-30T21:18:29.000Z | 2021-10-30T21:18:29.000Z | examples/pythonGrammarParser.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 22 | 2020-04-15T14:49:30.000Z | 2021-12-22T02:49:52.000Z | examples/pythonGrammarParser.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | null | null | null | # pythonGrammarParser.py
#
# Copyright, 2006, by Paul McGuire
#
from mo_parsing import *
# should probably read this from the Grammar file provided with the Python source, but
# this just skips that step and inlines the bnf text directly - this grammar was taken from
# Python 2.4.1
#
grammar = r"""
# Gram... | 34.786957 | 125 | 0.633296 |
33ad56cbe30cfff0d9699200099f5e50eaabc1a4 | 1,173 | py | Python | setup.py | alfredodeza/pytest-inobject | 8ae09e74d9cfcaf84fda9660231a3a02f9643062 | [
"MIT"
] | 1 | 2020-11-21T19:23:51.000Z | 2020-11-21T19:23:51.000Z | setup.py | alfredodeza/pytest-inobject | 8ae09e74d9cfcaf84fda9660231a3a02f9643062 | [
"MIT"
] | null | null | null | setup.py | alfredodeza/pytest-inobject | 8ae09e74d9cfcaf84fda9660231a3a02f9643062 | [
"MIT"
] | null | null | null | import re
module_file = open("pytest_inobject/__init__.py").read()
metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file))
long_description = open('README.rst').read()
install_requires = []
from setuptools import setup
setup(
name = 'pytest_inobject',
description = 'Pytest plugin... | 30.076923 | 83 | 0.612958 |
33ad649bb2d35193c61a97a65c4cc9d563108e7b | 6,996 | py | Python | app.py | SamrathPalSingh/file-sharing-service | 15d07e000997ab9b785a1a50e9727d9beaa91757 | [
"MIT"
] | null | null | null | app.py | SamrathPalSingh/file-sharing-service | 15d07e000997ab9b785a1a50e9727d9beaa91757 | [
"MIT"
] | null | null | null | app.py | SamrathPalSingh/file-sharing-service | 15d07e000997ab9b785a1a50e9727d9beaa91757 | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import filedialog
from ftplib import FTP
import webbrowser
import socket
import os
import threading
from pyftpdlib.pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.pyftpdlib.handlers import FTPHandler
from pyftpdlib.pyftpdlib.servers import FTPServer
import random
#for supp... | 28.439024 | 108 | 0.697541 |
33ad6bd4e94f38e72e2a1b8f10ab0ac9ee9b8100 | 536 | py | Python | portal/apps/events/urls.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | null | null | null | portal/apps/events/urls.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | null | null | null | portal/apps/events/urls.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from views import calendar, day_detail, event_detail
from django.conf.urls import url
urlpatterns = [
url(r'^$', calendar, name='events-calendar'),
url(r'^(?P<year>\d{4})/(?P<month>\d{1,2})/$', calendar, name='events-calendar'),
url(r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d... | 31.529412 | 105 | 0.557836 |
33ad7534167dc6e5577d6fb75b02e5232925315d | 3,394 | py | Python | models/testers/AdversarialEvaluation.py | johnrachwan123/SNIP-it | a578a0693318f261492331298b6602de225fe21f | [
"MIT"
] | 24 | 2020-05-30T21:37:48.000Z | 2022-01-17T18:35:43.000Z | models/testers/AdversarialEvaluation.py | johnrachwan123/SNIP-it | a578a0693318f261492331298b6602de225fe21f | [
"MIT"
] | 7 | 2020-06-03T10:33:36.000Z | 2022-02-10T01:39:24.000Z | models/testers/AdversarialEvaluation.py | johnrachwan123/SNIP-it | a578a0693318f261492331298b6602de225fe21f | [
"MIT"
] | 3 | 2020-11-20T11:15:09.000Z | 2021-04-24T16:51:20.000Z | import foolbox as fb
import matplotlib.pyplot as plt
import numpy as np
import torch
class AdversarialEvaluation:
"""
Performs evaluation to adversarial attacks
"""
def __init__(self, train_loader, test_loader, model, loss, optimizer, device, arguments, **kwargs):
self.args = arguments
... | 34.989691 | 114 | 0.604891 |
33ada68578a9014d0440061c8fb1589acaa2850f | 1,049 | py | Python | src/homework/main_assignment4.py | acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino | c2ee6a9914383716347765f148d2d15b9e3211b7 | [
"MIT"
] | null | null | null | src/homework/main_assignment4.py | acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino | c2ee6a9914383716347765f148d2d15b9e3211b7 | [
"MIT"
] | 1 | 2018-02-03T03:41:28.000Z | 2018-02-03T03:41:28.000Z | src/homework/main_assignment4.py | acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino | c2ee6a9914383716347765f148d2d15b9e3211b7 | [
"MIT"
] | 1 | 2018-04-13T01:17:50.000Z | 2018-04-13T01:17:50.000Z | from assignment4 import factorial
def main():#void function
'''
Create a loop that'll run until the user doesn't type the letter 'y'
In the loop,
Capture one number from the keyboard and validate for a range between 1 and 10.
Call the factorial function.
Save the result to a variable.
Print ... | 27.605263 | 91 | 0.589133 |
33adb7147179034db805289f95567d799c4a68fe | 7,807 | py | Python | resource_forecaster/component.py | simcesplatform/static-time-series-resource-forecaster | 0f53915d7fe6da543f628487c8e643f2e9bb2652 | [
"MIT"
] | null | null | null | resource_forecaster/component.py | simcesplatform/static-time-series-resource-forecaster | 0f53915d7fe6da543f628487c8e643f2e9bb2652 | [
"MIT"
] | null | null | null | resource_forecaster/component.py | simcesplatform/static-time-series-resource-forecaster | 0f53915d7fe6da543f628487c8e643f2e9bb2652 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Tampere University and VTT Technical Research Centre of Finland
# This software was developed as a part of the ProCemPlus project: https://www.senecc.fi/projects/procemplus
# This source code is licensed under the MIT license. See LICENSE in the repository root directory.
# Auth... | 48.79375 | 221 | 0.701806 |
33addd15b27d191ff3a582dd0ffb90615fd1a019 | 7,526 | py | Python | ecfs_user_sessions/src/analyze_user_sessions.py | zdvresearch/fast15-paper-addons | 8001f658ba819202186bf84892f4718eefd021fe | [
"MIT"
] | null | null | null | ecfs_user_sessions/src/analyze_user_sessions.py | zdvresearch/fast15-paper-addons | 8001f658ba819202186bf84892f4718eefd021fe | [
"MIT"
] | null | null | null | ecfs_user_sessions/src/analyze_user_sessions.py | zdvresearch/fast15-paper-addons | 8001f658ba819202186bf84892f4718eefd021fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Categorize and analyze user sessions.
Read in ecfs_obfuscated_filtered.gz file, output some fancy results.
"""
from collections import defaultdict
from collections import Counter
import sys
import time
import os
import resource
import json
import fnmatch
from pipes import Pipes
impo... | 29.284047 | 198 | 0.565905 |
33adec5da50fd1b2fd3dc33667ae40948c43e945 | 13,622 | py | Python | gsapiv4.py | pleskanovsky/gsapiv4 | 1894c90bf612f1056a561cb88828434da34f1adb | [
"MIT"
] | null | null | null | gsapiv4.py | pleskanovsky/gsapiv4 | 1894c90bf612f1056a561cb88828434da34f1adb | [
"MIT"
] | 1 | 2017-03-10T07:57:51.000Z | 2017-03-10T07:57:51.000Z | gsapiv4.py | pleskanovsky/gsapiv4 | 1894c90bf612f1056a561cb88828434da34f1adb | [
"MIT"
] | null | null | null | from pprint import pprint
import httplib2
import apiclient.discovery
import oauth2client.clientsecrets as clientsecrets
from oauth2client.client import OAuth2WebServerFlow
import googleapiclient.errors
from oauth2client.service_account import ServiceAccountCredentials
import re
def coords_to_range(row, col):
if (... | 39.256484 | 130 | 0.553149 |
33adf79e1b02825e8c07814bd9eb6dabcfcd969b | 1,260 | py | Python | base/utils/logging/file_logger.py | korenlev/calipso-cvim | 39278a5cf09c40b26a8a143ccc0c8d437961abc2 | [
"Apache-2.0"
] | null | null | null | base/utils/logging/file_logger.py | korenlev/calipso-cvim | 39278a5cf09c40b26a8a143ccc0c8d437961abc2 | [
"Apache-2.0"
] | null | null | null | base/utils/logging/file_logger.py | korenlev/calipso-cvim | 39278a5cf09c40b26a8a143ccc0c8d437961abc2 | [
"Apache-2.0"
] | null | null | null | ###############################################################################
# Copyright (c) 2017-2020 Koren Lev (Cisco Systems), #
# Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others #
# #
... | 46.666667 | 91 | 0.516667 |
33ae1e6f3be068acf5b33f193e72ff9ad2a9a92a | 183 | py | Python | tests/test_sanity.py | thom-brooke/infographics | c4ac91fd1716e077c940035ee6aa71546105edb4 | [
"MIT"
] | null | null | null | tests/test_sanity.py | thom-brooke/infographics | c4ac91fd1716e077c940035ee6aa71546105edb4 | [
"MIT"
] | null | null | null | tests/test_sanity.py | thom-brooke/infographics | c4ac91fd1716e077c940035ee6aa71546105edb4 | [
"MIT"
] | null | null | null | import unittest
class SanityCheck(unittest.TestCase):
def test_sane(self):
self.assertTrue(True)
def test_flaw(self):
self.assertNotEqual(42, 6*8)
| 16.636364 | 37 | 0.644809 |
33ae20da32f7cc362b2ca72b7ddcac6c6a69a058 | 4,159 | py | Python | orwell/ext/activity/cog.py | bjknauss/orwell-bot | 707c471d3fb8dec91f9c93ee949903ae4433137c | [
"MIT"
] | null | null | null | orwell/ext/activity/cog.py | bjknauss/orwell-bot | 707c471d3fb8dec91f9c93ee949903ae4433137c | [
"MIT"
] | null | null | null | orwell/ext/activity/cog.py | bjknauss/orwell-bot | 707c471d3fb8dec91f9c93ee949903ae4433137c | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from typing import Optional
from redis import Redis
from dynaconf import settings
from orwell.ext.activity import keys, utils, shared
from datetime import date
class ActivityCog(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
sel... | 36.482456 | 75 | 0.591969 |
33ae30bd9b5d6c5f5935075eb41cb154ab34b13f | 48,678 | py | Python | drizzlepac/hlautils/catalog_utils.py | jhunkeler/drizzlepac | 09ca153b8e4f4e03dd155c61243d722e1c40caee | [
"BSD-3-Clause"
] | null | null | null | drizzlepac/hlautils/catalog_utils.py | jhunkeler/drizzlepac | 09ca153b8e4f4e03dd155c61243d722e1c40caee | [
"BSD-3-Clause"
] | null | null | null | drizzlepac/hlautils/catalog_utils.py | jhunkeler/drizzlepac | 09ca153b8e4f4e03dd155c61243d722e1c40caee | [
"BSD-3-Clause"
] | null | null | null | """This script contains code to support creation of photometric sourcelists using two techniques: aperture photometry
segmentation-map based photometry.
"""
import sys
import pickle # FIX Remove
import astropy.units as u
from astropy.io import fits as fits
from astropy.convolution import Gaussian2DKernel, MexicanHat2D... | 46.850818 | 180 | 0.598299 |
33ae362acd5b4b6e065318e6b18a442978ee0d67 | 7,135 | py | Python | configs/example/se_alpha.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | configs/example/se_alpha.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | configs/example/se_alpha.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | 33.815166 | 100 | 0.688718 |
33ae467863ff564e973b4482f06964ced8c11dc1 | 9,337 | py | Python | sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_shared_keys_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_shared_keys_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_shared_keys_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 42.248869 | 206 | 0.69337 |
33ae4800c34f7af4d44518a34348ac270edb324a | 233 | py | Python | abc/192/B.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/192/B.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/192/B.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | S = list(map(str, input()))
for i in range(len(S)):
if i % 2 == 0:
if S[i].isupper():
print("No")
exit()
else:
if S[i].islower():
print("No")
exit()
print("Yes") | 21.181818 | 27 | 0.39485 |
33ae845201b4303293159494f0bf72117820556b | 4,631 | py | Python | hrl_common_code_darpa_m3/src/hrl_common_code_darpa_m3/data_structure_conversion/ft_sensor_to_taxel_array.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | 1 | 2017-07-13T14:58:35.000Z | 2017-07-13T14:58:35.000Z | hrl_common_code_darpa_m3/src/hrl_common_code_darpa_m3/data_structure_conversion/ft_sensor_to_taxel_array.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | null | null | null | hrl_common_code_darpa_m3/src/hrl_common_code_darpa_m3/data_structure_conversion/ft_sensor_to_taxel_array.py | gt-ros-pkg/hrl-haptic-manip | 6458187075033ecd3a22fbcdc1a632df39b0cba1 | [
"Apache-2.0"
] | 2 | 2017-03-08T14:44:22.000Z | 2019-07-15T23:46:35.000Z | #!/usr/bin/env python
import numpy as np
import optparse
import roslib;
roslib.load_manifest('hrl_haptic_manipulation_in_clutter_msgs')
roslib.load_manifest('m3skin_ros')
roslib.load_manifest('geometry_msgs')
import rospy
from geometry_msgs.msg import WrenchStamped, Transform
from hrl_haptic_manipulation_in_clutter_... | 41.720721 | 154 | 0.681926 |
33ae9cf3c6db69d79c60a1cf5ba97f7328d82f14 | 2,256 | py | Python | think_python/assignment_5.py | bobrokerson/challenge | 2ea8f9a1a5cd06ccb594feaad768a164fcbd6de4 | [
"MIT"
] | null | null | null | think_python/assignment_5.py | bobrokerson/challenge | 2ea8f9a1a5cd06ccb594feaad768a164fcbd6de4 | [
"MIT"
] | null | null | null | think_python/assignment_5.py | bobrokerson/challenge | 2ea8f9a1a5cd06ccb594feaad768a164fcbd6de4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 10 14:57:38 2022
@author: bobrokerson
"""
# The time module provides a function, also named time, that returns the current
# Greenwich Mean Time in “the epoch”, which is an arbitrary time used as a reference
# point. On UNIX systems, the epoch is 1... | 24 | 87 | 0.634309 |
33aecd40bdb1f5ec14dcf582f8b2dff91684e697 | 2,471 | py | Python | tests/python/pants_test/backend/jvm/tasks/test_jvm_run.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/backend/jvm/tasks/test_jvm_run.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/backend/jvm/tasks/test_jvm_run.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import re
from contextlib import contextmanager
from pants.backend.jvm.subsyst... | 38.015385 | 95 | 0.722784 |
33aecfe67ba213bcfedc47eca7d437a5f9968ab8 | 9,588 | py | Python | catalyst/utils/tools/registry.py | balakhonoff/catalyst | 82d904aee97045efbaef3963e36c2ce5173ddac4 | [
"Apache-2.0"
] | 2 | 2021-02-22T12:15:41.000Z | 2021-05-02T15:22:24.000Z | catalyst/utils/tools/registry.py | balakhonoff/catalyst | 82d904aee97045efbaef3963e36c2ce5173ddac4 | [
"Apache-2.0"
] | null | null | null | catalyst/utils/tools/registry.py | balakhonoff/catalyst | 82d904aee97045efbaef3963e36c2ce5173ddac4 | [
"Apache-2.0"
] | 1 | 2018-12-21T15:56:21.000Z | 2018-12-21T15:56:21.000Z | """
Registry.
.. todo:: Representative docstring for this module
"""
from typing import (
Any,
Callable,
Dict,
Iterator,
List,
Mapping,
Optional,
Tuple,
Type,
Union,
)
import collections
import inspect
import warnings
Factory = Union[Type, Callable[..., Any]]
LateAddCallbak = Ca... | 29.869159 | 79 | 0.568732 |
33aedffb2becee54bcd846924406efa01eee5bd1 | 2,275 | py | Python | rasa_core/channels/file.py | fdevillard/rasa_core | 0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d | [
"Apache-2.0"
] | 1 | 2019-02-22T11:26:18.000Z | 2019-02-22T11:26:18.000Z | rasa_core/channels/file.py | fdevillard/rasa_core | 0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d | [
"Apache-2.0"
] | null | null | null | rasa_core/channels/file.py | fdevillard/rasa_core | 0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import io
import re
from typing import Optional, Text
from rasa_core.channels import OutputChannel
from rasa_core.channels.channel import InputChannel, UserMessage
cl... | 37.295082 | 79 | 0.68 |
33af0c3c432cf461ba512681f43a87e857debf88 | 2,069 | py | Python | tests/test_model_release_note.py | Kravcu/cyclonedx-python-lib | d4007bd5986173eb2645eebcdd2c6405150f1456 | [
"Apache-2.0"
] | 15 | 2021-09-08T19:01:48.000Z | 2022-02-15T17:42:02.000Z | tests/test_model_release_note.py | Kravcu/cyclonedx-python-lib | d4007bd5986173eb2645eebcdd2c6405150f1456 | [
"Apache-2.0"
] | 124 | 2021-09-14T16:54:02.000Z | 2022-03-24T15:23:46.000Z | tests/test_model_release_note.py | Kravcu/cyclonedx-python-lib | d4007bd5986173eb2645eebcdd2c6405150f1456 | [
"Apache-2.0"
] | 10 | 2021-09-24T11:35:14.000Z | 2022-01-28T01:56:06.000Z | import datetime
from unittest import TestCase
from cyclonedx.model import XsUri
from cyclonedx.model.release_note import ReleaseNotes
class TestModelReleaseNote(TestCase):
def test_simple(self) -> None:
rn = ReleaseNotes(type='major')
self.assertEqual(rn.type, 'major')
self.assertIsNone(... | 38.314815 | 105 | 0.640889 |
33af327dd713fa9c823ecdd8746e1a2e2559b7f7 | 4,609 | py | Python | citizen_lib/trigger_citizen_stack_update.py | adrianmkng/watchmen | 4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa | [
"Apache-2.0"
] | 190 | 2017-12-13T05:01:42.000Z | 2021-11-15T23:35:54.000Z | citizen_lib/trigger_citizen_stack_update.py | adrianmkng/watchmen | 4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa | [
"Apache-2.0"
] | 2 | 2018-08-31T04:53:03.000Z | 2018-11-14T00:13:49.000Z | citizen_lib/trigger_citizen_stack_update.py | adrianmkng/watchmen | 4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa | [
"Apache-2.0"
] | 22 | 2017-12-13T04:36:46.000Z | 2021-07-29T07:37:41.000Z | # Copyright 2017 Insurance Australia Group Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 31.353741 | 166 | 0.679757 |
33af3fe5edba26f89f7a614165cda7c7790f5539 | 6,632 | py | Python | masci_tools/io/modify_potential.py | JPchico/masci-tools | a950f492ecebcc1b15100e5dc891f5a6fa6c1a5b | [
"MIT"
] | 1 | 2021-06-26T20:37:12.000Z | 2021-06-26T20:37:12.000Z | masci_tools/io/modify_potential.py | RubelMozumder/masci-tools | a950f492ecebcc1b15100e5dc891f5a6fa6c1a5b | [
"MIT"
] | null | null | null | masci_tools/io/modify_potential.py | RubelMozumder/masci-tools | a950f492ecebcc1b15100e5dc891f5a6fa6c1a5b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tools for the impurity caluclation plugin and its workflows
"""
#use print('message') instead of print 'message' in python 2.7 as well:
from __future__ import print_function
# redefine raw_input for python 3/2.7 compatilbility
from __future__ import absolute_import
fr... | 37.897143 | 113 | 0.615199 |
33af782ab20766d59b89c42888c2bb3f5d4c15b3 | 549 | py | Python | shelter/migrations/0007_auto_20200718_1507.py | kermox/schronisko-krakow | 8f8c546894e4b683ce463debad27db72ef820f90 | [
"MIT"
] | 1 | 2020-11-17T18:50:44.000Z | 2020-11-17T18:50:44.000Z | shelter/migrations/0007_auto_20200718_1507.py | kermox/schronisko-krakow | 8f8c546894e4b683ce463debad27db72ef820f90 | [
"MIT"
] | 9 | 2020-10-23T18:42:45.000Z | 2022-03-12T00:39:57.000Z | shelter/migrations/0007_auto_20200718_1507.py | kermox/schronisko-krakow | 8f8c546894e4b683ce463debad27db72ef820f90 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-07-18 15:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shelter', '0006_auto_20200718_1407'),
]
operations = [
migrations.AlterField(
model_name='animal',
name='additional_... | 28.894737 | 197 | 0.664845 |
33af7bca94df4bd7c6d4b1304c2512f85d9ab759 | 3,317 | py | Python | sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-01-24T08:54:57.000Z | 2022-01-24T08:54:57.000Z | sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 48.779412 | 180 | 0.700935 |
33af8de46ad1272b697ff391205fb19f903324b5 | 2,344 | py | Python | venv/Lib/site-packages/pyrogram/raw/types/message_entity_code.py | D1ne2021/jjhhhjj | a090da30983b3ef276dfe4cef2ded4526f36002a | [
"MIT"
] | 2 | 2021-12-13T07:09:55.000Z | 2022-01-12T12:15:20.000Z | venv/Lib/site-packages/pyrogram/raw/types/message_entity_code.py | hoangkiet1906/Botcie_ver1 | c133b915edde06dac690a7dc6ca160f6792fc4c8 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pyrogram/raw/types/message_entity_code.py | hoangkiet1906/Botcie_ver1 | c133b915edde06dac690a7dc6ca160f6792fc4c8 | [
"MIT"
] | null | null | null | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | 31.253333 | 103 | 0.612201 |
33af938c59f51b05a8fe39903a3efebc341a6399 | 4,365 | py | Python | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_more_like_this.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | null | null | null | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_more_like_this.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_more_like_this.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:21:24.000Z | 2020-11-04T03:21:24.000Z | # coding: utf-8
"""
Test more-like-this functionality.
"""
from __future__ import absolute_import, unicode_literals
import unittest
import logging
from django.core.management import call_command
from nine.versions import DJANGO_GTE_1_10
import pytest
from rest_framework import status
import factories
from .base... | 27.45283 | 79 | 0.602749 |
33af9c18285bc85fb1d6981e488d4ee2b42fdc08 | 2,772 | py | Python | src/cz_urnnbn_api/api_structures/modes.py | edeposit/urn-nbn-api | 2c9d36648491bfcbf0f29bedaf6f507a51805f8e | [
"MIT"
] | 1 | 2016-04-26T10:01:35.000Z | 2016-04-26T10:01:35.000Z | src/cz_urnnbn_api/api_structures/modes.py | edeposit/cz-urnnbn-api | 2c9d36648491bfcbf0f29bedaf6f507a51805f8e | [
"MIT"
] | 24 | 2015-03-04T09:03:51.000Z | 2015-10-12T12:46:30.000Z | src/cz_urnnbn_api/api_structures/modes.py | edeposit/cz-urnnbn-api | 2c9d36648491bfcbf0f29bedaf6f507a51805f8e | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
# Functions & classes =========================================================
def _by_attr(xdom, attr):
"""
From `xdom` pick element with attri... | 30.130435 | 79 | 0.556999 |
33afd7e76787a56871006fb73c8d9e89fc2dbaac | 523 | py | Python | devel/site.py | jirikrepl/pyradio | 6fae44aafc24acab3e33cf6b2918709a2c4548cb | [
"MIT"
] | 427 | 2015-01-11T18:40:08.000Z | 2022-03-29T03:31:24.000Z | devel/site.py | jirikrepl/pyradio | 6fae44aafc24acab3e33cf6b2918709a2c4548cb | [
"MIT"
] | 111 | 2015-03-22T22:40:37.000Z | 2022-03-22T12:04:10.000Z | devel/site.py | jirikrepl/pyradio | 6fae44aafc24acab3e33cf6b2918709a2c4548cb | [
"MIT"
] | 93 | 2015-02-20T11:57:04.000Z | 2022-03-07T12:14:04.000Z | import site
import sys
if len(sys.argv) == 1:
for n in site.getsitepackages():
print(n)
p = site.getusersitepackages()
if isinstance(p, str):
print(p)
else:
for n in p:
print(n)
else:
from os import environ
import glob
alldirs = environ['PATH'].split(';')... | 23.772727 | 46 | 0.491396 |
33b03a269494a453f4d74326001b8272de7b4bc8 | 522 | py | Python | src/oscar/apps/order/migrations/0005_update_email_length.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/order/migrations/0005_update_email_length.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | 5 | 2021-05-28T19:38:28.000Z | 2022-03-12T00:45:39.000Z | src/oscar/apps/order/migrations/0005_update_email_length.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-13 08:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0004_auto_20160111_1108'),
]
operations = [
migration... | 24.857143 | 101 | 0.611111 |
33b06cdf019fd069227de4dbccbeb3f6d7fe6508 | 1,636 | py | Python | thrid_party/rewrite_video/video_to_image.py | dayHRResearch/VideoCover | ccbf31df89563779b3fd006ee878ca8ab337a2a6 | [
"Apache-2.0"
] | 2 | 2019-07-16T08:08:23.000Z | 2019-07-22T14:50:27.000Z | thrid_party/rewrite_video/video_to_image.py | dayHRResearch/VideoCover | ccbf31df89563779b3fd006ee878ca8ab337a2a6 | [
"Apache-2.0"
] | null | null | null | thrid_party/rewrite_video/video_to_image.py | dayHRResearch/VideoCover | ccbf31df89563779b3fd006ee878ca8ab337a2a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 DayHR 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 applicable l... | 29.745455 | 80 | 0.636308 |
33b06f611c727eefe330d8277a6ea9db7cbd223c | 66 | py | Python | langid/__init__.py | bpopeters/langid.py | 9c6187f21bfd7f150bdd6d36a121353bd77ea990 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | langid/__init__.py | bpopeters/langid.py | 9c6187f21bfd7f150bdd6d36a121353bd77ea990 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | langid/__init__.py | bpopeters/langid.py | 9c6187f21bfd7f150bdd6d36a121353bd77ea990 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from .langid import classify, classify_batch, rank, set_languages
| 33 | 65 | 0.833333 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.