hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7d2f006479ca28ac543987f4cff4f932be0aedc4
5,867
py
Python
mic_array.py
swm1718/mic_array
9de54bf2f2351d8d14379dca2f7da53c736652f2
[ "Apache-2.0" ]
null
null
null
mic_array.py
swm1718/mic_array
9de54bf2f2351d8d14379dca2f7da53c736652f2
[ "Apache-2.0" ]
null
null
null
mic_array.py
swm1718/mic_array
9de54bf2f2351d8d14379dca2f7da53c736652f2
[ "Apache-2.0" ]
null
null
null
import argparse import pyaudio try: import queue as Queue except ImportError: import Queue as Queue import threading import numpy as np from gcc_phat import gcc_phat import math SOUND_SPEED = 343.2 MIC_DISTANCE_6P1 = 0.064 MAX_TDOA_6P1 = MIC_DISTANCE_6P1 / float(SOUND_SPEED) MIC_DISTANCE_4 = 0.08127 MAX_TD...
28.342995
119
0.562979
70357d835804678b5a418e63147b69aa86a48447
57,814
py
Python
numpy/testing/utils.py
immerrr/numpy
ceeeb1a65aaa508bd7097b5c39ba36fec51934b9
[ "BSD-3-Clause" ]
null
null
null
numpy/testing/utils.py
immerrr/numpy
ceeeb1a65aaa508bd7097b5c39ba36fec51934b9
[ "BSD-3-Clause" ]
null
null
null
numpy/testing/utils.py
immerrr/numpy
ceeeb1a65aaa508bd7097b5c39ba36fec51934b9
[ "BSD-3-Clause" ]
null
null
null
""" Utility function to facilitate testing. """ from __future__ import division, absolute_import, print_function import os import sys import re import operator import warnings from functools import partial from .nosetester import import_nose from numpy.core import float32, empty, arange, array_repr, ndarray if sys.v...
34.088443
93
0.587072
67006b67a2509a30a3044282b493798a4473e26b
3,743
py
Python
app.py
janmasarik/xssable
60857905d808710bb5ffa6e80c71e3c971177a51
[ "MIT" ]
2
2020-03-26T01:20:48.000Z
2020-07-21T21:56:45.000Z
app.py
janmasarik/xssable
60857905d808710bb5ffa6e80c71e3c971177a51
[ "MIT" ]
null
null
null
app.py
janmasarik/xssable
60857905d808710bb5ffa6e80c71e3c971177a51
[ "MIT" ]
null
null
null
import re import secrets import pickle # import os import yaml from flask import ( Flask, redirect, render_template, render_template_string, request, session, jsonify, ) from flask_session import Session from flask_seasurf import SeaSurf from usermanager import UserManager from blogmanage...
22.548193
86
0.652952
aac5f2c3c7155bdb3e10de6d2369c420499727e3
1,334
py
Python
engine/azure/vision_detect.py
furukawaMassiveReborn777/ChildChatbot
ebbe4fc94eb0a86db84ecb090c5240391ff244cf
[ "MIT" ]
4
2019-06-26T10:16:47.000Z
2022-01-27T08:13:57.000Z
engine/azure/vision_detect.py
furukawaMassiveReborn777/ChildChatbot
ebbe4fc94eb0a86db84ecb090c5240391ff244cf
[ "MIT" ]
null
null
null
engine/azure/vision_detect.py
furukawaMassiveReborn777/ChildChatbot
ebbe4fc94eb0a86db84ecb090c5240391ff244cf
[ "MIT" ]
null
null
null
# coding: utf-8 ''' AZURE PROC 2 object detection using azure api ''' import requests, json, glob, sys #import matplotlib.pyplot as plt from PIL import Image import settingaz, time key_dict = json.load(open(settingaz.SECRET_FILE, 'r')) #SEARCH_WORD = " ".join(settingaz.SEARCH_WORD_LIST)## USEAPP search_word_underb = ...
28.382979
97
0.687406
7f224e91e59465104a8da70112cd1daa0c0ecf0e
2,234
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/azure_reachability_report_parameters_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/azure_reachability_report_parameters_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/azure_reachability_report_parameters_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
40.618182
123
0.645927
2dfce027383f35c6319998030a38486b3c18a64b
557
py
Python
src/data/descriptions/uniques/describe.py
dmitry-s-danilov/kaggle-house-prices-advanced-regression-techniques
ab5130ea6d5b1c7373a886b9289cf0fde4f7c27d
[ "MIT" ]
1
2022-02-08T11:54:16.000Z
2022-02-08T11:54:16.000Z
src/data/descriptions/uniques/describe.py
dmitry-s-danilov/kaggle-house-prices-advanced-regression-techniques
ab5130ea6d5b1c7373a886b9289cf0fde4f7c27d
[ "MIT" ]
null
null
null
src/data/descriptions/uniques/describe.py
dmitry-s-danilov/kaggle-house-prices-advanced-regression-techniques
ab5130ea6d5b1c7373a886b9289cf0fde4f7c27d
[ "MIT" ]
null
null
null
from typing import Union, Callable from pandas import DataFrame from ...tools import ( describe as describe__, transform, ) from .params import descriptors as descriptors__ def describe( data: Union[DataFrame, dict], descriptors: dict = descriptors__, inverse: bool = False, transformers: list...
22.28
54
0.648115
8ba6c6931e7f9340214fed2bfcc51eb0a56dee77
821
py
Python
setup.py
martius-lab/dynamic-rl-benchmarks
25ed14dc88f5b0cc3733cb69fd4ac9508eb3106e
[ "MIT" ]
3
2021-12-08T14:08:54.000Z
2021-12-08T16:38:47.000Z
setup.py
martius-lab/dynamic-rl-benchmarks
25ed14dc88f5b0cc3733cb69fd4ac9508eb3106e
[ "MIT" ]
null
null
null
setup.py
martius-lab/dynamic-rl-benchmarks
25ed14dc88f5b0cc3733cb69fd4ac9508eb3106e
[ "MIT" ]
null
null
null
import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup(name="dyn_rl_benchmarks", version="1.0.3", description="Reinforcement learning benchmark problems set in dynamic environments.", author="Nico Gürtler", ...
39.095238
91
0.714982
c60174564018162e0820ba56858cd38eb39116db
27,762
py
Python
sdk/python/pulumi_kubernetes/authorization/v1/outputs.py
polivbr/pulumi-kubernetes
36a5fb34240a38a60b52a5f4e55e66e248d9305f
[ "Apache-2.0" ]
277
2018-06-18T14:57:09.000Z
2022-03-29T04:05:06.000Z
sdk/python/pulumi_kubernetes/authorization/v1/outputs.py
polivbr/pulumi-kubernetes
36a5fb34240a38a60b52a5f4e55e66e248d9305f
[ "Apache-2.0" ]
1,447
2018-06-20T00:58:34.000Z
2022-03-31T21:28:43.000Z
sdk/python/pulumi_kubernetes/authorization/v1/outputs.py
polivbr/pulumi-kubernetes
36a5fb34240a38a60b52a5f4e55e66e248d9305f
[ "Apache-2.0" ]
95
2018-06-30T03:30:05.000Z
2022-03-29T04:05:09.000Z
# coding=utf-8 # *** WARNING: this file was generated by pulumigen. *** # *** 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 . import outp...
45.141463
374
0.666018
6f2e6617b6139f24c14ff060adfb7a392cfd814a
56,243
py
Python
abs_templates_ec/serdes/base.py
boblinchuan/BAG2_TEMPLATES_EC
e0e4a41c1780edb035cd619b9cea2e27e3fc5f51
[ "BSD-3-Clause" ]
1
2020-06-02T22:41:46.000Z
2020-06-02T22:41:46.000Z
abs_templates_ec/serdes/base.py
boblinchuan/BAG2_TEMPLATES_EC
e0e4a41c1780edb035cd619b9cea2e27e3fc5f51
[ "BSD-3-Clause" ]
12
2018-10-23T18:08:37.000Z
2022-02-24T10:51:34.000Z
abs_templates_ec/serdes/base.py
boblinchuan/BAG2_TEMPLATES_EC
e0e4a41c1780edb035cd619b9cea2e27e3fc5f51
[ "BSD-3-Clause" ]
18
2018-07-14T01:36:09.000Z
2021-05-25T18:38:00.000Z
# -*- coding: utf-8 -*- """This module defines SerdesRXBase, the base class of all analog high speed link templates. """ import abc from typing import Dict, Any, List, Optional, Tuple, Union from bag.layout.routing import WireArray, RoutingGrid from ..analog_core import AnalogBase, AnalogBaseInfo wtype = Union[flo...
42.511716
120
0.54245
a6f893d9a38ecf373f369c122f432517de05aa84
388
py
Python
cryptograph/rot13.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
10
2020-10-09T11:05:18.000Z
2022-02-13T03:22:10.000Z
cryptograph/rot13.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
cryptograph/rot13.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
6
2020-11-26T12:49:43.000Z
2022-03-06T06:46:43.000Z
from string import maketrans rot13trans = maketrans{'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 'NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm'} def rot13(text): return text.translate(rot13trans) def main(): textMessage = "besok saya pergi ke amerika" print("message :",textMessage)...
25.866667
79
0.762887
a1d514b25b602e3a4962bfac608e87e8f66bcccc
10,241
py
Python
tests/test_process_functions.py
veo-ibd/Genie
735e3aa0dc71aab0c404fd0cb3a34c8e1d9784c2
[ "MIT" ]
null
null
null
tests/test_process_functions.py
veo-ibd/Genie
735e3aa0dc71aab0c404fd0cb3a34c8e1d9784c2
[ "MIT" ]
null
null
null
tests/test_process_functions.py
veo-ibd/Genie
735e3aa0dc71aab0c404fd0cb3a34c8e1d9784c2
[ "MIT" ]
1
2022-01-20T16:33:19.000Z
2022-01-20T16:33:19.000Z
import pytest import mock import pandas as pd import synapseclient import genie.process_functions syn = mock.create_autospec(synapseclient.Synapse) DATABASE_DF = pd.DataFrame({ 'UNIQUE_KEY': ['test1', 'test2', 'test3'], "test": ['test1', 'test2', 'test3'], "foo": [1, 2, 3], "baz": [float('nan'), flo...
32.408228
75
0.613221
58292d201618a150a8d52c7ec608de421875a45c
14,378
py
Python
tests/test_geo_utilities.py
CSHS-CWRA/RavenPy
279505d7270c3f796500f2cb992af1cd66dfb44c
[ "MIT" ]
12
2020-12-07T23:07:13.000Z
2022-03-08T20:50:58.000Z
tests/test_geo_utilities.py
CSHS-CWRA/RavenPy
279505d7270c3f796500f2cb992af1cd66dfb44c
[ "MIT" ]
119
2020-08-25T08:17:17.000Z
2022-03-30T16:12:19.000Z
tests/test_geo_utilities.py
CSHS-CWRA/RavenPy
279505d7270c3f796500f2cb992af1cd66dfb44c
[ "MIT" ]
3
2020-12-02T17:33:13.000Z
2021-08-31T15:39:26.000Z
import tempfile from pathlib import Path import numpy as np import pytest from ravenpy.utilities.testdata import get_local_testdata class TestOperations: analysis = pytest.importorskip("ravenpy.utilities.analysis") io = pytest.importorskip("ravenpy.utilities.io") zipped_file = get_local_testdata("polyg...
41.675362
91
0.678398
0440f547aa29f8ff1d1413d481ee44388426766f
2,178
py
Python
docs/source/conf.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
17
2020-03-04T10:46:37.000Z
2022-03-10T13:15:16.000Z
docs/source/conf.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
48
2020-03-16T13:39:44.000Z
2022-03-31T17:26:50.000Z
docs/source/conf.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
15
2020-03-04T16:02:31.000Z
2022-02-17T14:11:15.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.029412
79
0.671258
ecdc3824ebe0c10ad7f08c182caa5ca847b3886c
3,875
py
Python
Expt/stats_scripts/stats_s.py
utahnlp/therapist-observer
31eaf9a5c82c6d0f9a62427ac5df030d81547472
[ "Apache-2.0" ]
7
2019-07-02T19:32:05.000Z
2022-01-23T19:11:55.000Z
Expt/stats_scripts/stats_s.py
utahnlp/therapist-observer
31eaf9a5c82c6d0f9a62427ac5df030d81547472
[ "Apache-2.0" ]
1
2020-10-06T05:14:16.000Z
2020-11-05T22:39:19.000Z
Expt/stats_scripts/stats_s.py
utahnlp/therapist-observer
31eaf9a5c82c6d0f9a62427ac5df030d81547472
[ "Apache-2.0" ]
6
2019-06-29T23:34:41.000Z
2022-03-16T22:19:39.000Z
import sys, re best_dev_loss = 1000.0 best_dev_loss_state = '' dev_losses = {} p_r_f1 = {} recalls = {} best_recall = {} best_recall_state = {} best_precision = {} best_precision_state = {} best_f1 = {} best_f1_state = {} support = {} topK = [1,2,3,5,10] for k in topK: best_recall[k] = -1.0 #keys = ['brownie','...
36.904762
341
0.572645
7f1510f2c779e37a4dbccbcc5bfbd1f86823101a
260
py
Python
nodes/1.x/python/Object.Members.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
147
2016-02-24T16:37:03.000Z
2022-02-18T12:10:34.000Z
nodes/1.x/python/Object.Members.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
269
2016-02-25T14:04:14.000Z
2022-03-26T07:30:53.000Z
nodes/1.x/python/Object.Members.py
jdehotin/Clockworkfordynamo
59226ea8292c57acfa1aa476efd40f0e78c9b965
[ "MIT" ]
89
2016-03-16T18:21:56.000Z
2022-02-03T14:34:30.000Z
import clr items = IN[0] elementlist = list() try: clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * for item in items: elementlist.append(dir(UnwrapElement(item))) except: for item in items: elementlist.append(dir(item)) OUT = elementlist
18.571429
46
0.738462
18b91f8fd5ee9d847e843850a2ac970d50282450
108,127
py
Python
common/fonts.py
davidstutz/disentangling-robustness-generalization
220ff8a79a5f08665f4755dc76d4e592ae66c6d6
[ "Unlicense" ]
43
2019-05-22T13:58:59.000Z
2022-03-15T03:02:02.000Z
common/fonts.py
davidstutz/disentangling-robustness-generalization
220ff8a79a5f08665f4755dc76d4e592ae66c6d6
[ "Unlicense" ]
2
2019-11-23T14:51:41.000Z
2020-11-30T20:59:42.000Z
common/fonts.py
davidstutz/disentangling-robustness-generalization
220ff8a79a5f08665f4755dc76d4e592ae66c6d6
[ "Unlicense" ]
10
2019-06-19T08:28:34.000Z
2021-06-16T10:24:16.000Z
def get_fonts(): files = """ ufl/ubuntu/Ubuntu-Medium.ttf ufl/ubuntu/Ubuntu-MediumItalic.ttf ufl/ubuntu/Ubuntu-Regular.ttf ufl/ubuntu/Ubuntu-Light.ttf ufl/ubuntu/Ubuntu-Bold.ttf ufl/ubuntu/Ubuntu-BoldItalic.ttf ufl/ubuntu/Ubuntu-Italic.ttf ufl/ubuntu/Ubuntu-LightItalic.ttf ufl/ubuntucondensed/UbuntuCondensed-Regula...
21.786621
112
0.844766
9f6496149b3e1105425db8cfc7bb830fbb222159
4,618
py
Python
homeassistant/components/sensor/rflink.py
lupin-de-mid/home-assistant
35f6dbc9dc0fb12d1d04837acbf09dabb325f4fe
[ "Apache-2.0" ]
1
2021-01-02T14:13:46.000Z
2021-01-02T14:13:46.000Z
homeassistant/components/sensor/rflink.py
lupin-de-mid/home-assistant
35f6dbc9dc0fb12d1d04837acbf09dabb325f4fe
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensor/rflink.py
lupin-de-mid/home-assistant
35f6dbc9dc0fb12d1d04837acbf09dabb325f4fe
[ "Apache-2.0" ]
null
null
null
"""Support for Rflink sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/light.rflink/ """ import asyncio from functools import partial import logging from homeassistant.components import group from homeassistant.components.rflink import ( CON...
32.521127
79
0.689909
7fc8f26175e81132ec765280b022a3fa602fe055
5,938
py
Python
docs/source/conf.py
gaurapanasenko/cglm
981af0565ea823dec8dc7e8d7d332ff65f99d7a4
[ "MIT" ]
1
2022-03-10T04:41:03.000Z
2022-03-10T04:41:03.000Z
docs/source/conf.py
gaurapanasenko/cglm
981af0565ea823dec8dc7e8d7d332ff65f99d7a4
[ "MIT" ]
null
null
null
docs/source/conf.py
gaurapanasenko/cglm
981af0565ea823dec8dc7e8d7d332ff65f99d7a4
[ "MIT" ]
1
2022-01-27T12:18:41.000Z
2022-01-27T12:18:41.000Z
# -*- coding: utf-8 -*- # # cglm documentation build configuration file, created by # sphinx-quickstart on Tue Jun 6 20:31:05 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
29.107843
79
0.655945
a847ac37c9ceda5ec9b173556566a7cf9f986e2a
16,682
py
Python
sdk/python/pulumi_gitlab/get_projects.py
pulumi/pulumi-gitlab
5627240bf718fc765d3a2068acd20621383514c8
[ "ECL-2.0", "Apache-2.0" ]
11
2019-09-17T20:41:23.000Z
2021-12-02T20:39:23.000Z
sdk/python/pulumi_gitlab/get_projects.py
pulumi/pulumi-gitlab
5627240bf718fc765d3a2068acd20621383514c8
[ "ECL-2.0", "Apache-2.0" ]
67
2019-06-21T18:30:30.000Z
2022-03-31T21:27:20.000Z
sdk/python/pulumi_gitlab/get_projects.py
pulumi/pulumi-gitlab
5627240bf718fc765d3a2068acd20621383514c8
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-05T10:36:36.000Z
2021-05-13T18:14:59.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
44.485333
448
0.679775
652cdf394a98184c0dc1b68da27fb1fd32326b30
1,640
py
Python
api/app/resources/bookings/appointment/appointment_detail.py
pixelater/queue-management
9881505d4af2b9860aeaf76b9572315dd016c7dc
[ "Apache-2.0" ]
null
null
null
api/app/resources/bookings/appointment/appointment_detail.py
pixelater/queue-management
9881505d4af2b9860aeaf76b9572315dd016c7dc
[ "Apache-2.0" ]
1
2019-02-26T00:27:31.000Z
2019-02-26T00:27:31.000Z
api/app/resources/bookings/appointment/appointment_detail.py
pixelater/queue-management
9881505d4af2b9860aeaf76b9572315dd016c7dc
[ "Apache-2.0" ]
null
null
null
'''Copyright 2018 Province of British Columbia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
34.166667
79
0.695122
0974d3861ed2e306d10f2b1da01323cd6961cc84
9,078
py
Python
controller.py
liwangGT/crazyflie-tools
ed3ca66d4efd77c7abb321e6f8deeb564da45862
[ "MIT" ]
73
2015-03-11T05:32:13.000Z
2022-03-25T23:30:17.000Z
controller.py
liwangGT/crazyflie-tools
ed3ca66d4efd77c7abb321e6f8deeb564da45862
[ "MIT" ]
18
2015-01-19T20:23:36.000Z
2017-02-14T21:03:07.000Z
controller.py
blandry/drake-crazyflie-tools
ed3ca66d4efd77c7abb321e6f8deeb564da45862
[ "MIT" ]
49
2015-06-19T03:16:10.000Z
2021-01-13T08:56:02.000Z
import lcm import math import numpy as np from crazyflie_t import crazyflie_input_t, crazyflie_controller_commands_t, crazyflie_hover_commands_t, crazyflie_positioninput_t from threading import Thread GO_TO_START = True XHAT_START = [0, -0.61, 0.01, 0, 0, 0, 0, 0, 0, 0, 0, 0] NOMINAL_W2 = 16.3683 XHAT_DESIRED = [0, -0...
40.526786
209
0.673056
2ba9f1c22f3ab70db0ece0669de90e2fb97bb833
910
py
Python
wsgi.py
kemball/gallertoid
8f42ce2220e98034b18fec9f64575b7e0675a66a
[ "Apache-2.0" ]
null
null
null
wsgi.py
kemball/gallertoid
8f42ce2220e98034b18fec9f64575b7e0675a66a
[ "Apache-2.0" ]
null
null
null
wsgi.py
kemball/gallertoid
8f42ce2220e98034b18fec9f64575b7e0675a66a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os #virtenv = os.environ['OPENSHIFT_PYTHON_DIR'] + '/virtenv/' virtenv = os.path.join(os.environ.get('OPENSHIFT_PYTHON_DIR','.'),'virtenv') virtualenv = os.path.join(virtenv, 'bin/activate_this.py') try: execfile(virtualenv, dict(__file__=virtualenv)) except IOError: pass # # IMPORTANT...
31.37931
86
0.742857
a26deeedfb5962af8bf1c925e3f36d5fdd10468e
298
py
Python
yt_aspect/api.py
chrishavlin/yt_aspect
01173da347fcef4abf201f2da3c8233b37f23892
[ "MIT" ]
1
2021-12-10T20:39:13.000Z
2021-12-10T20:39:13.000Z
yt_aspect/api.py
data-exp-lab/yt_aspect
01173da347fcef4abf201f2da3c8233b37f23892
[ "MIT" ]
6
2021-09-07T19:54:16.000Z
2021-09-16T20:18:51.000Z
yt_aspect/api.py
chrishavlin/yt_aspect
01173da347fcef4abf201f2da3c8233b37f23892
[ "MIT" ]
1
2021-09-15T21:55:57.000Z
2021-09-15T21:55:57.000Z
from .data_structures import ASPECTDataset # noqa: F401; noqa: F401 from .data_structures import ASPECTUnstructuredIndex # noqa: F401 from .data_structures import ASPECTUnstructuredMesh # noqa: F401 from .fields import ASPECTFieldInfo # noqa: F401 from .io import IOHandlerASPECT # noqa: F401
49.666667
68
0.802013
8d9928517430bf12db93876f97f5bcb221cb1f7a
723
py
Python
imbo/__main__.py
imneonizer/bounding-box
62e77fb5ce74dbb0dcb0c102e49083921de6050e
[ "BSD-3-Clause" ]
6
2020-05-03T13:06:26.000Z
2020-08-17T11:59:22.000Z
imbo/__main__.py
imneonizer/bounding-box
62e77fb5ce74dbb0dcb0c102e49083921de6050e
[ "BSD-3-Clause" ]
null
null
null
imbo/__main__.py
imneonizer/bounding-box
62e77fb5ce74dbb0dcb0c102e49083921de6050e
[ "BSD-3-Clause" ]
null
null
null
import os import argparse import shutil abspath = lambda file_name: os.path.join( os.path.dirname(os.path.realpath(__file__)), os.path.join("fonts", file_name)) # create fonts directory in module location if not os.path.exists(abspath("")): os.makedirs(abspath("")) # construct the command line arguments ap =...
27.807692
82
0.699862
bd04418a7cf4cdac7b85aca7ad8e7295ca6f3beb
196
py
Python
rssant/allauth_providers/github/provider.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
1,176
2019-12-24T01:51:22.000Z
2022-03-29T06:00:25.000Z
rssant/allauth_providers/github/provider.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
33
2020-03-06T03:29:46.000Z
2022-03-11T06:24:26.000Z
rssant/allauth_providers/github/provider.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
110
2019-12-29T05:49:24.000Z
2022-03-28T06:44:21.000Z
from allauth.socialaccount.providers.github.provider import GitHubProvider class RssantGitHubProvider(GitHubProvider): """RssantGitHubProvider""" provider_classes = [RssantGitHubProvider]
21.777778
74
0.826531
275d2b61baa39313058c18250db16000b08ea70e
10,803
py
Python
Lenia-taichi.py
metachow/Taichi_Lenia
32be8db10ac9fd3c24cb3732c39683af93fd287d
[ "MIT" ]
5
2022-01-10T10:10:43.000Z
2022-01-25T12:09:55.000Z
Lenia-taichi.py
metachow/Taichi_Lenia
32be8db10ac9fd3c24cb3732c39683af93fd287d
[ "MIT" ]
null
null
null
Lenia-taichi.py
metachow/Taichi_Lenia
32be8db10ac9fd3c24cb3732c39683af93fd287d
[ "MIT" ]
null
null
null
import taichi as ti import time from taichi.ui import canvas # ti.init(arch=ti.cpu) ti.init(arch=ti.cuda) # color map is copy from: https://forum.taichi.graphics/t/vortex-method-demo/775 class ColorMap: def __init__(self, h, wl, wr, c): self.h = h self.wl = wl self.wr = wr self.c...
32.441441
143
0.493381
3e66c34b0f6eab0a6715188c860cee3816f01970
699
py
Python
dash_docs/chapters/dash_core_components/Slider/examples/slider_drag.py
houtanb/dash-docs
daf5f555117ff5ba53d7d5161c5f08e8c270cad9
[ "MIT" ]
379
2017-06-21T14:35:52.000Z
2022-03-20T01:47:14.000Z
dash_docs/chapters/dash_core_components/Slider/examples/slider_drag.py
houtanb/dash-docs
daf5f555117ff5ba53d7d5161c5f08e8c270cad9
[ "MIT" ]
746
2017-06-21T19:58:17.000Z
2022-03-23T14:51:24.000Z
dash_docs/chapters/dash_core_components/Slider/examples/slider_drag.py
houtanb/dash-docs
daf5f555117ff5ba53d7d5161c5f08e8c270cad9
[ "MIT" ]
201
2017-06-21T21:53:19.000Z
2022-03-17T13:23:55.000Z
import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import dash external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] app = dash.Dash(__name__, external_stylesheets=external_stylesheets) app.layout = html.Div([ dcc.Slider(id='slider-d...
29.125
82
0.715308
7b49805c83a685e9fb669f4b32a310c867420dd2
26,868
py
Python
apply_kernels_MLPs.py
Jeffrey-Ede/Denoising-Kernels-MLPs-Autoencoders
9fd2cba5245b1d984023332bc06b2d9da2c27959
[ "MIT" ]
1
2020-02-28T12:46:05.000Z
2020-02-28T12:46:05.000Z
apply_kernels_MLPs.py
Jeffrey-Ede/Denoising-Kernels-MLPs-Autoencoders
9fd2cba5245b1d984023332bc06b2d9da2c27959
[ "MIT" ]
null
null
null
apply_kernels_MLPs.py
Jeffrey-Ede/Denoising-Kernels-MLPs-Autoencoders
9fd2cba5245b1d984023332bc06b2d9da2c27959
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os os.environ["CUDA_VISIBLE_DEVICES"] = "1" import argparse import numpy as np import tensorflow as tf import cv2 from scipy.misc import imread import time import os, random from...
37.368567
132
0.452285
7d988ef6693bea56dcb405ec83dd7821a50b5cd7
36,135
py
Python
MetaScreener/external_sw/mgltools/lib/python2.7/site-packages/SimPy/SimPlot.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/lib/python2.7/site-packages/SimPy/SimPlot.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/lib/python2.7/site-packages/SimPy/SimPlot.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # $Revision: 1.1.1.14 $ $Date: 2007/01/08 14:47:12 $ kgm """ SimPlot 1.8 Provides basic plotting services based on Tk/Tkinter. LICENSE: Copyright (C) 2002, 2005,2006,2007 Klaus G. Muller, Tony Vignaux mailto: kgmuller@xs4all.nl and Tony.Vignaux@vuw.ac.nz This library is free softwa...
38.647059
96
0.49697
e2ae90cc58fe9ca7752520a4daedce7ae2561b04
5,365
py
Python
build/lib.linux-x86_64-2.7/pysmt/walkers/dag.py
aman-goel/pysmt
fc92e716b4b1973d978df73b4cea42131b3bd7cd
[ "Apache-2.0" ]
null
null
null
build/lib.linux-x86_64-2.7/pysmt/walkers/dag.py
aman-goel/pysmt
fc92e716b4b1973d978df73b4cea42131b3bd7cd
[ "Apache-2.0" ]
null
null
null
build/lib.linux-x86_64-2.7/pysmt/walkers/dag.py
aman-goel/pysmt
fc92e716b4b1973d978df73b4cea42131b3bd7cd
[ "Apache-2.0" ]
null
null
null
# # This file is part of pySMT. # # Copyright 2014 Andrea Micheli and Marco Gario # # 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 ...
35.766667
77
0.637465
3381436449d7859a57172b0cc57d7a61fa7e8a91
10,545
py
Python
contextvars/tests/test_basics.py
smurfix/micropython-lib
70d90f753633c0cef6ad0adb4c97e3af79cb2c59
[ "PSF-2.0" ]
null
null
null
contextvars/tests/test_basics.py
smurfix/micropython-lib
70d90f753633c0cef6ad0adb4c97e3af79cb2c59
[ "PSF-2.0" ]
null
null
null
contextvars/tests/test_basics.py
smurfix/micropython-lib
70d90f753633c0cef6ad0adb4c97e3af79cb2c59
[ "PSF-2.0" ]
null
null
null
# Tests are copied from cpython/Lib/test/test_context.py # License: PSFL # Copyright: 2018 Python Software Foundation import concurrent.futures import functools import random import time import unittest import contextvars def isolated_context(func): """Needed to make reftracking test mode work.""" @functoo...
29.620787
78
0.563774
9f01aa24687d49a23d2664bafdc73b3413f96da3
2,774
py
Python
lib_bgp_simulator_engine/tests/utils/graph_writer.py
jfuruness/lib_bgp_simulator_engine
cd45a653d7fa26b7387e7450a5891b62efe5bf01
[ "BSD-3-Clause" ]
1
2021-09-27T14:13:10.000Z
2021-09-27T14:13:10.000Z
lib_bgp_simulator_engine/tests/utils/graph_writer.py
jfuruness/lib_bgp_simulator_engine
cd45a653d7fa26b7387e7450a5891b62efe5bf01
[ "BSD-3-Clause" ]
null
null
null
lib_bgp_simulator_engine/tests/utils/graph_writer.py
jfuruness/lib_bgp_simulator_engine
cd45a653d7fa26b7387e7450a5891b62efe5bf01
[ "BSD-3-Clause" ]
null
null
null
import csv from tqdm import tqdm class _AS: def __init__(self, asn): self.asn = asn self.as_type = None self.rank = None self.peer_asns = list() self.customer_asns = list() self.provider_asns = list() def write_graph(peers, customer_providers, as_types, path_obj): ...
35.113924
95
0.647801
522a4dab4cf18945bec05557aa9c3f72862676ae
159,237
py
Python
benchmarks/ltl_maxplus/f3/maxplus_40_71.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/ltl_maxplus/f3/maxplus_40_71.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/ltl_maxplus/f3/maxplus_40_71.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_true, msat_make_false from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_rational_type from mathsat import msat_make_and as _msat_make_and from mathsat import msat_make_or as _...
58.694066
322
0.497535
005ca2969c9b4a6d0b6e77fa39ed8e6dd4425fb5
2,723
py
Python
PyFlow/Packages/PyFlowBase/Nodes/consoleOutput.py
luzpaz/PyFlow
e00642794051b1d9b7b2665eee38567e9763558d
[ "Apache-2.0" ]
1,463
2019-07-29T15:45:22.000Z
2022-03-31T23:32:13.000Z
PyFlow/Packages/PyFlowBase/Nodes/consoleOutput.py
luzpaz/PyFlow
e00642794051b1d9b7b2665eee38567e9763558d
[ "Apache-2.0" ]
58
2019-07-31T07:58:57.000Z
2022-02-23T05:46:08.000Z
PyFlow/Packages/PyFlowBase/Nodes/consoleOutput.py
luzpaz/PyFlow
e00642794051b1d9b7b2665eee38567e9763558d
[ "Apache-2.0" ]
169
2019-08-03T16:38:57.000Z
2022-03-31T14:20:12.000Z
## Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera ## 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...
36.797297
146
0.662872
1177d86a3e2e14a41ae75e633cb521cd6b80113b
482
py
Python
test/tools_test.py
jjlawren/ha-ffmpeg
898491671e8dc60b140a0353b0cddeb234e11906
[ "BSD-3-Clause" ]
null
null
null
test/tools_test.py
jjlawren/ha-ffmpeg
898491671e8dc60b140a0353b0cddeb234e11906
[ "BSD-3-Clause" ]
null
null
null
test/tools_test.py
jjlawren/ha-ffmpeg
898491671e8dc60b140a0353b0cddeb234e11906
[ "BSD-3-Clause" ]
null
null
null
import logging import sys import click sys.path.append("../") from haffmpeg import Test logging.basicConfig(level=logging.DEBUG) @click.command() @click.option("--ffmpeg", "-f", default="ffmpeg", help="FFmpeg binary") @click.option("--source", "-s", help="Input file for ffmpeg") def cli(ffmpeg, source): """FFMPE...
20.083333
71
0.672199
62f27bf5acbf3640dfdaf4fcdb53d67ab0f96f72
763
py
Python
kattis/k_fizzbuzz.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_fizzbuzz.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_fizzbuzz.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
''' The interview question Status: Accepted ''' ############################################################################### def main(): """Read input and print output""" fizzing, buzzing, domain = [int(i) for i in input().split()] result = [*range(domain + 1)] for index in range(domain + 1): ...
24.612903
79
0.410223
e2ea64017dd2857f0ff92cd8d63bea08905f3df2
304
py
Python
golly-4.0-win-64bit/Scripts/Python/glife/gun46.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
golly-4.0-win-64bit/Scripts/Python/glife/gun46.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
golly-4.0-win-64bit/Scripts/Python/glife/gun46.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
from glife.base import * rule() # use Life rule to evolve phases __half = bheptomino (0, 2, flip_x) + bheptomino (0, -2, flip) + block (16, -4) + block (16, 3) gun46_double = __half (7, -2) + __half (-8, 2, flip_x) gun46 = __half[1] (1, -7) + __half (-13, -4, flip_x) # aligned version shooting SE
30.4
94
0.628289
af7ca299d2a55adc57c5fc68d5c32e2ed9a31af2
1,683
py
Python
sknetwork/data/tests/test_toy_graphs.py
altana-tech/scikit-network
dedc9d3e694c7106e4709aae22dffb5142c15859
[ "BSD-3-Clause" ]
457
2018-07-24T12:42:14.000Z
2022-03-31T08:30:39.000Z
sknetwork/data/tests/test_toy_graphs.py
altana-tech/scikit-network
dedc9d3e694c7106e4709aae22dffb5142c15859
[ "BSD-3-Clause" ]
281
2018-07-13T05:01:19.000Z
2022-03-31T14:13:43.000Z
sknetwork/data/tests/test_toy_graphs.py
altana-tech/scikit-network
dedc9d3e694c7106e4709aae22dffb5142c15859
[ "BSD-3-Clause" ]
58
2019-04-22T09:04:32.000Z
2022-03-30T12:43:08.000Z
# -*- coding: utf-8 -*- # tests for toy_graphs.py """ @author: Quentin Lutz <qlutz@enst.fr> @author: Nathan de Lara <ndelara@enst.fr> @author: Thomas Bonald <tbonald@enst.fr> """ import unittest from sknetwork.data.toy_graphs import * class TestToys(unittest.TestCase): def test_undirected(self): adjacen...
29.526316
59
0.639335
22b845accd00de1e499708aad70679260e142683
3,915
py
Python
counterfit/core/wrappers.py
pralab/counterfit
4d0b6134afc951185505c4754209ebd896557e4b
[ "MIT" ]
null
null
null
counterfit/core/wrappers.py
pralab/counterfit
4d0b6134afc951185505c4754209ebd896557e4b
[ "MIT" ]
null
null
null
counterfit/core/wrappers.py
pralab/counterfit
4d0b6134afc951185505c4754209ebd896557e4b
[ "MIT" ]
null
null
null
import numpy as np from art.estimators.estimator import BaseEstimator, NeuralNetworkMixin from art.estimators.classification import ClassifierMixin from secml.array import CArray from secml_malware.attack.blackbox.c_wrapper_phi import CWrapperPhi class BlackBoxClassifierWrapper(BaseEstimator, NeuralNetworkMixin, Cla...
41.210526
249
0.679693
4308b05d0540a65f61eed427ea1d96e359bda249
25,330
py
Python
openstackclient/tests/unit/identity/v2_0/test_user.py
cloudification-io/python-openstackclient
e07324e30fbb24e89fd63d1c5a5fe485f693a45c
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/unit/identity/v2_0/test_user.py
cloudification-io/python-openstackclient
e07324e30fbb24e89fd63d1c5a5fe485f693a45c
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/unit/identity/v2_0/test_user.py
cloudification-io/python-openstackclient
e07324e30fbb24e89fd63d1c5a5fe485f693a45c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Nebula Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.777643
79
0.572444
0ef879902316025633e73c71e0fab3896270d086
21,744
py
Python
cibuildwheel/options.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
371
2021-05-19T18:48:06.000Z
2022-03-31T11:31:41.000Z
cibuildwheel/options.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
234
2021-05-19T19:25:42.000Z
2022-03-29T19:03:00.000Z
cibuildwheel/options.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
56
2021-05-25T19:59:54.000Z
2022-03-26T13:49:14.000Z
import os import sys import traceback from configparser import ConfigParser from contextlib import contextmanager from pathlib import Path from typing import ( Any, Dict, Iterator, List, Mapping, NamedTuple, Optional, Set, Tuple, Union, ) import tomli from packaging.specifiers i...
36.059701
127
0.625966
2e1d1bc8732bc133c891f0d1d04b503aca834b8c
1,688
py
Python
kakao 2020/hyeongyu/p6.py
mrkimkim/csi
2b8dde9419646c64f1f37c6d03e46efe0a49fe75
[ "Apache-2.0" ]
null
null
null
kakao 2020/hyeongyu/p6.py
mrkimkim/csi
2b8dde9419646c64f1f37c6d03e46efe0a49fe75
[ "Apache-2.0" ]
null
null
null
kakao 2020/hyeongyu/p6.py
mrkimkim/csi
2b8dde9419646c64f1f37c6d03e46efe0a49fe75
[ "Apache-2.0" ]
null
null
null
def count_people(number): cnt = 0 while number > 0: cnt += number % 2 number //= 2 return cnt def process(weak, dist, dp): K = [] for i in range(len(dist)): K.append(2 ** i) # initial position is always zero dp[0][K[i]] = dist[i] for i in range(1...
31.849057
75
0.469787
9ce8d5fd4fe4b7369dbf10a884db28665a03e88b
5,811
py
Python
py/pnet_report.py
bcgov/diutils
caf510c81f7f43372d4a8e18f77eaa86cdede6a5
[ "Apache-2.0" ]
null
null
null
py/pnet_report.py
bcgov/diutils
caf510c81f7f43372d4a8e18f77eaa86cdede6a5
[ "Apache-2.0" ]
1
2020-12-14T22:00:24.000Z
2020-12-14T22:00:24.000Z
py/pnet_report.py
bcgov/diutils
caf510c81f7f43372d4a8e18f77eaa86cdede6a5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
36.31875
147
0.577181
8c28a2bf66b845cd4fa91b3be4579ef0bec5e814
783
py
Python
Renames_Files.py
stasvf2278/Rename_Files
ef52a098da4af48168943c9e712546fe3124082f
[ "MIT" ]
null
null
null
Renames_Files.py
stasvf2278/Rename_Files
ef52a098da4af48168943c9e712546fe3124082f
[ "MIT" ]
null
null
null
Renames_Files.py
stasvf2278/Rename_Files
ef52a098da4af48168943c9e712546fe3124082f
[ "MIT" ]
null
null
null
import os, shutil def main(): print('Enter input directory path') ## Enter first folder file path here folder1 = input() print('Enter New File Prefix') prefix = input() print('Enter output directory path') ## Enter second folder file path here folder2 = inpu...
27
93
0.541507
5f04bb4c4c1f4b7d7a74c1967d5ac9e58e7e5964
7,482
py
Python
SchoolApp/apps/public_api/views.py
Ceres445/Team-10-Python-Project
8a97642f019548d137dff564f9fdcc8f92761cc8
[ "MIT" ]
4
2021-06-25T04:17:08.000Z
2022-02-13T14:48:38.000Z
SchoolApp/apps/public_api/views.py
Ceres445/Team-10-Python-Project
8a97642f019548d137dff564f9fdcc8f92761cc8
[ "MIT" ]
20
2021-07-05T08:59:41.000Z
2022-02-07T02:06:33.000Z
SchoolApp/apps/public_api/views.py
Ceres445/Team-10-Python-Project
8a97642f019548d137dff564f9fdcc8f92761cc8
[ "MIT" ]
1
2021-07-22T07:38:00.000Z
2021-07-22T07:38:00.000Z
from django.core.exceptions import PermissionDenied, ObjectDoesNotExist from rest_framework import generics, permissions from apps.classes.models import Assignment, Upload from apps.timetable.models import ClassTime from .filters import filter_queryset, authenticated_home, anon_home, authenticated_classes, anon, parse...
45.072289
120
0.631248
9ccaf8f43156e8728c346a57bde9f4b00d4e2c4b
5,698
py
Python
src/transfer_orientation.py
memento42429/metashape-scripts
6537719eb0fd52f649d410eb7e7fe8b6b6028302
[ "MIT" ]
40
2017-10-17T16:18:21.000Z
2018-12-28T02:37:35.000Z
src/transfer_orientation.py
memento42429/metashape-scripts
6537719eb0fd52f649d410eb7e7fe8b6b6028302
[ "MIT" ]
1
2018-07-11T06:41:38.000Z
2018-07-12T18:15:35.000Z
src/transfer_orientation.py
memento42429/metashape-scripts
6537719eb0fd52f649d410eb7e7fe8b6b6028302
[ "MIT" ]
15
2017-11-22T11:16:16.000Z
2018-12-30T13:50:41.000Z
# Transfers orientations from certain cameras to the corresponding ones. # # Usecase: RGB and thermal photos were taken simultaneously and in the same directions. # Alignment can be computed only with RGB photos and then transferred to thermal. # # Important: Calibration for thermal cameras will not be adjusted automat...
33.916667
123
0.627589
cdcbee451f9652734863fa3c905b3f9cf4a23cac
36,646
py
Python
lib_pypy/_cffi_ssl/_cffi_src/openssl/ssl.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib_pypy/_cffi_ssl/_cffi_src/openssl/ssl.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib_pypy/_cffi_ssl/_cffi_src/openssl/ssl.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function INCLUDES = """ #include <openssl/ssl.h> typedef STACK_OF(SSL_CIPHER) Cry...
39.789359
79
0.697184
beef288d8a26c1c03e8bf447767b782bde627158
3,710
py
Python
tests/test_add_sinks.py
joshgordon/loguru
9777f4bec8b03ef074635269224baa3fd263fd09
[ "MIT" ]
1
2019-10-21T01:59:35.000Z
2019-10-21T01:59:35.000Z
tests/test_add_sinks.py
joshgordon/loguru
9777f4bec8b03ef074635269224baa3fd263fd09
[ "MIT" ]
null
null
null
tests/test_add_sinks.py
joshgordon/loguru
9777f4bec8b03ef074635269224baa3fd263fd09
[ "MIT" ]
null
null
null
import pathlib import sys import os import logging from loguru import logger import pytest message = "test message" expected = message + "\n" repetitions = pytest.mark.parametrize("rep", [0, 1, 2]) def log(sink, rep=1): logger.debug("This shouldn't be printed.") i = logger.add(sink, format="{message}") ...
22.083333
97
0.628571
516f7c20736d09f491482b51a63e563037b5e7b8
8,787
py
Python
tests/st/ops/cpu/test_arithmetic_op.py
Fengjuzhuwhw/mindspore
553bb6e9d1156d8170f7ce9b9dd376e545f8bf97
[ "Apache-2.0" ]
null
null
null
tests/st/ops/cpu/test_arithmetic_op.py
Fengjuzhuwhw/mindspore
553bb6e9d1156d8170f7ce9b9dd376e545f8bf97
[ "Apache-2.0" ]
null
null
null
tests/st/ops/cpu/test_arithmetic_op.py
Fengjuzhuwhw/mindspore
553bb6e9d1156d8170f7ce9b9dd376e545f8bf97
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
34.458824
78
0.637988
7811179b1ba8bf1dda101ada07a6f2d221875d9d
4,673
py
Python
captionGen.py
4rude/WebVTTCaptionGen
ceb9e763adcbd7b0e0bb3263cbad1b09f09ac1c2
[ "MIT" ]
null
null
null
captionGen.py
4rude/WebVTTCaptionGen
ceb9e763adcbd7b0e0bb3263cbad1b09f09ac1c2
[ "MIT" ]
null
null
null
captionGen.py
4rude/WebVTTCaptionGen
ceb9e763adcbd7b0e0bb3263cbad1b09f09ac1c2
[ "MIT" ]
null
null
null
# Example input variables: # Ex. endSecond = 6000 # Ex. filePath = "images/thumbs/thumb" def webvttCaptionGenerator(endSecond, filePath): # This application could have been written to be a lot shorter (more dynamic), however it still works. # This webvtt caption generator generates captions for videos roughly 1 hou...
32.678322
189
0.536272
1d90cb92de95e1daa3cb6006d949026e5680df85
828
py
Python
tests/common/helpers.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
null
null
null
tests/common/helpers.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
null
null
null
tests/common/helpers.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
37.636364
73
0.711353
fc0df5e92609b5c9e8f37c8e0d34a627dfa719e4
934
py
Python
spiritdashboard/urls.py
rashidx/SMUS-Go
481df8c3d9d59da1e2753d4ac6ce087fd3abb161
[ "MIT" ]
1
2019-02-14T05:01:53.000Z
2019-02-14T05:01:53.000Z
spiritdashboard/urls.py
rashidx/SMUS-Go
481df8c3d9d59da1e2753d4ac6ce087fd3abb161
[ "MIT" ]
null
null
null
spiritdashboard/urls.py
rashidx/SMUS-Go
481df8c3d9d59da1e2753d4ac6ce087fd3abb161
[ "MIT" ]
null
null
null
from django.urls import path from . import views from django.contrib.auth.views import LoginView, LogoutView app_name = 'spiritdashboard' urlpatterns = [ path('', views.dashboard, name='dashboard'), path('', views.dashboard, name='index'), path('dashboard/', views.dashboard), path('register/', views.re...
46.7
96
0.708779
6d6fb26722851b5ac0c6b91ee32521ee8d68d6f6
1,073
py
Python
Otree-Base/inicio/__init__.py
abnercasallo/source
94c14c6a277d1b783a1ceddbc0e0852443ea5847
[ "MIT" ]
null
null
null
Otree-Base/inicio/__init__.py
abnercasallo/source
94c14c6a277d1b783a1ceddbc0e0852443ea5847
[ "MIT" ]
null
null
null
Otree-Base/inicio/__init__.py
abnercasallo/source
94c14c6a277d1b783a1ceddbc0e0852443ea5847
[ "MIT" ]
null
null
null
from otree.api import * c = Currency doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'inicio' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): ...
17.883333
110
0.664492
d0c65748cefbf60b1150c16bbd4ae8ffe3f3a541
6,210
py
Python
ipproxytool/spiders/validator/httpbin.py
xlj44400/IPProxyTool
416dc2bffeced8344f8156b5606376e93a7be5cf
[ "MIT" ]
1
2017-11-10T15:29:35.000Z
2017-11-10T15:29:35.000Z
ipproxytool/spiders/validator/httpbin.py
xlj44400/IPProxyTool
416dc2bffeced8344f8156b5606376e93a7be5cf
[ "MIT" ]
null
null
null
ipproxytool/spiders/validator/httpbin.py
xlj44400/IPProxyTool
416dc2bffeced8344f8156b5606376e93a7be5cf
[ "MIT" ]
2
2018-09-27T06:36:00.000Z
2019-04-16T06:06:26.000Z
#-*- coding: utf-8 -*- import json import time import datetime import logging import requests import config import utils from scrapy import Request from validator import Validator class HttpBinSpider(Validator): name = 'httpbin' concurrent_requests = 16 def __init__(self, name = None, **kwargs): ...
39.55414
113
0.501932
13eac5cc71a87eafcd0e6e29147adc6dbb52c602
1,675
py
Python
database_setup.py
rubinsaifi/udacity-catalog-project
2680ddad1aa2e79d2932f996e2f657cf2c98a5e1
[ "Unlicense" ]
null
null
null
database_setup.py
rubinsaifi/udacity-catalog-project
2680ddad1aa2e79d2932f996e2f657cf2c98a5e1
[ "Unlicense" ]
null
null
null
database_setup.py
rubinsaifi/udacity-catalog-project
2680ddad1aa2e79d2932f996e2f657cf2c98a5e1
[ "Unlicense" ]
null
null
null
from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy import create_engine Base = declarative_base() class User(Base): __tablename__ = 'user' id = Column(Integer, primary_key=True) name =...
27.016129
63
0.65194
2e5ff9b38b6907b59b833897aa8902368419dda3
132
py
Python
backend/takeout/customer/apps.py
BillBillBillBill/laughing-garbanzo
27c66dcc4f0e045ae060255679a2aa68c0f744d2
[ "MIT" ]
15
2016-08-03T08:11:36.000Z
2022-03-24T03:21:06.000Z
backend/takeout/customer/apps.py
BillBillBillBill/laughing-garbanzo
27c66dcc4f0e045ae060255679a2aa68c0f744d2
[ "MIT" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
backend/takeout/customer/apps.py
BillBillBillBill/laughing-garbanzo
27c66dcc4f0e045ae060255679a2aa68c0f744d2
[ "MIT" ]
7
2016-08-03T08:11:38.000Z
2020-12-27T08:49:10.000Z
from __future__ import unicode_literals from django.apps import AppConfig class CustomerConfig(AppConfig): name = 'customer'
16.5
39
0.795455
4c68fa0b39b8aaa1747c24a54cd119cace8868d8
243
py
Python
ocp_resources/machine_config_pool.py
kbidarkar/openshift-python-wrapper
3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb
[ "Apache-2.0" ]
9
2021-07-05T18:35:55.000Z
2021-12-31T03:09:39.000Z
ocp_resources/machine_config_pool.py
kbidarkar/openshift-python-wrapper
3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb
[ "Apache-2.0" ]
418
2021-07-04T13:12:09.000Z
2022-03-30T08:37:45.000Z
ocp_resources/machine_config_pool.py
kbidarkar/openshift-python-wrapper
3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb
[ "Apache-2.0" ]
28
2021-07-04T12:48:18.000Z
2022-02-22T15:19:30.000Z
from ocp_resources.resource import Resource class MachineConfigPool(Resource): api_group = Resource.ApiGroup.MACHINECONFIGURATION_OPENSHIFT_IO class Status(Resource.Status): UPDATED = "Updated" UPDATING = "Updating"
24.3
67
0.748971
f9bae9cd8a37b71fee3b98e467c00c5e978c4cfd
567
py
Python
examples/example_nexus.py
DanPorter/babelscan
71fa43f13a8318efbcdb412c4fca533d4b6f9ec9
[ "Apache-2.0" ]
null
null
null
examples/example_nexus.py
DanPorter/babelscan
71fa43f13a8318efbcdb412c4fca533d4b6f9ec9
[ "Apache-2.0" ]
null
null
null
examples/example_nexus.py
DanPorter/babelscan
71fa43f13a8318efbcdb412c4fca533d4b6f9ec9
[ "Apache-2.0" ]
null
null
null
""" BabelScan Example """ import babelscan scan = babelscan.file_loader(r"C:\Users\dgpor\Dropbox\Python\ExamplePeaks\810002.nxs") print(scan) # HDF options print(scan.find_address('energy')) # find addresses that match name "energy" print(scan.address('energy')) # display address that is choosen by default # Load...
21.807692
86
0.730159
9cdb03cc122113b06ed77f11de999846c326ff3c
19,396
py
Python
edb/server/compiler/dbstate.py
kafein/edgedb
3cc4c5e6e11a6f25a82b061d7ba294deeb9ccb80
[ "Apache-2.0" ]
null
null
null
edb/server/compiler/dbstate.py
kafein/edgedb
3cc4c5e6e11a6f25a82b061d7ba294deeb9ccb80
[ "Apache-2.0" ]
null
null
null
edb/server/compiler/dbstate.py
kafein/edgedb
3cc4c5e6e11a6f25a82b061d7ba294deeb9ccb80
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
30.30625
78
0.672922
63ba5c5d026c3eac701e3ee0719967edc9151997
5,505
py
Python
tensorflow_probability/python/positive_semidefinite_kernels/kumaraswamy_transformed_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/positive_semidefinite_kernels/kumaraswamy_transformed_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/positive_semidefinite_kernels/kumaraswamy_transformed_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
34.622642
115
0.665213
c28eef83aa6c2c3009824d6328b8ab4b1889d4b8
360
py
Python
aft/users/admin.py
InDeepShip/InDeepShip
856f868a6c20223a6b0f221158813059a4479264
[ "MIT" ]
1
2021-01-03T18:59:29.000Z
2021-01-03T18:59:29.000Z
aft/users/admin.py
InDeepShip/InDeepShip
856f868a6c20223a6b0f221158813059a4479264
[ "MIT" ]
null
null
null
aft/users/admin.py
InDeepShip/InDeepShip
856f868a6c20223a6b0f221158813059a4479264
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import get_user_model from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import Group # Register your models here. from .forms import CustomUserCreationForm, CustomUserChangeForm from .models import CustomUser admin.site.register(C...
30
63
0.844444
3db64e4dab684938500f018a7f76b461add643e8
29,259
py
Python
venv/lib/python3.10/site-packages/celery/schedules.py
SujalKokh/django-celery-sqs
5c7a6e79fac2e4585d3973a47eea9349396fcfea
[ "MIT" ]
1
2021-05-29T21:17:56.000Z
2021-05-29T21:17:56.000Z
venv/lib/python3.10/site-packages/celery/schedules.py
SujalKokh/django-celery-sqs
5c7a6e79fac2e4585d3973a47eea9349396fcfea
[ "MIT" ]
null
null
null
venv/lib/python3.10/site-packages/celery/schedules.py
SujalKokh/django-celery-sqs
5c7a6e79fac2e4585d3973a47eea9349396fcfea
[ "MIT" ]
1
2021-06-30T12:43:39.000Z
2021-06-30T12:43:39.000Z
"""Schedules define the intervals at which periodic tasks run.""" import numbers import re from bisect import bisect, bisect_left from collections import namedtuple from collections.abc import Iterable from datetime import datetime, timedelta from kombu.utils.objects import cached_property from . import current_app ...
34.998804
79
0.577873
2cb8ffd88f54c2e38b00cfa7bc81bff9f8b9456b
1,757
py
Python
postProcess/cut_video_function.py
SnorlaxSE/handtracking-Application
5af03d9a1797040274ca2a306a7873cd48ea12af
[ "Apache-2.0" ]
null
null
null
postProcess/cut_video_function.py
SnorlaxSE/handtracking-Application
5af03d9a1797040274ca2a306a7873cd48ea12af
[ "Apache-2.0" ]
null
null
null
postProcess/cut_video_function.py
SnorlaxSE/handtracking-Application
5af03d9a1797040274ca2a306a7873cd48ea12af
[ "Apache-2.0" ]
null
null
null
import cv2 import glob import os import pdb def get_video_info(video_path): videoCapture = cv2.VideoCapture() videoCapture.open(video_path) # 帧率 fps = videoCapture.get(cv2.CAP_PROP_FPS) # 尺寸 (分辨率) size = (int(videoCapture.get(cv2.CAP_PROP_FRAME_WIDTH)), int(videoCapture.get(cv2.CAP_PROP_FRAM...
35.14
130
0.667615
3f25048863710e448dbdce1d40d502eab8064684
2,549
py
Python
sdk/python/tests/compiler/testdata/artifact_passing_using_volume.py
k-gupta/pipelines
4ea6eb66175399ee2bcd4de7a520b13f7b1385a0
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/compiler/testdata/artifact_passing_using_volume.py
k-gupta/pipelines
4ea6eb66175399ee2bcd4de7a520b13f7b1385a0
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/compiler/testdata/artifact_passing_using_volume.py
k-gupta/pipelines
4ea6eb66175399ee2bcd4de7a520b13f7b1385a0
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import kfp.deprecated as kfp from kfp.deprecated.components import load_component_from_file, create_component_from_func from typing import NamedTuple test_data_dir = Path(__file__).parent / 'test_data' producer_op = load_component_from_file( str(test_data_dir / 'produce_2.component.yaml')...
33.539474
90
0.674774
ccaf0b2cb68434c8fb96ea38c412740f73e8c8af
1,337
py
Python
PythonBaseDemo/CommonModules/10.6/find_test.py
CypHelp/TestNewWorldDemo
ee6f73df05756f191c1c56250fa290461fdd1b9a
[ "Apache-2.0" ]
null
null
null
PythonBaseDemo/CommonModules/10.6/find_test.py
CypHelp/TestNewWorldDemo
ee6f73df05756f191c1c56250fa290461fdd1b9a
[ "Apache-2.0" ]
null
null
null
PythonBaseDemo/CommonModules/10.6/find_test.py
CypHelp/TestNewWorldDemo
ee6f73df05756f191c1c56250fa290461fdd1b9a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 ######################################################################### # 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> # # author yeeku.H.lee kongyeeku@163.com # # # # version 1.0 ...
58.130435
79
0.267764
e4fe4cf9eb6ebea182c5d34e0c0a23be00cd84d8
845
py
Python
adanet/autoensemble/__init__.py
SmallyolkLiu/adanet
195012067fb0e3a26618f7bfdc388e6aeaed7dff
[ "Apache-2.0" ]
2
2019-01-04T19:23:23.000Z
2021-02-14T21:48:03.000Z
adanet/autoensemble/__init__.py
SmallyolkLiu/adanet
195012067fb0e3a26618f7bfdc388e6aeaed7dff
[ "Apache-2.0" ]
1
2019-03-04T16:57:55.000Z
2019-03-04T16:57:55.000Z
adanet/autoensemble/__init__.py
SmallyolkLiu/adanet
195012067fb0e3a26618f7bfdc388e6aeaed7dff
[ "Apache-2.0" ]
null
null
null
"""The TensorFlow AdaNet autoensemble module. Copyright 2018 The AdaNet 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 https://www.apache.org/licenses/LICENSE-2....
33.8
72
0.808284
5a0f85753a7763e6d5bb2be6474ac08a626d5833
4,781
py
Python
consai2_game/scripts/example/actions/tool.py
ibis-ssl/consai2-ibis
2b7d67007703fa49fc7290e92e12481ba48a9a93
[ "MIT" ]
4
2019-12-16T12:17:32.000Z
2020-02-15T04:45:47.000Z
consai2_game/scripts/example/actions/tool.py
ibis-ssl/consai2-ibis
2b7d67007703fa49fc7290e92e12481ba48a9a93
[ "MIT" ]
null
null
null
consai2_game/scripts/example/actions/tool.py
ibis-ssl/consai2-ibis
2b7d67007703fa49fc7290e92e12481ba48a9a93
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 SSL-Roots # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
28.975758
87
0.664296
67342f6db56f0281b437f0116e7df78e33c143de
5,107
py
Python
Lecture 24/Lecture24Assignment2.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2019-04-27T15:37:04.000Z
2019-04-27T15:37:04.000Z
Lecture 24/Lecture24Assignment2.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
null
null
null
Lecture 24/Lecture24Assignment2.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2020-08-14T06:57:08.000Z
2020-08-14T06:57:08.000Z
# WAP to implement Student management system. # - Student class should have - Name, Address, DOB, Course, Division, ListOfMarks # - Implement Getters and Setters # - AddStudent(), SuspendStudent(), UpdateAddress(), UpdateMarks(), PrintAllStudentDetails() and PrintPercentage() class Student: autoRollN...
32.737179
243
0.615626
31e8e3f98e314052519d03445e60ae830e374ba1
45,778
py
Python
beta/pyicloud_ic3.py
JavierMartinz/icloud3
23792bea461a1226d45a96300929f498833b0a6a
[ "MIT" ]
null
null
null
beta/pyicloud_ic3.py
JavierMartinz/icloud3
23792bea461a1226d45a96300929f498833b0a6a
[ "MIT" ]
null
null
null
beta/pyicloud_ic3.py
JavierMartinz/icloud3
23792bea461a1226d45a96300929f498833b0a6a
[ "MIT" ]
null
null
null
""" Customized version of pyicloud.py to support iCloud3 Custom Component Platform that supports importing data from the iCloud Location Services and Find My Friends api routines. Modifications to pyicloud were made by various people to include: - Original pyicloud - picklepete - https:...
36.6224
99
0.542488
b4f096a8be6fa28cefc7714a4f02a23dca797bba
2,250
py
Python
python/phonenumbers/data/region_NA.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/data/region_NA.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_NA.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. NA metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_NA = PhoneMetadata(id='NA', country_code=264, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[68]\\d{7,8}', possible_number_pattern='...
97.826087
497
0.659111
f5b18c46738890812e0f004126797488274a0a76
1,559
py
Python
model/encoder.py
wheeltune/kid-neuro
131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a
[ "MIT" ]
null
null
null
model/encoder.py
wheeltune/kid-neuro
131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a
[ "MIT" ]
null
null
null
model/encoder.py
wheeltune/kid-neuro
131ec888e4f0c3ee1d7b4c4ebf57a6b1d5323d8a
[ "MIT" ]
null
null
null
import torch.nn as nn from .norm_layer import NormLayer __all__ = ["KeystrokesEncoder"] #=============================================================================== class KeystrokesEncoder(nn.Module): #--------------------------------------------------------------------------- def __init__(self, d_code...
26.87931
84
0.452854
f049f78355aff1b5300e4011a5c634fd8860d06f
4,586
py
Python
guts/rpc.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/rpc.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/rpc.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
1
2022-03-03T05:41:31.000Z
2022-03-03T05:41:31.000Z
# Copyright (c) 2015 Aptira Pty Ltd. # 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 requi...
28.484472
78
0.657436
b60f1670ef02380a8deac8a7db616df055900481
1,864
py
Python
flooddrake/boundary_conditions.py
firedrakeproject/flooddrake
4a78c426a7171a27d02f864ee8e9d7b324163116
[ "MIT" ]
6
2018-07-27T04:09:53.000Z
2022-03-07T21:19:43.000Z
flooddrake/boundary_conditions.py
firedrakeproject/flooddrake
4a78c426a7171a27d02f864ee8e9d7b324163116
[ "MIT" ]
19
2016-06-14T09:13:01.000Z
2021-05-20T08:40:55.000Z
flooddrake/boundary_conditions.py
firedrakeproject/flooddrake
4a78c426a7171a27d02f864ee8e9d7b324163116
[ "MIT" ]
4
2016-06-09T10:09:28.000Z
2022-03-07T21:19:43.000Z
""" boundary conditions """ from __future__ import division from __future__ import absolute_import # boundary condition options options = ['solid wall', 'inflow', 'outflow'] # horizontal directions directions = ['both', 'x', 'y'] class BoundaryConditions(object): """ Implementation of a weakly imposed bounda...
31.066667
98
0.625
de9c77f98b0b0f5529406a4a46a2bd009fdc93ea
3,467
py
Python
colour/appearance/tests/test_nayatani95.py
colour-science/colour
6d9b1b8b9e96b5a3c3e3b64d9954be808e4e37a8
[ "BSD-3-Clause" ]
1,380
2015-01-10T12:30:33.000Z
2022-03-30T10:19:57.000Z
colour/appearance/tests/test_nayatani95.py
colour-science/colour
6d9b1b8b9e96b5a3c3e3b64d9954be808e4e37a8
[ "BSD-3-Clause" ]
638
2015-01-02T10:49:05.000Z
2022-03-29T10:16:22.000Z
colour/appearance/tests/test_nayatani95.py
colour-science/colour
6d9b1b8b9e96b5a3c3e3b64d9954be808e4e37a8
[ "BSD-3-Clause" ]
250
2015-01-21T15:27:19.000Z
2022-03-30T10:23:58.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.appearance.nayatani95` module. """ import numpy as np from itertools import permutations from colour.appearance import XYZ_to_Nayatani95 from colour.appearance.tests.common import AbstractColourAppearanceModelTest from colo...
31.807339
79
0.578887
0ab38941ef3a643d20313a43b2c6c719ac984551
1,242
py
Python
etc/nasa_apod.py
RedChen/stackstorm-tutorial
583fa44e869b9e50460b8f50da3b597aff333a12
[ "Apache-2.0" ]
null
null
null
etc/nasa_apod.py
RedChen/stackstorm-tutorial
583fa44e869b9e50460b8f50da3b597aff333a12
[ "Apache-2.0" ]
null
null
null
etc/nasa_apod.py
RedChen/stackstorm-tutorial
583fa44e869b9e50460b8f50da3b597aff333a12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Description: # Queries NASA's APOD (Astronomy Picture Of the Day) API to get the link to the picture # of the day. # import argparse import json import requests API_URL = "https://api.nasa.gov/planetary/apod" DEMO_API_KEY = "DEMO_KEY" def parse_args(): parser = argparse.ArgumentPars...
28.227273
89
0.602254
8dfe4f792f908062a83f2f3cc3a8906ecf26932c
10,804
py
Python
models/pix2pix_tm_in2_model.py
tkuri/pytorch-CycleGAN-and-pix2pix
b00b3f0bcebfb12d3f026c2a61c98ff63175a583
[ "BSD-3-Clause" ]
null
null
null
models/pix2pix_tm_in2_model.py
tkuri/pytorch-CycleGAN-and-pix2pix
b00b3f0bcebfb12d3f026c2a61c98ff63175a583
[ "BSD-3-Clause" ]
null
null
null
models/pix2pix_tm_in2_model.py
tkuri/pytorch-CycleGAN-and-pix2pix
b00b3f0bcebfb12d3f026c2a61c98ff63175a583
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn from .base_model import BaseModel from . import networks from torch.nn import functional as F class Pix2PixTmIn2Model(BaseModel): """ This class implements the pix2pix model, for learning a mapping from input images to output images given paired data. The model training requ...
55.979275
162
0.632729
9e10ab3aed5082a7ba30ec4406ef80cbc5ee175a
7,112
py
Python
Mind_Game_Parra/mind_noavoid_choices/pages.py
danielfParra/Lying_Online_Parra2022
10e8ef6248f684f63e9dea1314ef57f197e48773
[ "CC0-1.0" ]
null
null
null
Mind_Game_Parra/mind_noavoid_choices/pages.py
danielfParra/Lying_Online_Parra2022
10e8ef6248f684f63e9dea1314ef57f197e48773
[ "CC0-1.0" ]
null
null
null
Mind_Game_Parra/mind_noavoid_choices/pages.py
danielfParra/Lying_Online_Parra2022
10e8ef6248f684f63e9dea1314ef57f197e48773
[ "CC0-1.0" ]
null
null
null
from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Matching(WaitPage): group_by_arrival_time = True class pick_colorA(Page): def is_displayed(self): return self.player.id_in_group == 1 def get_timeout_seconds(s...
29.510373
82
0.608268
b78a326c61ef2d353329ed06a701123398cdd698
2,067
py
Python
src/upparat/cli.py
caruhome/upparat
c55990908148478bc0b783671f5bc5f86b038383
[ "MIT" ]
4
2020-11-06T17:01:47.000Z
2021-06-03T13:34:25.000Z
src/upparat/cli.py
caruhome/upparat
c55990908148478bc0b783671f5bc5f86b038383
[ "MIT" ]
null
null
null
src/upparat/cli.py
caruhome/upparat
c55990908148478bc0b783671f5bc5f86b038383
[ "MIT" ]
1
2021-01-12T14:03:42.000Z
2021-01-12T14:03:42.000Z
import logging import signal import ssl from pathlib import Path from queue import Queue from pysm import Event from upparat import config from upparat.config import settings from upparat.events import EXIT_SIGNAL_SENT from upparat.mqtt import MQTT from upparat.statemachine.machine import create_statemachine BASE = ...
26.164557
99
0.676343
66e079201e559c4f3969fe78ddaf8ac1cda98daa
2,247
py
Python
platform/rss.py
he0119/nonebot-hk-reporter
27a3c97a7ab79f296eb807c71de415f47a71be0c
[ "MIT" ]
null
null
null
platform/rss.py
he0119/nonebot-hk-reporter
27a3c97a7ab79f296eb807c71de415f47a71be0c
[ "MIT" ]
null
null
null
platform/rss.py
he0119/nonebot-hk-reporter
27a3c97a7ab79f296eb807c71de415f47a71be0c
[ "MIT" ]
null
null
null
import calendar from typing import Any, Optional import feedparser import httpx from bs4 import BeautifulSoup as bs from ..post import Post from ..types import RawPost, Target from .platform import NewMessage, TargetMixin class RSS(NewMessage, TargetMixin): categories = {} enable_tag = False platform_n...
32.565217
167
0.568313
c55842abb8e43c0b16d2df1467b54f79090772fa
912
py
Python
scripts/quest/q21016s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/quest/q21016s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/quest/q21016s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # Quest ID :: 21016 # Basic Fitness Training 2 sm.setSpeakerID(1201000) if sm.sendAskAccept("Shall we continue with your Basic Training? Before accepting, please make sure you have properly equipped your sword and your skills and potions are readily accessible."): sm.startQuest(21016) sm....
57
251
0.751096
c4306e10af7fa77fff0786f77b6a0ff96ab08426
1,242
py
Python
web/main/admin.py
arturgafizov/webtron_social_network
38dc166ea8d099ca3a0967f378d751f758eae649
[ "MIT" ]
null
null
null
web/main/admin.py
arturgafizov/webtron_social_network
38dc166ea8d099ca3a0967f378d751f758eae649
[ "MIT" ]
null
null
null
web/main/admin.py
arturgafizov/webtron_social_network
38dc166ea8d099ca3a0967f378d751f758eae649
[ "MIT" ]
null
null
null
from django.contrib import admin from django.conf import settings from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import Group from django.utils.translation import gettext_lazy as _ from django.contrib.auth import get_user_model User = get_user_model() @admin.register(User) class Cust...
29.571429
95
0.634461
b10a98372110a4e58afb3e64552d157f78ef8fd6
5,352
py
Python
cnn.py
dgawlik/digit-recognizer
9f3a4df61b67a8cbb547fec7a0b8d97477dc0817
[ "MIT" ]
null
null
null
cnn.py
dgawlik/digit-recognizer
9f3a4df61b67a8cbb547fec7a0b8d97477dc0817
[ "MIT" ]
null
null
null
cnn.py
dgawlik/digit-recognizer
9f3a4df61b67a8cbb547fec7a0b8d97477dc0817
[ "MIT" ]
null
null
null
#!/usr/bin/env python # CNN for MNIST Classification # # Standard MNIST: 99.22% # Kaggle Digit Recognizer: 99.04% import tensorflow as tf import numpy as np import pandas as pd def next_batch(data, labels, batch_size): i = 0 n = len(data) while True: yield (data[i:i+batch_size], labels[i:i+batch...
26.364532
91
0.605381
b8ffd72827931da4a759f7940e79201fd6001c1d
5,447
py
Python
colour/adaptation/tests/test_cie1994.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
1,380
2015-01-10T12:30:33.000Z
2022-03-30T10:19:57.000Z
colour/adaptation/tests/test_cie1994.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
638
2015-01-02T10:49:05.000Z
2022-03-29T10:16:22.000Z
colour/adaptation/tests/test_cie1994.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
250
2015-01-21T15:27:19.000Z
2022-03-30T10:23:58.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.adaptation.cie1994` module. """ import numpy as np import unittest from itertools import permutations from colour.adaptation import chromatic_adaptation_CIE1994 from colour.utilities import domain_range_scale, ignore_numpy_...
34.474684
79
0.562695
d733b9f25cf3e42195c18a2072b6fce5b9109171
2,064
py
Python
src/stack-hci/azext_stack_hci/vendored_sdks/azurestackhci/models/__init__.py
M-zg/azure-cli-extensions
3a96c863185aff173fafb2cb4fa99bb8c0abb55b
[ "MIT" ]
null
null
null
src/stack-hci/azext_stack_hci/vendored_sdks/azurestackhci/models/__init__.py
M-zg/azure-cli-extensions
3a96c863185aff173fafb2cb4fa99bb8c0abb55b
[ "MIT" ]
null
null
null
src/stack-hci/azext_stack_hci/vendored_sdks/azurestackhci/models/__init__.py
M-zg/azure-cli-extensions
3a96c863185aff173fafb2cb4fa99bb8c0abb55b
[ "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 ...
36.210526
94
0.680233
88c175457c0609629dce62c447f434cd7c8f6065
255
py
Python
Problems/4. Selection/Questions/5. Output Python program/answer.py
wilpola/Introduction-to-programming_Python3
c7c684167806ec87e22d5bb5ca31d7e8f9d328f1
[ "MIT" ]
null
null
null
Problems/4. Selection/Questions/5. Output Python program/answer.py
wilpola/Introduction-to-programming_Python3
c7c684167806ec87e22d5bb5ca31d7e8f9d328f1
[ "MIT" ]
null
null
null
Problems/4. Selection/Questions/5. Output Python program/answer.py
wilpola/Introduction-to-programming_Python3
c7c684167806ec87e22d5bb5ca31d7e8f9d328f1
[ "MIT" ]
null
null
null
""" Arrange the code lines in order where the program outputs \"Python Program\"""" def main(): a = 3 b = 5 s = "Python Program" a = b - 1 b = b - 3 b = b + a + a % 3 a = a % 4 if s[a] == s[b]: print(s) main()
15
83
0.454902
eebf2d21ba236d4ca08f573d7abfe997915a01c1
784
py
Python
indra/sources/trrust/api.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
136
2016-02-11T22:06:37.000Z
2022-03-31T17:26:20.000Z
indra/sources/trrust/api.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
748
2016-02-03T16:27:56.000Z
2022-03-09T14:27:54.000Z
indra/sources/trrust/api.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
56
2015-08-28T14:03:44.000Z
2022-02-04T06:15:55.000Z
__all__ = ['process_from_web'] import io import pandas import logging import requests from .processor import TrrustProcessor trrust_human_url = 'https://www.grnpedia.org/trrust/data/trrust_rawdata' \ '.human.tsv' logger = logging.getLogger(__name__) def process_from_web(): """Return a Trr...
23.058824
75
0.700255
5f5d6a06b366cf5770f1ccbb40e67af23bde3ab0
11,406
py
Python
sdks/python/client/argo_workflows/model/io_argoproj_events_v1alpha1_catchup_configuration.py
roofurmston/argo-workflows
79a95f223396ecab408d831781ab2d38d1fa6de0
[ "Apache-2.0" ]
7,643
2017-08-22T22:10:45.000Z
2021-02-09T17:13:12.000Z
sdks/python/client/argo_workflows/model/io_argoproj_events_v1alpha1_catchup_configuration.py
roofurmston/argo-workflows
79a95f223396ecab408d831781ab2d38d1fa6de0
[ "Apache-2.0" ]
4,183
2017-08-22T22:45:29.000Z
2021-02-09T17:41:29.000Z
sdks/python/client/argo_workflows/model/io_argoproj_events_v1alpha1_catchup_configuration.py
isubasinghe/argo-workflows
1a6e94f1d490e2265c977514d698a1ca70e14fe3
[ "Apache-2.0" ]
1,524
2017-08-22T22:10:53.000Z
2021-02-09T16:26:16.000Z
""" Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
43.869231
134
0.573032
63640b1fb4812c1afc0b69096c3c9a1e687d7933
13,031
py
Python
solum-6.0.0/solum/common/clients.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
39
2015-09-26T01:30:52.000Z
2021-05-20T23:37:43.000Z
solum-6.0.0/solum/common/clients.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
solum-6.0.0/solum/common/clients.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
30
2015-10-25T18:06:39.000Z
2020-01-14T12:14:06.000Z
# Copyright 2014 - Rackspace Hosting. # # 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...
37.880814
79
0.59627
396f9210af4c012b4383414dc093e76ab4105fd3
2,365
py
Python
portinus/__init__.py
justin8/portinus
b6832e5f5e2a52492ca46503ae9ef6fbe7125745
[ "MIT" ]
null
null
null
portinus/__init__.py
justin8/portinus
b6832e5f5e2a52492ca46503ae9ef6fbe7125745
[ "MIT" ]
null
null
null
portinus/__init__.py
justin8/portinus
b6832e5f5e2a52492ca46503ae9ef6fbe7125745
[ "MIT" ]
null
null
null
import logging from operator import attrgetter import pathlib from jinja2 import Template from .cli import task from . import restart, monitor from .environmentfile import EnvironmentFile from .composesource import ComposeSource from .service import Service _script_dir = pathlib.Path(__file__).resolve().parent templ...
25.989011
88
0.682875
b18e53f9834ade5dec98c0ad19f909c63540a73a
421
py
Python
mails/tests.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
1
2020-11-17T18:50:44.000Z
2020-11-17T18:50:44.000Z
mails/tests.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
9
2020-10-23T18:42:45.000Z
2022-03-12T00:39:57.000Z
mails/tests.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
null
null
null
from django.test import TestCase from mails.models import EmailTemplate from mails.tasks import send_email class TestEmailSendFunction(TestCase): def setUp(self): EmailTemplate.objects.create( title='test title', body='test body' ) def test_email_send(self): ...
21.05
66
0.672209
c20854a3ebc0588ddc2c7f0d85cb1322f09b7c18
8,258
py
Python
falcon/testing/resource.py
RioAtHome/falcon
edd9352e630dbbb6272370281fc5fa6d792df057
[ "Apache-2.0" ]
null
null
null
falcon/testing/resource.py
RioAtHome/falcon
edd9352e630dbbb6272370281fc5fa6d792df057
[ "Apache-2.0" ]
null
null
null
falcon/testing/resource.py
RioAtHome/falcon
edd9352e630dbbb6272370281fc5fa6d792df057
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 by Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.219298
78
0.700048
437a95bccc0d1cd0a88d1b1e54278166a9118558
166,965
py
Python
salt/minion.py
kaelaworthen/salt
702a04bb7f04ea243dd5e38ae5839db7182b3a58
[ "Apache-2.0" ]
null
null
null
salt/minion.py
kaelaworthen/salt
702a04bb7f04ea243dd5e38ae5839db7182b3a58
[ "Apache-2.0" ]
1
2018-09-21T05:06:03.000Z
2018-09-21T05:06:03.000Z
salt/minion.py
kaelaworthen/salt
702a04bb7f04ea243dd5e38ae5839db7182b3a58
[ "Apache-2.0" ]
1
2015-07-28T15:22:01.000Z
2015-07-28T15:22:01.000Z
# -*- coding: utf-8 -*- ''' Routines to set up a minion ''' # Import python libs from __future__ import absolute_import, print_function, with_statement, unicode_literals import functools import os import re import sys import copy import time import types import signal import random import fnmatch import logging import ...
42.506365
136
0.544809
8e06b030b145d2428d648bcc41f82679bc12b283
4,964
py
Python
dataset.py
VighneshNatarajanGanesh/NICE-GAN-pytorch
5e662560c465d5bd93963b726ec2465133ec500f
[ "MIT" ]
null
null
null
dataset.py
VighneshNatarajanGanesh/NICE-GAN-pytorch
5e662560c465d5bd93963b726ec2465133ec500f
[ "MIT" ]
null
null
null
dataset.py
VighneshNatarajanGanesh/NICE-GAN-pytorch
5e662560c465d5bd93963b726ec2465133ec500f
[ "MIT" ]
null
null
null
import torch.utils.data as data from PIL import Image import numpy as np import h5py import os import os.path HDF5_DATASET_NAME = 'hs_data' def has_file_allowed_extension(filename, extensions): """Checks if a file is an allowed extension. Args: filename (string): path to a file Returns: ...
33.093333
110
0.57917
0d17a9cf5e55677f37ae31f113726504c537fb75
1,833
py
Python
corpora/ljspeech.py
ishine/neural-lexicon-reader
66f4c464a7a442812e79458759ac913ce51d1c6e
[ "MIT" ]
4
2021-10-31T08:29:21.000Z
2021-12-29T08:12:56.000Z
corpora/ljspeech.py
shaun95/neural-lexicon-reader
66f4c464a7a442812e79458759ac913ce51d1c6e
[ "MIT" ]
1
2021-12-12T11:22:20.000Z
2021-12-12T11:53:47.000Z
corpora/ljspeech.py
mutiann/neural-lexicon-reader
66f4c464a7a442812e79458759ac913ce51d1c6e
[ "MIT" ]
null
null
null
# Available at https://keithito.com/LJ-Speech-Dataset/ from corpora import dataset_path, transformed_path import os, glob, shutil import librosa import re _abbreviations = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1]) for x in [ ('mrs', 'misess'), ('mr', 'mister'), ('dr', 'doctor'), ('st', 'sa...
28.640625
91
0.613202
25180c8ca7fe29ea44eabeeec3954a753f4797d2
5,729
py
Python
python_tools/test/test__ACCESS_Filters/test_ACCESS_Filters.py
mskcc/ACCESS-Pipeline
b0f226a9ac5152f3afe0d38c8cd54aa25b8b01cf
[ "MIT" ]
4
2018-08-23T04:37:43.000Z
2021-07-03T12:49:51.000Z
python_tools/test/test__ACCESS_Filters/test_ACCESS_Filters.py
andurill/ACCESS-Pipeline
3441040dfaecba58150c13a95a6a93657b00778a
[ "MIT" ]
32
2018-06-08T12:44:55.000Z
2022-01-13T01:29:35.000Z
python_tools/test/test__ACCESS_Filters/test_ACCESS_Filters.py
andurill/ACCESS-Pipeline
3441040dfaecba58150c13a95a6a93657b00778a
[ "MIT" ]
4
2018-05-25T21:43:48.000Z
2022-01-07T18:51:43.000Z
import unittest from python_tools.workflow_tools.ACCESS_filters import ( make_pre_filtered_maf, apply_filter_maf, make_condensed_post_filter ) from python_tools.util import ArgparseMock class ACCESSFiltersTestCase(unittest.TestCase): def setUp(self): """ Set some constants used for...
42.125
157
0.543899
8ca0d4953c97741c2c1f3bc5fbda51e46981e001
330
py
Python
pyCaricare/m.py
pwais/CassieVede
e9d6b0e33cb7fa67bfa675e768b01881d10d40da
[ "Apache-2.0" ]
null
null
null
pyCaricare/m.py
pwais/CassieVede
e9d6b0e33cb7fa67bfa675e768b01881d10d40da
[ "Apache-2.0" ]
null
null
null
pyCaricare/m.py
pwais/CassieVede
e9d6b0e33cb7fa67bfa675e768b01881d10d40da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import capnp capnp.remove_import_hook() import sys print sys.path meow = capnp.load('/Users/pwais/Documents/CassieVede/src/main/resources/CVImage.capnp')#imports=['/Users/pwais/Documents/CassieVede/deps/capnproto/include/', '/Users/pwais/Documents/CassieVede/deps/capnproto-java/compiler/src/main/s...
47.142857
241
0.79697
b4600c3d8ae2796ee9346a4900e1d027d283396a
2,491
py
Python
infer/lib/python/inferlib/capture/util.py
ievans/infer
c483fe101a3bdb3e86c4444a7b8d6197eada67c0
[ "BSD-3-Clause" ]
null
null
null
infer/lib/python/inferlib/capture/util.py
ievans/infer
c483fe101a3bdb3e86c4444a7b8d6197eada67c0
[ "BSD-3-Clause" ]
2
2020-11-13T19:42:27.000Z
2020-11-13T19:49:19.000Z
infer/lib/python/inferlib/capture/util.py
ievans/infer
c483fe101a3bdb3e86c4444a7b8d6197eada67c0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015 - present Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. ...
32.350649
78
0.689683
61adc6caa730dca37c91f5de42c79ef17e3c89d9
3,239
py
Python
alipay/aop/api/request/KoubeiMarketingDataSmartmanagementDiagnoseRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/KoubeiMarketingDataSmartmanagementDiagnoseRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/KoubeiMarketingDataSmartmanagementDiagnoseRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class KoubeiMarketingDataSmartmanagementDiagnoseRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model ...
25.304688
160
0.64063
3af0a9828eabd8226d18cdbb99d923733722c2a1
25,378
py
Python
website/migrations/0013_auto__del_field_question_lang__del_field_categorytranslation_lang__del.py
evrenesat/ganihomes
eece2d8d957989b176cc5a36d723f676862f8d17
[ "BSD-2-Clause" ]
24
2016-08-06T18:10:54.000Z
2022-03-04T11:47:39.000Z
website/migrations/0013_auto__del_field_question_lang__del_field_categorytranslation_lang__del.py
evrenesat/ganihomes
eece2d8d957989b176cc5a36d723f676862f8d17
[ "BSD-2-Clause" ]
1
2017-03-28T02:36:50.000Z
2017-03-28T07:18:57.000Z
website/migrations/0013_auto__del_field_question_lang__del_field_categorytranslation_lang__del.py
evrenesat/ganihomes
eece2d8d957989b176cc5a36d723f676862f8d17
[ "BSD-2-Clause" ]
13
2017-03-28T02:35:32.000Z
2022-02-21T23:36:15.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Question.lang' db.delete_column('website_question', 'lang') # Deleting field 'C...
80.310127
182
0.555993
a0819a53f729c32c3916f79e69e0414a041cfb3d
760
py
Python
Chapter06/test_serialize_json.py
yoyboy/Software-Architecture-with-Python
c228a9c77e3d1d0e8651146611b34fed0a00bc5e
[ "MIT" ]
103
2017-05-18T13:43:47.000Z
2022-03-31T09:25:33.000Z
Chapter06/test_serialize_json.py
afcarl/Software-Architecture-with-Python
36bd93017be025c1910d0d3d6ebf9996bc84a9f4
[ "MIT" ]
1
2021-09-20T03:12:06.000Z
2021-09-20T03:12:06.000Z
Chapter06/test_serialize_json.py
afcarl/Software-Architecture-with-Python
36bd93017be025c1910d0d3d6ebf9996bc84a9f4
[ "MIT" ]
76
2017-05-22T14:44:00.000Z
2022-01-14T19:32:40.000Z
# Code Listing #8 """ Serialization exploit using JSON """ # test_serialize_json.py import os import json import datetime class ExploitEncoder(json.JSONEncoder): def default(self, obj): if any(isinstance(obj, x) for x in (datetime.datetime, datetime.date)): return str(obj) ...
20
79
0.618421