hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
9117cd490c065392c91caaee570d45100e7159ff
2,013
py
Python
src/inputs/fcsDir2csv.py
EvoArt/MachineFlow
b43654d05a25bfdff640692c3b0ded2fefc67bdc
[ "MIT" ]
null
null
null
src/inputs/fcsDir2csv.py
EvoArt/MachineFlow
b43654d05a25bfdff640692c3b0ded2fefc67bdc
[ "MIT" ]
null
null
null
src/inputs/fcsDir2csv.py
EvoArt/MachineFlow
b43654d05a25bfdff640692c3b0ded2fefc67bdc
[ "MIT" ]
null
null
null
# Import required libraries import pandas as pd import numpy as np import sklearn from sklearn.model_selection import train_test_split # Keras specific import keras from keras.models import Sequential from keras.layers import Dense from keras.utils import to_categorical import fcsparser import os '''Import data fi...
33.55
96
0.559861
b88a70ac7444401be80f71a8f9d8bd1e4e67b9cc
12,304
py
Python
embedding-calculator/srcext/insightface/src/data/dataset_merge.py
drawdy/CompreFace
143b7955536f406a622248fad2d2108dfb5dd4f6
[ "Apache-2.0" ]
null
null
null
embedding-calculator/srcext/insightface/src/data/dataset_merge.py
drawdy/CompreFace
143b7955536f406a622248fad2d2108dfb5dd4f6
[ "Apache-2.0" ]
null
null
null
embedding-calculator/srcext/insightface/src/data/dataset_merge.py
drawdy/CompreFace
143b7955536f406a622248fad2d2108dfb5dd4f6
[ "Apache-2.0" ]
null
null
null
# Version: 2020.02.21 # # MIT License # # Copyright (c) 2018 Jiankang Deng and Jia Guo # # 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 limitatio...
38.570533
150
0.563963
07f83cc3ed1abd6fdf81c35a4a21f90613368b2b
2,700
py
Python
app/core/tests/test_models.py
zlessner/recipe-app-api
b58c858412cde5dd1b737bd74f0cb46a453d2a31
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
zlessner/recipe-app-api
b58c858412cde5dd1b737bd74f0cb46a453d2a31
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
zlessner/recipe-app-api
b58c858412cde5dd1b737bd74f0cb46a453d2a31
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@gmail.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTests(Tes...
30.681818
70
0.637037
ac03e4d80e24e51123546e49abff5de80df4ae9a
830
py
Python
dj_tasks/models.py
cfc603/dj-tasks
a28a528844351e7cfc6e89d4b5d7cbf8d0df9dc8
[ "MIT" ]
null
null
null
dj_tasks/models.py
cfc603/dj-tasks
a28a528844351e7cfc6e89d4b5d7cbf8d0df9dc8
[ "MIT" ]
3
2020-10-08T18:37:38.000Z
2020-12-29T17:31:43.000Z
dj_tasks/models.py
cfc603/dj-tasks
a28a528844351e7cfc6e89d4b5d7cbf8d0df9dc8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.utils import timezone from model_utils.models import TimeStampedModel class Task(TimeStampedModel): name = models.CharField(max_length=120, unique=True) frequency = models.PositiveIntegerField() def __str__(self): return self.nam...
24.411765
63
0.663855
761b4dfdb7b77e9925dffff994f3a3090cefdd3b
1,449
py
Python
alipay/aop/api/domain/AlipayUserPicture.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserPicture.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserPicture.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayUserPicture(object): def __init__(self): self._picture_type = None self._picture_url = None @property def picture_type(self): return self._pic...
25.875
75
0.605245
6060d99182b403e73da91fe998b03c3964c28ddb
2,499
py
Python
article-code/handaxeweb.py
darius/tailbiter
48277a1b764e3f37a7f3d919172ac0aa601839f5
[ "MIT" ]
41
2016-06-22T01:45:16.000Z
2022-03-01T05:57:55.000Z
article-code/handaxeweb.py
darius/tailbiter
48277a1b764e3f37a7f3d919172ac0aa601839f5
[ "MIT" ]
1
2019-01-20T15:44:06.000Z
2019-03-03T19:50:57.000Z
article-code/handaxeweb.py
darius/tailbiter
48277a1b764e3f37a7f3d919172ac0aa601839f5
[ "MIT" ]
1
2019-10-10T06:45:32.000Z
2019-10-10T06:45:32.000Z
""" Original by Kragen Sitaker. Refactored and hacked to: - look for code in ```quoted blocks``` instead of indented blocks - support versions like handaxeweb.lua - also support versions of the form "v2+" - write to subdirectories """ import re, sys new_chunk_pattern = re.compile(r'# in (.*?):\s*$') chunk_ref_pattern...
32.454545
77
0.558223
1a8e8be81848626887850c0eb27bf0b710e21586
2,185
py
Python
video2images.py
tenghehan/reid_without_id
d1d0ff273b1ef19fc6da8cbbf210527779b37455
[ "MIT" ]
null
null
null
video2images.py
tenghehan/reid_without_id
d1d0ff273b1ef19fc6da8cbbf210527779b37455
[ "MIT" ]
null
null
null
video2images.py
tenghehan/reid_without_id
d1d0ff273b1ef19fc6da8cbbf210527779b37455
[ "MIT" ]
null
null
null
""" @author: tenghehan 将 video 形式的视频数据转化成 image sequence 形式的数据. """ import cv2 import os import argparse from tqdm import tqdm from utils.log import get_logger class VideoFramer(object): def __init__(self, args, video_path): self.args = args self.video_path = video_path self.logger = get_...
29.931507
97
0.642563
989294ae4b85dca526cf19d71fc452feb0a9455a
1,593
py
Python
scripts/RavenPluginExecutable.py
dgarrett622/LOGOS
7234b8b5e80bc79526b4cbced7efd5ae482f7c44
[ "Apache-2.0" ]
7
2021-05-04T08:42:46.000Z
2021-11-03T13:14:12.000Z
scripts/RavenPluginExecutable.py
albernsrya/LOGOS
535a25ccd3a83259b615acd569257d751fe00439
[ "Apache-2.0" ]
28
2021-01-12T17:41:24.000Z
2021-11-03T18:20:16.000Z
scripts/RavenPluginExecutable.py
albernsrya/LOGOS
535a25ccd3a83259b615acd569257d751fe00439
[ "Apache-2.0" ]
4
2021-02-05T17:18:30.000Z
2022-03-31T14:36:42.000Z
# Copyright 2020, Battelle Energy Alliance, LLC # ALL RIGHTS RESERVED """ Tests by running an executable. """ import os import sys from RavenFramework import RavenFramework myDir = os.path.dirname(os.path.realpath(__file__)) RavenPluginDir = os.path.abspath(os.path.join(myDir, '..', '..', '..', 'plugins')) RavenTester...
32.510204
108
0.6742
fcc9a18b1053b307181376309f390c8f485eb322
603
py
Python
DEFCON_Debugging.py
tlear/DEFCON
6f24c1585a877e8668157a93a8153502b3ddc246
[ "MIT" ]
null
null
null
DEFCON_Debugging.py
tlear/DEFCON
6f24c1585a877e8668157a93a8153502b3ddc246
[ "MIT" ]
null
null
null
DEFCON_Debugging.py
tlear/DEFCON
6f24c1585a877e8668157a93a8153502b3ddc246
[ "MIT" ]
null
null
null
################################################################ # DEFCON_Debugging # (C) Tom Moore 2017 ################################################################ ################################################################ # IMPORTS ################################################################ import DE...
28.714286
64
0.227197
effbece1198171af3d3eeae43e166c775214a837
8,727
py
Python
hanlp/components/mtl/tasks/sdp.py
antfootAlex/HanLP
e8044b27ae1de54b9070db08549853d3ca8271e2
[ "Apache-2.0" ]
3
2022-03-07T08:33:16.000Z
2022-03-07T08:38:08.000Z
hanlp/components/mtl/tasks/sdp.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
hanlp/components/mtl/tasks/sdp.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
1
2022-01-17T11:44:08.000Z
2022-01-17T11:44:08.000Z
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-08-13 21:39 import logging from typing import Dict, Any, Union, Iterable, List import torch from torch.optim import Adam from torch.optim.lr_scheduler import ExponentialLR from torch.utils.data import DataLoader from hanlp.common.dataset import SamplerBuilder, PadS...
49.868571
119
0.618082
6a275c96e7ad3ee747a323c59c3f0d0a30081e06
14,708
py
Python
test/functional/interface_rest.py
BenCryptoKing/stephanpower
53b6820c95d9fc93529806844db80979bbaf6d66
[ "MIT" ]
null
null
null
test/functional/interface_rest.py
BenCryptoKing/stephanpower
53b6820c95d9fc93529806844db80979bbaf6d66
[ "MIT" ]
null
null
null
test/functional/interface_rest.py
BenCryptoKing/stephanpower
53b6820c95d9fc93529806844db80979bbaf6d66
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the REST API.""" import binascii from decimal import Decimal from enum import Enum from io import...
44.705167
153
0.661885
18496ffe58efaeae2967ebcdd747965079d599e7
3,729
py
Python
backtesting/pyalgotrade/ma_strategy.py
luisparravicini/backtesting-learning
6068a912703d6fb16a7ea653fee7486be7a3b1fd
[ "MIT" ]
null
null
null
backtesting/pyalgotrade/ma_strategy.py
luisparravicini/backtesting-learning
6068a912703d6fb16a7ea653fee7486be7a3b1fd
[ "MIT" ]
null
null
null
backtesting/pyalgotrade/ma_strategy.py
luisparravicini/backtesting-learning
6068a912703d6fb16a7ea653fee7486be7a3b1fd
[ "MIT" ]
null
null
null
from __future__ import print_function from pyalgotrade import strategy from pyalgotrade.barfeed import quandlfeed, csvfeed from pyalgotrade.technical import ma from pyalgotrade.broker import backtesting class MAStrategy(strategy.BacktestingStrategy): def __init__(self, feed, instrument, cash, fast_ma_time, slow_...
40.096774
148
0.639045
47c57d49afb886cb2f5034cc847c80ff6ab7fafb
1,593
py
Python
Latest/venv/Lib/site-packages/envisage/resource/file_resource_protocol.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/envisage/resource/file_resource_protocol.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/envisage/resource/file_resource_protocol.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2007-2019 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only # under the conditions described in the aforementioned license. The license # is also available online a...
32.510204
79
0.596359
cf05c0447d5547e1a2b465b58dd10dd57e84252f
324
py
Python
exercises/zh/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "token_text = token.text" in __solution__ ), "你有正确拿到词符的文本吗?" assert ( "token_pos = token.pos_" in __solution__ ), "你有正确拿到词符的词性标注了吗?记着要用带下划线的属性。" assert ( "token_dep = token.dep_" in __solution__ ), "你有正确拿到词符的依存关系标签了吗?记着要用带下划线的属性。" __msg__.good("完美...
27
49
0.62037
c52149f685683b87156370ab71571679860f063d
685
py
Python
src/tmain.py
weank1984/kaggle-2018-bowl
92ded778502aef39e2fa74d3336bf07e58bd15b5
[ "MIT" ]
null
null
null
src/tmain.py
weank1984/kaggle-2018-bowl
92ded778502aef39e2fa74d3336bf07e58bd15b5
[ "MIT" ]
null
null
null
src/tmain.py
weank1984/kaggle-2018-bowl
92ded778502aef39e2fa74d3336bf07e58bd15b5
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib.pyplot as plt from scipy.io import loadmat from encode import mask, image from utils import evalute from utils.common import * if __name__ == '__main__': # test_mask() image.test_image(label = True) # img = loadmat(ROOT_DIR + '/data/cell_seg.mat') # #...
26.346154
77
0.667153
5188ca576e147b3a2adc0dfa24253c176f760969
8,838
py
Python
selfdrive/car/honda/values.py
Yeongjae/openpilot
9d6c503185940c272f6ecef479ae1e09c29b86b1
[ "MIT" ]
null
null
null
selfdrive/car/honda/values.py
Yeongjae/openpilot
9d6c503185940c272f6ecef479ae1e09c29b86b1
[ "MIT" ]
null
null
null
selfdrive/car/honda/values.py
Yeongjae/openpilot
9d6c503185940c272f6ecef479ae1e09c29b86b1
[ "MIT" ]
null
null
null
from selfdrive.car import dbc_dict # Car button codes class CruiseButtons: RES_ACCEL = 4 DECEL_SET = 3 CANCEL = 2 MAIN = 1 #car chimes: enumeration from dbc file. Chimes are for alerts and warnings class CM: MUTE = 0 SINGLE = 3 DOUBLE = 4 REPEATED = 1 CONTINUOUS = 2 #car beepss: e...
71.853659
687
0.566531
158d4e45c1b89d7d56a5dc5ecb04b4ab2906bb13
3,750
py
Python
util/test/tests/Vulkan/VK_Robustness2.py
hbina/renderdoc
3f71e1739cfda98761ce7dc3a572f709125c93f2
[ "MIT" ]
6,181
2015-01-07T11:49:11.000Z
2022-03-31T21:46:55.000Z
util/test/tests/Vulkan/VK_Robustness2.py
hbina/renderdoc
3f71e1739cfda98761ce7dc3a572f709125c93f2
[ "MIT" ]
2,015
2015-01-16T01:45:25.000Z
2022-03-25T12:01:06.000Z
util/test/tests/Vulkan/VK_Robustness2.py
hbina/renderdoc
3f71e1739cfda98761ce7dc3a572f709125c93f2
[ "MIT" ]
1,088
2015-01-06T08:36:25.000Z
2022-03-30T03:31:21.000Z
import renderdoc as rd import rdtest class VK_Robustness2(rdtest.TestCase): demos_test_name = 'VK_Robustness2' def check_capture(self): action: rd.ActionDescription = self.find_action('vkCmdDraw') self.controller.SetFrameEvent(action.eventId, True) self.check_triangle() rdt...
36.764706
144
0.472
3f597c0aa5b0fe0f2e5c2f2415678c0fdf1cd18a
340
py
Python
main.py
ZhangPluto/Funny-Nation
abd38f10d5cc9c026cbab5ae2995cb17a2902b8f
[ "MIT" ]
126
2022-01-15T02:29:07.000Z
2022-03-30T09:57:40.000Z
main.py
ZhangPluto/Funny-Nation
abd38f10d5cc9c026cbab5ae2995cb17a2902b8f
[ "MIT" ]
18
2022-01-11T22:24:35.000Z
2022-03-16T00:13:01.000Z
main.py
ZhangPluto/Funny-Nation
abd38f10d5cc9c026cbab5ae2995cb17a2902b8f
[ "MIT" ]
25
2022-01-22T15:06:27.000Z
2022-03-01T04:34:19.000Z
import discord from src.Robot import Robot from src.checkBeforeRun.checkBeforeRun import checkBeforeRun from src.utils.readConfig import getMajorConfig def run(): checkBeforeRun() config = getMajorConfig() intents = discord.Intents().all() robot = Robot(intents=intents) robot.run(config['private'...
20
60
0.735294
8d47e8f29fcd0e4ed2689c1af7e2a2624c4777b6
2,773
py
Python
c7n/ufuncs/s3crypt.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
c7n/ufuncs/s3crypt.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
c7n/ufuncs/s3crypt.py
lfranchini31/cloud-custodian
1830fe4b9a59ff6afb675985c9ea531571616a76
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# coding: utf-8 # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 """ S3 Key Encrypt on Bucket Changes """ import json import boto3 from botocore.exceptions import ClientError from urllib.parse import unquote_plus from c7n.resources.s3 import EncryptExtantKeys from c7n.utils import get_retr...
30.141304
82
0.603318
5a26370d1329a51bda27309eda7be53df53ac5d8
1,267
py
Python
runModel.py
davidthaler/Greek_media
8ecbdd9eff3198351cf702d29b57a39d80cf282c
[ "MIT" ]
15
2015-09-29T14:49:48.000Z
2022-01-27T07:22:54.000Z
runModel.py
davidthaler/Greek_media
8ecbdd9eff3198351cf702d29b57a39d80cf282c
[ "MIT" ]
1
2015-06-22T20:09:49.000Z
2015-06-22T20:09:49.000Z
runModel.py
davidthaler/Greek_media
8ecbdd9eff3198351cf702d29b57a39d80cf282c
[ "MIT" ]
3
2018-05-25T06:49:26.000Z
2022-01-27T07:23:30.000Z
""" This script creates a submission for the Greek Media Multi-label Classification Challenge (WISE 2014) hosted on Kaggle. Before running this script, the data from Kaggle has to be transformed by running (one time) the script rewriteData.py. The submission generated here is created by one of the models used in the fi...
33.342105
97
0.75296
ad0b348cb4dbc92c0b7e5ce6aeb37c8902d6dc22
10,313
py
Python
bot/main.py
brynphillips/twitch-chat-bot
81a5da8943982ccad538c5fdceb3a225b63c0341
[ "MIT" ]
null
null
null
bot/main.py
brynphillips/twitch-chat-bot
81a5da8943982ccad538c5fdceb3a225b63c0341
[ "MIT" ]
null
null
null
bot/main.py
brynphillips/twitch-chat-bot
81a5da8943982ccad538c5fdceb3a225b63c0341
[ "MIT" ]
null
null
null
from __future__ import annotations import argparse import asyncio.subprocess import contextlib import datetime import functools import hashlib import json import os.path import re import signal import struct import sys import traceback from typing import Any from typing import Match from bot.badges import badges_imag...
29.215297
78
0.593717
65af0baa24d8d6e7c24c3d4dd75e3a355711b27c
2,369
py
Python
third_party/scons/scons-local/SCons/Tool/g77.py
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
11
2015-03-20T04:08:08.000Z
2021-11-15T15:51:36.000Z
third_party/scons/scons-local/SCons/Tool/g77.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
third_party/scons/scons-local/SCons/Tool/g77.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
"""engine.SCons.Tool.g77 Tool-specific initialization for g77. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation # # ...
34.838235
89
0.717602
84afd6ff27a3fe5840164641b462cb68de65dec0
22,138
py
Python
nirvana/data/fitargs.py
kbwestfall/NIRVANA
927c8cef68e84068490bc62a9886a5d2e4b5802c
[ "BSD-3-Clause" ]
1
2022-03-31T03:38:59.000Z
2022-03-31T03:38:59.000Z
nirvana/data/fitargs.py
kbwestfall/NIRVANA
927c8cef68e84068490bc62a9886a5d2e4b5802c
[ "BSD-3-Clause" ]
null
null
null
nirvana/data/fitargs.py
kbwestfall/NIRVANA
927c8cef68e84068490bc62a9886a5d2e4b5802c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from IPython import embed import numpy as np import matplotlib.pyplot as plt import warnings from astropy.stats import sigma_clip from ..models.geometry import projected_polar from ..models.asymmetry import asymmetry from ..models.axisym import AxisymmetricDisk, axisym_iter_fit from ..models.b...
39.532143
131
0.578688
7dd9d15b49ba102ae0a3094b86b69c98ac3199ff
294
py
Python
search/fields.py
350dotorg/akcrm
9b0441cefd17dadd7dc16aac107353fc01605c74
[ "BSD-3-Clause" ]
null
null
null
search/fields.py
350dotorg/akcrm
9b0441cefd17dadd7dc16aac107353fc01605c74
[ "BSD-3-Clause" ]
3
2020-02-11T21:53:41.000Z
2021-06-10T17:33:55.000Z
search/fields.py
350dotorg/akcrm
9b0441cefd17dadd7dc16aac107353fc01605c74
[ "BSD-3-Clause" ]
null
null
null
from search.models import SearchField def get_fields(): _fields = {} for field in SearchField.objects.all(): if field.category not in _fields: _fields[field.category] = [] _fields[field.category].append((field.name, field.display_name)) return _fields
26.727273
72
0.666667
0ce90cedc9bfe606b410e05a9b4b5ccae661ca56
36,776
py
Python
mesonbuild/backend/xcodebackend.py
ebassi/meson
2a3a1ce8e001042f8b5018affc75e953da58bb26
[ "Apache-2.0" ]
null
null
null
mesonbuild/backend/xcodebackend.py
ebassi/meson
2a3a1ce8e001042f8b5018affc75e953da58bb26
[ "Apache-2.0" ]
null
null
null
mesonbuild/backend/xcodebackend.py
ebassi/meson
2a3a1ce8e001042f8b5018affc75e953da58bb26
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2016 The Meson development team # 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 agree...
46.968072
161
0.572194
c52e9a76f1a1a246ed424f6fe9acb5db9ef21672
2,362
py
Python
virtual/lib/python3.6/site-packages/sqlalchemy/testing/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
27
2019-10-28T05:03:18.000Z
2021-06-09T00:16:22.000Z
virtual/lib/python3.6/site-packages/sqlalchemy/testing/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
22
2019-01-18T02:57:36.000Z
2019-02-24T22:38:54.000Z
virtual/lib/python3.6/site-packages/sqlalchemy/testing/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
21
2017-11-13T13:23:27.000Z
2019-10-07T02:00:52.000Z
# testing/__init__.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import config # noqa from . import mock # noqa from .assertions import...
36.90625
69
0.780271
76321598ec4943984098dd401680ca4fe2f9a5a3
10,801
py
Python
web/metadata/EJUIFinanceReportTab.py
eddiedb6/ej
04e7d79aafadad87bcb99879ead7195a7aee6d0c
[ "MIT" ]
null
null
null
web/metadata/EJUIFinanceReportTab.py
eddiedb6/ej
04e7d79aafadad87bcb99879ead7195a7aee6d0c
[ "MIT" ]
null
null
null
web/metadata/EJUIFinanceReportTab.py
eddiedb6/ej
04e7d79aafadad87bcb99879ead7195a7aee6d0c
[ "MIT" ]
null
null
null
{ # Financial Page - report tab "uidFinanceTabReportPanel": { W3Const.w3PropType: W3Const.w3TypePanel, W3Const.w3PropSubUI: [ "uidFinanceReportFilterTable", "uidFinanceReportTable" ] }, # Financial Page - report tab, filter "uidFinanceReportFilterTabl...
37.373702
110
0.525322
8ee463ff4cc0d7697dc4e29ef92499af865cb3d1
3,397
py
Python
unit_tests/test_utils.py
openstack/charm-ceilometer
8e6c6f1f8fc6b33f3ff1780f140aed15cd5cef22
[ "ECL-2.0", "Apache-2.0" ]
16
2016-04-17T04:00:34.000Z
2020-03-12T12:37:58.000Z
unit_tests/test_utils.py
openstack/charm-ceilometer
8e6c6f1f8fc6b33f3ff1780f140aed15cd5cef22
[ "ECL-2.0", "Apache-2.0" ]
1
2019-07-18T14:16:48.000Z
2019-07-18T14:16:48.000Z
unit_tests/test_utils.py
openstack/charm-ceilometer
8e6c6f1f8fc6b33f3ff1780f140aed15cd5cef22
[ "ECL-2.0", "Apache-2.0" ]
11
2016-03-04T12:21:20.000Z
2020-03-03T12:52:45.000Z
# Copyright 2016 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
26.960317
77
0.634972
3c3d8bf46d616e22efb138788ff3ca5afb8cdf3b
425
py
Python
backend/testing_django_app_31743/wsgi.py
crowdbotics-apps/testing-django-app-31743
4361e3a1e84437a59bb330547e4d4dc16fb6fbe2
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/testing_django_app_31743/wsgi.py
crowdbotics-apps/testing-django-app-31743
4361e3a1e84437a59bb330547e4d4dc16fb6fbe2
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/testing_django_app_31743/wsgi.py
crowdbotics-apps/testing-django-app-31743
4361e3a1e84437a59bb330547e4d4dc16fb6fbe2
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for testing_django_app_31743 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefa...
25
84
0.802353
a015542953283249db066666b8d248db4d0c5974
18,129
py
Python
python/IECoreMaya/SceneShapeUI.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
python/IECoreMaya/SceneShapeUI.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
python/IECoreMaya/SceneShapeUI.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
42.258741
193
0.697446
ad935382178b558c445f9e6e6c3b2a4d852ed7bf
10,145
py
Python
venv/lib/python3.6/site-packages/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/parsing.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/parsing.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
.ansible/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/parsing.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
32.308917
93
0.616067
4146495b384ac99def5b6000e29739385a2e430b
3,578
py
Python
examples/csj/visualization/core/plot/ctc.py
sundogrd/tensorflow_end2end_speech_recognition
61e4a65fb5c9f3d9f690d713dcd77a48b1de0a14
[ "MIT" ]
351
2017-05-27T08:31:27.000Z
2022-03-03T16:47:27.000Z
examples/csj/visualization/core/plot/ctc.py
eLavin11/tensorflow_end2end_speech_recognition
65b9728089d5e92b25b92384a67419d970399a64
[ "MIT" ]
19
2017-07-19T13:12:18.000Z
2019-06-12T06:07:13.000Z
examples/csj/visualization/core/plot/ctc.py
eLavin11/tensorflow_end2end_speech_recognition
65b9728089d5e92b25b92384a67419d970399a64
[ "MIT" ]
127
2017-06-12T16:27:21.000Z
2021-12-29T02:22:34.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """"Utilities for plotting of the CTC model (CSJ corpus).""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from os.path import join import numpy as np import matplotlib.pyplot as plt import seaborn as sns f...
29.570248
75
0.631917
157f063508f12c1b7e7f7b9d219fdd0453896df2
7,541
py
Python
mpi/max_i.py
C-HILLL/influence
646c16dfafbd6618cac9abb7387a2ccbfb86eb64
[ "MIT" ]
null
null
null
mpi/max_i.py
C-HILLL/influence
646c16dfafbd6618cac9abb7387a2ccbfb86eb64
[ "MIT" ]
null
null
null
mpi/max_i.py
C-HILLL/influence
646c16dfafbd6618cac9abb7387a2ccbfb86eb64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Utilities import sys, getopt # Libraries from mpi4py import MPI import numpy as np from scipy.stats import bernoulli import graph_json_io import collections ################################# # -s # seed_num s # -t # simulate_time t # -f # file_path ################################# """ #规约函数...
37.705
137
0.521814
3bbe94b869f8f2f1a9e1ff34ce93b4e433f6cb11
1,143
py
Python
sorts/recursive_bubble_sort.py
hank-chou/python
a9f729fa263bce599d2774f3f6afb5a18bcc9862
[ "MIT" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
sorts/recursive_bubble_sort.py
hank-chou/python
a9f729fa263bce599d2774f3f6afb5a18bcc9862
[ "MIT" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
sorts/recursive_bubble_sort.py
hank-chou/python
a9f729fa263bce599d2774f3f6afb5a18bcc9862
[ "MIT" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
def bubble_sort(list_data: list, length: int = 0) -> list: """ It is similar is bubble sort but recursive. :param list_data: mutable ordered sequence of elements :param length: length of list data :return: the same list in ascending order >>> bubble_sort([0, 5, 2, 3, 2], 5) [0, 2, 2, 3, 5] ...
26.581395
75
0.521435
1740a3d90b157ae55ec47d688c1dd48e204ed511
3,673
py
Python
pyversor/visuals/gui.py
tingelst/pyversor
b5545619bb1b4089803251098c4038d3ef16aac3
[ "BSD-3-Clause" ]
13
2017-11-02T19:44:08.000Z
2021-02-07T21:04:03.000Z
pyversor/visuals/gui.py
tingelst/pyversor
b5545619bb1b4089803251098c4038d3ef16aac3
[ "BSD-3-Clause" ]
5
2017-10-26T07:56:24.000Z
2017-11-08T15:36:27.000Z
pyversor/visuals/gui.py
tingelst/pyversor
b5545619bb1b4089803251098c4038d3ef16aac3
[ "BSD-3-Clause" ]
3
2017-09-27T12:23:11.000Z
2020-05-24T19:13:49.000Z
from vispy import app, io, scene, visuals from vispy.visuals.transforms import MatrixTransform, STTransform import datetime import time import threading import pickle import zmq import numpy as np # canvas = scene.SceneCanvas(keys='interactive', bgcolor='white', # size=(800, 600), show=Tr...
26.615942
100
0.573646
1994246dbefc638522c41a022065427bfd01c25b
938
py
Python
gzdice/rollers/FateRoller.py
GleebleNeeble/Diceroller
fd785bd15b06000dda72ea8f45999fbb6c2d4948
[ "BSD-2-Clause" ]
null
null
null
gzdice/rollers/FateRoller.py
GleebleNeeble/Diceroller
fd785bd15b06000dda72ea8f45999fbb6c2d4948
[ "BSD-2-Clause" ]
null
null
null
gzdice/rollers/FateRoller.py
GleebleNeeble/Diceroller
fd785bd15b06000dda72ea8f45999fbb6c2d4948
[ "BSD-2-Clause" ]
null
null
null
######################## # Roller for FATE dice # ######################## import random from ..menus import base_menus as m def fateroller(): pool = int(input("How many dice are you rolling? ")) rollagain = "Y" while str.upper(rollagain) == "Y": try: sides = 6 if pool < ...
24.684211
83
0.409382
b10fb5610564a979ea0036b3c082d2e878ed4c95
56
py
Python
Applications/SlicerApp/Testing/Python/StandalonePythonImportSlicerTest.py
forfullstack/slicersources-src
91bcecf037a27f3fad4c0ab57e8286fc258bb0f5
[ "Apache-2.0" ]
null
null
null
Applications/SlicerApp/Testing/Python/StandalonePythonImportSlicerTest.py
forfullstack/slicersources-src
91bcecf037a27f3fad4c0ab57e8286fc258bb0f5
[ "Apache-2.0" ]
null
null
null
Applications/SlicerApp/Testing/Python/StandalonePythonImportSlicerTest.py
forfullstack/slicersources-src
91bcecf037a27f3fad4c0ab57e8286fc258bb0f5
[ "Apache-2.0" ]
null
null
null
import slicer import vtk scene = slicer.vtkMRMLScene()
11.2
29
0.785714
4d19793d0b2059221ed119075a7de41e2712cb78
3,673
py
Python
tests/integration/test_replicated_merge_tree_s3/test.py
torilov/ClickHouse
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
[ "Apache-2.0" ]
1
2020-10-01T01:54:37.000Z
2020-10-01T01:54:37.000Z
tests/integration/test_replicated_merge_tree_s3/test.py
torilov/ClickHouse
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
[ "Apache-2.0" ]
null
null
null
tests/integration/test_replicated_merge_tree_s3/test.py
torilov/ClickHouse
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
[ "Apache-2.0" ]
null
null
null
import logging import random import string import pytest from helpers.cluster import ClickHouseCluster logging.getLogger().setLevel(logging.INFO) logging.getLogger().addHandler(logging.StreamHandler()) @pytest.fixture(scope="module") def cluster(): try: cluster = ClickHouseCluster(__file__) clu...
34.650943
116
0.66349
91edf2f18f8a701a0287f08be154be81b967bee5
30,657
py
Python
sympy/series/tests/test_limits.py
LucyMountain/sympy
5c698dd09e1ce2c36c16db80e2e671b4301d8f86
[ "BSD-3-Clause" ]
null
null
null
sympy/series/tests/test_limits.py
LucyMountain/sympy
5c698dd09e1ce2c36c16db80e2e671b4301d8f86
[ "BSD-3-Clause" ]
null
null
null
sympy/series/tests/test_limits.py
LucyMountain/sympy
5c698dd09e1ce2c36c16db80e2e671b4301d8f86
[ "BSD-3-Clause" ]
null
null
null
from itertools import product as cartes from sympy import ( limit, exp, oo, log, sqrt, Limit, sin, floor, cos, ceiling, atan, Abs, gamma, Symbol, S, pi, Integral, Rational, I, E, tan, cot, integrate, Sum, sign, Function, subfactorial, symbols, binomial, simplify, frac, Float, sec, zoo, fresnelc, fresne...
32.270526
107
0.519196
eb62063e32f5f8c5c90f4d400eb72e345d268a11
1,016
py
Python
pcg_libraries/src/pcg_gazebo/parsers/sdf/override_impact_capture_velocity.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
42
2019-06-26T09:46:03.000Z
2022-03-18T17:56:26.000Z
pcg_libraries/src/pcg_gazebo/parsers/sdf/override_impact_capture_velocity.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
9
2019-07-18T10:36:05.000Z
2020-10-02T15:26:32.000Z
pcg_libraries/src/pcg_gazebo/parsers/sdf/override_impact_capture_velocity.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-01T03:20:11.000Z
2020-10-15T23:23:44.000Z
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
35.034483
74
0.744094
2f7d9dc8f0e2b079ccb2527622226ab5751b8591
6,586
py
Python
dashTCC.py
CaioCesarRocha/tcc_noticias
c45ee64c842b9b2d46ae830891a101e66214e2a3
[ "MIT" ]
null
null
null
dashTCC.py
CaioCesarRocha/tcc_noticias
c45ee64c842b9b2d46ae830891a101e66214e2a3
[ "MIT" ]
null
null
null
dashTCC.py
CaioCesarRocha/tcc_noticias
c45ee64c842b9b2d46ae830891a101e66214e2a3
[ "MIT" ]
null
null
null
import dash from dash import dcc, html import plotly.express as px import pandas as pd import os, pymongo, numpy, asyncio from dash.dependencies import Input, Output, State BS = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" app = dash.Dash(external_stylesheets=[BS]) colors = { 'backgrou...
30.632558
170
0.532493
73c17dde2d30754ea8d466c09e41e1ee4c372d5b
698
py
Python
components/customizable/customComponent.py
Linzee/tmsei_doodle
b08580fe5d58f6dd614ba6f3f53a03bcd859277b
[ "MIT" ]
null
null
null
components/customizable/customComponent.py
Linzee/tmsei_doodle
b08580fe5d58f6dd614ba6f3f53a03bcd859277b
[ "MIT" ]
null
null
null
components/customizable/customComponent.py
Linzee/tmsei_doodle
b08580fe5d58f6dd614ba6f3f53a03bcd859277b
[ "MIT" ]
null
null
null
from components.flowUtils import annotateProgress import types value = None def prototypeReturnFunc(*kargs, **kwargs): if type(value) is types.LambdaType: return value(*kargs, **kwargs) else: return value class CustomComponent: def __init__(self, **kwargs): for key, value in kwarg...
34.9
136
0.696275
cc10516f09df163b894e2a7639ec2199915f47d7
3,192
py
Python
H-C.py
Anyone-K/H-C
b165ea90fcb85c48e42c976d431b05e5d4fc4cb5
[ "Apache-2.0" ]
1
2017-09-22T02:29:54.000Z
2017-09-22T02:29:54.000Z
H-C.py
Anyone-K/H-C
b165ea90fcb85c48e42c976d431b05e5d4fc4cb5
[ "Apache-2.0" ]
null
null
null
H-C.py
Anyone-K/H-C
b165ea90fcb85c48e42c976d431b05e5d4fc4cb5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from urllib import urlopen as AbreUrl from urllib import urlencode as UrlE from re import search as b import sys as s print'''\033[93m _ _ _____ | | | | / ____| | |__| | ______ | | | __ | |______| | | | | | | | |____ |_| |_| ...
31.60396
135
0.526942
6761b45bb23ac3d492c476063ba1034f51763920
229
py
Python
countess/tests/data/plugins/counts_scorer.py
VariantEffect/Enrich2-py3
5f8534c8c9259d90d99d70e5bd9140fd0fdc8ea4
[ "BSD-3-Clause" ]
4
2020-01-14T19:24:07.000Z
2020-01-16T18:11:35.000Z
countess/tests/data/plugins/counts_scorer.py
VariantEffect/CountESS
5f8534c8c9259d90d99d70e5bd9140fd0fdc8ea4
[ "BSD-3-Clause" ]
3
2020-01-01T10:38:15.000Z
2020-01-03T09:45:41.000Z
countess/tests/data/plugins/counts_scorer.py
VariantEffect/CountESS
5f8534c8c9259d90d99d70e5bd9140fd0fdc8ea4
[ "BSD-3-Clause" ]
1
2022-02-20T00:35:24.000Z
2022-02-20T00:35:24.000Z
from countess.plugins.scoring import BaseScorerPlugin class CountsScorer(BaseScorerPlugin): name = "Counts Only" version = "1.0" author = "Alan Rubin, Daniel Esposito" def compute_scores(self): return
19.083333
53
0.69869
9a98c3555c288044f635a1088b91123967802dc5
5,184
py
Python
ch18/day02/Kiwoom.py
hnccho/book
f659bc759dca6d4991183147db7ae04abb4265a4
[ "MIT" ]
null
null
null
ch18/day02/Kiwoom.py
hnccho/book
f659bc759dca6d4991183147db7ae04abb4265a4
[ "MIT" ]
null
null
null
ch18/day02/Kiwoom.py
hnccho/book
f659bc759dca6d4991183147db7ae04abb4265a4
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import * from PyQt5.QAxContainer import * from PyQt5.QtCore import * import time import pandas as pd import sqlite3 TR_REQ_TIME_INTERVAL = 0.2 class Kiwoom(QAxWidget): def __init__(self): super().__init__() self._create_kiwoom_instance() self._set_signal_slo...
36
115
0.636767
b73ac9dae7488c0f7025281929783ad3e269de61
1,125
py
Python
scripts/generate_full_tms_for_fib_entries.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
10
2021-02-09T19:25:46.000Z
2022-03-29T13:49:23.000Z
scripts/generate_full_tms_for_fib_entries.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
null
null
null
scripts/generate_full_tms_for_fib_entries.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
5
2020-12-23T15:24:40.000Z
2022-01-06T09:42:38.000Z
#! /usr/bin/env python # Use this script to generate a full TM so we can # compute the fib entries for a given topology import sys sys.path.append('..') from lib.problems import get_problem from pathos import multiprocessing import os TM_DIR = '../traffic-matrices/full-tms' def generate_traffic_matrix(prob_short_n...
23.4375
78
0.648
f866e45e0ba2b98053363910a74a830e4c1e9854
8,082
py
Python
examples/calibration/plot_compare_calibration.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
2
2020-11-07T02:13:22.000Z
2022-01-18T14:42:59.000Z
examples/calibration/plot_compare_calibration.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2022-01-12T13:11:21.000Z
2022-01-12T13:11:21.000Z
examples/calibration/plot_compare_calibration.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2021-11-03T09:49:02.000Z
2021-11-03T09:49:02.000Z
""" ======================================== Comparison of Calibration of Classifiers ======================================== Well calibrated classifiers are probabilistic classifiers for which the output of :term:`predict_proba` can be directly interpreted as a confidence level. For instance, a well calibrated (bina...
38.855769
95
0.719376
9306583684530c44e25d6390cf5f4a8f527462ae
5,569
py
Python
src/globus_cli/services/recursive_ls.py
masalim2/globus-cli
aaea1635cec2948cb4ca047d2168866d30696e2d
[ "Apache-2.0" ]
null
null
null
src/globus_cli/services/recursive_ls.py
masalim2/globus-cli
aaea1635cec2948cb4ca047d2168866d30696e2d
[ "Apache-2.0" ]
null
null
null
src/globus_cli/services/recursive_ls.py
masalim2/globus-cli
aaea1635cec2948cb4ca047d2168866d30696e2d
[ "Apache-2.0" ]
null
null
null
# TDOD: Remove this file when endpoints natively support recursive ls import logging import time from collections import deque logger = logging.getLogger(__name__) # constants for controlling rate limiting SLEEP_FREQUENCY = 25 SLEEP_LEN = 1 class RecursiveLsResponse: """ Response class for recursive_operat...
37.628378
86
0.573173
b4cf1828d04f018d0eb56e580045a2ee25898b61
29,308
py
Python
conformance-checkers/tools/picture.py
AYCHKnow/WebPlatformTest
ccf316907ed4451ad0c752b686abb6ab75c54618
[ "BSD-3-Clause" ]
5
2017-10-22T14:26:47.000Z
2021-09-30T17:53:17.000Z
conformance-checkers/tools/picture.py
jakearchibald/web-platform-tests
ccf316907ed4451ad0c752b686abb6ab75c54618
[ "BSD-3-Clause" ]
6
2021-03-31T19:46:43.000Z
2022-03-12T00:23:07.000Z
conformance-checkers/tools/picture.py
AYCHKnow/WebPlatformTest
ccf316907ed4451ad0c752b686abb6ab75c54618
[ "BSD-3-Clause" ]
4
2017-10-11T15:24:58.000Z
2022-02-17T12:09:04.000Z
# -*- coding: utf-8 -*- import os ccdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) template = """<!DOCTYPE html> <!-- DO NOT EDIT! This test has been generated by /conformance-checkers/tools/picture.py. --> <meta charset=utf-8> """ errors = { # missing src on img "img-no-src": "<img alt>", ...
80.076503
178
0.660263
932c87335bef8f94b5748b3f54f80460d5be6297
1,505
py
Python
models/user.py
sokil/VotingEngine
93905bb64e892bb431bd17a396bd70fe589c9dd8
[ "MIT" ]
1
2019-09-28T14:00:32.000Z
2019-09-28T14:00:32.000Z
models/user.py
sokil/VotingEngine
93905bb64e892bb431bd17a396bd70fe589c9dd8
[ "MIT" ]
null
null
null
models/user.py
sokil/VotingEngine
93905bb64e892bb431bd17a396bd70fe589c9dd8
[ "MIT" ]
null
null
null
from app import db from sqlalchemy import Column, String, Integer from random import randint from crypt import crypt class User(db.Model): __tablename__ = 'users' id = Column(Integer, primary_key=True) email = Column(String(255), index=True) password = Column(String(255)) role = Column(String(30)...
27.87037
94
0.652492
67e0b1ce455932d27744aa1a085919be4f6a5cf4
10,950
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/callback/logentries.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/callback/logentries.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/callback/logentries.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2015, Logentries.com, Jimmy Tang <jimmy.tang@logentries.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' callback: logentries...
33.181818
157
0.630502
79cd91da4feea227b52c168b9bdc18e4cf50d03c
501
py
Python
Sherlock And The Valid String.py
yashbhatt99/HackerRank-Problems
1c35bb20a662a917ab8657035f3a672001211a8c
[ "MIT" ]
10
2019-04-13T16:27:25.000Z
2019-10-31T10:46:25.000Z
Sherlock And The Valid String.py
yashbhatt99/HackerRank-Problems
1c35bb20a662a917ab8657035f3a672001211a8c
[ "MIT" ]
1
2020-10-21T15:39:15.000Z
2020-10-21T15:39:15.000Z
Sherlock And The Valid String.py
yashbhatt99/HackerRank-Problems
1c35bb20a662a917ab8657035f3a672001211a8c
[ "MIT" ]
3
2020-10-01T10:00:54.000Z
2020-10-20T16:57:18.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 13 11:32:14 2020 @author: Ravi """ from collections import Counter def isValid(s): s1 = Counter(s) values = list(s1.values()) val_max = max(values) val_min = min(values) if val_max == val_min or (val_max - val_min == 1 and values.cou...
25.05
161
0.576846
9b188ce4492d502e3da7d11a81a8efa9a3cab20f
20,803
py
Python
taiga/projects/userstories/api.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
taiga/projects/userstories/api.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
taiga/projects/userstories/api.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
46.853604
110
0.612892
d4951e808553a8cba6b5e489c400e9ab32918aa8
3,433
py
Python
src/problem4.py
brutchjd/08-Exam1-201920
aa12b1c8554fec884b5bf79e377ce88c2d6d33c2
[ "MIT" ]
null
null
null
src/problem4.py
brutchjd/08-Exam1-201920
aa12b1c8554fec884b5bf79e377ce88c2d6d33c2
[ "MIT" ]
null
null
null
src/problem4.py
brutchjd/08-Exam1-201920
aa12b1c8554fec884b5bf79e377ce88c2d6d33c2
[ "MIT" ]
null
null
null
""" Exam 1, problem 4. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Jared Brutcher. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg def main(): """ Calls the TEST functions in th...
31.495413
93
0.557239
3ae66120fc9b0f588ad697e237b0c0ab0f814f4e
3,223
py
Python
upload/forms.py
VForWaTer/vforwater-portal
225177e6f0796e909084e93c076840d0271d567f
[ "MIT" ]
1
2020-05-15T14:51:10.000Z
2020-05-15T14:51:10.000Z
upload/forms.py
VForWaTer/vforwater-portal
225177e6f0796e909084e93c076840d0271d567f
[ "MIT" ]
7
2019-07-12T17:12:00.000Z
2021-12-14T08:12:26.000Z
upload/forms.py
VForWaTer/vforwater-portal
225177e6f0796e909084e93c076840d0271d567f
[ "MIT" ]
1
2021-04-28T21:58:24.000Z
2021-04-28T21:58:24.000Z
from django import forms from django.contrib.gis import forms from django.forms import DateField # To upload the file to a model check the django documentation # https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/ # import datetime from vfwheron.models import Entries, NmPersonsEntries, Persons class Mul...
37.917647
121
0.537698
5e1d5ca6095e648f84cc49fbf0197715a1610d2a
7,740
py
Python
daq/tkversionpatch.py
karplus/PteroDAQ
17b0a7892ba18626bb772dcdae058c029c6c48f1
[ "MIT" ]
1
2019-12-18T05:43:24.000Z
2019-12-18T05:43:24.000Z
daq/tkversionpatch.py
karplus/PteroDAQ
17b0a7892ba18626bb772dcdae058c029c6c48f1
[ "MIT" ]
2
2019-12-20T00:25:14.000Z
2020-01-22T03:38:21.000Z
daq/tkversionpatch.py
karplus/PteroDAQ
17b0a7892ba18626bb772dcdae058c029c6c48f1
[ "MIT" ]
null
null
null
import sys def tk_patch_if_needed(root): """Check the tk version number. If we know of problems with that version, patch things as much as feasible. """ version=root.globalgetvar('tk_version') fields=version.split('.') major,minor=int(fields[0]),int(fields[1]) if (major,minor) < (...
54.507042
122
0.567313
824cb4f96fdaf5e8c05685538d3670ffb8576a1b
5,807
py
Python
trackeval/utils.py
AlexanderSing/TrackEval
373e643f8989445f0253af6748e9e247d6ae6322
[ "MIT" ]
325
2021-02-25T19:00:23.000Z
2022-03-31T14:30:42.000Z
trackeval/utils.py
AlexanderSing/TrackEval
373e643f8989445f0253af6748e9e247d6ae6322
[ "MIT" ]
49
2021-03-26T14:40:28.000Z
2022-03-27T17:33:13.000Z
trackeval/utils.py
AlexanderSing/TrackEval
373e643f8989445f0253af6748e9e247d6ae6322
[ "MIT" ]
93
2021-02-26T09:05:37.000Z
2022-03-30T11:44:01.000Z
import os import csv import argparse from collections import OrderedDict def init_config(config, default_config, name=None): """Initialise non-given config values with defaults""" if config is None: config = default_config else: for k in default_config.keys(): if k not in conf...
39.503401
120
0.593938
f9fbfd28b96a6d161a57bdb13b42b331a50a42cd
5,124
py
Python
test/functional/mempool_accept_wtxid.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
6
2018-02-28T22:23:46.000Z
2020-02-13T13:49:44.000Z
test/functional/mempool_accept_wtxid.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
test/functional/mempool_accept_wtxid.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
6
2018-02-05T12:51:25.000Z
2020-04-26T10:42:49.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test mempool acceptance in case of an already known transaction with identical non-witness data but differe...
39.72093
131
0.690867
4d09838befb9d38689c03e7ca157f46dfe65e66c
3,134
py
Python
utils/objDet_utils.py
hei-threebody/Object-detection
2f536486b293c75a85486657188c2470a6bf8790
[ "MIT" ]
null
null
null
utils/objDet_utils.py
hei-threebody/Object-detection
2f536486b293c75a85486657188c2470a6bf8790
[ "MIT" ]
null
null
null
utils/objDet_utils.py
hei-threebody/Object-detection
2f536486b293c75a85486657188c2470a6bf8790
[ "MIT" ]
null
null
null
import os from utils.app_utils import * import numpy as np import tensorflow as tf from object_detection.utils import label_map_util from object_detection.utils import visualization_utils as vis_util # Path to frozen detection graph. This is the actual model that is used for the object detection. PATH_TO_CKPT = 'mode...
38.691358
99
0.703255
ccb04a1cea266aae08f8aaf9959057396dfcca6e
714
py
Python
validate.py
weepingwillowben/hyperparam-opt
63220ba6d60f03ee80d7210c00d7463955cd949c
[ "MIT" ]
1
2020-08-24T20:09:31.000Z
2020-08-24T20:09:31.000Z
validate.py
weepingwillowben/hyperparam-opt
63220ba6d60f03ee80d7210c00d7463955cd949c
[ "MIT" ]
null
null
null
validate.py
weepingwillowben/hyperparam-opt
63220ba6d60f03ee80d7210c00d7463955cd949c
[ "MIT" ]
null
null
null
class ConfigError(Exception): pass class HyperParamError(Exception): pass class DataPointError(Exception): pass def validate(current_data): vars = current_data['dim_ranges'] #validate dim_ranges try: for item in vars.values(): if item['type'] == "discrete": ...
27.461538
84
0.62465
c6b078afdc886c3d3044e0f7956350880238bb15
952
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/rms/models/TemplateContent.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/rms/models/TemplateContent.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/rms/models/TemplateContent.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
31.733333
75
0.716387
3fec606225450bed750e4fbae253fe864c95b34d
3,786
py
Python
iimmpact/models/transactions_response_balance.py
iimmpact/iimmpact_python_api
d1de12df3eb984ebc7f6adef800d7cb0265e173e
[ "MIT" ]
null
null
null
iimmpact/models/transactions_response_balance.py
iimmpact/iimmpact_python_api
d1de12df3eb984ebc7f6adef800d7cb0265e173e
[ "MIT" ]
null
null
null
iimmpact/models/transactions_response_balance.py
iimmpact/iimmpact_python_api
d1de12df3eb984ebc7f6adef800d7cb0265e173e
[ "MIT" ]
null
null
null
# coding: utf-8 """ IIMMPACT API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2020-09-14T13:01:14Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: ...
26.661972
119
0.562335
4e1b51ad464ed3ca5abb2a3c4c6652cd956130c7
5,284
py
Python
gram/views.py
VGichuki/instagram-app
78e0e4c529f76a2aca0624c396c85d176a39ce98
[ "MIT", "Unlicense" ]
null
null
null
gram/views.py
VGichuki/instagram-app
78e0e4c529f76a2aca0624c396c85d176a39ce98
[ "MIT", "Unlicense" ]
null
null
null
gram/views.py
VGichuki/instagram-app
78e0e4c529f76a2aca0624c396c85d176a39ce98
[ "MIT", "Unlicense" ]
null
null
null
from django.shortcuts import render,redirect, get_object_or_404 from django.http import HttpResponse from .models import Profile,Post,Comment,Follow from .forms import PostForm, CreateUserForm, UpdateProfileForm, UserCommentForm from django.contrib.auth.forms import UserCreationForm from django.contrib import messages ...
32.219512
102
0.670136
68aab7d149cf5a863c0fc67dcfba933705faeeb7
939
py
Python
setup.py
corrafig/urlwatch
6d36738b1d86932bcad9872a83b23238fe09f852
[ "BSD-3-Clause" ]
1
2020-04-07T18:56:34.000Z
2020-04-07T18:56:34.000Z
setup.py
anuragprasad95/urlwatch
db1931e68028effca4b1909cd97c5c9f8da3008b
[ "BSD-3-Clause" ]
null
null
null
setup.py
anuragprasad95/urlwatch
db1931e68028effca4b1909cd97c5c9f8da3008b
[ "BSD-3-Clause" ]
1
2019-09-25T16:25:20.000Z
2019-09-25T16:25:20.000Z
#!/usr/bin/env python3 from setuptools import setup import os import re main_py = open(os.path.join('lib', 'urlwatch', '__init__.py')).read() m = dict(re.findall("\n__([a-z]+)__ = '([^']+)'", main_py)) docs = re.findall('"""(.*?)"""', main_py, re.DOTALL) m['name'] = 'urlwatch' m['author'], m['author_email'] = re.ma...
31.3
93
0.604899
ca203ae6269ffd876b22ece606b1d7a18265f29a
6,881
py
Python
samples/client/petstore/python-experimental/petstore_api/model/additional_properties_array.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
3
2021-04-09T01:04:32.000Z
2022-02-02T11:02:22.000Z
samples/client/petstore/python-experimental/petstore_api/model/additional_properties_array.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
10
2021-03-09T14:12:46.000Z
2022-02-27T11:42:16.000Z
samples/client/petstore/python-experimental/petstore_api/model/additional_properties_array.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
5
2020-11-26T05:13:41.000Z
2021-04-09T15:58:18.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
38.875706
174
0.586543
86fcc47fa9b841b586629cd350dd8185dd54f011
9,353
py
Python
libcloud/test/__init__.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
1
2015-11-05T15:37:04.000Z
2015-11-05T15:37:04.000Z
libcloud/test/__init__.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
null
null
null
libcloud/test/__init__.py
Jc2k/libcloud
508dfb4791e5f3f49214567725d56b367075effc
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
30.268608
79
0.617984
a70e7aba4c7d4f1250d66f7bd27aac2d069be1d7
19,080
py
Python
Lib/site-packages/tensorboard/backend/event_processing/data_provider.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
4
2020-09-02T16:13:51.000Z
2021-06-05T08:45:59.000Z
Lib/site-packages/tensorboard/backend/event_processing/data_provider.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorboard/backend/event_processing/data_provider.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
1
2020-09-17T13:16:30.000Z
2020-09-17T13:16:30.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.338552
82
0.626468
f42eec7fce1d07686617fd446f512b698d6192ee
1,582
py
Python
gemtown/songs/migrations/0004_auto_20190420_1737.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/songs/migrations/0004_auto_20190420_1737.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/songs/migrations/0004_auto_20190420_1737.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-04-20 08:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('songs', '0003_auto_20190420_1532'), ] operations = [ migrations.AlterField( model_name='song', name='career', ...
46.529412
255
0.551201
e4bc722f3551ce34dd227b7e656efee25750c592
324
py
Python
decision_tree/node.py
OkanoShogo0903/deep_work_space
30849a3ec6f763f482afae54e3c31779caadb3de
[ "MIT" ]
null
null
null
decision_tree/node.py
OkanoShogo0903/deep_work_space
30849a3ec6f763f482afae54e3c31779caadb3de
[ "MIT" ]
2
2018-11-19T07:04:47.000Z
2019-02-23T04:04:37.000Z
decision_tree/node.py
OkanoShogo0903/deep_work_space
30849a3ec6f763f482afae54e3c31779caadb3de
[ "MIT" ]
null
null
null
class _Node: #def __init__(self, data): def __init__(self, data): self.data = data self.feature_id = None self.threashold = None self.left = None # <--- left Node self.right = None # <--- right Node @property def is_leaf(self): return self.feature_id is N...
24.923077
43
0.574074
6629052c2d4a32e4b7537bf25add946b33364629
3,499
py
Python
src/jackers.py
anonomity/MinMaxCheckers
faadb081399387e38b061cd555c71eb9c02cd3d0
[ "MIT" ]
null
null
null
src/jackers.py
anonomity/MinMaxCheckers
faadb081399387e38b061cd555c71eb9c02cd3d0
[ "MIT" ]
null
null
null
src/jackers.py
anonomity/MinMaxCheckers
faadb081399387e38b061cd555c71eb9c02cd3d0
[ "MIT" ]
null
null
null
import numpy as np import random from board import board from Player import Player import copy def min_max(board, player, opponent, depth, is_max, eval_function): if is_max: if depth == 0: # if reached the end of the search or if there's no more moves return eval_function(player, board), None...
29.652542
110
0.56016
ba35da4e143509e57662c49596126df79849557f
425
py
Python
geostore/import_status/entrypoint.py
adisbladis/geostore
79439c06b33414e1e26b3aa4b93a72fd7cbbae83
[ "MIT" ]
25
2021-05-19T08:05:07.000Z
2022-03-14T02:48:58.000Z
geostore/import_status/entrypoint.py
adisbladis/geostore
79439c06b33414e1e26b3aa4b93a72fd7cbbae83
[ "MIT" ]
311
2021-05-17T23:04:56.000Z
2022-03-31T10:41:44.000Z
geostore/import_status/entrypoint.py
adisbladis/geostore
79439c06b33414e1e26b3aa4b93a72fd7cbbae83
[ "MIT" ]
1
2021-05-05T04:23:32.000Z
2021-05-05T04:23:32.000Z
""" Dataset-versions endpoint Lambda function. """ from typing import Callable, Mapping from ..api_responses import handle_request from ..types import JsonObject from .get import get_import_status REQUEST_HANDLERS: Mapping[str, Callable[[JsonObject], JsonObject]] = { "GET": get_import_status, } def lambda_handl...
25
70
0.776471
b5c658e78924237cc7c0887249f2f61c73b5a7b9
786
py
Python
tikapp/exceptions.py
antoinefraboul/tika-app-python
4e17f9077caea2f72ee6c666805dfbabbb2c2d9e
[ "Apache-2.0" ]
null
null
null
tikapp/exceptions.py
antoinefraboul/tika-app-python
4e17f9077caea2f72ee6c666805dfbabbb2c2d9e
[ "Apache-2.0" ]
null
null
null
tikapp/exceptions.py
antoinefraboul/tika-app-python
4e17f9077caea2f72ee6c666805dfbabbb2c2d9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2016 Fedele Mantuano (https://twitter.com/fedelemantuano) 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/lice...
27.103448
72
0.760814
c6dc980f2fb710cb49800b6f4efef975be31ed43
1,718
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/lifesciences/operation_poller.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/lifesciences/operation_poller.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/lifesciences/operation_poller.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google Inc. 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 requir...
36.553191
99
0.766589
419786a9e599b0275c91dda209511c06f7923d15
1,899
py
Python
teste_cg.py
kewitz/master
fd07c7ec40bc72e8870b2bdff770390487977a2f
[ "MIT" ]
3
2015-03-23T20:23:55.000Z
2020-04-14T15:18:43.000Z
teste_cg.py
kewitz/master
fd07c7ec40bc72e8870b2bdff770390487977a2f
[ "MIT" ]
null
null
null
teste_cg.py
kewitz/master
fd07c7ec40bc72e8870b2bdff770390487977a2f
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2014 Leonardo Kewitz 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 limit...
35.166667
78
0.745656
32a816a460f8af7ae18fbc7e198967781792af93
132
py
Python
Curso-em-video/115-exerciciospython/d017_pitagoras.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
1
2021-05-24T19:44:04.000Z
2021-05-24T19:44:04.000Z
Curso-em-video/115-exerciciospython/d017_pitagoras.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
null
null
null
Curso-em-video/115-exerciciospython/d017_pitagoras.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
null
null
null
co = float(input('Cateto oposto = ')) ca = float(input('Cateto adjacente = ')) h = (co**2 + ca**2)**0.5 print('A hipotenusa = ', h)
26.4
40
0.583333
ac2f9cfbb2bb17f94a4d415f320a7f84f0cc372d
1,834
py
Python
nipype/interfaces/mipav/tests/test_auto_JistBrainMp2rageSkullStripping.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/mipav/tests/test_auto_JistBrainMp2rageSkullStripping.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/mipav/tests/test_auto_JistBrainMp2rageSkullStripping.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..developer import JistBrainMp2rageSkullStripping def test_JistBrainMp2rageSkullStripping_inputs(): input_map = dict(args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore...
26.970588
67
0.643402
250ad10edf16effdc59eb6eca6d18dc11e3d77f4
81,637
py
Python
transformers/src/transformers/models/t5/modeling_t5.py
qcwthu/Lifelong-Fewshot-Language-Learning
cf7d17ce7de6a707d929d0542b3d5e639569855f
[ "MIT" ]
36
2022-02-10T07:24:30.000Z
2022-03-31T21:00:59.000Z
transformers/src/transformers/models/t5/modeling_t5.py
qcwthu/Lifelong-Fewshot-Language-Learning
cf7d17ce7de6a707d929d0542b3d5e639569855f
[ "MIT" ]
null
null
null
transformers/src/transformers/models/t5/modeling_t5.py
qcwthu/Lifelong-Fewshot-Language-Learning
cf7d17ce7de6a707d929d0542b3d5e639569855f
[ "MIT" ]
2
2022-03-07T03:21:57.000Z
2022-03-27T16:50:02.000Z
# coding=utf-8 # Copyright 2018 Mesh TensorFlow authors, T5 Authors and HuggingFace Inc. team. # # 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...
44.880154
213
0.651996
a43535041790f81eea78ca02d5962bff79043156
1,365
py
Python
CreateSurrogates/AVM_surrogate_trait.py
pik-copan/pydrf
998072d655331ca6669c71bb6df665292e8972e7
[ "BSD-3-Clause" ]
1
2021-10-01T09:01:30.000Z
2021-10-01T09:01:30.000Z
CreateSurrogates/AVM_surrogate_trait.py
pik-copan/pydrf
998072d655331ca6669c71bb6df665292e8972e7
[ "BSD-3-Clause" ]
null
null
null
CreateSurrogates/AVM_surrogate_trait.py
pik-copan/pydrf
998072d655331ca6669c71bb6df665292e8972e7
[ "BSD-3-Clause" ]
1
2021-10-01T09:02:54.000Z
2021-10-01T09:02:54.000Z
# from sensible_raw.loaders import loader from world_viewer.synthetic_world import SyntheticWorld from world_viewer.glasses import Glasses import pandas as pd import matplotlib.pyplot as plt import numpy as np import networkx as nx from matplotlib.colors import LogNorm from sklearn.utils import shuffle import pickle d...
35.921053
99
0.747985
e8bcf27a6195f34b15d98d353c3a393b209debc2
11,108
py
Python
homeassistant/components/xiaomi_aqara.py
ileler/home-assistant
6fadab8c95b0563e8ed02aedff18cda2b797795e
[ "Apache-2.0" ]
null
null
null
homeassistant/components/xiaomi_aqara.py
ileler/home-assistant
6fadab8c95b0563e8ed02aedff18cda2b797795e
[ "Apache-2.0" ]
null
null
null
homeassistant/components/xiaomi_aqara.py
ileler/home-assistant
6fadab8c95b0563e8ed02aedff18cda2b797795e
[ "Apache-2.0" ]
null
null
null
""" Support for Xiaomi Gateways. For more details about this component, please refer to the documentation at https://home-assistant.io/components/xiaomi_aqara/ """ import asyncio import logging from datetime import timedelta import voluptuous as vol from homeassistant.components.discovery import SERVICE_XIAOMI_GW f...
32.961424
77
0.673569
586bdc07fbdf28afd53ad3ad6f70f79e30442680
126,881
py
Python
ironic/tests/unit/drivers/modules/test_agent.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
350
2015-01-02T09:35:49.000Z
2022-03-28T09:25:59.000Z
ironic/tests/unit/drivers/modules/test_agent.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
7
2015-05-04T16:12:41.000Z
2021-08-31T12:27:27.000Z
ironic/tests/unit/drivers/modules/test_agent.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
333
2015-01-06T09:09:22.000Z
2022-02-20T08:11:40.000Z
# Copyright 2014 Rackspace, 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 writin...
51.368826
79
0.641617
e69978f03f75e6d50f532b34079557ac3bf67040
1,943
py
Python
electrum_cadex/plot.py
cadexproject/electrum-cadex
5f8b80feee8be2c4f6f7a3245f896aadd966777c
[ "MIT" ]
null
null
null
electrum_cadex/plot.py
cadexproject/electrum-cadex
5f8b80feee8be2c4f6f7a3245f896aadd966777c
[ "MIT" ]
1
2021-11-15T17:48:24.000Z
2021-11-15T17:48:24.000Z
electrum_cadex/plot.py
cadexproject/electrum-cadex
5f8b80feee8be2c4f6f7a3245f896aadd966777c
[ "MIT" ]
null
null
null
import datetime from collections import defaultdict import matplotlib matplotlib.use('Qt5Agg') import matplotlib.pyplot as plt import matplotlib.dates as md from .i18n import _ from .bitcoin import COIN class NothingToPlotException(Exception): def __str__(self): return _("Nothing to plot."...
30.359375
77
0.613484
6e075c9ef6492f6017b1d61abab6e72046dc65e5
328
py
Python
players/migrations/0006_remove_profile_email.py
sazzad1337/CTF
2bd4a66e931ad97e8feafe3614d7aa036d507953
[ "Apache-2.0" ]
null
null
null
players/migrations/0006_remove_profile_email.py
sazzad1337/CTF
2bd4a66e931ad97e8feafe3614d7aa036d507953
[ "Apache-2.0" ]
null
null
null
players/migrations/0006_remove_profile_email.py
sazzad1337/CTF
2bd4a66e931ad97e8feafe3614d7aa036d507953
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.4 on 2021-11-15 06:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('players', '0005_auto_20211115_1147'), ] operations = [ migrations.RemoveField( model_name='profile', name='email', )...
18.222222
47
0.591463
7d99c872bc3d1ee74baa28a809f832884ae06580
2,204
py
Python
src/third_party/wiredtiger/lang/python/setup.py
joprice/mongo
c8171e7f969519af8b87a43425ae291ee69a0191
[ "Apache-2.0" ]
1
2015-11-06T05:55:10.000Z
2015-11-06T05:55:10.000Z
src/third_party/wiredtiger/lang/python/setup.py
wujf/mongo
f2f48b749ded0c5585c798c302f6162f19336670
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/lang/python/setup.py
wujf/mongo
f2f48b749ded0c5585c798c302f6162f19336670
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compiled # binary, for any purpose, commercial...
38
73
0.735027
6d9407d79a224671f95492fcccbce1415d450788
319
py
Python
parser/team03/parse/sql_dml/delete.py
18SebastianVC/tytus
2b22f4339356b6cf46e3235a5219f68e5ba5573b
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team03/parse/sql_dml/delete.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team03/parse/sql_dml/delete.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
from parse.ast_node import ASTNode class Delete(ASTNode): def __init__(self, table_name, where, line, column): ASTNode.__init__(self, line, column) self.table_name = table_name self.where = where def execute(self, table, tree): super().execute(table, tree) return True
26.583333
56
0.655172
46da4afe89e0d6a49d7c8b0d88b2d05ce731eca5
3,765
py
Python
holoviews/plotting/plotly/shapes.py
ruoyu0088/holoviews
d0762f863764d6cd17884377a222bd7a4b267a9e
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/plotly/shapes.py
ruoyu0088/holoviews
d0762f863764d6cd17884377a222bd7a4b267a9e
[ "BSD-3-Clause" ]
1
2021-04-17T15:31:36.000Z
2021-04-17T15:31:36.000Z
holoviews/plotting/plotly/shapes.py
ruoyu0088/holoviews
d0762f863764d6cd17884377a222bd7a4b267a9e
[ "BSD-3-Clause" ]
1
2018-11-22T18:45:51.000Z
2018-11-22T18:45:51.000Z
from __future__ import absolute_import, division, unicode_literals import param from ...element import HLine, VLine, HSpan, VSpan from ..mixins import GeomMixin from .element import ElementPlot class ShapePlot(ElementPlot): # The plotly shape type ("line", "rect", etc.) _shape_type = None style_opts = ...
32.73913
82
0.587517
6a6fbc987de96fe10013bbc3dcb2356eb8dce7f8
1,110
py
Python
examples/autocompletion.py
davidbrochart/python-prompt-toolkit
8498692b31671fee7c5a426300a9df2ee290eae2
[ "BSD-3-Clause" ]
2
2020-04-12T01:23:25.000Z
2021-05-22T13:46:00.000Z
examples/autocompletion.py
davidbrochart/python-prompt-toolkit
8498692b31671fee7c5a426300a9df2ee290eae2
[ "BSD-3-Clause" ]
null
null
null
examples/autocompletion.py
davidbrochart/python-prompt-toolkit
8498692b31671fee7c5a426300a9df2ee290eae2
[ "BSD-3-Clause" ]
2
2016-12-30T23:57:44.000Z
2021-05-22T13:50:21.000Z
#!/usr/bin/env python """ Autocompletion example. Press [Tab] to complete the current word. - The first Tab press fills in the common part of all completions and shows all the completions. (In the menu) - Any following tab press cycles through all the possible completions. """ from __future__ import unicode_litera...
18.5
70
0.606306
b3265aded95719a4ea8cf8537554098dad02ca42
6,772
py
Python
docs/conf.py
mcfarljm/dwavebinarycsp
383feb01422bc292b869f2994da57b5f475bd32d
[ "Apache-2.0" ]
null
null
null
docs/conf.py
mcfarljm/dwavebinarycsp
383feb01422bc292b869f2994da57b5f475bd32d
[ "Apache-2.0" ]
null
null
null
docs/conf.py
mcfarljm/dwavebinarycsp
383feb01422bc292b869f2994da57b5f475bd32d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # DWaveNetworkX documentation build configuration file, created by # sphinx-quickstart on Wed Jul 26 10:55:26 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
31.793427
102
0.685765
776c9360ffda50b2ae58832ab323c018f3559d4b
1,138
py
Python
xdl/xdl/python/lib/tensorshape.py
hitflame/x-deeplearning
c8029396c6ae6dbf397a34a1801ceadc824e4f8d
[ "Apache-2.0" ]
2
2019-11-11T09:51:56.000Z
2021-08-04T04:02:29.000Z
xdl/xdl/python/lib/tensorshape.py
hitflame/x-deeplearning
c8029396c6ae6dbf397a34a1801ceadc824e4f8d
[ "Apache-2.0" ]
1
2019-11-29T14:52:53.000Z
2019-11-29T14:52:53.000Z
xdl/xdl/python/lib/tensorshape.py
hitflame/x-deeplearning
c8029396c6ae6dbf397a34a1801ceadc824e4f8d
[ "Apache-2.0" ]
1
2019-08-03T05:22:19.000Z
2019-08-03T05:22:19.000Z
# Copyright (C) 2016-2018 Alibaba Group Holding Limited # # 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...
31.611111
80
0.672232
33e63a4f717ba95d15d40d45d5f1cf17db090fbb
1,206
py
Python
caboto/drawing.py
tobifroe/caboto
45d142c70a16905e41b984ed7adccc81b19da98f
[ "MIT" ]
null
null
null
caboto/drawing.py
tobifroe/caboto
45d142c70a16905e41b984ed7adccc81b19da98f
[ "MIT" ]
null
null
null
caboto/drawing.py
tobifroe/caboto
45d142c70a16905e41b984ed7adccc81b19da98f
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import networkx as nx WEIGHTS = {"pod": 450, "deployment": 200, "service": 220, "ingress": 120, "statefulset": 200, "namespace": 500} DEFAULT_WEIGHT = 20 COLORS = {"pod": 1.223, "deployment": 0.571, "service": 0.33, "ingress": 0.942, "statefulset": 0.571} DEFAULT_COLOR = 0.25 def dra...
46.384615
115
0.71476
11e805a4310e56fc9bc2d3298f09300de062bec6
4,748
py
Python
src/plot_csv/plot_gps.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
src/plot_csv/plot_gps.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
src/plot_csv/plot_gps.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
#!/bin/env python import argparse import matplotlib.pyplot as plt import os import sys import tilemapbase # insert current directory into PYTHONPATH to allow imports sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from csv_io import gen_input_files, read_csv_files_gps from plot_config import FIGURE_CON...
31.236842
119
0.643429
44795e968649dee800f8246d9224d35395ef2ab2
259
py
Python
lesson02_solved/2.py
manuelsousa7/labs-fp
c09485335744c626a6a4df8a607e01ef0860b39a
[ "MIT" ]
null
null
null
lesson02_solved/2.py
manuelsousa7/labs-fp
c09485335744c626a6a4df8a607e01ef0860b39a
[ "MIT" ]
null
null
null
lesson02_solved/2.py
manuelsousa7/labs-fp
c09485335744c626a6a4df8a607e01ef0860b39a
[ "MIT" ]
null
null
null
a=int(input("Inserir Numero 1: ")) b=int(input("Inserir Numero 2: ")) c=int(input("Inserir Numero 3: ")) if (a>b and a>c): print("O maior numero e o: ", a) elif (b>a and b>c): print("O maior numero e o: ", b) else: print("O maior numero e o: ", c)
28.777778
36
0.590734
3cd92813c5c8af180a9166cf6bb12a8fed3fe63b
3,169
py
Python
cachetclient/v1/metric_points.py
msisam/cachet-client-1
ca1dd4f6975c393309f636fbba8e92dab73f3063
[ "MIT" ]
15
2019-07-12T21:33:29.000Z
2021-02-08T14:01:38.000Z
cachetclient/v1/metric_points.py
msisam/cachet-client-1
ca1dd4f6975c393309f636fbba8e92dab73f3063
[ "MIT" ]
25
2019-06-21T23:58:20.000Z
2021-04-02T10:28:53.000Z
cachetclient/v1/metric_points.py
msisam/cachet-client-1
ca1dd4f6975c393309f636fbba8e92dab73f3063
[ "MIT" ]
9
2019-10-31T00:27:42.000Z
2021-11-09T09:05:31.000Z
from datetime import datetime from typing import Generator, Optional from cachetclient.base import Manager, Resource from cachetclient import utils class MetricPoint(Resource): @property def id(self) -> int: """int: unique id of the metric point""" return self.get("id") @property def...
27.556522
74
0.603029
c278abcf0c5daf5cfe5eda1a915c5f7e3dfb5f6b
4,171
py
Python
Stealer/Chromium/__init__.py
Devtion/CrazyPy
c3bde86f3925439bc3b9df308027c57c515fc712
[ "MIT" ]
2
2020-05-15T17:13:37.000Z
2020-05-15T17:14:52.000Z
Stealer/Chromium/__init__.py
fakegit/CrazyPy
9ac12baf96380d23ac3204089d5192965158f160
[ "MIT" ]
null
null
null
Stealer/Chromium/__init__.py
fakegit/CrazyPy
9ac12baf96380d23ac3204089d5192965158f160
[ "MIT" ]
null
null
null
# Import modules import os from json import loads as json_loads from base64 import b64decode from shutil import copy2 from sqlite3 import connect as sql_connect from string import ascii_lowercase from random import choice, randint from datetime import datetime from . import DPAPI try: from Crypto.Ciphe...
33.103175
115
0.643011
10b9adc5f475becb1f976036399be4e7218695c1
83
py
Python
src/xml2dsl/__init__.py
jorgecastro05/camel-xml2dsl
b572d22d8e762b4c939119ca218b17b6c8d578fa
[ "MIT" ]
null
null
null
src/xml2dsl/__init__.py
jorgecastro05/camel-xml2dsl
b572d22d8e762b4c939119ca218b17b6c8d578fa
[ "MIT" ]
4
2021-08-03T14:19:18.000Z
2022-03-30T21:22:51.000Z
src/xml2dsl/__init__.py
jorgecastro05/camel-xml2dsl
b572d22d8e762b4c939119ca218b17b6c8d578fa
[ "MIT" ]
null
null
null
import importlib.metadata __version__ = importlib.metadata.version('camel-xml2dsl')
41.5
57
0.843373
b8feaf0eb81093e2902754c916ac3ac4da1f7c59
1,522
py
Python
CircuitPython_TVBGone/gemma_main/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
CircuitPython_TVBGone/gemma_main/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
CircuitPython_TVBGone/gemma_main/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2018 John Edgar Park for Adafruit Industries # # SPDX-License-Identifier: MIT # Gemma M0 version of TVBgone! import array import time import adafruit_dotstar import board import pwmio import pulseio from digitalio import DigitalInOut, Direction # pylint: disable=eval-used pixel = adafruit_...
25.366667
70
0.664258
8b23d5e2708c0bf00884800f95536a6baa378d89
26,407
py
Python
cosmosis/postprocessing/statistics.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-09-15T10:10:26.000Z
2021-09-15T10:10:26.000Z
cosmosis/postprocessing/statistics.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
null
null
null
cosmosis/postprocessing/statistics.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
#coding: utf-8 from __future__ import print_function from builtins import zip from builtins import str from builtins import range from builtins import object from .elements import PostProcessorElement, MCMCPostProcessorElement, WeightedMCMCPostProcessorElement, MultinestPostProcessorElement import numpy as np from .uti...
36.984594
201
0.589238
d3ff6d3d22c1546c45cfa1ccfbeeaaf77c738869
1,463
py
Python
tests/test_report_executions.py
valerianrossigneux/falconpy
d25f03e2be0e727ce4c9161c90cd7eedb90c7df0
[ "Unlicense" ]
1
2021-11-19T18:25:12.000Z
2021-11-19T18:25:12.000Z
tests/test_report_executions.py
valerianrossigneux/falconpy
d25f03e2be0e727ce4c9161c90cd7eedb90c7df0
[ "Unlicense" ]
2
2022-02-03T18:04:40.000Z
2022-02-03T18:04:57.000Z
tests/test_report_executions.py
valerianrossigneux/falconpy
d25f03e2be0e727ce4c9161c90cd7eedb90c7df0
[ "Unlicense" ]
null
null
null
""" test_scheduled_reports.py - This class tests the Scheduled Reports service class """ import os import sys # Authentication via the test_authorization.py from tests import test_authorization as Authorization # Import our sibling src folder into the path sys.path.append(os.path.abspath('src')) # Classes to test - ma...
34.833333
80
0.687628
a860b1dff92e51b108316aef6461b272b97299cd
562
py
Python
solutions/bovine genomics.py
24TangC/USACO-Bronze
80f0986cb04998b039ba23c7349d25431b4e876b
[ "MIT" ]
null
null
null
solutions/bovine genomics.py
24TangC/USACO-Bronze
80f0986cb04998b039ba23c7349d25431b4e876b
[ "MIT" ]
null
null
null
solutions/bovine genomics.py
24TangC/USACO-Bronze
80f0986cb04998b039ba23c7349d25431b4e876b
[ "MIT" ]
null
null
null
N,M = map(int, input().split()) spotty = [] plain = [] for x in range(N): spotty.append(list(input())) for y in range(N): plain.append(list(input())) counter = 0 for column in range(M): disjoint = True temp_spotty = [] temp_plain = [] for i in range(N): temp_spotty.appen...
20.071429
46
0.544484
b5f7dd868aecdd6abc488666cb93ab80e26cf1e4
953
py
Python
webempresa/pages/migrations/0001_initial.py
FelixCastillo798/web-empresa-curso-django-2
26d24e62175160cf8e1b57f411361b17e5fdcc20
[ "Apache-2.0" ]
null
null
null
webempresa/pages/migrations/0001_initial.py
FelixCastillo798/web-empresa-curso-django-2
26d24e62175160cf8e1b57f411361b17e5fdcc20
[ "Apache-2.0" ]
null
null
null
webempresa/pages/migrations/0001_initial.py
FelixCastillo798/web-empresa-curso-django-2
26d24e62175160cf8e1b57f411361b17e5fdcc20
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2019-09-21 00:50 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Page', fields=[ ('id', models.AutoField(aut...
31.766667
114
0.562434
de484d6409c9f1ba00ea82bc94fb05489cfc2f35
21
py
Python
anki/plugin/__init__.py
Coobaha/suomea
e0074848936b48aa8889f9150b2b53fc998c1fcc
[ "MIT" ]
9
2021-03-14T12:36:14.000Z
2022-02-02T11:38:18.000Z
anki/plugin/__init__.py
Coobaha/suomea
e0074848936b48aa8889f9150b2b53fc998c1fcc
[ "MIT" ]
6
2021-03-14T12:47:08.000Z
2022-02-02T05:38:49.000Z
anki/plugin/__init__.py
Coobaha/suomea
e0074848936b48aa8889f9150b2b53fc998c1fcc
[ "MIT" ]
1
2021-05-04T13:22:21.000Z
2021-05-04T13:22:21.000Z
from . import suomea
10.5
20
0.761905