hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1ef94ad3e22f5f2f84c65589c9559b1e1fa1be
6,780
py
Python
Inverted_Pendulum/antlr3/dfa.py
ghazaleh-mahmoodi/-Preceptron-Implementation-without-framework
22bd8bbdc7d5a55915b9227ee3d142ab7a498028
[ "MIT" ]
1
2021-11-29T03:07:26.000Z
2021-11-29T03:07:26.000Z
Inverted_Pendulum/antlr3/dfa.py
ghazaleh-mahmoodi/-Preceptron-Implementation-without-framework
22bd8bbdc7d5a55915b9227ee3d142ab7a498028
[ "MIT" ]
null
null
null
Inverted_Pendulum/antlr3/dfa.py
ghazaleh-mahmoodi/-Preceptron-Implementation-without-framework
22bd8bbdc7d5a55915b9227ee3d142ab7a498028
[ "MIT" ]
null
null
null
"""ANTLR3 runtime package""" # begin[licence] # # [The "BSD licence"] # Copyright (c) 2005-2012 Terence Parr # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code ...
35.3125
78
0.573451
4a1efc662e2d7bfc0661b429842d87bea5dbeef9
1,190
py
Python
control/src/global_services.py
mnemonia/transprotobot
8fc85c0eb5f4cd587cd6ca8ada4593bb36cb27cd
[ "Apache-2.0" ]
null
null
null
control/src/global_services.py
mnemonia/transprotobot
8fc85c0eb5f4cd587cd6ca8ada4593bb36cb27cd
[ "Apache-2.0" ]
null
null
null
control/src/global_services.py
mnemonia/transprotobot
8fc85c0eb5f4cd587cd6ca8ada4593bb36cb27cd
[ "Apache-2.0" ]
null
null
null
import logging from mqtt_service import MqttService import serial import json import platform class GlobalServices(): LOG = logging.getLogger('GlobalServices') def __init__(self): self.mqtt = MqttService() def on(self): self.LOG.info('Starting GlobalServices') self.mqtt.on() ...
31.315789
130
0.651261
4a1efc9c2f03b6dc0185a54823774925604e94fc
2,056
py
Python
venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_datastore_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_datastore_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_datastore_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function __metaclass__ = type import sys import pytest from ansible_collections.sensu.sensu_go.plugins.module_utils import ( errors, utils, ) from ansible_collections.sensu.sensu_go.plugins.modules import datastore_info from .common.utils import ( Ansi...
32.125
77
0.685798
4a1efd31902ebdfc42838c5b42ad61ed695feef4
3,463
py
Python
athena.py
lordgrenville/old_blog
ae4c2205293647dccab956016c2cc05cfbb855c3
[ "MIT" ]
null
null
null
athena.py
lordgrenville/old_blog
ae4c2205293647dccab956016c2cc05cfbb855c3
[ "MIT" ]
null
null
null
athena.py
lordgrenville/old_blog
ae4c2205293647dccab956016c2cc05cfbb855c3
[ "MIT" ]
null
null
null
import datetime import fileinput import glob import os import sys import uuid from datetime import timedelta, timezone from urllib.parse import urljoin from feedgen.feed import FeedGenerator from flask import Flask, make_response, render_template, request from flask_flatpages import FlatPages from flask_frozen import ...
29.853448
88
0.634999
4a1efde2cd811695280d0256de7b236457bfbb7a
2,905
py
Python
Python_For_Maya_Vol_02/Code/benchmark.py
justinfx/tutorials
318447a34221492066a308d88dd424f9da5ba93c
[ "MIT" ]
24
2017-04-16T16:03:57.000Z
2021-07-16T08:45:42.000Z
Python_For_Maya_Vol_02/Code/benchmark.py
justinfx/tutorials
318447a34221492066a308d88dd424f9da5ba93c
[ "MIT" ]
null
null
null
Python_For_Maya_Vol_02/Code/benchmark.py
justinfx/tutorials
318447a34221492066a308d88dd424f9da5ba93c
[ "MIT" ]
36
2017-04-17T03:28:33.000Z
2021-09-22T15:38:35.000Z
""" Simple benchmark test: maya.cmds vs PyMel vs Python API 1. Create a polyHelix that has about 20k vertices. 2. Loop over each vertex and move it by a random amount 3. Delete the helix """ import sys import time import random # python commands test import maya.cmds as cmds # pymel test import py...
19.761905
87
0.613769
4a1efeafbbd709297b33833cb6f8ec75f297798c
2,220
py
Python
python/day23-2.py
kdrag0n/aoc2020
44b3c1a455f576474e598931029d5bf914fd6e8e
[ "MIT" ]
5
2020-12-04T00:26:33.000Z
2021-05-05T00:38:25.000Z
python/day23-2.py
kdrag0n/aoc2020
44b3c1a455f576474e598931029d5bf914fd6e8e
[ "MIT" ]
null
null
null
python/day23-2.py
kdrag0n/aoc2020
44b3c1a455f576474e598931029d5bf914fd6e8e
[ "MIT" ]
1
2021-05-18T23:29:57.000Z
2021-05-18T23:29:57.000Z
#!/usr/bin/env python3 import sys def ints(itr): return [int(i) for i in itr] with open(sys.argv[1], "r") as f: cups = ints(f.read().replace("\n", "")) class Node: def __init__(self, value): self.value = value self.next = None self.prev = None def __str__(self): retu...
26.746988
103
0.582432
4a1efed6321525583a6083e5d25b9cec0dd2e281
2,521
py
Python
planemo/ci.py
gallardoalba/planemo
3201c415a5d637984620d86b07bb9407d33833b5
[ "CC-BY-3.0" ]
null
null
null
planemo/ci.py
gallardoalba/planemo
3201c415a5d637984620d86b07bb9407d33833b5
[ "CC-BY-3.0" ]
null
null
null
planemo/ci.py
gallardoalba/planemo
3201c415a5d637984620d86b07bb9407d33833b5
[ "CC-BY-3.0" ]
null
null
null
"""Utilities for dealing with continous integration systems.""" from __future__ import print_function import copy import math import os import yaml from planemo import git from planemo import io from planemo.shed import REPO_METADATA_FILES def filter_paths(ctx, raw_paths, path_type="repo", **kwds): """Filter ...
29.313953
82
0.641015
4a1f007531966697567814e6ace902b804359b3b
2,501
py
Python
models/points_rcnn/backbone_utils.py
periakiva/finding_berries
1dfc7cf00c384321e39872921051dc9535355e53
[ "MIT" ]
11
2020-05-11T21:57:44.000Z
2022-01-05T14:44:28.000Z
models/points_rcnn/backbone_utils.py
periakiva/finding_berries
1dfc7cf00c384321e39872921051dc9535355e53
[ "MIT" ]
2
2020-07-29T10:08:36.000Z
2022-01-18T15:38:57.000Z
models/points_rcnn/backbone_utils.py
periakiva/finding_berries
1dfc7cf00c384321e39872921051dc9535355e53
[ "MIT" ]
2
2021-08-29T17:20:38.000Z
2021-09-21T21:07:30.000Z
from collections import OrderedDict from torch import nn from torchvision.ops.feature_pyramid_network import FeaturePyramidNetwork, LastLevelMaxPool from torchvision.ops import misc as misc_nn_ops from ._utils import IntermediateLayerGetter from . import resnet class BackboneWithFPN(nn.Module): """ Adds a FP...
39.698413
91
0.696521
4a1f00bca2c520db2cee089bb2e0bcb4d94c4d91
270
py
Python
tests/artificial/transf_Fisher/trend_MovingMedian/cycle_30/ar_12/test_artificial_32_Fisher_MovingMedian_30_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Fisher/trend_MovingMedian/cycle_30/ar_12/test_artificial_32_Fisher_MovingMedian_30_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Fisher/trend_MovingMedian/cycle_30/ar_12/test_artificial_32_Fisher_MovingMedian_30_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 12);
38.571429
165
0.733333
4a1f00dcb5e4a0983812ececd3555947fc1c96f6
27
py
Python
genemunge/data/gtex/__init__.py
unlearnai/genemunge
a7dc07706ae2bf487a04fcda5623013c055030a3
[ "CC-BY-4.0" ]
21
2018-04-06T17:03:52.000Z
2020-06-29T12:56:43.000Z
genemunge/data/gtex/__init__.py
unlearnai/genemunge
a7dc07706ae2bf487a04fcda5623013c055030a3
[ "CC-BY-4.0" ]
5
2018-04-10T19:32:33.000Z
2018-07-17T18:07:48.000Z
genemunge/data/gtex/__init__.py
unlearnai/genemunge
a7dc07706ae2bf487a04fcda5623013c055030a3
[ "CC-BY-4.0" ]
5
2018-04-11T05:42:52.000Z
2019-04-02T03:43:52.000Z
from . import process_gtex
13.5
26
0.814815
4a1f024eefe98b795086a6b8d37d69a716d821d3
5,763
py
Python
tests/unit_tests/test_lm/test_mpirun.py
eirrgang/radical.pilot
ceccd1867dd172935d602ff4c33a5ed4467e0dc8
[ "MIT" ]
1
2021-11-07T04:51:30.000Z
2021-11-07T04:51:30.000Z
tests/unit_tests/test_lm/test_mpirun.py
eirrgang/radical.pilot
ceccd1867dd172935d602ff4c33a5ed4467e0dc8
[ "MIT" ]
null
null
null
tests/unit_tests/test_lm/test_mpirun.py
eirrgang/radical.pilot
ceccd1867dd172935d602ff4c33a5ed4467e0dc8
[ "MIT" ]
null
null
null
# pylint: disable=protected-access, unused-argument, no-value-for-parameter from unittest import mock, TestCase import radical.utils as ru from .test_common import setUp from radical.pilot.agent.launch_method.mpirun import MPIRun class TestMPIRun(TestCase): # -----------------...
40.584507
86
0.593441
4a1f02769fe6ccfb002561cfc0db993bedf010d1
26,389
py
Python
rally_openstack/task/scenarios/vm/vmtasks.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/vm/vmtasks.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/vm/vmtasks.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# Copyright 2014: Rackspace UK # 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...
40.473926
79
0.575732
4a1f02807d57b84d682bae912e4d259ff8b7a161
11,580
py
Python
tools/harness-automation/doc/conf.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
null
null
null
tools/harness-automation/doc/conf.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
2
2019-02-25T10:21:34.000Z
2022-01-23T13:05:08.000Z
tools/harness-automation/doc/conf.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
1
2019-11-26T06:13:59.000Z
2019-11-26T06:13:59.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # not...
30.55409
80
0.711917
4a1f02cea704c1def874e6c2354258be2209169b
4,593
py
Python
setup.py
clayrisser/syncrepl
9b7b93acda5e2652860ede882f48e07228d823fb
[ "CC0-1.0", "BSD-3-Clause" ]
13
2017-05-27T00:20:11.000Z
2021-05-31T14:53:32.000Z
setup.py
clayrisser/syncrepl
9b7b93acda5e2652860ede882f48e07228d823fb
[ "CC0-1.0", "BSD-3-Clause" ]
33
2017-06-06T05:47:12.000Z
2021-02-03T15:43:44.000Z
setup.py
clayrisser/syncrepl
9b7b93acda5e2652860ede882f48e07228d823fb
[ "CC0-1.0", "BSD-3-Clause" ]
7
2017-09-21T11:49:11.000Z
2021-11-10T10:36:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4 ts=4 et # syncrepl_client installer code. # # Refer to the AUTHORS file for copyright statements. # # This file contains only factual information. # Therefore, this file is likely not copyrightable. # As such, this file is in the public domain. # For locations ...
32.118881
87
0.66732
4a1f037b50523584988f70adf3dc0001d807ec0b
1,097
py
Python
setup.py
jimwwalker/perfrunner
fda19ce9d860f8548b3feeb761b9a70598500cce
[ "Apache-2.0" ]
null
null
null
setup.py
jimwwalker/perfrunner
fda19ce9d860f8548b3feeb761b9a70598500cce
[ "Apache-2.0" ]
4
2021-04-20T17:14:17.000Z
2022-02-11T03:42:49.000Z
setup.py
jimwwalker/perfrunner
fda19ce9d860f8548b3feeb761b9a70598500cce
[ "Apache-2.0" ]
1
2018-06-25T18:57:10.000Z
2018-06-25T18:57:10.000Z
from setuptools import setup, Extension fastdocgen = Extension('fastdocgen', sources=['spring/fastdocgen.c']) setup( name='perfrunner', entry_points={ 'console_scripts': [ 'cloudrunner = perfrunner.utils.cloudrunner:main', 'cluster = perfrunner.utils.cluster:main', ...
36.566667
70
0.609845
4a1f04acc5daace43ca82f3ca958c2067b88d92b
5,827
py
Python
python/GafferDispatchUI/PythonCommandUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferDispatchUI/PythonCommandUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferDispatchUI/PythonCommandUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2015, John Haddon. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of so...
28.014423
111
0.666381
4a1f0502fa6184468c6b97026d8ee6d918602ff1
1,819
py
Python
online_judge/blueprints/auth.py
ashimaathri/online-judge
596ac26ad9b6ffd44fbee16274a45d39d14ed8e8
[ "Apache-2.0" ]
null
null
null
online_judge/blueprints/auth.py
ashimaathri/online-judge
596ac26ad9b6ffd44fbee16274a45d39d14ed8e8
[ "Apache-2.0" ]
null
null
null
online_judge/blueprints/auth.py
ashimaathri/online-judge
596ac26ad9b6ffd44fbee16274a45d39d14ed8e8
[ "Apache-2.0" ]
null
null
null
import json from flask import (render_template, Blueprint, request, session, current_app, redirect, url_for) from online_judge.db.user import User from online_judge.helpers.session import redirect_if_authenticated auth = Blueprint('auth', __name__) def validate_form(): username = request.form['username'] pas...
27.560606
96
0.661902
4a1f0539ee6e2a07582be0b622591c8f92a5b5bf
15,510
py
Python
airflow/providers/cncf/kubernetes/utils/pod_manager.py
MoBagel/airflow
0905e386f17e34d96f6ee575404c62b13242c75d
[ "Apache-2.0" ]
null
null
null
airflow/providers/cncf/kubernetes/utils/pod_manager.py
MoBagel/airflow
0905e386f17e34d96f6ee575404c62b13242c75d
[ "Apache-2.0" ]
null
null
null
airflow/providers/cncf/kubernetes/utils/pod_manager.py
MoBagel/airflow
0905e386f17e34d96f6ee575404c62b13242c75d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.06801
110
0.624178
4a1f058e729d375d347162dd6d10f65dccdb0d7f
6,871
py
Python
app_static.py
tonywu71/AirFrance-ST7
2600db76cc1361bfc0f9d12fdd0a9a7d5cf938bd
[ "MIT" ]
null
null
null
app_static.py
tonywu71/AirFrance-ST7
2600db76cc1361bfc0f9d12fdd0a9a7d5cf938bd
[ "MIT" ]
null
null
null
app_static.py
tonywu71/AirFrance-ST7
2600db76cc1361bfc0f9d12fdd0a9a7d5cf938bd
[ "MIT" ]
3
2021-04-08T14:57:34.000Z
2021-04-09T07:34:07.000Z
## ------ Dash application for visualizing solutions to the static problem ------ import os import json import re import pandas as pd import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.express as px import plotly.graph_objects ...
27.051181
114
0.525106
4a1f06f744c362cb03cb7e8296f6cc5b7f90cbeb
5,761
py
Python
3.DLWorkFlow/TrainingAndValidation/ignite_with_checkpointing.py
sdhnshu/HandsOnDeepLearningWithPytorch
2292a952a4cb112b03d5db4048c78bc503eb858d
[ "MIT" ]
87
2018-07-19T20:15:27.000Z
2022-03-27T18:01:59.000Z
3.DLWorkFlow/TrainingAndValidation/ignite_with_checkpointing.py
sdhnshu/HandsOnDeepLearningWithPytorch
2292a952a4cb112b03d5db4048c78bc503eb858d
[ "MIT" ]
2
2019-06-07T13:49:13.000Z
2022-01-11T14:45:01.000Z
3.DLWorkFlow/TrainingAndValidation/ignite_with_checkpointing.py
sdhnshu/HandsOnDeepLearningWithPytorch
2292a952a4cb112b03d5db4048c78bc503eb858d
[ "MIT" ]
41
2018-10-16T22:16:37.000Z
2022-03-13T03:44:57.000Z
from argparse import ArgumentParser import logging from torch import nn from torch.optim import SGD from torch.utils.data import DataLoader import torch.nn.functional as F from torchvision.transforms import Compose, ToTensor, Normalize from torchvision.datasets import MNIST from ignite.engine import ( Events, cre...
38.925676
79
0.629057
4a1f086a507d59e95e87530efd9b6f35f4a24918
31,278
py
Python
test/ext/test_baked.py
KaaleppiVirtanen/Testi
3b6004e6ab3fef8e37fb42981c02f4dfa34fe3b7
[ "MIT" ]
null
null
null
test/ext/test_baked.py
KaaleppiVirtanen/Testi
3b6004e6ab3fef8e37fb42981c02f4dfa34fe3b7
[ "MIT" ]
null
null
null
test/ext/test_baked.py
KaaleppiVirtanen/Testi
3b6004e6ab3fef8e37fb42981c02f4dfa34fe3b7
[ "MIT" ]
null
null
null
from sqlalchemy.orm import Session, subqueryload, \ mapper, relationship, lazyload, clear_mappers, backref from sqlalchemy.testing import eq_, is_, is_not_ from sqlalchemy.testing import assert_raises, assert_raises_message from sqlalchemy import testing from test.orm import _fixtures from sqlalchemy.ext.baked impo...
29.988495
127
0.50016
4a1f0929ac68fa2c3e96a447844e112012c7beb9
403
py
Python
theaterportal/asgi.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
theaterportal/asgi.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
26
2021-02-08T07:57:42.000Z
2022-03-01T02:07:58.000Z
theaterportal/asgi.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
""" ASGI config for theaterportal project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
4a1f0930b0dc60e7188bf2e488ed1a8dc403ea24
5,586
py
Python
legacy/code/scripts/new_diversity_places.py
GLOMICON/emp
c1f752d1ae4c009328bbdcecf9666dbd4dac39b6
[ "BSD-3-Clause" ]
1
2020-01-30T15:06:26.000Z
2020-01-30T15:06:26.000Z
legacy/code/scripts/new_diversity_places.py
GLOMICON/emp
c1f752d1ae4c009328bbdcecf9666dbd4dac39b6
[ "BSD-3-Clause" ]
null
null
null
legacy/code/scripts/new_diversity_places.py
GLOMICON/emp
c1f752d1ae4c009328bbdcecf9666dbd4dac39b6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division __author__ = "Jai Ram Rideout" __copyright__ = "Copyright 2012, The QIIME project" __credits__ = ["Jai Ram Rideout", "Greg Caporaso"] __license__ = "GPL" __version__ = "1.5.0-dev" __maintainer__ = "Jai Ram Rideout" __email__ = "jai.rideout@gmail.com" __status__ = "...
41.686567
80
0.675976
4a1f0951ed1de0d89f8f150b749a406f66c80f84
2,479
py
Python
alembic/versions/c9b7605de680_fresh_start.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
alembic/versions/c9b7605de680_fresh_start.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
alembic/versions/c9b7605de680_fresh_start.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
"""fresh start Revision ID: c9b7605de680 Revises: Create Date: 2020-04-26 09:40:53.477070 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c9b7605de680' down_revision = None branch_labels = None depends_on = None def upgrade(): #op.drop_table('stats') ...
29.86747
72
0.588544
4a1f09ad0200608fbe4a04f34b65e40d68c8a6ab
194
py
Python
profiles_api/serializers.py
feemagdev/profiles-rest-api
44d819dbee8bb3af41f1eaeceda35e461845740d
[ "MIT" ]
null
null
null
profiles_api/serializers.py
feemagdev/profiles-rest-api
44d819dbee8bb3af41f1eaeceda35e461845740d
[ "MIT" ]
null
null
null
profiles_api/serializers.py
feemagdev/profiles-rest-api
44d819dbee8bb3af41f1eaeceda35e461845740d
[ "MIT" ]
null
null
null
from rest_framework import serializers class HelloSerializers(serializers.Serializer): """Serializes a name field to test our api view """ name = serializers.CharField(max_length=10)
24.25
55
0.768041
4a1f09bfe50033f3de8eb1b9c0b0326e0a71e5fa
516
py
Python
tests/binding_tests/local_minimum_list_tests/test_scanbeams.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
1
2021-01-20T05:49:13.000Z
2021-01-20T05:49:13.000Z
tests/binding_tests/local_minimum_list_tests/test_scanbeams.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
1
2020-11-20T18:21:24.000Z
2020-11-20T18:21:37.000Z
tests/binding_tests/local_minimum_list_tests/test_scanbeams.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
2
2020-11-20T18:17:31.000Z
2021-01-20T14:58:22.000Z
from _wagyu import LocalMinimumList from hypothesis import given from wagyu.hints import Coordinate from . import strategies @given(strategies.local_minimum_lists) def test_basic(local_minimum_list: LocalMinimumList) -> None: assert all(isinstance(element, Coordinate) for element in local_minimum_...
30.352941
71
0.802326
4a1f09ea3645f76fe0481bfc3e943a21ec347db9
2,711
py
Python
tests/test_util.py
DavidHulsman/hdfs
59f481b69af801ed252c546cafef4a54f86cf061
[ "MIT" ]
null
null
null
tests/test_util.py
DavidHulsman/hdfs
59f481b69af801ed252c546cafef4a54f86cf061
[ "MIT" ]
null
null
null
tests/test_util.py
DavidHulsman/hdfs
59f481b69af801ed252c546cafef4a54f86cf061
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """Test Hdfs client interactions with HDFS.""" from hdfs.util import * from tests.util import eq_ class TestAsyncWriter(object): def test_basic(self): result = [] def consumer(gen): result.append(list(gen)) with AsyncWriter(consumer) ...
26.067308
56
0.526743
4a1f0a1d3d277d06f3df34d2d0431fb95a1f92a4
5,749
py
Python
tools/read_lidar.py
reinforcementdriving/MV3D_TF
431f49b92e2057afea73b9cd647bc36de6587d77
[ "MIT" ]
null
null
null
tools/read_lidar.py
reinforcementdriving/MV3D_TF
431f49b92e2057afea73b9cd647bc36de6587d77
[ "MIT" ]
null
null
null
tools/read_lidar.py
reinforcementdriving/MV3D_TF
431f49b92e2057afea73b9cd647bc36de6587d77
[ "MIT" ]
null
null
null
import numpy as np import os import matplotlib.pyplot as plt # ============================================================================== # POINT_CLOUD_2_BIRDSEYE # ============================================================================== def point_clo...
39.376712
84
0.571926
4a1f0a9e7838a0c280d3fdf2228b7b5bb32ad70d
783
py
Python
Python/possible-bipartition.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2020-10-27T03:22:31.000Z
2020-10-27T03:22:31.000Z
Python/possible-bipartition.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
null
null
null
Python/possible-bipartition.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2021-03-22T18:58:23.000Z
2021-03-22T18:58:23.000Z
# Time: O(|V| + |E|) # Space: O(|V| + |E|) import collections class Solution(object): def possibleBipartition(self, N, dislikes): """ :type N: int :type dislikes: List[List[int]] :rtype: bool """ adj = [[] for _ in xrange(N)] for u, v in dislikes: ...
24.46875
47
0.43295
4a1f0acc1ee2d55f19e5ad7923466bacc0ce4179
6,332
py
Python
algs/regularized_evolution/main.py
Beautyya/BenchENA
5f5491614fc2f00ca26dc29f35f44c334db4718c
[ "MIT" ]
null
null
null
algs/regularized_evolution/main.py
Beautyya/BenchENA
5f5491614fc2f00ca26dc29f35f44c334db4718c
[ "MIT" ]
null
null
null
algs/regularized_evolution/main.py
Beautyya/BenchENA
5f5491614fc2f00ca26dc29f35f44c334db4718c
[ "MIT" ]
null
null
null
import os import sys curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] sys.path.append(os.path.split(rootPath)[0]) from algs.regularized_evolution.genetic.statusupdatetool import StatusUpdateTool from compute import Config_ini from comm.log import Log from comm.utils import G...
41.657895
118
0.642767
4a1f0ae4ea586de83d41f103c7b599cc1bd051dc
2,892
py
Python
txshark/service.py
beenje/txshark
87a67e63df57099ce2bf6622671a3401ea5ed5c9
[ "MIT" ]
null
null
null
txshark/service.py
beenje/txshark
87a67e63df57099ce2bf6622671a3401ea5ed5c9
[ "MIT" ]
3
2021-04-27T08:25:35.000Z
2022-02-13T14:36:21.000Z
txshark/service.py
beenje/txshark
87a67e63df57099ce2bf6622671a3401ea5ed5c9
[ "MIT" ]
1
2021-12-03T16:33:22.000Z
2021-12-03T16:33:22.000Z
# -*- coding: utf-8 -*- """ txshark.service ~~~~~~~~~~~~~~~ This module defines the tshark service. :license: MIT, see LICENSE for more details. """ import os from twisted.application import service from twisted.internet import reactor from twisted.python import log from txshark.protocol import TsharkProtocol cla...
31.434783
70
0.57538
4a1f0bbeaf9f3023ad8334d9c0b4eadee72daeea
1,908
py
Python
integration-tests/tests/model_principal_components_test.py
rmaldrix/DOC
2c3be80d515fbf46516e16a81b7eaafe1ed2c6d9
[ "Apache-2.0" ]
null
null
null
integration-tests/tests/model_principal_components_test.py
rmaldrix/DOC
2c3be80d515fbf46516e16a81b7eaafe1ed2c6d9
[ "Apache-2.0" ]
null
null
null
integration-tests/tests/model_principal_components_test.py
rmaldrix/DOC
2c3be80d515fbf46516e16a81b7eaafe1ed2c6d9
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 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 t...
36.692308
141
0.669287
4a1f0cff61096e49905a1e6fd98a7152c3dbc957
3,125
py
Python
tetrahedron_rotation.py
NeoNeuron/slide-videos
e41de75324c7ae441feb6302f1f816d8d299a316
[ "MIT" ]
1
2022-02-12T07:14:16.000Z
2022-02-12T07:14:16.000Z
tetrahedron_rotation.py
NeoNeuron/slide-videos
e41de75324c7ae441feb6302f1f816d8d299a316
[ "MIT" ]
null
null
null
tetrahedron_rotation.py
NeoNeuron/slide-videos
e41de75324c7ae441feb6302f1f816d8d299a316
[ "MIT" ]
null
null
null
# %% import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation # matplotlib parameters to ensure correctness of Chinese characters plt.rcParams["font.family"] = 'sans-serif' plt.rcParams['font.sans-serif']=['Arial Unicode MS', 'SimHei'] # Chinese font pl...
34.340659
148
0.57728
4a1f0d5725797db3cb6906ec92ee98610757899e
7,222
py
Python
encuestas/encuesta/migrations/0001_initial.py
davidbmx/encuestas
3a80a970fecd477e61ea0a51e4b3787226cbea19
[ "MIT" ]
null
null
null
encuestas/encuesta/migrations/0001_initial.py
davidbmx/encuestas
3a80a970fecd477e61ea0a51e4b3787226cbea19
[ "MIT" ]
null
null
null
encuestas/encuesta/migrations/0001_initial.py
davidbmx/encuestas
3a80a970fecd477e61ea0a51e4b3787226cbea19
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-18 17:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ciudad', fields=[ ...
54.300752
156
0.582387
4a1f0e3708c51b7d3a891c3e3ace5abfac7c8405
8,778
py
Python
ax/models/torch/botorch_defaults.py
dgiannelli/Ax
c2d17186c433ad6de542b10d4049956cb6ca0823
[ "MIT" ]
null
null
null
ax/models/torch/botorch_defaults.py
dgiannelli/Ax
c2d17186c433ad6de542b10d4049956cb6ca0823
[ "MIT" ]
null
null
null
ax/models/torch/botorch_defaults.py
dgiannelli/Ax
c2d17186c433ad6de542b10d4049956cb6ca0823
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from typing import Any, Callable, Dict, List, Optional, Tuple import torch from botorch.acquisition.acquisition import AcquisitionFunction from botorch.acquisition.objective import ConstrainedMCObjective, LinearMCObjective ...
38.669604
86
0.671793
4a1f0ed64e7d1fe433a743fbaed382e7834238d7
4,002
py
Python
tests/cli/commands/test_pool_command.py
rayalex/airflow
4a344f13d26ecbb627bb9968895b290bfd86e4da
[ "Apache-2.0" ]
null
null
null
tests/cli/commands/test_pool_command.py
rayalex/airflow
4a344f13d26ecbb627bb9968895b290bfd86e4da
[ "Apache-2.0" ]
null
null
null
tests/cli/commands/test_pool_command.py
rayalex/airflow
4a344f13d26ecbb627bb9968895b290bfd86e4da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
35.105263
98
0.638681
4a1f0f90dee5b8c56d87a54275ef341fc20cda65
4,170
py
Python
Tools/LibEnsemble/warpx_simf.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
1
2021-06-23T23:38:50.000Z
2021-06-23T23:38:50.000Z
Tools/LibEnsemble/warpx_simf.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
106
2021-06-08T23:57:54.000Z
2022-03-08T00:36:46.000Z
Tools/LibEnsemble/warpx_simf.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
1
2021-06-21T18:50:43.000Z
2021-06-21T18:50:43.000Z
import os import time from libensemble.executors.executor import Executor from libensemble.message_numbers import TASK_FAILED, WORKER_DONE import numpy as np from read_sim_output import read_sim_output from write_sim_input import write_sim_input """ This file is part of the suite of scripts to use LibEnsemble on top ...
37.567568
94
0.62494
4a1f107125e6fa3d8aac39a95037c8918313c280
1,604
py
Python
app/controllers/base_controller.py
jattoabdul/andela-genie-backend
62f49a3783a3dbf21f92449e83ca5c941053a690
[ "MIT" ]
null
null
null
app/controllers/base_controller.py
jattoabdul/andela-genie-backend
62f49a3783a3dbf21f92449e83ca5c941053a690
[ "MIT" ]
null
null
null
app/controllers/base_controller.py
jattoabdul/andela-genie-backend
62f49a3783a3dbf21f92449e83ca5c941053a690
[ "MIT" ]
null
null
null
from app.utils.auth import Auth from flask import jsonify, make_response class BaseController: def __init__(self, request): self.request = request def user(self, *keys): return Auth.user(*keys) def request_params(self, *keys): _json = self.get_json() if keys: values = list() for key in keys: ...
27.186441
104
0.711347
4a1f10d1371bd57584aae5c6f376eb702e0a08a5
19,142
py
Python
plugins/modules/oci_database_database_facts.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_database_facts.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_database_facts.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
40.555085
160
0.576586
4a1f11162e1ed3a2a8ac54dbc3338cf4e1216d1d
82,737
py
Python
cinder/tests/unit/test_hplefthand.py
potsmaster/cinder
275c2acdfb4282b0ec0314c9875b759958c093f8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_hplefthand.py
potsmaster/cinder
275c2acdfb4282b0ec0314c9875b759958c093f8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_hplefthand.py
potsmaster/cinder
275c2acdfb4282b0ec0314c9875b759958c093f8
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2014 Hewlett-Packard Development Company, L.P. # 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...
39.682014
79
0.57047
4a1f11abcca31dca3a2f5991d4217520a710fc54
9,787
py
Python
magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_generate.py
nkjulia/magenta
063d320d59276a15afa0f8a3a8d386ad74594070
[ "Apache-2.0" ]
2,785
2020-06-05T03:00:48.000Z
2022-03-31T20:59:43.000Z
magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_generate.py
nkjulia/magenta
063d320d59276a15afa0f8a3a8d386ad74594070
[ "Apache-2.0" ]
242
2020-06-04T18:35:42.000Z
2022-03-30T09:14:18.000Z
magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_generate.py
nkjulia/magenta
063d320d59276a15afa0f8a3a8d386ad74594070
[ "Apache-2.0" ]
745
2020-06-05T02:32:45.000Z
2022-03-30T04:44:20.000Z
# Copyright 2021 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
38.380392
117
0.74037
4a1f142db5ab086323da6f16f1e9d27c5b9dd559
4,355
py
Python
user_gui/user_verify.py
pantelisantonoudiou/deep-seizure-detect
040d746833f5d35172fe944da0798f4909770f9c
[ "Apache-2.0" ]
1
2022-01-24T10:29:20.000Z
2022-01-24T10:29:20.000Z
user_gui/user_verify.py
pantelisantonoudiou/deep-seizure-detect
040d746833f5d35172fe944da0798f4909770f9c
[ "Apache-2.0" ]
null
null
null
user_gui/user_verify.py
pantelisantonoudiou/deep-seizure-detect
040d746833f5d35172fe944da0798f4909770f9c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 29 15:10:48 2020 @author: panton01 """ ### -------- IMPORTS ---------- ### import os, tables from pick import pick import numpy as np # User from array_helper import find_szr_idx ### ------------------------------------------ #### class UserVerify: """ C...
24.060773
103
0.493685
4a1f147ec81ed1eac1a12c2b5737c86105ede20b
1,003
py
Python
setup.py
jpleger/atklite
802e68c00bb1a1c2da325a6d57f898ad05f599d3
[ "BSD-2-Clause" ]
null
null
null
setup.py
jpleger/atklite
802e68c00bb1a1c2da325a6d57f898ad05f599d3
[ "BSD-2-Clause" ]
null
null
null
setup.py
jpleger/atklite
802e68c00bb1a1c2da325a6d57f898ad05f599d3
[ "BSD-2-Clause" ]
null
null
null
from distribute_setup import use_setuptools use_setuptools() from setuptools import setup version = "1.0-release" setup( name = "atklite", version = version, install_requires = [ "ssdeep", "python-magic", ], include_package_data = True, py_modules = ["atklite"], entry_points...
27.861111
97
0.60319
4a1f149557039217fee53a4fbb0e2c9263492074
24,236
py
Python
chrome/tools/build/win/create_installer_archive.py
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
5
2018-03-10T13:08:42.000Z
2021-07-26T15:02:11.000Z
chrome/tools/build/win/create_installer_archive.py
quisquous/chromium
b25660e05cddc9d0c3053b3514f07037acc69a10
[ "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
chrome/tools/build/win/create_installer_archive.py
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Script to create Chrome Installer archive. This script is used to create an archive of all the files required for a Chrome ...
40.125828
80
0.69174
4a1f150746fe11db0886bf611029458b6aa34507
6,155
py
Python
hojehatransportes/hat/migrations/0004_auto__add_userprofile.py
jpgneves/hojehatransportes
00913462d997d6c1aabfa3b8292072c9f928939a
[ "MIT" ]
null
null
null
hojehatransportes/hat/migrations/0004_auto__add_userprofile.py
jpgneves/hojehatransportes
00913462d997d6c1aabfa3b8292072c9f928939a
[ "MIT" ]
1
2015-12-14T06:40:15.000Z
2015-12-14T06:40:15.000Z
hojehatransportes/hat/migrations/0004_auto__add_userprofile.py
jpgneves/hojehatransportes
00913462d997d6c1aabfa3b8292072c9f928939a
[ "MIT" ]
null
null
null
# 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): # Adding model 'UserProfile' db.create_table('hat_userprofile', ( ('id', self.gf('django.db.mo...
62.806122
182
0.559383
4a1f15b1cce640e3ed0755c21113753f4b3bc82b
17,070
py
Python
intersight/model/hyperflex_server_firmware_version_entry.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/hyperflex_server_firmware_version_entry.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/hyperflex_server_firmware_version_entry.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
53.84858
1,678
0.641476
4a1f16563c1c010cd08e6e1608cba4b21d061add
154
py
Python
python_toolbox/wx_tools/drawing_tools/__init__.py
hboshnak/python_toolbox
cb9ef64b48f1d03275484d707dc5079b6701ad0c
[ "MIT" ]
119
2015-02-05T17:59:47.000Z
2022-02-21T22:43:40.000Z
python_toolbox/wx_tools/drawing_tools/__init__.py
hboshnak/python_toolbox
cb9ef64b48f1d03275484d707dc5079b6701ad0c
[ "MIT" ]
4
2019-04-24T14:01:14.000Z
2020-05-21T12:03:29.000Z
python_toolbox/wx_tools/drawing_tools/__init__.py
hboshnak/python_toolbox
cb9ef64b48f1d03275484d707dc5079b6701ad0c
[ "MIT" ]
14
2015-03-30T06:30:42.000Z
2021-12-24T23:45:11.000Z
# Copyright 2009-2017 Ram Rachum. # This program is distributed under the MIT license. '''Defines tools for drawing with wxPython.''' from . import pens
25.666667
52
0.753247
4a1f16e1715924ec0df702140bf161de6ff6d455
1,654
py
Python
bot/exts/utils/error_handler.py
dhzdhd/Obsidian-Python
9ab047aeb96bf79f60f7c268c3252528cbb992a7
[ "MIT" ]
null
null
null
bot/exts/utils/error_handler.py
dhzdhd/Obsidian-Python
9ab047aeb96bf79f60f7c268c3252528cbb992a7
[ "MIT" ]
null
null
null
bot/exts/utils/error_handler.py
dhzdhd/Obsidian-Python
9ab047aeb96bf79f60f7c268c3252528cbb992a7
[ "MIT" ]
null
null
null
from discord.ext import commands from utils.embed_helper import ErrorEmbed class ErrorHandler(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self, ctx, error): if isinstance(error, commands.CommandOnCooldown): error_...
35.191489
110
0.606409
4a1f16efed8f845450c4a19a15a3884be301480f
4,314
py
Python
python/ctranslate2/converters/converter.py
aj7tesh/CTranslate2
8e424efdbcf40c89dca7e237a249464a95eeaf74
[ "MIT" ]
null
null
null
python/ctranslate2/converters/converter.py
aj7tesh/CTranslate2
8e424efdbcf40c89dca7e237a249464a95eeaf74
[ "MIT" ]
null
null
null
python/ctranslate2/converters/converter.py
aj7tesh/CTranslate2
8e424efdbcf40c89dca7e237a249464a95eeaf74
[ "MIT" ]
null
null
null
import abc import filecmp import inspect import os import shutil import six from ctranslate2.specs import catalog from ctranslate2.specs.model_spec import ModelSpec def _list_specs(): return {symbol:getattr(catalog, symbol) for symbol in dir(catalog) if inspect.isclass(getattr(catalog, symbol)) and n...
41.480769
101
0.654613
4a1f17582c983feb288ea44bf76cfed7a36e0274
5,297
py
Python
Introduction to Python/9. Strings.py
RaghuDalal/Coding-Ninjas-Python-Course-Solutions
14522c8191c03ed39510c4fc489d8b52652d7941
[ "MIT" ]
1
2020-06-29T16:16:33.000Z
2020-06-29T16:16:33.000Z
Introduction to Python/9. Strings.py
RaghuDalal/Coding-Ninjas-Python-Course-Solutions
14522c8191c03ed39510c4fc489d8b52652d7941
[ "MIT" ]
null
null
null
Introduction to Python/9. Strings.py
RaghuDalal/Coding-Ninjas-Python-Course-Solutions
14522c8191c03ed39510c4fc489d8b52652d7941
[ "MIT" ]
null
null
null
#Check Palindrome """ Given a String s, check it its palindrome. Return true if string is palindrome, else return false. Palindrome strings are those, where string s and its reverse is exactly same. Input Format : String S Output Format : "true" if S is palindrome, else "false" """ Sample Input 1 : abcdcba Sample Ou...
17.539735
106
0.670757
4a1f17a1cae0ad9b0c38b26d71cf995fc94df3e4
1,256
py
Python
code/tools/split_file.py
MichSchli/GCNQA
67edf676aba526e9c38ec45446b45ea169b17eb3
[ "MIT" ]
2
2018-09-25T03:55:31.000Z
2018-09-25T05:45:55.000Z
code/tools/split_file.py
MichSchli/GCNQA
67edf676aba526e9c38ec45446b45ea169b17eb3
[ "MIT" ]
1
2018-09-25T03:56:17.000Z
2018-09-25T03:56:17.000Z
code/tools/split_file.py
MichSchli/GCNQA
67edf676aba526e9c38ec45446b45ea169b17eb3
[ "MIT" ]
null
null
null
import argparse import random parser = argparse.ArgumentParser(description='Remove all relations not occuring at least min_n times as positives.') parser.add_argument('--in_file') parser.add_argument('--file_1') parser.add_argument('--file_2') parser.add_argument('--second_file_size') args = parser.parse_args() items...
24.153846
116
0.607484
4a1f17fbe16e4f072d71315e9717616a43105105
549
py
Python
arc/arc022/arc022c.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
arc/arc022/arc022c.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
arc/arc022/arc022c.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
from sys import setrecursionlimit, stdin readline = stdin.readline setrecursionlimit(10 ** 6) N = int(readline()) links = [[] for _ in range(N)] for _ in range(N - 1): A, B = map(int, readline().split()) links[A - 1].append(B - 1) links[B - 1].append(A - 1) def dfs(c, p, d): result = (d, c) for...
20.333333
46
0.544627
4a1f187d4c4524697a1fc19f9e561868212ebcc1
22,210
py
Python
saleor/graphql/core/mutations.py
kayuapi/saleor
dfbcee80185d6681385d9d616c0c5318ec2fe60a
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/core/mutations.py
kayuapi/saleor
dfbcee80185d6681385d9d616c0c5318ec2fe60a
[ "CC-BY-4.0" ]
10
2021-03-19T04:33:44.000Z
2022-03-12T00:45:59.000Z
saleor/graphql/core/mutations.py
kayuapi/saleor
dfbcee80185d6681385d9d616c0c5318ec2fe60a
[ "CC-BY-4.0" ]
null
null
null
from itertools import chain from typing import Tuple, Union import graphene from django.contrib.auth import get_user_model from django.core.exceptions import ( NON_FIELD_ERRORS, ImproperlyConfigured, ValidationError, ) from django.db.models.fields.files import FileField from graphene import ObjectType from...
34.22188
89
0.613192
4a1f1980d97e7c5be659072d9a0d7b09e51553f1
326
py
Python
ui-tests/jupyter_server_config.py
andrewhli/jupyterlab-git
18b44796fd0a6b11cf8f6b1ac0a397a3aacce7ca
[ "BSD-3-Clause" ]
1,097
2017-06-20T17:40:44.000Z
2022-03-29T17:15:16.000Z
ui-tests/jupyter_server_config.py
andrewhli/jupyterlab-git
18b44796fd0a6b11cf8f6b1ac0a397a3aacce7ca
[ "BSD-3-Clause" ]
831
2017-06-20T19:28:23.000Z
2022-03-31T12:37:55.000Z
ui-tests/jupyter_server_config.py
andrewhli/jupyterlab-git
18b44796fd0a6b11cf8f6b1ac0a397a3aacce7ca
[ "BSD-3-Clause" ]
270
2017-06-20T17:37:13.000Z
2022-03-26T18:07:02.000Z
c.ServerApp.port = 8888 c.ServerApp.token = "" c.ServerApp.password = "" c.ServerApp.disable_check_xsrf = True c.ServerApp.open_browser = False c.LabServerApp.extra_labextensions_path = "/opt/labextension" # Workaround bug: https://github.com/ipython/traitlets/issues/668 c.LabServerApp.extra_labextensions_path = "/dev/...
36.222222
65
0.791411
4a1f19e845e4945cca022aee6fd2a4666199927a
2,560
py
Python
src/routes/book.py
jabuckle26/library-api
f52970585959be202b85a26e419fc994c273f21e
[ "MIT" ]
null
null
null
src/routes/book.py
jabuckle26/library-api
f52970585959be202b85a26e419fc994c273f21e
[ "MIT" ]
null
null
null
src/routes/book.py
jabuckle26/library-api
f52970585959be202b85a26e419fc994c273f21e
[ "MIT" ]
null
null
null
from config.db import conn from fastapi import APIRouter, HTTPException from models.book import books from schemas.book import Book, BookIn from typing import List, Optional router = APIRouter( prefix="/books", tags=["books"], responses={404: {"description": "Not found"}}, ) @router.get("/", response_mod...
33.684211
90
0.653516
4a1f1b318f1b7641d7b5da85b5cc2ad9379ff48e
45,657
py
Python
gistools/gdal2cesium.py
echemoo/awesome-bash
d8d88fca6fb7d24905b6c03ee4976486c263f145
[ "MIT" ]
null
null
null
gistools/gdal2cesium.py
echemoo/awesome-bash
d8d88fca6fb7d24905b6c03ee4976486c263f145
[ "MIT" ]
null
null
null
gistools/gdal2cesium.py
echemoo/awesome-bash
d8d88fca6fb7d24905b6c03ee4976486c263f145
[ "MIT" ]
null
null
null
#!/usr/bin/env python #****************************************************************************** # $Id: gdal2cesium.py 2014-10-01 12:01:23Z $ # # Project: Cesium terrain generator for GDAL raster formats - S.I.T. Comune di Prato (Italy) # Support: Gis3w s.a.s. (http://gis3w.it) # Purpose: Convert a raster into...
42.910714
162
0.572749
4a1f1bc80706918cb82fcc8de48c1b17020584ca
2,910
py
Python
dust/events.py
MondoAurora/pydust
29a363556cae6477795ccd97e604ef56aef8fbb9
[ "Apache-2.0" ]
null
null
null
dust/events.py
MondoAurora/pydust
29a363556cae6477795ccd97e604ef56aef8fbb9
[ "Apache-2.0" ]
null
null
null
dust/events.py
MondoAurora/pydust
29a363556cae6477795ccd97e604ef56aef8fbb9
[ "Apache-2.0" ]
null
null
null
import json import traceback import calendar import pytz import datetime from enum import Enum from dateutil import parser from dust import Datatypes, ValueTypes, Operation, MetaProps, FieldProps from dust.entity import Store UNIT_EVENTS = "events" UNIT_EVENTS_META = "events_meta" UNIT_ID = 3 UNIT_META_ID = 4 UTC =...
30.631579
192
0.704467
4a1f1c4f5b75e08c014bef56b92f776d82822075
4,123
py
Python
build_dataset.py
torewulf/asip
75cfe77adb5e52bff1e62e6a518d8cc997c329e7
[ "MIT" ]
null
null
null
build_dataset.py
torewulf/asip
75cfe77adb5e52bff1e62e6a518d8cc997c329e7
[ "MIT" ]
null
null
null
build_dataset.py
torewulf/asip
75cfe77adb5e52bff1e62e6a518d8cc997c329e7
[ "MIT" ]
null
null
null
import os import cv2 import netCDF4 import utils import numpy as np from tqdm import tqdm DATA_DIR = '/data/users/twu/ds-2/dataset-2' PATCHES_DIR = '/data/users/twu/ds-2/patches' PATCH_SHAPE = (800, 800) AMSR_PATCH_SHAPE = (16, 16) OVERLAP = 0.25 ncs = [os.path.join(DATA_DIR, file) for file in os.listdir(DATA_DIR) if...
50.901235
169
0.690759
4a1f1cca5240098cd668172bb4b84cef8664ab97
344
py
Python
pydar/__init__.py
MomsFriendlyRobotCompany/pydar
20d5a6b382b4f047ba19f8f82a15a67ab3537543
[ "MIT" ]
null
null
null
pydar/__init__.py
MomsFriendlyRobotCompany/pydar
20d5a6b382b4f047ba19f8f82a15a67ab3537543
[ "MIT" ]
2
2018-10-14T20:45:52.000Z
2018-10-14T20:47:10.000Z
pydar/__init__.py
MomsFriendlyRobotCompany/pydar
20d5a6b382b4f047ba19f8f82a15a67ab3537543
[ "MIT" ]
null
null
null
from pydar.lidar_urg import URG04LX from pydar.lidar_lds01 import LDS01 from pydar.rplidar import RPLidar from pydar.format import Scan # # from collections import namedtuple # Scan = namedtuple('Scan', 'scan timestamp') # from pydar.rplidar import RPLidarA1, RPLidarA2 __author__ = "Kevin Walchko" __license__ = "MIT...
22.933333
48
0.77907
4a1f1ce2c11d6221736398175f4ae7f8de02ab0f
6,687
py
Python
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_name_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_instances_info/lsp_instances/lsp_rsvp_session_rro_hops/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_name_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_instances_info/lsp_instances/lsp_rsvp_session_rro_hops/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_name_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_instances_info/lsp_instances/lsp_rsvp_session_rro_hops/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
53.927419
466
0.741289
4a1f1d3e10cda9ef176d9ce9ecbd81968b1d8a44
95
py
Python
pydiscourse/__init__.py
gregnewman/pydiscourse
872cab43db7c81128a8ae5d8ee913a5c36d147c4
[ "MIT" ]
null
null
null
pydiscourse/__init__.py
gregnewman/pydiscourse
872cab43db7c81128a8ae5d8ee913a5c36d147c4
[ "MIT" ]
null
null
null
pydiscourse/__init__.py
gregnewman/pydiscourse
872cab43db7c81128a8ae5d8ee913a5c36d147c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = "1.1.0" from pydiscourse.client import DiscourseClient
15.833333
46
0.694737
4a1f1d926f93a1b037b46ce6b25c861ea9ca88c7
1,436
py
Python
automl/beta/import_dataset.py
m-abba/python-docs-samples
b00f00d734b89edae8ae6876d6261e19dc82cd34
[ "Apache-2.0" ]
null
null
null
automl/beta/import_dataset.py
m-abba/python-docs-samples
b00f00d734b89edae8ae6876d6261e19dc82cd34
[ "Apache-2.0" ]
null
null
null
automl/beta/import_dataset.py
m-abba/python-docs-samples
b00f00d734b89edae8ae6876d6261e19dc82cd34
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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, so...
35.9
74
0.735376
4a1f1dc641fc160e35d3238111feed4ff25a56bc
30,750
py
Python
pymatgen/analysis/defects/thermodynamics.py
molllyn1/pymatgen
8ba60e6114cd8cd4ea818d3c9e84b71ebef0c654
[ "MIT" ]
null
null
null
pymatgen/analysis/defects/thermodynamics.py
molllyn1/pymatgen
8ba60e6114cd8cd4ea818d3c9e84b71ebef0c654
[ "MIT" ]
null
null
null
pymatgen/analysis/defects/thermodynamics.py
molllyn1/pymatgen
8ba60e6114cd8cd4ea818d3c9e84b71ebef0c654
[ "MIT" ]
1
2021-02-17T07:07:00.000Z
2021-02-17T07:07:00.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Defect thermodynamics, such as defect phase diagrams, etc. """ import logging from itertools import chain import matplotlib.cm as cm import matplotlib.pyplot as plt import numpy as np from monty.json impo...
42.239011
118
0.57987
4a1f1e1fbf51a77f27a9351e96a7739b0949bcb8
911
py
Python
boilerio/tests/test_pwm.py
adpeace/boilerio
730486b46a5b5a7b62d2a3d932378c3fa7dff2a0
[ "MIT" ]
4
2017-07-13T04:57:15.000Z
2021-12-10T01:28:46.000Z
boilerio/tests/test_pwm.py
adpeace/boilerio
730486b46a5b5a7b62d2a3d932378c3fa7dff2a0
[ "MIT" ]
14
2021-01-17T22:42:27.000Z
2021-12-10T01:30:37.000Z
boilerio/tests/test_pwm.py
adpeace/boilerio
730486b46a5b5a7b62d2a3d932378c3fa7dff2a0
[ "MIT" ]
3
2017-04-19T21:34:15.000Z
2021-11-20T10:45:56.000Z
import mock from datetime import datetime, timedelta from boilerio import pwm def test_start_off(): mock_device = mock.MagicMock() c = pwm.PWM(0, timedelta(0, 600), mock_device) now = datetime.now() c.update(now) mock_device.off.assert_called() mock_device.on.assert_not_called() def test_start...
26.028571
52
0.689352
4a1f1ea2e00aa0e12aea801de4207d1ffddb6303
5,837
py
Python
hackjohn.py
ScottBishop/hackjohn
c276cffe76921d0e869022f9d6ae69d2d15e034e
[ "MIT" ]
null
null
null
hackjohn.py
ScottBishop/hackjohn
c276cffe76921d0e869022f9d6ae69d2d15e034e
[ "MIT" ]
null
null
null
hackjohn.py
ScottBishop/hackjohn
c276cffe76921d0e869022f9d6ae69d2d15e034e
[ "MIT" ]
null
null
null
""" Bot to monitor for southbound permit spaces on the John Muir Trail Written by Daniel Himmelstein Check whether any spaces are available for the "Donohue Exit Quota and Trailhead Space Available". This is for people hiking the John Muir Trail starting in Yosemite. According to the reservations office, the table is...
31.38172
86
0.723831
4a1f1ee683be45f7f538548810e2b151f0140bc5
8,814
py
Python
tuframework/experiment_planning/experiment_planner_baseline_2DUNet.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
tuframework/experiment_planning/experiment_planner_baseline_2DUNet.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
tuframework/experiment_planning/experiment_planner_baseline_2DUNet.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
55.433962
120
0.659746
4a1f1ee7c7a72581767dd4ba7701efc04662dd46
1,162
py
Python
grouper/fe/handlers/role_user_view.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/fe/handlers/role_user_view.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/fe/handlers/role_user_view.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from grouper.audit import get_group_audit_members_infos from grouper.fe.handlers.template_variables import get_role_user_view_template_vars from grouper.fe.util import GrouperHandler from grouper.models.group import Group from grouper.models.user import User if TYPE_CHECKING: from...
32.277778
83
0.668675
4a1f213d7e5fffda04623f85cb74ac7ef0ec6214
2,457
py
Python
software/ekf/ekf_real/main.py
tucuongbrt/PIFer
e2ac4d4443e1c6a6263f91c32f28dbe767590359
[ "MIT" ]
2
2021-03-17T18:23:15.000Z
2021-03-18T06:19:44.000Z
software/ekf/ekf_real/main.py
tucuongbrt/PIFer
e2ac4d4443e1c6a6263f91c32f28dbe767590359
[ "MIT" ]
2
2021-04-03T08:50:46.000Z
2021-04-03T08:50:57.000Z
software/ekf/ekf_real/main.py
tucuongbrt/PIFer
e2ac4d4443e1c6a6263f91c32f28dbe767590359
[ "MIT" ]
2
2021-04-14T00:18:23.000Z
2021-05-06T05:57:54.000Z
from numpy import * from math import * from ekf import * from utils import * pule_per_revolution = 780 wheel_diameter = 0.065 file_control_measurement = open("control_measurement.txt") file_prediction = open("prediction.txt", "w") ranges = [] x = [] yaw = 0 for line in file_control_measurement.readlines(): cm = ...
31.5
111
0.590965
4a1f213fef5110a2b785dbece406128e01056056
124
py
Python
tests/regression/diabetes/ws_diabetes_SVR_linear_hive_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2019-07-09T14:45:18.000Z
2019-07-09T14:45:18.000Z
tests/regression/diabetes/ws_diabetes_SVR_linear_hive_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
5
2017-11-13T13:35:37.000Z
2021-11-11T12:57:20.000Z
tests/regression/diabetes/ws_diabetes_SVR_linear_hive_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2021-09-19T15:05:33.000Z
2021-09-19T15:05:33.000Z
from sklearn2sql_heroku.tests.regression import generic as reg_gen reg_gen.test_model("SVR_linear" , "diabetes" , "hive")
24.8
66
0.790323
4a1f2294791c93edd803bc168188cbd56182b122
11,522
py
Python
TensorflowFL/Weight_Def.py
BUAA-BDA/FedShapley
d4b257c3070f85e81cc9bb93f98dd79472817cec
[ "MIT" ]
16
2020-04-27T15:41:24.000Z
2022-03-11T05:46:56.000Z
TensorflowFL/Weight_Def.py
syl18via/FL_intensive
bfc12da88f8f9ae04f1a1bb6da2a8835d70c66de
[ "MIT" ]
null
null
null
TensorflowFL/Weight_Def.py
syl18via/FL_intensive
bfc12da88f8f9ae04f1a1bb6da2a8835d70c66de
[ "MIT" ]
6
2020-05-07T19:03:00.000Z
2021-08-20T08:35:35.000Z
import tensorflow_federated as tff import tensorflow.compat.v1 as tf import numpy as np import time import random from scipy.special import comb, perm import os # tf.compat.v1.enable_v2_behavior() # tf.compat.v1.enable_eager_execution() NUM_EXAMPLES_PER_USER = 1000 BATCH_SIZE = 100 NUM_AGENT = 5 d...
36.347003
134
0.61708
4a1f22e149745cdad79f9ab18b0990f7d4df1d62
259,784
py
Python
Tests/test_geo.py
mukhyala/biopython
bab34118fce33a7e10b0db8eb7382f6d0e0d5d41
[ "BSD-3-Clause" ]
null
null
null
Tests/test_geo.py
mukhyala/biopython
bab34118fce33a7e10b0db8eb7382f6d0e0d5d41
[ "BSD-3-Clause" ]
null
null
null
Tests/test_geo.py
mukhyala/biopython
bab34118fce33a7e10b0db8eb7382f6d0e0d5d41
[ "BSD-3-Clause" ]
null
null
null
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Tests the basic functionality of the GEO parsers.""" import os import sys import unittest from Bio import Geo if sys.version_info[0] >= 3: ...
81.899117
1,148
0.66434
4a1f22fbfad9203031f638d09ed379d2d3855990
9,585
py
Python
lib/python/impala_py_lib/jenkins/generate_junitxml.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
1,523
2015-01-01T03:42:24.000Z
2022-02-06T22:24:04.000Z
lib/python/impala_py_lib/jenkins/generate_junitxml.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
10
2015-01-09T06:46:05.000Z
2022-03-29T21:57:57.000Z
lib/python/impala_py_lib/jenkins/generate_junitxml.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
647
2015-01-02T04:01:40.000Z
2022-03-30T15:57:35.000Z
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Li...
35.898876
90
0.663954
4a1f23b9f97620c668947b6c82db3cdb6abaf69d
14,056
py
Python
application/views.py
mohangcsm/secops
c1398a34bba4149c24511cc73a45cd14731abd04
[ "Apache-2.0" ]
8
2020-08-03T05:53:46.000Z
2021-05-05T01:59:32.000Z
application/views.py
mohangcsm/secops
c1398a34bba4149c24511cc73a45cd14731abd04
[ "Apache-2.0" ]
4
2021-11-05T18:17:54.000Z
2021-11-05T18:18:49.000Z
application/views.py
mohangcsm/secops
c1398a34bba4149c24511cc73a45cd14731abd04
[ "Apache-2.0" ]
1
2021-03-11T05:49:04.000Z
2021-03-11T05:49:04.000Z
import flask, time, sys, json, sqlite3, os, sys, random, string, hashlib, subprocess, requests from flask import render_template, session, jsonify, request, Response, flash from flask import flash, current_app, redirect, url_for, send_from_directory from flask_oauth import OAuth from application import app from jira ...
36.041026
187
0.656588
4a1f2584dca54ea276f8f978f87f9e2976db8984
11,616
py
Python
dash-app/app_FEIAT.py
brain-bzh/SilentCities
3526d1716d4d7fa970a692bb8370f7d134fbd09c
[ "MIT" ]
5
2020-09-27T20:40:32.000Z
2021-12-10T04:35:00.000Z
dash-app/app_FEIAT.py
brain-bzh/SilentCities
3526d1716d4d7fa970a692bb8370f7d134fbd09c
[ "MIT" ]
null
null
null
dash-app/app_FEIAT.py
brain-bzh/SilentCities
3526d1716d4d7fa970a692bb8370f7d134fbd09c
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, "../") import os from glob import glob # import argparse import csv import dash # import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State # from dash_html_components.Div import Div #...
42.086957
378
0.512052
4a1f27e94389cba14b2ade5e2e132603e0c9a822
2,125
py
Python
test/Scanner/parallel-rescan.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
3
2017-01-06T09:26:23.000Z
2017-03-04T04:13:20.000Z
test/Scanner/parallel-rescan.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
2
2015-10-27T20:17:24.000Z
2016-08-04T21:49:56.000Z
test/Scanner/parallel-rescan.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
4
2015-03-31T16:09:15.000Z
2021-08-04T12:41:47.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
29.109589
73
0.715765
4a1f2803d339ab2d6f5073a24cc0f3cbca7521bd
3,036
py
Python
ARedSum/src/run_para.py
BoonthichaSaejia/ThaiSum
fdb99eab23e60a933acf4e84836f53ddf05b7c8b
[ "Apache-2.0" ]
23
2020-11-20T09:10:10.000Z
2022-01-30T16:44:39.000Z
ARedSum/src/run_para.py
BoonthichaSaejia/ThaiSum
fdb99eab23e60a933acf4e84836f53ddf05b7c8b
[ "Apache-2.0" ]
2
2020-12-02T13:41:57.000Z
2021-11-07T17:19:57.000Z
ARedSum/src/run_para.py
nakhunchumpolsathien/ThaiSum
c72b26799c60ff10f31d28af6df41ea97c732285
[ "Apache-2.0" ]
7
2020-12-03T08:16:38.000Z
2021-12-05T13:05:06.000Z
import os import sys DATA_ROOT_DIR="/net/home/kbi/ingham_disk/doc_summarization" DATA_PATH="%s/CNNDM/bert_data/cnndm" % DATA_ROOT_DIR MODEL_DIR="%s/models/cnndm/" % DATA_ROOT_DIR LOG_DIR= "/net/home/kbi/projects/doc_summarization/ARedSumSentRank/logs" RESULT_DIR="%s/outputs" % DATA_ROOT_DIR #script_path = "sudo /dat...
39.947368
227
0.608037
4a1f2a641f43e3e3204329d321d23e2c217df1b5
460
py
Python
PYTHON/cipher.py
Sonu589/Hacktoberfest-2025
06397aa12a41967cb112722666e384007d87dbc4
[ "MIT" ]
1
2021-10-04T07:14:40.000Z
2021-10-04T07:14:40.000Z
PYTHON/cipher.py
Sonu589/Hacktoberfest-2025
06397aa12a41967cb112722666e384007d87dbc4
[ "MIT" ]
11
2022-01-24T20:42:11.000Z
2022-02-27T23:58:24.000Z
PYTHON/cipher.py
Sonu589/Hacktoberfest-2025
06397aa12a41967cb112722666e384007d87dbc4
[ "MIT" ]
1
2021-10-05T04:40:26.000Z
2021-10-05T04:40:26.000Z
import string dict ={} data ="" file = open("op_file.txt","w") for i in range(len(string.ascii_letters)): dict[string.ascii_letters[i]]=string.ascii_letters[i-1] print(dict) with open("ip_file.txt") as f: while True: c = f.read(1) if not c: print("end of line") break ...
20
59
0.534783
4a1f2ab2f861018ca2351123b6e88ed693da3713
32
py
Python
lib/python3.4/__future__.py
caiocsalvador/whats_the_craic
c49ef62f1acd7379f6fd90c2b93aa1fa00c8661d
[ "MIT" ]
7
2017-04-26T12:28:22.000Z
2021-02-09T18:59:50.000Z
django-ng/lib/python3.4/__future__.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
13
2015-12-04T03:38:37.000Z
2015-12-12T00:15:46.000Z
django-ng/lib/python3.4/__future__.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
8
2017-06-01T08:42:16.000Z
2020-07-23T12:30:19.000Z
/usr/lib/python3.4/__future__.py
32
32
0.8125
4a1f2ad31c499634f7a41169f80bec5e2d28ba11
7,284
py
Python
vendas/core/migrations/0001_initial.py
JacksonOsvaldo/bc_calcado-vendas
b688931256dad6dc54a1ea6ef94eb108dafb58f4
[ "MIT" ]
null
null
null
vendas/core/migrations/0001_initial.py
JacksonOsvaldo/bc_calcado-vendas
b688931256dad6dc54a1ea6ef94eb108dafb58f4
[ "MIT" ]
2
2020-02-12T02:26:22.000Z
2020-06-05T22:25:07.000Z
vendas/core/migrations/0001_initial.py
JacksonOsvaldo/bc_calcado-vendas
b688931256dad6dc54a1ea6ef94eb108dafb58f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2019-08-13 18:28 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
54.766917
167
0.586491
4a1f2b1f59fc729a33c58bbe5fe72ebc9fe01476
1,168
py
Python
test/test_pixel.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
6
2018-07-09T00:33:52.000Z
2019-11-14T16:36:39.000Z
test/test_pixel.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
1
2018-06-11T19:35:07.000Z
2018-06-11T19:35:07.000Z
test/test_pixel.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
2
2018-06-11T17:59:03.000Z
2018-07-09T00:33:54.000Z
from ccdc import pixel from pyspark.sql import Row import datetime import test def test_table(): assert 'pixel' == pixel.table() def test_schema(): s = pixel.schema().simpleString() assert s == 'struct<cx:int,cy:int,px:int,py:int,mask:array<tinyint>>' def test_dataframe(spark_context, sql_context...
25.955556
73
0.560788
4a1f2b24c019b6cab7bcd6ce2496bb484f6ce95d
12,333
py
Python
models/imagenet/resnet_ibn_cnsn.py
yhygao/crossnorm-selfnorm
4db2656a2398025bd9c23283a3f76a8ea5a183a9
[ "Apache-2.0" ]
71
2021-08-14T01:30:25.000Z
2022-03-31T15:05:23.000Z
models/imagenet/resnet_ibn_cnsn.py
yhygao/crossnorm-selfnorm
4db2656a2398025bd9c23283a3f76a8ea5a183a9
[ "Apache-2.0" ]
1
2021-11-10T03:44:45.000Z
2021-11-23T17:46:46.000Z
models/imagenet/resnet_ibn_cnsn.py
yhygao/crossnorm-selfnorm
4db2656a2398025bd9c23283a3f76a8ea5a183a9
[ "Apache-2.0" ]
11
2021-08-14T01:36:12.000Z
2022-02-11T05:23:24.000Z
# Code is adapted from https://github.com/XingangPan/IBN-Net/blob/8efba2b20acf1f891386bfd2f8ffb5d69c491c6a/ibnnet/resnet_ibn.py # which is originally licensed under MIT. import math import warnings import torch import torch.nn as nn import numpy as np from ..cnsn import CrossNorm, SelfNorm, CNSN __all__ = ['ResNet_I...
35.747826
127
0.556393
4a1f2c139b2b1bec23aa9651f05ed186f9481996
4,981
py
Python
samfp/sami/list_of_filters.py
b1quint/samfp
1cd9b85851c02dc61a2294d67a309f62083d358d
[ "BSD-3-Clause" ]
null
null
null
samfp/sami/list_of_filters.py
b1quint/samfp
1cd9b85851c02dc61a2294d67a309f62083d358d
[ "BSD-3-Clause" ]
19
2016-07-15T21:32:59.000Z
2017-09-12T00:31:26.000Z
samfp/sami/list_of_filters.py
b1quint/samfp
1cd9b85851c02dc61a2294d67a309f62083d358d
[ "BSD-3-Clause" ]
null
null
null
filters = { 'Open': ['s0000', 'Open', 'Open'], 'U': ['s0001', 'U_Bessell', 'U Bessell', 'U-Bessell'], 'B': ['s0002', 'B_Bessell', 'B Bessell', 'B-Bessell'], 'V': ['s0003', 'V_Bessell', 'V Bessell', 'V-Bessell'], 'R': ['s0004', 'R_Bessell', 'R Bessell', 'R-Bessell'], 'I': ['s0005', 'I_Bessell', '...
64.688312
102
0.522987
4a1f2d875362f4d131bcd86af18b8eaff73c8e19
9,722
py
Python
python/ccxt/async/__init__.py
born2net/ccxt
9995e50ca28513b9a68f774a3517f2c396cc0001
[ "MIT" ]
null
null
null
python/ccxt/async/__init__.py
born2net/ccxt
9995e50ca28513b9a68f774a3517f2c396cc0001
[ "MIT" ]
null
null
null
python/ccxt/async/__init__.py
born2net/ccxt
9995e50ca28513b9a68f774a3517f2c396cc0001
[ "MIT" ]
1
2018-08-09T18:11:13.000Z
2018-08-09T18:11:13.000Z
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.9.306' # ----------------------------------------------------------------------------- from ccxt.async.base.exchange import Exchange ...
44.801843
79
0.517589
4a1f2dbbdc7090dcfb839bd59a458e1bb464d927
3,153
py
Python
odata/tests/__init__.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
74
2015-04-13T15:12:44.000Z
2022-01-24T08:06:16.000Z
odata/tests/__init__.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
43
2015-04-11T15:08:08.000Z
2021-04-14T16:08:43.000Z
odata/tests/__init__.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
63
2016-06-22T03:52:39.000Z
2022-02-25T10:56:34.000Z
# -*- coding: utf-8 -*- from odata import ODataService from odata.property import StringProperty, IntegerProperty, DecimalProperty, \ NavigationProperty, DatetimeProperty from odata.enumtype import EnumType, EnumTypeProperty url = 'http://unittest.server.local/odata/' Service = ODataService(url) class DemoActio...
29.745283
110
0.745956
4a1f2e17df6616bab9990edaee6a81fc4e0e7ffc
4,995
py
Python
src/cray/cfs/inventory/dynamic.py
Cray-HPE/cfs-operator
16cd12155ba52b89e504ed668c49b544b92d3794
[ "MIT" ]
null
null
null
src/cray/cfs/inventory/dynamic.py
Cray-HPE/cfs-operator
16cd12155ba52b89e504ed668c49b544b92d3794
[ "MIT" ]
2
2021-12-16T19:29:28.000Z
2022-03-02T22:38:35.000Z
src/cray/cfs/inventory/dynamic.py
Cray-HPE/cfs-operator
16cd12155ba52b89e504ed668c49b544b92d3794
[ "MIT" ]
1
2021-11-10T22:28:36.000Z
2021-11-10T22:28:36.000Z
# # MIT License # # (C) Copyright 2019-2022 Hewlett Packard Enterprise Development LP # # 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...
38.423077
98
0.61962
4a1f2e68cec9d4d328a17cf4a14b39045519e4ba
1,811
py
Python
script/train.py
FYP-2018/S2S_attention_1
416d91eb71f9dcda40b925dc2b0c59582786cb86
[ "MIT" ]
null
null
null
script/train.py
FYP-2018/S2S_attention_1
416d91eb71f9dcda40b925dc2b0c59582786cb86
[ "MIT" ]
null
null
null
script/train.py
FYP-2018/S2S_attention_1
416d91eb71f9dcda40b925dc2b0c59582786cb86
[ "MIT" ]
null
null
null
import tensorflow as tf import subprocess import logging import os import sys sys.path.insert(0, '/Users/user/PycharmProjects/Seq2Seq/TensorFlow-Summarization') # from src import data_util MAX_STEPS = 300000 STEPS_PER_VALIDATION = 1000 STEPS_PER_CHECKPOINT = 20000 TEST_THRESHOLD = 200000 MAX_STEPS = 240 STEPS_PER_VA...
28.296875
101
0.631695
4a1f2e7410b8a66f6c0f8a4294c7a7fe4f6df6f6
4,630
py
Python
fpga_interchange/constraints/tool.py
chipsalliance/python-fpga-interchange
27fc1db2a37f5e224396c50f0770ea0caef708d9
[ "ISC" ]
3
2021-12-08T14:06:50.000Z
2022-02-15T00:45:24.000Z
fpga_interchange/constraints/tool.py
chipsalliance/python-fpga-interchange
27fc1db2a37f5e224396c50f0770ea0caef708d9
[ "ISC" ]
2
2022-03-16T14:07:29.000Z
2022-03-21T15:04:31.000Z
fpga_interchange/constraints/tool.py
chipsalliance/python-fpga-interchange
27fc1db2a37f5e224396c50f0770ea0caef708d9
[ "ISC" ]
3
2021-11-15T13:03:46.000Z
2022-02-11T22:41:24.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The F4PGA Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC import argparse import pprint from pysat.solvers ...
28.231707
79
0.631749
4a1f2f029eedf63f451068ef7ce97feb409c16de
1,280
py
Python
src/fvm/test/PARALLEL_TESTS/testPartMesh.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
src/fvm/test/PARALLEL_TESTS/testPartMesh.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
src/fvm/test/PARALLEL_TESTS/testPartMesh.py
drm42/fvm-drm
c9b940e593034f1aa3020d63ff1e09ebef9c182a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Usage: testPartMesh.py [options] infile options are: --type 'tri'[default], 'quad', 'hexa', or 'tetra' --xdmf Dump data in xdmf """ import sys, fvm import fvm.fvmbaseExt as fvmbaseExt import fvm.importers as importers import fvm.fvmparallel as fvmparallel from mpi4py import MPI from FluentC...
21.694915
78
0.696094
4a1f2fc0ae4af02f40808c77018a8d39708c904e
1,023
py
Python
kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
23.790698
118
0.755621
4a1f2fce7a5f17e577f0f8c7b37105ac4c232f6f
591
py
Python
Problem Solving/Algorithms/Warmup/A Very Big Sum.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
Problem Solving/Algorithms/Warmup/A Very Big Sum.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
Problem Solving/Algorithms/Warmup/A Very Big Sum.py
MonwarAdeeb/HackerRank-Solutions
571327e9688061745000ae81c5fd74ff7a2976d4
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'aVeryBigSum' function below. # # The function is expected to return a LONG_INTEGER. # The function accepts LONG_INTEGER_ARRAY ar as parameter. # def aVeryBigSum(ar): # Write your code here sum_of_numbers = sum(ar) ...
16.885714
58
0.673435
4a1f2fd483a7c96c5b86be28e9d48b671e25cabe
3,754
py
Python
src/plotMethods.py
Syuukakou/SCIS2022
d6cf84d938b6afa022edb9c58629ca3f9490ea2c
[ "MIT" ]
null
null
null
src/plotMethods.py
Syuukakou/SCIS2022
d6cf84d938b6afa022edb9c58629ca3f9490ea2c
[ "MIT" ]
null
null
null
src/plotMethods.py
Syuukakou/SCIS2022
d6cf84d938b6afa022edb9c58629ca3f9490ea2c
[ "MIT" ]
null
null
null
import networkx as nx import matplotlib.pyplot as plt import json, collections import seaborn as sns import textwrap import pandas as pd import matplotlib as mpl def plot_dict_data(sources, save_path, title, xlabel, ylabel, fig_w, fig_h, rotation, show_Barlabel=False, wrap_xticklabels=False): """plot dict data ...
37.168317
144
0.643847
4a1f322bc34eb9673ed95c9dd4450b081ee1ad87
515
py
Python
Templates/FuncApp-Http-sql-Example/tools/tools_math.py
mmaysami/azure-functions-python
e97b29204af83bc1fc81b886f841fe7b7bc0c8a3
[ "MIT" ]
null
null
null
Templates/FuncApp-Http-sql-Example/tools/tools_math.py
mmaysami/azure-functions-python
e97b29204af83bc1fc81b886f841fe7b7bc0c8a3
[ "MIT" ]
null
null
null
Templates/FuncApp-Http-sql-Example/tools/tools_math.py
mmaysami/azure-functions-python
e97b29204af83bc1fc81b886f841fe7b7bc0c8a3
[ "MIT" ]
null
null
null
# import numpy as np # import pandas as pd # import sklearn import time def sum1(a, b): start = time.time() a = float(a) b = float(b) return a+b, time.time()-start def sub1(a, b): start = time.time() a = float(a) b = float(b) return a-b, time.time()-start def pow1(a, b): start ...
15.147059
34
0.547573
4a1f32b66c4411e2b628e98f5cbc4497a90b23fa
774
py
Python
solutions/1071-Greatest-Common-Divisor-of-Strings/1071.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
12
2020-04-21T01:09:14.000Z
2022-01-13T08:42:03.000Z
solutions/1071-Greatest-Common-Divisor-of-Strings/1071.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
null
null
null
solutions/1071-Greatest-Common-Divisor-of-Strings/1071.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
4
2020-03-31T03:06:16.000Z
2021-07-06T07:27:44.000Z
class Solution: def gcdOfStrings(self, str1: str, str2: str) -> str: m, n = len(str1), len(str2) # solution one i, j = 0, 0 while i < m or j < n: if str1[i % m] != str2[j % n]: return "" i += 1 j += 1 # 求最大公约数 ...
24.1875
56
0.410853
4a1f32f523889f8112ab924cad4c4dd453c3dad3
1,911
py
Python
src/krux/light.py
odudex/krux
db421a3f107c0263221e5f1e877e9c38925bb17c
[ "MIT" ]
null
null
null
src/krux/light.py
odudex/krux
db421a3f107c0263221e5f1e877e9c38925bb17c
[ "MIT" ]
null
null
null
src/krux/light.py
odudex/krux
db421a3f107c0263221e5f1e877e9c38925bb17c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021 Tom J. Sun # 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, ...
36.056604
84
0.698587
4a1f338100b935fc86d18b4762943134ab6f124a
39,614
py
Python
bioblend/cloudman/launch.py
fubar2/bioblend
99ea9dae70dcda803a6465aa6ecae6f4ab39aef7
[ "MIT" ]
51
2015-01-23T20:45:01.000Z
2022-01-31T10:46:31.000Z
bioblend/cloudman/launch.py
fubar2/bioblend
99ea9dae70dcda803a6465aa6ecae6f4ab39aef7
[ "MIT" ]
288
2015-01-22T21:01:31.000Z
2022-03-14T09:09:25.000Z
bioblend/cloudman/launch.py
fubar2/bioblend
99ea9dae70dcda803a6465aa6ecae6f4ab39aef7
[ "MIT" ]
87
2015-02-02T06:31:54.000Z
2022-03-31T02:39:31.000Z
""" Setup and launch a CloudMan instance. """ import datetime import socket from http.client import ( BadStatusLine, HTTPConnection, HTTPException, ) from urllib.parse import urlparse import boto import yaml from boto.ec2.regioninfo import RegionInfo from boto.exception import EC2ResponseError, S3ResponseE...
46.386417
178
0.552179
4a1f34cc883c1bad8598636344745ddbbb1da586
707
py
Python
coursera/test/test_commandline.py
AbderrhmanAbdellatif/coursera-dl-GUI
11c5d1f75867ce7ed1398cce16b18777e6499431
[ "MIT" ]
null
null
null
coursera/test/test_commandline.py
AbderrhmanAbdellatif/coursera-dl-GUI
11c5d1f75867ce7ed1398cce16b18777e6499431
[ "MIT" ]
null
null
null
coursera/test/test_commandline.py
AbderrhmanAbdellatif/coursera-dl-GUI
11c5d1f75867ce7ed1398cce16b18777e6499431
[ "MIT" ]
null
null
null
""" Test command line module. """ from coursera import commandline from coursera.test import test_workflow def test_class_name_arg_required(): args = {'list_courses': False, 'version': False} mock_args = test_workflow.MockedCommandLineArgs(**args) assert commandline.class_name_arg_required(mock_args) d...
29.458333
65
0.717115
4a1f3591f14c8e99af13e6d9f0feeae8128390f0
6,766
py
Python
tensorflow/python/kernel_tests/matrix_solve_op_test.py
DHsLc/test
f286c78b619b81ca95ba9f738cc0de4e14440e44
[ "Apache-2.0" ]
5
2021-01-11T01:51:57.000Z
2021-12-11T17:19:08.000Z
tensorflow/python/kernel_tests/matrix_solve_op_test.py
radi2015/tensorflow
4b2fb49fd7578afe7e289936f347af581b5bdab1
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/matrix_solve_op_test.py
radi2015/tensorflow
4b2fb49fd7578afe7e289936f347af581b5bdab1
[ "Apache-2.0" ]
3
2020-07-02T13:46:32.000Z
2021-01-11T01:52:01.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.381215
80
0.604197
4a1f360f8a0276368ed4abf45911fdf4999bbe71
23
py
Python
src/test/data/pa2/AdditionalTestCases_pa2/none_empty_assignment_comp.py
Leo-Enrique-Wu/chocopy_compiler_semantic_analysis
e89f6434dd7d274d4838457316143f312226495f
[ "BSD-2-Clause" ]
null
null
null
src/test/data/pa2/AdditionalTestCases_pa2/none_empty_assignment_comp.py
Leo-Enrique-Wu/chocopy_compiler_semantic_analysis
e89f6434dd7d274d4838457316143f312226495f
[ "BSD-2-Clause" ]
null
null
null
src/test/data/pa2/AdditionalTestCases_pa2/none_empty_assignment_comp.py
Leo-Enrique-Wu/chocopy_compiler_semantic_analysis
e89f6434dd7d274d4838457316143f312226495f
[ "BSD-2-Clause" ]
null
null
null
x:object = None x = []
7.666667
15
0.521739
4a1f37c3649d500b638edd1a48aa74553be53ccd
940
py
Python
PDFtoImg.py
MihirGodbole96/PdftoImg
d8c8183a3f047b477a9eb838e393d23c49c6808d
[ "MIT" ]
null
null
null
PDFtoImg.py
MihirGodbole96/PdftoImg
d8c8183a3f047b477a9eb838e393d23c49c6808d
[ "MIT" ]
null
null
null
PDFtoImg.py
MihirGodbole96/PdftoImg
d8c8183a3f047b477a9eb838e393d23c49c6808d
[ "MIT" ]
null
null
null
import os import tempfile from pdf2image import convert_from_path from PyPDF3 import PdfFileWriter, PdfFileReader path="input_path" output_folder_path="destination_path" for filename in os.listdir(path): i = 0 pdfname=path + filename inputpdf = PdfFileReader(open(pdfname,"rb")) maxPages = inputpdf...
34.814815
119
0.571277
4a1f39a5f7361d2243afab86a74c4de135dfdb04
11,042
py
Python
sampled_data/sampled_data233.py
bryan-ruddy/ENGSCI233_2021
97a9ede84183603ac7975d5692885921419608fa
[ "MIT" ]
2
2022-02-09T02:15:39.000Z
2022-02-09T02:22:42.000Z
sampled_data/sampled_data233.py
bryan-ruddy/ENGSCI233_2021
97a9ede84183603ac7975d5692885921419608fa
[ "MIT" ]
null
null
null
sampled_data/sampled_data233.py
bryan-ruddy/ENGSCI233_2021
97a9ede84183603ac7975d5692885921419608fa
[ "MIT" ]
2
2021-05-03T09:25:11.000Z
2022-02-09T02:15:57.000Z
# Supplementary classes and functions for ENGSCI233 notebook Sampling.ipynb # author: David Dempsey import numpy as np from matplotlib import pyplot as plt from numpy.linalg import inv # function for matrix inverse from scipy.integrate import trapz from scipy.interpolate import interp1d from matplotlib.patches import...
28.981627
145
0.634487