hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
0333aa1157c968dcf4de6fff01931b9a8324f46b
81,513
py
Python
ornstein_auto_encoder/tensorboard_utils.py
Young-won/ornstein_auto_encoders
7ebe15f79f56cb75f4948dc7cf6d4633ccec84ec
[ "MIT" ]
1
2021-06-08T10:28:32.000Z
2021-06-08T10:28:32.000Z
ornstein_auto_encoder/tensorboard_utils.py
Young-won/ornstein_auto_encoders
7ebe15f79f56cb75f4948dc7cf6d4633ccec84ec
[ "MIT" ]
null
null
null
ornstein_auto_encoder/tensorboard_utils.py
Young-won/ornstein_auto_encoders
7ebe15f79f56cb75f4948dc7cf6d4633ccec84ec
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector import keras.backend as k from keras.callbacks import TensorBoard from keras.engine.training_utils import is_sequence, iter_sequence_infinite, should_run_validation #######################################...
56.724426
148
0.588642
0333d797d85dd137831c94802601f518f3a1449c
26,954
py
Python
src/olympia/devhub/tasks.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2021-11-27T15:47:47.000Z
2021-11-27T15:47:47.000Z
src/olympia/devhub/tasks.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/devhub/tasks.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2021-11-24T07:29:55.000Z
2021-11-24T07:29:55.000Z
# -*- coding: utf-8 -*- import datetime import hashlib import json import os import subprocess import tempfile from copy import deepcopy from decimal import Decimal from functools import wraps from zipfile import BadZipFile from django.conf import settings from django.core.cache import cache from django.core.files.st...
37.7507
79
0.644691
0333f2fdb7036b1ae5f03af06874b626e5b1ee5b
8,811
py
Python
retrain_proc/example/mlp_policy.py
DDTR/learning_task2
3a235edb6515d1c83dee996d90df7da11661fb61
[ "CNRI-Python" ]
null
null
null
retrain_proc/example/mlp_policy.py
DDTR/learning_task2
3a235edb6515d1c83dee996d90df7da11661fb61
[ "CNRI-Python" ]
null
null
null
retrain_proc/example/mlp_policy.py
DDTR/learning_task2
3a235edb6515d1c83dee996d90df7da11661fb61
[ "CNRI-Python" ]
null
null
null
from baselines.common.mpi_running_mean_std import RunningMeanStd import baselines.common.tf_util as U import tensorflow as tf import gym from baselines.common.distributions import make_pdtype import numpy as np import pdb # almost same parametrization of NN policies as in functioning_implementations/own_algorithm_RELU...
46.13089
163
0.645103
0334008d9eaa6631361ed5245d98331bc84dfa40
43,786
py
Python
release/scripts/startup/bl_ui/space_image.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
2
2018-06-18T01:50:25.000Z
2018-06-18T01:50:32.000Z
release/scripts/startup/bl_ui/space_image.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
release/scripts/startup/bl_ui/space_image.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
31.208838
120
0.642397
033407bfc58d04bcc3d9bf826c983c7a0fae1fce
762
py
Python
mozillians/phonebook/helpers.py
Sheeri/mozillians
b8c48d205fcd203214a4949b2ad6cb790545d8a6
[ "BSD-3-Clause" ]
null
null
null
mozillians/phonebook/helpers.py
Sheeri/mozillians
b8c48d205fcd203214a4949b2ad6cb790545d8a6
[ "BSD-3-Clause" ]
null
null
null
mozillians/phonebook/helpers.py
Sheeri/mozillians
b8c48d205fcd203214a4949b2ad6cb790545d8a6
[ "BSD-3-Clause" ]
null
null
null
import re from datetime import date import jinja2 from jingo import register PARAGRAPH_RE = re.compile(r'(?:\r\n|\r|\n){2,}') @register.filter def paragraphize(value): return jinja2.Markup( u'\n\n'.join(u'<p>%s</p>' % p.replace('\n', '<br>\n') for p in PARAGRAPH_RE.split(ji...
23.8125
77
0.685039
03341035189dbcd462674eb37dcd6c57b7ac3b91
1,835
py
Python
clif/extension.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif/extension.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif/extension.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
# 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, ...
25.486111
80
0.690463
0334197172de2f50b2db6d5de0b5ac9d83d0888f
13,984
py
Python
model/copy_cond_summ.py
kenchan0226/AbsThenExtPublic
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
5
2021-08-10T02:31:51.000Z
2022-02-08T01:12:25.000Z
model/copy_cond_summ.py
kenchan0226/abs-then-ext-public
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
null
null
null
model/copy_cond_summ.py
kenchan0226/abs-then-ext-public
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import init from torch.nn import functional as F from .attention import step_attention from .util import sequence_mean, len_mask from .copy_summ import CopySumm, CopyLSTMDecoder from . import beam_search as bs from .rnn import lstm_encoder class CopyCondSumm(CopySumm):...
47.726962
133
0.581164
03341f7ea174698292fa196670339bdaf8d6777a
6,156
py
Python
contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_build.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_build.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_build.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import shutil from textwrap import dedent from pants.base.exceptions import TaskError from pants.testutil.task_test_base import TaskTestBase from pants.util.dirutil import safe_...
38.475
97
0.731644
03342ed90db66f8030913312219bd07cd2f2eae9
9,050
py
Python
disparity/helpers.py
ahmadghizzawi/quantify-unfairness-emd
b4dfccfdf839387a048fa9a49227438a82ab47d0
[ "MIT" ]
1
2020-02-01T22:32:27.000Z
2020-02-01T22:32:27.000Z
disparity/helpers.py
ahmadghizzawi/quantifying-unfairness-emd
b4dfccfdf839387a048fa9a49227438a82ab47d0
[ "MIT" ]
null
null
null
disparity/helpers.py
ahmadghizzawi/quantifying-unfairness-emd
b4dfccfdf839387a048fa9a49227438a82ab47d0
[ "MIT" ]
1
2021-12-07T12:19:32.000Z
2021-12-07T12:19:32.000Z
import csv import math import time import json import numpy as np from beautifultable import BeautifulTable from pymongo import MongoClient class Helper: def __init__(self, db_name="WorkerSet100K", collection_name="workers", configuration="transparent", ...
35.912698
135
0.524088
033472ce99baa914dcdce584eccb59a649db2f6c
1,527
py
Python
src/utils/tools.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
1
2021-09-21T23:23:59.000Z
2021-09-21T23:23:59.000Z
src/utils/tools.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
8
2021-07-05T21:41:53.000Z
2022-02-15T19:46:13.000Z
src/utils/tools.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
4
2021-06-11T22:47:04.000Z
2021-07-29T19:57:13.000Z
import acl import sys import os from importlib import import_module sys.path.append("..") sys.path.append("../lib") from utils.params import params from atlas_utils.presenteragent import presenter_channel from atlas_utils.acl_image import AclImage def load_model_processor(model_name): """Loads ModelProcessor...
32.489362
103
0.662083
0334d1486d6ae391b7b34b3e0fe51edf97dd98e6
35,474
py
Python
razor/pytorch-RLmodel/proto/Previrt_pb2.py
lahiri-phdworks/OCCAM
21919b0819606b8f76a391965151fba6df86cee7
[ "BSD-3-Clause" ]
null
null
null
razor/pytorch-RLmodel/proto/Previrt_pb2.py
lahiri-phdworks/OCCAM
21919b0819606b8f76a391965151fba6df86cee7
[ "BSD-3-Clause" ]
null
null
null
razor/pytorch-RLmodel/proto/Previrt_pb2.py
lahiri-phdworks/OCCAM
21919b0819606b8f76a391965151fba6df86cee7
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Previrt.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _m...
35.652261
3,390
0.733495
0334e9c65f1052ad827d57ccc03a6374069d9dbc
18,102
py
Python
maad/sound/spectro_func.py
scikit-maad/scikit-maad
2052c6f5ffc2a973fa1676364cc1663d7da1715a
[ "BSD-3-Clause" ]
31
2019-06-27T11:30:09.000Z
2022-03-14T22:07:34.000Z
maad/sound/spectro_func.py
scikit-maad/scikit-maad
2052c6f5ffc2a973fa1676364cc1663d7da1715a
[ "BSD-3-Clause" ]
9
2019-03-29T20:45:09.000Z
2022-03-18T12:25:53.000Z
maad/sound/spectro_func.py
scikit-maad/scikit-maad
2052c6f5ffc2a973fa1676364cc1663d7da1715a
[ "BSD-3-Clause" ]
7
2019-07-29T13:26:40.000Z
2022-03-24T00:44:47.000Z
#!/usr/bin/env python """ Collection of functions transform an audio signal into spectrogram and manipulate spectrograms. """ # # Authors: Juan Sebastian ULLOA <lisofomia@gmail.com> # Sylvain HAUPERT <sylvain.haupert@mnhn.fr> # # License: New BSD License # ======================================...
38.109474
105
0.562645
0334f1ee1d9f0d30d4bf61e55950f1dae5e68c41
542
py
Python
py/agape-string/runtests.py
MaverikMinett/agape
44f26c5922be7ff052acca829b948ae2daa71df4
[ "MIT" ]
null
null
null
py/agape-string/runtests.py
MaverikMinett/agape
44f26c5922be7ff052acca829b948ae2daa71df4
[ "MIT" ]
1
2021-02-05T11:53:47.000Z
2021-02-05T11:53:47.000Z
py/agape-string/runtests.py
MaverikMinett/Agape
fa1d31d92ee0930d01af220a81bcf838e813d8c0
[ "MIT" ]
null
null
null
import os import sys import django test_dir = os.path.dirname(__file__) sys.path.insert(0, test_dir) from django.conf import settings from django.test.utils import get_runner def runtests(): os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' django.setup() TestRunner = get_runner(settings) test_runne...
18.689655
57
0.708487
0334f7c0bd5c9fbd355e5aec9d8ec4460c79cedb
743
py
Python
configs/selfsup/simsiam_kd_test/simsiamkd_ignorelower_resnet18_4xb64-coslr-200e_in30p.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simsiam_kd_test/simsiamkd_ignorelower_resnet18_4xb64-coslr-200e_in30p.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simsiam_kd_test/simsiamkd_ignorelower_resnet18_4xb64-coslr-200e_in30p.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
_base_ = [ '../_test_/models/resnet18_simsiam_kd_ignorelower.py', '../_test_/datasets/imagenet30p_mocov2_b64_cluster.py', '../_test_/schedules/sgd_coslr-200e_in30p_kd.py', '../_test_/default_runtime.py', ] # set base learning rate lr = 0.05 # additional hooks custom_hooks = [ dict(type='SimSiamHoo...
30.958333
75
0.738896
03350999185e6b88da6dda263317ae139d7aff25
9,807
py
Python
psephology/tests/model_tests.py
rjw57/psephology
37aa078b5c9412222e53dc177f81a321424fd533
[ "MIT" ]
null
null
null
psephology/tests/model_tests.py
rjw57/psephology
37aa078b5c9412222e53dc177f81a321424fd533
[ "MIT" ]
null
null
null
psephology/tests/model_tests.py
rjw57/psephology
37aa078b5c9412222e53dc177f81a321424fd533
[ "MIT" ]
1
2021-04-26T08:07:47.000Z
2021-04-26T08:07:47.000Z
import datetime from flask import current_app from sqlalchemy import event, desc from sqlalchemy.exc import IntegrityError from psephology.model import ( db, migrate, Party, Constituency, Voting, LogEntry, add_constituency_result_line, import_results, log ) from .fixtures import RESULT_LINES, add_parties fro...
36.055147
87
0.627613
0335201a4dda7c58be55ec92314276b86ab8b0f3
4,122
py
Python
contrib/opencensus-ext-pyramid/opencensus/ext/pyramid/pyramid_middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-pyramid/opencensus/ext/pyramid/pyramid_middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-pyramid/opencensus/ext/pyramid/pyramid_middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus 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 w...
34.932203
94
0.687288
03352cf016e4d39f38f8988b81cb5d80b965b12f
5,005
py
Python
server/routes.py
chrispoupart/PlanarAlly
4015621468072fee90a796e7baa0212d9a62c7e5
[ "MIT" ]
null
null
null
server/routes.py
chrispoupart/PlanarAlly
4015621468072fee90a796e7baa0212d9a62c7e5
[ "MIT" ]
null
null
null
server/routes.py
chrispoupart/PlanarAlly
4015621468072fee90a796e7baa0212d9a62c7e5
[ "MIT" ]
null
null
null
from functools import partial import os import sys import aiohttp import aiohttp_jinja2 from aiohttp import web from aiohttp_security import check_authorized import api.http from app import admin_app, api_app, app as main_app from config import config from models import Room, User from models.role import Role from ut...
38.5
128
0.697902
03354ca334acba3706cbdedcc5ed2730f5cf00ad
140
py
Python
gym-everglades/gym_everglades/__init__.py
JarvisEQ/Team7
88056bec8748d68fd46f03ca3a164dbce301ad8e
[ "MIT" ]
3
2020-01-07T23:03:21.000Z
2021-01-08T20:11:21.000Z
gym-everglades/gym_everglades/__init__.py
B3nko/everglades4all
122a1aec3282eb40f7c229cbfab4a8ec93200f62
[ "MIT" ]
null
null
null
gym-everglades/gym_everglades/__init__.py
B3nko/everglades4all
122a1aec3282eb40f7c229cbfab4a8ec93200f62
[ "MIT" ]
null
null
null
from gym.envs.registration import register register( id='everglades-v0', entry_point='gym_everglades.envs:EvergladesEnv' )
20
55
0.721429
03355c2e51e0c849553d6b83aeead33b281b5925
1,396
py
Python
scripts/plot_success_fail_curve.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
21
2019-06-07T17:05:30.000Z
2022-02-07T03:25:15.000Z
scripts/plot_success_fail_curve.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2021-03-01T15:06:09.000Z
2021-03-01T15:06:09.000Z
scripts/plot_success_fail_curve.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
8
2019-06-11T03:06:29.000Z
2022-01-18T04:18:27.000Z
#!/usr/bin/env python3 """ Plots a success-fail curve ( https://openreview.net/forum?id=H1g0piA9tQ ) Usage: plot_success_fail_curve.py model.joblib plot_success_fail_curve.py model1.joblib model2.joblib This script is mostly intended to rapidly visualize success-fail curves during model development and testing. To mak...
32.465116
115
0.782235
033566751124fe99b694827e389587bd31cd0160
3,471
py
Python
experiments/ashvin/icml2020/hand/pen/gaussian/bc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/gaussian/bc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/gaussian/bc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import GaussianP...
29.922414
130
0.571017
033571d6a725ca8497a7d2a141fb38a3e98b037e
5,167
py
Python
tests/test_igrins.py
OttoStruve/muler
61d3e1676b1dbbe5616c303e6a64bc24d7519f4f
[ "MIT" ]
7
2021-04-21T21:09:20.000Z
2021-11-24T23:30:06.000Z
tests/test_igrins.py
OttoStruve/muler
61d3e1676b1dbbe5616c303e6a64bc24d7519f4f
[ "MIT" ]
71
2020-12-16T16:53:55.000Z
2022-03-30T18:50:29.000Z
tests/test_igrins.py
OttoStruve/muler
61d3e1676b1dbbe5616c303e6a64bc24d7519f4f
[ "MIT" ]
6
2021-04-27T19:21:16.000Z
2021-10-06T18:00:04.000Z
# from astropy.nddata.ccddata import _uncertainty_unit_equivalent_to_parent import astropy import pytest import time from muler.igrins import IGRINSSpectrum, IGRINSSpectrumList from specutils import Spectrum1D # from astropy.nddata.nduncertainty import StdDevUncertainty import numpy as np import glob local_files = gl...
29.695402
84
0.710277
033580ea4cb38edebf21b613e23034fd4c9b7f41
663
py
Python
introfor/forloop2.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
1
2022-01-14T20:47:47.000Z
2022-01-14T20:47:47.000Z
introfor/forloop2.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
introfor/forloop2.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """RZFeeser | Alta3 Research nesting an if-statement inside of a for loop""" # create a list of strings vendors = ["cisco", "juniper", "big_ip", "f5", "arista", "alta3", "zach", "stuart"] # create a second list of strings approved_vendors = ["cisco", "juniper", "big_ip"] # loop across the lis...
41.4375
100
0.680241
0335b6654977dda76b6fa603fc8d6b3a3f1c26ab
1,710
py
Python
fml/representations/__init__.py
larsbratholm/ml_clustering
dec3386676f8b22054f18643b1ae7d3e44c65527
[ "MIT" ]
null
null
null
fml/representations/__init__.py
larsbratholm/ml_clustering
dec3386676f8b22054f18643b1ae7d3e44c65527
[ "MIT" ]
null
null
null
fml/representations/__init__.py
larsbratholm/ml_clustering
dec3386676f8b22054f18643b1ae7d3e44c65527
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2016 Anders Steen Christensen # # 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, mo...
40.714286
80
0.811111
0335be54a7a565f44adf72281a2bb00eceb997e7
758
py
Python
libs/devicehandler.py
spidermila/mikrotik_control
65bf4405be180cf5073cdb129aa345df4ddfac52
[ "MIT" ]
null
null
null
libs/devicehandler.py
spidermila/mikrotik_control
65bf4405be180cf5073cdb129aa345df4ddfac52
[ "MIT" ]
null
null
null
libs/devicehandler.py
spidermila/mikrotik_control
65bf4405be180cf5073cdb129aa345df4ddfac52
[ "MIT" ]
1
2022-03-20T02:57:03.000Z
2022-03-20T02:57:03.000Z
from typing import List from libs.configuration import Configuration from libs.device import Device class DeviceHandler: def __init__( self, config: Configuration, ) -> None: self.config = config self.devices: List[Device] = [] def instantiate_devices(self): if le...
25.266667
44
0.478892
0335d4aadf0ed35ea4b97b4cefe8aeca79da75f4
1,121
py
Python
app/template_folder/template_folder_schema.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/template_folder/template_folder_schema.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/template_folder/template_folder_schema.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from app.schema_validation.definitions import nullable_uuid, uuid post_create_template_folder_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST schema for getting template_folder", "type": "object", "properties": { "name": {"type": "string", "minLength": 1}, ...
32.028571
66
0.610169
0335d87ce6c898f136472a0575da2c9cfadd9356
25,917
py
Python
hops/experiment.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
null
null
null
hops/experiment.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
1
2021-02-25T11:46:54.000Z
2021-02-25T11:46:54.000Z
hops/experiment.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
null
null
null
""" Experiment module used for running Experiments, Parallel Experiments (hyperparameter optimization) and Distributed Training on Hopsworks. The programming model is that you wrap the code to run inside a training function. Inside that training function provide all imports and parts that make up your experiment, see ...
44.076531
307
0.701895
0335db82c2d470020a090a58262aed4a9de40fcc
4,699
py
Python
components/exp-test-agent/src/clients/form_expert_client.py
sfahad1414/AGENT
84069edc96b6190bb03ffd5099cbc8966061a563
[ "Apache-2.0" ]
15
2020-05-06T16:17:56.000Z
2022-03-30T12:25:16.000Z
components/exp-test-agent/src/clients/form_expert_client.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
2
2021-08-25T16:17:16.000Z
2022-02-10T06:35:58.000Z
components/exp-test-agent/src/clients/form_expert_client.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
7
2020-04-07T18:47:55.000Z
2022-03-30T12:14:58.000Z
import json import random import requests import os from aist_common.log import get_logger LOGGER = get_logger('form-expert-client') class FormExpertClient: def __init__(self): self.FORM_EXPERT_URL = 'http://form-expert' if 'FORM_EXPERT_URL' in os.environ: self.FORM_EXPERT_URL = os.e...
37.895161
175
0.566504
03361e66bd9c53957111f368cb39b88f65d7f721
14,534
py
Python
lib/netty/protobuf/python/google/protobuf/internal/generator_test.py
meghana0507/grpc-java-poll
b35805a7265e5d6d9468ab17bc33b92ed00ecd97
[ "BSD-3-Clause" ]
1
2017-08-16T15:00:29.000Z
2017-08-16T15:00:29.000Z
lib/netty/protobuf/python/google/protobuf/internal/generator_test.py
meghana0507/grpc-java-poll
b35805a7265e5d6d9468ab17bc33b92ed00ecd97
[ "BSD-3-Clause" ]
null
null
null
lib/netty/protobuf/python/google/protobuf/internal/generator_test.py
meghana0507/grpc-java-poll
b35805a7265e5d6d9468ab17bc33b92ed00ecd97
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python # # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
42.25
80
0.745837
033637013111791dba97a45c3b77604a055bdcb4
2,061
py
Python
artificial/base/tests/state_test.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
3
2016-03-20T02:51:01.000Z
2020-05-30T20:25:46.000Z
artificial/base/tests/state_test.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
null
null
null
artificial/base/tests/state_test.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
1
2019-10-21T05:43:46.000Z
2019-10-21T05:43:46.000Z
"""State Test""" # Author: Lucas David -- <ld492@drexel.edu> # License: MIT (c) 2016 import random from unittest import TestCase from artificial.base import State random_generator = random.Random(0) class _S(State): @classmethod def random(cls): return cls(random_generator.randint(0, 4)) @pro...
22.402174
57
0.522562
0336682840d8944d90ba19d368bd907ffb8a7044
6,491
py
Python
src/pySanbot/util/boyer_moore_search.py
BHFaction/Tribot
38d8caaa73775654125db3091b8de2aadb3dba99
[ "MIT" ]
3
2017-04-04T04:03:28.000Z
2021-05-29T08:08:48.000Z
src/pySanbot/util/boyer_moore_search.py
BHFaction/Tribot
38d8caaa73775654125db3091b8de2aadb3dba99
[ "MIT" ]
null
null
null
src/pySanbot/util/boyer_moore_search.py
BHFaction/Tribot
38d8caaa73775654125db3091b8de2aadb3dba99
[ "MIT" ]
2
2018-02-28T14:16:11.000Z
2019-05-07T18:02:16.000Z
__author__ = 'Yifei' def z_array(s): """ Z-algorithm used in BM-Search :param s: the string from which to extract :return: a list of the length of prefix-substring """ assert len(s) > 1 n = len(s) z = [0] * n z[0] = n l, r = 0, 0 for i in range(1, n): if i > r: ...
29.238739
84
0.538438
0336944bd6f043b44e4f8b0f2831acde847f81fb
3,605
py
Python
src/code2doc/configurer.py
rahulsrma26/code2doc
050d0bb93dcbe0e177da5069cfd63bcbced26312
[ "MIT" ]
1
2021-02-09T19:40:19.000Z
2021-02-09T19:40:19.000Z
src/code2doc/configurer.py
rahulsrma26/code2doc
050d0bb93dcbe0e177da5069cfd63bcbced26312
[ "MIT" ]
null
null
null
src/code2doc/configurer.py
rahulsrma26/code2doc
050d0bb93dcbe0e177da5069cfd63bcbced26312
[ "MIT" ]
null
null
null
''' ''' import os import sys import configparser from typing import List class ConfigOption: @staticmethod def get_short_n_full_form(option: str) -> str: full = '_'.join(option.strip().split()) short = ''.join([w[0] for w in full.split('_')]) return short, full de...
36.05
119
0.563384
0336a0d68583dd912ad84127181ef9b90b4df7ac
9,553
py
Python
aaaaaa/Screen.py
ROYALBEFF/aaaaaa_arcade_game
36eb8e9a9cdc54f13d54c28fd4ba990faa14f7c0
[ "MIT" ]
null
null
null
aaaaaa/Screen.py
ROYALBEFF/aaaaaa_arcade_game
36eb8e9a9cdc54f13d54c28fd4ba990faa14f7c0
[ "MIT" ]
3
2019-02-26T18:06:50.000Z
2019-05-10T08:33:35.000Z
aaaaaa/Screen.py
ROYALBEFF/aaaaaa_arcade_game
36eb8e9a9cdc54f13d54c28fd4ba990faa14f7c0
[ "MIT" ]
null
null
null
import pkg_resources import pygame class Screen: def __init__(self): """ Initialize game screen. """ self.__clock = pygame.time.Clock() self.__size = (1000, 800) self.__screen = pygame.display.set_mode(self.__size) self.__font = pygame.font.Font(None, 24) ...
36.323194
112
0.584424
0336d119457668d78ab65973c5005e44ff3ae4c9
4,453
py
Python
data/scene_making.py
rozzong/trajectron-plus-plus
68b03e469ae300f3960e24a4463c361ef311425d
[ "MIT" ]
null
null
null
data/scene_making.py
rozzong/trajectron-plus-plus
68b03e469ae300f3960e24a4463c361ef311425d
[ "MIT" ]
null
null
null
data/scene_making.py
rozzong/trajectron-plus-plus
68b03e469ae300f3960e24a4463c361ef311425d
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from itertools import islice, tee from pathlib import Path from typing import Any, Callable, Iterator, Mapping, Optional, TypeVar from trajectron_plus_plus.data import NodeTypeEnum, Scene RawScene = TypeVar("RawScene") class SliceableIterator: """Iterator with a slice featur...
23.436842
73
0.530653
0337323a77d043e30d0a43eacdecc5442c4da229
7,562
py
Python
cinder/api/contrib/volume_manage.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/api/contrib/volume_manage.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/api/contrib/volume_manage.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 IBM Corp. # # 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...
40.655914
79
0.623645
0337513af303f51169d44f14ca1781aecf293cc6
3,100
py
Python
demos/computeQ_spaceship4.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
demos/computeQ_spaceship4.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
demos/computeQ_spaceship4.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import models.spaceship4 as sys from models.spaceship4 import p_map import viability as vibly # algorithms for brute-force viability import pickle # * here we choose the parameters to use # * we also put in a place-holder action (thrust) p = {'n_states': 2, 'bas...
36.904762
79
0.651935
03375bd93017abafc1d141e8340bf30f612d184f
4,745
py
Python
server/wsgi.py
naturalshine/soother-chatbot
ae24a656d1cf76d10484706f7be5f04211df2d71
[ "MIT" ]
null
null
null
server/wsgi.py
naturalshine/soother-chatbot
ae24a656d1cf76d10484706f7be5f04211df2d71
[ "MIT" ]
null
null
null
server/wsgi.py
naturalshine/soother-chatbot
ae24a656d1cf76d10484706f7be5f04211df2d71
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import json import codecs import cherrypy import logging import requests from handlers import callback_handler from assistant.Brain import Brain from assistant.RecordingsDatabase import RecordingsDatabase class SkillsAPI(object): def __init__(self): self.br...
27.748538
99
0.605269
03376a11bd9e8a4fabf5ca5fdab64ea166beb080
1,827
py
Python
src/transpack/settings/production.py
bwebsterhv/transpack
559105c9b6e68db79e94e0c397d90f0e9af69c88
[ "MIT" ]
null
null
null
src/transpack/settings/production.py
bwebsterhv/transpack
559105c9b6e68db79e94e0c397d90f0e9af69c88
[ "MIT" ]
null
null
null
src/transpack/settings/production.py
bwebsterhv/transpack
559105c9b6e68db79e94e0c397d90f0e9af69c88
[ "MIT" ]
null
null
null
# In production set the environment variable like this: # DJANGO_SETTINGS_MODULE=transpack.settings.production from .base import * # NOQA import logging.config # For security and performance reasons, DEBUG is turned off DEBUG = False TEMPLATE_DEBUG = False # Must mention ALLOWED_HOSTS in production! AL...
27.681818
90
0.590586
033773c0ad3dba4e97526eb4cff2606927c93cac
27,194
py
Python
zlogging/dumper.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
null
null
null
zlogging/dumper.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
3
2021-03-01T17:03:05.000Z
2021-07-19T17:11:34.000Z
zlogging/dumper.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
1
2020-05-22T15:16:44.000Z
2020-05-22T15:16:44.000Z
# -*- coding: utf-8 -*- # pylint: disable=ungrouped-imports,unsubscriptable-object """Bro/Zeek log dumper.""" import abc import json import os import time from typing import TYPE_CHECKING from zlogging._aux import unicode_escape from zlogging._exc import ASCIIWriterError, JSONWriterError, WriterFormatError from zlogg...
37.71706
177
0.598809
0337ad2183f34081b8ab4555b824786eb56e81d3
1,128
py
Python
src/hugoutils/__init__.py
scivision/hugo-utils
cb5892c905b786ea83071b7d89a158e56a1fd9b2
[ "MIT" ]
1
2022-01-18T01:10:54.000Z
2022-01-18T01:10:54.000Z
src/hugoutils/__init__.py
scivision/hugo-utils
cb5892c905b786ea83071b7d89a158e56a1fd9b2
[ "MIT" ]
null
null
null
src/hugoutils/__init__.py
scivision/hugo-utils
cb5892c905b786ea83071b7d89a158e56a1fd9b2
[ "MIT" ]
null
null
null
from pathlib import Path import logging from .header import get_header, write_header def post2hugo(jfn: Path, outdir: Path, fixchar: bool) -> Path: """ Converts Jekyll posts to Hugo format. Hugo's Markdown parser is significantly stricter than Jekyll's, so you will likely have to do some manual fixes...
23.020408
79
0.647163
0337b72cff9076a699bc75f77cd9d99cced7c602
8,861
py
Python
cloudify_common_sdk/cli_tool_base.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
null
null
null
cloudify_common_sdk/cli_tool_base.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
null
null
null
cloudify_common_sdk/cli_tool_base.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
null
null
null
######## ######## # Copyright (c) 2018-2022 Cloudify Platform 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 # ...
34.478599
77
0.603092
0337b7f84d1723f28bc022a67e0625c9d2729e7f
2,692
py
Python
src/test_Controller.py
3starblaze/cellular-automata
0d16aab6a2e03b8575c47967fe7dc9cd41fe2d34
[ "MIT" ]
4
2020-04-23T17:29:45.000Z
2021-01-08T00:10:06.000Z
src/test_Controller.py
3starblaze/cellular-automata
0d16aab6a2e03b8575c47967fe7dc9cd41fe2d34
[ "MIT" ]
3
2020-05-30T07:53:35.000Z
2022-01-13T02:42:18.000Z
src/test_Controller.py
3starblaze/cellular-automata
0d16aab6a2e03b8575c47967fe7dc9cd41fe2d34
[ "MIT" ]
null
null
null
import copy import pytest import numpy as np from Controller import Controller def GAME_OF_LIFE_RULESET(cell, values): if cell: return sum(values) >= 2 and sum(values) <= 3 else: return sum(values) == 3 GAME_OF_LIFE_INDICES = [ (-1, 1), (0, 1), (1, 1), (-1, 0), (1, 0), ...
28.336842
85
0.730312
03380df841ded2c686f1ac919b35fcc24df2a1f5
549
py
Python
skynet/cmds/start.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
null
null
null
skynet/cmds/start.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
null
null
null
skynet/cmds/start.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
null
null
null
import click from skynet.util.service_groups import all_groups @click.command("start", short_help="Start service groups") @click.option("-r", "--restart", is_flag=True, type=bool, help="Restart running services") @click.argument("group", type=click.Choice(all_groups()), nargs=-1, required=True) @click.pass_context d...
36.6
98
0.754098
03382405263b7c5a35196f10f6d22c0aa971da3c
14,854
py
Python
qiskit/_quantumcircuit.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
qiskit/_quantumcircuit.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
qiskit/_quantumcircuit.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=cyclic-import """ Quantum circuit object. """ import itertools import warnings from collections import Ord...
36.317848
97
0.591087
03388359dcab4166a5772e11f5136ed6d2c292bb
35,153
py
Python
chex/_src/asserts.py
LaudateCorpus1/chex
5f3102fe1baeb22d1e697e1815d0b92c9f299913
[ "Apache-2.0" ]
null
null
null
chex/_src/asserts.py
LaudateCorpus1/chex
5f3102fe1baeb22d1e697e1815d0b92c9f299913
[ "Apache-2.0" ]
null
null
null
chex/_src/asserts.py
LaudateCorpus1/chex
5f3102fe1baeb22d1e697e1815d0b92c9f299913
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. 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 ...
34.096023
80
0.680084
03389589b6713b0d438d812aa5b79b76e3880d0f
73
py
Python
mocu/graphical_model/mocu/utils/__init__.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/graphical_model/mocu/utils/__init__.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/graphical_model/mocu/utils/__init__.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
from . import utils from . import costfunctions from . import toysystems
18.25
27
0.794521
0338df898d35b761c023489d2502670da01d97f6
3,320
py
Python
nginx_push_stream/tests.py
mpasternak/django-nginx-http-push-stream
9689071ca53fe958c9652dafe87316ed097a1ec8
[ "MIT" ]
4
2019-01-19T15:56:52.000Z
2020-01-16T08:13:50.000Z
nginx_push_stream/tests.py
mpasternak/django-nginx-http-push-stream
9689071ca53fe958c9652dafe87316ed097a1ec8
[ "MIT" ]
3
2019-03-01T18:13:12.000Z
2021-06-10T21:08:35.000Z
nginx_push_stream/tests.py
mpasternak/django-nginx-http-push-stream
9689071ca53fe958c9652dafe87316ed097a1ec8
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase, RequestFactory, Client from django.urls import reverse class TestAuthViewAnon(TestCase): def setUp(self): self.client = Client() def test_anon_allowed_to_all(self): """Anon wants to access 'all' queue""" he...
40.987654
102
0.66747
0338f2162214efdb7124c496845c81c16dc8aaaa
113
py
Python
xbot/templates/discord/reply.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
xbot/templates/discord/reply.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
xbot/templates/discord/reply.py
SolbiatiAlessandro/xbot
699428a050c508f545c98e048f24a2a6edb5ea4c
[ "MIT" ]
null
null
null
@xbot.xfunction @bot.command(name='{{function_name}}') async def {{function_name}}(ctx): {{ function_body }}
22.6
38
0.681416
03391b8bf1ca18c4ec8963e5bbeaba6f0bad5285
1,677
py
Python
2021/tests/test_day3.py
roronoasins/adventofcode
b2a5d07d19b1ddf3dafcc307b964f8066f12bd59
[ "MIT" ]
null
null
null
2021/tests/test_day3.py
roronoasins/adventofcode
b2a5d07d19b1ddf3dafcc307b964f8066f12bd59
[ "MIT" ]
null
null
null
2021/tests/test_day3.py
roronoasins/adventofcode
b2a5d07d19b1ddf3dafcc307b964f8066f12bd59
[ "MIT" ]
null
null
null
import subprocess import os import re day3_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'src/day3.py') data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data') solutions_path = os.path.join(data_path, 'solutions.yaml') # create method that loads the required s...
41.925
118
0.673822
03391fe0f5c314beb4b5bb20616b871a9833f6c9
1,135
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "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 ...
29.868421
94
0.627313
03394248b93c42f124485805e52350706e108514
2,154
py
Python
tests/data_analysis/test_similarity_analyzer.py
GunnarHorve-ibm/assistant-dialog-skill-analysis
f48a5ea8dad7779f1a3ba0d785af4dc27fbfef95
[ "Apache-2.0" ]
1
2019-09-18T22:55:02.000Z
2019-09-18T22:55:02.000Z
tests/data_analysis/test_similarity_analyzer.py
GunnarHorve-ibm/assistant-dialog-skill-analysis
f48a5ea8dad7779f1a3ba0d785af4dc27fbfef95
[ "Apache-2.0" ]
null
null
null
tests/data_analysis/test_similarity_analyzer.py
GunnarHorve-ibm/assistant-dialog-skill-analysis
f48a5ea8dad7779f1a3ba0d785af4dc27fbfef95
[ "Apache-2.0" ]
null
null
null
import unittest import json import pandas as pd import numpy as np from assistant_dialog_skill_analysis.data_analysis import similarity_analyzer from assistant_dialog_skill_analysis.utils import skills_util TOLERANCE = .0000001 class TestSimilarityAnalzyer(unittest.TestCase): """Test for Similarity Analyzer modu...
40.641509
99
0.601207
03397097591c3b22416c7771d2f3395ca07b69a8
2,467
py
Python
goatools/test_data/nature3102_goea.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
1
2020-03-12T13:53:11.000Z
2020-03-12T13:53:11.000Z
goatools/test_data/nature3102_goea.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
null
null
null
goatools/test_data/nature3102_goea.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
1
2020-03-12T14:38:05.000Z
2020-03-12T14:38:05.000Z
"""Run GOATOOLS Gene Ontology Analysis on Nature 3102 data. Return results.""" __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang. All rights reserved." __author__ = "DV Klopfenstein" import os import xlrd from goatools.test_data.genes_NCBI_10090_ProteinCoding import GENEID2NT as GeneID2nt_mus from goa...
40.442623
93
0.707742
0339a8c82a03218d1ba0118bdcbae1b24ba8da5f
9,246
py
Python
scripts/09-hlm2.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
scripts/09-hlm2.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
scripts/09-hlm2.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
""" Having a 3 x (3) Mixed Design: 3 conditions as BETWEEN factor, 3 blocks as WITHIN factor. There are multiple measurements in each block (trials). There are 2 dependent variables: parallel & orthogonal Since 'parallel' and 'orthogonal' measures have the same unit, it can be viewed as 1 outcome called 'projection' i...
39.682403
120
0.692083
0339ec125ba543332113eb5830a2b7fad5c516ba
2,720
py
Python
oscar/lib/python2.7/site-packages/django_extensions/compat.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_extensions/compat.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_extensions/compat.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from io import BytesIO import csv import six import codecs import importlib import django from django.conf import settings # # Django compatibility # def load_tag_library(libname): """Load a templatetag library on multiple Django...
30.561798
77
0.638971
033a109823c62542a2e460021a65d39600431c1b
1,967
py
Python
models.py
prem2017/face-varification
051d6143dc4d33faeb13e19258d61cff977f58a5
[ "MIT" ]
2
2019-12-02T02:07:38.000Z
2020-04-11T08:15:02.000Z
models.py
prem2017/face-varification
051d6143dc4d33faeb13e19258d61cff977f58a5
[ "MIT" ]
null
null
null
models.py
prem2017/face-varification
051d6143dc4d33faeb13e19258d61cff977f58a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pdb import os import torch import torch.nn as nn class FaceNet(nn.Module): """docstring for FaceNet""" def __init__(self, in_features=512, out_features=1, nonlinearity_function=None, dropout=0.0, use_batchnorm=False): super(FaceNet, self).__init__() self.nonlinearity_function...
29.80303
115
0.73513
033a38a0b0810fde695932ba178544277fffe555
4,617
py
Python
plugins/global/launcher/frame_range_setter.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/global/launcher/frame_range_setter.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/global/launcher/frame_range_setter.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import sys from avalon import api, lib, io class FrameRangeSetterAction(api.Action): """Only project admin can access """ name = "framerangesetter" label = "Frame Range" icon = "scissors" color = "#FA9576" order = 999 # at the end def is_compatible(self, session): ...
32.0625
78
0.577215
033a3b546a3edb009f46a9e1ce12803326d7231d
2,242
py
Python
tests/test_context_free_policy.py
dhfromkorea/contextual-bandit-recommender
60dd39cbd97c2a7dd1a84618f3ab603e763662e1
[ "MIT" ]
6
2019-11-02T17:17:56.000Z
2022-03-18T16:09:13.000Z
tests/test_context_free_policy.py
dhfromkorea/contextual-bandit-recommender
60dd39cbd97c2a7dd1a84618f3ab603e763662e1
[ "MIT" ]
3
2021-03-19T02:28:58.000Z
2022-01-13T01:27:46.000Z
tests/test_context_free_policy.py
dhfromkorea/contextual-bandit-recommender
60dd39cbd97c2a7dd1a84618f3ab603e763662e1
[ "MIT" ]
1
2020-10-16T09:46:02.000Z
2020-10-16T09:46:02.000Z
import pytest import numpy as np from context import EpsilonGreedyPolicy, UCBPolicy from context import simulate_cb from context import sample_synthetic, sample_mushroom def get_mushroom_data(): context_dim = 5 n_samples = 5000 n_actions = 2 # mock mushroom data X = np.random.rand(n_samples, c...
27.012048
75
0.636485
033a4a846f1776f0127a4d4e69587fbd79eafa15
3,763
py
Python
dffml/source/file.py
Lactem/dffml
211f0b62e8c032b0a3bd0df8d105c2df1c0eb552
[ "MIT" ]
null
null
null
dffml/source/file.py
Lactem/dffml
211f0b62e8c032b0a3bd0df8d105c2df1c0eb552
[ "MIT" ]
null
null
null
dffml/source/file.py
Lactem/dffml
211f0b62e8c032b0a3bd0df8d105c2df1c0eb552
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2019 Intel Corporation import os import io import abc import bz2 import gzip import lzma import asyncio import zipfile from contextlib import contextmanager from dataclasses import dataclass, field, fields from typing import NamedTuple, Tuple, Dict, List from ..base impor...
33.008772
79
0.589158
033a4bed85c97def66bc20eccd56ae25d6dee11d
39,686
py
Python
impacket/testcases/SMB_RPC/test_nrpc.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/SMB_RPC/test_nrpc.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/SMB_RPC/test_nrpc.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
############################################################################### # Tested so far: # # DsrGetDcNameEx2 # DsrGetDcNameEx # DsrGetDcName # NetrGetDCName # NetrGetAnyDCName # DsrGetSiteName # DsrGetDcSiteCoverageW # DsrAddressToSiteNamesW # DsrAddressToSiteNamesExW # DsrDeregisterDnsHostRecords # NetrServer...
38.869736
195
0.625813
033a711bf1c201419869811b2c9ab6b45f68a71e
1,105
py
Python
src/zeit/content/cp/source.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
null
null
null
src/zeit/content/cp/source.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
11
2015-04-16T14:15:08.000Z
2019-02-01T13:23:17.000Z
src/zeit/content/cp/source.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
1
2015-12-03T14:58:26.000Z
2015-12-03T14:58:26.000Z
import zeit.cms.content.contentsource import zeit.cms.content.sources import zope.dottedname.resolve class CPTypeSource(zeit.cms.content.sources.XMLSource): product_configuration = 'zeit.content.cp' config_url = 'cp-types-url' attribute = 'name' class CPExtraSource(zeit.cms.content.sources.XMLSource): ...
27.625
72
0.710407
033a8322ef89d683cf237d595a492804ced16808
4,026
py
Python
tests/st/ops/ascend/vector/test_distinguish_between_pn_samples_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_distinguish_between_pn_samples_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_distinguish_between_pn_samples_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 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...
41.505155
124
0.662692
033ab2fa62d4f894a1c980fddd29cc0f57cb9999
2,832
py
Python
tests/integration/optimizers/test_optimizer_pod_choice.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
15,179
2020-04-28T10:23:56.000Z
2022-03-31T14:35:25.000Z
tests/integration/optimizers/test_optimizer_pod_choice.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
3,912
2020-04-28T13:01:29.000Z
2022-03-31T14:36:46.000Z
tests/integration/optimizers/test_optimizer_pod_choice.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1,955
2020-04-28T10:50:49.000Z
2022-03-31T12:28:34.000Z
import os import pytest from jina import Document from jina.optimizers import FlowOptimizer, EvaluationCallback from jina.optimizers.flow_runner import SingleFlowRunner cur_dir = os.path.dirname(os.path.abspath(__file__)) @pytest.fixture def config(tmpdir): os.environ['JINA_OPTIMIZER_WORKSPACE_DIR'] = str(tmpd...
34.962963
88
0.724223
033ab67a900699a2005fb2f35c5c73f39bb69816
1,533
py
Python
cisco_aci/tests/conftest.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
cisco_aci/tests/conftest.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
cisco_aci/tests/conftest.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2019-03-06T14:30:52.000Z
2019-03-06T14:30:52.000Z
# C Datadog, Inc. 2018 # All rights reserved # Licensed under Simplified BSD License see LICENSE import os import pytest from requests import Response CHECK_NAME = 'cisco_aci' FIXTURES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'fixtures') CAPACITY_FIXTURES_DIR = os.path.join(FIXTURES_DIR, 'capac...
25.983051
97
0.679061
033af6293b7fb0fb2666bed4f1f5677fb82d50f4
1,222
py
Python
src/ros/modified_arm/arm_modified/src/desired_pos.py
sigproc/robotic_surgery
736ef5b210a781fd5532fd738e321c2a1bee50e5
[ "MIT" ]
4
2016-04-16T01:02:13.000Z
2022-02-01T06:02:20.000Z
src/ros/modified_arm/arm_modified/src/desired_pos.py
yangyipeng/robotic_surgery
736ef5b210a781fd5532fd738e321c2a1bee50e5
[ "MIT" ]
7
2015-01-05T11:45:32.000Z
2015-03-05T14:45:23.000Z
src/ros/modified_arm/arm_modified/src/desired_pos.py
yangyipeng/robotic_surgery
736ef5b210a781fd5532fd738e321c2a1bee50e5
[ "MIT" ]
10
2015-01-22T07:41:24.000Z
2022-01-21T10:03:08.000Z
#!/usr/bin/env python import roslib roslib.load_manifest('smart_arm_controller') import rospy from std_msgs.msg import Float64 from std_msgs.msg import Float64MultiArray from numpy import matrix import numpy as np import sys import sensor_msgs.msg from copy import copy, deepcopy #The alternating box positions for ...
21.438596
74
0.617021
033afd9ba9afbcf2bafa9ce065462a978f23e15d
696
py
Python
app/core/migrations/0007_tag.py
naokiyama/django-app-api
c8cb363834cd11720e97b7e7c0dc607069afc909
[ "MIT" ]
null
null
null
app/core/migrations/0007_tag.py
naokiyama/django-app-api
c8cb363834cd11720e97b7e7c0dc607069afc909
[ "MIT" ]
null
null
null
app/core/migrations/0007_tag.py
naokiyama/django-app-api
c8cb363834cd11720e97b7e7c0dc607069afc909
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-01 06:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0006_alter_user_is_active'), ] operations = [ migrations.CreateMod...
29
117
0.623563
033b12869713e42e3d11f923244ef5e8b1da354b
25
py
Python
src/_version.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
4
2022-02-08T12:37:49.000Z
2022-03-29T04:45:10.000Z
src/_version.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
26
2022-02-08T12:48:52.000Z
2022-03-28T08:58:47.000Z
src/_version.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
1
2022-03-16T12:57:24.000Z
2022-03-16T12:57:24.000Z
__version__ = '0.0.6dev'
12.5
24
0.68
033b1751db291220f7398d9687d31e81be74ecd0
5,491
py
Python
datasets.py
florianazefi/anomaly_detection
1cf93826af6b59310c2212b4410064f4a7913c12
[ "MIT" ]
4
2019-06-25T22:58:57.000Z
2021-08-24T15:18:04.000Z
datasets.py
florianazefi/anomaly_detection
1cf93826af6b59310c2212b4410064f4a7913c12
[ "MIT" ]
null
null
null
datasets.py
florianazefi/anomaly_detection
1cf93826af6b59310c2212b4410064f4a7913c12
[ "MIT" ]
null
null
null
# MIT License; see ./LICENSE # AUTHOR : Floriana ZEFI # CONTACT : florianagjzefi@gmail.com or floriana.zefi@ing.com import numpy as np import pandas as pd import torch import torch.nn as nn def _split_n_in_m_parts(n, m): """ Split integer n in m integers which sum up to n again, even if m * (n//m) != n. """...
34.534591
117
0.643234
033b1c3fc585af1f46929bda4b93c770ebecb45a
1,673
py
Python
sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_helpers_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_helpers_asyc.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_helpers_asyc.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typ...
34.854167
76
0.64734
033b45ea774c2e2ffa405bd62b4de7767dd61b24
78
py
Python
rocket/controllers/__init__.py
Contraz/pyrocket
bc1129ba30b32a3324f8416a698f9d93555f9e35
[ "Zlib" ]
19
2017-04-14T09:52:16.000Z
2022-03-20T00:43:57.000Z
rocket/controllers/__init__.py
Contraz/pyrocket
bc1129ba30b32a3324f8416a698f9d93555f9e35
[ "Zlib" ]
2
2018-07-03T21:31:01.000Z
2018-08-14T19:43:56.000Z
rocket/controllers/__init__.py
Contraz/pyrocket
bc1129ba30b32a3324f8416a698f9d93555f9e35
[ "Zlib" ]
5
2017-07-29T20:59:34.000Z
2021-08-21T20:57:18.000Z
from .base import Controller # noqa from .time import TimeController # noqa
26
40
0.769231
033b5d1253e5bc8ce22d56e061c0dbe365e962a0
24
py
Python
guestbook/models/__init__.py
dagothar/django-guestbook
ed3e9608f3b973187bd7987557b3b04375cb1549
[ "MIT" ]
null
null
null
guestbook/models/__init__.py
dagothar/django-guestbook
ed3e9608f3b973187bd7987557b3b04375cb1549
[ "MIT" ]
null
null
null
guestbook/models/__init__.py
dagothar/django-guestbook
ed3e9608f3b973187bd7987557b3b04375cb1549
[ "MIT" ]
null
null
null
from entry import Entry
12
23
0.833333
033b7aada1c6be0162f0ba86b34109b70ff3a9e9
8,425
py
Python
perses/tests/test_coordinate_numba.py
ajsilveira/perses
adff6cecb8c710dabac1dcddf0d05306409b2362
[ "MIT" ]
null
null
null
perses/tests/test_coordinate_numba.py
ajsilveira/perses
adff6cecb8c710dabac1dcddf0d05306409b2362
[ "MIT" ]
null
null
null
perses/tests/test_coordinate_numba.py
ajsilveira/perses
adff6cecb8c710dabac1dcddf0d05306409b2362
[ "MIT" ]
null
null
null
import simtk.openmm as openmm import openmoltools import simtk.openmm.app as app import simtk.unit as unit import logging import numpy as np import parmed import copy import os from unittest import skipIf from pkg_resources import resource_filename from openmmtools.constants import kB from perses.rjmc import coordinate...
55.794702
173
0.704451
033b988aecb4be0c166b8fbdf955ebf10d6b3695
9,446
py
Python
examples/assistant_v1.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
1
2019-03-31T23:25:46.000Z
2019-03-31T23:25:46.000Z
examples/assistant_v1.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
null
null
null
examples/assistant_v1.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import json from watson_developer_cloud import AssistantV1 assistant = AssistantV1( username='YOUR SERVICE USERNAME', password='YOUR SERVICE PASSWORD', version='2017-04-21') ######################### # Workspaces ######################### create_workspace_data = { ...
28.366366
89
0.658692
033bc727fc8dd142ff4c2da899ef4681177b4431
299
py
Python
06_EPO/e-TeenAstronomyCafe/11_GravLensing_by_Galaxies/test.py
noaodatalab/notebooks_default
3001f40c0de05445e65e205fdb3806f85e91dbfe
[ "BSD-3-Clause" ]
15
2019-02-27T18:44:34.000Z
2022-01-26T17:50:37.000Z
06_EPO/e-TeenAstronomyCafe/11_GravLensing_by_Galaxies/test.py
noaodatalab/notebooks_default
3001f40c0de05445e65e205fdb3806f85e91dbfe
[ "BSD-3-Clause" ]
51
2019-02-11T19:14:45.000Z
2022-02-07T22:28:23.000Z
06_EPO/e-TeenAstronomyCafe/11_GravLensing_by_Galaxies/test.py
noaodatalab/notebooks_default
3001f40c0de05445e65e205fdb3806f85e91dbfe
[ "BSD-3-Clause" ]
22
2019-02-07T20:31:50.000Z
2022-02-04T23:13:42.000Z
# Import necessary modules. import numpy as np #%matplotlib inline import matplotlib.pyplot as plt from matplotlib import cm from ipywidgets import * from IPython.core.display import Image, display from drawingpanel import * panel = DrawingPanel(400, 300) panel.set_background("green") panel.show()
24.916667
47
0.802676
033c03607227643008d7d95826e178635dbe23d1
1,442
py
Python
plugins/usd/maya/publish/validate_rig_model_subset.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/usd/maya/publish/validate_rig_model_subset.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/usd/maya/publish/validate_rig_model_subset.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api class ValidateRigModelSubset(pyblish.api.InstancePlugin): """Get model subset from Geometry group. """ label = "Validate Model Subset Data" order = pyblish.api.ValidatorOrder + 0.13 hosts = ["maya"] families = [ # "reveries.rig", "reveries.rig.skeleton" ...
30.041667
72
0.62552
033c687917f1fb899e9e920e252400aecbb536c4
183
py
Python
services/selection/allitems.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
services/selection/allitems.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
services/selection/allitems.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from services.selection.base import Selection class AllItems(Selection): def resolve(self): self.resolution = [item for item in self.executor.inventory.get_all_items()]
26.142857
84
0.748634
033ca85adcc7d7deef40d411459cc1e885271955
2,388
py
Python
.leetcode/328.odd-even-linked-list.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/328.odd-even-linked-list.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/328.odd-even-linked-list.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=328 lang=python3 # # [328] Odd Even Linked List # # https://leetcode.com/problems/odd-even-linked-list/description/ # # algorithms # Medium (57.80%) # Likes: 3538 # Dislikes: 347 # Total Accepted: 404.1K # Total Submissions: 698.9K # Testcase Example: '[1,2,3,4,5]' # # Given the head of a s...
19.57377
78
0.574539
033caac6d082855a68faf11d72fcafd4451c8800
21,586
py
Python
qcodes/instrument_drivers/Keysight/N52xx.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/Keysight/N52xx.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/instrument_drivers/Keysight/N52xx.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
from typing import Sequence, Union, Any import time import re import logging import numpy as np from pyvisa import VisaIOError, errors from qcodes import (VisaInstrument, InstrumentChannel, ArrayParameter, ChannelList) from qcodes.utils.validators import Ints, Numbers, Enum, Bool logger = logging....
38.754039
105
0.492727
033cc461ed35fdbfe73906c55898048f983992a3
2,274
py
Python
PyFunceble/config/__init__.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/config/__init__.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/config/__init__.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
""" The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ...
36.095238
88
0.576517
033cc48a4890c4913c6d5d598b123868d08e7502
5,961
py
Python
src/python/pants/backend/python/rules/setup_py_util.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/rules/setup_py_util.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/backend/python/rules/setup_py_util.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import io import os from collections import abc, defaultdict from typing import Dict, Iterator, List, Set, Tuple from pants.engine.fs import Snapshot from pants.engine.legacy.graph import...
41.110345
100
0.697702
033ce74d7ba23a7591e7213661664cb7b499d449
114,325
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_08_01/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_08_01/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_08_01/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
43.585589
258
0.670282
033cea481cc49667599c8b5a72b7e6838648d176
2,268
py
Python
bitnest/output/visualize.py
MetroStar/bitnest
a8d9cef5a17a5366e088a774ae951a0f06f97ae7
[ "MIT" ]
4
2021-09-16T21:33:13.000Z
2022-01-18T22:05:57.000Z
bitnest/output/visualize.py
MetroStar/bitnest
a8d9cef5a17a5366e088a774ae951a0f06f97ae7
[ "MIT" ]
1
2021-12-02T03:47:45.000Z
2021-12-02T03:47:45.000Z
bitnest/output/visualize.py
MetroStar/bitnest
a8d9cef5a17a5366e088a774ae951a0f06f97ae7
[ "MIT" ]
null
null
null
import graphviz from bitnest.core import Symbol, Expression def node_label(struct): """Takes a given Struct and creates a graphviz node label. It uses the table structure that graphviz supports. "ports" are used to create edges that point to the specific row within the struct. <table ...> <tr>...
34.892308
86
0.57231
033d023537eeca2e6e8355f0bf7c72afe99fa10c
1,996
py
Python
rocksetta/qnn03-rocksetta.py
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
[ "MIT" ]
1
2021-05-11T22:13:28.000Z
2021-05-11T22:13:28.000Z
rocksetta/qnn03-rocksetta.py
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
[ "MIT" ]
null
null
null
rocksetta/qnn03-rocksetta.py
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
[ "MIT" ]
1
2021-05-11T22:13:34.000Z
2021-05-11T22:13:34.000Z
## from https://pennylane.ai/qml/demos/tutorial_qnn_module_tf.html ## from https://github.com/hpssjellis/my-examples-for-quantum-computing/blob/main/pennylaneai/qml-demos/tf-tutorial_qnn_module_tf.py import tensorflow as tf import matplotlib.pyplot as plt from sklearn.datasets import make_moons import pennylane a...
26.263158
139
0.73497
033d218fdf5f32b4bb2b47d62901ac4855ec1360
6,381
py
Python
src/features/config.py
prajaotak/aqi_thailand2
0a6f8573e840c90196c1a4619758099afdd0deef
[ "MIT" ]
null
null
null
src/features/config.py
prajaotak/aqi_thailand2
0a6f8573e840c90196c1a4619758099afdd0deef
[ "MIT" ]
null
null
null
src/features/config.py
prajaotak/aqi_thailand2
0a6f8573e840c90196c1a4619758099afdd0deef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Set configuration dictionarys for the dataset objects """ def set_config(dataset): """Add a bunch of configuration dictonary as attribute to the dataset object Args: dataset: a dataset object """ # a defaul list of pollutants dataset.gas_list = ['PM2.5', '...
42.825503
120
0.448989
033d4879d9149746df6708ece31fc5307e70ba85
145
py
Python
dxr/plugins/pygmentize/indexer.py
rricard/dxr
e5449d9e48980c7ea4c66b86dca9a4be8851999b
[ "MIT" ]
1
2019-09-03T11:13:07.000Z
2019-09-03T11:13:07.000Z
dxr/plugins/pygmentize/indexer.py
tsharman/dxr
b05efe1fe96eb9aaab3b53f1410af9ed7db919f4
[ "MIT" ]
null
null
null
dxr/plugins/pygmentize/indexer.py
tsharman/dxr
b05efe1fe96eb9aaab3b53f1410af9ed7db919f4
[ "MIT" ]
1
2019-09-03T11:13:10.000Z
2019-09-03T11:13:10.000Z
import dxr.plugins def pre_process(tree, environ): pass def post_process(tree, conn): pass __all__ = dxr.plugins.indexer_exports()
11.153846
39
0.717241
033d5eef61dc832e7372b3e38173dac804a53da8
17,780
py
Python
controller/visualization_controller/visualization_controller.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/visualization_controller/visualization_controller.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/visualization_controller/visualization_controller.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
import os import sys import uuid from os import abort from flask import render_template, redirect, url_for, jsonify, session, request import threading import json import time from sklearn.datasets import make_classification from sklearn.linear_model import LogisticRegression from sklearn.metrics import roc_curve from...
50.225989
234
0.583408
033d795be993feeb5fca70b2ee74f1aa674154db
276
py
Python
limix/iset/linalg_utils.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/iset/linalg_utils.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/iset/linalg_utils.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
import scipy as sp import scipy.linalg as la def msqrt(C): _U, _S = la.eigh(C) _S[_S < 0] = 0. return _U * sp.sqrt(_S) def lowrank_approx(C, rank=1): _S, _U = la.eigh(C) _U = _U[:, -rank:] _S = _S[-rank:] R = sp.dot(_U * _S, _U.T) return R
16.235294
30
0.536232
033d8f50826040e7a4492eee12d08ef3c55250b9
683
py
Python
dear_petition/petition/migrations/0007_auto_20200208_0221.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
4
2020-04-01T14:42:45.000Z
2021-12-12T21:11:11.000Z
dear_petition/petition/migrations/0007_auto_20200208_0221.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
142
2019-08-12T19:08:34.000Z
2022-03-29T23:05:35.000Z
dear_petition/petition/migrations/0007_auto_20200208_0221.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
8
2020-02-04T20:37:00.000Z
2021-03-28T13:28:32.000Z
# Generated by Django 2.2.4 on 2020-02-08 02:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("petition", "0006_auto_20191015_2329"), ] operations = [ migrations.AddField( model_name="ciprsrecord", name="batch",...
24.392857
67
0.547584
033d979d3401b6e3c9cad1f1460a64b2a7821fcd
1,482
py
Python
backend/tests/fixtures/group.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
1
2021-04-13T16:27:58.000Z
2021-04-13T16:27:58.000Z
backend/tests/fixtures/group.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
6
2021-04-08T22:03:06.000Z
2022-01-13T03:38:17.000Z
backend/tests/fixtures/group.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
null
null
null
from baserow.core.models import Group, GroupUser, GroupInvitation class GroupFixtures: def create_group(self, **kwargs): user = kwargs.pop('user', None) users = kwargs.pop('users', []) if user: users.insert(0, user) if 'name' not in kwargs: kwargs['name'] ...
27.444444
74
0.576248
033da690c2c1759e917a506c4684713cb6eba705
10,564
py
Python
vision_transform_codes/training/ica.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/training/ica.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/training/ica.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
""" This implements ICA dictionary learning """ import time import os import pickle import yaml from matplotlib import pyplot as plt import torch def train_dictionary(image_dataset, init_dictionary, all_params): """ Train an ICA dictionary Only works in 'fully-connected' mode Parameters ---------- image...
43.834025
79
0.676448
033dbec493dba539a0aca5fd709fb5090534bc4f
15,427
py
Python
kglib/kgcn_tensorflow/examples/diagnosis/diagnosis.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
13
2018-09-25T13:29:08.000Z
2018-12-10T11:04:38.000Z
kglib/kgcn_tensorflow/examples/diagnosis/diagnosis.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
23
2018-09-17T20:31:44.000Z
2018-12-14T11:21:52.000Z
kglib/kgcn_tensorflow/examples/diagnosis/diagnosis.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
1
2018-09-25T15:56:32.000Z
2018-09-25T15:56:32.000Z
# # Copyright (C) 2021 Vaticle # # 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, Versi...
44.458213
128
0.604525
033dbf2d431f21ae54076d87a2dc518c38b64c67
1,861
py
Python
word_embed/wordembed_glove.py
dongzhuoyao/video-query-in-the-wild
41b015b3993d926c5d9bf02ec4402e7b9edac568
[ "Unlicense" ]
null
null
null
word_embed/wordembed_glove.py
dongzhuoyao/video-query-in-the-wild
41b015b3993d926c5d9bf02ec4402e7b9edac568
[ "Unlicense" ]
null
null
null
word_embed/wordembed_glove.py
dongzhuoyao/video-query-in-the-wild
41b015b3993d926c5d9bf02ec4402e7b9edac568
[ "Unlicense" ]
null
null
null
from data_generate.activitynet_label import ( arv_train_label, arv_test_label, arv_val_label, activitynet_label_list, ) import json import numpy as np import gensim.downloader as api word_vectors = api.load("glove-twitter-200") def wrap_sentence(tokens): for _, t in enumerate(tokens): t...
26.211268
57
0.583557
033dd3b375b2981d4514476008a0ff72e4d001b6
24,607
py
Python
salt/modules/grains.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/modules/grains.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/modules/grains.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Return/control aspects of the grains data ''' # Import python libs from __future__ import absolute_import, print_function import os import copy import math import random import logging import operator import collections import json import fnmatch from functools import reduce # pylint: disa...
31.507042
120
0.617304
033ddb3e3879a0ae6a3b571beb4661319b4f31a6
1,073
py
Python
pygears_riscv/verif/register_file.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
3
2019-04-04T01:39:09.000Z
2022-03-19T02:11:40.000Z
pygears_riscv/verif/register_file.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
null
null
null
pygears_riscv/verif/register_file.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
null
null
null
from pygears import gear from pygears.sim import sim_log from pygears.typing import Tuple, Uint TAddr = Uint['w_addr'] TData = Uint['xlen'] TReadRequest = TAddr TWriteRequest = Tuple[{'addr': TAddr, 'data': TData}] @gear async def register_file_write(request: TWriteRequest, *, storage): async with request as req...
27.512821
75
0.601118
033dfe13c79f41c5b79705dd91af1fecc4dce440
13,267
py
Python
pkgcore/fs/contents.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/fs/contents.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/fs/contents.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2005-2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD """ contents set- container of fs objects """ from functools import partial from itertools import ifilter from operator import attrgetter from snakeoil.demandload import demandload from snakeoil.klass import generic_equality, alias_method ...
32.279805
90
0.598779
033e101a79cbeaef29f71e17a89d8e7b82916415
2,763
py
Python
nav_example2.py
ReinierMaas/Games-Agents
083dd2d4ee4a3aa90123c7dcc0b15cbb3873e84c
[ "MIT" ]
null
null
null
nav_example2.py
ReinierMaas/Games-Agents
083dd2d4ee4a3aa90123c7dcc0b15cbb3873e84c
[ "MIT" ]
null
null
null
nav_example2.py
ReinierMaas/Games-Agents
083dd2d4ee4a3aa90123c7dcc0b15cbb3873e84c
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------ # Copyright (c) 2016 Microsoft Corporation # # 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 w...
34.111111
103
0.694535
033e189686dc2575a1947b4862e2a1164614167c
4,242
py
Python
cate/ops/__init__.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
cate/ops/__init__.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
cate/ops/__init__.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
1
2019-02-14T13:49:37.000Z
2019-02-14T13:49:37.000Z
# The MIT License (MIT) # Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors # # 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 wi...
31.894737
118
0.731966
033e1b0c6aeaec3eca0542fb81cae704948a22fc
15,652
py
Python
python/dgl/backend/tensorflow/tensor.py
micmelesse/dgl
b05cb84a775310991fc949d913cf461850ee3eb5
[ "Apache-2.0" ]
3
2020-02-28T07:28:52.000Z
2020-06-03T08:41:55.000Z
python/dgl/backend/tensorflow/tensor.py
echomint/dgl
5dd35580f7918faa1de551cd80a0ce90a143c434
[ "Apache-2.0" ]
null
null
null
python/dgl/backend/tensorflow/tensor.py
echomint/dgl
5dd35580f7918faa1de551cd80a0ce90a143c434
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from distutils.version import LooseVersion import tensorflow as tf from tensorflow.python.eager import context import builtins import tfdlpack import numpy as np from tfdlpack import to_dlpack, from_dlpack from ... import ndarray as nd from ... import kernel as K from ...funct...
27.801066
98
0.644518
033e1f7d7e3c93f4528fc22468076b614044703a
157
py
Python
by-session/ta-921/j6/list19.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/ta-921/j6/list19.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/ta-921/j6/list19.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
a = [1, 2, 3, 4] b = [] for i in range(len(a)-1, -1, -1): b.append(a[i]) print b c = [] for i in rnage(1, len(a) + 1): c.append(a[-i])
13.083333
34
0.420382
033e49d9009b29dd5c1ffeded551d99f00dcded9
1,009
py
Python
wazimap/migrations/0010_null-total-column.py
anoited007/country-dashboard
577bbcc4992e24c484650895fabbcdf4343e1bdb
[ "MIT" ]
16
2017-10-19T03:36:41.000Z
2022-03-03T11:46:20.000Z
wazimap/migrations/0010_null-total-column.py
ChrisAchinga/wazimap
a66a1524030a8b98e7ea0dfb270d1946ca75b3b2
[ "MIT" ]
66
2016-02-15T08:59:29.000Z
2017-09-21T14:00:43.000Z
wazimap/migrations/0010_null-total-column.py
ChrisAchinga/wazimap
a66a1524030a8b98e7ea0dfb270d1946ca75b3b2
[ "MIT" ]
18
2017-10-06T12:26:37.000Z
2021-08-30T01:38:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2017-10-23 14:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wazimap', '0009_datatables'), ] operations = [ migrations.AlterModelOptions(...
34.793103
355
0.634291
033e86452d6537dd437287f1b20a98a92d657d77
586
py
Python
paranthesisMatching.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
paranthesisMatching.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
paranthesisMatching.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
def get_closing_paren(sentence, opening_paren_index): open_nested_parens = 0 for position in range(opening_paren_index + 1, len(sentence)): char = sentence[position] if char == '(': open_nested_parens += 1 elif char == ')': if open_nested_parens == 0: ...
29.3
132
0.614334
033ea4825beca98bc9d9decf9385dbd827527aea
1,765
py
Python
hardening_law.py
iarlopes/ViewReturnMapping
4ca12f3e2a4d964aa9269798b2724281d98b1eee
[ "MIT" ]
3
2021-06-16T10:41:51.000Z
2021-07-09T09:12:48.000Z
hardening_law.py
iarlopes/ViewReturnMapping
4ca12f3e2a4d964aa9269798b2724281d98b1eee
[ "MIT" ]
null
null
null
hardening_law.py
iarlopes/ViewReturnMapping
4ca12f3e2a4d964aa9269798b2724281d98b1eee
[ "MIT" ]
1
2021-06-17T00:51:03.000Z
2021-06-17T00:51:03.000Z
''' This file defines the class "hard_laws" that is used in the package ViewReturnMapping. Different sub-classes are also defined here. Igor A. Rodrigues Lopes, Jun 2021, Initial coding. ''' # Define the global class yield_functions class hard_laws: """Objects if thus class must define a function describing the ...
27.578125
83
0.643059