content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from lagom.core.multiprocessing import BaseIterativeMaster
[ 6738, 19470, 296, 13, 7295, 13, 16680, 541, 305, 919, 278, 1330, 7308, 29993, 876, 18254, 198 ]
3.470588
17
""" get_jokes(), n , , ( ): """ import random nouns = ["", "", "", "", ""] adverbs = ["", "", "", "", ""] adjectives = ["", "", "", "", ""] if __name__ == '__main__': print(get_jokes(count=1, repeat=True, nouns=nouns, adverbs=adverbs, adjectives=adjectives)) print(get_jokes(count=3, repeat=Fal...
[ 37811, 198, 220, 651, 62, 73, 3369, 22784, 220, 299, 837, 220, 220, 220, 220, 837, 220, 220, 220, 220, 357, 220, 220, 15179, 198, 37811, 198, 198, 11748, 4738, 198, 198, 77, 977, 82, 796, 14631, 1600, 366, 1600, 366, 1600, 366, 16...
2.307317
205
import numpy as np import pandas as pd np.random.seed(421) def gen_rand_points(n: int, A: float = 1000, B: float = 3, alpha: float = 0.01, noise: float = 2, consecutive: bool = False): """ :param n: number of points to generate :param A, B, alpha: parameters to hCG function :param noise: randomly add ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 37659, 13, 25120, 13, 28826, 7, 46636, 8, 198, 198, 4299, 2429, 62, 25192, 62, 13033, 7, 77, 25, 493, 11, 317, 25, 12178, 796, 8576, 11, 347, 25, 12178...
2.260612
3,039
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: Solution to Breakout 2.2 (ATM) # Display a welcome message print("Welcome to LCCS Bank Ltd.") print("=========================") # Initialise a variable called balance to...
[ 2, 8558, 25, 406, 4093, 50, 11361, 49983, 20389, 26701, 201, 198, 2, 7536, 25, 1737, 2864, 201, 198, 2, 6434, 25, 5689, 3594, 11, 14340, 2257, 201, 198, 2, 304, 25804, 25, 9061, 4234, 31, 30094, 301, 13, 494, 201, 198, 2, 32039, ...
3.375912
274
''' Created on Apr 30, 2012 @author: h87966 '''
[ 7061, 6, 198, 41972, 319, 2758, 1542, 11, 2321, 198, 198, 31, 9800, 25, 289, 23, 3720, 2791, 198, 7061, 6 ]
2.285714
21
from smtplib import SMTP from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email.header import Header from email.utils import parseaddr, formataddr, COMMASPACE, formatdate from email.encoders import encode_base64 def send_email(sender, cc_rec...
[ 6738, 895, 83, 489, 571, 1330, 9447, 7250, 198, 6738, 3053, 13, 76, 524, 13, 16680, 541, 433, 1330, 337, 3955, 3620, 586, 541, 433, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 76, 524,...
2.676349
1,446
from typing import List, Optional from pydantic import BaseModel
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 628, 628, 628 ]
3.944444
18
from flask import Blueprint from apps.extention.business.tool import ToolBusiness from apps.extention.extentions import validation, parse_json_form from library.api.render import json_detail_render tool = Blueprint('tool', __name__)
[ 6738, 42903, 1330, 39932, 198, 198, 6738, 6725, 13, 2302, 1463, 13, 22680, 13, 25981, 1330, 16984, 24749, 198, 6738, 6725, 13, 2302, 1463, 13, 2302, 298, 507, 1330, 21201, 11, 21136, 62, 17752, 62, 687, 198, 6738, 5888, 13, 15042, 13,...
3.761905
63
# stdlib imports import logging import time # pypi imports from boto3 import Session LOG = logging.getLogger(__name__)
[ 198, 2, 14367, 8019, 17944, 198, 11748, 18931, 198, 11748, 640, 198, 198, 2, 279, 4464, 72, 17944, 198, 6738, 275, 2069, 18, 1330, 23575, 628, 198, 25294, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
3.1
40
#!/user/bin/env python3 ################################################################################### # # # NAME: setup.py # # ...
[ 2, 48443, 7220, 14, 8800, 14, 24330, 21015, 18, 198, 29113, 29113, 14468, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.487882
949
# -*- coding: utf-8 -*- """Methods for interpolating particle lists onto a grid. There are three classic methods: ngp - Nearest grid point (point interpolation) cic - Cloud in Cell (linear interpolation) tsc - Triangular Shaped Cloud (quadratic interpolation) Each function takes inputs: Values ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 46202, 329, 39555, 803, 18758, 8341, 4291, 257, 10706, 13, 1318, 389, 1115, 6833, 5050, 25, 198, 220, 220, 220, 23370, 79, 532, 3169, 12423, 10706, 966, 357, 4122...
2.136957
9,952
# This code is part of the epytope distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ .. module:: DummyAdaper :synopsis: Contains a pseudo data base adapter for testing purposes. .. moduleauthor:: schubert, brachvogel """ import copy...
[ 2, 770, 2438, 318, 636, 286, 262, 2462, 20760, 3008, 6082, 290, 21825, 416, 663, 198, 2, 5964, 13, 220, 4222, 766, 262, 38559, 24290, 2393, 326, 815, 423, 587, 3017, 198, 2, 355, 636, 286, 428, 5301, 13, 198, 37811, 198, 492, 8265...
3.588785
107
# Generated by Django 2.2.16 on 2020-09-17 16:00 from django.db import migrations, models import django.db.models.deletion import enumfields.fields import link_all.models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 1433, 319, 12131, 12, 2931, 12, 1558, 1467, 25, 405, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
3.035088
57
import time import unittest from mock import MagicMock from bxcommon.utils.expiration_queue import ExpirationQueue
[ 11748, 640, 198, 11748, 555, 715, 395, 198, 198, 6738, 15290, 1330, 6139, 44, 735, 198, 198, 6738, 275, 87, 11321, 13, 26791, 13, 1069, 10514, 62, 36560, 1330, 1475, 10514, 34991, 628 ]
3.575758
33
#!/usr/bin/env python3 #-*- coding: utf-8 -*- # Test output = filter(is_palindrome, range(1, 1000)) print('1~1000:', list(output)) if list(filter(is_palindrome, range(1, 200))) == [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121, 131, 141, 151, 161, 171, 181, 191]: print('!') else: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 6208, 198, 22915, 796, 8106, 7, 271, 62, 18596, 521, 5998, 11, 2837, 7, 16, 11, 8576, 4008, 198, 4798, ...
2.184211
152
from importlib import import_module from flask import Flask, request, jsonify from .spotify_api import get_spotify_response app = Flask(__name__) app.config.from_object("spotify_search.settings")
[ 6738, 1330, 8019, 1330, 1330, 62, 21412, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 198, 6738, 764, 20485, 1958, 62, 15042, 1330, 651, 62, 20485, 1958, 62, 26209, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834,...
3.35
60
import math from models.business.OrganismController import OrganismController from models.value.Finder import Finder from models.value.Labyrinth import Labyrinth
[ 11748, 10688, 198, 198, 6738, 4981, 13, 22680, 13, 26121, 1042, 22130, 1330, 7221, 1042, 22130, 198, 6738, 4981, 13, 8367, 13, 37, 5540, 1330, 42500, 198, 6738, 4981, 13, 8367, 13, 17822, 21324, 1330, 28561, 628 ]
4.432432
37
from django.views.generic.edit import CreateView from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.utils.translation import ugettext_lazy as _ from django.views.generic.base import RedirectView from django.conf import settings from .forms import *
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 13610, 7680, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 83, 482, 641, 1330, 30275, 4965, 316, 30642, 8645, 1352, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330,...
3.525
80
import numpy as np #numpy library import matplotlib.pyplot as plt #matplotlib pyplot import sys #acces to c-like sys library import os #gives access to operating system print(sys.argv) #prints any command line arguments print(os.getcwd())
[ 11748, 299, 32152, 355, 45941, 1303, 77, 32152, 5888, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 1303, 6759, 29487, 8019, 12972, 29487, 198, 198, 11748, 25064, 1303, 330, 728, 284, 269, 12, 2339, 25064, 5888, 198, 117...
3.256757
74
import pandas as pd from nltk import tokenize as tokenizers from nltk.stem import PorterStemmer, WordNetLemmatizer appos = { "aren t" : "are not", "can t" : "cannot", "couldn t" : "could not", "didn t" : "did not", "doesn t" : "does not", "don t" : "do not", "hadn t" : "had not", ...
[ 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 299, 2528, 74, 1330, 11241, 1096, 355, 11241, 11341, 198, 6738, 299, 2528, 74, 13, 927, 1330, 20890, 1273, 368, 647, 11, 9678, 7934, 43, 368, 6759, 7509, 628, 628, 628, 628, 198, 1324...
2.046213
779
""" This is here to enable redirects from the old /user endpoint to /auth """ from django.conf.urls import include from django.conf.urls import url from django.views.generic.base import RedirectView from kolibri.core.device.translation import i18n_patterns redirect_patterns = [ url( r"^user/$", Re...
[ 37811, 198, 1212, 318, 994, 284, 7139, 18941, 82, 422, 262, 1468, 1220, 7220, 36123, 284, 1220, 18439, 198, 37811, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 1...
2.481818
220
# See: https://www.codewars.com/kata/56e9e4f516bcaa8d4f001763
[ 2, 4091, 25, 3740, 1378, 2503, 13, 19815, 413, 945, 13, 785, 14, 74, 1045, 14, 3980, 68, 24, 68, 19, 69, 47493, 65, 6888, 64, 23, 67, 19, 69, 405, 1558, 5066, 198 ]
1.823529
34
""" Title: Automated Script for Data Scraping Creator: Haris "5w464l1c10u5" Purpose: This was made in order to make it easier to get data from online, all through one python script Usage: python3 Automated_Script.py Resources: https://www.digitalocean.com/community/tutorials/how-to-scrape-web-pages-with-beautiful-s...
[ 37811, 198, 19160, 25, 17406, 515, 12327, 329, 6060, 1446, 2416, 278, 198, 198, 16719, 273, 25, 2113, 271, 366, 20, 86, 44578, 75, 16, 66, 940, 84, 20, 1, 198, 198, 30026, 3455, 25, 770, 373, 925, 287, 1502, 284, 787, 340, 4577, ...
2.446475
1,915
from .base import _convert_datetime from .codeblock import CodeBlock from .link import Link from .tag import Tag from .url import Url
[ 6738, 764, 8692, 1330, 4808, 1102, 1851, 62, 19608, 8079, 198, 198, 6738, 764, 8189, 9967, 1330, 6127, 12235, 198, 6738, 764, 8726, 1330, 7502, 198, 6738, 764, 12985, 1330, 17467, 198, 6738, 764, 6371, 1330, 8799, 75, 628, 628, 628, 6...
3.348837
43
from datetime import date from uk_election_timetables.elections import PoliceAndCrimeCommissionerElection # Reference election: pcc.avon-and-somerset.2016-05-05 # Reference election: pcc.2021-05-06 # Reference election: pcc.2021-05-06
[ 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 334, 74, 62, 14300, 62, 16514, 316, 2977, 13, 9509, 507, 1330, 4287, 1870, 45580, 50246, 263, 36, 1564, 628, 198, 2, 20984, 3071, 25, 279, 535, 13, 615, 261, 12, 392, 12, 82, 21499, 31...
2.987654
81
# Generated by Django 3.0.2 on 2020-01-11 14:25 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 486, 12, 1157, 1478, 25, 1495, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# [250] Count Univalue Subtrees # Description # Given a binary tree, count the number of uni-value subtrees. # A Uni-value subtree means all nodes of the subtree have the same value. # Example # Example 1 # Input: root = {5,1,5,5,5,#,5} # Output: 4 # Explanation: # 5 # / \ # ...
[ 2, 685, 9031, 60, 2764, 791, 2473, 518, 3834, 83, 6037, 198, 198, 2, 12489, 198, 198, 2, 11259, 257, 13934, 5509, 11, 954, 262, 1271, 286, 555, 72, 12, 8367, 13284, 6037, 13, 198, 198, 2, 317, 43376, 12, 8367, 13284, 631, 1724, ...
1.917241
435
# apis for ndp_d3 from owslib.wfs import WebFeatureService import pandas as pd import geopandas as gpd import momepy import streamlit as st
[ 2, 2471, 271, 329, 299, 26059, 62, 67, 18, 198, 6738, 12334, 6649, 571, 13, 86, 9501, 1330, 5313, 38816, 16177, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 285, 462, 9078, 198, 1174...
2.916667
48
#!/usr/bin/env python # vim:expandtab:ts=3:sw=3 # @file testIncrStatus.py # @brief Test SOAP calls to incrAddSentence using a deployed PortageLive web server. # # @author Samuel Larkin # # Traitement multilingue de textes / Multilingual Text Processing # Tech. de l'information et des communications / Information and C...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 43907, 25, 11201, 392, 8658, 25, 912, 28, 18, 25, 2032, 28, 18, 198, 198, 2, 2488, 7753, 1332, 818, 6098, 19580, 13, 9078, 198, 2, 2488, 65, 3796, 6208, 12809, 2969, 3848, 284, ...
3.398827
341
#!/usr/bin/env python3 """ A program to use a Caesar cipher based on user input for the shift value """ MAX_SHIFT = 26 def whatMode(): """ Finds out what the user wants to do """ while True: print("Do you wish to encrypt, decrypt or brute force a message: ") mode = input().lower() if ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 317, 1430, 284, 779, 257, 24088, 38012, 1912, 319, 2836, 5128, 329, 262, 6482, 1988, 37227, 198, 198, 22921, 62, 9693, 32297, 796, 2608, 198, 198, 4299, 644, 19076, 33529, 1...
2.233993
859
slu = Solution() print(slu.permute([1]))
[ 198, 198, 82, 2290, 796, 28186, 3419, 198, 4798, 7, 82, 2290, 13, 16321, 1133, 26933, 16, 60, 4008, 198 ]
2.15
20
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from __future__ import annotations from typing import Generic, TypeVar, Type from lenses import UnboundLens from amino import Dat from ribosome.data.plugin_state import PluginState D = TypeVar('D') CC = TypeVar('CC') C = TypeVar('C') __all__ = ('Ribosome',)
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 19720, 1330, 42044, 11, 5994, 19852, 11, 5994, 198, 198, 6738, 18405, 1330, 791, 7784, 49479, 198, 198, 6738, 23206, 1330, 16092, 198, 198, 6738, 12183, 418, 462, 13, 7890, 13, 33803, 62,...
3.117647
85
# Add auto-completion and a stored history file of commands to your Python # interactive interpreter. Requires Python 2.0+, readline. Autocomplete is # bound to the Esc key by default (you can change it - see readline docs). # # Store the file in ~/.pystartup, and set an environment variable to point # to it: "export ...
[ 2, 3060, 8295, 12, 785, 24547, 290, 257, 8574, 2106, 2393, 286, 9729, 284, 534, 11361, 198, 2, 14333, 28846, 13, 26848, 11361, 362, 13, 15, 28200, 1100, 1370, 13, 5231, 42829, 6677, 318, 198, 2, 5421, 284, 262, 16319, 1994, 416, 427...
2.73706
483
from __future__ import unicode_literals from django.db import models # Create your models here.
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 628, 628, 628, 628, 628, 628, 628 ]
3.264706
34
toolpath.coords = Coords(-100, -100, -5, 100, 100, 5) voxelcut.set_current_color(12566512) toolpath.coords.add_block(0.150768, 0, -5, 9.69846, 9.84808, 10) GRAY = 0x505050 RED = 0x600000 BLUE = 0x000050 toolpath.tools[2] = Tool([[Span(Point(3, 0), Vertex(0, Point(3, 20), Point(0, 0)), False), GRAY], [Span(Point(3, 20),...
[ 25981, 6978, 13, 1073, 3669, 796, 1766, 3669, 32590, 3064, 11, 532, 3064, 11, 532, 20, 11, 1802, 11, 1802, 11, 642, 8, 198, 85, 1140, 417, 8968, 13, 2617, 62, 14421, 62, 8043, 7, 11623, 2791, 25836, 8, 198, 25981, 6978, 13, 1073, ...
2.239024
205
import sys from clique import Clique from cvxopt import spmatrix, amd from collections import defaultdict as dd import chompack as cp from util.graph import Graph LARGEST_CLIQUE_SIZE = 24 # # A CliqueIntersectionGraph is a graph (V,E), where V is a set of cliques, each # bag containing a clique, and (i,j) in E if cli...
[ 11748, 25064, 198, 6738, 537, 2350, 1330, 1012, 2350, 198, 6738, 269, 85, 87, 8738, 1330, 599, 6759, 8609, 11, 39971, 198, 6738, 17268, 1330, 4277, 11600, 355, 49427, 198, 11748, 442, 3361, 441, 355, 31396, 198, 6738, 7736, 13, 34960, ...
2.648649
185
import logging from django.conf import settings from baserow.config.celery import app logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 1615, 263, 322, 13, 11250, 13, 7015, 88, 1330, 598, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
3.2
40
"""utilities to handle notebooks""" from typing import Union, List, Optional import copy import notedown import nbformat import nbconvert from nbformat import notebooknode from d2lbook import markdown from d2lbook import common def create_new_notebook(nb: notebooknode.NotebookNode, cells: Li...
[ 37811, 315, 2410, 284, 5412, 43935, 37811, 198, 198, 6738, 19720, 1330, 4479, 11, 7343, 11, 32233, 198, 198, 11748, 4866, 198, 11748, 4367, 593, 198, 11748, 299, 65, 18982, 198, 11748, 299, 65, 1102, 1851, 198, 6738, 299, 65, 18982, 1...
2.177914
2,934
# config file for imcached # camera name pattern to cache. For example 'GatanK2' will restrict it # only to camera name containing the string camera_name_pattern = '' # time in seconds to wait between consecutive queries query_interval = 5 # limit query to later than this timestamp (mysql style: yyyymmddhhmmss) min...
[ 2, 4566, 2393, 329, 545, 66, 2317, 198, 198, 2, 4676, 1438, 3912, 284, 12940, 13, 220, 1114, 1672, 705, 38, 39036, 42, 17, 6, 481, 4239, 340, 198, 2, 691, 284, 4676, 1438, 7268, 262, 4731, 198, 25695, 62, 3672, 62, 33279, 796, 1...
2.880383
418
import sqlite3 import matplotlib.pyplot as plt import re from collections import Counter db = "C:\\Users\\Andrew\\lab-project\\data\\frontiers_corpus.db" if __name__ == "__main__": conn = sqlite3.connect(db) curr = conn.cursor() kwd_frequency()
[ 198, 11748, 44161, 578, 18, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 302, 198, 6738, 17268, 1330, 15034, 198, 9945, 796, 366, 34, 25, 6852, 14490, 6852, 20508, 6852, 23912, 12, 16302, 6852, 7890, 6852, ...
2.633663
101
from collections import OrderedDict from devices.filters import ConfigurationFilterSet from devices.models import Configuration from devices.tables import ConfigurationTable from messaging.filters import ContactFilterSet, EmailFilterSet from messaging.models import Contact, ContactAssignment, Email from messaging.tabl...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 6738, 4410, 13, 10379, 1010, 1330, 28373, 22417, 7248, 198, 6738, 4410, 13, 27530, 1330, 28373, 198, 6738, 4410, 13, 83, 2977, 1330, 28373, 10962, 198, 6738, 19925, 13, 10379, 1010, 133...
1.934505
2,901
chalenge_input = '''1956 1994 457 1654 2003 1902 1741 1494 1597 1129 1146 1589 1989 1093 1881 1288 1848 1371 1508 1035 1813 1335 1634 1102 1262 1637 1048 1807 1270 1528 1670 1803 1202 1294 1570 1640 1484 1872 1140 1207 1485 1781 1778 1772 1334 1267 1045 1194 1873 1441 1557 1414 1123 1980 1527 1591 1665 1916 1662 1139 1...
[ 38009, 3540, 62, 15414, 796, 705, 7061, 1129, 3980, 198, 22666, 198, 33032, 198, 1433, 4051, 198, 16088, 198, 1129, 2999, 198, 1558, 3901, 198, 1415, 5824, 198, 1314, 5607, 198, 14686, 24, 198, 1157, 3510, 198, 1314, 4531, 198, 25475, ...
1.758998
639
from __future__ import absolute_import import logging
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 18931, 628 ]
4.307692
13
from numpy.testing import assert_almost_equal, assert_equal from dmipy.utils import utils import numpy as np from dmipy.utils.utils import ( rotation_matrix_100_to_theta_phi, rotation_matrix_around_100, rotation_matrix_100_to_theta_phi_psi ) from dmipy.distributions import distributions
[ 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 28177, 62, 40496, 11, 6818, 62, 40496, 198, 6738, 288, 76, 541, 88, 13, 26791, 1330, 3384, 4487, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 288, 76, 541, 88, 13, 26791, 13, 26791, 133...
2.770642
109
__author__ = '@britodfbr' from head_first_design_patterns.hofs import duck from head_first_design_patterns.hofs import fly_behaviors from head_first_design_patterns.hofs import quack_behaviors
[ 834, 9800, 834, 796, 705, 31, 65, 799, 375, 69, 1671, 6, 198, 198, 6738, 1182, 62, 11085, 62, 26124, 62, 33279, 82, 13, 39891, 82, 1330, 22045, 198, 6738, 1182, 62, 11085, 62, 26124, 62, 33279, 82, 13, 39891, 82, 1330, 6129, 62, ...
2.852941
68
import json import unittest from electricitymap.contrib.config import ZONES_CONFIG ZONE_KEYS = ZONES_CONFIG.keys() if __name__ == "__main__": unittest.main(buffer=True)
[ 11748, 33918, 198, 11748, 555, 715, 395, 198, 198, 6738, 8744, 8899, 13, 3642, 822, 13, 11250, 1330, 1168, 39677, 62, 10943, 16254, 198, 198, 57, 11651, 62, 7336, 16309, 796, 1168, 39677, 62, 10943, 16254, 13, 13083, 3419, 628, 198, 1...
2.656716
67
import gensim import numpy as np def fit_model(sentences, config): ''' Fits the Word2Vec model with the given sentences. The vectors were normalized after the training. A further training of the model is not possible. :param sentences: A python list of sentences :param config: The config for the ...
[ 11748, 308, 641, 320, 198, 11748, 299, 32152, 355, 45941, 628, 198, 198, 4299, 4197, 62, 19849, 7, 34086, 3007, 11, 4566, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 376, 896, 262, 9678, 17, 53, 721, 2746, 351, 262, 1...
2.679732
1,046
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings
[ 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, 9945, 1330, 4981, 11, 15720, 602, 198, 6738, 42625, 14208, 13, 10414, 1330, ...
3.111111
45
# encoding: utf-8 # Standard Library from os import path from threading import Lock from typing import Set from typing import Optional from xml.etree import ElementTree as ET from xml.etree.ElementTree import Element # 3rd Party Library # Current Folder # Current Application # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 2, 8997, 10074, 198, 6738, 28686, 1330, 3108, 198, 6738, 4704, 278, 1330, 13656, 198, 6738, 19720, 1330, 5345, 198, 6738, 19720, 1330, 32233, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660...
3.102941
272
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import pickle # In[2]: data=pd.read_csv("wd.csv",encoding="ISO-8859-1") # In[3]: data # In[4]: data.fillna(0,inplace=True) #it fills NaN with O's # In[5]: data # In[6]: data.dtypes # In[7]: #conversion data['...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2298, 293, 198, 198, 2, ...
1.687261
2,881
import numpy as np import math data = [9, 2, 5, 4, 12, 7] gaussian = Gaussian() gaussian.data = data print(gaussian.calculate_mean()) print(gaussian.calculate_stdev(sample=True)) gaussian_one = Gaussian(5, 2) gaussian_two = Gaussian(7, 3) gaussian_sum = gaussian_one + gaussian_two print(gaussian_sum) pr...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 10688, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 7890, 796, 685, 24, 11, 362, 11, 642, 11, 604, 11, 1105, 11, 767, 60, 198, 198, 4908, 31562, 796, ...
2.295181
166
from setuptools import find_packages, setup version = "1.0.0a1" # Keep in case we still need pylons...Just use the line below in place # of the install_requires argument in the call to setup(). # install_requires=['requests', 'feedparser', 'pylons', 'python-dateutil'], setup( name="ckanext-datagovau", version=...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 9641, 796, 366, 16, 13, 15, 13, 15, 64, 16, 1, 198, 2, 9175, 287, 1339, 356, 991, 761, 279, 2645, 684, 986, 5703, 779, 262, 1627, 2174, 287, 1295, 198, 2, 286, ...
2.597368
380
import click import os import requests import shutil import sys import time from bs4 import BeautifulSoup alphabet = [ { 'letter': '', 'pages': 31660 }, { 'letter': '', 'pages': 5050 }, { 'letter': '', 'pages': 5890 }, { 'letter': ''...
[ 11748, 3904, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 640, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 198, 17307, 8380, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220...
1.93626
3,075
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests from urllib.parse import urljoin from typing import Union, Dict, List, Optional
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 7007, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 6738, 19720, 1330, 4479, 11, 360, 713, ...
2.938776
49
# HiPyQt version 3.8 # use QTableWidget # use QCheckBox # use QPushButton import sys from PyQt5.QtWidgets import * if __name__ == "__main__": app = QApplication(sys.argv) myWindow = MyWindow() myWindow.show() app.exec()
[ 2, 15902, 20519, 48, 83, 2196, 513, 13, 23, 198, 2, 779, 1195, 10962, 38300, 198, 2, 779, 1195, 9787, 14253, 198, 2, 779, 1195, 49222, 21864, 198, 198, 11748, 25064, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, ...
2.4
100
import torch from torch.autograd import Variable from . import utils from . import dataset from PIL import Image from pathlib import Path from . import crnn model_path = Path(__file__).parent/'data/crnn.pth' alphabet = '0123456789abcdefghijklmnopqrstuvwxyz' model = crnn.CRNN(32, 1, 37, 256) if torch.cuda.is_availabl...
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 764, 1330, 3384, 4487, 198, 6738, 764, 1330, 27039, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 764, 1330, 1067, 2047...
2.772727
198
from typing import List, Sequence from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgl.attributes.channel_mode import ChannelMode, ChannelModeEnum from webdnn.backend.webgl.generator import WebGLDescriptorGenerator from webdnn.backend.webgl.kernel import...
[ 6738, 19720, 1330, 7343, 11, 45835, 198, 198, 6738, 3992, 67, 20471, 13, 1891, 437, 13, 8189, 62, 8612, 1352, 13, 259, 752, 669, 13, 33885, 62, 3672, 62, 259, 752, 273, 1330, 32169, 5376, 818, 752, 273, 198, 6738, 3992, 67, 20471, ...
2.571713
502
__all__ = ['models'] import models
[ 834, 439, 834, 796, 37250, 27530, 20520, 198, 11748, 4981, 198 ]
3.181818
11
import time import psutil netlink = _netlink().get_status
[ 11748, 640, 198, 11748, 26692, 22602, 198, 198, 3262, 8726, 796, 4808, 3262, 8726, 22446, 1136, 62, 13376, 198 ]
3.105263
19
import os import numpy as np import h5py import tempfile import pytest from keras import backend as K from keras.layers import Input, Convolution3D, concatenate from keras.models import Model from keras.optimizers import Adam import pybel from tfbio.data import Featurizer from kalasanty.net import dice_np, dice,...
[ 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 289, 20, 9078, 198, 198, 11748, 20218, 7753, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 41927, 292, 1330, 30203, 355, 509, 198, 6738, 41927, 292, 13, 75, 6962, 1330, ...
2.196894
2,189
# SPDX-FileCopyrightText: (c) 2021 Artm IG <github.com/rtmigo> # SPDX-License-Identifier: BSD-3-Clause import unittest from pathlib import Path from tempfile import TemporaryDirectory from timeit import default_timer as timer from tests.common import is_posix from vien._bash_runner import * from tests.time_limited i...
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 357, 66, 8, 33448, 3683, 76, 35336, 1279, 12567, 13, 785, 14, 17034, 76, 14031, 29, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 628, 198, 11748, ...
3.323529
102
from typing import Dict, List, Tuple import torch import numpy as np import argparse from torch import nn import yaml import pandas as pd from sklearn.metrics import roc_auc_score from adversarial.adversarial import AdversarialNetwork, Classifier, Discriminator from adversarial.dataset import ( AdversarialDataset,...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 11, 309, 29291, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 331, 43695, 198, 11748, 19798, 292, 355, 279, 67, 198, ...
2.903915
281
labels = { 15: { 'de': [ 'Korrekturinformation', 'Korrigierte Fassung Nr.', 'Korrekturen, siehe' ], 'en': [ 'Correction information', 'Corrected version no', 'Corrections, see' ], 'fr': [ 'Inf...
[ 23912, 1424, 796, 1391, 198, 220, 220, 220, 1315, 25, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 2934, 10354, 685, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 42, 273, 260, 21841, 333, 17018, 3256, 198...
1.845163
3,029
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: test_http_basic_auth.py @time: 2018-06-21 11:17 """ from __future__ import print_function from __future__ import unicode_literals import unittest import requests from requests.auth import HTTPBasicAuth if __name__ == '__main__...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 31, 9800, 25, 1976, 33255, 258, 198, 31, 43776, 25, 9485, 1925, 1670, 198, 31, 7753, 25, 1332, 62, 4023, 62, 35487, 62, 18439,...
2.788618
123
import csv import pymedtermino from pymedtermino.snomedct import * pymedtermino.LANGUAGE = "en" pymedtermino.REMOVE_SUPPRESSED_CONCEPTS = False input_delta_file = 'sct2_Concept_Delta_INT_20160131.csv' output_delta_file = 'sct2_Concept_Delta_INT_20160131_Top_Category_Mapped.csv' data = [] snomed_data = [] with open('...
[ 11748, 269, 21370, 198, 11748, 12972, 1150, 23705, 78, 198, 6738, 12972, 1150, 23705, 78, 13, 16184, 12657, 310, 1330, 1635, 198, 9078, 1150, 23705, 78, 13, 43, 15567, 52, 11879, 796, 366, 268, 1, 198, 9078, 1150, 23705, 78, 13, 2200,...
2.601227
652
#Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. #There is only one duplicate number in nums, return this duplicate number.
[ 2, 15056, 281, 7177, 286, 37014, 997, 82, 7268, 299, 1343, 352, 37014, 810, 1123, 18253, 318, 287, 262, 2837, 685, 16, 11, 299, 60, 19889, 13, 198, 2, 1858, 318, 691, 530, 23418, 1271, 287, 997, 82, 11, 1441, 428, 23418, 1271, 13,...
4.155556
45
import pandas as pd from sklearn.metrics import cohen_kappa_score, confusion_matrix import os import seaborn as sns import matplotlib.pyplot as plt import numpy as np dirname = os.path.dirname(__file__) def extract_annotations(files): '''Function that takes a file with the annotations as input and extra...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 763, 831, 62, 74, 20975, 62, 26675, 11, 10802, 62, 6759, 8609, 201, 198, 11748, 28686, 201, 198, 11748, 384, 397, 1211, 355, 3013, 82, 201, 198, 11...
2.510474
907
import discord from discord.ext import commands from discord.ext.commands import has_permissions, MissingPermissions, CommandNotFound, BucketType, cooldown, CommandOnCooldown from discord import Webhook, RequestsWebhookAdapter from time import gmtime, strftime from discord.utils import get import youtube_dl import logg...
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 468, 62, 525, 8481, 11, 25639, 5990, 8481, 11, 9455, 3673, 21077, 11, 48353, 6030, 11, 20869, 11, 9455, 2202, 45953, 198, 6738, 36...
4.147059
102
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module exposes Panopto "AccessManagement" Service methods """ from panopto_client import PanoptoAPI, PanoptoAPIException
[ 2, 15069, 33448, 33436, 12, 2043, 11, 2059, 286, 2669, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 37811, 198, 1212, 8265, 32142, 5961, 404, 1462, 366, 15457, 48032, 1, 4809, 5050, 198, 37811,...
3.532258
62
import os from gc import collect from pathlib import Path from typing import List, Optional, Tuple, Type, Union from importlib import import_module import yaml import numpy as np import pandas as pd from sklearn.neighbors import BallTree #from halotools.mock_observables import tpcf_multipole from astrild.particles.e...
[ 11748, 28686, 198, 6738, 308, 66, 1330, 2824, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 309, 29291, 11, 5994, 11, 4479, 198, 6738, 1330, 8019, 1330, 1330, 62, 21412, 198, 198, 11748, 331, 43695, ...
1.877607
7,288
import os from eve import Eve from eve_docs import eve_docs from flask_bootstrap import Bootstrap # init Eve app = Eve(settings='settings.py') # init Eve-Docs Bootstrap(app) app.register_blueprint(eve_docs, url_prefix='/docs') if __name__ == '__main__': app.run(host=os.getenv('FLASK_HOST', '127.0.0.1'), ...
[ 11748, 28686, 198, 198, 6738, 28001, 1330, 12882, 198, 6738, 28001, 62, 31628, 1330, 28001, 62, 31628, 198, 6738, 42903, 62, 18769, 26418, 1330, 18892, 26418, 198, 198, 2, 2315, 12882, 198, 1324, 796, 12882, 7, 33692, 11639, 33692, 13, ...
2.531034
145
# --- # jupyter: # jupytext: # formats: ipynb,py,md # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Purpose # The point of th...
[ 2, 11420, 198, 2, 474, 929, 88, 353, 25, 198, 2, 220, 220, 474, 929, 88, 5239, 25, 198, 2, 220, 220, 220, 220, 17519, 25, 20966, 2047, 65, 11, 9078, 11, 9132, 198, 2, 220, 220, 220, 220, 2420, 62, 15603, 341, 25, 198, 2, 220...
2.628421
2,083
# import the network module # This module provides access to various network related functions and classes. # https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/network import network,utime #pylint: disable=import-error # ---------------------------------------------------------- # Define callback function...
[ 2, 1330, 262, 3127, 8265, 198, 2, 770, 8265, 3769, 1895, 284, 2972, 3127, 3519, 5499, 290, 6097, 13, 198, 2, 3740, 1378, 12567, 13, 785, 14, 75, 672, 37279, 14, 13031, 37906, 62, 1546, 47, 2624, 62, 862, 24115, 62, 27654, 16635, 1...
2.803636
550
from typing import List groupSizes = [3,3,3,3,4,4,2,2,4,3,4,3,1] print(Solution().groupThePeople(groupSizes))
[ 6738, 19720, 1330, 7343, 628, 198, 198, 8094, 50, 4340, 796, 685, 18, 11, 18, 11, 18, 11, 18, 11, 19, 11, 19, 11, 17, 11, 17, 11, 19, 11, 18, 11, 19, 11, 18, 11, 16, 60, 198, 4798, 7, 46344, 22446, 8094, 464, 8061, 7, 8094...
2.196078
51
# Import spiders from .spiders.bons_empregos import BonsEmpregosSpider from .spiders.cargadetrabalhos import CargaDeTrabalhosSpider from .spiders.emprego_org import EmpregoOrgSpider from .spiders.emprego_xl import EmpregoXlSpider from .spiders.net_empregos import NetEmpregosSpider from twisted.internet import reactor,...
[ 2, 17267, 26120, 198, 6738, 764, 2777, 4157, 13, 23461, 62, 45787, 2301, 418, 1330, 347, 684, 36, 3149, 2301, 418, 41294, 198, 6738, 764, 2777, 4157, 13, 66, 853, 324, 21879, 44349, 71, 418, 1330, 327, 853, 64, 5005, 2898, 44349, 71...
3.078049
205
import configparser import csv from django.core.management.base import BaseCommand import logging import os from ....common.catalog.sentiment_type import SentimentType from ....common.catalog.source import Source
[ 11748, 4566, 48610, 198, 11748, 269, 21370, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 19424, 11321, 13, 9246, 11794, 13, 34086, 3681, 62, 4906, 1330, 11352,...
3.944444
54
from __future__ import absolute_import from django.contrib import admin admin.autodiscover() urlpatterns = ( )
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 28482, 13, 2306, 375, 29392, 3419, 198, 198, 6371, 33279, 82, 796, 357, 198, 8, 198 ]
3.166667
36
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-App. # @File : __init__.py # @Time : 2019-12-10 17:24 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : from loguru import logger trace = logger.add('runtime_{time}.log', rota...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 16775, 220, 220, 220, 220, 220, 1058, 256, 13976, 12, 4677, 13, 198, 2, 2488, 8979, 220, 220, 220, 220, 22...
2.286458
192
# other imports from multiprocessing import Pool def subcatalog_fname(full_cat_fname, source_density, sub_source_density): """ Return the name of a sub-catalog Parameters ---------- full_cat_fname : string name of the photometry catalog source_density : string the current sou...
[ 2, 584, 17944, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 628, 198, 4299, 850, 9246, 11794, 62, 69, 3672, 7, 12853, 62, 9246, 62, 69, 3672, 11, 2723, 62, 43337, 11, 850, 62, 10459, 62, 43337, 2599, 198, 220, 220, 220, 37227, 19...
2.580195
717
# _*_ coding: utf-8 _*_
[ 2, 4808, 9, 62, 19617, 25, 3384, 69, 12, 23, 4808, 9, 62, 628 ]
1.785714
14
from matplotlib import rc # rc("text", usetex=True) import matplotlib # font = {"size": 14} # matplotlib.rc("font", **font) import numpy as np import matplotlib.pyplot as plt import glob import pickle import time import matplotlib.colors as mcolors dataset_files = glob.glob("./experiments/results/sparsity_fixed/*....
[ 6738, 2603, 29487, 8019, 1330, 48321, 198, 198, 2, 48321, 7203, 5239, 1600, 514, 316, 1069, 28, 17821, 8, 198, 11748, 2603, 29487, 8019, 198, 198, 2, 10369, 796, 19779, 7857, 1298, 1478, 92, 198, 2, 2603, 29487, 8019, 13, 6015, 7203, ...
2.155428
1,216
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 import datetime import os import numpy as np from logging import getLogger, DEBUG, NullHandler
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 28686, 201, 198, 11748, 299...
2.477612
67
#!/usr/bin/env python import os import time import codecs import optparse import sys import json import numpy as np from my_loader import prepare_sentence from utils import create_input, iobes_iob, iob_ranges, zero_digits from model import Model from ccg_nlpy.core.text_annotation import TextAnnotation from ccg_nlpy....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 40481, 82, 198, 11748, 2172, 29572, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 616, 62, 29356, 1...
2.11163
2,356
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess #re, subprocess, simplestyle, os#inkex, os, random, sys, subprocess, shutil
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 850, 14681, 1303, 260, 11, 850, 14681, 11, 7106, 10992, 11, 28686, 2, 259, 365, 87, 11, 28686, 11, 4738, ...
2.359375
64
import os from pathlib import Path from unittest.mock import patch from click.testing import CliRunner import pytest from datateer.upload_agent.main import cli from datateer.upload_agent.config import load_config, save_config, save_feed import datateer.upload_agent.constants as constants def test_command_uploa...
[ 11748, 28686, 220, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 11748, 12972, 9288, 198, 198, 6738, 4818, 378, 263, 13, 25850, 62, ...
2.951724
290
"""Saving and using information about characters""" import json import os from enum import Enum from typing import Dict, List, Optional, Tuple import yaml from pydantic import BaseModel, Field, validator from modron.config import get_config _config = get_config() def _compute_mod(score: int) -> int: """Compute...
[ 37811, 50, 2703, 290, 1262, 1321, 546, 3435, 37811, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 11, 309, 29291, 198, 198, 11748, 331, 43695, 198, 6738, ...
2.416965
3,631
# # Copyright 2013 Simone Campagna # # 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 wri...
[ 2, 198, 2, 15069, 2211, 47592, 5425, 48669, 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, 351, 262, 13789, 13, 198, 2,...
2.627319
593
import collections import itertools import pytest from geco.mips.set_cover.yang import * from geco.mips.set_cover.sun import * from geco.mips.set_cover.orlib import * from geco.mips.set_cover.gasse import * """ Generic Tests """ """ Yang Tests """ """ Sun Tests """ """ OR-Library tests """ """ Gass...
[ 11748, 17268, 198, 11748, 340, 861, 10141, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 308, 47704, 13, 76, 2419, 13, 2617, 62, 9631, 13, 17859, 1330, 1635, 198, 6738, 308, 47704, 13, 76, 2419, 13, 2617, 62, 9631, 13, 19155, 1330, ...
2.672
125
#!/usr/bin/env python2.7 # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import os import sys # This program generates BUILD.bazel, WORKSPACE, .bazelrc from BUILD.gn ##################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 2, 15069, 2864, 383, 376, 37533, 544, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, ...
2.247644
2,334
# Copyright 2017 Bernhard Walter # # 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...
[ 2, 15069, 2177, 6206, 10424, 15819, 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, 351, 262, 13789, 13, 198, 2, 921, 74...
3.502326
215
# Generated by Django 3.2.4 on 2021-07-12 14:38 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 2998, 12, 1065, 1478, 25, 2548, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
""" VK Bots API Wrapper Copyright (c) 2020-2021 Misaal """ import aiohttp import json import typing from .errors import VKAPIError from .keyboard import Keyboard from .utils import to_namedtuple, get_random_id
[ 37811, 198, 47191, 40946, 7824, 27323, 2848, 198, 15269, 357, 66, 8, 12131, 12, 1238, 2481, 337, 9160, 282, 198, 37811, 198, 198, 11748, 257, 952, 4023, 198, 11748, 33918, 198, 11748, 19720, 198, 198, 6738, 764, 48277, 1330, 45917, 1761...
3.081081
74
# Copyright 2019 The Johns Hopkins University Applied Physics Laboratory # # 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 ...
[ 2, 15069, 13130, 383, 25824, 21183, 2059, 27684, 23123, 18643, 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, 351, 262, 1...
2.657146
8,998
"""empty message Revision ID: b846613b404e Revises: fc25bf71d841 Create Date: 2020-01-06 21:43:28.958558 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'b846613b404e' down_revision = 'fc25bf71d841' branch_labels = None...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 275, 5705, 2791, 1485, 65, 26429, 68, 198, 18009, 2696, 25, 277, 66, 1495, 19881, 4869, 67, 23, 3901, 198, 16447, 7536, 25, 12131, 12, 486, 12, 3312, 2310, 25, 3559, 25, 2078, 13,...
2.56391
133
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.EnergyExtRequest import EnergyExtRequest
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 9979, 415, 13, 22973, 34184, 1187, 1330, 163...
2.731343
67
from django.urls import path from receipt import views urlpatterns = [ path('', views.ReceiptList.as_view(), name='home'), path('receipt/', views.ReceiptList.as_view(), name='receipt_list'), path('receipt/create', views.ReceiptCreate.as_view(), name='receipt_create'), path('receipt/<int:pk>/edit', vie...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 14507, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 3041, 344, 10257, 8053, 13, 292, 62, 1177, 22784, 1438, 11639, 1119...
2.822828
587
from functools import partial from itertools import chain from collections import UserList import logging import traceback from django import forms from django.db.models import Model from django.core.validators import validate_comma_separated_integer_list from django.core.serializers.json import DjangoJSONEncoder from...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 6738, 17268, 1330, 11787, 8053, 198, 11748, 18931, 198, 11748, 12854, 1891, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 9945, 13,...
2.547025
1,042
from django.urls import path from landingpage.views import * urlpatterns = [ path('',landingpage,name="landingpage"), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 9581, 7700, 13, 33571, 1330, 1635, 628, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 1044, 278, 7700, 11, 3672, 2625, 1044, 278, 7700, 12340, 198,...
2.886364
44
from common import sshClient import time import eventlet from .gol import * import requests from common.uploadMirror import login from common.sqlquery import Query #import pytest import json # #json # # # # # #running #clusterid #l2vmn check
[ 6738, 2219, 1330, 26678, 11792, 198, 11748, 640, 198, 11748, 1785, 1616, 198, 6738, 764, 70, 349, 1330, 1635, 198, 11748, 7007, 198, 6738, 2219, 13, 25850, 27453, 1472, 1330, 17594, 198, 6738, 2219, 13, 25410, 22766, 1330, 43301, 198, 2...
2.682243
107