content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- # from __future__ import print_function from betterbib.__about__ import ( __version__, __author__, __author_email__, __website__, ) from betterbib.tools import ( create_dict, decode, pybtex_to_dict, pybtex_to_bibtex_string, write, update, Journal...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 1365, 65, 571, 13, 834, 10755, 834, 1330, 357, 198, 220, 220, 220, 11593, 9641, 834, 11, 198, ...
2.330709
254
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.core.mail import EmailMessage from django.conf import settings from django.template.loader imp...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, ...
2.999028
1,029
#!/usr/bin/env python ############################################################################# # Pastebin.py - Python 3.2 Pastebin API. # Copyright (C) 2012 Ian Havelock # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 29113, 29113, 7804, 4242, 2, 198, 2, 220, 220, 220, 29582, 13, 9078, 532, 11361, 513, 13, 17, 29582, 7824, 13, 198, 2, 220, 220, 220, 15069, 357, 34, 8, 2321, 220, 12930, 9398...
3.615222
473
import urllib.request,json from .models import News import requests News = News # Getting api key api_key = None # Getting the news base url base_url = None base_url2 = None def get_news(category): ''' Function that gets the json responce to our url request ''' get_news_url = base_url.format(categor...
[ 11748, 2956, 297, 571, 13, 25927, 11, 17752, 198, 6738, 764, 27530, 1330, 3000, 198, 11748, 7007, 198, 198, 9980, 796, 3000, 628, 198, 2, 18067, 40391, 1994, 198, 15042, 62, 2539, 796, 6045, 198, 2, 18067, 262, 1705, 2779, 19016, 198,...
2.49281
765
""" Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". For C programmers: Try to solve it in-place in O(1) space. Clarification: * What constitutes a word? A sequence of non-space characters constitutes a word. * Could the inp...
[ 37811, 201, 198, 201, 198, 15056, 281, 5128, 4731, 11, 9575, 262, 4731, 1573, 416, 1573, 13, 201, 198, 201, 198, 1890, 1672, 11, 201, 198, 15056, 264, 796, 366, 1169, 6766, 318, 4171, 1600, 201, 198, 7783, 366, 17585, 318, 6766, 262...
3.335106
188
import socket, datetime, os from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.distributed.DistributedObject import DistributedObject from toontown.toonbase import ToontownGlobals from toontown.uberdog import InGameNewsResponses
[ 11748, 17802, 11, 4818, 8079, 11, 28686, 198, 6738, 1277, 13, 17080, 6169, 13, 20344, 6169, 10267, 22289, 1330, 4307, 6169, 10267, 22289, 198, 6738, 1277, 13, 17080, 6169, 13, 20344, 6169, 10267, 1330, 4307, 6169, 10267, 198, 6738, 284, ...
3.898551
69
# Day 10 Loops from countries import * # While Loop # count = 0 # while count < 5: # if count == 3: # break # print(count) # count = count + 1 # numbers = [0,2,3,4,5,6,7,8,9,10] # for number in numbers: # print(number) # language = 'Python' # for letter in language: # print(letter) # tp...
[ 2, 3596, 838, 6706, 2840, 198, 6738, 2678, 1330, 1635, 220, 198, 198, 2, 2893, 26304, 198, 2, 954, 796, 657, 198, 2, 981, 954, 1279, 642, 25, 198, 2, 220, 220, 220, 220, 611, 954, 6624, 513, 25, 198, 2, 220, 220, 220, 220, 220...
2.43299
1,455
# -*- mode:python -*- import flask import json import logging from datetime import datetime import inflection from functools import wraps from flask import request, url_for from werkzeug.exceptions import HTTPException from .client.api.model import * from . import database from . import helpers from .application imp...
[ 2, 532, 9, 12, 4235, 25, 29412, 532, 9, 12, 198, 198, 11748, 42903, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 1167, 1564, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 42903...
3.244585
1,108
import sys import re import boto3 from botocore.exceptions import ClientError import uuid import time import yaml import os # def upload_file_s3_bucket(file_name, results, test_file, isArchive): # region = config['region'] # s3_client = boto3.client('s3', region_name=region) # if isArchive: # ...
[ 11748, 25064, 198, 11748, 302, 198, 11748, 275, 2069, 18, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 11748, 334, 27112, 198, 11748, 640, 198, 11748, 331, 43695, 198, 11748, 28686, 628, 628, 628, 198, 2, 825, ...
2.501393
359
# -*- coding: utf-8 -*- """ Created on Fri Aug 31 18:33:58 2018 @author: Marios Michailidis metrics and method to check metrics used within StackNet """ from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score , mean_squared_log_error #regression metrics from sklearn.metrics import roc_auc_sco...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2447, 3261, 1248, 25, 2091, 25, 3365, 2864, 198, 198, 31, 9800, 25, 1526, 4267, 2843, 603, 29207, 198, 198, 4164, 10466, 290, 2446, 284, ...
2.50463
432
#!/usr/bin/env python # coding=utf-8 # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2017-11-24 21:10:35 +0100 (Fri, 24 Nov 2017) # # https://github.com/harisekhon/nagios-plugins # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on Linke...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 220, 19617, 28, 40477, 12, 23, 198, 2, 220, 43907, 25, 912, 28, 19, 25, 6448, 28, 19, 25, 2032, 28, 19, 25, 316, 198, 2, 198, 2, 220, 6434, 25, 2113, 72, 37558, 24130, 198, ...
2.848485
594
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351,...
2.918956
728
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 4343, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, ...
2.903846
468
from django.http import HttpResponse from django.core.mail import send_mail import json from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from GestiRED.models import User from GestiRED.models import QualityControl, Phase, Resource, ResourceType,PhaseType from django.core import se...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 198, 11748, 33918, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 33571, 13, ...
3.545455
110
from maix import nn from PIL import Image, ImageDraw, ImageFont from maix import display, camera import time from maix.nn import decoder camera.config(size=(224, 224)) model = { "param": "/root/models/yolo2_face_awnn.param", "bin": "/root/models/yolo2_face_awnn.bin" } options = { "model_type": "aw...
[ 628, 198, 198, 6738, 17266, 844, 1330, 299, 77, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 11, 7412, 23252, 198, 6738, 17266, 844, 1330, 220, 3359, 11, 4676, 198, 11748, 640, 198, 6738, 17266, 844, 13, 20471, 1330, 875, 12342,...
2.164948
776
from dataclasses import dataclass, field from datetime import date, datetime, time, timezone from pathlib import Path from typing import Any, Dict, Optional, Union import ciso8601 import pytest from mashumaro import DataClassDictMixin from mashumaro.exceptions import UnserializableField from mashumaro.types import Se...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 11, 640, 11, 640, 11340, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 4479,...
3.168919
148
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.feature_extraction.text import TfidfTransformer from sklearn.pipeline import Pipeline from skle...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 5239, 1330, 2764, 38469, 7509, 11, 309, 69, 312, 69, 38469, 7509, ...
3.128713
202
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.375154
813
import ast import re import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import astunparse from tests.common import AstunparseCommonTestCase
[ 11748, 6468, 198, 11748, 302, 198, 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 1279, 357, 17, 11, 767, 2599, 198, 220, 220, 220, 1330, 555, 715, 395, 17, 355, 555, 715, 395, 198, 17772, 25, 198, 220, 220, 220, 1330, 555, 7...
2.96875
64
from django.core.management.base import AppCommand, CommandError from django.core.management.sql import sql_reset from django.core.management.color import no_style from django.db import connections
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 2034, 21575, 11, 9455, 12331, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 25410, 1330, 44161, 62, 42503, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8043, 1330, 645, ...
3.807692
52
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# coding:utf-8 ''' @author = super_fazai @File : requires.py @Time : 2016/8/3 12:59 @connect : superonesfazai@gmail.com ''' install_requires = [ 'ipython', 'wheel', 'utils', 'db', 'greenlet==0.4.13', 'web.py==0.40.dev1', 'pytz', 'requests', 'selenium==3.8.0', # 3.8.1phant...
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 7061, 6, 198, 31, 9800, 796, 2208, 62, 69, 1031, 1872, 198, 31, 8979, 220, 220, 220, 1058, 4433, 13, 9078, 198, 31, 7575, 220, 220, 220, 1058, 1584, 14, 23, 14, 18, 1105, 25, 3270, 198, 3...
1.765766
555
import subprocess import requests import argparse from concurrent.futures import ThreadPoolExecutor from time import sleep from datetime import datetime ICMP_ATTACK = "ICMP" HTTP_ATTACK = "HTTP" valid_attacks = {HTTP_ATTACK, ICMP_ATTACK} parser = argparse.ArgumentParser(description="DoS HTTP") parser.add_argument('-P...
[ 11748, 850, 14681, 198, 11748, 7007, 198, 11748, 1822, 29572, 198, 6738, 24580, 13, 69, 315, 942, 1330, 14122, 27201, 23002, 38409, 198, 6738, 640, 1330, 3993, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2149, 7378, 62, 17139, 81...
3.073248
314
from django.apps import apps from django.db import models from django.db.models.signals import post_save, pre_delete from typing import Type, Optional, List, cast, TYPE_CHECKING from maestro.backends.django.settings import maestro_settings from maestro.backends.django.contrib.factory import create_django_data_store fro...
[ 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1281, 62, 21928, 11, 662, 62, 33678, 198, 6738, 19720, 1330, 5994, 11, 32233, ...
3.369048
168
from django.urls import include, path from .views import home, bike urlpatterns = [ path("", home), path("bike/<int:number>", bike) ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 6738, 764, 33571, 1330, 1363, 11, 7161, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 7203, 1600, 1363, 828, 198, 220, 220, 220, 3108, 7203, 32256, 14, 27...
2.730769
52
""" Remove Fragments not in Knowledgebase """ __author__ = "Michael Suarez" __email__ = "masv@connect.ust.hk" __copyright__ = "Copyright 2019, Hong Kong University of Science and Technology" __license__ = "3-clause BSD" from argparse import ArgumentParser import numpy as np import pickle parser = ArgumentParser(desc...
[ 37811, 198, 27914, 24229, 902, 407, 287, 20414, 8692, 198, 37811, 198, 198, 834, 9800, 834, 796, 366, 13256, 39992, 1, 198, 834, 12888, 834, 796, 366, 5356, 85, 31, 8443, 13, 436, 13, 71, 74, 1, 198, 834, 22163, 4766, 834, 796, 36...
2.460366
984
"""Tests for core.billing. Run this test from the project root $ nosetests core.tests.billing_tests Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of ...
[ 37811, 51, 3558, 329, 4755, 13, 65, 4509, 13, 198, 198, 10987, 428, 1332, 422, 262, 1628, 6808, 198, 220, 220, 220, 720, 43630, 316, 3558, 4755, 13, 41989, 13, 65, 4509, 62, 41989, 198, 198, 15269, 357, 66, 8, 1584, 12, 25579, 11,...
3.533333
255
from django.contrib.auth.decorators import user_passes_test from django.utils.decorators import method_decorator from data_interrogator.admin.forms import AdminInvestigationForm, AdminPivotTableForm from data_interrogator.interrogators import Allowable from data_interrogator.views import InterrogationView, Interrogati...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 2836, 62, 6603, 274, 62, 9288, 198, 6738, 42625, 14208, 13, 26791, 13, 12501, 273, 2024, 1330, 2446, 62, 12501, 273, 1352, 198, 198, 6738, 1366, 62, 3849, 3828,...
3.460177
113
_base_ = './pspnet_r50-d8_512x512_80k_loveda.py' model = dict( backbone=dict( depth=18, init_cfg=dict( type='Pretrained', checkpoint='open-mmlab://resnet18_v1c')), decode_head=dict( in_channels=512, channels=128, ), auxiliary_head=dict(in_channels=256, channel...
[ 62, 8692, 62, 796, 705, 19571, 862, 79, 3262, 62, 81, 1120, 12, 67, 23, 62, 25836, 87, 25836, 62, 1795, 74, 62, 75, 2668, 64, 13, 9078, 6, 198, 19849, 796, 8633, 7, 198, 220, 220, 220, 32774, 28, 11600, 7, 198, 220, 220, 220, ...
1.96988
166
from typing import Dict, Any
[ 6738, 19720, 1330, 360, 713, 11, 4377 ]
4
7
from django import forms from django.forms import ModelForm from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from .choices import ActionChoice from .choices import StatusApproval from .models import GreencheckIp from .models import GreencheckIpApprove from .models impor...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 247...
3.495495
111
#!/usr/bin/env python # -*-coding:utf-8-*- from tld import get_tld __author__ = "Allen Woo" def get_domain(url): ''' url :param url: :return: ''' res = get_tld(url, as_object=True) return "{}.{}".format(res.subdomain, res.tld)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 66, 7656, 25, 40477, 12, 23, 12, 9, 12, 198, 6738, 256, 335, 1330, 651, 62, 83, 335, 198, 198, 834, 9800, 834, 796, 366, 39989, 39832, 1, 198, 198, 4299, 651, 62...
2.081301
123
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-3-Clause # Copyright 2017-2019, GoodData Corporation. All rights reserved. """ FreeIPA Manager - entity module Object representations of the entities configured in FreeIPA. """ import os import re import voluptuous import yaml from abc impo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 2, 15069, 220, 2177, 12, 2334...
3.417526
194
# pylint: skip-file from athena_glue_service_logs.catalog_manager import BaseCatalogManager
[ 2, 279, 2645, 600, 25, 14267, 12, 7753, 198, 6738, 379, 831, 64, 62, 4743, 518, 62, 15271, 62, 6404, 82, 13, 9246, 11794, 62, 37153, 1330, 7308, 49015, 13511, 628, 198 ]
2.9375
32
from twisted.internet import reactor reactor.listenTCP(8789, factory) reactor.run()
[ 6738, 19074, 13, 37675, 1330, 21905, 198, 260, 11218, 13, 4868, 268, 4825, 47, 7, 23, 40401, 11, 8860, 8, 198, 260, 11218, 13, 5143, 3419 ]
3.192308
26
import pandas as pd import numpy as np import matplotlib.pyplot as plt #Setting up Name and CSV location player_name = "Put player name" file_src = "Put target csv" raw = pd.read_csv(file_src) df = pd.DataFrame(raw) #For filtering cases replace_dict = {"description": {"hit_into_play_no_out": "contact",...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 201, 198, 2, 34149, 510, 6530, 290, 44189, 4067, 201, 198, 7829, 62, 36...
2.436754
419
# -*- coding: utf-8 -*- """ Created on Sat May 25 13:17:49 2019 @author: Toonw """ import numpy as np # Similarity measure of article ## https://pdfs.semanticscholar.org/60b5/aca20ba34d424f4236359bd5e6aa30487682.pdf
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 1737, 1679, 1511, 25, 1558, 25, 2920, 13130, 198, 198, 31, 9800, 25, 1675, 261, 86, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 628, ...
2.292929
99
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
2.857143
35
import os import time from utils.eye import Eye from utils.finger import Finger
[ 11748, 28686, 198, 11748, 640, 198, 198, 6738, 3384, 4487, 13, 25379, 1330, 14144, 198, 6738, 3384, 4487, 13, 35461, 1330, 39454, 628 ]
3.565217
23
#!/usr/bin/env python # -*- coding: UTF-8 -*- import random from ete2 import Tree, TreeStyle, NodeStyle, faces, AttrFace, CircleFace, TextFace def test_data(): D = {'taxonomy': [{"score": "0.718868", "label": "/art and entertainment/movies and tv/movies"},\ {"confident": "no", "score": "0.304296", "label": "/pets...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 11748, 4738, 198, 6738, 304, 660, 17, 1330, 12200, 11, 12200, 21466, 11, 19081, 21466, 11, 6698, 11, 3460, 81, 32388,...
2.275809
649
from __future__ import annotations import re import time from typing import get_args, Literal, TYPE_CHECKING, Union from lxml import html from compass.core.interface_base import InterfaceBase from compass.core.logger import logger from compass.core.schemas import member as schema from compass.core.settings import Se...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 302, 198, 11748, 640, 198, 6738, 19720, 1330, 651, 62, 22046, 11, 25659, 1691, 11, 41876, 62, 50084, 2751, 11, 4479, 198, 198, 6738, 300, 19875, 1330, 27711, 198, 198, 6738, 31855, ...
3.390374
187
from django.urls import path from . import views urlpatterns = [ path('', view=views.SuraListView.as_view(), name='sura-list'), path('<int:sura_num>/<int:number>/', view=views.AyahTextView.as_view(), name='ayah-detail'), path('<int:sura_num>/<int:number>', view=views.AyahTextVie...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1570, 28, 33571, 13, 50, 5330, ...
2.167742
155
from konnection.settings.base import * from pathlib import Path import os import dotenv # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent.parent # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True SECRET_KEY = 'temporaryKey'...
[ 6738, 479, 261, 1606, 295, 13, 33692, 13, 8692, 1330, 1635, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 28686, 198, 11748, 16605, 24330, 198, 198, 2, 10934, 13532, 2641, 262, 1628, 588, 428, 25, 49688, 62, 34720, 1220, 705, 7...
2.265363
716
import random from evaluation import Evaluator from generator import generator from mutate import mutateset from deap import base from deap import creator from deap import tools from parameter_group import ParameterGroup import gaussian_output from analysis import Analysis from gaussian_input import GaussianInput from ...
[ 11748, 4738, 198, 6738, 12660, 1330, 26439, 84, 1352, 198, 6738, 17301, 1330, 17301, 198, 6738, 4517, 378, 1330, 4517, 689, 316, 198, 6738, 390, 499, 1330, 2779, 198, 6738, 390, 499, 1330, 13172, 198, 6738, 390, 499, 1330, 4899, 198, ...
2.837137
2,892
import unittest #import tempfile try: from StringIO import StringIO except: from io import StringIO import pyx12.error_handler from pyx12.errors import EngineError # , X12PathError import pyx12.x12context import pyx12.params from pyx12.test.x12testdata import datafiles
[ 11748, 555, 715, 395, 198, 2, 11748, 20218, 7753, 198, 28311, 25, 198, 220, 220, 220, 422, 10903, 9399, 1330, 10903, 9399, 198, 16341, 25, 198, 220, 220, 220, 422, 33245, 1330, 10903, 9399, 198, 198, 11748, 12972, 87, 1065, 13, 18224,...
2.921569
102
# -*- coding: utf-8 -*- import re,urlparse,cookielib,os,urllib from liveresolver.modules import client,recaptcha_v2,control,constants, decryptionUtils from liveresolver.modules.log_utils import log cookieFile = os.path.join(control.dataPath, 'finecastcookie.lwp') #except: # return
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 11748, 302, 11, 6371, 29572, 11, 27916, 8207, 571, 11, 418, 11, 333, 297, 571, 198, 6738, 2107, 411, 14375, 13, 18170, 1330, 5456, 11, 8344, 2373, 11693, 62, 85, ...
2.584746
118
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 appl...
[ 2, 220, 15069, 3648, 12, 4626, 26182, 23555, 290, 27862, 201, 198, 2, 201, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 28...
3.605887
1,393
#!/usr/bin/env python import os import json import tornado.ioloop import tornado.log import tornado.web from google.oauth2 import id_token from google.auth.transport import requests as google_requests import jwt import requests API_KEY = os.environ.get('OPEN_WEATHER_MAP_KEY', None) PROJECT_ID = os.environ.get('PRO...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 11748, 33718, 13, 1669, 11224, 198, 11748, 33718, 13, 6404, 198, 11748, 33718, 13, 12384, 198, 198, 6738, 23645, 13, 12162, 1071, 17, 1330...
2.814208
183
# AUTOGENERATED BY: ProsperCookiecutters/ProsperFlask # TEMPLATE VERSION: {{cookiecutter.template_version}} # AUTHOR: {{cookiecutter.author_name}} """PyTest fixtures and modifiers""" import pytest from {{cookiecutter.library_name}}.endpoints import APP
[ 2, 47044, 7730, 1677, 1137, 11617, 11050, 25, 41342, 34, 18055, 8968, 1010, 14, 35726, 525, 7414, 2093, 198, 2, 309, 3620, 6489, 6158, 44156, 2849, 25, 22935, 44453, 8968, 353, 13, 28243, 62, 9641, 11709, 198, 2, 44746, 25, 22935, 444...
3.160494
81
from typing import Iterator, NamedTuple, Tuple from cached_property import cached_property from cv2 import Rodrigues from pyquaternion import Quaternion ThreeTuple = Tuple[float, float, float] RotationMatrix = Tuple[ThreeTuple, ThreeTuple, ThreeTuple] def __repr__(self) -> str: return "Orientation(r...
[ 6738, 19720, 1330, 40806, 1352, 11, 34441, 51, 29291, 11, 309, 29291, 198, 198, 6738, 39986, 62, 26745, 1330, 39986, 62, 26745, 198, 6738, 269, 85, 17, 1330, 16114, 947, 198, 6738, 12972, 421, 9205, 295, 1330, 2264, 9205, 295, 628, 62...
2.518293
164
# 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 ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
5.354167
96
# -*- encoding: utf-8 -*- # Module iagradm
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 19937, 1312, 363, 6335, 76, 628 ]
2.095238
21
import pytest from api.models.utils import rankings def test_rankings(test_data): """Tests if ranking works e.g. 1 returns 1st 11 returns 11th 101 return 101st """ assert rankings(test_data[0]) == "1st" assert rankings(test_data[1]) == "11th" assert rankings(test_data[2]) =...
[ 11748, 12972, 9288, 198, 198, 6738, 40391, 13, 27530, 13, 26791, 1330, 16905, 628, 198, 198, 4299, 1332, 62, 43027, 654, 7, 9288, 62, 7890, 2599, 198, 220, 220, 220, 37227, 51, 3558, 611, 12759, 2499, 198, 220, 220, 220, 304, 13, 70...
2.462687
134
from flask import Flask, request, redirect, url_for import os import random import string import time # lemonthink clean = time.time() app = Flask(__name__) chars = list(string.ascii_letters + string.digits)
[ 6738, 42903, 1330, 46947, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 640, 1303, 443, 8424, 676, 198, 198, 27773, 796, 640, 13, 2435, 3419, 198, 1324, 796, 46947, 7, 834...
3.25
64
# Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order. Essentially, rearrange the digits to create the highest possible number. # Funo que recebe um nmero inteiro (no negativo) como argumento e o retorna com os dgitos em ordem descende...
[ 2, 3406, 4876, 318, 284, 787, 257, 2163, 326, 460, 1011, 597, 1729, 12, 31591, 18253, 355, 281, 4578, 290, 1441, 340, 351, 663, 19561, 287, 31491, 1502, 13, 34039, 11, 37825, 858, 262, 19561, 284, 2251, 262, 4511, 1744, 1271, 13, 19...
3.453237
139
import sqlite3 import os import datetime __all__ = ['DMARCStorage', 'totimestamp']
[ 11748, 44161, 578, 18, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 198, 834, 439, 834, 796, 37250, 23127, 25793, 31425, 3256, 705, 83, 313, 320, 27823, 20520, 628, 198 ]
2.866667
30
from setuptools import setup, find_packages setup( name="sumologic-sdk", version="0.1.9", packages=find_packages(), install_requires=['requests>=2.2.1'], # PyPI metadata author="Yoway Buorn, Melchi Salins", author_email="it@sumologic.com, melchisalins@icloud.com", description="Sumo Logi...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 16345, 20781, 12, 21282, 74, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 16, 13, 24, 1600, 198, 220, 220, 220, 10392, ...
2.730392
204
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 28373, 2393, 329, 262, 45368, 28413, 10314, 27098, 13, 198, 2, 198, 2, 770, 2393, 857, 691, 3994, 257, 6356, 286, 262, 749, 2219, 3689, 13, 1114, 257, 198...
3.118927
2,573
"""Import required Metric.""" from .metrics import IV_scorer __all__ = ["IV_scorer"]
[ 37811, 20939, 2672, 3395, 1173, 526, 15931, 198, 6738, 764, 4164, 10466, 1330, 8363, 62, 1416, 11934, 198, 198, 834, 439, 834, 796, 14631, 3824, 62, 1416, 11934, 8973, 198 ]
2.866667
30
import copy from django.conf import settings from django.test.utils import override_settings from rest_framework import status, test def override_waldur_core_settings(**kwargs): waldur_settings = copy.deepcopy(settings.WALDUR_CORE) waldur_settings.update(kwargs) return override_settings(WALDUR_CORE=wal...
[ 11748, 4866, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9288, 13, 26791, 1330, 20957, 62, 33692, 198, 6738, 1334, 62, 30604, 1330, 3722, 11, 1332, 628, 628, 198, 4299, 20957, 62, 21667, 333, 62, ...
3.036364
110
""" CutBlur Copyright 2020-present NAVER corp. MIT license """ import os import glob import data
[ 37811, 198, 26254, 3629, 333, 198, 15269, 12131, 12, 25579, 11746, 5959, 24614, 13, 198, 36393, 5964, 198, 37811, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 1366, 628, 198 ]
3.3
30
from ..utils import Object
[ 198, 198, 6738, 11485, 26791, 1330, 9515, 628 ]
3.75
8
import io import time import todoist
[ 11748, 33245, 198, 11748, 640, 198, 198, 11748, 284, 4598, 396, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
2.388889
36
from setuptools import setup import iotio with open("README.md", "r") as fh: long_description = fh.read() setup( name="iot.io", version=iotio.__version__, packages=["iotio"], author="Dylan Crockett", author_email="dylanrcrockett@gmail.com", license="MIT", description="A management API ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 1312, 313, 952, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, ...
2.450495
404
import os import requests from trellominer.config import yaml
[ 11748, 28686, 198, 198, 11748, 7007, 198, 198, 6738, 2054, 297, 6351, 263, 13, 11250, 1330, 331, 43695, 628 ]
3.421053
19
import numpy as np import tensorflow as tf import os from scipy.io import savemat from scipy.io import loadmat from scipy.misc import imread from scipy.misc import imsave from alexnet_face_classifier import * import matplotlib.pyplot as plt plt.switch_backend('agg') ### def guided_backprop(graph, image, o...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 28686, 198, 198, 6738, 629, 541, 88, 13, 952, 1330, 3613, 6759, 198, 6738, 629, 541, 88, 13, 952, 1330, 3440, 6759, 198, 6738, 629, 541, 88, 13, 4...
2.268987
316
"""Registry and RegistryMixin tests.""" from types import SimpleNamespace import pytest from coaster.db import db from coaster.sqlalchemy import BaseMixin from coaster.sqlalchemy.registry import Registry # --- Fixtures ------------------------------------------------------------------------- # --- Tests ...
[ 37811, 8081, 4592, 290, 33432, 35608, 259, 5254, 526, 15931, 198, 198, 6738, 3858, 1330, 17427, 36690, 10223, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 42450, 13, 9945, 1330, 20613, 198, 6738, 42450, 13, 25410, 282, 26599, 1330, 7308,...
2.913485
4,427
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2018-02-06 16:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 1485, 319, 2864, 12, 2999, 12, 3312, 1467, 25, 1495, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
import pytest from nesta.packages.misc_utils.guess_sql_type import guess_sql_type def test_guess_sql_type_int(int_data): assert guess_sql_type(int_data) == 'INTEGER' def test_guess_sql_type_float(float_data): assert guess_sql_type(float_data) == 'FLOAT' def test_guess_sql_type_bool(bool_data): assert gu...
[ 11748, 12972, 9288, 198, 6738, 16343, 64, 13, 43789, 13, 44374, 62, 26791, 13, 5162, 408, 62, 25410, 62, 4906, 1330, 4724, 62, 25410, 62, 4906, 628, 198, 4299, 1332, 62, 5162, 408, 62, 25410, 62, 4906, 62, 600, 7, 600, 62, 7890, 2...
2.440367
218
# -*- coding: utf-8 -*- '''''' from flask import request from model.db import database, Activity, ActivityMember, Demand, ActivityBase, ProjectMember, User from model.role import identity from flask_jwt_extended import (fresh_jwt_required) def demand_activity_add(activity_id, data): '''''' for demand_id in ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 39115, 7061, 198, 198, 6738, 42903, 1330, 2581, 198, 6738, 2746, 13, 9945, 1330, 6831, 11, 24641, 11, 24641, 27608, 11, 34479, 11, 24641, 14881, 11, 4935, 27608, 11, 117...
2.488
500
# Easy # https://leetcode.com/problems/palindrome-number/ # Time Complexity: O(log(x) to base 10) # Space Complexity: O(1)
[ 2, 16789, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 18596, 521, 5998, 12, 17618, 14, 198, 2, 3862, 19157, 414, 25, 440, 7, 6404, 7, 87, 8, 284, 2779, 838, 8, 198, 2, 4687, 19157, 414, 25, 440, 7, 16, ...
2.595745
47
from .manager import Manager # NOQA from .call_manager import CallManager # NOQA from . import fast_agi # NOQA
[ 6738, 764, 37153, 1330, 9142, 220, 1303, 8005, 48, 32, 198, 6738, 764, 13345, 62, 37153, 1330, 4889, 13511, 220, 1303, 8005, 48, 32, 198, 6738, 764, 1330, 3049, 62, 18013, 220, 1303, 8005, 48, 32, 198 ]
3.081081
37
# -*- coding: utf-8 -*- """ Python library for Paessler's PRTG (http://www.paessler.com/) """ import logging import xml.etree.ElementTree as Et from urllib import request from prtg.cache import Cache from prtg.models import Sensor, Device, Status, PrtgObject from prtg.exceptions import BadTarget, UnknownResponse "...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 37906, 5888, 329, 11243, 33730, 338, 4810, 35990, 357, 4023, 1378, 2503, 13, 8957, 33730, 13, 785, 34729, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 35555...
2.278739
983
import tensorflow as tf from tensorflow.python.training.session_run_hook import SessionRunArgs # Define data loaders ##################################### # See https://gist.github.com/peterroelants/9956ec93a07ca4e9ba5bc415b014bcca # redefine summarysaverhook (for more accurate saving) def ExperimentTemplate() ->...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 34409, 13, 29891, 62, 5143, 62, 25480, 1330, 23575, 10987, 42035, 628, 198, 2, 2896, 500, 1366, 3440, 364, 1303, 29113, 4242, 198, 2, 4091, 3740, 1378, ...
3.444954
218
parsers = ['openmm.unit', 'pint', 'unyt'] def digest_parser(parser: str) -> str: """ Check if parser is correct.""" if parser is not None: if parser.lower() in parsers: return parser.lower() else: raise ValueError else: from pyunitwizard.kernel import default...
[ 79, 945, 364, 796, 37250, 9654, 3020, 13, 20850, 3256, 705, 79, 600, 3256, 705, 403, 20760, 20520, 198, 198, 4299, 16274, 62, 48610, 7, 48610, 25, 965, 8, 4613, 965, 25, 198, 220, 220, 220, 37227, 6822, 611, 30751, 318, 3376, 526, ...
2.377483
151
''' Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. This source code is licensed under the license found in the LICENSE file in the root directory of this source tree. Code taken from: https://github.com/facebookresearch/wsd-biencoders/blob/master/wsd_models/util.py ''' import os import re impo...
[ 7061, 6, 198, 15269, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 3237, 2489, 10395, 13, 198, 198, 1212, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 43, 2149, 24290, 2393, 287, 262, 6808, 8619, 286, 4...
3.120536
224
#!/usr/bin/env python3 from typing import Dict, AnyStr from pathlib import Path from ontopy import get_ontology import dlite from dlite.mappings import make_instance # Setup dlite paths thisdir = Path(__file__).parent.absolute() rootdir = thisdir.parent.parent workflow1dir = rootdir / '1-simple-workflow' entitiesdir...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 19720, 1330, 360, 713, 11, 4377, 13290, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 319, 4852, 88, 1330, 651, 62, 756, 1435, 198, 198, 11748, 288, 36890, 198, 6738, 288, ...
2.839196
995
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import StringField, PasswordField, BooleanField, TextAreaField, SubmitField, RadioField, HiddenField from wtforms.fields.html5 import DateField, IntegerField from wtforms.validators import ValidationError, DataR...
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 42903, 62, 86, 27110, 13, 7753, 1330, 9220, 15878, 11, 9220, 3237, 6972, 11, 9220, 37374, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 30275, 15878, 11, 41146, 15878, 11, ...
3.590551
127
from builtins import range from ..base import MLClassifierBase from ..utils import get_matrix_in_format from sklearn.neighbors import NearestNeighbors import scipy.sparse as sparse import numpy as np
[ 6738, 3170, 1040, 1330, 2837, 198, 6738, 11485, 8692, 1330, 10373, 9487, 7483, 14881, 198, 6738, 11485, 26791, 1330, 651, 62, 6759, 8609, 62, 259, 62, 18982, 198, 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 3169, 12423, 46445, 32289, ...
3.553571
56
"""Constants about the Gro ontology that can be imported and re-used anywhere.""" REGION_LEVELS = { 'world': 1, 'continent': 2, 'country': 3, 'province': 4, # Equivalent to state in the United States 'district': 5, # Equivalent to county in the United States 'city': 6, 'market': 7, 'o...
[ 37811, 34184, 1187, 546, 262, 10299, 39585, 1435, 326, 460, 307, 17392, 290, 302, 12, 1484, 6609, 526, 15931, 198, 198, 31553, 2849, 62, 2538, 18697, 50, 796, 1391, 198, 220, 220, 220, 705, 6894, 10354, 352, 11, 198, 220, 220, 220, ...
2.227273
418
""" Period benchmarks that rely only on tslibs. See benchmarks.period for Period benchmarks that rely on other parts fo pandas. """ from pandas import Period from pandas.tseries.frequencies import to_offset
[ 37811, 198, 5990, 2101, 31747, 326, 8814, 691, 319, 256, 6649, 571, 82, 13, 220, 4091, 31747, 13, 41007, 329, 198, 5990, 2101, 31747, 326, 8814, 319, 584, 3354, 11511, 19798, 292, 13, 198, 37811, 198, 6738, 19798, 292, 1330, 18581, 19...
3.59322
59
#/usr/bin/python #-*- coding: utf-8 -*- #Refer http://www.wooyun.org/bugs/wooyun-2015-0137140 #__Author__ = #_PlugName_ = whezeip Plugin #_FileName_ = whezeip.py if __name__ == '__main__': from dummy import * audit(assign('whezeip', 'http://218.104.147.71:7001/')[1])
[ 2, 14, 14629, 14, 8800, 14, 29412, 201, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 46238, 2638, 1378, 2503, 13, 21638, 726, 403, 13, 2398, 14, 32965, 14, 21638, 726, 403, 12, 4626, 12, 486, 2718, ...
1.974194
155
# Use zip() to create a new variable called names_and_dogs_names that combines owners and dogs_names lists into a zip object. # Then, create a new variable named list_of_names_and_dogs_names by calling the list() function on names_and_dogs_names. # Print list_of_names_and_dogs_names. owners = ["Jenny", "Alexus", "Sa...
[ 2, 5765, 19974, 3419, 284, 2251, 257, 649, 7885, 1444, 3891, 62, 392, 62, 22242, 62, 14933, 326, 21001, 4393, 290, 6844, 62, 14933, 8341, 656, 257, 19974, 2134, 13, 198, 198, 2, 3244, 11, 2251, 257, 649, 7885, 3706, 1351, 62, 1659, ...
2.955801
181
# -*- coding: utf-8 - # # This file is part of couchdbkit released under the MIT license. # See the NOTICE for more information. import os import sys if not hasattr(sys, 'version_info') or sys.version_info < (2, 5, 0, 'final'): raise SystemExit("couchdbkit requires Python 2.5 or later.") from setuptools import ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 18507, 9945, 15813, 2716, 739, 262, 17168, 5964, 13, 220, 198, 2, 4091, 262, 28536, 329, 517, 1321, 13, 198, 198, 11748, 28686, 198, 1174...
2.496865
638
from typing import Optional from complexheart.domain.criteria import Criteria from sqlalchemy import create_engine from sqlalchemy.engine import Engine from sqlalchemy.orm import sessionmaker from to_do_list.tasks.domain.models import Task from to_do_list.tasks.infrastructure.persistence.relational import RelationalT...
[ 6738, 19720, 1330, 32233, 198, 198, 6738, 3716, 11499, 13, 27830, 13, 22213, 5142, 1330, 10056, 5142, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 18392, 1330, 7117, 198, 6738, 44161, 282, 26599, ...
3.660377
106
from jinja2.ext import Extension from jinja2 import nodes from jinja2 import Markup from wagtail.wagtailadmin.templatetags.wagtailuserbar import wagtailuserbar as original_wagtailuserbar from wagtail.wagtailimages.models import Filter, SourceImageIOError
[ 6738, 474, 259, 6592, 17, 13, 2302, 1330, 27995, 198, 6738, 474, 259, 6592, 17, 1330, 13760, 198, 6738, 474, 259, 6592, 17, 1330, 2940, 929, 198, 198, 6738, 266, 363, 13199, 13, 86, 363, 13199, 28482, 13, 11498, 489, 265, 316, 3775,...
3.083333
84
from rta.provision.utils import * from rta.provision.passwd import * from rta.provision.influxdb import * from rta.provision.grafana import * from rta.provision.kapacitor import *
[ 6738, 374, 8326, 13, 1676, 10178, 13, 26791, 1330, 1635, 198, 6738, 374, 8326, 13, 1676, 10178, 13, 6603, 16993, 1330, 1635, 198, 6738, 374, 8326, 13, 1676, 10178, 13, 10745, 22564, 9945, 1330, 1635, 198, 6738, 374, 8326, 13, 1676, 10...
2.857143
63
""" $lic$ Copyright (C) 2016-2020 by Tsinghua University and The Board of Trustees of Stanford University This program is free software: you can redistribute it and/or modify it under the terms of the Modified BSD-3 License as published by the Open Source Initiative. This program is distributed in the hope that it wi...
[ 37811, 720, 677, 3, 198, 15269, 357, 34, 8, 1584, 12, 42334, 416, 309, 12215, 33061, 2059, 290, 383, 5926, 286, 9870, 2841, 286, 198, 32140, 3841, 2059, 198, 198, 1212, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14,...
3.491304
230
from django.urls import path from .views import DivisionListCreateAPIView, DivisionRetrieveUpdateDestroyAPIView, MainDivisionListAPIView urlpatterns = [ path('division/', DivisionListCreateAPIView.as_view()), path('division/<division_pk>', DivisionRetrieveUpdateDestroyAPIView.as_view()), path('division/m...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 7458, 8053, 16447, 2969, 3824, 769, 11, 7458, 9781, 30227, 10260, 49174, 2969, 3824, 769, 11, 8774, 24095, 1166, 8053, 2969, 3824, 769, 628, 198, 6371, 3327...
3.016529
121
from sympy import (Derivative as D, Eq, exp, sin, Function, Symbol, symbols, cos, log) from sympy.core import S from sympy.solvers.pde import (pde_separate, pde_separate_add, pde_separate_mul, pdsolve, classify_pde, checkpdesol) from sympy.testing.pytest import raises a, b, c, x, y = symbols('a b c x y') ...
[ 6738, 10558, 88, 1330, 357, 28532, 452, 876, 355, 360, 11, 412, 80, 11, 1033, 11, 7813, 11, 198, 220, 220, 220, 15553, 11, 38357, 11, 14354, 11, 8615, 11, 2604, 8, 198, 6738, 10558, 88, 13, 7295, 1330, 311, 198, 6738, 10558, 88, ...
2.507692
130
import torch import torch.nn.functional as F import pandas as pd import numpy as np from torch_geometric.data import Data from torch_geometric.nn import GCNConv, PairNorm from torch_geometric.utils.undirected import to_undirected import random import matplotlib.pyplot as plt data_name = 'citeseer' # 'cora' or 'ci...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28034, 62, 469, 16996, 13, 7890, 1330, 6060, 198, 6738, 28034, 62, 469, 16996, 13, 2...
2.32984
1,813
import datetime import json from django.conf import settings from django.http import Http404 from django.utils import timezone from django.views import generic from .models import Event, FlatPage, News
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 26429, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 13, 3357...
3.696429
56
from dotenv import load_dotenv load_dotenv() from flask import Flask, flash, request, redirect, url_for from flask_ngrok import run_with_ngrok from flask_cors import CORS from werkzeug.utils import secure_filename import tensorflow as tf from tensorflow import keras from tensorflow.keras.applications import vgg16 fro...
[ 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 2220, 62, 26518, 24330, 3419, 198, 198, 6738, 42903, 1330, 46947, 11, 7644, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 198, 6738, 42903, 62, 782, 305, 74, 1330, 1057, 62, 4480, 62,...
2.709544
482
import random import matplotlib.pyplot as plt import wandb import hydra import torch import torch.utils.data as data_utils from model import ChessPiecePredictor from torch import nn, optim from google.cloud import storage from torch.utils.data import DataLoader from torchvision import transforms from torchvision.datas...
[ 11748, 4738, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 11569, 65, 198, 11748, 25039, 198, 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 62, 26791, 198, 6738, 2746, 1330, 25774, 47,...
3.598131
107
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os from abc import ABC, abstractmethod from fairseq import registry from omegaconf import DictConfig _build_score...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 628, ...
3.0837
227
import copy import unittest import networkx as nx import numpy as np from scipy.special import erf from dfn import Fluid, FractureNetworkThermal if __name__ == '__main__': unittest.main()
[ 11748, 4866, 198, 11748, 555, 715, 395, 198, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 20887, 1330, 1931, 69, 198, 198, 6738, 288, 22184, 1330, 1610, 27112, 11, 40548, 495, ...
2.882353
68
""" Author: Gustavo Amarante """ import numpy as np import pandas as pd from datetime import datetime
[ 37811, 198, 13838, 25, 43715, 78, 1703, 4741, 68, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 628 ]
3.117647
34
from configparser import ConfigParser CONFIG_INT_KEYS = { 'hadoop_max_nodes_count', 'hadoop_ebs_volumes_count', 'hadoop_ebs_volume_size', 'spark_max_nodes_count', 'spark_ebs_volumes_count', 'spark_ebs_volume_size' }
[ 6738, 4566, 48610, 1330, 17056, 46677, 198, 198, 10943, 16254, 62, 12394, 62, 7336, 16309, 796, 1391, 198, 220, 220, 220, 705, 71, 4533, 404, 62, 9806, 62, 77, 4147, 62, 9127, 3256, 198, 220, 220, 220, 705, 71, 4533, 404, 62, 68, ...
2.104348
115
from flask import Blueprint from .hooks import admin_auth from ...api_utils import * bp_admin_api = Blueprint('bp_admin_api', __name__) bp_admin_api.register_error_handler(APIError, handle_api_error) bp_admin_api.register_error_handler(500, handle_500_error) bp_admin_api.register_error_handler(400, handle_400_error)...
[ 6738, 42903, 1330, 39932, 198, 198, 6738, 764, 25480, 82, 1330, 13169, 62, 18439, 198, 6738, 2644, 15042, 62, 26791, 1330, 1635, 628, 198, 46583, 62, 28482, 62, 15042, 796, 39932, 10786, 46583, 62, 28482, 62, 15042, 3256, 11593, 3672, 8...
2.9
210
import pandas as pd import numpy as np import os import tensorflow as tf import functools ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic names return:...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 1257, 310, 10141, 198, 198, 4242, 21017, 49348, 15365, 376, 8267, 12680, 16289, 46424, 2, 198, ...
2.591819
2,347