content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# Generated by Django 3.1.7 on 2021-03-05 21:32 from django.db import migrations, models import uuid
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 2713, 2310, 25, 2624, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 334, 27112, 628 ]
2.861111
36
# Copyright 2014 Rustici Software # # 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...
[ 2, 15069, 1946, 17103, 44070, 10442, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
3.368732
339
from llist import dllist, dllistnode from src.VectorAbstract import VectorAbstract
[ 6738, 32660, 396, 1330, 288, 297, 396, 11, 288, 297, 396, 17440, 198, 198, 6738, 12351, 13, 38469, 23839, 1330, 20650, 23839, 628 ]
3.695652
23
import caffe
[ 11748, 21121, 198 ]
4.333333
3
from nltk.corpus import wordnet syns = wordnet.synsets("program") #synsets print(syns) print(syns[0].lemmas()[0].name()) #definition print(syns[0].definition()) #examples print(syns[0].examples()) synonyms = [] antonyms = [] for syn in wordnet.synsets("good"): for l in syn.lemmas(): #p...
[ 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 220, 1573, 3262, 201, 198, 201, 198, 1837, 5907, 796, 1573, 3262, 13, 1837, 5907, 1039, 7203, 23065, 4943, 201, 198, 2, 1837, 5907, 1039, 201, 198, 4798, 7, 1837, 5907, 8, 201, 198, 2...
2.005013
399
# # a simple 8x8 font for the Launchpad # CHARTAB = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # Char 000 (.) 0x7E, 0x81, 0xA5, 0x81, 0xBD, 0x99, 0x81, 0x7E, # Char 001 (.) 0x7E, 0xFF, 0xDB, 0xFF, 0xC3, 0xE7, 0xFF, 0x7E, # Char 002 (.) 0x6C, 0xFE, 0xFE, 0xFE, 0x7C, 0x38, ...
[ 198, 2, 198, 2, 257, 2829, 807, 87, 23, 10369, 329, 262, 21225, 15636, 198, 2, 198, 198, 38019, 5603, 33, 796, 685, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 405, 11, 657, 87, 405, 11, ...
1.450141
13,438
""" # Search View Some Desc ## Inheritance SearchView<-BaseView ### BaseView function dependencies - _format_facets """ from urllib.parse import urlencode from pyramid.httpexceptions import HTTPBadRequest # pylint: disable=import-error from elasticsearch.helpers import scan # pylint: disable=import-error from sno...
[ 37811, 198, 2, 11140, 3582, 198, 4366, 39373, 198, 198, 2235, 47025, 42942, 198, 18243, 7680, 27, 12, 14881, 7680, 198, 21017, 7308, 7680, 2163, 20086, 198, 12, 4808, 18982, 62, 38942, 1039, 198, 37811, 198, 6738, 2956, 297, 571, 13, ...
1.949667
4,510
# Natural Language Toolkit: Finite State Transducers # # Copyright (C) 2001-2011 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # Steven Bird <sb@csse.unimelb.edu.au> # # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Finite state transducers. A finite state ...
[ 2, 12068, 15417, 16984, 15813, 25, 4463, 578, 1812, 3602, 41213, 198, 2, 198, 2, 15069, 357, 34, 8, 5878, 12, 9804, 22879, 51, 42, 4935, 198, 2, 6434, 25, 10443, 406, 3575, 1279, 276, 75, 3575, 31, 49607, 13, 66, 271, 13, 929, 1...
2.431309
16,072
import json import pytest import src.aws_resources.lambda_function.request as lambda_request
[ 11748, 33918, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 12351, 13, 8356, 62, 37540, 13, 50033, 62, 8818, 13, 25927, 355, 37456, 62, 25927, 628 ]
3.692308
26
""" A few examples of squared distance matrices. All functions also return pointset if available, None otherwise. """ from numba import jit import numpy as np # import numexpr as ne from scipy.spatial.distance import cdist from sklearn import datasets @jit("void(f8[:,:], f8, f8)", nopython=True, nogil=True) def sym...
[ 37811, 198, 32, 1178, 6096, 286, 44345, 5253, 2603, 45977, 13, 198, 198, 3237, 5499, 635, 1441, 2173, 316, 611, 1695, 11, 6045, 4306, 13, 198, 37811, 198, 198, 6738, 997, 7012, 1330, 474, 270, 198, 11748, 299, 32152, 355, 45941, 198, ...
2.337475
2,012
""" Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead. Array 1 -1 5 -2 3 Array -2 -1 2 1 """ from collections import defaultdict as d def maxLen(n, arr, p=0): """ 15 -2 2 -8 1 7 10 23 15 13 15 7 8 15 25 48 max ...
[ 37811, 198, 15056, 281, 7177, 997, 82, 290, 257, 2496, 1988, 479, 11, 1064, 262, 5415, 4129, 286, 257, 850, 18747, 326, 21784, 284, 479, 13, 1002, 612, 2125, 470, 530, 11, 1441, 657, 2427, 13, 198, 198, 19182, 220, 352, 532, 16, 6...
2.095445
461
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> # # This file is part of Ansible # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 357, 66, 8, 1584, 11, 27843, 23515, 27862, 1279, 344, 12, 66, 1516, 31, 36340, 23515, 3262, 5225, 13, 785, 29, 198...
2.926271
1,397
import neutrino.config as c import neutrino.tools as t class Datum: """Custom data object that contains a DataFrame and a corresponding main key \ with which to pull specific DataFrame values. .. note:: This class may be used to do more useful things in the future. **Instance attrib...
[ 11748, 22190, 81, 2879, 13, 11250, 355, 269, 198, 11748, 22190, 81, 2879, 13, 31391, 355, 256, 628, 198, 4871, 16092, 388, 25, 198, 220, 220, 220, 37227, 15022, 1366, 2134, 326, 4909, 257, 6060, 19778, 290, 257, 11188, 1388, 1994, 346...
2.554899
1,184
from logs import logDecorator as lD import jsonref, pprint import numpy as np import matplotlib.pyplot as plt from psycopg2.sql import SQL, Identifier, Literal from lib.databaseIO import pgIO from collections import Counter from tqdm import tqdm from multiprocessing import Pool from time import sleep config = jsonr...
[ 6738, 17259, 1330, 2604, 10707, 273, 1352, 355, 300, 35, 220, 198, 11748, 33918, 5420, 11, 279, 4798, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 17331, 22163, 70, ...
3.04878
164
# Django from django.views.generic import View from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.urls import reverse_lazy from django.http import HttpResponseRedirect # Local Django from user.decorators import is_health_professional from chat.mod...
[ 2, 37770, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 3582, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 26791, 13, 12501, 273, 2024, 1330, 2446, ...
3.339394
165
from tensorflow.keras import backend as K from tensorflow.keras.models import Model from tensorflow.keras.layers import Permute, Flatten from tensorflow.keras.layers import MaxPooling2D, MaxPooling1D from tensorflow.keras.layers import Reshape, Dense, Input, Dropout, Activation, LSTM, Conv2D,\ ...
[ 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 30203, 355, 509, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 9104, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 75, 6962, 1330, 2448, 76, 1133, 11, 1610, 41769, 198, ...
2.796296
216
# The MIT License (MIT) # # Copyright (c) 2013-2019 SUNSCRAPERS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, ...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 2211, 12, 23344, 35329, 6173, 49, 2969, 4877, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, ...
3.195412
1,177
''' Число сочетаний ''' n = int(input()) k = int(input()) print(soch(n, k))
[ 7061, 6, 198, 140, 100, 18849, 21727, 30143, 15166, 220, 21727, 15166, 141, 229, 16843, 20375, 16142, 22177, 18849, 140, 117, 198, 7061, 6, 628, 198, 77, 796, 493, 7, 15414, 28955, 198, 74, 796, 493, 7, 15414, 28955, 198, 4798, 7, 5...
1.56
50
""" Data IO api """ # flake8: noqa from pandas.io.clipboards import read_clipboard from pandas.io.excel import ExcelFile, ExcelWriter, read_excel from pandas.io.feather_format import read_feather from pandas.io.gbq import read_gbq from pandas.io.html import read_html from pandas.io.json import read_json from pandas.i...
[ 37811, 198, 6601, 24418, 40391, 198, 37811, 198, 198, 2, 781, 539, 23, 25, 645, 20402, 198, 198, 6738, 19798, 292, 13, 952, 13, 15036, 12821, 1330, 1100, 62, 15036, 3526, 198, 6738, 19798, 292, 13, 952, 13, 1069, 5276, 1330, 24134, ...
2.804511
266
# 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 may ...
[ 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, 5964, 1321, 13, 19...
3.972308
325
# 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 may ...
[ 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, 5964, 1321, 13, 19...
2.579456
18,331
import os import pandas as pd from collections import OrderedDict if __name__ == '__main__': process_persuasion_data('data/Persuasion/full_dialog.csv')
[ 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1429, 62, 19276, 84, 4247, ...
2.793103
58
import tensorflow as tf from tensorflow.contrib import layers from tensorflow.contrib import rnn # rnn stuff temporarily in contrib, moving back to code in TF 1.1 import os import time import math import numpy as np import my_txtutils as txt tf.set_random_seed(0) start = time.time() # SEQLEN = 50 B...
[ 201, 198, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 6738, 11192, 273, 11125, 13, 3642, 822, 1330, 11685, 201, 198, 6738, 11192, 273, 11125, 13, 3642, 822, 1330, 374, 20471, 220, 1303, 374, 20471, 3404, 13413, 287, 542, ...
2.431385
3,250
# -*- coding: utf-8 -*- # @createTime : 2020/5/20 9:34 # @author : Huanglg # @fileName: file_change.py # @email: luguang.huang@mabotech.com import time from watchdog.observers import Observer from watchdog.events import * import config from parse_pdf import parse_pdf import os import constants from utils.Logger ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 17953, 7575, 220, 220, 220, 1058, 12131, 14, 20, 14, 1238, 860, 25, 2682, 198, 2, 2488, 9800, 220, 1058, 31663, 75, 70, 198, 2, 2488, 7753, 5376, 25, 2393, ...
2.601504
266
""" This file is part of the rgf_grape python package. Copyright (C) 2017-2018 S. Boutin For details of the rgf_grape algorithm and applications see: S. Boutin, J. Camirand Lemyre, and I. Garate, Majorana bound state engineering via efficient real-space parameter optimization, ArXiv 1804.03170 (2018). """ import rgf_...
[ 37811, 198, 1212, 2393, 318, 636, 286, 262, 48670, 69, 62, 70, 13484, 21015, 5301, 13, 198, 15269, 357, 34, 8, 2177, 12, 7908, 311, 13, 40808, 259, 198, 1890, 3307, 286, 262, 48670, 69, 62, 70, 13484, 11862, 290, 5479, 766, 25, 19...
3.292308
130
# -*- coding: utf-8 -*- # Copyright (c) 2011-2014 by Jani Kesänen <jani.kesanen@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2813, 12, 4967, 416, 2365, 72, 40679, 11033, 38572, 1279, 73, 3216, 13, 5209, 272, 268, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 770, 1430, 31...
2.460434
2,856
"""This file contains a series of integration tests that sanity check a sample metrics service running on http://127.0.0.1:8445 """ import httplib import unittest import requests _base_url = 'http://service:8445/v1.0/_metrics'
[ 37811, 1212, 2393, 4909, 257, 2168, 286, 11812, 5254, 326, 34182, 2198, 198, 64, 6291, 20731, 2139, 2491, 319, 2638, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 5705, 2231, 198, 37811, 198, 198, 11748, 1841, 489, 571, 198, 11748, 555, ...
3.208333
72
import numpy as _lib_ import node as _node_ ################################################################################################ ##### TRAINING FUNCTIONALITY FOR EPOCH AND ITERATION ################################################################################################ ...
[ 11748, 299, 32152, 355, 4808, 8019, 62, 201, 198, 11748, 10139, 355, 4808, 17440, 62, 201, 198, 201, 198, 201, 198, 201, 198, 220, 220, 220, 1303, 29113, 29113, 14468, 7804, 4242, 21017, 201, 198, 220, 220, 220, 46424, 220, 220, 29125...
3.628405
514
import re import sys from collections import deque from html.parser import HTMLParser from django.test.client import Client # Utility functions cte = lambda x: lambda *args: x choose = lambda cond, do, other: do if cond else other def crawl(url="/", skip_patterns=(), skip_urls=(), errors=(), user=None, log=print): ...
[ 11748, 302, 198, 11748, 25064, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 27711, 13, 48610, 1330, 11532, 46677, 198, 198, 6738, 42625, 14208, 13, 9288, 13, 16366, 1330, 20985, 198, 198, 2, 34030, 5499, 198, 310, 68, 796, 37456, 2124,...
2.471545
1,476
#!/usr/bin/python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANT...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 26171, 198, 2, 2448, 3411, 284, 779, 11, 4866, 11, 13096, 11, 290, 14, 273, 14983, 428, 3788, 329, 597, 198,...
3.815951
326
from flask import Flask, request, jsonify from flask_restful import Resource from app.api.v1.models.meetupsmodel import all_meetups, Meetups, all_rsvps from flask_expects_json import expects_json from app.api.v1.utils.json_schema import meetup_schema class AllMeetupsApi(Resource): """Endpoint for all meetups func...
[ 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 6738, 598, 13, 15042, 13, 85, 16, 13, 27530, 13, 47745, 4739, 19849, 1330, 477, 62, 47745, 4739, 11, 21167, 4739, 11, 477, 62, 3...
2.415205
1,368
import pandas as pd import numpy as np def reverse_series_map(series): """Reverse a mapping""" return pd.Series(series.index.values, index=series.values)
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 9575, 62, 25076, 62, 8899, 7, 25076, 2599, 198, 220, 220, 220, 37227, 49, 964, 325, 257, 16855, 37811, 198, 220, 220, 220, 1441, 279, 67, 13, 27996...
2.894737
57
import logging import logging.config import time from typing import List import pymongo import sys import traceback from crawler.constants import ( COLLECTION_SAMPLES, FIELD_CREATED_AT, MONGO_DATETIME_FORMAT, ) from crawler.db import ( create_mongo_client, get_mongo_collection, get_mongo_db, ...
[ 11748, 18931, 198, 11748, 18931, 13, 11250, 198, 11748, 640, 198, 6738, 19720, 1330, 7343, 198, 11748, 279, 4948, 25162, 198, 11748, 25064, 198, 11748, 12854, 1891, 198, 6738, 27784, 1754, 13, 9979, 1187, 1330, 357, 198, 220, 220, 220, ...
2.651515
198
import os basedir = os.path.abspath(os.path.dirname(__file__))
[ 11748, 28686, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198 ]
2.423077
26
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/3/11 15:23 # @Author : Jackokie Zhao # @Site : www.jackokie.com # @File : file_3_7.py # @Software: PyCharm # @contact: jackokie@gmail.com import os import pickle import numpy as np import tensorflow as tf import matplotlib from sklearn.manifold im...
[ 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, 7575, 220, 220, 220, 1058, 2864, 14, 18, 14, 1157, 1315, 25, 1954, 198, 2, 2488, 13838, 220, 1058, 3619, 4...
2.283922
5,100
"""Microtubule catastrophe time and concentration analyses""" from .tidy_data import * from .ecdfs import * from .controls import * from .parameter_estimates import * from .viz_controls import * from .viz_explore_two_arrival_story import * from .viz_parameter_estimates import * from .viz_explore_concentration_datse...
[ 37811, 13031, 37995, 2261, 27767, 640, 290, 10368, 13523, 37811, 198, 198, 6738, 764, 83, 19325, 62, 7890, 1330, 1635, 198, 6738, 764, 721, 7568, 82, 1330, 1635, 198, 198, 6738, 764, 13716, 82, 1330, 1635, 198, 6738, 764, 17143, 2357, ...
2.899408
169
import subprocess import os from shutil import copyfile import numpy as np import matplotlib.pyplot as plt import csv import sys report_list = [] exp_4 = [] exp_5 = [] exp_6 = [] exp_7 = [] # change range here to specify testing range for exponent and mentissa. eg. (4,8) stands for [4,8) for exponent in range (4,8): ...
[ 11748, 850, 14681, 198, 11748, 28686, 198, 6738, 4423, 346, 1330, 4866, 7753, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 198, 13116, ...
2.273264
2,708
from builder import ModelBuilder
[ 6738, 27098, 1330, 9104, 32875, 198 ]
5.5
6
"""This module provides an HTML tag class.""" # Imports class Tag(object): """Describes an HTML tag. Attributes: name: The name/type of a tag. e.g., 'table'. attributes: A list of attribute tuples. data: The content of the Tag. parent: The parent of the Tag. children:...
[ 37811, 1212, 8265, 3769, 281, 11532, 7621, 1398, 526, 15931, 198, 198, 2, 1846, 3742, 628, 198, 4871, 17467, 7, 15252, 2599, 198, 220, 220, 220, 37227, 24564, 22090, 281, 11532, 7621, 13, 628, 220, 220, 220, 49213, 25, 198, 220, 220, ...
2.457086
501
from typing import List from .misc.array_util import ArrayUtil
[ 6738, 19720, 1330, 7343, 198, 6738, 764, 44374, 13, 18747, 62, 22602, 1330, 15690, 18274, 346, 628 ]
3.764706
17
from django.core.exceptions import ObjectDoesNotExist from rest_framework import status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from api.models import Recip...
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 41299, 3299, 1330, 29130, 47649, 3299, 198, 6738, 1334, 62, 30604, 13, 525, 8481,...
4.137615
109
import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import json if __name__ == '__main__': with open('sample_preds.json', 'r', encoding="utf-8") as file: data = json.load(file) for i in range(10): item = data[i] x, y, z = item['out']['look_vec'][...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 285, 489, 62, 25981, 74, 896, 13, 76, 29487, 18, 67, 1330, 12176, 274, 18, 35, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 198, 361, 11593, 3672, 83...
1.850526
475
import math from mmcv.cnn import build_conv_layer, build_norm_layer from ..builder import BACKBONES from ..utils import ResLayer from .resnet import Bottleneck as _Bottleneck from .resnet import ResNet import torch import torch.nn as nn import torch.utils.checkpoint as cp @BACKBONES.register_module() class ResNeX...
[ 11748, 10688, 198, 198, 6738, 8085, 33967, 13, 66, 20471, 1330, 1382, 62, 42946, 62, 29289, 11, 1382, 62, 27237, 62, 29289, 198, 198, 6738, 11485, 38272, 1330, 28767, 33, 39677, 198, 6738, 11485, 26791, 1330, 1874, 49925, 198, 6738, 764...
2.517857
840
# Generated by Django 2.2 on 2019-07-04 19:21 import datetime from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 13130, 12, 2998, 12, 3023, 678, 25, 2481, 198, 198, 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.028571
35
import pyximport; pyximport.install() from alphazero.Coach import Coach, get_args from alphazero.NNetWrapper import NNetWrapper as nn from alphazero.othello.OthelloGame import OthelloGame as Game from alphazero.othello.OthelloPlayers import GreedyOthelloPlayer args = get_args( run_name='othello', cpuct=2, ...
[ 11748, 12972, 87, 11748, 26, 12972, 87, 11748, 13, 17350, 3419, 198, 198, 6738, 435, 746, 1031, 3529, 13, 40677, 1330, 16393, 11, 651, 62, 22046, 198, 6738, 435, 746, 1031, 3529, 13, 6144, 316, 36918, 2848, 1330, 399, 7934, 36918, 284...
2.29912
341
import torch from torch.autograd import Variable from torch.autograd import Function import torch.nn as nn from typing import Tuple import pointnet2_cuda as pointnet2 from HPCnet.getGtFeature import get_gt_feature from pointnet2.pointnet2_utils import ball_query, grouping_operation
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 19720, 1330, 309, 29291, 198, 198, 11748, 966, 3262, 17, 62, ...
3.404762
84
# coding: utf-8 from __future__ import absolute_import import os import sys sys.path.append(os.path.abspath(os.path.join(__file__, "..", ".."))) sys.path.append(os.path.abspath(os.path.join(__file__, "..", "..", "build", "lib"))) from . import test_file from . import test_repo
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 2217...
2.531532
111
import json from pathlib import Path import pytest from pydantic import EmailStr, SecretStr from server.application.auth.commands import DeleteUser from server.application.auth.queries import Login from server.application.datasets.commands import UpdateDataset from server.application.datasets.queries import GetAllDat...
[ 11748, 33918, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 6738, 279, 5173, 5109, 1330, 9570, 13290, 11, 3943, 13290, 198, 198, 6738, 4382, 13, 31438, 13, 18439, 13, 9503, 1746, 1330, 23520, 12982, 198, 6738, 4...
2.909091
253
import numpy as np
[ 11748, 299, 32152, 355, 45941 ]
3.6
5
import streamlit as st import requests from utils.io_utils import load_config config = load_config() st.title("Sentiment Analysis") text = st.text_input("Insert a text") if text: response = requests.get(config["api"]["url"], params={"text": text}) st.write(response.json())
[ 11748, 4269, 18250, 355, 336, 198, 11748, 7007, 198, 6738, 3384, 4487, 13, 952, 62, 26791, 1330, 3440, 62, 11250, 198, 198, 11250, 796, 3440, 62, 11250, 3419, 198, 198, 301, 13, 7839, 7203, 31837, 3681, 14691, 4943, 198, 5239, 796, 33...
3.053763
93
#!/usr/bin/env python import argparse from androtoolbox.shared_pref import SharedPref if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 1822, 29572, 198, 198, 6738, 290, 10599, 970, 3524, 13, 28710, 62, 3866, 69, 1330, 39403, 36698, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 22...
2.744681
47
from XMC import loaders from XMC import GlasXC from XMC import metrics
[ 6738, 1395, 9655, 1330, 3440, 364, 198, 6738, 1395, 9655, 1330, 21931, 55, 34, 198, 6738, 1395, 9655, 1330, 20731, 198 ]
3.380952
21
""" This is demonstrative implementation of how to use `traverse invoke` for implementation of its parts """ from .core import entry_traverse from .adapt import get_args, filter_dict from traverse_invoke.leaves import kwarg # ## ## ## ## ## This is demonstrative stuff ###### def wrap(retkey): """ This decorat...
[ 37811, 198, 1212, 318, 4110, 876, 7822, 286, 703, 284, 779, 198, 63, 9535, 4399, 26342, 63, 329, 7822, 286, 663, 3354, 198, 37811, 198, 6738, 764, 7295, 1330, 5726, 62, 9535, 4399, 198, 6738, 764, 42552, 1330, 651, 62, 22046, 11, 81...
3.148936
188
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 628, 198 ]
1.75
16
from keras.models import Model, Input from keras.layers import Conv2D, MaxPooling2D, UpSampling2D input_img = Input(shape=(28, 28, 1)) #adapt this if using 'channels_first' image data format x = Conv2D(16, (3,3), activation='relu', padding='same')(input_img) x = MaxPooling2D((2,2), padding='same')(x) x = Conv2D(8, (3,...
[ 6738, 41927, 292, 13, 27530, 1330, 9104, 11, 23412, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 34872, 17, 35, 11, 5436, 27201, 278, 17, 35, 11, 3205, 16305, 11347, 17, 35, 198, 198, 15414, 62, 9600, 796, 23412, 7, 43358, 16193, 2078...
2.245393
1,031
# # tempfiles module - Temporary file handling for reportbug # Written by Chris Lawrence <lawrencc@debian.org> # (C) 1999-2008 Chris Lawrence # Copyright (C) 2008-2014 Sandro Tosi <morph@debian.org> # # This program is freely distributable per the following license: # ## Permission to use, copy, modify, and dist...
[ 2, 198, 2, 20218, 16624, 8265, 532, 46042, 2393, 9041, 329, 989, 25456, 198, 2, 220, 220, 22503, 416, 5180, 13914, 1279, 6270, 918, 535, 31, 24689, 13, 2398, 29, 198, 2, 220, 220, 357, 34, 8, 7358, 12, 11528, 5180, 13914, 198, 2, ...
2.958393
697
from app.database.models import Tasks from datetime import datetime, timedelta from bson.json_util import dumps from typing import List, Dict import uuid import json async def get_task_next(): ''' Calculate the next task to be executed, following the graph dependencies ''' pipeline = [ {"$unwind": { "path": "...
[ 6738, 598, 13, 48806, 13, 27530, 1330, 309, 6791, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 275, 1559, 13, 17752, 62, 22602, 1330, 45514, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 11748, 334, 27112, ...
2.79257
323
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # Copyright (C) 2021 Northwestern University. # Copyright (C) 2021 TU Wien. # # Invenio-Requests is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Request number identifier model te...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 33448, 327, 28778, 13, 198, 2, 15069, 357, 34, 8, 33448, 30197, 2059, 13, 198, 2, 15069, 357, 34, 8, 33448, 309, 52, 370, 2013, 13, ...
3.183417
398
# -*- coding: utf-8 -*- import os from mock import patch from mlblocks import primitives @patch('mlblocks.primitives._PRIMITIVES_PATHS', new=['a', 'b'])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 198, 6738, 15290, 1330, 8529, 198, 198, 6738, 25962, 27372, 1330, 2684, 20288, 628, 198, 31, 17147, 10786, 4029, 27372, 13, 19795, 20288, 13557, 48...
2.590164
61
from math import isclose import csv import matplotlib.pyplot as plt if __name__ == '__main__': y = [] with open('test_loss.csv', 'r') as f: reader = csv.reader(f) for row in reader: y.append(float(row[2])) d = diagnosis() res = d.smooth(y) up = [] down = [] ...
[ 6738, 10688, 1330, 318, 19836, 198, 11748, 269, 21370, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 331, 796, 17635, 198, 22...
1.98951
286
""" ngVLA simulated observation of input galaxy model feathering INT with 45 and 18 m single dish for TP Variable Description Default value Notes -------------------------------------------------------------------------------- model input model model0 imsize_m mod...
[ 37811, 198, 782, 53, 13534, 28590, 13432, 286, 5128, 16161, 2746, 198, 5036, 25545, 17828, 351, 4153, 290, 1248, 285, 2060, 9433, 220, 329, 24525, 198, 198, 43015, 220, 220, 220, 12489, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.382336
3,544
import pkgutil from sanic.log import logger IDIOM_PACKAGE = 'idiomfinder.validator' IDIOM_FILE = 'data/idioms.3w.txt' class IdiomValidator: """ IdiomValidator examines a given string to see if it is a Chinese idiom. It does so by searching against a list of known idioms. """
[ 11748, 279, 10025, 22602, 198, 198, 6738, 5336, 291, 13, 6404, 1330, 49706, 198, 198, 2389, 40, 2662, 62, 47, 8120, 11879, 796, 705, 19830, 296, 22805, 13, 12102, 1352, 6, 198, 2389, 40, 2662, 62, 25664, 796, 705, 7890, 14, 19830, 3...
2.766355
107
import hmac, hashlib
[ 11748, 289, 20285, 11, 12234, 8019, 628 ]
3.142857
7
import os import zipfile
[ 11748, 28686, 198, 11748, 19974, 7753, 628, 198 ]
3.375
8
"""Locators for Summer '19""" from locators_47 import * npsp_lex_locators = npsp_lex_locators.copy()
[ 37811, 33711, 2024, 329, 10216, 705, 1129, 37811, 198, 198, 6738, 1179, 2024, 62, 2857, 1330, 1635, 198, 198, 77, 862, 79, 62, 2588, 62, 17946, 2024, 796, 299, 862, 79, 62, 2588, 62, 17946, 2024, 13, 30073, 3419 ]
2.615385
39
from random import choice from account.models import Cargo, Orgao, Profile from account.utils import CARGOS, INSTITUICOES from django.contrib.auth import get_user_model from django.db.models.signals import post_save from factory import DjangoModelFactory, Faker, Sequence, SubFactory, django User = get_user_model() ...
[ 6738, 4738, 1330, 3572, 198, 198, 6738, 1848, 13, 27530, 1330, 41061, 11, 1471, 4908, 78, 11, 13118, 198, 6738, 1848, 13, 26791, 1330, 17368, 38, 2640, 11, 40589, 2043, 52, 22707, 1546, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 1843...
3.104
125
import pandas as pd import os import pathlib from pathlib import Path data = 'data/2750' df = pd.DataFrame(columns=['label', 'int_label', 'img_name']) labels_dict = {} counter = 0 for subdir in os.listdir(data): labels_dict[subdir] = counter filepath = os.path.join(data,subdir) if os.path.isdir(filepath):...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 7890, 796, 705, 7890, 14, 1983, 1120, 6, 198, 198, 7568, 796, 279, 67, 13, 6601, 19778, 7, 28665, 82, 28, 1781...
2.393103
290
import numpy as np import sys import matplotlib.pyplot as plt from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap, Normalize import matplotlib.pylab as pylab main()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 12280, 14520, 198, 6738, 2603, 29487, 8019, 13, 4033, 26448, 1330, 17106, ...
3.304348
92
# load MNIST data from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) # start tensorflow interactiveSession import tensorflow as tf sess = tf.InteractiveSession() # weight initialization # tf.truncated_normal(shape, mean=0.0, stddev=1.0, dtype=tf.f...
[ 2, 3440, 29060, 8808, 1366, 198, 6738, 11192, 273, 11125, 13, 1069, 12629, 13, 83, 44917, 82, 13, 10295, 396, 1330, 5128, 62, 7890, 198, 10295, 396, 796, 5128, 62, 7890, 13, 961, 62, 7890, 62, 28709, 7203, 39764, 8808, 62, 7890, 14,...
1.384915
2,824
from locust import HttpLocust, TaskSet, task
[ 6738, 1179, 436, 1330, 367, 29281, 33711, 436, 11, 15941, 7248, 11, 4876, 198 ]
3.214286
14
# Your MyHashSet object will be instantiated and called as such: # obj = MyHashSet() # obj.add(key) # obj.remove(key) # param_3 = obj.contains(key)
[ 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, 2, 3406, 2011, 26257, 7248, 2134, 481, 307, 9113, 12931, 290, 1444, 355, 884, 25, 198, 2, 26181, 796, 2011, 26257, 7248, 3419, 198, 2, ...
2.333333
72
# Python file to run QC over ASPEN-processed files and output "good" sondes for input to Level-3 import datetime import glob import os import sys import warnings import numpy as np import pandas as pd import xarray as xr import joanne from joanne.Level_2 import fn_2 as f2 Platform = 'HALO' data_dir = 'extra/Sampl...
[ 2, 11361, 2393, 284, 1057, 36070, 625, 34658, 1677, 12, 14681, 276, 3696, 290, 5072, 366, 11274, 1, 264, 623, 274, 329, 5128, 284, 5684, 12, 18, 198, 198, 11748, 4818, 8079, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 25064, 198...
1.990769
1,300
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
[ 2, 15069, 33160, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 13789, 1776, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257...
3.103275
1,191
# # Copyright 2019 - binx.io B.V. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ 2, 198, 2, 15069, 13130, 532, 9874, 87, 13, 952, 347, 13, 53, 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, 351,...
2.472095
1,523
# coding: utf-8 """ """ import pytest import stream_processor as sp from stream_processor import Token as tk TOKEN_EXAMPLES = ( (r'<', [tk.START_GARBAGE]), (r'>', [tk.END_GARBAGE]), (r'c', [tk.CHARACTER]), (r'!c', [tk.ESCAPE, tk.CHARACTER]), (r'{c', [tk.START_GROUP, tk.CHARACTER]), (r'}', [tk...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 37811, 198, 37811, 198, 11748, 12972, 9288, 198, 198, 11748, 4269, 62, 41341, 355, 599, 198, 6738, 4269, 62, 41341, 1330, 29130, 355, 256, 74, 628, 198, 10468, 43959, 62, 6369, 2390, 6489, 1546, ...
2.039784
1,483
import pygame from pygame.locals import * from src.classes import * SPEED = 1 SPEED_BALL = SPEED BLACK = (0, 0, 0) WHITE = (255, 255, 255) screen_size = (800, 640) pygame.init() screen = pygame.display.set_mode(screen_size, pygame.RESIZABLE) pygame.display.set_caption("Pong") ball = Ball(20) ball.set_pos((screen_si...
[ 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 6738, 12351, 13, 37724, 1330, 1635, 198, 198, 4303, 41841, 796, 352, 198, 4303, 41841, 62, 45463, 796, 6226, 41841, 198, 9148, 8120, 796, 357, 15, 11, 657, 1...
2.292582
728
from __future__ import print_function import os import re import concurrent.futures import numpy as np import netCDF4 from mdtraj.geometry import _geometry from mdtraj.geometry.sasa import _ATOMIC_RADII try: from bpmfwfft import IO try: from bpmfwfft.util import c_is_in_grid, cdistance, c_co...
[ 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 24580, 13, 69, 315, 942, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2010, 34, 8068, 19, 198, 6738, 45243, 9535, 73, 13,...
2.032526
21,890
import numpy as np from random import shuffle # This makes a map for use in the lau game scripts #print(make_map(100,200,['A','F','L','S']*80)) #print([str(list(make_map()))]) m = make_map() for i in range(m.shape[0]): for j in range(m.shape[1]): print(m[i,j], end='')
[ 11748, 299, 32152, 355, 45941, 198, 6738, 4738, 1330, 36273, 198, 198, 2, 770, 1838, 257, 3975, 329, 779, 287, 262, 300, 559, 983, 14750, 198, 198, 2, 4798, 7, 15883, 62, 8899, 7, 3064, 11, 2167, 17414, 6, 32, 41707, 37, 41707, 43...
2.336066
122
import pytest from aoc.day5 import ex1, ex2 import numpy as np __author__ = "Miguel Á. Lobato" __copyright__ = "Miguel Á. Lobato" __license__ = "MIT"
[ 11748, 12972, 9288, 198, 198, 6738, 257, 420, 13, 820, 20, 1330, 409, 16, 11, 409, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 834, 9800, 834, 796, 366, 44, 328, 2731, 6184, 223, 13, 32684, 5549, 1, 198, 834, 22163, 4766, 83...
2.369231
65
""" Configuration file for static and dynamic files. https://docs.djangoproject.com/en/2.0/howto/static-files/ """ import os BASE_DIR = os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) ) STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles/') STATIC_URL = '/static/' MEDIA_ROOT = os.path.j...
[ 37811, 198, 38149, 2393, 329, 9037, 290, 8925, 3696, 13, 198, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 17, 13, 15, 14, 4919, 1462, 14, 12708, 12, 16624, 14, 198, 37811, 198, 198, 11748, 28686, 1...
2.262195
164
import pandas as pd from torchtext.data import Field from quicknlp.data.datasets import HierarchicalDatasetFromDataFrame
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 28034, 5239, 13, 7890, 1330, 7663, 198, 198, 6738, 2068, 21283, 79, 13, 7890, 13, 19608, 292, 1039, 1330, 36496, 998, 605, 27354, 292, 316, 4863, 6601, 19778, 628 ]
3.324324
37
#!/usr/bin/env python # encoding: utf-8 ################################################################################ # # Copyright (c) 2009-2011 by the RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation f...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 29113, 29113, 14468, 198, 2, 198, 2, 220, 220, 15069, 357, 66, 8, 3717, 12, 9804, 416, 262, 371, 20474, 4816, 357, 81, 11296, 62, 7959, ...
2.637446
7,643
#!/usr/bin/env python """ This script runs GATK BaseRecalibrator and/or ApplyBQSR. The script opens a GATK process with the correct parameters. """ import subprocess as sp import bioexcel_align.alignutils as au def baserecal(jopts, threads, ref, infile, knownsites, gatkdir, sample): ''' Create and run comman...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 1212, 4226, 4539, 402, 1404, 42, 7308, 6690, 282, 2889, 1352, 290, 14, 273, 27967, 33, 48, 12562, 13, 383, 4226, 9808, 257, 198, 38, 1404, 42, 1429, 351, 262, 3376, ...
2.13161
851
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
[ 2, 15069, 357, 66, 8, 12131, 11, 14236, 952, 5921, 265, 382, 11, 20059, 4992, 5136, 2031, 402, 2022, 39, 11, 290, 198, 2, 20671, 2059, 286, 360, 1670, 38863, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 29...
2.995084
1,017
from .locate import FindFunc
[ 6738, 764, 75, 13369, 1330, 9938, 37, 19524, 198 ]
3.222222
9
# (c) 2019 by Authors # This file is a part of centroFlye program. # Released under the BSD license (see LICENSE file) from collections import defaultdict, Counter from itertools import groupby import os import subprocess import statistics import networkx as nx import numpy as np from utils.bio import read_bio_seq, ...
[ 2, 357, 66, 8, 13130, 416, 46665, 198, 2, 770, 2393, 318, 257, 636, 286, 1247, 305, 33771, 68, 1430, 13, 198, 2, 28728, 739, 262, 347, 10305, 5964, 357, 3826, 38559, 24290, 2393, 8, 198, 198, 6738, 17268, 1330, 4277, 11600, 11, 15...
3.138462
130
"""Climate support for Shelly.""" from __future__ import annotations import asyncio import logging from typing import Any, Final, cast from aioshelly.block_device import Block import async_timeout from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( CURR...
[ 37811, 37649, 1104, 329, 1375, 12810, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 8125, 11, 3350, 198, 198, 6738, 257, 4267, 12758, 88, 13, 996...
2.312429
2,631
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\carry\carry_sim_posture.py # Compiled at: 2017-10-09 20:09:11 # Size of source mod 2**32: 12375 byte...
[ 2, 34318, 2349, 21, 2196, 513, 13, 22, 13, 19, 198, 2, 11361, 18022, 8189, 513, 13, 22, 357, 2091, 5824, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 513, 13, 22, 13, 24, 357, 31499, 14, 85, 18, 13, 22, 13, 24, 25, 1485, 66,...
3.171362
426
# -*- encoding: utf-8 -*- from django import template from django.template.base import Template from ..adapters import django_tables2 register = template.Library() @register.simple_tag(takes_context=True) @register.simple_tag(takes_context=True)
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 28243, 13, 8692, 1330, 37350, 198, 198, 6738, 11485, 324, 12126, 1330, 42625, 14208, 62, 83, 2977, 17, 198, ...
3.036145
83
import random from six.moves import xrange from humbledb import Document from humbledb.array import Array from test.util import (database_name, DBTest, ok_, eq_, enable_sharding, SkipTest, raises) def _word(): """ Return a random "word". """ return str(random.randint(1, 15000)) @...
[ 11748, 4738, 198, 198, 6738, 2237, 13, 76, 5241, 1330, 2124, 9521, 198, 198, 6738, 1311, 9342, 65, 1330, 16854, 198, 6738, 1311, 9342, 65, 13, 18747, 1330, 15690, 198, 6738, 1332, 13, 22602, 1330, 357, 48806, 62, 3672, 11, 20137, 1440...
2.657459
181
#!/usr/bin/env python3 from py2many.smt import check_sat assert demorgan(True, True) assert demorgan(True, False) assert demorgan(False, True) assert demorgan(False, False) # assert not demorgan # Should fail if uncommented # check_sat() print("OK")
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 12972, 17, 21834, 13, 5796, 83, 1330, 2198, 62, 49720, 198, 198, 30493, 1357, 9971, 7, 17821, 11, 6407, 8, 198, 30493, 1357, 9971, 7, 17821, 11, 10352, 8, 198, 30493, ...
3.036145
83
import numpy as np from numpy.testing import assert_allclose import pytest import matplotlib as mpl from matplotlib import pyplot as plt from matplotlib.testing.decorators import image_comparison, check_figures_equal @image_comparison(['polar_axes'], style='default', tol=0.012) @image_comparison(['polar_coords'], ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 439, 19836, 198, 11748, 12972, 9288, 198, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198...
2.585526
456
import elementary import evas import ecore import urllib import time import os import shutil import datetime
[ 11748, 19823, 198, 11748, 819, 292, 198, 11748, 304, 7295, 198, 11748, 2956, 297, 571, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 4818, 8079, 198 ]
3.633333
30
# 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 applicab...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 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, 351,...
2.523236
2,324
from config import token, cache_dir from contextlib import contextmanager import sys import todoist CODE_TO_COLORS = { 30 : 'BERRY_RED', 31 : 'RED', 32 : 'ORANGE', 33 : 'YELLOW', 34 : 'OLIVE_GREEN', 35 : 'LIME_GREEN', 36 : 'GREEN', 37 : 'MINT_GREEN', 38 : 'TEAL', 39 : 'SKY_BLUE'...
[ 6738, 4566, 1330, 11241, 11, 12940, 62, 15908, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 25064, 198, 11748, 284, 4598, 396, 198, 198, 34, 16820, 62, 10468, 62, 25154, 20673, 796, 1391, 198, 220, 220, 220, 1542, 1058, 705, ...
1.761675
621
import FWCore.ParameterSet.Config as cms process = cms.Process("SynchronizeDCSO2O") process.load("FWCore.MessageService.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) process.poolDBESSource = cms.ESSource("PoolDBESSource", BlobStreamerName = cms.untracked.strin...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 14681, 796, 269, 907, 13, 18709, 7203, 50, 24871, 1096, 49513, 46, 17, 46, 4943, 198, 198, 14681, 13, 2220, 7203, 24160, 14055, 13, 12837, 16177, 13, 12837, 111...
2.05671
3,562
# crawl_plantlist.py import glob import time import json import datetime import yaml from urllib2 import urlopen from bs4 import BeautifulSoup if __name__ == '__main__': start_time = time.time() main() print("--- %s seconds ---" % (time.time() - start_time))
[ 2, 27318, 62, 15060, 4868, 13, 9078, 198, 11748, 15095, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 11748, 331, 43695, 198, 6738, 2956, 297, 571, 17, 1330, 19016, 9654, 198, 6738, 275, 82, 19, 1330, 23762, 50, 104...
2.833333
96
male = [ 'ADOMAS', 'ALBERTAS', 'ALEKSANDRAS', 'ALFREDAS', 'ANDRIUS', 'ANTANAS', 'ARAS', 'ARNOLDAS', 'ARONAS', 'ARTŪRAS', 'AUGUSTAS', 'AUGUSTINAS', 'AURELIJUS', 'ĄŽUOLAS', 'BENAS', 'BENEDIKTAS', 'BENJAMINAS', 'BRONISLOVAS', 'BRONIUS', 'DANIE...
[ 22606, 796, 685, 198, 220, 220, 220, 705, 2885, 2662, 1921, 3256, 198, 220, 220, 220, 705, 1847, 13246, 51, 1921, 3256, 198, 220, 220, 220, 705, 21358, 27015, 6981, 49, 1921, 3256, 198, 220, 220, 220, 705, 1847, 10913, 1961, 1921, 3...
1.536295
4,367
"""Client for the Wikipedia REST API.""" from dataclasses import dataclass from functools import lru_cache from typing import Type import click import requests from desert import schema from marshmallow import EXCLUDE, Schema, ValidationError API_URL: str = ( "https://{language}.wikipedia.org/api/rest_v1/page/ran...
[ 37811, 11792, 329, 262, 15312, 30617, 7824, 526, 15931, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 198, 6738, 19720, 1330, 5994, 198, 198, 11748, 3904, 198, 11748, 7007, ...
2.708223
377
# Copyright 2018 The Cornac 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 applicable ...
[ 2, 15069, 2864, 383, 11424, 330, 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, 351, ...
4.220238
168