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
21f23ffc26125396585aedb10c499a2d3a11d50b
3,871
py
Python
neo/bin/import_blocks.py
nunojusto/neo-python
1f54bca9d14fa547290f278f0539a4d4b0c13195
[ "MIT" ]
null
null
null
neo/bin/import_blocks.py
nunojusto/neo-python
1f54bca9d14fa547290f278f0539a4d4b0c13195
[ "MIT" ]
1
2018-09-26T17:50:24.000Z
2018-09-26T18:38:42.000Z
neo/bin/import_blocks.py
nunojusto/neo-python
1f54bca9d14fa547290f278f0539a4d4b0c13195
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from neo.Core.Blockchain import Blockchain from neo.Core.Block import Block from neo.IO.MemoryStream import MemoryStream from neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain import LevelDBBlockchain from neo.Settings import settings from neocore.IO.BinaryReader import BinaryReader impo...
34.256637
130
0.65642
96df0d61537f12300f6dc9f1b8d875bcc284c758
1,080
py
Python
auth/hooks.py
erwincoumans/LoginServer
dcd407615dbf8bac91f49b4d0c8950a9b39790b4
[ "MIT" ]
null
null
null
auth/hooks.py
erwincoumans/LoginServer
dcd407615dbf8bac91f49b4d0c8950a9b39790b4
[ "MIT" ]
null
null
null
auth/hooks.py
erwincoumans/LoginServer
dcd407615dbf8bac91f49b4d0c8950a9b39790b4
[ "MIT" ]
null
null
null
from flask import url_for, g, session, redirect, request, abort from auth import app from auth.models import User import functools import urllib.parse as urlparse def static(path): root = app.config.get('STATIC_ROOT') if root is None: return url_for('static', filename=path) else: return url...
26.341463
75
0.664815
5352944e07f64608333d7cf9ffaada9b2294ff04
2,780
py
Python
Widen/LC958_Check_Completeness_of_a_Binary_Tree.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
Widen/LC958_Check_Completeness_of_a_Binary_Tree.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
Widen/LC958_Check_Completeness_of_a_Binary_Tree.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
""" 958. Check Completeness of a Binary Tree Given a binary tree, determine if it is a complete binary tree. Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can ha...
36.103896
213
0.611511
cbba66f6c2633a18f31f29e4866576f2b41fcb70
1,438
py
Python
setup.py
Mohammed-bjj/python-midi
45a44164b2e612e0733326a0fb64ef632b4295de
[ "MIT" ]
null
null
null
setup.py
Mohammed-bjj/python-midi
45a44164b2e612e0733326a0fb64ef632b4295de
[ "MIT" ]
null
null
null
setup.py
Mohammed-bjj/python-midi
45a44164b2e612e0733326a0fb64ef632b4295de
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup, Extension __base__ = { 'name': 'midi', 'version': 'v0.2.3', 'description': 'Python MIDI API', 'author': 'giles hall', 'author_email': 'ghall@csh.rit.edu', 'package_dir': {'midi':'src'}, 'py_modules': ['midi.containers', 'midi.__init_...
29.958333
116
0.639777
7c58f6463e24ec2ecf548a9e3a2723f59c3c8df9
1,318
py
Python
ExeSysMain/ExeSysFunctionalModules/ExeSysFunc/exe_sys_web_admin_func.py
alessandror/ExeSys-Python
a6c60577ff0024f90646ab37e2601288950fe734
[ "MIT" ]
null
null
null
ExeSysMain/ExeSysFunctionalModules/ExeSysFunc/exe_sys_web_admin_func.py
alessandror/ExeSys-Python
a6c60577ff0024f90646ab37e2601288950fe734
[ "MIT" ]
null
null
null
ExeSysMain/ExeSysFunctionalModules/ExeSysFunc/exe_sys_web_admin_func.py
alessandror/ExeSys-Python
a6c60577ff0024f90646ab37e2601288950fe734
[ "MIT" ]
null
null
null
""" Copyright 2018 Alex Redaelli <a.redaelli at gmail dot com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
48.814815
126
0.769347
8915e2ec57c3403bef585dd5e9dd2d18fee3421d
2,798
py
Python
code/submission.py
enricogherardi/U-Net-with-Dice-Loss-for-Multiclass-Instance-Segmentation
b7f14d947764c92f6d5f5a37ea6fa1d626279121
[ "MIT" ]
null
null
null
code/submission.py
enricogherardi/U-Net-with-Dice-Loss-for-Multiclass-Instance-Segmentation
b7f14d947764c92f6d5f5a37ea6fa1d626279121
[ "MIT" ]
null
null
null
code/submission.py
enricogherardi/U-Net-with-Dice-Loss-for-Multiclass-Instance-Segmentation
b7f14d947764c92f6d5f5a37ea6fa1d626279121
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np from PIL import Image import json # Set the seed to replicate the experiments SEED = 1234 tf.random.set_seed(SEED) print("Start Submitting...\n\n\n") # Setting up all the previews variables img_h = 1536 img_w = img_h def meanIoU(y_true, y_pred): # get predicte...
34.121951
156
0.688706
6b34288364291b9136f748b670813d67205bf33e
903
py
Python
mysite/my_calendar/models.py
jared-wallace/jared-wallace.com
af58635d18f394906b6a0125eb4573f89546d7d5
[ "WTFPL" ]
null
null
null
mysite/my_calendar/models.py
jared-wallace/jared-wallace.com
af58635d18f394906b6a0125eb4573f89546d7d5
[ "WTFPL" ]
null
null
null
mysite/my_calendar/models.py
jared-wallace/jared-wallace.com
af58635d18f394906b6a0125eb4573f89546d7d5
[ "WTFPL" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Entry(models.Model): title = models.CharField(max_length=40) snippet = models.CharField(max_length=150, blank=True) body = models.TextField(max_length=10000, blank=True) created = models.DateTimeField(auto_now_add=True) ...
33.444444
69
0.646733
7fec28d6002e5dcfe869d14f32c79e83574487da
5,037
py
Python
tempest/api/identity/admin/test_tokens.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/test_tokens.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/test_tokens.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Huawei Technologies Co.,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 # # Unl...
40.620968
79
0.620012
9a72af1b0e58c4570f089df771d034d5d3303336
3,014
py
Python
ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/FALCON/package/scripts/falcon.py
fangxingli/mambari
6da9f6090d4d42623529b73413c8feb8b7f6fe45
[ "Apache-2.0", "MIT" ]
1
2021-05-06T06:24:04.000Z
2021-05-06T06:24:04.000Z
ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/FALCON/package/scripts/falcon.py
fangxingli/mambari
6da9f6090d4d42623529b73413c8feb8b7f6fe45
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/FALCON/package/scripts/falcon.py
fangxingli/mambari
6da9f6090d4d42623529b73413c8feb8b7f6fe45
[ "Apache-2.0", "MIT" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
34.643678
75
0.629064
9b50eaa4a46724ff66fe75bcc58b1d0b6773969e
782
py
Python
scripts/json_parser/category-pic-gen.py
Rinsightproject/RINSIGHT
db4ce2635998e71dcef84d182c9b31375b8d31b9
[ "Apache-2.0" ]
null
null
null
scripts/json_parser/category-pic-gen.py
Rinsightproject/RINSIGHT
db4ce2635998e71dcef84d182c9b31375b8d31b9
[ "Apache-2.0" ]
null
null
null
scripts/json_parser/category-pic-gen.py
Rinsightproject/RINSIGHT
db4ce2635998e71dcef84d182c9b31375b8d31b9
[ "Apache-2.0" ]
null
null
null
import os import sys def get_project_root(): cwd_list = os.getcwd().split('/') need_path_list = [] for item in cwd_list: need_path_list.append(item) if item == 'rust-up-to-you': break return '/'.join(need_path_list) if __name__ == '__main__': project_root = get_projec...
26.066667
86
0.640665
458f2591240a00da81dc5b16f23777a17cfc5696
6,871
py
Python
tensorlayer/models/resnet.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
4,484
2017-12-27T03:28:35.000Z
2021-12-02T14:42:58.000Z
tensorlayer/models/resnet.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
549
2017-12-28T07:19:52.000Z
2021-11-05T02:34:20.000Z
tensorlayer/models/resnet.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
1,076
2017-12-27T12:25:46.000Z
2021-11-24T09:12:36.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- """ResNet for ImageNet. # Reference: - [Deep Residual Learning for Image Recognition]( https://arxiv.org/abs/1512.03385) (CVPR 2016 Best Paper Award) """ import os import tensorflow as tf from tensorlayer import logging from tensorlayer.files import (assign_weights, l...
33.681373
120
0.623199
9e6f860b3cbecd3883c60f3f67aa318c3f97c252
7,201
py
Python
code/catalogMaker.py
NCR-Corporation/sample-app-burgers
478b18078b3e7eb217ba7baba318a30f12ae76ca
[ "Apache-2.0" ]
7
2020-10-29T13:19:50.000Z
2022-01-12T21:36:24.000Z
code/catalogMaker.py
NCR-Corporation/sample-app-burgers
478b18078b3e7eb217ba7baba318a30f12ae76ca
[ "Apache-2.0" ]
10
2020-10-30T14:23:33.000Z
2021-08-18T19:30:12.000Z
code/catalogMaker.py
NCR-Corporation/sample-app-burgers
478b18078b3e7eb217ba7baba318a30f12ae76ca
[ "Apache-2.0" ]
5
2020-10-30T14:24:37.000Z
2021-06-21T14:02:49.000Z
from django.conf import settings import requests import re from BurgersUnlimited import settings from HMACAuth import HMACAuth HIGHLANDS = settings.LOCATIONS['Burgers Unlimited Highlands'] SOUTHLAND = settings.LOCATIONS['Burgers Unlimited Southland'] MIDTOWN = settings.LOCATIONS ['Burgers Unlimited Midtown'] ''' Des...
35.648515
197
0.699625
aed5e2bce0b94c3d5410f73496d834f3ee5433a3
4,326
py
Python
eval/DataIter.py
DunZhang/LUSE
5b13cc5882052dfbf0e756c5b403958b67168223
[ "MIT" ]
10
2021-07-31T02:50:37.000Z
2022-03-29T06:44:50.000Z
eval/DataIter.py
DunZhang/LUSE
5b13cc5882052dfbf0e756c5b403958b67168223
[ "MIT" ]
1
2021-08-01T14:36:09.000Z
2021-08-02T02:10:37.000Z
eval/DataIter.py
DunZhang/LUSE
5b13cc5882052dfbf0e756c5b403958b67168223
[ "MIT" ]
1
2022-01-26T03:05:02.000Z
2022-01-26T03:05:02.000Z
import random import torch from transformers import BertTokenizer from collections import Iterable import logging logger = logging.getLogger("OPPOSTS") class DataIter(Iterable): def __init__(self): self.swap_pair = None def reset(self): pass class VecDataIter(DataIter): """ """ de...
31.122302
115
0.553398
dccd0bb58a82146f72f4c4a8f14d433bdba9d334
951
py
Python
archive/resources/name_generator.py
iphilpot/DoE_Bloom_Filter
bb3c60a9679c853510233480e8876364c147838b
[ "MIT" ]
1
2019-06-06T23:17:18.000Z
2019-06-06T23:17:18.000Z
archive/resources/name_generator.py
iphilpot/DoE_Bloom_Filter
bb3c60a9679c853510233480e8876364c147838b
[ "MIT" ]
null
null
null
archive/resources/name_generator.py
iphilpot/DoE_Bloom_Filter
bb3c60a9679c853510233480e8876364c147838b
[ "MIT" ]
null
null
null
#!/usr/bin/env python family_file='familynames-usa-top1000.txt' female_file='femalenames-usa-top1000.txt' male_file='malenames-usa-top1000.txt' username_file='usernames.txt' # (female * family) + (male * family) = 2,000,000 # wc -l username.txt = 2,000,000 user_file=open(username_file, 'w') with open(family_file) a...
30.677419
72
0.597266
9eeee8ced86fa85d4f7afc7e6f6809786bb3d4b7
3,457
py
Python
huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/issue_item_sf_v4_tracker.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/issue_item_sf_v4_tracker.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/issue_item_sf_v4_tracker.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class IssueItemSfV4Tracker: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The k...
24.34507
79
0.526179
8d90e562575aebd21875ea59c5394b04fc1610af
2,604
py
Python
egs/clotho/asr1/local/evaluate_decoded_captions.py
chintu619/espne
785d7f64035459e316f79f2ee280d729bc76bb1e
[ "Apache-2.0" ]
null
null
null
egs/clotho/asr1/local/evaluate_decoded_captions.py
chintu619/espne
785d7f64035459e316f79f2ee280d729bc76bb1e
[ "Apache-2.0" ]
2
2021-05-27T02:23:12.000Z
2021-06-05T15:18:23.000Z
egs/clotho/asr1/local/evaluate_decoded_captions.py
chintu619/espnet
785d7f64035459e316f79f2ee280d729bc76bb1e
[ "Apache-2.0" ]
null
null
null
import argparse import json import os from eval_metrics import evaluate_metrics def main(): parser = argparse.ArgumentParser() parser.add_argument("decoded_json_path", type=str) parser.add_argument("groundtruth_captions_path", type=str) args = parser.parse_args() gts = {} with open(args.ground...
41.333333
121
0.603303
df96bf209d7090e1df9f2553431df61e26521819
89,369
py
Python
lib/galaxy/jobs/__init__.py
mmyschyshyn/Vocalaxy
9f501b49eaa96b90a39a05c74170b5cb78d88759
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/jobs/__init__.py
mmyschyshyn/Vocalaxy
9f501b49eaa96b90a39a05c74170b5cb78d88759
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/jobs/__init__.py
mmyschyshyn/Vocalaxy
9f501b49eaa96b90a39a05c74170b5cb78d88759
[ "CC-BY-3.0" ]
null
null
null
""" Support for running a tool in Galaxy via an internal job management system """ from abc import ABCMeta from abc import abstractmethod import time import copy import datetime import galaxy import logging import os import pwd import random import re import shutil import subprocess import sys import traceback from ga...
47.63806
301
0.622789
f0f9fd7d14ec89840015dd254fee46ceff0dc108
14,349
py
Python
crds/certify/validator_helpers.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
null
null
null
crds/certify/validator_helpers.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
1
2019-04-11T18:19:16.000Z
2019-04-11T18:19:16.000Z
crds/certify/validator_helpers.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
null
null
null
"""This module defines helper functions that are used in "expression" validators, either in a "presence" condition or as the "constraint" condition. The expressions themselves appear in .tpn files and are dynamically eval'ed in the context of a reference header and other globals like these functions. These functions...
31.605727
122
0.602899
2e20cff6622c53d6954e4102d4682605c41a9285
4,175
py
Python
pose.py
ecr23xx/kp6d
aef34c7893f06a93f8af5241ed4bbe36bf5dc884
[ "MIT" ]
3
2019-10-14T06:16:44.000Z
2020-01-30T19:25:48.000Z
pose.py
ECer23/kp6d
aef34c7893f06a93f8af5241ed4bbe36bf5dc884
[ "MIT" ]
1
2019-11-23T13:19:25.000Z
2019-11-25T13:06:16.000Z
pose.py
ECer23/kp6d
aef34c7893f06a93f8af5241ed4bbe36bf5dc884
[ "MIT" ]
2
2019-08-09T18:34:23.000Z
2019-11-21T01:54:47.000Z
import os import sys import cv2 import pickle import argparse from tqdm import tqdm from PIL import Image, ImageDraw from torchvision import transforms from utils import * from data.linemod.sixd import SixdToolkit from detect.eval.src.detector import Detector from detect.eval.src.dataset import prepare_dataset from de...
36.304348
86
0.610299
4e130a2cf53e3e5fd12f2701f44fdaadaa7d8e1c
4,754
py
Python
vul/55-thinkphp5x-getshell.py
zx273983653/vulscan
787397e267c4e6469522ee0abe55b3e98f968d4a
[ "MIT" ]
582
2019-02-23T09:23:33.000Z
2022-03-31T04:42:08.000Z
vul/55-thinkphp5x-getshell.py
git-wsf/vulscan
112f8d6104daecfaaad579f73029a26d56aaa9b3
[ "MIT" ]
6
2019-03-20T10:37:48.000Z
2020-03-10T06:20:07.000Z
vul/55-thinkphp5x-getshell.py
git-wsf/vulscan
112f8d6104daecfaaad579f73029a26d56aaa9b3
[ "MIT" ]
183
2019-02-23T06:00:18.000Z
2022-03-20T02:17:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2014-2015 pocsuite developers (http://seebug.org) See the file 'docs/COPYING' for copying permission """ # 命令行 from pocsuite import pocsuite_cli # 验证模块 from pocsuite import pocsuite_verify # 攻击模块 from pocsuite import pocsuite_attack # 控制台模式 from pocsuite ...
35.477612
149
0.604544
ecbb530072bcd2a6c2e50d607d8632e645d10ce6
1,480
py
Python
tests/single_fw_test_rono.py
apanda/modeling
e032abd413bb3325ad6e5995abadeef74314f383
[ "BSD-3-Clause" ]
3
2017-08-30T05:24:11.000Z
2021-02-25T12:17:19.000Z
tests/single_fw_test_rono.py
apanda/modeling
e032abd413bb3325ad6e5995abadeef74314f383
[ "BSD-3-Clause" ]
null
null
null
tests/single_fw_test_rono.py
apanda/modeling
e032abd413bb3325ad6e5995abadeef74314f383
[ "BSD-3-Clause" ]
2
2017-11-15T07:00:48.000Z
2020-12-13T17:29:03.000Z
from examples import RonoDMZTest, RonoQuarantineTest, RonoHostTest import z3 import time import random import sys def ResetZ3 (): z3._main_ctx = None z3.main_ctx() z3.set_param('smt.random_seed', random.SystemRandom().randint(0, sys.maxint)) iters = 10 min_hosts = 5 max_hosts = 1000 print "host dmz_time q...
29.6
94
0.643919
dca261285bbc82d0f6bb050d5c4ada764c11c359
23,199
py
Python
sahara/service/heat/templates.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
sahara/service/heat/templates.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
sahara/service/heat/templates.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
34.625373
79
0.550756
6eeda0464e647c9d2c640d0ed269b8f90e22a801
157
py
Python
lightkurve/version.py
jsk389/lightkurve
2fe031708f4c241b61796ccdacf658717b2ffa44
[ "MIT" ]
null
null
null
lightkurve/version.py
jsk389/lightkurve
2fe031708f4c241b61796ccdacf658717b2ffa44
[ "MIT" ]
null
null
null
lightkurve/version.py
jsk389/lightkurve
2fe031708f4c241b61796ccdacf658717b2ffa44
[ "MIT" ]
null
null
null
# It is important to store the version number in a separate file # so that we can read it from setup.py without importing the package __version__ = "1.0b13"
39.25
68
0.770701
88f7b29530acaa88545a7043d699d0e21344494e
127,618
py
Python
astropy/wcs/wcs.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
null
null
null
astropy/wcs/wcs.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
null
null
null
astropy/wcs/wcs.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # Under the hood, there are 3 separate classes that perform different # parts of the transformation: # # - `~astropy.wcs.Wcsprm`: Is a direct wrapper of the core WCS # functionality in `wcslib`_. (This includes TPV and TPD # polynomial disto...
37.723322
114
0.547266
b153a27a2775d55cfb9d9a6f579d077c609ff818
7,554
py
Python
rdr_service/lib_fhir/fhirclient_3_0_0/models/coverage_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/lib_fhir/fhirclient_3_0_0/models/coverage_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/lib_fhir/fhirclient_3_0_0/models/coverage_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 3.0.0.11832 on 2017-03-22. # 2017, SMART Health IT. import io import json import os import unittest from . import coverage from .fhirdate import FHIRDate class CoverageTests(unittest.TestCase): def instantiate_from(self, filename): ...
50.697987
157
0.679243
163b0af331fa9afffe08f52702ba018aea44269c
4,692
py
Python
fsleyes/gl/gl14/glvector_funcs.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
12
2018-05-05T01:36:25.000Z
2021-09-23T20:44:08.000Z
fsleyes/gl/gl14/glvector_funcs.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
97
2018-05-05T02:17:23.000Z
2022-03-29T14:58:42.000Z
fsleyes/gl/gl14/glvector_funcs.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
6
2017-12-09T09:02:00.000Z
2021-03-05T18:55:13.000Z
#!/usr/bin/env python # # glvector_funcs.py - Functions used by glrgbvector_funcs and # gllinevector_funcs. # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module contains logic for managing vertex and fragment shader programs used for rendering :class:`.GLRGBVector` and :class:`.GLLin...
33.514286
78
0.618713
dd808f3d00340b79710009f9ac8c29c92e4b3c26
2,749
py
Python
activation_maps/guided_backprop.py
fhalamos/predicting-poverty-replication
55c94cf6bd31b4f99c059167c0c031126160d3bd
[ "MIT" ]
59
2019-10-24T23:33:22.000Z
2022-03-23T06:04:50.000Z
activation_maps/guided_backprop.py
fhalamos/predicting-poverty-replication
55c94cf6bd31b4f99c059167c0c031126160d3bd
[ "MIT" ]
8
2020-02-27T15:50:45.000Z
2022-03-12T00:03:04.000Z
activation_maps/guided_backprop.py
fhalamos/predicting-poverty-replication
55c94cf6bd31b4f99c059167c0c031126160d3bd
[ "MIT" ]
36
2019-11-08T18:03:17.000Z
2022-02-16T00:28:59.000Z
""" Taken directly from https://github.com/utkuozbulak/pytorch-cnn-visualizations """ import torch from torch.nn import ReLU class GuidedBackprop(): """ Produces gradients generated with guided back propagation from the given image """ def __init__(self, model): self.model = model s...
37.657534
95
0.636595
1a519329eb4ae5d7f7b589948e2782d816f96ba8
257
py
Python
backend/apps/cmdb/serializers/__init__.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
backend/apps/cmdb/serializers/__init__.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
29
2020-06-05T19:57:11.000Z
2022-02-26T13:42:36.000Z
backend/apps/cmdb/serializers/__init__.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from .model import ModelSerializer, ModelInfoSerializer from .field import FieldModelSerializer from .instance import InstanceModelSerializer from .value import ValueModelSerializer from .permission import PermissionModelSerializer
28.555556
55
0.836576
6d7982488c483b16ccf1c5f948b286d9e61e878f
1,976
py
Python
_unittests/ut_onnxrt/test_rt_valid_model_normalizer.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
1
2020-12-18T03:49:53.000Z
2020-12-18T03:49:53.000Z
_unittests/ut_onnxrt/test_rt_valid_model_normalizer.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
_unittests/ut_onnxrt/test_rt_valid_model_normalizer.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
""" @brief test log(time=9s) """ import unittest from logging import getLogger from pyquickhelper.loghelper import fLOG from pyquickhelper.pycode import ExtTestCase from sklearn.exceptions import ConvergenceWarning try: from sklearn.utils._testing import ignore_warnings except ImportError: from sklearn.uti...
32.933333
80
0.681174
6fce29d6d02940925223992774320049add136f0
28,894
py
Python
dof/storage.py
hyperrixel/dof
4f1500fd7c78a438f0812e46a3938a8dbd2b0db7
[ "MIT" ]
null
null
null
dof/storage.py
hyperrixel/dof
4f1500fd7c78a438f0812e46a3938a8dbd2b0db7
[ "MIT" ]
null
null
null
dof/storage.py
hyperrixel/dof
4f1500fd7c78a438f0812e46a3938a8dbd2b0db7
[ "MIT" ]
null
null
null
""" DoF - Deep Model Core Output Framework ====================================== Submodule: storage """ from abc import ABC, abstractmethod import json from os import listdir from os.path import isfile, join import pickle from .error import DofError class DofObjectHandler(ABC): """ Abstract class (de fac...
30.446786
80
0.516543
da16d21fe4c494063f096fb8f1bcada9ba7b8285
1,972
py
Python
scripts/gan/stylegan/prepare_data.py
xdeng7/gluon-cv
4ae90c0157d3b29caee68371afe73c06b132fc7c
[ "Apache-2.0" ]
1
2020-04-30T03:37:13.000Z
2020-04-30T03:37:13.000Z
scripts/gan/stylegan/prepare_data.py
xdeng7/gluon-cv
4ae90c0157d3b29caee68371afe73c06b132fc7c
[ "Apache-2.0" ]
null
null
null
scripts/gan/stylegan/prepare_data.py
xdeng7/gluon-cv
4ae90c0157d3b29caee68371afe73c06b132fc7c
[ "Apache-2.0" ]
null
null
null
import argparse from io import BytesIO import multiprocessing from functools import partial from PIL import Image import lmdb from tqdm import tqdm import mxnet.ndarray as nd from mxnet.gluon.data.vision.datasets import ImageFolderDataset def resize_and_convert(img, size, quality=100): img = img.resize(size) ...
26.648649
88
0.656187
e42e8675b1f2ac3c4052bd21bf7356c67741e6ec
4,863
py
Python
directory/territories/api.py
hyzyla/directory.org.ua
f47ccc42b566cbdd30d735da8b47e5e7426ccf7b
[ "MIT" ]
null
null
null
directory/territories/api.py
hyzyla/directory.org.ua
f47ccc42b566cbdd30d735da8b47e5e7426ccf7b
[ "MIT" ]
null
null
null
directory/territories/api.py
hyzyla/directory.org.ua
f47ccc42b566cbdd30d735da8b47e5e7426ccf7b
[ "MIT" ]
null
null
null
from http import HTTPStatus from fastapi import Depends, HTTPException, Request from sqlalchemy.orm import Session from directory.lib.db import db_dependency from directory.lib.router import APIRouter from directory.lib.settings import settings from directory.territories import db from directory.territories.schemas i...
27.167598
85
0.68394
c6a0afe1522df50deaab3d1163084434e16a12b7
91
py
Python
rubin_sim/maf/metricBundles/__init__.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/maf/metricBundles/__init__.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/maf/metricBundles/__init__.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
from .metricBundle import * from .metricBundleGroup import * from .moMetricBundle import *
22.75
32
0.802198
38b3f46f4879ed53cb36ad28b86d9bf221c6e80e
10,158
py
Python
Pillow-master/src/PIL/ImImagePlugin.py
mingyuyng/DCGAN-tensorflow-master
975e968880ceb8b03a9502f75d141ed10532b861
[ "MIT" ]
null
null
null
Pillow-master/src/PIL/ImImagePlugin.py
mingyuyng/DCGAN-tensorflow-master
975e968880ceb8b03a9502f75d141ed10532b861
[ "MIT" ]
null
null
null
Pillow-master/src/PIL/ImImagePlugin.py
mingyuyng/DCGAN-tensorflow-master
975e968880ceb8b03a9502f75d141ed10532b861
[ "MIT" ]
null
null
null
# # The Python Imaging Library. # $Id$ # # IFUNC IM file handling for PIL # # history: # 1995-09-01 fl Created. # 1997-01-03 fl Save palette images # 1997-01-08 fl Added sequence support # 1997-01-23 fl Added P and RGB save support # 1997-05-31 fl Read floating point images # 1997-06-22 fl Save floating poi...
29.189655
78
0.463477
2bf05924d9a0a3935d926977a0a443dee44702ba
49,564
py
Python
aqt/jax/quantization.py
mengdong/google-research
7f4622f24125f7e9d6d03662aa0fbeb51bd3374a
[ "Apache-2.0" ]
null
null
null
aqt/jax/quantization.py
mengdong/google-research
7f4622f24125f7e9d6d03662aa0fbeb51bd3374a
[ "Apache-2.0" ]
null
null
null
aqt/jax/quantization.py
mengdong/google-research
7f4622f24125f7e9d6d03662aa0fbeb51bd3374a
[ "Apache-2.0" ]
1
2021-07-22T18:17:16.000Z
2021-07-22T18:17:16.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
41.234609
105
0.706138
41225b738d5791377123f0fb2ec7b6aca1ef062d
24,806
py
Python
tests/test_constants.py
CuriBio/mantarray-desktop-app
e00ace0e8c04eca3ae79826c59a878b59e15f6ff
[ "MIT" ]
null
null
null
tests/test_constants.py
CuriBio/mantarray-desktop-app
e00ace0e8c04eca3ae79826c59a878b59e15f6ff
[ "MIT" ]
253
2020-10-16T18:29:15.000Z
2022-03-31T21:27:56.000Z
tests/test_constants.py
CuriBio/mantarray-desktop-app
e00ace0e8c04eca3ae79826c59a878b59e15f6ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from enum import IntEnum import uuid from mantarray_desktop_app import ADC_CH_TO_24_WELL_INDEX from mantarray_desktop_app import ADC_CH_TO_IS_REF_SENSOR from mantarray_desktop_app import ADC_GAIN from mantarray_desktop_app import ADC_GAIN_DESCRIPTION_TAG from mantarray_desktop_a...
45.767528
228
0.804886
4e8249cc4359ee69945ec99c2d2b5f6be3bd91f7
94
py
Python
apps.py
lowryel/Blog
964af1d6574b33cf9781ecfa162ab1362f89784c
[ "Apache-2.0" ]
null
null
null
apps.py
lowryel/Blog
964af1d6574b33cf9781ecfa162ab1362f89784c
[ "Apache-2.0" ]
null
null
null
apps.py
lowryel/Blog
964af1d6574b33cf9781ecfa162ab1362f89784c
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class TourappConfig(AppConfig): name = 'tourapp'
15.666667
34
0.712766
8f688b7fd32e5022ba85cf023e3cad122469d5a9
963
py
Python
letter/admin.py
watchdogpolska/django-civil-list
f486d9a8595bcfa3b402e608324f79f793f8e960
[ "BSD-3-Clause" ]
null
null
null
letter/admin.py
watchdogpolska/django-civil-list
f486d9a8595bcfa3b402e608324f79f793f8e960
[ "BSD-3-Clause" ]
1
2015-08-04T14:24:10.000Z
2015-08-04T14:24:10.000Z
letter/admin.py
watchdogpolska/django-civil-list
f486d9a8595bcfa3b402e608324f79f793f8e960
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.contrib import admin # Register your models here. from .models import Category, Person, Letter from ckeditor.widgets import CKEditorWidget class CategoryAdmin(admin.ModelAdmin): list_display = (u'id', 'name') search_fields = ('name',) admin.site.register(Category, Categor...
26.75
66
0.697819
bb4fe4add4ad61cf57f220fc4fbd3feb77614ae3
161
py
Python
alvi/tests/pages/home.py
alviproject/alvi
ec77919a546c11c46b178a21236792f8b0d95cbd
[ "MIT" ]
10
2015-06-01T09:11:33.000Z
2018-03-02T13:52:46.000Z
alvi/tests/pages/home.py
alviproject/alvi
ec77919a546c11c46b178a21236792f8b0d95cbd
[ "MIT" ]
null
null
null
alvi/tests/pages/home.py
alviproject/alvi
ec77919a546c11c46b178a21236792f8b0d95cbd
[ "MIT" ]
5
2015-09-17T17:34:16.000Z
2019-09-04T10:50:29.000Z
from selenium.webdriver.common.by import By from . import base class Home(base.Page): scene_links = base.make_elements(By.CSS_SELECTOR, "ul.scenes li a")
20.125
71
0.751553
b275a83d1ad8ab51060de85b662828f6f4f3363f
4,146
py
Python
intro-dnac/dnac-nbapi-hello-world/dnac-nbapi-hello-world.py
borisski/dnav3-code
9e12accb5be7e66fff5aabfdebc5ef282c687351
[ "MIT" ]
1
2020-07-25T09:24:38.000Z
2020-07-25T09:24:38.000Z
intro-dnac/dnac-nbapi-hello-world/dnac-nbapi-hello-world.py
borisski/dnav3-code
9e12accb5be7e66fff5aabfdebc5ef282c687351
[ "MIT" ]
8
2020-02-05T14:17:32.000Z
2021-09-23T23:27:46.000Z
intro-dnac/dnac-nbapi-hello-world/dnac-nbapi-hello-world.py
ljm625/dnav3-code
833c2c05401fbe84529d51dc1eb597c10b6615c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """DNAv3 - DNAC Northbound API - Hands on exercise 01 In this exercise we create helper functions to get an auth token from DNAC - get_auth_token() and also get_url(), create_url() and list_network_devices() to get a list of all network devices managed by DNA Center. In the main function we extrac...
37.017857
101
0.686686
ddd97ca973f7195e13786da55465bb43b53f019b
5,388
py
Python
datasets/xlsum/xlsum.py
xcfcode/DataLab
d1a310de4986cb704b1fe3dea859452b8c14fc71
[ "Apache-2.0" ]
null
null
null
datasets/xlsum/xlsum.py
xcfcode/DataLab
d1a310de4986cb704b1fe3dea859452b8c14fc71
[ "Apache-2.0" ]
null
null
null
datasets/xlsum/xlsum.py
xcfcode/DataLab
d1a310de4986cb704b1fe3dea859452b8c14fc71
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The HuggingFace datasets Authors, DataLab Authors and the current dataset script contributor. # # 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://ww...
30.788571
110
0.584076
752561c0080e8b2bf085141977a3a20bddfe3986
716
py
Python
tests/test_pipeline/components/regression/test_gradient_boosting.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
tests/test_pipeline/components/regression/test_gradient_boosting.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
tests/test_pipeline/components/regression/test_gradient_boosting.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
import sklearn.ensemble from autotabular.pipeline.components.regression.gradient_boosting import GradientBoosting from .test_base import BaseRegressionComponentTest class GradientBoostingComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res['default_boston'] = 0.7491382574462079 ...
31.130435
89
0.772346
1eadd48490f71cd779184bfe1b90fe2b1caac783
760
py
Python
readthedocs/profiles/urls/private.py
espdev/readthedocs.org
5052a06feae56fe5efc9b4c57c430de6007cb7c1
[ "MIT" ]
null
null
null
readthedocs/profiles/urls/private.py
espdev/readthedocs.org
5052a06feae56fe5efc9b4c57c430de6007cb7c1
[ "MIT" ]
null
null
null
readthedocs/profiles/urls/private.py
espdev/readthedocs.org
5052a06feae56fe5efc9b4c57c430de6007cb7c1
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from readthedocs.core.forms import UserProfileForm urlpatterns = patterns('', url(r'^create/', 'readthedocs.profiles.views.create_profile', { 'form_class': UserProfileForm, ...
42.222222
85
0.443421
36d6d7f168f4b82d7ab64af7de7fa39ba918129c
1,096
py
Python
timewave/__init__.py
pbrisk/timewave
26c81257264079cf11d9644bae02bf9efae3a006
[ "Apache-2.0" ]
null
null
null
timewave/__init__.py
pbrisk/timewave
26c81257264079cf11d9644bae02bf9efae3a006
[ "Apache-2.0" ]
null
null
null
timewave/__init__.py
pbrisk/timewave
26c81257264079cf11d9644bae02bf9efae3a006
[ "Apache-2.0" ]
2
2017-04-10T13:40:41.000Z
2018-05-22T14:04:43.000Z
# -*- coding: utf-8 -*- # timewave # -------- # timewave, a stochastic process evolution simulation engine in python. # # Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk] # Version: 0.6, copyright Wednesday, 18 September 2019 # Website: https://github.com/sonntagsgesicht/timewave # License: ...
29.621622
81
0.740876
073acd303bb938223a4c684811de654defd0a63c
6,228
py
Python
simplify/explorer/components.py
WithPrecedent/ml_funnel
5302da8bf4944ac518d22cc37c181e5a09baaabe
[ "Apache-2.0" ]
null
null
null
simplify/explorer/components.py
WithPrecedent/ml_funnel
5302da8bf4944ac518d22cc37c181e5a09baaabe
[ "Apache-2.0" ]
null
null
null
simplify/explorer/components.py
WithPrecedent/ml_funnel
5302da8bf4944ac518d22cc37c181e5a09baaabe
[ "Apache-2.0" ]
2
2019-10-07T14:36:26.000Z
2020-02-23T00:50:20.000Z
""" explorer.components: Corey Rayburn Yung <coreyrayburnyung@gmail.com> Copyright 2020, Corey Rayburn Yung License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0) Contents: """ from __future__ import annotations import dataclasses from types import ModuleType from typing import (Any, Callable, ClassVa...
35.186441
80
0.506423
66ddd68b0f1ac6dd2f975a0689ce68fe6dbb0785
4,414
py
Python
best_cn_finetune/squad-style-data/cmrc2018_evaluate.py
you-know-who-2017/QA_MRC
323591995ac4ca0ca39e6101f6ff1c6f88104bc8
[ "MIT" ]
null
null
null
best_cn_finetune/squad-style-data/cmrc2018_evaluate.py
you-know-who-2017/QA_MRC
323591995ac4ca0ca39e6101f6ff1c6f88104bc8
[ "MIT" ]
null
null
null
best_cn_finetune/squad-style-data/cmrc2018_evaluate.py
you-know-who-2017/QA_MRC
323591995ac4ca0ca39e6101f6ff1c6f88104bc8
[ "MIT" ]
null
null
null
''' Author: geekli Date: 2020-12-28 15:51:58 LastEditTime: 2020-12-28 15:52:08 LastEditors: your name Description: FilePath: \QA_MRC\squad-style-data\cmrc2018_evaluate.py ''' # -*- coding: utf-8 -*- ''' Evaluation script for CMRC 2018 version: v5 - special Note: v5 - special: Evaluate on SQuAD-style CMRC 2018 Dataset...
27.416149
80
0.651337
6bb8d3ef5b2c5846e402829fbe273dafddc4507d
771
py
Python
cansi-pattern-state/w/v/tStateState_h.py
lopesivan/cansi-pattern
d41e379e728682ed41863104984e05221d347d8e
[ "Apache-2.0" ]
null
null
null
cansi-pattern-state/w/v/tStateState_h.py
lopesivan/cansi-pattern
d41e379e728682ed41863104984e05221d347d8e
[ "Apache-2.0" ]
null
null
null
cansi-pattern-state/w/v/tStateState_h.py
lopesivan/cansi-pattern
d41e379e728682ed41863104984e05221d347d8e
[ "Apache-2.0" ]
null
null
null
"""Classe de template.""" from .factory import Factory class TStateState_h(Factory): """Classe de template.""" def __init__(self, data_model, template_name, index): Factory.__init__(self, template_name) self.data_model = data_model self.tmpl.index = index self.tmpl.name = "S...
27.535714
96
0.616083
09d29d0bee066d1fea8e5591ba589a403c537bb4
2,905
py
Python
deps/v8/test/intl/testcfg.py
WigWagCo/node
e6e85cbab339699420e4fb7ce4de9b0ba8d58d18
[ "Artistic-2.0" ]
2
2015-03-16T01:58:21.000Z
2021-06-12T05:39:52.000Z
deps/v8/test/intl/testcfg.py
hafeez-syed/node
5b230007adba91163a2f49dbdd9a16d5834fd322
[ "Artistic-2.0" ]
null
null
null
deps/v8/test/intl/testcfg.py
hafeez-syed/node
5b230007adba91163a2f49dbdd9a16d5834fd322
[ "Artistic-2.0" ]
1
2021-03-15T17:23:59.000Z
2021-03-15T17:23:59.000Z
# Copyright 2013 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
39.794521
78
0.712909
8f570101d1f919766d1bb429758857e1be19160d
4,133
py
Python
tests/datastore_redis/test_multiple_dbs.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
92
2020-06-12T17:53:23.000Z
2022-03-01T11:13:21.000Z
tests/datastore_redis/test_multiple_dbs.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
347
2020-07-10T00:10:19.000Z
2022-03-31T17:58:56.000Z
tests/datastore_redis/test_multiple_dbs.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
58
2020-06-17T13:51:57.000Z
2022-03-06T14:26:53.000Z
# Copyright 2010 New Relic, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
34.441667
84
0.739656
a46decdd077a08dce6b0d6f206a63de089489592
211
py
Python
web/producer.py
itamarsky/devops-tasks
c3fa44c4825f5157c78c9853d153946e37f33bca
[ "MIT" ]
null
null
null
web/producer.py
itamarsky/devops-tasks
c3fa44c4825f5157c78c9853d153946e37f33bca
[ "MIT" ]
null
null
null
web/producer.py
itamarsky/devops-tasks
c3fa44c4825f5157c78c9853d153946e37f33bca
[ "MIT" ]
null
null
null
from kafka import KafkaProducer import json def producer(): return KafkaProducer(security_protocol="PLAINTEXT", value_serializer=lambda v: json.dumps(v).encode('utf-8'), bootstrap_servers=['kafka:9092'])
26.375
147
0.772512
75ae387568013a16b49212fc9a709fa2d5a51cea
2,096
py
Python
examples/threathunter/process_exporter.py
rathnadeep/cbapi-python
55375d8796a9d88d00bd16df13d71a2d8d76dd9c
[ "MIT" ]
null
null
null
examples/threathunter/process_exporter.py
rathnadeep/cbapi-python
55375d8796a9d88d00bd16df13d71a2d8d76dd9c
[ "MIT" ]
null
null
null
examples/threathunter/process_exporter.py
rathnadeep/cbapi-python
55375d8796a9d88d00bd16df13d71a2d8d76dd9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from cbapi.example_helpers import build_cli_parser, get_cb_threathunter_object from cbapi.psc.threathunter import Process import json import csv def main(): parser = build_cli_parser("Query processes") parser.add_argument("-p", type=str, help="process guid", default=None) ...
37.428571
97
0.574905
1bb4c9a9b142776cd3e71da160e067bdf50a61a2
64,601
py
Python
tests/admin_widgets/tests.py
stevenheroo/django
676bd084f2509f4201561d5c77ed4ecbd157bfa0
[ "BSD-3-Clause", "0BSD" ]
null
null
null
tests/admin_widgets/tests.py
stevenheroo/django
676bd084f2509f4201561d5c77ed4ecbd157bfa0
[ "BSD-3-Clause", "0BSD" ]
1
2021-05-19T06:22:48.000Z
2021-05-19T06:22:48.000Z
tests/admin_widgets/tests.py
stevenheroo/django
676bd084f2509f4201561d5c77ed4ecbd157bfa0
[ "BSD-3-Clause", "0BSD" ]
2
2021-10-13T10:49:28.000Z
2021-11-30T12:33:33.000Z
import gettext import os import re from datetime import datetime, timedelta from importlib import import_module import pytz from django import forms from django.conf import settings from django.contrib import admin from django.contrib.admin import widgets from django.contrib.admin.tests import AdminSeleniumTestCase f...
44.491047
119
0.638798
908056ff88fedb13a85bf77ab30de842eda559fd
555
py
Python
tokenizer.py
jgprogramming/article-summarization
948197dc6038783947479cd51203d407c66dfe6f
[ "MIT" ]
null
null
null
tokenizer.py
jgprogramming/article-summarization
948197dc6038783947479cd51203d407c66dfe6f
[ "MIT" ]
null
null
null
tokenizer.py
jgprogramming/article-summarization
948197dc6038783947479cd51203d407c66dfe6f
[ "MIT" ]
null
null
null
import nltk from nltk.stem.lancaster import LancasterStemmer stemmer = LancasterStemmer() def stem_tokens(tokens): stemmed = [] for item in tokens: stemmed.append(stemmer.stem(item)) return stemmed def tokenize(text): tokens = nltk.word_tokenize(text) stems = stem_tokens(tokens) stems...
24.130435
62
0.69009
64174df3f745b290adadde3c335a9ea968f103e6
464
py
Python
Python2/candies.py
LaughDonor/hackerrank
07fc0e596b2b456aa72a3cd66036d718253777f0
[ "Apache-2.0" ]
null
null
null
Python2/candies.py
LaughDonor/hackerrank
07fc0e596b2b456aa72a3cd66036d718253777f0
[ "Apache-2.0" ]
null
null
null
Python2/candies.py
LaughDonor/hackerrank
07fc0e596b2b456aa72a3cd66036d718253777f0
[ "Apache-2.0" ]
null
null
null
__author__, N = "LaughDonor", input() candy, ratings = [1] * (N + 1), [input() for x in xrange(N)] + [0] for i, c in enumerate(candy[1:N], 1): left, mid, right = ratings[i - 1:i + 2] if left < mid: c = candy[i - 1] + 1 elif left > mid: j = i while i > 0 and ratings[j - 1] > ratings[...
27.294118
66
0.469828
de6ce813fe539aac67e8b0e2d072c20a18555ea1
1,320
bzl
Python
ros/test.bzl
mvukov/rules_ros
0919c94fae4c84f40c9ec23164345f6db8aef853
[ "Apache-2.0" ]
14
2021-05-02T00:58:45.000Z
2022-01-11T07:01:27.000Z
ros/test.bzl
mvukov/rules_ros
0919c94fae4c84f40c9ec23164345f6db8aef853
[ "Apache-2.0" ]
null
null
null
ros/test.bzl
mvukov/rules_ros
0919c94fae4c84f40c9ec23164345f6db8aef853
[ "Apache-2.0" ]
1
2022-02-07T00:17:23.000Z
2022-02-07T00:17:23.000Z
"""Implements functionality for defining ROS tests. """ load("//third_party:expand_template.bzl", "expand_template") load("@rules_python//python:defs.bzl", "py_test") def ros_test(name, nodes, launch_file, launch_args = None, size = None): """Defines a ROS test. Args: name: The name of the test. ...
31.428571
76
0.619697
980065ef92b38d4a6696df91cabfc6eed31f38f7
1,437
py
Python
1-99/t17.py
zifter/projecteuler
d2deb86254ffb3b0c08211da5dd2175f5b0fcb31
[ "MIT" ]
null
null
null
1-99/t17.py
zifter/projecteuler
d2deb86254ffb3b0c08211da5dd2175f5b0fcb31
[ "MIT" ]
null
null
null
1-99/t17.py
zifter/projecteuler
d2deb86254ffb3b0c08211da5dd2175f5b0fcb31
[ "MIT" ]
null
null
null
# /usr/bin python mapped_number = { 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten', 11: 'eleven', 12: 'twelve', 13: 'thirteen', 14: 'fourteen', 15: 'fifteen', 16: 'sixteen', 17: 'seventeen...
20.528571
91
0.491997
4d8d0c1411bfe6ba5b793076b49281d4a101ff86
5,999
py
Python
tests/mypy/modules/success.py
sbv-csis/pydantic
eb21f92a7d2a1cda26b77b73cdc72ddec933aaf9
[ "MIT" ]
2
2021-05-26T14:33:45.000Z
2022-01-22T13:07:57.000Z
tests/mypy/modules/success.py
sbv-csis/pydantic
eb21f92a7d2a1cda26b77b73cdc72ddec933aaf9
[ "MIT" ]
98
2021-03-07T15:01:32.000Z
2022-03-28T18:05:24.000Z
tests/mypy/modules/success.py
sbv-csis/pydantic
eb21f92a7d2a1cda26b77b73cdc72ddec933aaf9
[ "MIT" ]
1
2022-02-05T13:47:21.000Z
2022-02-05T13:47:21.000Z
""" Test pydantic's compliance with mypy. Do a little skipping about with types to demonstrate its usage. """ import json import sys from datetime import date, datetime from pathlib import Path from typing import Any, Dict, Generic, List, Optional, TypeVar from uuid import UUID from pydantic import ( UUID1, B...
25.312236
114
0.705618
97793ce8f65b8f39b67016b04c209af937aed0df
33,629
py
Python
pandas/tests/io/xml/test_to_xml.py
madhuv2002/pandas
006f1e0efb3ec81d52ff4d080b0c770b7b79d041
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2021-05-07T04:58:36.000Z
2021-05-07T04:58:59.000Z
pandas/tests/io/xml/test_to_xml.py
madhuv2002/pandas
006f1e0efb3ec81d52ff4d080b0c770b7b79d041
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/io/xml/test_to_xml.py
madhuv2002/pandas
006f1e0efb3ec81d52ff4d080b0c770b7b79d041
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2021-06-16T07:19:12.000Z
2021-12-16T10:24:44.000Z
from io import ( BytesIO, StringIO, ) import os import sys from typing import Union import numpy as np import pytest import pandas.util._test_decorators as td from pandas import DataFrame import pandas._testing as tm from pandas.io.common import get_handle from pandas.io.xml import read_xml """ CHECKLIST ...
25.828725
88
0.601832
8311647048cfbeb58c4691a1cfe57b5bf517df7e
383
py
Python
pythonteste/desafio41.py
dangiotto/Python
29a9d18d7595a5c21e65dafc39f7fd4c55d8971c
[ "MIT" ]
1
2020-10-17T03:23:59.000Z
2020-10-17T03:23:59.000Z
pythonteste/desafio41.py
dangiotto/Python
29a9d18d7595a5c21e65dafc39f7fd4c55d8971c
[ "MIT" ]
null
null
null
pythonteste/desafio41.py
dangiotto/Python
29a9d18d7595a5c21e65dafc39f7fd4c55d8971c
[ "MIT" ]
null
null
null
i = int(input('Informe sua idade : ')) if i<=9: print('Idade {} - Até 9 anos : MIRIM'.format(i)) elif i>9 and i<=14: print('Idade {} - Até 14 anos: INFANTIL'.format(i)) elif i>14 and i<=19: print('Idade {} - Até 19 anos : JUNIOR'.format(i)) elif i>19 and i<=20: print('Idade {} - Até 20 anos : SêNIOR'.fo...
34.818182
55
0.590078
7f3a717a56ec983c93fd4d190a83beaf7a2c5029
3,845
py
Python
models/artist.py
wanderindev/fyyur
acf3a44ce7fae6b24576a320afd447c0595d76e5
[ "MIT" ]
null
null
null
models/artist.py
wanderindev/fyyur
acf3a44ce7fae6b24576a320afd447c0595d76e5
[ "MIT" ]
null
null
null
models/artist.py
wanderindev/fyyur
acf3a44ce7fae6b24576a320afd447c0595d76e5
[ "MIT" ]
2
2020-07-16T22:02:13.000Z
2020-11-22T21:16:28.000Z
from datetime import datetime from sqlalchemy import desc, exc from app import db from constants import GENRE_CHECK from .mixin import ModelMixin from .show import Show class Artist(db.Model, ModelMixin): __tablename__ = "artists" id = db.Column(db.Integer, primary_key=True) name = db.Column(...
33.434783
79
0.583355
1dccaaf07d65ae0b66c9f791eb1d6d2ce5d8cbd0
4,132
py
Python
baselines/jft/experiments/jft300m_vit_base16_sngp_finetune_cifar100.py
sorennelson/uncertainty-baselines
2d8102d1df6f413e85becb0d37b468acbf8730e7
[ "Apache-2.0" ]
794
2020-07-17T06:23:58.000Z
2022-03-31T08:31:53.000Z
baselines/jft/experiments/jft300m_vit_base16_sngp_finetune_cifar100.py
piotr-teterwak/uncertainty-baselines
8eba807c5224279c582b9d6b86035e6f8a3783a9
[ "Apache-2.0" ]
136
2020-08-04T22:42:04.000Z
2022-03-26T21:07:03.000Z
baselines/jft/experiments/jft300m_vit_base16_sngp_finetune_cifar100.py
piotr-teterwak/uncertainty-baselines
8eba807c5224279c582b9d6b86035e6f8a3783a9
[ "Apache-2.0" ]
129
2020-08-16T12:46:55.000Z
2022-03-31T23:00:10.000Z
# coding=utf-8 # Copyright 2021 The Uncertainty Baselines 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 ap...
35.316239
114
0.723136
dc30811ed621815d0fb75df95b4176a7970c898b
124
py
Python
blog/admin.py
arpitansu/src
a5221fdd1ab9bb3b51be6a7ed338a0886fdc68e8
[ "MIT" ]
null
null
null
blog/admin.py
arpitansu/src
a5221fdd1ab9bb3b51be6a7ed338a0886fdc68e8
[ "MIT" ]
2
2021-03-30T14:15:31.000Z
2021-04-08T21:55:29.000Z
blog/admin.py
arpitansu/src
a5221fdd1ab9bb3b51be6a7ed338a0886fdc68e8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import BlogPost # Register your models here. admin.site.register(BlogPost)
15.5
32
0.798387
c5afde903c994c1ca57f1fa41db2b2eb96c27dd5
387
py
Python
blockchain/database/db.py
Adasumizox/crypto
45cb3cd19007a1b319efea20137a04a83afcf975
[ "MIT" ]
null
null
null
blockchain/database/db.py
Adasumizox/crypto
45cb3cd19007a1b319efea20137a04a83afcf975
[ "MIT" ]
null
null
null
blockchain/database/db.py
Adasumizox/crypto
45cb3cd19007a1b319efea20137a04a83afcf975
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base SQLALCHEMY_DATABASE_URL = 'sqlite:///./blockchain.db' engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) SessionLocal = sessionmaker(autoco...
32.25
74
0.819121
7e4cc7754dcbfda2b4bf225a993ac123ae4cf04d
5,446
py
Python
scripts/generate_ant_maze_datasets.py
Thibaud-Ardoin/d4rl
631cdcbf93441384dcf96df39a70c287749ab2ad
[ "Apache-2.0" ]
null
null
null
scripts/generate_ant_maze_datasets.py
Thibaud-Ardoin/d4rl
631cdcbf93441384dcf96df39a70c287749ab2ad
[ "Apache-2.0" ]
null
null
null
scripts/generate_ant_maze_datasets.py
Thibaud-Ardoin/d4rl
631cdcbf93441384dcf96df39a70c287749ab2ad
[ "Apache-2.0" ]
null
null
null
import numpy as np import pickle import gzip import h5py import argparse from offline_rl.locomotion import maze_env, ant, swimmer from offline_rl.locomotion.wrappers import NormalizedBoxEnv import torch from PIL import Image import os def reset_data(): return {'observations': [], 'actions': [], ...
32.807229
133
0.624311
f2657fb6ee0626dd9bf41c6d21da48be0370016e
8,057
py
Python
xnatwrapper/examcard2json.py
lawlessrd/aslprep
22ec61f482cc3561f4fd35d769af0fe8bc2e80cb
[ "BSD-3-Clause" ]
null
null
null
xnatwrapper/examcard2json.py
lawlessrd/aslprep
22ec61f482cc3561f4fd35d769af0fe8bc2e80cb
[ "BSD-3-Clause" ]
null
null
null
xnatwrapper/examcard2json.py
lawlessrd/aslprep
22ec61f482cc3561f4fd35d769af0fe8bc2e80cb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python ''' Inputs: -i: Filename of text file containing Exam Card info -s: List of asl scan names to search in exam card -b: BIDS file structure containing nifti files and json sidecars Outputs: updated json sidecar for ASL images in Exam Card Name: sub-01_ses-01_asl.json OR sub-01_ses-01_m0scan.json ...
31.350195
100
0.685367
bfc5e876d5aca8719bc659c9430188beb11437f2
2,842
py
Python
FunnelCake/SpotifyHelper.py
JaredDyreson/Funnel-Cake
8d0343c30921b4c0a865d5a5ae11a5ee1f1e8b28
[ "MIT" ]
1
2021-06-11T01:28:44.000Z
2021-06-11T01:28:44.000Z
FunnelCake/SpotifyHelper.py
JaredDyreson/Funnel-Cake
8d0343c30921b4c0a865d5a5ae11a5ee1f1e8b28
[ "MIT" ]
1
2022-02-18T06:57:15.000Z
2022-02-18T06:57:15.000Z
FunnelCake/SpotifyHelper.py
JaredDyreson/Funnel-Cake
8d0343c30921b4c0a865d5a5ae11a5ee1f1e8b28
[ "MIT" ]
null
null
null
""" attempts to control functions that would directly manipulate Spotify playlists (more of a collection of scripts) """ from FunnelCake import SpotifyPlaylist from FunnelCake import PlaylistManager from pprint import pprint import re def clone(manager: PlaylistManager, src: str, force_override=False, custom_name=No...
39.472222
138
0.695285
bdb55d9dd66ff4acee9db7ce122e9e127833f376
772
py
Python
problem5.py
mpUrban/python_problems
d8c67a33119dce3a558bb1e76b9d3595932ddfa8
[ "MIT" ]
null
null
null
problem5.py
mpUrban/python_problems
d8c67a33119dce3a558bb1e76b9d3595932ddfa8
[ "MIT" ]
null
null
null
problem5.py
mpUrban/python_problems
d8c67a33119dce3a558bb1e76b9d3595932ddfa8
[ "MIT" ]
null
null
null
# written in VS Code with jupyter extension #https://simpleprogrammer.com/programming-interview-questions/ # How do you find duplicate numbers in an array if it contains multiple duplicates? #%% testArray = [2,1,5,8,4,5,4,7,3,9,4,6,1] print('Given array: ' + str(testArray)) #print('Pairs with sum equal to target: ')...
24.125
83
0.694301
aedd70eb81f88f6c8d90ce17075cec2c30a85149
615
py
Python
0088_Merge_Sorted_Array.py
21PIRLO21/LeetCode2020
ccf318749067214ff3cdf9964a81d6b8422f986e
[ "MIT" ]
null
null
null
0088_Merge_Sorted_Array.py
21PIRLO21/LeetCode2020
ccf318749067214ff3cdf9964a81d6b8422f986e
[ "MIT" ]
null
null
null
0088_Merge_Sorted_Array.py
21PIRLO21/LeetCode2020
ccf318749067214ff3cdf9964a81d6b8422f986e
[ "MIT" ]
null
null
null
import List class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify nums1 in-place instead. """ # 从后往前双指针 index1, index2 = m - 1, n - 1 end = m + n - 1 while index1 >= 0 and...
27.954545
81
0.445528
6d465fb0b2dd635abace840c0b0720296abc6426
1,263
py
Python
Python version/languages/asp/answer_set.py
DomenicoIngrati/EmbASP
05000e0e65e7c84609f45e76dd32f7abaa0c5fbe
[ "MIT" ]
null
null
null
Python version/languages/asp/answer_set.py
DomenicoIngrati/EmbASP
05000e0e65e7c84609f45e76dd32f7abaa0c5fbe
[ "MIT" ]
null
null
null
Python version/languages/asp/answer_set.py
DomenicoIngrati/EmbASP
05000e0e65e7c84609f45e76dd32f7abaa0c5fbe
[ "MIT" ]
null
null
null
from languages.asp.asp_mapper import ASPMapper class AnswerSet(object): """A collection of data representing a generic Answer Set.""" def __init__(self, value, weight_map=None): if weight_map is None: weight_map = dict() self.__value = value # Where data of answer set is stored ...
30.071429
84
0.608076
ee0a01b95bd37d1e0a51b0694b2d564962edf877
295
py
Python
travello/models.py
Prantikc22/Travel-App-Django
2542590ea7c22da671abd561b5b06215bb3fd37c
[ "MIT" ]
null
null
null
travello/models.py
Prantikc22/Travel-App-Django
2542590ea7c22da671abd561b5b06215bb3fd37c
[ "MIT" ]
6
2021-03-19T02:45:08.000Z
2021-09-08T01:57:23.000Z
travello/models.py
Prantikc22/Travel-App-Django
2542590ea7c22da671abd561b5b06215bb3fd37c
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Destination(models.Model): name = models.CharField(max_length=100) img = models.ImageField(upload_to='pics') dsc = models.TextField() price = models.IntegerField() offer = models.BooleanField(default=False)
26.818182
46
0.715254
51fa24253cdcec1fdd214ee2e7fcf7018e5676c1
28,289
py
Python
mmedit/datasets/pipelines/crop.py
akimotty877/mmediting
cae872d6f3e867ba144c7c0dbc29a0ee1a29e5a6
[ "Apache-2.0" ]
null
null
null
mmedit/datasets/pipelines/crop.py
akimotty877/mmediting
cae872d6f3e867ba144c7c0dbc29a0ee1a29e5a6
[ "Apache-2.0" ]
null
null
null
mmedit/datasets/pipelines/crop.py
akimotty877/mmediting
cae872d6f3e867ba144c7c0dbc29a0ee1a29e5a6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import math import random import mmcv import numpy as np from torch.nn.modules.utils import _pair from ..registry import PIPELINES from .utils import random_choose_unknown @PIPELINES.register_module() class Crop: """Crop data to specific size for training. Ar...
37.718667
79
0.572413
b6d53abf6d7c153b38c23e0d0c79382d3138a8a9
13,609
py
Python
lms_app/migrations/0001_initial.py
neethu-niya/sbr
cdae2000e718ccc6fca948d241f29acb2d2b388d
[ "MIT" ]
null
null
null
lms_app/migrations/0001_initial.py
neethu-niya/sbr
cdae2000e718ccc6fca948d241f29acb2d2b388d
[ "MIT" ]
null
null
null
lms_app/migrations/0001_initial.py
neethu-niya/sbr
cdae2000e718ccc6fca948d241f29acb2d2b388d
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-12-11 10:25 import autoslug.fields from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel...
55.097166
160
0.571754
9df9e5e190eefc7158034bd5de3cc58878918fa3
9,797
py
Python
pybind/slxos/v17r_2_00/routing_system/ipv6/router/ospf/area/virtual_link/link_properties/authentication/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/routing_system/ipv6/router/ospf/area/virtual_link/link_properties/authentication/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/routing_system/ipv6/router/ospf/area/virtual_link/link_properties/authentication/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
60.850932
587
0.735225
a399a1cd9511df8e144d282c66259aa07549a6d8
2,293
py
Python
template/template.py
axano/Metastasis-Framework
ff42bcd7e6c4463ff4cbf0d9baba348d0416ca16
[ "MIT" ]
3
2020-05-03T13:05:08.000Z
2020-07-02T05:23:33.000Z
template/template.py
axano/Metastasis-Framework
ff42bcd7e6c4463ff4cbf0d9baba348d0416ca16
[ "MIT" ]
null
null
null
template/template.py
axano/Metastasis-Framework
ff42bcd7e6c4463ff4cbf0d9baba348d0416ca16
[ "MIT" ]
1
2020-07-02T02:36:04.000Z
2020-07-02T02:36:04.000Z
import ctypes # ctypes makes it very simple to interact with the Windows API in a python script,so it will be a required import for this script. It provides C compatible data types and allows calling functions in DLLs or shared libraries shellcode = ( ); # Shellcode - This is the shellcode that will be injected into me...
88.192308
277
0.69167
671a2a7a05811b8fddca5dc1bcc9bbd78e0c5f10
8,649
py
Python
experiments/image_generation/gans/cgan.py
habout632/gans
5a1f8859d81c3f0356b9b23901ed515d04309268
[ "MIT" ]
null
null
null
experiments/image_generation/gans/cgan.py
habout632/gans
5a1f8859d81c3f0356b9b23901ed515d04309268
[ "MIT" ]
null
null
null
experiments/image_generation/gans/cgan.py
habout632/gans
5a1f8859d81c3f0356b9b23901ed515d04309268
[ "MIT" ]
null
null
null
import os import torch from torch import nn, optim from torch.autograd.variable import Variable from torchvision import transforms, datasets import torch.nn as nn from experiments.image_generation.utils import Logger # mnist data # def mnist_data(): # , transforms.Normalize((.5, .5, .5), (.5,.5,.5)) compose = transfo...
25.215743
109
0.700659
40635e8aa2700604895758adea4cc527eee337ac
794
py
Python
src/sqlfluff/rules/L012.py
markpolyak/sqlfluff
8d7ff6480d4807aabf208c99f65998870214fc51
[ "MIT" ]
1
2021-12-29T21:56:44.000Z
2021-12-29T21:56:44.000Z
src/sqlfluff/rules/L012.py
markpolyak/sqlfluff
8d7ff6480d4807aabf208c99f65998870214fc51
[ "MIT" ]
1
2021-09-15T18:20:39.000Z
2021-09-15T18:20:39.000Z
src/sqlfluff/rules/L012.py
markpolyak/sqlfluff
8d7ff6480d4807aabf208c99f65998870214fc51
[ "MIT" ]
null
null
null
"""Implementation of Rule L012.""" from sqlfluff.rules.L011 import Rule_L011 class Rule_L012(Rule_L011): """Implicit/explicit aliasing of columns. Aliasing of columns to follow preference (explicit using an `AS` clause is default). NB: This rule inherits its functionality from obj:`Rule_L011` but i...
20.894737
72
0.633501
095aee77fca61cd5b3f0814ab79811ff084e3d8b
170
py
Python
tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_Lag1Trend_Seasonal_Hour_MLP.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_Lag1Trend_Seasonal_Hour_MLP.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_Lag1Trend_Seasonal_Hour_MLP.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['RelativeDifference'] , ['Lag1Trend'] , ['Seasonal_Hour'] , ['MLP'] );
42.5
92
0.764706
ab56cfe6e5e3527c691beca6dac656c72e8b0342
2,303
py
Python
test/test.py
kovacsv/DebugToFile
3dfdbe82895624e22252bd4da38f24ccd2204918
[ "MIT" ]
null
null
null
test/test.py
kovacsv/DebugToFile
3dfdbe82895624e22252bd4da38f24ccd2204918
[ "MIT" ]
null
null
null
test/test.py
kovacsv/DebugToFile
3dfdbe82895624e22252bd4da38f24ccd2204918
[ "MIT" ]
null
null
null
import os import subprocess def WriteTitle (title): print '--- ' + title + ' ---' def Error (): raise Exception ('Test Failed') def GetFileLines (fileName): file = open (resultFilePath) lines = file.readlines () file.close () return lines def GetCommandOutput (command): process = subprocess.Popen (command,...
27.094118
114
0.684325
9b66b87c6060fb35a82d4d9b0d62059ef3896513
4,740
py
Python
scipy/io/tests/test_netcdf.py
dlax/scipy
221cb8fa31c45d08ec6d9f946ebf9476bdc1fccd
[ "BSD-3-Clause" ]
2
2015-10-30T10:04:46.000Z
2017-03-11T00:58:21.000Z
scipy/io/tests/test_netcdf.py
aidoom/scipy
112d9a25fe3b898eff862e4d4596409372a9b237
[ "BSD-3-Clause" ]
null
null
null
scipy/io/tests/test_netcdf.py
aidoom/scipy
112d9a25fe3b898eff862e4d4596409372a9b237
[ "BSD-3-Clause" ]
null
null
null
''' Tests for netcdf ''' import os from os.path import join as pjoin, dirname import shutil import tempfile import time import sys if sys.version_info[0] >= 3: from io import BytesIO else: from StringIO import StringIO as BytesIO from glob import glob import numpy as np from numpy.compat import asbytes from ...
31.6
77
0.655485
0fe3c628a8403ca80280ecb1963c6e7b148a7e96
2,583
py
Python
azure-mgmt-media/azure/mgmt/media/models/job_error_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-media/azure/mgmt/media/models/job_error_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-media/azure/mgmt/media/models/job_error_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.359375
77
0.629113
15dd16c91a20ba1abe6daab40e9abafcd6f86fb3
31,439
py
Python
tests/drop_packets/drop_packets.py
stephengao-ragilenetworks/sonic-mgmt
b7ce8f6592f12ee8a7a0daca9a4337d5eaf9313f
[ "Apache-2.0" ]
1
2021-09-24T08:40:57.000Z
2021-09-24T08:40:57.000Z
tests/drop_packets/drop_packets.py
stephengao-ragilenetworks/sonic-mgmt
b7ce8f6592f12ee8a7a0daca9a4337d5eaf9313f
[ "Apache-2.0" ]
4
2019-07-26T08:42:01.000Z
2020-12-16T08:34:52.000Z
tests/drop_packets/drop_packets.py
stephengao-ragilenetworks/sonic-mgmt
b7ce8f6592f12ee8a7a0daca9a4337d5eaf9313f
[ "Apache-2.0" ]
1
2021-06-13T07:38:59.000Z
2021-06-13T07:38:59.000Z
import logging import os import importlib import netaddr import pytest import random import time import ptf.testutils as testutils import ptf.mask as mask import ptf.packet as packet from tests.common.helpers.assertions import pytest_assert, pytest_require from tests.common.platform.device_utils import fanout_switch_...
42.143432
153
0.675562
f57fd4d23f427b0686cd4356a8f760d438e20f33
2,824
py
Python
apps/jobs/tasks.py
apoorvkhare07/EvalAI
7961addc9e6717ce962ea74e275b6d1070f6a601
[ "BSD-3-Clause" ]
1
2019-11-08T05:23:11.000Z
2019-11-08T05:23:11.000Z
apps/jobs/tasks.py
apoorvkhare07/EvalAI
7961addc9e6717ce962ea74e275b6d1070f6a601
[ "BSD-3-Clause" ]
1
2021-05-05T00:33:23.000Z
2021-05-05T00:33:23.000Z
apps/jobs/tasks.py
apoorvkhare07/EvalAI
7961addc9e6717ce962ea74e275b6d1070f6a601
[ "BSD-3-Clause" ]
1
2020-10-03T04:37:58.000Z
2020-10-03T04:37:58.000Z
import logging import os import shutil from challenges.models import ChallengePhase from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from django.http import HttpRequest from evalai.celery import app from participants.models import ParticipantTeam from participan...
33.619048
103
0.673513
20900e0c2f5ec60ccb5701eaaa4e78fecbd6d50d
1,314
py
Python
CrittersProto/generator/uplift.py
nickjbenson/Kami
2c9614f66055bea02f660f41c3aa5a00083331b8
[ "MIT" ]
1
2018-02-26T13:51:23.000Z
2018-02-26T13:51:23.000Z
CrittersProto/generator/uplift.py
nickjbenson/Kami
2c9614f66055bea02f660f41c3aa5a00083331b8
[ "MIT" ]
null
null
null
CrittersProto/generator/uplift.py
nickjbenson/Kami
2c9614f66055bea02f660f41c3aa5a00083331b8
[ "MIT" ]
null
null
null
################################################################## # # benchan # # MIT License (http://opensource.org/licenses/MIT) # ################################################################## from baseGenerator import BaseGenerator import random NOTES_PER_BEAT = 1 kPitches = (60, 64, 67, 72,76,79,84, 88, 65...
24.792453
76
0.555556
831cc43188b2ee63669214ececf71ad7cd45f674
2,791
py
Python
api_v1/models.py
Fastex007/api_yamdb
93fd2054111b86d392f5d5769dbe125c16b06126
[ "BSD-3-Clause" ]
null
null
null
api_v1/models.py
Fastex007/api_yamdb
93fd2054111b86d392f5d5769dbe125c16b06126
[ "BSD-3-Clause" ]
null
null
null
api_v1/models.py
Fastex007/api_yamdb
93fd2054111b86d392f5d5769dbe125c16b06126
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from .validators import date_validator from django.core.validators import MinValueValidator, MaxValueValidator User = get_user_model() class Genres(models.Model): name = models.CharField(verbose_name='Название жанра', max_length=200) ...
27.097087
76
0.635973
cfff7a46d5477eb4e278e7191fed6a8932cfd462
2,073
py
Python
tools/grit/grit/node/empty.py
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
11
2015-03-20T04:08:08.000Z
2021-11-15T15:51:36.000Z
tools/grit/grit/node/empty.py
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
null
null
null
tools/grit/grit/node/empty.py
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2.4 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Container nodes that don't have any logic. ''' from grit.node import base from grit.node import include from grit.node imp...
28.39726
75
0.712976
e1dc8058b6e0152593649500126a2c7d88432e24
2,483
py
Python
networkx/algorithms/community/kclique.py
bforte/networkx
a8c09757f52c2d690d0c8cd983e55a2af9b8d260
[ "BSD-3-Clause" ]
1
2019-12-03T14:58:04.000Z
2019-12-03T14:58:04.000Z
networkx/algorithms/community/kclique.py
bforte/networkx
a8c09757f52c2d690d0c8cd983e55a2af9b8d260
[ "BSD-3-Clause" ]
1
2019-12-19T16:49:00.000Z
2019-12-20T06:22:46.000Z
networkx/algorithms/community/kclique.py
bforte/networkx
a8c09757f52c2d690d0c8cd983e55a2af9b8d260
[ "BSD-3-Clause" ]
2
2020-02-13T10:33:34.000Z
2020-08-09T07:59:26.000Z
from collections import defaultdict import networkx as nx __all__ = ['k_clique_communities'] def k_clique_communities(G, k, cliques=None): """Find k-clique communities in graph using the percolation method. A k-clique community is the union of all cliques of size k that can be reached through adjacent (...
31.43038
73
0.658478
7fef2104499d6eea5138ec29d79b2f8b587625ed
52,423
py
Python
tests/agent/test_k8s_agent.py
maxkferg/prefect
742153b6ebeb46e2f2f598ef54c28a9a53c2c271
[ "Apache-2.0" ]
null
null
null
tests/agent/test_k8s_agent.py
maxkferg/prefect
742153b6ebeb46e2f2f598ef54c28a9a53c2c271
[ "Apache-2.0" ]
null
null
null
tests/agent/test_k8s_agent.py
maxkferg/prefect
742153b6ebeb46e2f2f598ef54c28a9a53c2c271
[ "Apache-2.0" ]
null
null
null
import json from unittest.mock import MagicMock import pendulum import pytest pytest.importorskip("kubernetes") import yaml import prefect from prefect.agent.kubernetes.agent import KubernetesAgent, read_bytes_from_path from prefect.environments import LocalEnvironment from prefect.storage import Docker, Local from...
34.375738
98
0.615741
c70f98145fb67b09841dceb5edce4bcd3d8a11f8
2,188
py
Python
filter_multilabels.py
seanliu96/PCHC
62acc96a271b56243deabb9418eb39ae3e3710aa
[ "MIT" ]
10
2019-03-11T08:40:15.000Z
2021-07-11T13:53:44.000Z
filter_multilabels.py
seanliu96/PCHC
62acc96a271b56243deabb9418eb39ae3e3710aa
[ "MIT" ]
3
2019-03-10T18:06:32.000Z
2019-05-25T06:53:09.000Z
filter_multilabels.py
seanliu96/PCHC
62acc96a271b56243deabb9418eb39ae3e3710aa
[ "MIT" ]
5
2019-03-10T17:54:16.000Z
2021-11-11T14:30:57.000Z
import logging import logging.config import logconfig import os import settings from collections import defaultdict, Counter def filter_multilabels(input_dir): logger = logging.getLogger(__name__) logger.info(logconfig.key_log(logconfig.DATA_NAME, input_dir)) paths = [] for file_name in os.listdi...
40.518519
150
0.554388
11402c2002d878dc66852399185b09a9c5e0db90
779
py
Python
kotti/tests/test_static.py
mete0r/Kotti
e89103cc57d5d2af8d60eb8208ae9d04c068f6e7
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
kotti/tests/test_static.py
mete0r/Kotti
e89103cc57d5d2af8d60eb8208ae9d04c068f6e7
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
kotti/tests/test_static.py
mete0r/Kotti
e89103cc57d5d2af8d60eb8208ae9d04c068f6e7
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from pytest import raises class TestStatic: def test_NeededGroup(self): from js.deform import deform_js from kotti.fanstatic import kotti_js from kotti.fanstatic import NeededGroup def NeededGroupFactory(resources): return NeededGroup(resources) with raises(...
23.606061
56
0.631579
828492e836678112bccbcec3ca1abe04502d4364
4,698
py
Python
examples/1_H_examples/ucsd_conv_lstm_AE_futurePrediction/network_surgery.py
t2mhanh/caffe_anaconda
4f31996df63d9148de046d1b54fa1cc4e862ba83
[ "BSD-2-Clause" ]
1
2018-11-23T08:45:35.000Z
2018-11-23T08:45:35.000Z
examples/1_H_examples/ucsd_conv_lstm_AE_futurePrediction/network_surgery.py
t2mhanh/caffe_convLSTM_WTA
4f31996df63d9148de046d1b54fa1cc4e862ba83
[ "BSD-2-Clause" ]
null
null
null
examples/1_H_examples/ucsd_conv_lstm_AE_futurePrediction/network_surgery.py
t2mhanh/caffe_convLSTM_WTA
4f31996df63d9148de046d1b54fa1cc4e862ba83
[ "BSD-2-Clause" ]
null
null
null
import sys caffe_root = '/home/csunix/schtmt/NewFolder/caffe_May2017_PythonLayer/' sys.path.insert(0,caffe_root + 'python') import numpy as np import h5py import matplotlib.pyplot as plt import caffe from matplotlib.backends.backend_pdf import PdfPages def H_visualize_weights(net, layer_name, padding=4, filename=''): ...
38.826446
129
0.635802
6b021b41076e5fc9c8138408a2cfba6906ae6a56
447
py
Python
examples/register_new_native_component.py
avivazran/UnrealEnginePython
758ad1e5b3a871442d00bdc3144e246fa443098f
[ "MIT" ]
2,350
2016-08-08T17:00:16.000Z
2022-03-31T22:37:15.000Z
examples/register_new_native_component.py
avivazran/UnrealEnginePython
758ad1e5b3a871442d00bdc3144e246fa443098f
[ "MIT" ]
820
2016-08-08T16:35:26.000Z
2022-03-24T05:09:51.000Z
examples/register_new_native_component.py
avivazran/UnrealEnginePython
758ad1e5b3a871442d00bdc3144e246fa443098f
[ "MIT" ]
658
2016-08-10T16:26:24.000Z
2022-03-30T02:42:22.000Z
import unreal_engine as ue from unreal_engine.classes import ActorComponent class FooComponent(ActorComponent): def __init__(self): ue.log('Ctor') def DoSomething(): ue.print_string('TEST !!!') FooComponent.set_metadata('BlueprintType', 'true') FooComponent.set_metadata('BlueprintSpawnableCo...
27.9375
64
0.771812
6c7d52943c0c4ea8c4fd137d01a4284f85b69fd8
51,194
py
Python
cms/tests/test_permmod.py
Qurus/django-cms
77f41ce69132b6103e147343d7cbb7fca6265bf1
[ "BSD-3-Clause" ]
null
null
null
cms/tests/test_permmod.py
Qurus/django-cms
77f41ce69132b6103e147343d7cbb7fca6265bf1
[ "BSD-3-Clause" ]
null
null
null
cms/tests/test_permmod.py
Qurus/django-cms
77f41ce69132b6103e147343d7cbb7fca6265bf1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement from djangocms_text_ckeditor.models import Text from django.contrib.admin.sites import site try: from django.contrib.admin.utils import unquote except ImportError: from django.contrib.admin.util import unquote from django.contrib.auth import get_use...
42.204452
268
0.623745
c233b2022d684678db25849bbf7a0f042c12bafb
4,234
py
Python
argo/workflows/client/models/v1_event_source.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/v1_event_source.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/v1_event_source.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: v3.0.4 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 ...
28.039735
134
0.575342
6275a6c8371cb82cb34dc2ce1473127489fb1b91
2,694
py
Python
src/Pyro4/__init__.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
src/Pyro4/__init__.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
src/Pyro4/__init__.py
gabehack/Pyro4
88f88bf1ccdfaff8c2bbbda8fc032a145d07d44b
[ "MIT" ]
null
null
null
""" Pyro package. Some generic init stuff to set up logging etc. Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net). """ import sys if sys.version_info < (2, 7): import warnings warnings.warn("This Pyro version is unsupported on Python versions older than 2.7", ImportWa...
38.485714
109
0.636971
f786f665ad438c80988455824d6a206e3e240120
9,658
py
Python
python/paddle/distributed/fleet/meta_optimizers/ps_optimizer.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
1
2022-03-14T23:22:21.000Z
2022-03-14T23:22:21.000Z
python/paddle/distributed/fleet/meta_optimizers/ps_optimizer.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
null
null
null
python/paddle/distributed/fleet/meta_optimizers/ps_optimizer.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
40.241667
81
0.600331
59be8783e2fa8437177fc778968a3e3b8b05ee80
3,268
py
Python
parserV3.py
fcanavate/tfm-embeddings
a03b5004f32679ae3eec955e93a3e62960f06158
[ "MIT" ]
null
null
null
parserV3.py
fcanavate/tfm-embeddings
a03b5004f32679ae3eec955e93a3e62960f06158
[ "MIT" ]
null
null
null
parserV3.py
fcanavate/tfm-embeddings
a03b5004f32679ae3eec955e93a3e62960f06158
[ "MIT" ]
null
null
null
# This file is part of UDPipe <http://github.com/ufal/udpipe/>. # # Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of # Mathematics and Physics, Charles University in Prague, Czech Republic. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the ...
36.719101
115
0.656977
1d1adf71d0a1aa3fa47884ccf9f7f7e5cb961420
3,997
py
Python
rosetta/conf/settings.py
matthiask/django-rosetta
401fab90d8f7a77cc7969f4e33bce9efd1e6128e
[ "MIT" ]
null
null
null
rosetta/conf/settings.py
matthiask/django-rosetta
401fab90d8f7a77cc7969f4e33bce9efd1e6128e
[ "MIT" ]
null
null
null
rosetta/conf/settings.py
matthiask/django-rosetta
401fab90d8f7a77cc7969f4e33bce9efd1e6128e
[ "MIT" ]
null
null
null
from django.conf import settings # Number of messages to display per page. MESSAGES_PER_PAGE = getattr(settings, 'ROSETTA_MESSAGES_PER_PAGE', 10) # Enable Google translation suggestions ENABLE_TRANSLATION_SUGGESTIONS = getattr(settings, 'ROSETTA_ENABLE_TRANSLATION_SUGGESTIONS', False) # Can be obtained for free he...
44.910112
101
0.794846
75e4e9f05e0aad359d31acf92f99c1df9c5fb430
8,958
py
Python
HealthManagementSystem.py
chhajednidhish/Basic-Python-Projects
d0bbff6ae8eeb126c5c38489772f8bdd7185f283
[ "MIT" ]
null
null
null
HealthManagementSystem.py
chhajednidhish/Basic-Python-Projects
d0bbff6ae8eeb126c5c38489772f8bdd7185f283
[ "MIT" ]
null
null
null
HealthManagementSystem.py
chhajednidhish/Basic-Python-Projects
d0bbff6ae8eeb126c5c38489772f8bdd7185f283
[ "MIT" ]
null
null
null
''' HEALTH MANAGEMENT SYSTEM Problem statement: 1. You have 3 clients namely; Nidhish, Mann, Karan 2. You will make 3 files to log their food and 3 files to log their excercises Write a function that wehn executed takes an input as client name and the thing he wants to log that is excercise/food...
47.903743
109
0.537285
637e2ccbeece72420a4b9447108225eb6bb5afdb
2,971
py
Python
senlin_tempest_plugin/tests/api/clusters/test_cluster_create.py
openstack/senlin-tempest-plugin
f71166b2c6619746ac24614ed151e4befdb1f495
[ "Apache-2.0" ]
7
2017-10-31T13:31:20.000Z
2020-01-08T02:36:37.000Z
senlin_tempest_plugin/tests/api/clusters/test_cluster_create.py
openstack/senlin-tempest-plugin
f71166b2c6619746ac24614ed151e4befdb1f495
[ "Apache-2.0" ]
null
null
null
senlin_tempest_plugin/tests/api/clusters/test_cluster_create.py
openstack/senlin-tempest-plugin
f71166b2c6619746ac24614ed151e4befdb1f495
[ "Apache-2.0" ]
1
2018-01-10T20:36:55.000Z
2018-01-10T20:36:55.000Z
# 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...
39.613333
77
0.643891
32b4d89bb27da22cc901b94cfd336d96f31f7f11
312
py
Python
codons.py
nxmarian/learning_python
1dc59a5e7f0d036b2baee750d6e4e4c03c874790
[ "MIT" ]
null
null
null
codons.py
nxmarian/learning_python
1dc59a5e7f0d036b2baee750d6e4e4c03c874790
[ "MIT" ]
null
null
null
codons.py
nxmarian/learning_python
1dc59a5e7f0d036b2baee750d6e4e4c03c874790
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Print out all the codons for the sequence below in reading frame 1 # Use a 'for' loop dna = 'ATAGCGAATATCTCTCATGAGAGGGAA' # your code goes here for i in range (0, len(dna), 3): print(dna[i:i+3]) print('reading frame 1') """ python3 codons.py ATA GCG AAT ATC TCT CAT GAG AGG GAA """
12.48
68
0.695513