hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2b4f13cf30e0fd163c8da85664116fd4d706a116
457
py
Python
files/exercises/errors-identifying-syntax-errors.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
null
null
null
files/exercises/errors-identifying-syntax-errors.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
null
null
null
files/exercises/errors-identifying-syntax-errors.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
1
2020-01-09T10:58:56.000Z
2020-01-09T10:58:56.000Z
# Identifying Syntax Errors # 1. Read the code below, and (without running it) try to identify what the errors are. # 2. Run the code, and read the error message. Is it a SyntaxError or an IndentationError? # 3. Fix the error. # 4. Repeat steps 2 and 3, until you have fixed all the errors. def another_function prin...
41.545455
90
0.733042
5812fd99ab1191a2e465069cca70fbdcd49183dd
7,887
py
Python
holoviews/tests/core/data/test_pandasinterface.py
TheoMathurin/holoviews
0defcef994d6dd6d2054f75a0e332d02d121f8b0
[ "BSD-3-Clause" ]
864
2019-11-13T08:18:27.000Z
2022-03-31T13:36:13.000Z
holoviews/tests/core/data/test_pandasinterface.py
chrinide/holoviews
e1234a60ae0809ac561c204b1998dff0452b2bf0
[ "BSD-3-Clause" ]
1,117
2019-11-12T16:15:59.000Z
2022-03-30T22:57:59.000Z
holoviews/tests/core/data/test_pandasinterface.py
chrinide/holoviews
e1234a60ae0809ac561c204b1998dff0452b2bf0
[ "BSD-3-Clause" ]
180
2019-11-19T16:44:44.000Z
2022-03-28T22:49:18.000Z
from unittest import SkipTest import numpy as np try: import pandas as pd except: raise SkipTest("Could not import pandas, skipping PandasInterface tests.") from holoviews.core.dimension import Dimension from holoviews.core.data import Dataset from holoviews.core.data.interface import DataError from holoview...
43.816667
92
0.548371
8a32da9533e8cbf2df44e287b34e286cffee0d00
6,775
py
Python
tests/nightly/models/test_model_nightly.py
ashwinvaidya17/anomalib
3f7de1b2f1994cf6d9a389293b4831f679abed58
[ "Apache-2.0" ]
null
null
null
tests/nightly/models/test_model_nightly.py
ashwinvaidya17/anomalib
3f7de1b2f1994cf6d9a389293b4831f679abed58
[ "Apache-2.0" ]
null
null
null
tests/nightly/models/test_model_nightly.py
ashwinvaidya17/anomalib
3f7de1b2f1994cf6d9a389293b4831f679abed58
[ "Apache-2.0" ]
null
null
null
"""Test Models on all MVTec AD Categories.""" # Copyright (C) 2020 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...
38.061798
149
0.599114
2cd0c0bf455d82aca727a08db6c837125a323abb
7,830
py
Python
VSR/DataLoader/VirtualFile.py
johnnylili/VideoSuperResolution
3f7142167b521ae739e7e0414c3c1cb3a82d9041
[ "MIT" ]
1
2020-03-28T12:41:29.000Z
2020-03-28T12:41:29.000Z
VSR/DataLoader/VirtualFile.py
ryujaehun/VideoSuperResolution
b3cb9130ecdb8830b0b3a0bb98264b901a37f4c0
[ "MIT" ]
null
null
null
VSR/DataLoader/VirtualFile.py
ryujaehun/VideoSuperResolution
b3cb9130ecdb8830b0b3a0bb98264b901a37f4c0
[ "MIT" ]
1
2020-02-25T16:12:05.000Z
2020-02-25T16:12:05.000Z
""" Copyright: Intel Corp. 2018 Author: Wenyi Tang Email: wenyi.tang@intel.com Created Date: May 9th 2018 Updated Date: May 9th 2018 virtual file is an abstraction of a file or a collection of ordered frames """ from pathlib import Path from io import SEEK_END, BytesIO from PIL import Image import numpy as np from .....
30.466926
103
0.550702
fffad3a2ab65d0103697f2818dcbb4669cf40718
14,896
py
Python
python/ccxt/async_support/__init__.py
brandsimon/ccxt
4ba548cf253c04e23d8b8e89aa69a3d6001e6918
[ "MIT" ]
2
2019-07-15T22:39:54.000Z
2021-05-15T16:13:00.000Z
python/ccxt/async_support/__init__.py
brandsimon/ccxt
4ba548cf253c04e23d8b8e89aa69a3d6001e6918
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
brandsimon/ccxt
4ba548cf253c04e23d8b8e89aa69a3d6001e6918
[ "MIT" ]
2
2020-09-08T01:41:24.000Z
2021-04-30T00:07:59.000Z
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.55.48' # ----------------------------------------------------------------------------- from ccxt.async_support.base.exchange import Ex...
50.83959
86
0.557398
1c02437a279fb55755d05e34b5fdb1f38e9d9979
5,379
py
Python
scraper/combine.py
rohanthomas1202/HypeInvesting-HackUTD
8e4234ddcc7f207d87223e0986d759d3df0ccdd9
[ "MIT" ]
null
null
null
scraper/combine.py
rohanthomas1202/HypeInvesting-HackUTD
8e4234ddcc7f207d87223e0986d759d3df0ccdd9
[ "MIT" ]
null
null
null
scraper/combine.py
rohanthomas1202/HypeInvesting-HackUTD
8e4234ddcc7f207d87223e0986d759d3df0ccdd9
[ "MIT" ]
null
null
null
from flair.models import TextClassifier from flair.data import Sentence from newsapi import NewsApiClient import tweepy import praw class Message: def __init__(self, perception, popularity, platform): self.perception = perception self.popularity = popularity self.platform = platform c...
34.261146
254
0.63655
f6d9bcc2b6a291d813e0e0b4729a00c1ed770c93
1,605
py
Python
fooof/tests/core/test_modutils.py
voytekresearch/fooof
674c495d19588cfa6c43ef046d566b4f29948d84
[ "Apache-2.0" ]
55
2017-10-21T08:56:14.000Z
2018-11-02T17:39:22.000Z
fooof/tests/core/test_modutils.py
voytekresearch/fooof
674c495d19588cfa6c43ef046d566b4f29948d84
[ "Apache-2.0" ]
78
2017-10-22T22:20:25.000Z
2018-11-02T18:22:16.000Z
fooof/tests/core/test_modutils.py
voytekresearch/fooof
674c495d19588cfa6c43ef046d566b4f29948d84
[ "Apache-2.0" ]
21
2017-11-27T19:28:26.000Z
2018-10-23T23:16:29.000Z
"""Tests for fooof.core.modutils. Note: the decorators for copying documentation are not currently tested. """ from pytest import raises from fooof.core.modutils import * ################################################################################################### #############################################...
18.882353
99
0.512773
c685e675ba4c3dedf2ebbcf843caa757a342db06
484
py
Python
regexlib/2021-5-15/python_re2_test_file/regexlib_7003.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/2021-5-15/python_re2_test_file/regexlib_7003.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/2021-5-15/python_re2_test_file/regexlib_7003.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 7003 # .*[Pp]en[Ii1][\$s].* # POLYNOMIAL # nums:5 # POLYNOMIAL AttackString:""+"1"*10000+"!1 _SLQ_1" import re2 as re from time import perf_counter regex = """.*[Pp]en[Ii1][\$s].*""" REGEX = re.compile(regex) for i in range(0, 150000): ATTACK = "" + "1" * i * 10000 + "!1 _SLQ_1" LEN = len(ATTACK) BEGIN ...
25.473684
50
0.60124
85c0b04575654e050f97ef8da4b8651ded6813c4
68,198
py
Python
spyder/app/tests/test_mainwindow.py
neophnx/spyder
f76836ce1b924bcc4efd3f74f2960d26a4e528e0
[ "MIT" ]
2
2019-04-25T08:25:37.000Z
2019-04-25T08:25:43.000Z
spyder/app/tests/test_mainwindow.py
neophnx/spyder
f76836ce1b924bcc4efd3f74f2960d26a4e528e0
[ "MIT" ]
null
null
null
spyder/app/tests/test_mainwindow.py
neophnx/spyder
f76836ce1b924bcc4efd3f74f2960d26a4e528e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright © Spyder Project Contributors # # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) # ----------------------------------------------------------------------------- """ Te...
36.685315
111
0.683085
9949b24c85e3dd4c7fd19b3a662c4355550c19c8
1,388
py
Python
app/products/views.py
erdem/flask-couchdb-example
c2e4dd86ff9ba4bb2327151a7375785b14e240c8
[ "MIT" ]
1
2021-04-28T00:42:10.000Z
2021-04-28T00:42:10.000Z
app/products/views.py
erdem/flask-couchdb-example
c2e4dd86ff9ba4bb2327151a7375785b14e240c8
[ "MIT" ]
null
null
null
app/products/views.py
erdem/flask-couchdb-example
c2e4dd86ff9ba4bb2327151a7375785b14e240c8
[ "MIT" ]
null
null
null
from http import HTTPStatus from flask import Blueprint, jsonify, request from app import Products products_api = Blueprint('products_api', __name__) @products_api.route('/', methods=['GET']) def get_products(): products = Products.all() response_data = [] for product in products: d = { ...
24.785714
61
0.634726
cdbaa9618bc4fc6eb776c402fa6f5eb178102323
1,456
py
Python
AC_CDQ_code/utils/step.py
Jiang-HB/AC_CDQ
4b4ec2d611c4481ad0b99cf7ea79eb23014a0325
[ "MIT" ]
7
2021-05-03T05:50:14.000Z
2022-03-24T15:35:59.000Z
AC_CDQ_code/utils/step.py
Jiang-HB/AC_CDQ
4b4ec2d611c4481ad0b99cf7ea79eb23014a0325
[ "MIT" ]
null
null
null
AC_CDQ_code/utils/step.py
Jiang-HB/AC_CDQ
4b4ec2d611c4481ad0b99cf7ea79eb23014a0325
[ "MIT" ]
1
2022-03-25T02:24:53.000Z
2022-03-25T02:24:53.000Z
import numpy as np def step(opts, Q, current_state, n_eps, reward_array, step_n, probs=None): if probs is not None: cums = np.cumsum(probs) probs = cums / np.max(cums) action = np.random.choice(np.where(np.random.rand() <= probs)[0]) elif opts.policy == "eps": if np.random.ran...
28
74
0.541896
599497d60b227c27f097167dfdc03acc5054059c
2,088
py
Python
torchattacks/attacks/multiattack.py
georgeguo-cn/adversarial-attacks-pytorch
d740ee1944cf45185f7010519e04a4447a251fec
[ "MIT" ]
2
2020-09-21T08:20:06.000Z
2021-02-18T10:13:53.000Z
torchattacks/attacks/multiattack.py
georgeguo-cn/adversarial-attacks-pytorch
d740ee1944cf45185f7010519e04a4447a251fec
[ "MIT" ]
null
null
null
torchattacks/attacks/multiattack.py
georgeguo-cn/adversarial-attacks-pytorch
d740ee1944cf45185f7010519e04a4447a251fec
[ "MIT" ]
null
null
null
import warnings import torch from ..attack import Attack class MultiAttack(Attack): r""" MultiAttack is a class to attack a model with various attacks agains same images and labels. Arguments: model (nn.Module): model to attack. attacks (list): list of attacks. Examples::...
33.677419
119
0.595785
aa4bf69b473c2903505db14506f5fe98c01c0859
5,113
py
Python
osmclient/sol005/pdud.py
OSMadmin/osmclient
0990fda8a0c43c4cad0e08dda164a2c5496e79e6
[ "Apache-2.0" ]
1
2020-12-06T17:40:43.000Z
2020-12-06T17:40:43.000Z
osmclient/sol005/pdud.py
OSMadmin/osmclient
0990fda8a0c43c4cad0e08dda164a2c5496e79e6
[ "Apache-2.0" ]
null
null
null
osmclient/sol005/pdud.py
OSMadmin/osmclient
0990fda8a0c43c4cad0e08dda164a2c5496e79e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Telefonica # # 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 ...
36.784173
95
0.564052
d3b8bf968f8d03df07dc388110bb75e295ccac48
4,471
py
Python
unitorch/cli/models/vit/__init__.py
fuliucansheng/UniTorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
2
2022-02-05T08:52:00.000Z
2022-03-27T07:01:34.000Z
unitorch/cli/models/vit/__init__.py
Lixin-Qian/unitorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
null
null
null
unitorch/cli/models/vit/__init__.py
Lixin-Qian/unitorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
1
2022-03-27T07:01:13.000Z
2022-03-27T07:01:13.000Z
# Copyright (c) FULIUCANSHENG. # Licensed under the MIT License. # pretrained infos pretrained_vit_infos = { "default-vit": { "config": "https://huggingface.co/google/vit-base-patch16-224/resolve/main/config.json", "vision_config": "https://huggingface.co/google/vit-base-patch16-224/resolve/main/pr...
64.797101
123
0.706106
3084686ebb0a847ba096f1ba156f97fb515999fa
12,722
py
Python
examples/BERT/ns_task.py
Hirni-Meshram3/text
84e6c7bd99c7fb3c229ff289aa722149e3136094
[ "BSD-3-Clause" ]
2
2021-05-05T23:47:00.000Z
2021-09-22T02:16:20.000Z
examples/BERT/ns_task.py
Hirni-Meshram3/text
84e6c7bd99c7fb3c229ff289aa722149e3136094
[ "BSD-3-Clause" ]
3
2021-02-24T22:51:20.000Z
2021-03-05T02:38:15.000Z
examples/BERT/ns_task.py
Hirni-Meshram3/text
84e6c7bd99c7fb3c229ff289aa722149e3136094
[ "BSD-3-Clause" ]
4
2021-04-26T23:29:16.000Z
2021-06-11T19:11:05.000Z
import argparse import time import math import torch import torch.nn as nn from torch.nn.parallel import DistributedDataParallel as DDP from torch.utils.data import DataLoader from model import NextSentenceTask, BertModel, BertEmbedding from utils import run_demo, run_ddp, wrap_up def process_raw_data(whole_data, arg...
48.372624
124
0.596447
839ef74e06c1519180b457c25a3987e77fa3af99
6,196
py
Python
desktop/core/ext-py/south/south/management/commands/migrate.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
external_apps/south/management/commands/migrate.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
external_apps/south/management/commands/migrate.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
""" Migrate management command. """ import sys from optparse import make_option from django.core.management.base import BaseCommand from django.core.management.color import no_style from django.conf import settings from django.db import models from south import migration from south.migration import Migration, Migrat...
45.896296
192
0.619755
30aa97be0c2e5a559db8922e293d76789d027319
11,298
py
Python
lib/installed_clients/KBaseReportClient.py
Tianhao-Gu/kb_gtdbtk
41ea2c98f2553e6ef795ea703ffa34b703058720
[ "MIT" ]
3
2020-03-27T09:55:53.000Z
2021-12-08T07:44:57.000Z
lib/installed_clients/KBaseReportClient.py
Tianhao-Gu/kb_gtdbtk
41ea2c98f2553e6ef795ea703ffa34b703058720
[ "MIT" ]
32
2020-02-06T01:10:08.000Z
2021-10-15T05:44:07.000Z
lib/installed_clients/KBaseReportClient.py
Tianhao-Gu/kb_gtdbtk
41ea2c98f2553e6ef795ea703ffa34b703058720
[ "MIT" ]
5
2020-02-04T22:22:35.000Z
2020-10-30T19:07:54.000Z
# -*- coding: utf-8 -*- ############################################################ # # Autogenerated by the KBase type compiler - # any changes made here will be overwritten # ############################################################ from __future__ import print_function from .baseclient import BaseClient as _Bas...
63.117318
89
0.631351
583f96528fbe6cf61d545e583aac77937ab5871c
2,249
py
Python
source/compute_plane/python/lambda/scaling_metrics/scaling_metrics.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
24
2021-04-14T11:57:42.000Z
2022-03-23T17:09:12.000Z
source/compute_plane/python/lambda/scaling_metrics/scaling_metrics.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
9
2021-04-23T08:44:13.000Z
2021-09-15T13:37:42.000Z
source/compute_plane/python/lambda/scaling_metrics/scaling_metrics.py
kirillsc/aws-htc-grid
d1dd8068c3aebc3c04904b3daefc142a4b96872b
[ "Apache-2.0" ]
15
2021-04-14T11:53:58.000Z
2022-02-28T16:45:47.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # Licensed under the Apache License, Version 2.0 https://aws.amazon.com/apache-2-0/ import logging import boto3 import time import os from api.queue_manager import queue_manager # TODO - retrieve the endp...
32.128571
90
0.631836
19332ad1c4e6a9716062c85cb80d6660d182901e
2,690
py
Python
scripts/BRC_microarray/USA/rank_clusters_cross_feature_selection_Netherlands.py
omarmaddouri/GCNCC_cross_validated
89576ad2c8459f065604656fd38a786d042f09e0
[ "MIT" ]
1
2022-03-12T13:34:34.000Z
2022-03-12T13:34:34.000Z
scripts/BRC_microarray/USA/rank_clusters_cross_feature_selection_Netherlands.py
omarmaddouri/GCNCC_cross_validated
89576ad2c8459f065604656fd38a786d042f09e0
[ "MIT" ]
3
2022-02-09T23:28:07.000Z
2022-02-11T19:08:53.000Z
scripts/BRC_microarray/USA/rank_clusters_cross_feature_selection_Netherlands.py
omarmaddouri/GCNCC_cross_validated
89576ad2c8459f065604656fd38a786d042f09e0
[ "MIT" ]
null
null
null
import sys from os.path import dirname, abspath sys.path.append(dirname(dirname(abspath(__file__)))) from BRC_microarray.USA.utils import * path="../../data/BRC_microarray/output/USA/" dataset="PPI" features = np.genfromtxt("../../data/BRC_microarray/output/Netherlands/{}.GE_Features.txt".format(dataset), dtype=np.dt...
42.03125
135
0.697026
79a88f926bf89043a91f9e78901da349e7bb731d
11,691
py
Python
configs/example/spec06_benchmarks.py
GinoAC/gem5_garnet2_CHIPS
b0e8a765ef9d2f6a1bf8513d9f9853432084d122
[ "BSD-3-Clause" ]
1
2021-05-24T04:49:47.000Z
2021-05-24T04:49:47.000Z
configs/example/spec06_benchmarks.py
GinoAC/gem5_garnet2_CHIPS
b0e8a765ef9d2f6a1bf8513d9f9853432084d122
[ "BSD-3-Clause" ]
null
null
null
configs/example/spec06_benchmarks.py
GinoAC/gem5_garnet2_CHIPS
b0e8a765ef9d2f6a1bf8513d9f9853432084d122
[ "BSD-3-Clause" ]
2
2021-06-04T19:46:55.000Z
2021-11-11T11:49:16.000Z
import m5 from m5.objects import * # These three directory paths are not currently used. #gem5_dir = '<FULL_PATH_TO_YOUR_GEM5_INSTALL>' #spec_dir = '<FULL_PATH_TO_YOUR_SPEC_CPU2006_INSTALL>' #out_dir = '<FULL_PATH_TO_DESIRED_OUTPUT_DIRECTORY>' #temp #binary_dir = spec_dir #data_dir = spec_dir #400.perlbench perlb...
35.002994
139
0.667608
8cc4ed5ab07612d3c0ad3a23fe757c084e67efc4
2,977
py
Python
back-end/migrations/env.py
Ay1c/flask-vuejs-madblog
657bf10650e323f85bf1e0f914ab811f4f69acb3
[ "MIT" ]
null
null
null
back-end/migrations/env.py
Ay1c/flask-vuejs-madblog
657bf10650e323f85bf1e0f914ab811f4f69acb3
[ "MIT" ]
1
2021-01-23T07:21:28.000Z
2021-01-23T07:21:28.000Z
back-end/migrations/env.py
Ay1c/flask-vuejs-madblog
657bf10650e323f85bf1e0f914ab811f4f69acb3
[ "MIT" ]
null
null
null
from __future__ import with_statement import logging from logging.config import fileConfig from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config...
30.377551
77
0.71179
8f4b329d970f400dc9687c0756b15931044a71d1
412
py
Python
setup.py
shreyasnbhat/education-engineering
91db0f016fd106846ddaa866da2c8bf1e6779509
[ "MIT" ]
null
null
null
setup.py
shreyasnbhat/education-engineering
91db0f016fd106846ddaa866da2c8bf1e6779509
[ "MIT" ]
38
2017-08-09T10:16:41.000Z
2017-11-01T16:37:22.000Z
setup.py
shreyasnbhat/education-engineering
91db0f016fd106846ddaa866da2c8bf1e6779509
[ "MIT" ]
7
2017-08-10T16:48:13.000Z
2018-10-22T15:07:44.000Z
from setuptools import setup ##ToDO setup(name='education-engineering', version='0.1', description='A tool to help students predict grades', url='http://github.com/shreyasnbhat/education-engineering', author='Shreyas and Gautam', author_email='none@none.none', packages=['app', 'tests...
31.692308
65
0.650485
b9fcd5ed368a528ab0d7b8b8cade22fd6e8cdb34
17,283
py
Python
zinnia/management/commands/wp2zinnia.py
zapier/django-blog-zinnia
2631cbe05fa7b95aecd172fe34b7081ca4beda47
[ "BSD-3-Clause" ]
null
null
null
zinnia/management/commands/wp2zinnia.py
zapier/django-blog-zinnia
2631cbe05fa7b95aecd172fe34b7081ca4beda47
[ "BSD-3-Clause" ]
1
2021-09-08T12:32:28.000Z
2021-09-08T12:32:28.000Z
zinnia/management/commands/wp2zinnia.py
isabella232/django-blog-zinnia
2631cbe05fa7b95aecd172fe34b7081ca4beda47
[ "BSD-3-Clause" ]
1
2021-09-08T10:28:36.000Z
2021-09-08T10:28:36.000Z
"""WordPress to Zinnia command module""" import os import sys from urllib2 import urlopen from datetime import datetime from optparse import make_option from xml.etree import ElementTree as ET from django.conf import settings from django.utils import timezone from django.core.files import File from django.utils.text i...
41.949029
79
0.567031
905465ddfbeba8d5fee3bebdd5f294159831e0be
30,660
py
Python
pattern.py
adivar99/Capstone-Website3.0
d45af1d9dccf07e41a74fd0f97b1da9496abc884
[ "CC-BY-3.0" ]
null
null
null
pattern.py
adivar99/Capstone-Website3.0
d45af1d9dccf07e41a74fd0f97b1da9496abc884
[ "CC-BY-3.0" ]
null
null
null
pattern.py
adivar99/Capstone-Website3.0
d45af1d9dccf07e41a74fd0f97b1da9496abc884
[ "CC-BY-3.0" ]
null
null
null
import tensorflow as tf import numpy as np import scipy.io import argparse import struct import errno import time import cv2 import os ''' parsing and configuration ''' def parse_args(): desc = "TensorFlow implementation of 'A Neural Algorithm for Artistic Style'" parser = argparse....
35.734266
129
0.681539
a7c7c66ce8d669fa897fb2c805e2f438895c5f4f
1,106
py
Python
cvxpy/reductions/eliminate_pwl/atom_canonicalizers/cummax_canon.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/reductions/eliminate_pwl/atom_canonicalizers/cummax_canon.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/reductions/eliminate_pwl/atom_canonicalizers/cummax_canon.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright 2013 Steven Diamond 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, software...
27.65
72
0.626582
5efbaaabf00e8a7c895503d91145ab8dc620124b
261,826
py
Python
ec2_compare/internal/hibernation/true.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
ec2_compare/internal/hibernation/true.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
ec2_compare/internal/hibernation/true.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
# Automatically generated # pylint: disable=all get = [{'SupportedArchitectures': ['x86_64'], 'SustainedClockSpeedInGhz': 2.5, 'DefaultVCpus': 1, 'DefaultCores': 1, 'DefaultThreadsPerCore': 1, 'SizeInMiB': 3840, 'TotalSizeInGB': 4, 'Disks': [{'SizeInGB': 4, 'Count': 1, 'Type': 'ssd'}], 'NvmeSupport': 'unsupported', '...
21,818.833333
261,626
0.742707
be7bfbc1b7685ebe2d5ddca7578ca1e74140d960
1,056
py
Python
setup.py
futzu/SCTE35-threefive
102ee9326d24f93130dc6fd3abf8faa90651d3df
[ "MIT" ]
30
2019-12-24T01:14:40.000Z
2021-03-17T09:45:44.000Z
setup.py
futzu/SCTE35-threefive
102ee9326d24f93130dc6fd3abf8faa90651d3df
[ "MIT" ]
11
2020-02-02T06:02:24.000Z
2021-03-16T05:59:57.000Z
setup.py
futzu/SCTE35-threefive
102ee9326d24f93130dc6fd3abf8faa90651d3df
[ "MIT" ]
11
2020-01-30T00:54:21.000Z
2021-01-11T06:36:06.000Z
#!/usr/bin/env python3 import setuptools import threefive with open("README.md", "r") as fh: readme = fh.read() setuptools.setup( name="threefive", version=threefive.version(), author="Adrian Thiele, Vlad Doster, James Fining, Richard Van Dijk", author_email="spam@so.slo.me", description="Pyt...
30.171429
72
0.629735
ddf314fbf487c95c697c011827ba62e3e4215e0e
8,044
py
Python
tournament.py
OliviaSalonga/P2resubmit
1f891a1caab21770c8ae48068c52508bb1325026
[ "FSFAP" ]
null
null
null
tournament.py
OliviaSalonga/P2resubmit
1f891a1caab21770c8ae48068c52508bb1325026
[ "FSFAP" ]
null
null
null
tournament.py
OliviaSalonga/P2resubmit
1f891a1caab21770c8ae48068c52508bb1325026
[ "FSFAP" ]
null
null
null
#!/usr/bin/env python # # tournament.py -- implementation of a Swiss-system tournament # import psycopg2 conn = psycopg2.connect("dbname='tournament'") cur = conn.cursor() def commit(): """Permanently post all changes to the database. """ conn.commit() def closeConnect(): """Close cursor & connecti...
34.229787
169
0.70189
5bdfaee05979027e8cfee9c4eeb9c2e68e3db07b
4,789
py
Python
fastai/torch_imports.py
LukeMathWalker/fastai
a7b9dc3afd39c31a415d475905e14abd90b5b895
[ "Apache-2.0" ]
7
2018-10-23T23:43:15.000Z
2021-12-25T01:08:09.000Z
fastai/torch_imports.py
LukeMathWalker/fastai
a7b9dc3afd39c31a415d475905e14abd90b5b895
[ "Apache-2.0" ]
8
2021-03-18T20:46:24.000Z
2022-03-11T23:26:30.000Z
fastai/torch_imports.py
LukeMathWalker/fastai
a7b9dc3afd39c31a415d475905e14abd90b5b895
[ "Apache-2.0" ]
2
2019-01-13T16:32:55.000Z
2020-07-02T17:42:05.000Z
import os from distutils.version import LooseVersion import torch, torchvision, torchtext from torch import nn, cuda, backends, FloatTensor, LongTensor, optim import torch.nn.functional as F from torch.autograd import Variable from torch.utils.data import Dataset, TensorDataset from torch.nn.init import kaiming_uniform...
44.757009
116
0.732094
490da6206559c3ef9f8e13a59ee314ca6c7a7de1
4,485
py
Python
poloniex_apis/trading_api.py
xJuggl3r/anapolo
5ffd87594c75575c5a19b9f47bf1b6606cfcdd1b
[ "MIT" ]
93
2016-08-21T01:17:35.000Z
2020-11-22T07:11:00.000Z
poloniex_apis/trading_api.py
jestevez/PoloniexAnalyzer
13fa16eb45b10cc1d052aad03cd4dccc3c4f8b3e
[ "MIT" ]
37
2016-08-20T20:26:28.000Z
2021-01-22T18:36:28.000Z
poloniex_apis/trading_api.py
jestevez/PoloniexAnalyzer
13fa16eb45b10cc1d052aad03cd4dccc3c4f8b3e
[ "MIT" ]
30
2017-02-10T01:43:13.000Z
2018-11-05T06:31:11.000Z
""" Poloniex's Trading API. Not all trading api methods are implemented and will probably not be added unless it will actually be used. In order for these API methods to work, an API key and secret must be configured. Not all methods need the "Trading Enabled" option on their API key. """ import hashlib import hmac im...
28.935484
92
0.65641
130699c75acd9867f7957a1a3003bdb3a670bc44
2,422
py
Python
Smith-Waterman/linear_graph.py
ivanpmartell/bioinfo_algos
60b8e1187bf3129c96a9f832df7b0bbb3871a370
[ "MIT" ]
null
null
null
Smith-Waterman/linear_graph.py
ivanpmartell/bioinfo_algos
60b8e1187bf3129c96a9f832df7b0bbb3871a370
[ "MIT" ]
null
null
null
Smith-Waterman/linear_graph.py
ivanpmartell/bioinfo_algos
60b8e1187bf3129c96a9f832df7b0bbb3871a370
[ "MIT" ]
null
null
null
from operator import itemgetter import numpy as np #ONLY FOR 2D LIST PRETTY PRINT from helper import maxes, backtrack, Cell d = 2 seq_a = 'ATCAGAGTC' seq_b = 'TTCAGTC' def main(): """ Main program """ F, max_cells = make_matrix() pretty_matrix = np.array(F) print(pretty_matrix) alignments = backt...
29.901235
88
0.53014
1e0a7ee8c4a8a671f087a7b49e26952717af49e5
41
py
Python
pydiablo/error.py
youbetterdont/pydiablo
406994e62c4f48fb3d788d458a7b8efb5a465b65
[ "MIT" ]
5
2019-03-18T06:15:51.000Z
2021-02-26T22:58:08.000Z
pydiablo/error.py
youbetterdont/pydiablo
406994e62c4f48fb3d788d458a7b8efb5a465b65
[ "MIT" ]
null
null
null
pydiablo/error.py
youbetterdont/pydiablo
406994e62c4f48fb3d788d458a7b8efb5a465b65
[ "MIT" ]
1
2020-06-16T06:47:09.000Z
2020-06-16T06:47:09.000Z
class PydiabloError(Exception): pass
13.666667
31
0.756098
758f9024af02d593c80ab1889b9464de2e3f6543
1,819
py
Python
digitalocean/komand_digitalocean/actions/convert_image_to_snapshot/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
digitalocean/komand_digitalocean/actions/convert_image_to_snapshot/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
digitalocean/komand_digitalocean/actions/convert_image_to_snapshot/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import komand import json import requests from .schema import ConvertImageToSnapshotInput, ConvertImageToSnapshotOutput class ConvertImageToSnapshot(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='convert_image_to_snapshot', description='Converts an ...
38.702128
115
0.607477
25c1eea64bcef16a80dd2c94c9697d5b2f07f10d
2,836
py
Python
bokeh/application/handlers/document_lifecycle.py
RiccardoGiro/bokeh
7e1bfeea4f3d7a6296aabfeec96e79e1f5a28467
[ "BSD-3-Clause" ]
1
2021-10-30T00:32:00.000Z
2021-10-30T00:32:00.000Z
bokeh/application/handlers/document_lifecycle.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
12
2020-08-26T20:19:29.000Z
2020-08-26T20:19:52.000Z
bokeh/application/handlers/document_lifecycle.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
2
2021-01-12T18:22:24.000Z
2021-10-30T00:32:02.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
36.358974
93
0.385049
b61d31a3772c0e1e7a9d2d84249633ece3562c92
4,224
py
Python
graphgallery/gallery/nodeclas/tensorflow/appnp.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
graphgallery/gallery/nodeclas/tensorflow/appnp.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
graphgallery/gallery/nodeclas/tensorflow/appnp.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
from graphgallery.sequence import FullBatchSequence from graphgallery import functional as gf from graphgallery.gallery.nodeclas import TensorFlow from graphgallery.gallery import Trainer from graphgallery.nn.models import get_model @TensorFlow.register() class APPNP(Trainer): """Implementation of approximated pe...
34.341463
75
0.525331
b79536f04ff8a37eed5a075c3f8749cb92bd51e2
1,142
py
Python
cairis/gui/ModelMenuFactory.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/gui/ModelMenuFactory.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/gui/ModelMenuFactory.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "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...
38.066667
111
0.715412
356968eb67a8e449c5973fcaae53479afed6e293
12,736
py
Python
addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py
xissburg/glTF-Blender-IO
b35e27dcbc0e01fd1cca59255dbf1754eec55eb4
[ "Apache-2.0" ]
25
2018-10-12T08:45:45.000Z
2021-02-27T15:29:56.000Z
addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py
xissburg/glTF-Blender-IO
b35e27dcbc0e01fd1cca59255dbf1754eec55eb4
[ "Apache-2.0" ]
1
2019-06-03T20:16:21.000Z
2019-06-03T20:44:41.000Z
addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py
Svrf/glTF-Blender-IO
c539fcedabdc5c5b77d7919a39f352ac330f6985
[ "Apache-2.0" ]
4
2019-02-03T12:33:55.000Z
2021-01-04T11:19:25.000Z
# Copyright 2018-2019 The glTF-Blender-IO 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 ...
46.823529
145
0.575298
01ab8114e6649e81b5f9a5fd9010cf3adf62d08d
389
py
Python
codice/wsgi.py
lnds/codice
b2edad6bd5f1fdc42a8335b265e131af33081934
[ "MIT" ]
1
2021-04-22T15:25:15.000Z
2021-04-22T15:25:15.000Z
codice/wsgi.py
lnds/codice
b2edad6bd5f1fdc42a8335b265e131af33081934
[ "MIT" ]
3
2021-04-22T14:22:43.000Z
2021-07-20T14:11:22.000Z
codice/wsgi.py
lnds/codice
b2edad6bd5f1fdc42a8335b265e131af33081934
[ "MIT" ]
null
null
null
""" WSGI config for codice project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
33c077392c75bc22020c013b506e7a7bdc05e8bd
1,137
py
Python
src/events/view.py
KenyC/Shajara
ec5ab94e92cf154aef63ac2278fddff901f6328c
[ "MIT" ]
null
null
null
src/events/view.py
KenyC/Shajara
ec5ab94e92cf154aef63ac2278fddff901f6328c
[ "MIT" ]
null
null
null
src/events/view.py
KenyC/Shajara
ec5ab94e92cf154aef63ac2278fddff901f6328c
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication import utils import cst class ViewMouseManager: """Manages click, drag event on the tree graphics view""" sprout_dist = cst.style["nodes"]["sensitivity"] def __init__(self, view, synchronizer): self.view = view self.synchroniz...
26.44186
83
0.702726
09a2dbf3c576a99471716c153aa7921cd24330cc
879
py
Python
portalsite/portal/models/scoring.py
AntonSamojlow/authenticity-portal
d3a38096c9c6aaf688ed9783464396be3ebbe673
[ "MIT" ]
null
null
null
portalsite/portal/models/scoring.py
AntonSamojlow/authenticity-portal
d3a38096c9c6aaf688ed9783464396be3ebbe673
[ "MIT" ]
2
2021-11-06T14:31:24.000Z
2021-11-06T17:10:58.000Z
portalsite/portal/models/scoring.py
AntonSamojlow/authenticity-portal
d3a38096c9c6aaf688ed9783464396be3ebbe673
[ "MIT" ]
null
null
null
"""Data base model: Scoring""" # region imports # standard from typing import TYPE_CHECKING from django.db import models from django.urls import reverse # 3rd party # local # type hints if TYPE_CHECKING: from .measurement import Measurement from .model import Model # endregion class Scoring(models.Model)...
25.114286
86
0.721274
3594deeaed9d6b5e6231c16c1124f80e113ece86
48,266
py
Python
openstack_dashboard/api/ceilometer.py
AlexOugh/horizon
bda2a59aad7637f45211db37235ab18323e20b25
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/ceilometer.py
AlexOugh/horizon
bda2a59aad7637f45211db37235ab18323e20b25
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/ceilometer.py
AlexOugh/horizon
bda2a59aad7637f45211db37235ab18323e20b25
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
37.531882
79
0.559877
49a69e0b57a2cc503a0f5a8f830f6ff065f4fae6
361
py
Python
pyabc/cv/powerlaw.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
144
2017-10-23T11:20:09.000Z
2022-03-31T08:55:51.000Z
pyabc/cv/powerlaw.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
494
2018-02-14T09:49:26.000Z
2022-03-29T12:09:39.000Z
pyabc/cv/powerlaw.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
45
2018-08-27T18:01:46.000Z
2022-03-30T14:05:37.000Z
import numpy as np from scipy.optimize import curve_fit def power_law(x, a, b): return a * x ** (-b) def finverse(y, a, b): return (a / y) ** (1 / b) def fitpowerlaw(x, y): x = np.array(x) y = np.array(y) popt, _ = curve_fit(power_law, x, y, p0=[.5, 1 / 5]) return popt, lambda x: power_law...
20.055556
76
0.581717
59a8b9461448335663a23e0a694efeba0c7a060f
1,106
py
Python
.github/workflows/email-update-config.py
dbigge/Network-Automation
f7646471fc81e0d293ab94b34eaf842afc54053b
[ "PSF-2.0" ]
null
null
null
.github/workflows/email-update-config.py
dbigge/Network-Automation
f7646471fc81e0d293ab94b34eaf842afc54053b
[ "PSF-2.0" ]
null
null
null
.github/workflows/email-update-config.py
dbigge/Network-Automation
f7646471fc81e0d293ab94b34eaf842afc54053b
[ "PSF-2.0" ]
null
null
null
# $language = "python" # $interface = "1.0" # This automatically generated script may need to be # edited in order to work correctly. def Main(): crt.Screen.Synchronous = True crt.Screen.Send("cd nodetracker" + chr(13)) crt.Screen.WaitForString(chr(27) + "]0;devops@zen-2: " + chr(126) + "/nodetracker" + chr(7) + ...
65.058824
521
0.526221
2550cd90916b80068d49fa912c6bf5e8ea769593
6,324
py
Python
localstack/services/firehose/firehose_api.py
vaclav-krajicek/localstack
ad556769c12a2409a052535a315e7723949fbaec
[ "Apache-2.0" ]
1
2017-10-15T17:32:57.000Z
2017-10-15T17:32:57.000Z
localstack/services/firehose/firehose_api.py
Acidburn0zzz/localstack
67cffcd881bfe8f18f8d0e43400125f1053d2821
[ "Apache-2.0" ]
1
2019-07-01T12:08:26.000Z
2019-07-01T12:08:26.000Z
localstack/services/firehose/firehose_api.py
Acidburn0zzz/localstack
67cffcd881bfe8f18f8d0e43400125f1053d2821
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import json import uuid import time import logging import base64 import traceback from flask import Flask, jsonify, request from localstack.constants import TEST_AWS_ACCOUNT_ID from localstack.services import generic_proxy from localstack.utils.common import short_uid, to_str from...
34
105
0.680108
faae608a4431e2af017b3ec16ef7349099f402f3
6,687
py
Python
nipype/workflows/dmri/dtitk/tensor_registration.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/workflows/dmri/dtitk/tensor_registration.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/workflows/dmri/dtitk/tensor_registration.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# -*- coding: utf-8 -*- # coding: utf-8 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from ....pipeline import engine as pe from ....interfaces import utility as niu from ....interfaces import dtitk def affine_tensor_pipeline(name='AffTen'): ""...
46.117241
97
0.657993
3fa9bc6ce633f6234aa568fd959eb04b513d6f89
6,069
py
Python
sharkpylib/plot/html_plot.py
sharksmhi/sharkpylib
2a1d3cf3c15729e50525ab8da5920b6f9bb3faf2
[ "MIT" ]
null
null
null
sharkpylib/plot/html_plot.py
sharksmhi/sharkpylib
2a1d3cf3c15729e50525ab8da5920b6f9bb3faf2
[ "MIT" ]
null
null
null
sharkpylib/plot/html_plot.py
sharksmhi/sharkpylib
2a1d3cf3c15729e50525ab8da5920b6f9bb3faf2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018 SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). """ Created on Wed Aug 8 12:05:15 2018 @author: """ try: import plotly.graph_objs as go import plotly.offline as ply # import...
32.805405
85
0.394628
d22315e2d3b793338e75455844228757626ffaaf
2,402
py
Python
tests/test_lightcurve.py
LanzLagman/chronos
3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470
[ "MIT" ]
null
null
null
tests/test_lightcurve.py
LanzLagman/chronos
3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470
[ "MIT" ]
null
null
null
tests/test_lightcurve.py
LanzLagman/chronos
3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import lightkurve as lk from chronos import ShortCadence, LongCadence TICID = 460205581 SECTOR = 10 CUTOUT_SIZE = (15, 15) QUALITY_BITMASK = "default" def test_sc_pipeline(): """ """ sc = ShortCadence( ticid=TICID, sap_mask="pipeline", quality_bitmask=QUALITY_BITMASK )...
21.836364
73
0.616986
cadd8e158698ca8310fefabe455b53b767f1e7de
25,983
py
Python
fiftyone/core/odm/sample.py
brimoor/fiftyone
237d288955415575f885a3e58accf04d38bd1856
[ "Apache-2.0" ]
1
2020-10-09T05:16:49.000Z
2020-10-09T05:16:49.000Z
fiftyone/core/odm/sample.py
brimoor/fiftyone
237d288955415575f885a3e58accf04d38bd1856
[ "Apache-2.0" ]
null
null
null
fiftyone/core/odm/sample.py
brimoor/fiftyone
237d288955415575f885a3e58accf04d38bd1856
[ "Apache-2.0" ]
null
null
null
""" Backing document classes for :class:`fiftyone.core.sample.Sample` instances. Class hierarchy:: SampleDocument    ├── NoDatasetSampleDocument └── DatasetSampleDocument    ├── my_custom_dataset    ├── another_dataset    └── ... Design invariants: - A :class:`fiftyone.core.sample.Sample` ...
31.192077
79
0.588808
907f3be18883c1b803a297243285970e02649793
825
py
Python
userbot/plugins/spam.py
meaall-com/Telebot
a08193ae6c3e5814b309d079e95c4951eafcbc19
[ "MIT" ]
null
null
null
userbot/plugins/spam.py
meaall-com/Telebot
a08193ae6c3e5814b309d079e95c4951eafcbc19
[ "MIT" ]
null
null
null
userbot/plugins/spam.py
meaall-com/Telebot
a08193ae6c3e5814b309d079e95c4951eafcbc19
[ "MIT" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.b (the "License"); # you may not use this file except in compliance with the License. # from asyncio import wait from telethon import events @borg.on(events.NewMessage(pattern=r"\.spam", outgoing=True))...
27.5
78
0.578182
a63d09242fddfc66682489a0bf90025b3ef4e9e2
7,590
py
Python
birdseye/pfrnn/pfrnn_utils.py
emmair/BirdsEye
3ca1814b8f007388cfabf7ec928af2316a395e1a
[ "Apache-2.0" ]
null
null
null
birdseye/pfrnn/pfrnn_utils.py
emmair/BirdsEye
3ca1814b8f007388cfabf7ec928af2316a395e1a
[ "Apache-2.0" ]
null
null
null
birdseye/pfrnn/pfrnn_utils.py
emmair/BirdsEye
3ca1814b8f007388cfabf7ec928af2316a395e1a
[ "Apache-2.0" ]
null
null
null
# original source: https://github.com/Yusufma03/pfrnns/blob/master/pfrnns.py import torch from torch import nn import numpy as np class PFRNNBaseCell(nn.Module): """ This is the base class for the PF-RNNs. We implement the shared functions here, including 1. soft-resampling 2. reparameterizat...
39.947368
168
0.598287
157d74dbd2b5dc40cc18f3be35e2dfc6a94cfd2b
1,291
py
Python
2d Brillouin Zone/hex_crystal.py
dongheig/hedhywl
c3293699e4f279b48dfa62f695144bcb9f0e85dd
[ "MIT" ]
19
2018-06-15T11:49:46.000Z
2022-02-11T01:11:21.000Z
2d Brillouin Zone/hex_crystal.py
dongheig/hedhywl
c3293699e4f279b48dfa62f695144bcb9f0e85dd
[ "MIT" ]
null
null
null
2d Brillouin Zone/hex_crystal.py
dongheig/hedhywl
c3293699e4f279b48dfa62f695144bcb9f0e85dd
[ "MIT" ]
9
2018-07-04T10:52:53.000Z
2022-01-17T09:21:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Model of simple hexagonal lattice """ import math from crystal import Crystal from sympy.geometry import Point class HexCrystal(Crystal): """ Model of simple hexagonal lattice """ def __init__(self, a, size, center): self._a = a super().__init__(size, ...
30.738095
65
0.611154
765c625b93edde0faf46671652fe39babcb63ddf
1,230
py
Python
scripts/prepare_index.py
dhh1995/SCL
6b481709c11acc10909fed2105a7b485dab0887c
[ "MIT" ]
32
2020-07-10T04:50:03.000Z
2021-11-26T16:57:01.000Z
scripts/prepare_index.py
dhh1995/SCL
6b481709c11acc10909fed2105a7b485dab0887c
[ "MIT" ]
5
2020-07-10T07:55:34.000Z
2021-11-24T02:45:32.000Z
scripts/prepare_index.py
dhh1995/SCL
6b481709c11acc10909fed2105a7b485dab0887c
[ "MIT" ]
3
2020-08-20T15:10:35.000Z
2022-02-20T16:31:01.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : prepare_index.py # Author : Honghua Dong # Email : dhh19951@gmail.com # Date : 01/14/2020 # # Distributed under terms of the MIT license. ''' To prepare the index file of the data_dir to pkl file, for later usage. # Usage python3 prepare_index.py -d $DATAS...
26.73913
77
0.680488
ec7d3241a2832a9d8879480be400bba02c906a71
8,106
py
Python
mvpa2/tests/test_zscoremapper.py
nno/PyMVPA
a125596bf81b8e9848768852f697bd3cff9674c4
[ "MIT" ]
227
2015-01-17T20:13:54.000Z
2022-01-26T21:14:30.000Z
mvpa2/tests/test_zscoremapper.py
nno/PyMVPA
a125596bf81b8e9848768852f697bd3cff9674c4
[ "MIT" ]
364
2015-01-05T21:55:09.000Z
2021-09-09T20:37:55.000Z
mvpa2/tests/test_zscoremapper.py
nno/PyMVPA
a125596bf81b8e9848768852f697bd3cff9674c4
[ "MIT" ]
111
2015-01-06T19:26:41.000Z
2022-01-26T21:14:31.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
39.349515
90
0.611152
306ca6df19a47081e707c80678549827a4f022ea
10,712
py
Python
scripts/run_neural_coin_dice.py
SnowflyLXF/FedDICE
a63a3233037e37ae27d6c130f37ffc4b92190d5e
[ "Apache-2.0" ]
null
null
null
scripts/run_neural_coin_dice.py
SnowflyLXF/FedDICE
a63a3233037e37ae27d6c130f37ffc4b92190d5e
[ "Apache-2.0" ]
null
null
null
scripts/run_neural_coin_dice.py
SnowflyLXF/FedDICE
a63a3233037e37ae27d6c130f37ffc4b92190d5e
[ "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, ...
43.722449
80
0.659354
30bd6b3747e955022c8a03921fa630d63795fb3b
990
py
Python
DQMOffline/Muon/python/MuDepositEnergyMonitoring_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQMOffline/Muon/python/MuDepositEnergyMonitoring_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQMOffline/Muon/python/MuDepositEnergyMonitoring_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # MuDepositEnergyMonitoring muDepEnergyMonitoring = cms.EDAnalyzer("MuDepositEnergyMonitoring", hadS9SizeMin = cms.double(-0.5), OutputMEsInRootFile = cms.bool(False), CosmicsCollectionLabel = cms.InputTag("muons"), emS9SizeMin = cms.double(-0.5), hoS9SizeMa...
30.9375
67
0.672727
54767a9264e15e80e41aa3383d51633551eda2d0
5,706
py
Python
data/p3BR/R2/benchmark/startQiskit_noisy124.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit_noisy124.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit_noisy124.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=21 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
29.564767
140
0.629863
9c5a90bbef3056d993d1ad1ca4a68fbc053fed8e
718
py
Python
venv/Lib/site-packages/PySide2/_config.py
okaykacar/TennisBall-Tracking
1c4d1eb8c376c835ae8942580104d688399534e4
[ "Unlicense" ]
1
2022-03-14T22:41:42.000Z
2022-03-14T22:41:42.000Z
venv/Lib/site-packages/PySide2/_config.py
okaykacar/TennisBall-Tracking
1c4d1eb8c376c835ae8942580104d688399534e4
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/PySide2/_config.py
okaykacar/TennisBall-Tracking
1c4d1eb8c376c835ae8942580104d688399534e4
[ "Unlicense" ]
null
null
null
built_modules = list(name for name in "Core;Gui;Widgets;PrintSupport;Sql;Network;Test;Concurrent;WinExtras;Xml;XmlPatterns;Help;Multimedia;MultimediaWidgets;OpenGL;OpenGLFunctions;Positioning;Location;Qml;Quick;QuickControls2;QuickWidgets;RemoteObjects;Scxml;Script;ScriptTools;Sensors;SerialPort;TextToSpeech;Charts...
42.235294
441
0.807799
745818396da810a5e44152fc7e4c2db9e1b6ad7d
137
py
Python
Desafio1.py
rsmelocunha/Python-projects
1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093
[ "MIT" ]
null
null
null
Desafio1.py
rsmelocunha/Python-projects
1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093
[ "MIT" ]
null
null
null
Desafio1.py
rsmelocunha/Python-projects
1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093
[ "MIT" ]
null
null
null
nome=input('Qual é o seu nome? ').strip() print(' ', '\033[1;31m', nome, '\033[m', '\033[32m', '\n', 'Prazer em te conhecer!', '\033[m')
68.5
95
0.554745
1781193f61f1476a57760cf8073b06b877358d59
10,566
py
Python
openstackclient/network/v2/network_rbac.py
cloudification-io/python-openstackclient
e07324e30fbb24e89fd63d1c5a5fe485f693a45c
[ "Apache-2.0" ]
5
2015-02-26T18:03:07.000Z
2017-05-01T20:17:20.000Z
openstackclient/network/v2/network_rbac.py
cloudification-io/python-openstackclient
e07324e30fbb24e89fd63d1c5a5fe485f693a45c
[ "Apache-2.0" ]
null
null
null
openstackclient/network/v2/network_rbac.py
cloudification-io/python-openstackclient
e07324e30fbb24e89fd63d1c5a5fe485f693a45c
[ "Apache-2.0" ]
null
null
null
# 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, software # distrib...
34.756579
79
0.601079
a1424327f2cafde7eeb71366a33011d60ed80971
1,314
py
Python
observations/r/sp500_w90.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/sp500_w90.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/sp500_w90.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def sp500_w90(path): """Closing Numbers for S and P 500 Index - First 100...
27.957447
73
0.685693
689eae0ef29835bcd96ca03c387c9d1cbd73f028
4,093
py
Python
clinica/iotools/converters/adni_to_bids/adni_modalities/adni_pib_pet.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
135
2019-05-17T14:16:40.000Z
2022-03-19T03:08:05.000Z
clinica/iotools/converters/adni_to_bids/adni_modalities/adni_pib_pet.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
391
2019-06-03T09:32:17.000Z
2022-03-31T15:10:26.000Z
clinica/iotools/converters/adni_to_bids/adni_modalities/adni_pib_pet.py
Raelag0112/clinica
d301b1abfdf4d3b62dc4b329622340795ae51ef8
[ "MIT" ]
57
2019-05-20T08:38:01.000Z
2022-02-11T12:14:32.000Z
# coding: utf-8 """Module for converting PIB PET of ADNI.""" def convert_adni_pib_pet( source_dir, csv_dir, dest_dir, conversion_dir, subjs_list=None, mod_to_update=False ): """Convert PIB PET images of ADNI into BIDS format. Args: source_dir: path to the ADNI directory csv_dir: path to ...
31.728682
109
0.64989
51abfe09d60d3f9fd0b655e74ea3ed893f16f210
45
py
Python
crane_controllers/external/casadi-3.4.5/swig/extending_casadi/__init__.py
tingelst/crane
e14bca2bd4e2397dce09180029223832aad9b070
[ "MIT" ]
2
2021-03-22T08:50:29.000Z
2021-08-18T03:04:18.000Z
crane_controllers/external/casadi-3.4.5/swig/extending_casadi/__init__.py
tingelst/crane
e14bca2bd4e2397dce09180029223832aad9b070
[ "MIT" ]
null
null
null
crane_controllers/external/casadi-3.4.5/swig/extending_casadi/__init__.py
tingelst/crane
e14bca2bd4e2397dce09180029223832aad9b070
[ "MIT" ]
2
2022-01-14T04:28:41.000Z
2022-01-14T05:29:01.000Z
import casadi from extending_casadi import *
15
30
0.844444
ef82642ba4afc31f453b8c32fd1327396d0c66b4
24,236
py
Python
models_SHOT_convex/syn20hfsg.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_SHOT_convex/syn20hfsg.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_SHOT_convex/syn20hfsg.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 01/15/21 11:37:32 # # Equation counts # Total E G L N X C B # 234 107 27 100 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
36.665658
120
0.627166
cf769136d937afa6c813cae6f2ac6b9974ebc4f5
756,114
py
Python
cart_venv/Lib/site-packages/tensorflow_core/python/ops/gen_nn_ops.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
cart_venv/Lib/site-packages/tensorflow_core/python/ops/gen_nn_ops.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
cart_venv/Lib/site-packages/tensorflow_core/python/ops/gen_nn_ops.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _c...
39.549848
45,459
0.657315
cce880ed9e020e9c711c787f8e390d525b6d9c5d
4,487
py
Python
Aulas/Módulos_Python/CSV-Comma_Separated_Values/main.py
edersonhs/Python3_Basico_Ao_Avancado
a15754a6fbca407d5a7a7ed4116c2710b4635594
[ "MIT" ]
null
null
null
Aulas/Módulos_Python/CSV-Comma_Separated_Values/main.py
edersonhs/Python3_Basico_Ao_Avancado
a15754a6fbca407d5a7a7ed4116c2710b4635594
[ "MIT" ]
null
null
null
Aulas/Módulos_Python/CSV-Comma_Separated_Values/main.py
edersonhs/Python3_Basico_Ao_Avancado
a15754a6fbca407d5a7a7ed4116c2710b4635594
[ "MIT" ]
null
null
null
""" Comma Separated Values - CSV (Valores separados por vírgula) É um formato de dados muito usado em tabelas (Excel, Google Sheets), base de dados, clientes de e-mail, etc... Cada linha do csv representa uma linha da tabela e cada informação separada por virgula representa uma tabela da coluna da tabela. """ import c...
38.025424
79
0.667484
bc1d0de4ccfcf7131de99f45e145d0d2ee582129
1,833
py
Python
workbench/urls.py
nedbat-test-external/xblock-sdk
8ccf74eace81ba22ea93c42caada11d4c5870e01
[ "Apache-2.0" ]
null
null
null
workbench/urls.py
nedbat-test-external/xblock-sdk
8ccf74eace81ba22ea93c42caada11d4c5870e01
[ "Apache-2.0" ]
null
null
null
workbench/urls.py
nedbat-test-external/xblock-sdk
8ccf74eace81ba22ea93c42caada11d4c5870e01
[ "Apache-2.0" ]
null
null
null
"""Provide XBlock urls""" from __future__ import absolute_import from django.conf.urls import url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from workbench import views admin.autodiscover() urlpatterns = [ url(r'^$', views.index, name='workbench_index')...
26.955882
92
0.555374
cc65e648ff868673a47ee275cdcd5e42725c1a71
464
py
Python
blender/arm/logicnode/value_get_material.py
DsmMatt/armory
3fa9321016f6e83b2c1009e5ce220566fb35011e
[ "Zlib" ]
1
2018-12-04T05:33:53.000Z
2018-12-04T05:33:53.000Z
blender/arm/logicnode/value_get_material.py
DsmMatt/armory
3fa9321016f6e83b2c1009e5ce220566fb35011e
[ "Zlib" ]
null
null
null
blender/arm/logicnode/value_get_material.py
DsmMatt/armory
3fa9321016f6e83b2c1009e5ce220566fb35011e
[ "Zlib" ]
null
null
null
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class GetMaterialNode(Node, ArmLogicTreeNode): '''Get material node''' bl_idname = 'LNGetMaterialNode' bl_label = 'Get Material' bl_icon = 'GAME' def init(self, context): self.in...
27.294118
56
0.713362
ade5a10959cf6d5c546434d3fe4bbe18e4a5647a
8,170
py
Python
sharing_portal/forms.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
3
2015-08-04T20:53:41.000Z
2020-02-14T22:58:20.000Z
sharing_portal/forms.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
103
2015-01-15T14:21:00.000Z
2022-03-31T19:14:20.000Z
sharing_portal/forms.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
4
2016-02-22T16:48:20.000Z
2021-01-08T17:13:21.000Z
from django.db.models import Q from django.core.exceptions import ValidationError from django import forms from django.forms import widgets from projects.models import Project from util.project_allocation_mapper import ProjectAllocationMapper from .models import Artifact, ArtifactVersion, Author, Label, DaypassReques...
35.064378
100
0.647246
f1e1f924901bf23328a5cb55a02093e8efac2315
2,917
py
Python
manuka/migrations/env.py
NeCTAR-RC/manuka
93e2eaa7dd8bbb499132f564b727ea3cb21302d9
[ "Apache-2.0" ]
1
2021-08-16T14:50:35.000Z
2021-08-16T14:50:35.000Z
warre/migrations/env.py
NeCTAR-RC/warre
4ca9bfaa6d0568cc8268d570b36c2c0fcb0f9d8e
[ "Apache-2.0" ]
null
null
null
warre/migrations/env.py
NeCTAR-RC/warre
4ca9bfaa6d0568cc8268d570b36c2c0fcb0f9d8e
[ "Apache-2.0" ]
null
null
null
from __future__ import with_statement import logging from logging.config import fileConfig from alembic import context from flask import current_app from sqlalchemy import engine_from_config from sqlalchemy import pool # this is the Alembic Config object, which provides # access to the values within the .ini file in...
29.765306
77
0.712376
ee54c2fddaaa642b3af67ef545893d9ea40b7c6b
1,532
py
Python
tests/cloudformation/checks/resource/aws/test_CloudWatchLogGroupRetention.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/cloudformation/checks/resource/aws/test_CloudWatchLogGroupRetention.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/cloudformation/checks/resource/aws/test_CloudWatchLogGroupRetention.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import os import unittest from checkov.cloudformation.checks.resource.aws.CloudWatchLogGroupRetention import check from checkov.cloudformation.runner import Runner from checkov.runner_filter import RunnerFilter class TestCloudWatchLogGroupRetention(unittest.TestCase): def test_summary(self): runner = Ru...
32.595745
101
0.693864
0ace401e3a8e2f0d96f53e4997531c92b17664a7
184,187
py
Python
lhotse/cut.py
luomingshuang/lhotse
7c1e3bd33f3b1ef23b67ee3c2e70443bf302e655
[ "Apache-2.0" ]
null
null
null
lhotse/cut.py
luomingshuang/lhotse
7c1e3bd33f3b1ef23b67ee3c2e70443bf302e655
[ "Apache-2.0" ]
null
null
null
lhotse/cut.py
luomingshuang/lhotse
7c1e3bd33f3b1ef23b67ee3c2e70443bf302e655
[ "Apache-2.0" ]
null
null
null
import logging import random import warnings from concurrent.futures import Executor, ProcessPoolExecutor from dataclasses import dataclass, field from functools import partial, reduce from itertools import chain, islice from math import ceil, floor from pathlib import Path from typing import ( Any, Callable, ...
42.63588
154
0.603398
d5b4599697f43af6a9505c3c5d0eeedfa310efed
407
py
Python
aula6/sudp.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
aula6/sudp.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
aula6/sudp.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
import socket import sys porta = int(input('Digite a porta em que sera hospedado: ')) s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) try: s.bind(('',porta)) except: print('Erro de bind.') sys.exit() while True: input('Aperte [Enter] para continuar...') data,addr = s.recvfrom(1024) print...
20.35
60
0.653563
1a7e8a14d89cee5cb5e502341802538b07f66821
510
py
Python
tests/test_testing.py
Kludex/fastapi-authorization
67765b28bd350bfef83288c4e4c36c55725f255a
[ "MIT" ]
16
2021-11-30T20:34:43.000Z
2022-03-11T18:41:19.000Z
tests/test_testing.py
Kludex/fastapi-authorization
67765b28bd350bfef83288c4e4c36c55725f255a
[ "MIT" ]
null
null
null
tests/test_testing.py
Kludex/fastapi-authorization
67765b28bd350bfef83288c4e4c36c55725f255a
[ "MIT" ]
1
2021-12-12T00:07:08.000Z
2021-12-12T00:07:08.000Z
from fastapi import FastAPI from fastapi_authorization.rbac import RBAC from fastapi_authorization.testing import auto_test_protected_endpoints auth = RBAC(lambda: "admin") auth.add_role("admin", permissions=["user:create", "user:read"]) auth.add_role("superadmin", permissions=["admin:create", "admin:read"]) auth.add...
25.5
71
0.752941
f9356ae00423de6cd2b377079f76def3f4e36f41
2,863
py
Python
ping.py
JackShak/ping
3fe6477a869050b5fcde9110d9d30611c4f00ead
[ "CC0-1.0" ]
null
null
null
ping.py
JackShak/ping
3fe6477a869050b5fcde9110d9d30611c4f00ead
[ "CC0-1.0" ]
null
null
null
ping.py
JackShak/ping
3fe6477a869050b5fcde9110d9d30611c4f00ead
[ "CC0-1.0" ]
null
null
null
#Создай собственный Шутер! from pygame import * from random import randint finish=False font.init() font = font.Font(None, 36) win=font.render('YOU WIN!', True, (255, 215, 0)) p=0 u=0 bullets = sprite.Group() class GameSprite(sprite.Sprite): def __init__(self, player_image, player_x, player_y, ...
28.63
101
0.581558
92eabe98236677c31f4a7a279416a369036835c7
9,196
py
Python
c7n/filters/vpc.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
1
2018-06-27T14:51:12.000Z
2018-06-27T14:51:12.000Z
c7n/filters/vpc.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
2
2018-05-08T23:39:01.000Z
2018-05-14T16:53:43.000Z
c7n/filters/vpc.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
2
2019-11-22T14:54:28.000Z
2021-06-18T13:49:15.000Z
# Copyright 2016-2017 Capital One Services, 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 ...
39.982609
97
0.58906
db19ca2687a1dd4b7175bd4842689dc373bb4234
21,924
py
Python
functionaltests/api/v1/functional/test_acls.py
dmend/barbican
5ff7b4ca1474225acabc36acedcf70a41946e6d0
[ "Apache-2.0" ]
177
2015-01-02T09:35:53.000Z
2022-02-26T01:43:55.000Z
functionaltests/api/v1/functional/test_acls.py
dmend/barbican
5ff7b4ca1474225acabc36acedcf70a41946e6d0
[ "Apache-2.0" ]
3
2015-06-23T19:07:31.000Z
2017-08-19T04:38:11.000Z
functionaltests/api/v1/functional/test_acls.py
dmend/barbican
5ff7b4ca1474225acabc36acedcf70a41946e6d0
[ "Apache-2.0" ]
87
2015-01-13T17:33:40.000Z
2021-11-09T05:30:36.000Z
# Copyright (c) 2015 Cisco Systems # # 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 writ...
42.820313
79
0.693441
5388e013f7cda73b5341e5701c6155f6cb8997ce
976
py
Python
isi_sdk_8_2_2/test/test_network_groupnets_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/test/test_network_groupnets_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/test/test_network_groupnets_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_2 from i...
23.804878
106
0.727459
91f4c5f4f4df9373d41f8c7438375bb4ccc1fafc
731
py
Python
src/problem5.py
aitc-h/euler
6fc07c741c31a632ce6f11f65c11007cd6c7eb29
[ "MIT" ]
null
null
null
src/problem5.py
aitc-h/euler
6fc07c741c31a632ce6f11f65c11007cd6c7eb29
[ "MIT" ]
null
null
null
src/problem5.py
aitc-h/euler
6fc07c741c31a632ce6f11f65c11007cd6c7eb29
[ "MIT" ]
null
null
null
""" Problem 5 Smallest multiple """ from utility.decorators import timeit, printit from utility import math_f def convert(l): out = {} for i in l: if i in out: out[i] += 1 else: out[i] = 1 return out def redu(d): total = 1 for i in d: tota...
16.244444
46
0.515732
c0dce64f3d30b2d7bdbb3505630148d3037860bf
1,940
py
Python
src/sc_studio/ccd_image_view.py
nkming2/sc-studio
0261e8ac19ade6fe48ca8f1184321d0b89fb9a7f
[ "MIT" ]
null
null
null
src/sc_studio/ccd_image_view.py
nkming2/sc-studio
0261e8ac19ade6fe48ca8f1184321d0b89fb9a7f
[ "MIT" ]
null
null
null
src/sc_studio/ccd_image_view.py
nkming2/sc-studio
0261e8ac19ade6fe48ca8f1184321d0b89fb9a7f
[ "MIT" ]
null
null
null
''' sc_studio.ccd_image_view Author: Ming Tsang Copyright (c) 2014-2015 HKUST SmartCar Team Refer to LICENSE for details ''' import binascii import logging import time import tkinter from tkinter import Tk, Text from sc_studio import config from sc_studio.view import View class CcdImageView(View): def __init__(self...
24.871795
73
0.687113
db9ac49929e44948ee73a990762848f6de2d681e
26,556
py
Python
recipes/arrow/all/conanfile.py
dpronin/conan-center-index
5c6e41a618097d04e731c9831118a51dcb39ab3f
[ "MIT" ]
null
null
null
recipes/arrow/all/conanfile.py
dpronin/conan-center-index
5c6e41a618097d04e731c9831118a51dcb39ab3f
[ "MIT" ]
1
2021-11-22T13:54:48.000Z
2021-11-22T14:09:45.000Z
recipes/arrow/all/conanfile.py
dpronin/conan-center-index
5c6e41a618097d04e731c9831118a51dcb39ab3f
[ "MIT" ]
null
null
null
from conans import ConanFile, tools, CMake from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.33.0" class ArrowConan(ConanFile): name = "arrow" description = "Apache Arrow is a cross-language development platform for in-memory data" topics = ("arrow", "memory") ...
49.452514
141
0.641136
14a2cf8d7f855787a7c9f9c6ce3167e6c0abf44d
8,030
py
Python
bpython/line.py
ocurero/bpython
32363dc8bea1fd12997f314cb424bf72cbe1e599
[ "PSF-2.0" ]
null
null
null
bpython/line.py
ocurero/bpython
32363dc8bea1fd12997f314cb424bf72cbe1e599
[ "PSF-2.0" ]
null
null
null
bpython/line.py
ocurero/bpython
32363dc8bea1fd12997f314cb424bf72cbe1e599
[ "PSF-2.0" ]
null
null
null
"""Extracting and changing portions of the current line All functions take cursor offset from the beginning of the line and the line of Python code, and return None, or a tuple of the start index, end index, and the word.""" from itertools import chain from collections import namedtuple from typing import Optional f...
32.909836
80
0.645081
8d154763bf810dc9f668988f05f53dd32a354a31
164
py
Python
configs/guided_anchoring/ga_rpn_r101_caffe_fpn_1x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
426
2020-10-16T08:09:27.000Z
2022-03-30T03:36:04.000Z
configs/guided_anchoring/ga_rpn_r101_caffe_fpn_1x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
170
2020-09-08T12:29:06.000Z
2022-03-31T18:28:09.000Z
configs/guided_anchoring/ga_rpn_r101_caffe_fpn_1x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
84
2021-05-29T06:58:14.000Z
2022-03-31T07:44:10.000Z
_base_ = './ga_rpn_r50_caffe_fpn_1x_coco.py' # model settings model = dict( pretrained='open-mmlab://detectron2/resnet101_caffe', backbone=dict(depth=101))
27.333333
57
0.743902
3777a2aaf0cd76aca78ecafa8935c65e7b9a47df
80,840
py
Python
Packs/Mimecast/Integrations/MimecastV2/MimecastV2.py
asiadeepinstinct/content
dcb4a87a55d052e0189b6ed1059fb8116e7304ab
[ "MIT" ]
null
null
null
Packs/Mimecast/Integrations/MimecastV2/MimecastV2.py
asiadeepinstinct/content
dcb4a87a55d052e0189b6ed1059fb8116e7304ab
[ "MIT" ]
null
null
null
Packs/Mimecast/Integrations/MimecastV2/MimecastV2.py
asiadeepinstinct/content
dcb4a87a55d052e0189b6ed1059fb8116e7304ab
[ "MIT" ]
null
null
null
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import hmac import uuid import json import base64 import hashlib import requests from datetime import timedelta from urllib2 import HTTPError # Disable insecure warnings requests.packages.urllib3.disa...
34.935177
130
0.609525
be909172491eb801eabd9f9e5fc9232c025a2b1b
3,348
py
Python
beerpy/units/gravity.py
MrLeeh/beerpy
1bbec29a39b01a9d8e54c475de29c768dfd27597
[ "MIT" ]
null
null
null
beerpy/units/gravity.py
MrLeeh/beerpy
1bbec29a39b01a9d8e54c475de29c768dfd27597
[ "MIT" ]
null
null
null
beerpy/units/gravity.py
MrLeeh/beerpy
1bbec29a39b01a9d8e54c475de29c768dfd27597
[ "MIT" ]
null
null
null
""" Functions for converting gravity units. Source: http://www.brewersfriend.com/plato-to-sg-conversion-chart """ import os import pandas as pd from scipy.interpolate import interp1d from ..utilities import datadir FCT_DATA = "data" FCT_POLY = "poly" PLATO = "°P" SPECIFIC_GRAVITY = "kg/m³" _units = (PLATO, SPECI...
21.324841
72
0.611111
c859559e50d1e070a71d595248e1a816a6121a24
3,710
py
Python
Benchmarking/Util/dataset_processing.py
cristi161/eecvf
519c488bd47f697ef51e88823f7a751a52677b88
[ "MIT" ]
1
2021-04-02T15:33:12.000Z
2021-04-02T15:33:12.000Z
Benchmarking/Util/dataset_processing.py
cristi161/eecvf
519c488bd47f697ef51e88823f7a751a52677b88
[ "MIT" ]
null
null
null
Benchmarking/Util/dataset_processing.py
cristi161/eecvf
519c488bd47f697ef51e88823f7a751a52677b88
[ "MIT" ]
1
2021-08-14T09:07:22.000Z
2021-08-14T09:07:22.000Z
import os import shutil from scipy.io import loadmat, savemat # noinspection PyPackageRequirements import cv2 import numpy as np def find_gt_from_files_copy(img_location, gt_folder, gt_new_folder): """ Function finds the equivalent ground truth images from a file in the gt folder :param img_loc...
33.423423
107
0.597844
7a6484a29f75a1d2a3315b5d3fab8a8e9b33a110
158
py
Python
rainbowchar/__init__.py
roderiano/rainbow-char-lib
5acc579ec4cf5d073bf087eebac6809e1912c966
[ "MIT" ]
null
null
null
rainbowchar/__init__.py
roderiano/rainbow-char-lib
5acc579ec4cf5d073bf087eebac6809e1912c966
[ "MIT" ]
null
null
null
rainbowchar/__init__.py
roderiano/rainbow-char-lib
5acc579ec4cf5d073bf087eebac6809e1912c966
[ "MIT" ]
null
null
null
from rainbowchar.rainbow import paint from rainbowchar.utils import convert_hex_color_to_rgb from rainbowchar.exceptions import InvalidRainbowHexadecimalColor
52.666667
65
0.911392
526df34048fce2159a21be3cd21a7a3440dec711
8,009
py
Python
pytorch_wavelets/dwt/transform2d.py
hologerry/pytorch_wavelets
b1418c87f8151f94c2fecc5b31ae2fb7ea31cc03
[ "MIT" ]
null
null
null
pytorch_wavelets/dwt/transform2d.py
hologerry/pytorch_wavelets
b1418c87f8151f94c2fecc5b31ae2fb7ea31cc03
[ "MIT" ]
null
null
null
pytorch_wavelets/dwt/transform2d.py
hologerry/pytorch_wavelets
b1418c87f8151f94c2fecc5b31ae2fb7ea31cc03
[ "MIT" ]
null
null
null
import torch.nn as nn import pywt import pytorch_wavelets.dwt.lowlevel as lowlevel import torch torch.autograd.set_detect_anomaly(True) class DWTForward(nn.Module): """ Performs a 2d DWT Forward decomposition of an image Args: J (int): Number of levels of decomposition wave (str or pywt.Wavel...
38.320574
143
0.556249
0e6e1ae2206a9fe448cd86fce7c89eada6924a38
85,081
py
Python
fragbuilder/bio_pdb/Seq.py
larsbratholm/fragbuilder
e16cbcb190403b5fef49811abd11d16d7ef7fb30
[ "BSD-2-Clause" ]
null
null
null
fragbuilder/bio_pdb/Seq.py
larsbratholm/fragbuilder
e16cbcb190403b5fef49811abd11d16d7ef7fb30
[ "BSD-2-Clause" ]
null
null
null
fragbuilder/bio_pdb/Seq.py
larsbratholm/fragbuilder
e16cbcb190403b5fef49811abd11d16d7ef7fb30
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2000-2002 Brad Chapman. # Copyright 2004-2005 by M de Hoon. # Copyright 2007-2010 by Peter Cock. # All rights reserved. # 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. """Provides objects ...
39.794668
177
0.604013
b78c2cf2b2693b031c0ed27bfb0e8f51b15acaad
4,919
py
Python
src/fair-preprocessing/adult/AC10.py
sumonbis/FairPreprocessing
c644dd38615f34dba39320397fb00d5509602864
[ "MIT" ]
3
2021-09-01T10:42:46.000Z
2022-01-24T06:44:36.000Z
src/fair-preprocessing/adult/AC10.py
sumonbis/FairPreprocessing
c644dd38615f34dba39320397fb00d5509602864
[ "MIT" ]
null
null
null
src/fair-preprocessing/adult/AC10.py
sumonbis/FairPreprocessing
c644dd38615f34dba39320397fb00d5509602864
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import sys sys.path.append('../../../') from utils.packages import * from utils.ml_fairness import * from utils.standard_data import * dir = 'res/adult10-' d_fields = ['Pipeline', 'Stage', 'SF_SPD', 'SF_EOD', 'SF_AOD', 'SD_ERD', 'Acc', 'F1'] diff_file = dir + 'fairness'...
30.937107
120
0.69445
015ea9cc8d85fa4923e6f8382f8dc1786d68306b
10,378
py
Python
algo_visual _JRMP.py
Sun-Zhaohong/JRMP
f35b3c371f94b7064e788525fa81100510cd876a
[ "MIT" ]
null
null
null
algo_visual _JRMP.py
Sun-Zhaohong/JRMP
f35b3c371f94b7064e788525fa81100510cd876a
[ "MIT" ]
null
null
null
algo_visual _JRMP.py
Sun-Zhaohong/JRMP
f35b3c371f94b7064e788525fa81100510cd876a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np ####################################################################### # setup for figure ####################################################################### fig = plt.figure(dpi=300) # labels for x-axis / y-axis x_labels = ['1', '2', '3', '4', '5', '...
33.585761
118
0.550395
2e9684a5b30b8344fc51e58e4c374cdb168969bf
5,016
py
Python
nwb/nwb_file.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
32
2015-08-21T14:14:44.000Z
2017-08-31T09:33:14.000Z
nwb/nwb_file.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
24
2015-11-18T11:17:04.000Z
2019-12-31T19:44:18.000Z
nwb/nwb_file.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
18
2015-10-07T03:04:41.000Z
2022-03-11T18:52:20.000Z
import sys import time import os.path from . import h5gate as g from . import nwb_init as ni def open(file_name, start_time=None, mode="w-", identifier=None, description=None, core_spec="nwb_core.py", extensions=[], default_ns="core", keep_original=False, auto_compress=True, verbosity="all"): """ Open ...
45.6
104
0.660088
69dfa4c3e73cf837981d50c77e1126914be4cb65
110
py
Python
fs_image/rpm/repo_db.py
philipjameson/buckit
83b4ba7fc7a7a9d28b7a66117de6d6beccfdf7f8
[ "BSD-3-Clause" ]
null
null
null
fs_image/rpm/repo_db.py
philipjameson/buckit
83b4ba7fc7a7a9d28b7a66117de6d6beccfdf7f8
[ "BSD-3-Clause" ]
null
null
null
fs_image/rpm/repo_db.py
philipjameson/buckit
83b4ba7fc7a7a9d28b7a66117de6d6beccfdf7f8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import enum class SQLDialect(enum.Enum): SQLITE3 = 'sqlite3' MYSQL = 'mysql'
13.75
28
0.663636
ebbf692b01e611ac6da64cbcd8d2ec4a3072fff7
911
py
Python
csm_web/scheduler/management/commands/patchattendances.py
shadaj/csm_web
aab7920987bf3212b6da7fa26bac24cca77c6d03
[ "MIT" ]
null
null
null
csm_web/scheduler/management/commands/patchattendances.py
shadaj/csm_web
aab7920987bf3212b6da7fa26bac24cca77c6d03
[ "MIT" ]
null
null
null
csm_web/scheduler/management/commands/patchattendances.py
shadaj/csm_web
aab7920987bf3212b6da7fa26bac24cca77c6d03
[ "MIT" ]
null
null
null
from django.utils import timezone from django.core.management import BaseCommand from scheduler.models import Student, Attendance, week_bounds class Command(BaseCommand): help = "Creates a single attendance for this week for all students who have no attendances for this week." def handle(self, *args, **optio...
53.588235
135
0.737651
a97de11a327948e60a5be51bfb7dd6d256a68015
294
py
Python
src/interpreter/functions/join.py
BowlingPizzaBall/b-star
3e614443281702e124309ea7496314519b707b5f
[ "MIT" ]
null
null
null
src/interpreter/functions/join.py
BowlingPizzaBall/b-star
3e614443281702e124309ea7496314519b707b5f
[ "MIT" ]
null
null
null
src/interpreter/functions/join.py
BowlingPizzaBall/b-star
3e614443281702e124309ea7496314519b707b5f
[ "MIT" ]
null
null
null
from typing import List from src.interpreter.expression import Expression def join(block: List, codebase): first = Expression(block[1], codebase) buffer = first for i in block[2:]: buffer.extend(Expression(i, codebase)) buffer = "".join(buffer) return buffer
22.615385
49
0.676871
dfd8f2c9cd377f177dd3a5d56d1843c2c157db91
139
py
Python
PythonNetwork/venv/Lib/site-packages/pika/exchange_type.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
2,479
2015-01-01T20:06:23.000Z
2022-03-31T13:29:19.000Z
PythonNetwork/venv/Lib/site-packages/pika/exchange_type.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
813
2015-01-07T07:13:49.000Z
2022-03-28T05:05:06.000Z
PythonNetwork/venv/Lib/site-packages/pika/exchange_type.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
763
2015-01-10T04:38:33.000Z
2022-03-31T07:24:57.000Z
from enum import Enum class ExchangeType(Enum) : direct = 'direct' fanout = 'fanout' headers = 'headers' topic = 'topic'
15.444444
26
0.625899
a01a9b4a677c716941181dab82edea8742c71e82
15,419
py
Python
data/data_utils.py
iostermann/deeplab2
68822b0c76c2c757a11402ac597711f926990f04
[ "Apache-2.0" ]
null
null
null
data/data_utils.py
iostermann/deeplab2
68822b0c76c2c757a11402ac597711f926990f04
[ "Apache-2.0" ]
null
null
null
data/data_utils.py
iostermann/deeplab2
68822b0c76c2c757a11402ac597711f926990f04
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Deeplab2 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 ...
36.365566
80
0.683896
2ec3d1256d6b8bec59c82a8435b2e4d0de301058
841
py
Python
dynamic_schemas/urls.py
Threemusketeerz/DSystems
cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c
[ "BSD-2-Clause" ]
1
2018-01-23T12:23:48.000Z
2018-01-23T12:23:48.000Z
dynamic_schemas/urls.py
Threemusketeerz/DSystems
cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c
[ "BSD-2-Clause" ]
1
2018-01-19T08:43:59.000Z
2018-01-23T12:20:43.000Z
dynamic_schemas/urls.py
Threemusketeerz/DSystems
cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c
[ "BSD-2-Clause" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'dynamic_schemas' urlpatterns = [ url(r'^$', views.SchemaIndexView.as_view(), name='schema_list'), url(r'^(?P<pk>[0-9]+)/$', views.SchemaView.as_view(), name='schema_view'), # url(r'^(?P<pk>[0-9]+)/$', views.SchemaView, name='schema_detail')...
38.227273
78
0.600476
58f085b8d05a894a8d0996797d52f791b52fe2d6
963
py
Python
app/user/views.py
arifhusaini97/recipe-app-api
3011624d87d56c285b0bad8c647e0a847d7e030d
[ "MIT" ]
null
null
null
app/user/views.py
arifhusaini97/recipe-app-api
3011624d87d56c285b0bad8c647e0a847d7e030d
[ "MIT" ]
null
null
null
app/user/views.py
arifhusaini97/recipe-app-api
3011624d87d56c285b0bad8c647e0a847d7e030d
[ "MIT" ]
null
null
null
# from django.shortcuts import render from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from user.serializers import UserSerializer, AuthTokenSerializer class CreateUserView(generics.CreateAPIVie...
34.392857
66
0.790239
3503bb574032e8da9c8fc5b5708f717a611803a3
20,227
py
Python
plugins/modules/oci_data_safe_user_assessment_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_data_safe_user_assessment_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_data_safe_user_assessment_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2021 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.616466
159
0.616602
84dbcc600890b03809da1472b5b26e4b3d777d11
11,930
py
Python
src/rnn_model.py
hao-cheng/ee596_spr2019_lab4
487a91c3dcc4d1982e9aa8149630bc3549c883f0
[ "MIT" ]
null
null
null
src/rnn_model.py
hao-cheng/ee596_spr2019_lab4
487a91c3dcc4d1982e9aa8149630bc3549c883f0
[ "MIT" ]
null
null
null
src/rnn_model.py
hao-cheng/ee596_spr2019_lab4
487a91c3dcc4d1982e9aa8149630bc3549c883f0
[ "MIT" ]
null
null
null
import os import sys import pickle import numpy as np from .rnn_unit import RnnUnit from .softmax_unit import SoftmaxUnit DTYPE = np.double class RnnModel: """An RNN model with an softmax output layer.""" def __init__(self, init_range=0.1, learning_rate=0.1, ...
34.883041
92
0.58793