content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from rest_framework_gis import serializers from rest_framework import serializers as s from .models import ( Artificialisee2015to2018, Artificielle2018, CommunesSybarval, CouvertureSol, EnveloppeUrbaine2018, Ocsge, Renaturee2018to2015, Sybarval, Voirie2018, ZonesBaties2018, ...
[ 6738, 1334, 62, 30604, 62, 70, 271, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 355, 264, 198, 198, 6738, 764, 27530, 1330, 357, 198, 220, 220, 220, 35941, 786, 68, 4626, 1462, 7908, 11, 198, 220, 220, 220, 3...
2.422535
142
from django.contrib import admin from .models import SearchResult # Register your models here. admin.site.register(SearchResult, SearchResultAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 11140, 23004, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 28482, 13, 15654, 13, 30238, 7, 18243, 23004, 11, 11140, 23004, 46787, 8 ]
3.921053
38
import asyncio import os import tempfile from contextlib import ExitStack from typing import Text, Optional, List, Union, Dict from rasa.importers.importer import TrainingDataImporter from rasa import model from rasa.model import FingerprintComparisonResult from rasa.core.domain import Domain from rasa.utils.common im...
[ 11748, 30351, 952, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 6738, 4732, 8019, 1330, 29739, 25896, 198, 6738, 19720, 1330, 8255, 11, 32233, 11, 7343, 11, 4479, 11, 360, 713, 198, 198, 6738, 374, 15462, 13, 320, 1819, 1010, 13, ...
2.385246
976
# ============================================================================ # FILE: default.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import re import typing from denite.util import echo, error, c...
[ 2, 38093, 2559, 18604, 198, 2, 45811, 25, 4277, 13, 9078, 198, 2, 44746, 25, 911, 280, 2188, 30107, 1530, 5350, 1279, 2484, 280, 2188, 13, 44, 19231, 379, 308, 4529, 13, 785, 29, 198, 2, 13789, 25, 17168, 5964, 198, 2, 38093, 2559...
4.460784
102
# -*- coding: utf-8 -*- """Context managers implemented for (mostly) internal use""" import contextlib import functools from io import UnsupportedOperation import os import sys __all__ = ["RedirectStdout", "RedirectStderr"] RedirectStdout = functools.partial(_stdchannel_redirected, sys.stdout) RedirectStderr = f...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 21947, 11663, 9177, 329, 357, 29471, 8, 5387, 779, 37811, 198, 198, 11748, 4732, 8019, 198, 11748, 1257, 310, 10141, 198, 6738, 33245, 1330, 791, 15999, 32180,...
3.013699
146
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "pos_kiosk" app_title = "Pos Kiosk" app_publisher = "9t9it" app_description = "Kiosk App" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "info@9t9it.com" app_license = "MIT" ...
[ 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, 6738, 764, 1330, 11593, 9641, 834, 355, 598, 62, 9641, 198, 198, 1324, 62, 3672, 796, 366, 1930, 62, 4...
2.319625
1,386
from keras import Model, Input from keras.layers import Dense, concatenate, LSTM, Reshape, Permute, Embedding, Dropout, Convolution1D, Flatten from keras.optimizers import Adam from pypagai.models.base import KerasModel
[ 6738, 41927, 292, 1330, 9104, 11, 23412, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 11, 1673, 36686, 378, 11, 406, 2257, 44, 11, 1874, 71, 1758, 11, 2448, 76, 1133, 11, 13302, 6048, 278, 11, 14258, 448, 11, 34872, 2122, ...
3.027027
74
from .fully_connected import FullyConnectedLatentVariable from .convolutional import ConvolutionalLatentVariable
[ 6738, 764, 2759, 62, 15236, 1330, 40234, 13313, 276, 24220, 298, 43015, 198, 6738, 764, 42946, 2122, 282, 1330, 34872, 2122, 282, 24220, 298, 43015, 198 ]
4.346154
26
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: ''' PNASNet in PyTorch. Paper: Progressive Neural Architecture Search ''' from easyai.base_name.block_name import NormalizationType, ActivationType from easyai.base_name.backbone_name import BackboneName from easyai.model.backbone.utility.base_backbone import * fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 198, 7061, 6, 350, 18293, 7934, 287, 9485, 15884, 354, 13, 198, 42950, 25, 25852, 47986, 29778, 11140, 198, ...
2.891429
175
# -*- coding: utf-8 -*- # coding=utf-8 import json import os import math import logging import requests import time from map_download.cmd.BaseDownloader import DownloadEngine, BaseDownloaderThread, latlng2tile_terrain, BoundBox if __name__ == '__main__': if 1: logger = logging.getLogger('down') ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 19617, 28, 40477, 12, 23, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 10688, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 640, 198, 198, 6738, 3975, 62...
2.001536
651
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import r...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 12554, 527, 3262, 274, 628, 220, 220, 220, 1400, 6764, 2810, 357, 27568, 416, 2451, 7928, 6127, 5235, 3740, 1378, 12567, 13, 785, 14, 2032, 7928, 12, 15042, 14, ...
2.84375
160
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 10 23:28:58 2017 @author: dhingratul """ import urllib.request import os from selenium import webdriver from selenium.webdriver.support.ui import Select from bs4 import BeautifulSoup import ssl import requests import wget from PyPDF2 import PdfFileR...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 5267, 838, 2242, 25, 2078, 25, 3365, 2177, 198, 198, 31, 9800, 25, 288, 722, 10366...
2.457627
236
""" Experiment summary ------------------ Treat each province/state in a country cases over time as a vector, do a simple K-Nearest Neighbor between countries. What country has the most similar trajectory to a given country? Plots similar countries """ import sys sys.path.insert(0, '..') from utils import data impor...
[ 37811, 198, 20468, 3681, 10638, 198, 1783, 438, 198, 51, 630, 1123, 8473, 14, 5219, 287, 257, 1499, 2663, 625, 640, 198, 292, 257, 15879, 11, 466, 257, 2829, 509, 12, 8199, 12423, 28708, 1022, 198, 9127, 1678, 13, 1867, 1499, 468, 2...
2.580475
758
""" Rational Activation Functions for MXNET ======================================= This module allows you to create Rational Neural Networks using Learnable Rational activation functions with MXNET networks. """ import mxnet as mx from mxnet import initializer from mxnet.gluon import HybridBlock from rational.utils....
[ 37811, 198, 49, 864, 13144, 341, 40480, 329, 26135, 12884, 198, 10052, 1421, 18604, 198, 198, 1212, 8265, 3578, 345, 284, 2251, 46863, 47986, 27862, 1262, 14365, 540, 198, 49, 864, 14916, 5499, 351, 26135, 12884, 7686, 13, 198, 37811, 1...
3.944
125
"""Utils for criterion.""" import torch import torch.nn.functional as F def normalize(x, axis=-1): """Performs L2-Norm.""" num = x denom = torch.norm(x, 2, axis, keepdim=True).expand_as(x) + 1e-12 return num / denom # Source : https://github.com/earhian/Humpback-Whale-Identification-1st-/blob/master...
[ 37811, 18274, 4487, 329, 34054, 526, 15931, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628, 198, 4299, 3487, 1096, 7, 87, 11, 16488, 10779, 16, 2599, 198, 220, 220, 220, 37227, 5990, 23914, 406, 17, 12, 3539...
2.197917
384
"""Tests for the sbahn_munich integration""" line_dict = { "name": "S3", "color": "#333333", "text_color": "#444444", }
[ 37811, 51, 3558, 329, 262, 264, 65, 15386, 62, 6199, 488, 11812, 37811, 628, 198, 1370, 62, 11600, 796, 1391, 198, 220, 220, 220, 366, 3672, 1298, 366, 50, 18, 1600, 198, 220, 220, 220, 366, 8043, 1298, 25113, 24840, 2091, 1600, 198...
2.271186
59
#! /usr/bin/env python2.7 # -*- coding: latin-1 -*- from flask import Blueprint from flask import current_app from flask import render_template from flask_login import login_required homestack = Blueprint("homestack", __name__, url_prefix="/homestack")
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 2, 532, 9, 12, 19617, 25, 3042, 259, 12, 16, 532, 9, 12, 198, 198, 6738, 42903, 1330, 39932, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 42903, 1330, 8543, 6...
3.17284
81
"""Forms for RTD donations""" import logging from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from readthedocs.payments.forms import StripeModelForm, StripeResourceMixin from readthedocs.payments.utils import stripe from .models import Supporter log ...
[ 37811, 8479, 82, 329, 11923, 35, 10976, 37811, 198, 198, 11748, 18931, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 7...
3.320755
106
#!/usr/bin/env python # -*- coding: utf-8 -*- from .base import DataReaderBase from ..tools import COL, _get_dates, to_float, to_int import pandas as pd #from pandas.tseries.frequencies import to_offset from six.moves import cStringIO as StringIO import logging import traceback import datetime import json import tok...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 8692, 1330, 6060, 33634, 14881, 198, 6738, 11485, 31391, 1330, 20444, 11, 4808, 1136, 62, 19581, 11, 28...
2.140267
1,048
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2019/11/2 21:08 # @author : Mo # @function: from keras_textclassification.data_preprocess.text_preprocess import load_json, save_json from keras_textclassification.conf.path_config import path_model_dir path_fast_text_model_vocab2index = path_model_dir + 'vocab...
[ 2, 5145, 14, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 2435, 220, 220, 220, 1058, 13130, 14, 1157, 14, 17, 2310, 25, 2919, 198, 2, 2488, 9800, 220, 1058, 4270, 198, ...
2.505814
172
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_tests.gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation.
[ 2, 15069, 1946, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 6738,...
3.628205
78
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-08 22:54 from __future__ import unicode_literals from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1485, 319, 2864, 12, 3312, 12, 2919, 2534, 25, 4051, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198,...
2.902174
92
import setuptools #enables develop setuptools.setup( name='pysvm', version='0.1', description='PySVM : A NumPy implementation of SVM based on SMO algorithm', author_email="191300064@smail.nju.edu.cn", packages=['pysvm'], license='MIT License', long_description=open('README.md', encoding='u...
[ 11748, 900, 37623, 10141, 220, 1303, 268, 2977, 1205, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, 220, 220, 220, 1438, 11639, 79, 893, 14761, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 6764, 11...
2.445055
182
######## Image Object Detection Using Tensorflow-trained Classifier ######### # # Author: Evan Juras # Date: 1/15/18 # Description: # This program uses a TensorFlow-trained classifier to perform object detection. # It loads the classifier uses it to perform object detection on an image. # It draws boxes and scores aro...
[ 7804, 7412, 9515, 46254, 8554, 309, 22854, 11125, 12, 35311, 5016, 7483, 1303, 7804, 198, 2, 198, 2, 6434, 25, 21523, 449, 17786, 198, 2, 7536, 25, 352, 14, 1314, 14, 1507, 198, 2, 12489, 25, 220, 198, 2, 770, 1430, 3544, 257, 309...
3.122769
1,401
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
[ 6738, 1366, 62, 43681, 13, 27604, 13, 9503, 1746, 1330, 7308, 55, 8439, 11522, 17818, 42350, 34, 21370, 3546, 26634, 198 ]
3.952381
21
from django.db.models import Q from django.shortcuts import render from django.http import Http404 # Create your views here. from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.decorators import api_view from .models import Product, Category from .serializers imp...
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 26429, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 1334, 62, ...
3.923913
92
from sys import maxsize
[ 6738, 25064, 1330, 3509, 7857, 628, 198 ]
3.714286
7
########################################################################## # # Copyright (c) 2010-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 3050, 12, 6999, 11, 7412, 7117, 8495, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, ...
3.498195
554
"""Pacman game domain.""" from rlpy.Tools import __rlpy_location__ from .Domain import Domain from .PacmanPackage import layout, pacman, game, ghostAgents from .PacmanPackage import graphicsDisplay import numpy as np from copy import deepcopy import os import time __copyright__ = "Copyright 2013, RLPy http://acl.mit.e...
[ 37811, 18844, 805, 983, 7386, 526, 15931, 198, 6738, 374, 75, 9078, 13, 33637, 1330, 11593, 45895, 9078, 62, 24886, 834, 198, 6738, 764, 43961, 1330, 20021, 198, 6738, 764, 18844, 805, 27813, 1330, 12461, 11, 23503, 805, 11, 983, 11, ...
2.942529
174
from zeit.cms.i18n import MessageFactory as _ import zope.interface import zope.schema
[ 6738, 41271, 270, 13, 46406, 13, 72, 1507, 77, 1330, 16000, 22810, 355, 4808, 198, 11748, 1976, 3008, 13, 39994, 198, 11748, 1976, 3008, 13, 15952, 2611, 628 ]
3.142857
28
N, M = map(int, input().split()) for i in range(1, M + 1): if i % 2 == 1: j = (i - 1) // 2 print(1 + j, M + 1 - j) else: j = (i - 2) // 2 print(M + 2 + j, 2 * M + 1 - j)
[ 45, 11, 337, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 198, 1640, 1312, 287, 2837, 7, 16, 11, 337, 1343, 352, 2599, 198, 220, 220, 220, 611, 1312, 4064, 362, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 47...
1.743802
121
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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 a...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, ...
2.744186
645
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 15069, 357, 66, 8, 12905, 2667, 32388, 3457, 13, 1074, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, ...
2.849831
2,657
from abc import ( ABC, abstractmethod, ) import logging from typing import ( TYPE_CHECKING, Tuple, Type, ) from eth._utils.datatypes import ( Configurable, ) from eth.db.backends.base import ( BaseAtomicDB, ) from eth.exceptions import ( BlockNotFound, ) from eth.validation import ( ...
[ 6738, 450, 66, 1330, 357, 198, 220, 220, 220, 9738, 11, 198, 220, 220, 220, 12531, 24396, 11, 198, 8, 198, 11748, 18931, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 41876, 62, 50084, 2751, 11, 198, 220, 220, 220, 309, 29291, ...
2.345961
2,587
#!/usr/local/bin/python3 import paramiko,time #using as SSH Client client = paramiko.SSHClient() # check dir(client) to find available options. # auto adjust host key verification with yes or no client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # time for connecting to remote Cisco IOS """ Manually taki...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 198, 11748, 5772, 12125, 11, 2435, 198, 198, 2, 3500, 355, 33825, 20985, 198, 198, 16366, 796, 5772, 12125, 13, 5432, 39, 11792, 3419, 198, 198, 2, 2198, 26672, 7, 16366, 8, ...
2.658744
589
# for n in range(400,500): # i = n // 100 # j = n // 10 % 10 # k = n % 10 # if n == i ** 3 + j ** 3 + k ** 3: # print(n) # (16) # input("():") # s1 = input("():") # l1 = s1.split(' ') # l2 = [] # for i in l1: # if i.isdigit(): # l2.append(int(i)) # for i in l2: # if not (i % ...
[ 2, 329, 299, 287, 2837, 7, 7029, 11, 4059, 2599, 198, 2, 220, 220, 220, 220, 1312, 796, 299, 3373, 1802, 198, 2, 220, 220, 220, 220, 474, 796, 299, 3373, 838, 4064, 838, 198, 2, 220, 220, 220, 220, 479, 796, 299, 4064, 838, 19...
1.74902
255
""" A query transformer is a function that accepts a program and returns a program, plus a priority level. Higher priority transformers are placed closer to the front of the list. Were ensuring is a function, because were going to evaluate it later 31 . Well assume there wont be an enormous number of transformer additi...
[ 37811, 198, 32, 12405, 47385, 318, 257, 2163, 326, 18178, 257, 1430, 290, 5860, 257, 1430, 11, 5556, 257, 8475, 1241, 13, 198, 48708, 8475, 6121, 364, 389, 4624, 5699, 284, 262, 2166, 286, 262, 1351, 13, 15176, 13359, 318, 257, 2163, ...
2.632979
752
#!/usr/bin/python3.6.8+ # -*- coding:utf-8 -*- """ @auth: cml @date: 2020-12-2 @desc: ... """
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 21, 13, 23, 10, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 18439, 25, 269, 4029, 198, 31, 4475, 25, 12131, 12, 1065, 12, 17, 198, 31, 20147, 2...
1.846154
52
# -*- coding: utf-8 -*- """ pyboleto.html ~~~~~~~~~~~~~ Classe Responsvel por fazer o output do boleto em html. :copyright: 2012 by Artur Felipe de Sousa :license: BSD, see LICENSE for more details. """ import os import string import sys import codecs import base64 from itertools import chain i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 12972, 45693, 1462, 13, 6494, 198, 220, 220, 220, 220, 15116, 8728, 93, 628, 220, 220, 220, 1012, 21612, 20549, 626, 16964, 277, 19178, 267, ...
2.09204
402
summary = 0 i = 0 while i < 5: summary = summary + i print(summary) i = i + 1
[ 49736, 796, 657, 198, 198, 72, 796, 657, 198, 4514, 1312, 1279, 642, 25, 198, 220, 220, 220, 10638, 796, 10638, 1343, 1312, 198, 220, 220, 220, 3601, 7, 49736, 8, 198, 220, 220, 220, 1312, 796, 1312, 1343, 352, 198 ]
2.219512
41
import imtreat img = imtreat.imageManagerClass.openImageFunction("../images/soleil.png", 0) img = imtreat.definedModesClass.detailEnhanceFunction(img) imtreat.imageManagerClass.saveImageFunction("/Tlchargements/", "image_1", ".png", img)
[ 11748, 545, 83, 630, 198, 198, 9600, 796, 545, 83, 630, 13, 9060, 13511, 9487, 13, 9654, 5159, 22203, 7203, 40720, 17566, 14, 6753, 346, 13, 11134, 1600, 657, 8, 198, 198, 9600, 796, 545, 83, 630, 13, 23211, 44, 4147, 9487, 13, 49...
2.939024
82
# Copyright (c) 2016 TUBITAK BILGEM # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ 2, 15069, 357, 66, 8, 1584, 309, 10526, 2043, 10206, 347, 4146, 38, 3620, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743,...
3.21266
3,207
import requests words_list = requests.get("https://raw.githubusercontent.com/atebits/Words/master/Words/fr.txt").text words_list = filter(lambda x: len(x) > 4, words_list.split('\n')) path = input("Chemin d'criture ? (words.txt) ") if path == "": path = "./words.txt" with open(path, "w", encoding="utf-8") as f...
[ 11748, 7007, 198, 198, 10879, 62, 4868, 796, 7007, 13, 1136, 7203, 5450, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 378, 9895, 14, 37117, 14, 9866, 14, 37117, 14, 8310, 13, 14116, 11074, 5239, 198, 198, 10879, 62, 4868, 796, 8106, 7...
2.623188
138
import unittest from unittest import mock import os import subprocess from testfixtures import TempDirectory from simplegallery.upload.uploader_factory import get_uploader if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 1330, 15290, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 6738, 1332, 69, 25506, 1330, 24189, 43055, 198, 6738, 2829, 24460, 13, 25850, 13, 25850, 263, 62, 69, 9548, 1330, 651, 62, 25...
3.313433
67
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'add_subject.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try:...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 2860, 62, 32796, 13, 9019, 6, 201, 198, 2, 201, 198, 2, 15622, 416, 25, 9485, 48, 83, 19, 12454,...
2.302817
284
from django.db.models import signals from django.test import TestCase from django.core import management from django.utils import six from shared_models import models PRE_SYNCDB_ARGS = ['app', 'create_models', 'verbosity', 'interactive', 'db'] SYNCDB_DATABASE = 'default' SYNCDB_VERBOSITY = 1 SYNCDB_INTERACTIVE = Fal...
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 10425, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 7295, 1330, 4542, 198, 6738, 42625, 14208, 13, 26791, 1330, 2237, 198, 198, 6738, 4888, 62, 27530, ...
3.273109
238
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ 2, 15069, 383, 9485, 15884, 354, 12469, 1074, 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, 262, 13789, 13, 1...
3.782828
198
#!/usr/bin/env python import time import os import math from trackball import TrackBall print("""Trackball: Mouse Use the trackball as a mouse in Raspbian, with right-click when the switch is pressed. Press Ctrl+C to exit! """) trackball = TrackBall(interrupt_pin=4) trackball.set_rgbw(0, 0, 0, 0) # Check for xte (...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 10688, 198, 6738, 2610, 1894, 1330, 17762, 23410, 198, 198, 4798, 7203, 15931, 24802, 1894, 25, 21839, 198, 198, 11041, 262, 2610, 1894, 355, 2...
2.404145
386
"""GaussianMLPRegressorModel.""" import numpy as np import tensorflow as tf import tensorflow_probability as tfp from garage.experiment import deterministic from garage.tf.models import GaussianMLPModel
[ 37811, 35389, 31562, 5805, 4805, 1533, 44292, 17633, 526, 15931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 62, 1676, 65, 1799, 355, 256, 46428, 198, 198, 6738, 15591, 13,...
3.474576
59
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import torchvision.datasets as datasets import os import argparse from torch.autograd import Variable from e...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 11748, 28034, 13, 40085, 355, 6436, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 11748, 28034, 13, 1891, 2412, 13, 66, 463, 20471, 355, 269,...
2.402585
1,083
"""Model Parameters Module.""" import torch.optim as optim from .search import SamplingSearch, GreedySearch, BeamSearch SEARCH_FACTORY = { 'sampling': SamplingSearch, 'greedy': GreedySearch, 'beam': BeamSearch, } OPTIMIZER_FACTORY = { 'adadelta': optim.Adadelta, 'adagrad': optim.Adagrad, 'adam...
[ 37811, 17633, 40117, 19937, 526, 15931, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 764, 12947, 1330, 3409, 11347, 18243, 11, 11955, 4716, 18243, 11, 25855, 18243, 198, 198, 5188, 31315, 62, 37, 10659, 15513, 796, 1391, 198, 220, ...
2.404624
173
# # Copyright (c) 2021 The GPflux Contributors. # # 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 agr...
[ 2, 198, 2, 15069, 357, 66, 8, 33448, 383, 14714, 69, 22564, 25767, 669, 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, 1...
3.170213
564
#!/usr/bin/env python # from actingweb import actor from actingweb import config from actingweb import trust from actingweb import auth import webapp2 import os from google.appengine.ext.webapp import template import json import logging import datetime import time # /trust handlers # # GET /trust with query paramet...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 6738, 7205, 12384, 1330, 8674, 198, 6738, 7205, 12384, 1330, 4566, 198, 6738, 7205, 12384, 1330, 3774, 198, 6738, 7205, 12384, 1330, 6284, 198, 198, 11748, 3992, 1324, 17, 198, ...
3.332721
544
# Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module module # https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package __version__ = '1.6.1' release_note...
[ 2, 9363, 262, 2196, 994, 523, 25, 198, 2, 352, 8, 356, 836, 470, 3440, 20086, 416, 23069, 340, 287, 11593, 15003, 834, 13, 9078, 198, 2, 362, 8, 356, 460, 1330, 340, 287, 9058, 13, 9078, 329, 262, 976, 1738, 198, 2, 513, 8, 35...
3.128894
2,568
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: enemy_skills.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 4472, 62, 8135, 2171, 13, 1676, 1462, 198, 37811, 8645, 515, 8435, 11876, ...
2.149254
15,142
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict import torch.nn as nn from classy_vision.generic.util import is_pos_int from classy_visio...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, ...
3.54902
102
from floodsystem.stationdata import build_station_list from floodsystem.flood import stations_highest_rel_level if __name__ == "__main__": print("*** Task 2C: CUED Part IA Flood Warning System ***") run()
[ 6738, 6947, 10057, 13, 17529, 7890, 1330, 1382, 62, 17529, 62, 4868, 198, 6738, 6947, 10057, 13, 2704, 702, 1330, 8985, 62, 35323, 62, 2411, 62, 5715, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, ...
3.257576
66
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite" __author__ = "Patrick Kunzmann" __all__ = ["Copyable"] import abc
[ 2, 770, 2723, 2438, 318, 636, 286, 262, 347, 5151, 578, 5301, 290, 318, 9387, 198, 2, 739, 262, 513, 12, 2601, 682, 347, 10305, 13789, 13, 4222, 766, 705, 43, 2149, 24290, 13, 81, 301, 6, 329, 2252, 198, 2, 1321, 13, 198, 198, ...
3.05
80
import logging import time from datetime import timedelta from typing import List from homeassistant.components.binary_sensor import ( BinarySensorEntity, DEVICE_CLASS_MOTION ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.core import H...
[ 11748, 18931, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 39491, 62, 82, 22854, 1330, 357, 198, 220, 220, 220, 45755, 47864, 32398, 11, ...
3.304348
184
""" Reads climate modeling grid 0.05 degree MCD43 BRDF files. """ import os import sys from numpy import loadtxt, array, tile, where, concatenate, flipud from numpy import ones from datetime import date, datetime, timedelta from glob import glob from pyhdf.SD import SD, HDF4Error MISSING = 32.767 SDS = dict...
[ 37811, 198, 5569, 82, 4258, 21128, 10706, 657, 13, 2713, 4922, 337, 8610, 3559, 11177, 8068, 3696, 13, 198, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 299, 32152, 220, 220, 220, 1330, 3440, 14116, 11, 7177, 11, ...
1.8625
1,680
import pytest import numpy as np import copy from numpy.testing import assert_allclose from keras.utils import CustomObjectScope from keras.layers import wrappers, Input, Layer from keras.layers import RNN from keras import layers from keras.models import Sequential, Model, model_from_json from keras import backend as ...
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4866, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 439, 19836, 198, 6738, 41927, 292, 13, 26791, 1330, 8562, 10267, 43642, 198, 6738, 41927, 292, 13, 75, 6962, 133...
2.220352
2,673
"""Lowest-common-denominator implementations of platform functionality.""" from __future__ import absolute_import, division, print_function, with_statement import errno import socket from tornado.platform import interface
[ 37811, 20535, 395, 12, 11321, 12, 6559, 6351, 1352, 25504, 286, 3859, 11244, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 351, 62, 26090, 198, 198, 11748, 11454, 3919, 198, 11748, ...
4.411765
51
""" This script will modulate the blinky lights using the following algorithm: 1) uses user-provided location to obtain row of pixel data from bathy image 2) samples a 'number of LEDs' number of pixels from that row 3) shifts the sampled row data to center it at the location specified by user 4) displays resulting pix...
[ 37811, 198, 1212, 4226, 481, 953, 5039, 262, 21019, 88, 7588, 1262, 262, 1708, 11862, 25, 198, 198, 16, 8, 3544, 2836, 12, 41279, 4067, 284, 7330, 5752, 286, 17465, 1366, 422, 7837, 88, 2939, 198, 17, 8, 8405, 257, 705, 17618, 286, ...
2.548747
2,154
""" Export Submissions Transform module """ #pylint: disable=too-few-public-methods import pandas as pd from .transform import TransformBase from ..resources.field_configs import FieldConfigs from ..resources.field_maps import FieldMaps
[ 37811, 36472, 3834, 8481, 26981, 8265, 37227, 198, 2, 79, 2645, 600, 25, 15560, 28, 18820, 12, 32146, 12, 11377, 12, 24396, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 764, 35636, 1330, 26981, 14881, 198, 6738, 11485, 37540, ...
3.822581
62
import pytest import torch import ray from ray.ml.predictors.integrations.torch import TorchPredictor from ray.ml.train.integrations.torch import TorchTrainer from ray import train from ray.ml.examples.pytorch.torch_linear_example import train_func as linear_train_func def test_torch_e2e(ray_start_4_cpus): sc...
[ 11748, 12972, 9288, 198, 11748, 28034, 198, 198, 11748, 26842, 198, 6738, 26842, 13, 4029, 13, 79, 17407, 669, 13, 18908, 9143, 13, 13165, 354, 1330, 34868, 47, 17407, 273, 198, 6738, 26842, 13, 4029, 13, 27432, 13, 18908, 9143, 13, 1...
2.627863
524
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
[ 2, 17168, 38559, 24290, 198, 2, 198, 2, 15069, 8309, 532, 12131, 416, 22631, 3539, 26363, 432, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3...
3.038642
3,623
from rest_framework import serializers from core import models
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 4755, 1330, 4981, 628 ]
4.642857
14
input = """ c(2). p(1). a(2). d(2,2,1). okay(X):- c(X), #count{V:a(V),d(V,X,1)} = 1. ouch(X):- p(X), #count{V:a(V),d(V,X,1)} = 1. """ output = """ {a(2), c(2), d(2,2,1), okay(2), p(1)} """
[ 15414, 796, 37227, 198, 66, 7, 17, 737, 198, 79, 7, 16, 737, 198, 64, 7, 17, 737, 198, 67, 7, 17, 11, 17, 11, 16, 737, 198, 482, 323, 7, 55, 2599, 12, 269, 7, 55, 828, 1303, 9127, 90, 53, 25, 64, 7, 53, 828, 67, 7, 53,...
1.532258
124
from nonebot import CommandSession, on_command from langdetect import detect, detect_langs from aiohttp import ClientSession from nonebot import get_bot from nonebot.argparse import ArgumentParser import time import hmac import random, sys import hashlib import binascii import urllib bot = get_bot() # API,ttstranslate...
[ 6738, 4844, 13645, 1330, 9455, 36044, 11, 319, 62, 21812, 198, 6738, 42392, 15255, 478, 1330, 4886, 11, 4886, 62, 17204, 82, 198, 6738, 257, 952, 4023, 1330, 20985, 36044, 198, 6738, 4844, 13645, 1330, 651, 62, 13645, 198, 6738, 4844, ...
3.272727
121
""" LpSolve wrapper. Copyright (C) 2018, Guillaume Gonnet License MIT """ from ctypes import * import sys import os.path as path import platform # Import the DLL ver = ("x86", "x64")[sys.maxsize > 2**32] here = path.dirname(__file__) if sys.platform == "win32": lib = windll.LoadLibrary(path.abspath(path.join...
[ 37811, 198, 198, 43, 79, 50, 6442, 29908, 13, 198, 198, 15269, 357, 34, 8, 2864, 11, 1962, 5049, 2454, 35371, 3262, 198, 34156, 17168, 198, 198, 37811, 198, 198, 6738, 269, 19199, 1330, 1635, 198, 11748, 25064, 198, 11748, 28686, 13, ...
2.18892
704
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # 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...
[ 2, 15069, 1853, 30446, 15503, 12, 11869, 446, 7712, 5834, 11, 406, 13, 47, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, ...
2.481132
1,272
import time from bs4 import BeautifulSoup import requests import pymysql.cursors import unittest if __name__ == '__main__': unittest.main()
[ 11748, 640, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 11748, 279, 4948, 893, 13976, 13, 66, 1834, 669, 198, 11748, 555, 715, 395, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, ...
2.773585
53
# pylint: disable=protected-access import os import re import pytest from dagster import file_relative_path from dagster.core.errors import DagsterInstanceMigrationRequired from dagster.core.instance import DagsterInstance, InstanceRef from dagster.utils.test import restore_directory # test that we can load runs an...
[ 2, 279, 2645, 600, 25, 15560, 28, 24326, 12, 15526, 198, 11748, 28686, 198, 11748, 302, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 48924, 1706, 1330, 2393, 62, 43762, 62, 6978, 198, 6738, 48924, 1706, 13, 7295, 13, 48277, 1330, 321...
3.826087
92
import matplotlib.pyplot as plt import pandas as pd if __name__ == '__main__': df = pd.read_csv('../data/crimes_dataset_processed_incomplete.csv') group_by_territory(df) group_by_year(df) group_by_month(df) group_by_time_of_day(df) group_by_day_of_the_week(df) group_by_category(df)
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 47764, 796, 279, 67, 13, 961, 62, 40664, 107...
2.150685
146
# Unit tests import unittest if __name__ == '__main__': unittest.main()
[ 2, 11801, 5254, 628, 198, 11748, 555, 715, 395, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.484848
33
import pandas as pd import numpy as np import jdatetime pd.options.mode.chained_assignment = None # Read Bourseview data for market cap # Concat all 75 tickers' data me_list = [] for file_number in range(1, 76): print(file_number) me_path = f'E:/Thesis/New Sampling/Daily Data - Bourseview/'\ ...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 474, 19608, 8079, 201, 198, 201, 198, 30094, 13, 25811, 13, 14171, 13, 354, 1328, 62, 562, 16747, 796, 6045, 201, 198, 201, 198, 2, 4149, 347...
2.119411
3,601
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 __copyright__ = ('Copyright Amazon.com, Inc. or its affiliates. ' 'All Rights Reserved.') __version__ = '2.7.1' __license__ = 'MIT-0' __author__ = 'Akihiro Nakajima' __url__ = 'https://github.com/aws-s...
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 198, 834, 22163, 4766, 834, 796, 19203, 15269, 6186, 13, 785, 11, 3457, 13, 393, ...
2.613699
365
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2010 California Institute of Technology. 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 th...
[ 2, 27156, 27156, 27156, 27156, 15116, 8728, 4907, 93, 198, 2, 15069, 3050, 3442, 5136, 286, 8987, 13, 11096, 371, 34874, 15731, 1137, 53, 1961, 13, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 116...
3.711039
616
from random import shuffle as rshuffle from .card import Card
[ 6738, 4738, 1330, 36273, 355, 374, 1477, 18137, 198, 6738, 764, 9517, 1330, 5172, 628 ]
4.2
15
# -*- coding: utf-8 -*- # # Copyright (C) 2016, 2017 Red Hat, Inc. # Red Hat Author: Patrick Uiterwijk <puiterwijk@redhat.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restri...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 1584, 11, 2177, 2297, 10983, 11, 3457, 13, 198, 2, 2297, 10983, 6434, 25, 9925, 471, 2676, 86, 45961, 1279, 19944, 2676, 86, 45961, 31,...
3.595285
509
#------------------------------------------------------------------------------- # # WPS 1.0 parameters' XML encoders # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # Martin Paces <martin.paces@eox.at> # #-----------------------------------------------------...
[ 2, 10097, 24305, 198, 2, 198, 2, 370, 3705, 352, 13, 15, 10007, 6, 23735, 2207, 375, 364, 198, 2, 198, 2, 4935, 25, 412, 38208, 10697, 1279, 4023, 1378, 68, 1140, 15388, 13, 2398, 29, 198, 2, 46665, 25, 14236, 666, 3059, 521, 17...
3.050907
1,434
import datetime import uuid import simplejson as json from src.db.s3_client import Client as S3Client from decimal import Decimal def get_from_archive(archive_key): ''' Download a VP Save from S3. :param str archive_key: The vp_save data's location (S3 bucket and file path). This value is required. ''' if ...
[ 11748, 4818, 8079, 198, 11748, 334, 27112, 198, 198, 11748, 2829, 17752, 355, 33918, 198, 198, 6738, 12351, 13, 9945, 13, 82, 18, 62, 16366, 1330, 20985, 355, 311, 18, 11792, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 4299, 651, 62...
2.86643
846
""" Basic usage =========== This example presents the basic usage of brokenaxes """ import matplotlib.pyplot as plt from brokenaxes import brokenaxes import numpy as np fig = plt.figure(figsize=(5,2)) bax = brokenaxes(xlims=((0, .1), (.4, .7)), ylims=((-1, .7), (.79, 1)), hspace=.05) x = np.linspace(0, 1, 100) bax...
[ 37811, 198, 26416, 8748, 198, 2559, 18604, 198, 198, 1212, 1672, 10969, 262, 4096, 8748, 286, 5445, 897, 274, 198, 198, 37811, 628, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 5445, 897, 274, 1330, 5445, 8...
2.343434
198
import shutil import os import json import glob import yaml import sys import urllib import ssl import csv import time import requests import json import csv from rdflib import URIRef, BNode, Literal, Graph from rdflib.namespace import RDF, RDFS, FOAF, XSD from rdflib import Namespace all = Graph() with open("data/...
[ 11748, 4423, 346, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 15095, 198, 11748, 331, 43695, 198, 11748, 25064, 198, 11748, 2956, 297, 571, 198, 11748, 264, 6649, 198, 11748, 269, 21370, 198, 11748, 640, 198, 11748, 7007, 198, 11748...
1.87775
3,182
import unittest try: from unittest.mock import * except ImportError: from mock import * from msgpack import * import bootloader_read_config from commands import * import sys import json
[ 11748, 555, 715, 395, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 555, 715, 395, 13, 76, 735, 1330, 1635, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 15290, 1330, 1635, 198, 198, 6738, 31456, 8002, 1330, 1635, 198, 198,...
3.15873
63
import logging from asyncio import sleep import discord from discord.ext import commands from config import SETTINGS from crew import crew_embed from diary import diary_embed from film import film_embed from helpers import LetterboxdError from list_ import list_embed from review import review_embed from user import us...
[ 11748, 18931, 198, 6738, 30351, 952, 1330, 3993, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 4566, 1330, 25823, 51, 20754, 198, 6738, 5462, 1330, 5462, 62, 20521, 198, 6738, 26339, 1330, 26339, 62, 20521, ...
3.041026
195
import asyncio import logging import time from typing import Set, List, Tuple, Optional, TYPE_CHECKING import uuid import ray from ray.experimental.workflow import workflow_context from ray.experimental.workflow import workflow_storage from ray.experimental.workflow.common import (Workflow, WorkflowStatus, ...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 19720, 1330, 5345, 11, 7343, 11, 309, 29291, 11, 32233, 11, 41876, 62, 50084, 2751, 198, 11748, 334, 27112, 198, 198, 11748, 26842, 198, 198, 6738, 26842, 13, 23100, 9134...
2.580247
1,620
from .compose import Compose # noqa from .signature import BinarySignature, Signature, MemorySignature # noqa from .username import UsernameToken # noqa
[ 6738, 764, 785, 3455, 1330, 3082, 577, 220, 1303, 645, 20402, 198, 6738, 764, 12683, 1300, 1330, 45755, 11712, 1300, 11, 34894, 11, 14059, 11712, 1300, 220, 1303, 645, 20402, 198, 6738, 764, 29460, 1330, 50069, 30642, 220, 1303, 645, 20...
3.714286
42
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt dt=0.1 t = np.arange(0,10,dt) y0=np.array([10, 0.0, 10, 10]) sol_rk4=RK4_int(orbit,y0,t) x,y,v_x,v_y = sol_rk4.T plt.grid() plt.plot(x,y) plt.show()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 201, 198, 201, 198, 28664, 28, 15, 13, 16, ...
1.62
150
import os from django.apps import apps from django.core.management.base import BaseCommand from factory_generator.generator import FactoryAppGenerator
[ 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 198, 6738, 8860, 62, 8612, 1352, 13, 8612, 1352, 1330, 19239, 4677, 8645, 1352, 628 ]
3.85
40
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import cellranger.analysis.diffexp as cr_diffexp import cellranger.analysis.io as analysis_io from cellranger.analysis.singlegenome import SingleGenomeAnalysis import cellranger.h5_constants as h5_constants import cellranger.analysi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 838, 55, 5215, 31994, 11, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 198, 11748, 2685, 81, 2564, 13, 20930, 13, 26069, 11201, 355, 1067, 62, ...
2.662921
356
from sympy.combinatorics import Permutation from sympy.combinatorics.util import _distribute_gens_by_base rmul = Permutation.rmul def _cmp_perm_lists(first, second): """ Compare two lists of permutations as sets. This is used for testing purposes. Since the array form of a permutation is currently a...
[ 6738, 10558, 88, 13, 785, 8800, 1352, 873, 1330, 2448, 76, 7094, 198, 6738, 10558, 88, 13, 785, 8800, 1352, 873, 13, 22602, 1330, 4808, 17080, 4163, 62, 70, 641, 62, 1525, 62, 8692, 198, 198, 26224, 377, 796, 2448, 76, 7094, 13, 2...
2.371955
3,366
localhost = "http://localhost/" # your local host database = "mysql://root@localhost/vaticChecker" # server://user:pass@localhost/dbname min_training = 2 # the minimum number of training videos to be considered recaptcha_secret = "" # recaptcha secret for verification duplicate_annotations = False #...
[ 36750, 220, 220, 220, 220, 220, 220, 220, 796, 366, 4023, 1378, 36750, 30487, 1303, 534, 1957, 2583, 198, 48806, 220, 220, 220, 220, 220, 220, 220, 220, 796, 366, 28744, 13976, 1378, 15763, 31, 36750, 14, 85, 1512, 9787, 263, 1, 130...
3.044944
178
"""Timezone helper functions. This module uses pytz when it's available and fallbacks when it isn't. """ from datetime import datetime, timedelta, tzinfo from threading import local import time as _time try: import pytz except ImportError: pytz = None from django.conf import settings __all__ = [ 'utc',...
[ 37811, 7575, 11340, 31904, 5499, 13, 198, 198, 1212, 8265, 3544, 12972, 22877, 618, 340, 338, 1695, 290, 2121, 10146, 618, 340, 2125, 470, 13, 198, 37811, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 11, 256, 89, 10...
2.760508
2,046
import pytest from pywps import Service from pywps.tests import assert_response_success from .common import client_for from malleefowl.processes import processes
[ 11748, 12972, 9288, 198, 198, 6738, 12972, 86, 862, 1330, 4809, 198, 6738, 12972, 86, 862, 13, 41989, 1330, 6818, 62, 26209, 62, 13138, 198, 198, 6738, 764, 11321, 1330, 5456, 62, 1640, 198, 6738, 6428, 293, 891, 4883, 13, 14681, 274,...
3.666667
45
from setuptools import setup __author__ = "Alex Laird" __copyright__ = "Copyright 2019, Alex Laird" __version__ = "1.4.0" with open("README.md", "r") as f: long_description = f.read() setup( name="pyngrok", version=__version__, packages=["pyngrok"], python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 834, 9800, 834, 796, 366, 15309, 15067, 67, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 13130, 11, 4422, 15067, 67, 1, 198, 834, 9641, 834, 796, 366, 16, 13, 19, 13, 15, 1, 198, ...
2.517147
729
#!/usr/bin/env python3 import kfp.dsl as dsl import kfp.gcp as gcp # Pipeline input variables. KUBECTL_IMAGE = "gcr.io/mcas-195423/trackml_master_kfp_kubectl" KUBECTL_IMAGE_VERSION = "1" TRACKML_IMAGE = "gcr.io/mcas-195423/trackml_master_trackml" TRACKML_IMAGE_VERSION = "1" if __name__ == '__main__': import kfp.co...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 479, 46428, 13, 67, 6649, 355, 288, 6649, 198, 11748, 479, 46428, 13, 70, 13155, 355, 308, 13155, 198, 198, 2, 37709, 5128, 9633, 13, 198, 42, 10526, 9782, 43, 62, ...
2.317919
173
# -*- coding: utf-8 -*- import time import puka import argparse import logging from infcommon import utils from infrabbitmq import factory as infrabbitmq_factory from infrabbitmq.rabbitmq import RabbitMQError from infrabbitmq.events_names import ( TICK_1_SECOND, TICK_1_MINUTE, TICK_2_MINUTES, TICK_5_...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 640, 198, 11748, 279, 14852, 198, 11748, 1822, 29572, 628, 198, 11748, 18931, 198, 6738, 1167, 11321, 1330, 3384, 4487, 198, 6738, 1167, 81, 14229, 76, 80, 1...
2.391586
309
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
[ 2, 19617, 28, 40477, 12, 23, 201, 198, 2, 15069, 2864, 383, 12905, 2667, 32388, 3457, 13, 1074, 13, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, ...
3.382671
277
from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import datetime, timedelta import pandas as pd import random # Default args definition default_args = { 'owner': 'Rafael', 'depends_o...
[ 6738, 45771, 1330, 360, 4760, 198, 6738, 45771, 13, 3575, 2024, 13, 41757, 62, 46616, 1330, 15743, 18843, 1352, 198, 6738, 45771, 13, 3575, 2024, 13, 29412, 62, 46616, 1330, 11361, 18843, 1352, 11, 20551, 37906, 18843, 1352, 198, 6738, ...
2.460163
615