content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import torch import numpy as np
[ 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.666667
9
import jwt from django.conf import settings from rest_framework import authentication, exceptions from .models import User
[ 11748, 474, 46569, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 1334, 62, 30604, 1330, 18239, 11, 13269, 198, 198, 6738, 764, 27530, 1330, 11787, 628 ]
4.344828
29
#!/usr/bin/env python import csv import sys from pymongo import Connection, objectid import config import utils connection = Connection() db = connection[config.CENSUS_DB] collection = db[config.GEOGRAPHIES_COLLECTION] collection_2000 = db[config.GEOGRAPHIES_2000_COLLECTION] row_count = 0 inserts = 0 KEY_MAPPINGS...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 198, 6738, 279, 4948, 25162, 1330, 26923, 11, 2134, 312, 198, 198, 11748, 4566, 198, 11748, 3384, 4487, 198, 198, 38659, 796, 26923, 3419,...
2.127869
2,135
# -*- coding: utf-8 -*- """ ontraportlib.models.charge_now_25_enum This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ) on 11/14/2017 """ class ChargeNow25Enum(object): """Implementation of the 'ChargeNow25' enum. TODO: type enum description here. Attrib...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 37811, 201, 198, 220, 220, 220, 319, 9535, 634, 8019, 13, 27530, 13, 10136, 62, 2197, 62, 1495, 62, 44709, 201, 198, 201, 198, 220, 220, 220, 770, 239...
2.314815
216
import datetime import logging from eventstudy.eventstudy import * from eventstudy.ibdatareader import IBDataReader from examples.airline_crashes.ac_event_matrix import AirlineCrashEventMatrix if __name__ == "__main__": main()
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 6738, 1785, 44517, 13, 15596, 44517, 1330, 1635, 198, 6738, 1785, 44517, 13, 571, 19608, 533, 5067, 1330, 34782, 6601, 33634, 198, 6738, 6096, 13, 958, 1370, 62, 6098, 7465, 13, 330, 62, 15596,...
3.342857
70
import functools from collections import defaultdict from river import utils class ConfusionMatrix: """Confusion Matrix for binary and multi-class classification. Parameters ---------- classes The initial set of classes. This is optional and serves only for displaying purposes. Examples...
[ 11748, 1257, 310, 10141, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 7850, 1330, 3384, 4487, 628, 198, 4871, 7326, 4241, 46912, 25, 198, 220, 220, 220, 37227, 18546, 4241, 24936, 329, 13934, 290, 5021, 12, 4871, 17923, 13, 628,...
2.793961
563
# Copyright 2022 AI Singapore # # 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...
[ 2, 15069, 33160, 9552, 12551, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.496682
1,055
import subprocess import os import platform def open_via_helper(filepath): """Open a file via the system viewer for the specified file. Returns a handle to a cleanup function. You should call handle() before exiting.""" if hasattr(os,"startfile"): # On Windows the os module has a "startfile" ...
[ 11748, 850, 14681, 198, 11748, 28686, 198, 11748, 3859, 198, 198, 4299, 1280, 62, 8869, 62, 2978, 525, 7, 7753, 6978, 2599, 198, 220, 220, 220, 37227, 11505, 257, 2393, 2884, 262, 1080, 19091, 329, 262, 7368, 2393, 13, 220, 198, 220, ...
2.878289
304
from graphviz import Digraph def draw(codes): ''' :param codes: :return: ''' dot = Digraph(comment='The Round Table', filename='visible', format='png', strict=False) idx = 1 for code in codes: s = code['sign'] + '|' + ''.join(code['affi_sign']) dot.node(str(idx)...
[ 6738, 4823, 85, 528, 1330, 7367, 1470, 201, 198, 201, 198, 4299, 3197, 7, 40148, 2599, 201, 198, 220, 220, 220, 705, 7061, 201, 198, 201, 198, 220, 220, 220, 1058, 17143, 12416, 25, 201, 198, 220, 220, 220, 1058, 7783, 25, 201, 19...
1.947977
346
from .encodings import single, repeat, bernoulli, poisson, rank_order from .loaders import bernoulli_loader, poisson_loader, rank_order_loader from .encoders import ( Encoder, NullEncoder, SingleEncoder, RepeatEncoder, BernoulliEncoder, PoissonEncoder, RankOrderEncoder, )
[ 6738, 764, 12685, 375, 654, 1330, 2060, 11, 9585, 11, 275, 1142, 280, 15516, 11, 745, 30927, 11, 4279, 62, 2875, 198, 6738, 764, 2220, 364, 1330, 275, 1142, 280, 15516, 62, 29356, 11, 745, 30927, 62, 29356, 11, 4279, 62, 2875, 62, ...
2.640351
114
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import WebDriverException import os import sys import argparse # adding optional args, url of wog's score and driver of selenium-chrome parser = argparse.ArgumentParser() parser.add_argument('--url', action='...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 6738, 384, 11925, 1505, 13, 11321, 13, 1069, 11755, 1330, 5313, 32103, 16922, 198, 11748, 28686, 198, 11748,...
2.608392
1,001
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-plot/ampel-plot-browse/ampel/plot/util/clipboard.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 16.11.2021 # Last Modified Date: 22.11.2021 # Last Modified By : vb <vbrinnel@ph...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 9220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 1703, 30242, 12, 29487, 14, 696, 41...
2.309685
1,776
# # ElGamal.py : ElGamal encryption/decryption and signatures # # Part of the Python Cryptography Toolkit # # Originally written by: A.M. Kuchling # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication ...
[ 2, 198, 2, 220, 220, 2574, 34777, 282, 13, 9078, 1058, 2574, 34777, 282, 15835, 14, 12501, 13168, 290, 17239, 198, 2, 198, 2, 220, 2142, 286, 262, 11361, 15126, 4867, 16984, 15813, 198, 2, 198, 2, 220, 19486, 3194, 416, 25, 317, 1...
2.751793
4,323
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 2177, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, ...
3.607287
247
from classes import Player abilities = { 'strength': 16, 'dexterity': 14, 'constitution': 14, 'intelligence': 10, 'wisdom': 12, 'charisma': 10, 'armorclass': 16, 'hitpoints':28, 'maxhitpoints': 28, 'hitdice': '3d10', 'speed': 30, 'language': ['Common','Orc','Deep Speech'...
[ 6738, 6097, 1330, 7853, 198, 198, 5738, 796, 1391, 198, 220, 220, 220, 705, 41402, 10354, 1467, 11, 198, 220, 220, 220, 705, 67, 1069, 353, 414, 10354, 1478, 11, 198, 220, 220, 220, 705, 9979, 2738, 10354, 1478, 11, 198, 220, 220, ...
2.405272
607
from mongoengine import signals from flask import url_for import os from application import db
[ 6738, 285, 25162, 18392, 1330, 10425, 198, 6738, 42903, 1330, 19016, 62, 1640, 198, 11748, 28686, 198, 198, 6738, 3586, 1330, 20613, 198 ]
4.173913
23
# Exercise 2.6 # Author: Noah Waterfield Price v0 = 1 g = 9.81 n = 11 dt = 2 * v0 / g / (n - 1) print '%6s %6s' % ('t', 'y') for i in range(0, n): t = i * dt y = v0 * t - 0.5 * g * t ** 2 print '%6.3f %6.3f' % (t, y) """ Sample run: python ball_table1.py t y 0.000 0.000 0.020 0.018 0.041 ...
[ 2, 32900, 362, 13, 21, 198, 2, 6434, 25, 18394, 5638, 3245, 7886, 198, 198, 85, 15, 796, 352, 198, 70, 796, 860, 13, 6659, 198, 77, 796, 1367, 198, 28664, 796, 362, 1635, 410, 15, 1220, 308, 1220, 357, 77, 532, 352, 8, 198, 19...
1.782258
248
import os import re import random import readJSON from docx import Document data = readJSON.read_json("data.json") idiom = data["famous"] # a 代表前面垫话,b代表后面垫话 before = data["before"] # 在名人名言前面弄点废话 after = data['after'] # 在名人名言后面弄点废话 shit_start = data['bosh_start'] shit = data['bosh'] # 代表文章主要废话来源 title = "废话" rep...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 4738, 198, 11748, 1100, 40386, 198, 6738, 2205, 87, 1330, 16854, 628, 198, 7890, 796, 1100, 40386, 13, 961, 62, 17752, 7203, 7890, 13, 17752, 4943, 198, 19830, 296, 796, 1366, 14692, 45143, 897...
1.638104
1,097
import matplotlib.ticker as ticker from matplotlib import pyplot as plt import seaborn as sns import json import argparse import itertools import pandas as pd from ab_utils import load_ab_data from utils import VALUES, is_successful_swap, get_max_value, format_value sns.set(color_codes=True) sns.set_palette('muted') ...
[ 11748, 2603, 29487, 8019, 13, 83, 15799, 355, 4378, 263, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 340, 861, 10141,...
2.223127
614
__author__ = 'avraham' from xmlrpclib import ServerProxy port = 9876
[ 834, 9800, 834, 796, 705, 615, 13220, 6, 198, 198, 6738, 35555, 81, 79, 565, 571, 1330, 9652, 44148, 198, 634, 796, 9661, 4304, 628 ]
2.84
25
import detectron2 from detectron2.data import transforms as T from detectron2.data import detection_utils as utils import torch import numpy as np import cv2 import copy from .augment import get_transforms class PersonalMapper (detectron2.data.DatasetMapper): """ Define a detectron2 personal mapper in orde...
[ 11748, 4886, 1313, 17, 198, 6738, 4886, 1313, 17, 13, 7890, 1330, 31408, 355, 309, 198, 6738, 4886, 1313, 17, 13, 7890, 1330, 13326, 62, 26791, 355, 3384, 4487, 198, 198, 11748, 28034, 198, 198, 11748, 299, 32152, 355, 45941, 198, 117...
2.202476
2,262
"""The GraphUpdate layer and its pieces.""" import sys from typing import Any, Callable, Mapping, Optional, Sequence import tensorflow as tf from tensorflow_gnn.graph import graph_constants as const from tensorflow_gnn.graph import graph_tensor as gt from tensorflow_gnn.graph import graph_tensor_ops as ops from tens...
[ 37811, 464, 29681, 10260, 7679, 290, 663, 5207, 526, 15931, 198, 198, 11748, 25064, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 337, 5912, 11, 32233, 11, 45835, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 11192,...
3.181794
3,735
from PositionIndex import PositionIndex from GDL import * import pdb # def unary_constrain(self, vp): # # remove all models that have different values for all the positions one variable appears in # for g in self.__grounds[:]: # values = vp.get_values(g) # if not values.uniform(): # self.__grounds.remove(g) ...
[ 6738, 23158, 15732, 1330, 23158, 15732, 198, 6738, 402, 19260, 1330, 1635, 198, 11748, 279, 9945, 198, 198, 2, 197, 4299, 555, 560, 62, 1102, 2536, 391, 7, 944, 11, 410, 79, 2599, 198, 2, 197, 197, 2, 4781, 477, 4981, 326, 423, 11...
2.405204
538
/home/runner/.cache/pip/pool/6d/36/f7/4340a87af18a62fe5d5f596cfbe2e7f2d941d3e5043ac8bd070ce567eb
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 21, 67, 14, 2623, 14, 69, 22, 14, 3559, 1821, 64, 5774, 1878, 1507, 64, 5237, 5036, 20, 67, 20, 69, 45734, 12993, 1350, 17, 68, 22, 69, 17, 67, 24, 3901, 67, 18, ...
1.684211
57
# Authors: Gianni Barlacchi <gianni.barlacchi@gmail.com> import argparse import sys import logging import os from geol.utils import utils from geol.geometry.squaregrid import SquareGrid from geol.crawler import foursquare_crawler os.environ['NO_PROXY'] = "nominatim.openstreetmap.org" logger = logging.getLogger(__nam...
[ 2, 46665, 25, 30851, 8461, 2409, 75, 330, 11072, 1279, 18299, 8461, 13, 5657, 75, 330, 11072, 31, 14816, 13, 785, 29, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 4903, 349, 13, 267...
2.726619
139
#!/usr/bin/env python import os import argparse import json import shutil import numpy as np import torch import skvideo.io import pandas as pd import time from .io import IO import tools import tools.utils as utils import matplotlib.pyplot as plt import subprocess from tools.utils.file_util import verify_director...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 1341, 15588, 13, 952, 198, 198, 1...
3.25
200
from unittest.mock import Mock import pytest from cashews.backends.memory import Memory from cashews.decorators.bloom import _counting_bloom as counting_bloom from cashews.decorators.bloom import bloom, dual_bloom pytestmark = pytest.mark.asyncio @pytest.fixture( name="backend", params=[ "memory", ...
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 6124, 40645, 13, 1891, 2412, 13, 31673, 1330, 14059, 198, 6738, 6124, 40645, 13, 12501, 273, 2024, 13, 2436, 4207, 1330, 4808, 9127, 278, 62,...
2.544944
178
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import cpro.models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 198, 11748, 269, 1676, 13, 27530, 628 ]
2.930233
43
import copy import functools from typing import Dict, List import pandas from geopandas import GeoDataFrame from othello.gis import io def add_weighted_columns_to_dataframe(df: GeoDataFrame, criteria_information: List[Dict], join_on: str) -> GeoDataFrame: """Add the weighted criteria to the 'df' dataframe by ...
[ 11748, 4866, 198, 11748, 1257, 310, 10141, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 11748, 19798, 292, 198, 6738, 30324, 392, 292, 1330, 32960, 6601, 19778, 198, 198, 6738, 267, 1169, 18798, 13, 70, 271, 1330, 33245, 628, ...
2.787625
598
from .BaseDataset import BaseDataset from .data_utils import _process_array_argument, _return_first_element_of_list, _process_transform_argument, _process_co_transform_argument, _pass_through class TensorDataset(BaseDataset): """ Dataset class for loading in-memory data. :param inputs: (numpy array) ...
[ 6738, 764, 14881, 27354, 292, 316, 1330, 7308, 27354, 292, 316, 198, 6738, 764, 7890, 62, 26791, 1330, 4808, 14681, 62, 18747, 62, 49140, 11, 4808, 7783, 62, 11085, 62, 30854, 62, 1659, 62, 4868, 11, 4808, 14681, 62, 35636, 62, 49140,...
2.680934
514
import PIL.Image from multiprocessing.pool import ThreadPool from uncertify.utils.xiaoran.IndexFlow_camcan import * import numpy as np import pickle import os import cv2 import math import matplotlib.pyplot as plt n_boxes = 8 class BufferedWrapper(object): """Fetch next batch asynchronuously to avoid bottleneck ...
[ 11748, 350, 4146, 13, 5159, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198, 6738, 4591, 861, 1958, 13, 26791, 13, 36072, 31884, 13, 15732, 37535, 62, 20991, 5171, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, ...
2.024291
1,729
############################################# # # # Carlos Santos # # ECE 351-51 # # Lab 7 # # 03/10/2020 # # ...
[ 29113, 7804, 4242, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
1.835673
1,211
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: A program to demonstrate basic string slicing # Initialise the string pangram = "The quick brown fox jumps over the lazy dog!" # 0123456789012345678901234567890123...
[ 2, 8558, 25, 406, 4093, 50, 11361, 49983, 20389, 26701, 201, 198, 2, 7536, 25, 1737, 2864, 201, 198, 2, 6434, 25, 5689, 3594, 11, 14340, 2257, 201, 198, 2, 304, 25804, 25, 9061, 4234, 31, 30094, 301, 13, 494, 201, 198, 2, 32039, ...
2.669456
239
# Generated by Django 3.1.4 on 2021-01-05 18:14 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33448, 12, 486, 12, 2713, 1248, 25, 1415, 201, 198, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 201, 198, 201, 198 ]
2.567568
37
import os import numpy as np from tensorflow import keras from PIL import Image try: M=keras.models.load_model("./models/Unet_1_16.h5") C=keras.models.load_model("./models/compteur2.h5") except: pass #input: a picture #return a list of 512*512*1 array croped from the picture X and Y #input: a ar...
[ 11748, 28686, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 201, 198, 6738, 350, 4146, 1330, 7412, 201, 198, 201, 198, 28311, 25, 201, 198, 197, 44, 28, 6122, 292, 13, 27530, 13, 2220, ...
2.779923
259
import mail import plotten plotten.temp() files=['templog.txt', 'templog.png'] mail.send_attachment(files)
[ 11748, 6920, 198, 11748, 458, 4728, 198, 198, 489, 4728, 13, 29510, 3419, 198, 16624, 28, 17816, 11498, 489, 519, 13, 14116, 3256, 705, 11498, 489, 519, 13, 11134, 20520, 198, 4529, 13, 21280, 62, 1078, 15520, 7, 16624, 8, 198 ]
2.634146
41
import numpy as np from PIL import Image import pandas as pd import argparse from pathlib import Path if __name__ == "__main__": parser = argparse.ArgumentParser(description="preprocess") parser.add_argument("--image_source", type=str, help="画像ファイルのディレクトリ") parser.add_argument("--scale", type=int, help...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 1822, 29572, 198, 6738, 3108, 8019, 1330, 10644, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, ...
2.48374
246
from __future__ import print_function import sys import gdb.printing class SmallStringPrinter: """Print an llvm::SmallString object.""" class StringRefPrinter: """Print an llvm::StringRef object.""" class SmallVectorPrinter(Iterator): """Print an llvm::SmallVector object.""" class ArrayRefPrinter: """Print...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 198, 11748, 308, 9945, 13, 4798, 278, 198, 198, 4871, 10452, 10100, 6836, 3849, 25, 198, 220, 37227, 18557, 281, 32660, 14761, 3712, 18712, 10100, 2134, 526, 15931, ...
2.517837
1,738
# Copyright 2020 Google LLC. # # 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 code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
[ 2, 15069, 12131, 3012, 11419, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 198, 2, 389, 1138, 25, 198, 2, 198, 2, 352,...
3.473214
560
########################################################################## # mriWorks - Copyright (C) IRMAGE/INSERM, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # https://cecill.info/licences/Licence_CeCILL_V2-en.html # for detai...
[ 29113, 29113, 7804, 2235, 201, 198, 2, 285, 380, 23044, 532, 15069, 357, 34, 8, 14826, 44, 11879, 14, 20913, 1137, 44, 11, 12131, 201, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 20101, 34, 8267, 12, 33, 5964, 11, 355, 3199, 416...
3.046083
217
import nose.tools as nt import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn from treeano.sandbox.nodes import paired_conv fX = theano.config.floatX
[ 11748, 9686, 13, 31391, 355, 299, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 262, 5733, 198, 11748, 262, 5733, 13, 83, 22854, 355, 309, 198, 198, 11748, 5509, 5733, 198, 11748, 5509, 5733, 13, 77, 4147, 355, 256, 77, 198, 6...
2.913043
69
import configparser import os try: config = configparser.ConfigParser() config.read('bot.ini') common = config['Common'] except (IOError, KeyError): common = {} TOKEN = _get('TOKEN', common) DATABASE_URL = _get('DATABASE_URL', common) USE_WEBHOOK = _get('USE_WEBHOOK', common, True) if USE_WEBHOOK: ...
[ 11748, 4566, 48610, 198, 11748, 28686, 628, 198, 198, 28311, 25, 198, 220, 220, 220, 4566, 796, 4566, 48610, 13, 16934, 46677, 3419, 198, 220, 220, 220, 4566, 13, 961, 10786, 13645, 13, 5362, 11537, 198, 220, 220, 220, 2219, 796, 4566...
2.409326
193
import pytest from fcgiproto.records import ( encode_name_value_pairs, decode_name_value_pairs, decode_record, FCGIStdin, FCGIBeginRequest, FCGIEndRequest, FCGIUnknownType, FCGIStdout, FCGIGetValues, FCGIGetValuesResult, FCGIAbortRequest) from fcgiproto.exceptions import ProtocolError @pytest...
[ 11748, 12972, 9288, 198, 198, 6738, 277, 66, 70, 541, 305, 1462, 13, 8344, 3669, 1330, 357, 198, 220, 220, 220, 37773, 62, 3672, 62, 8367, 62, 79, 3468, 11, 36899, 62, 3672, 62, 8367, 62, 79, 3468, 11, 36899, 62, 22105, 11, 10029,...
2.040951
757
from datetime import datetime from pathlib import Path from attr import dataclass """ Defines a dataclass for passing all configuration information between the worker classes """ @dataclass
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 708, 81, 1330, 4818, 330, 31172, 198, 198, 37811, 198, 7469, 1127, 257, 4818, 330, 31172, 329, 6427, 477, 8398, 1321, 1022, 198, 1169, 8383, 6097, 198, ...
3.938776
49
import logger import testutil import test_engine from test_engine import Table, Column log = logger.Logger(__name__, logger.INFO)
[ 11748, 49706, 198, 198, 11748, 1332, 22602, 198, 11748, 1332, 62, 18392, 198, 6738, 1332, 62, 18392, 1330, 8655, 11, 29201, 198, 198, 6404, 796, 49706, 13, 11187, 1362, 7, 834, 3672, 834, 11, 49706, 13, 10778, 8, 198 ]
3.384615
39
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981 ]
4
7
"""Middleware to communicate with PubSub Message Broker.""" from collections.abc import Callable from enum import Enum from queue import LifoQueue, Empty from typing import Any import socket, json, pickle import xml.etree.ElementTree as ET class MiddlewareType(Enum): """Middleware Type.""" CONSUMER = 1 P...
[ 37811, 34621, 1574, 284, 10996, 351, 8525, 7004, 16000, 2806, 6122, 526, 15931, 198, 6738, 17268, 13, 39305, 1330, 4889, 540, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 16834, 1330, 21073, 78, 34991, 11, 33523, 198, 6738, 19720, 1330, ...
2.583058
909
from helpers import read_data, get_settings import api settings = get_settings() src_root = settings['src_root'] locale = settings['locale'] article_map = read_data('article_map') for src_article in article_map: print('Archiving {}...'.format(src_article)) # DELETE / api / v2 / help_center / articles / {id}...
[ 6738, 49385, 1330, 1100, 62, 7890, 11, 651, 62, 33692, 198, 11748, 40391, 628, 198, 33692, 796, 651, 62, 33692, 3419, 198, 10677, 62, 15763, 796, 6460, 17816, 10677, 62, 15763, 20520, 198, 17946, 1000, 796, 6460, 17816, 17946, 1000, 205...
2.875862
145
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from PySide2.QtWidgets import QApplication from PySide2.QtGui import QFont from utils.main_ui import MainWindow if __name__ == '__main__': qss = '' try: with open('utils/qdark.qss', 'r') as f: qss = f.read() except: print('...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 198, 6738, 9485, 24819, 17...
1.806452
279
# =========================================================================== # # Filename: sipify.py # # Copyright (c) 2015 Lamond Lab # # 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 ...
[ 2, 38093, 2559, 855, 198, 2, 198, 2, 220, 220, 7066, 12453, 25, 31145, 1958, 13, 9078, 198, 2, 198, 2, 220, 220, 15069, 357, 66, 8, 1853, 10923, 623, 3498, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362,...
2.354007
1,435
"""Deployment file to facilitate releases. """ import os import json import webbrowser import requests from invoke import task from automatminer import __version__ from monty.os import cd __author__ = ["Alex Dunn", "Shyue Ping Ong", "Anubhav Jain"] # Making and updatig documentation @task @task # Consistuent tas...
[ 37811, 49322, 434, 2393, 284, 15570, 10050, 13, 198, 37811, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 3992, 40259, 198, 11748, 7007, 198, 6738, 26342, 1330, 4876, 198, 6738, 3557, 265, 1084, 263, 1330, 11593, 9641, 834, 198, 6738,...
2.78866
194
import logging from datetime import datetime from rdr_service import config from rdr_service.dao.hpro_consent_dao import HealthProConsentDao from rdr_service.storage import GoogleCloudStorageProvider class HealthProConsentFile: """ Service used for transferring Consent records from RDR to HealthPro cons...
[ 11748, 18931, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 374, 7109, 62, 15271, 1330, 4566, 198, 6738, 374, 7109, 62, 15271, 13, 67, 5488, 13, 71, 1676, 62, 5936, 298, 62, 67, 5488, 1330, 3893, 2964, 9444, 298, 35,...
3.39604
101
from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
[ 6738, 279, 4464, 88, 13, 21412, 13, 66, 9078, 2302, 13, 9288, 13, 9288, 62, 66, 9078, 2302, 1330, 2034, 14402, 34, 29412, 11627, 3004, 14881, 198 ]
2.814815
27
from typing import Optional, Callable from functools import wraps from .request import Request from .response import Response
[ 6738, 19720, 1330, 32233, 11, 4889, 540, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 764, 25927, 1330, 19390, 198, 6738, 764, 26209, 1330, 18261, 628 ]
4.571429
28
import sys from setuptools import setup setup_args = dict( name='tikatko', version='0.1', py_modules=['tikatko'], description="""A lightning talk timer""", author='Petr Viktorin', author_email='encukou@gmail.com', install_requires=['gillcup_graphics==0.2.0-alpha.1'], classifiers=[ ...
[ 198, 11748, 25064, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 62, 22046, 796, 8633, 7, 198, 220, 220, 220, 1438, 11639, 83, 1134, 265, 7204, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220...
2.454545
308
from django.conf import settings from django.db import models from django.utils.translation import ugettext as _ from wagtail.wagtailcore.models import Page as WagtailPage
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 355, 4808, 198, 6738, 266, 363, 13199, 13, 86, 363, 13199, 7295, 13, 27530, ...
3.604167
48
import pprint import re # noqa: F401 import six class TaskDef(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value ...
[ 11748, 279, 4798, 198, 11748, 302, 220, 1303, 645, 20402, 25, 376, 21844, 198, 198, 11748, 2237, 198, 198, 4871, 15941, 7469, 7, 15252, 2599, 198, 220, 220, 220, 37227, 16580, 25, 770, 1398, 318, 8295, 7560, 416, 262, 1509, 7928, 2438...
2.278192
9,116
import os from setuptools import setup, find_packages from setuptools.command.sdist import sdist from setuptools.command.install import install from setuptools.command.develop import develop # Versions antlr_version = '4.8' file_dir = os.path.dirname(os.path.realpath(__file__)) zkay_version = _read_file(os.path.joi...
[ 11748, 28686, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 82, 17080, 1330, 264, 17080, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 17350, 1330, 2721, 198, 6738, 900, ...
2.359146
749
import resotolib.logger import multiprocessing import resotolib.proc from concurrent import futures from typing import Optional, Dict from resotolib.baseplugin import BaseCollectorPlugin from resotolib.args import ArgumentParser from argparse import Namespace from resotolib.config import Config, RunningConfig from reso...
[ 11748, 581, 313, 349, 571, 13, 6404, 1362, 198, 11748, 18540, 305, 919, 278, 198, 11748, 581, 313, 349, 571, 13, 36942, 198, 6738, 24580, 1330, 25650, 198, 6738, 19720, 1330, 32233, 11, 360, 713, 198, 6738, 581, 313, 349, 571, 13, 8...
3.482143
168
from codestat_token import Token from token_builders import TokenBuilder # token reader for brace comment
[ 6738, 14873, 395, 265, 62, 30001, 1330, 29130, 198, 6738, 11241, 62, 50034, 1330, 29130, 32875, 198, 198, 2, 11241, 9173, 329, 22581, 2912, 198 ]
4.28
25
import pytest from widgetastic.widget import View from widgetastic_patternfly4.ouia import Card TESTING_PAGE_URL = "https://patternfly-docs-ouia.netlify.app/documentation/react/components/card" @pytest.fixture
[ 11748, 12972, 9288, 198, 6738, 26295, 3477, 13, 42655, 1330, 3582, 198, 198, 6738, 26295, 3477, 62, 33279, 12254, 19, 13, 280, 544, 1330, 5172, 198, 198, 51, 6465, 2751, 62, 4537, 8264, 62, 21886, 796, 366, 5450, 1378, 33279, 12254, 1...
2.986111
72
import operator from functools import reduce import sys import os import importlib import json import base64 from pathlib import PurePath, Path from urllib.parse import urljoin import ecdsa import hashlib import grpc import collections import web3 from web3.gas_strategies.rpc import rpc_gas_price_strategy from eth_ac...
[ 11748, 10088, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 11748, 25064, 198, 11748, 28686, 220, 198, 11748, 1330, 8019, 198, 11748, 33918, 198, 11748, 2779, 2414, 198, 6738, 3108, 8019, 1330, 17129, 15235, 11, 10644, 198, 6738, 2956, 29...
2.922449
490
#!/usr/bin/env python ''' This script subscribes to data notifications from a desired mote and reports the latency statistics. ''' #============================ adjust path ===================================== import sys import os if __name__ == "__main__": here = sys.path[0] sys.path.insert(0, o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 7061, 6, 201, 198, 1212, 4226, 11452, 274, 284, 1366, 19605, 422, 257, 10348, 285, 1258, 290, 201, 198, 48922, 262, 24812, 7869, 13, 201, 198, 7061, 6, 201, 198, 201, 198, 2, ...
2.493166
1,756
#!/usr/bin/env python3 # Usage: # go one level above emmer/ # python3 -m emmer.test.test_viewer from ..main.basic.math import NonDesityMatrix from ..posthoc.visual.viewer import Projection from pandas.util.testing import assert_frame_equal import numpy.testing import unittest import pandas import numpy if __name_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 29566, 25, 198, 2, 467, 530, 1241, 2029, 795, 647, 14, 198, 2, 21015, 18, 532, 76, 795, 647, 13, 9288, 13, 9288, 62, 1177, 263, 198, 198, 6738, 11485, 12417, 13, 3548...
2.879032
124
#!/usr/bin/env python3 import argparse import json import os import sys from collections import defaultdict import itertools import requests REPOS_API = 'https://api.github.com/repos/' if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('repo', help='e.g. gittenburg/instant-issu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 340, 861, 10141, 198, 198, 11748, 7007, 198, 198, 35316, ...
2.841772
158
from PyQt4 import QtGui, QtCore
[ 6738, 9485, 48, 83, 19, 1330, 33734, 8205, 72, 11, 33734, 14055, 628 ]
2.538462
13
# Copyright (C) 2015 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
[ 2, 15069, 357, 34, 8, 1853, 317, 912, 17731, 309, 24076, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 32896, 11081, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351,...
2.274244
4,795
from django.db import models from django.utils import timezone # Student user
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 2, 13613, 2836 ]
3.714286
21
#------------------------------------------------------------------------------- # Subs #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Fin #-------------------------------------------------------------...
[ 2, 10097, 24305, 198, 2, 3834, 82, 198, 2, 10097, 24305, 628, 198, 2, 10097, 24305, 198, 2, 4463, 198, 2, 10097, 24305, 198 ]
14.125
24
# 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 2.3.3...
[ 2, 19617, 28, 40477, 12, 23, 201, 198, 2, 16529, 35937, 201, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 201, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 201...
2.841869
2,226
# Generated by Django 2.0.2 on 2018-02-19 12:53 from django.db import migrations, models import django.db.models.deletion import yamlfield.fields
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 17, 319, 2864, 12, 2999, 12, 1129, 1105, 25, 4310, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.846154
52
# -*- coding: utf-8 -* '''! @file BC20_Serial.py @brief Send AT commands to the BC20 module via USB Serial @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) @license The MIT License (MIT) @author [PengKaixing](kaixing.peng@dfrobot.com) @version V1.0.0 @date 2019-07-16 @u...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 198, 7061, 6, 0, 198, 220, 2488, 7753, 11843, 1238, 62, 32634, 13, 9078, 198, 220, 2488, 65, 3796, 16290, 5161, 9729, 284, 262, 11843, 1238, 8265, 2884, 8450, 23283, 198, 220, ...
2.129555
988
from collections import namedtuple from collections import defaultdict import matplotlib.pyplot as plt import seaborn as sns import numpy as np from mpl_toolkits.mplot3d import axes3d # Source: https://www.blackjackinfo.com/dealer-outcome-probabilities/#TIDS17 dealer_prob = [[.3536, .3739, .3945, .4164, .4232,...
[ 6738, 17268, 1330, 3706, 83, 29291, 201, 198, 6738, 17268, 1330, 4277, 11600, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 11748, 384, 397, 1211, 355, 3013, 82, 201, 198, 11748, 299, 32152, 355, 45941, ...
1.982938
1,348
# -*- coding: utf-8 -*- from __future__ import division import datetime, os from django.utils import timezone from django.utils.translation import ugettext_lazy as _, string_concat from django.conf import settings as django_settings from django.utils.deconstruct import deconstructible from django.core.validators import...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 4818, 8079, 11, 28686, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 13, 26791, 13, 41519...
4.268817
279
""" Author :- Manas Kumar mishra Task :- Test for Series connection. This is not a part of the network. it is for Testing algos Begin DATE :- 01- APRIL- 2021 """ from socket import* from random import randint # CIF Customer Information file # It maaps between the Card info to the Bank information global CIF_number CI...
[ 37811, 198, 13838, 1058, 12, 1869, 292, 26105, 29406, 430, 198, 25714, 1058, 12, 6208, 329, 7171, 4637, 13, 770, 318, 407, 257, 636, 286, 262, 3127, 13, 340, 318, 329, 23983, 435, 70, 418, 198, 44140, 360, 6158, 1058, 12, 5534, 12, ...
2.687919
596
from .combinatorics import * from .files import *
[ 6738, 764, 785, 8800, 1352, 873, 1330, 1635, 198, 6738, 764, 16624, 1330, 1635, 198 ]
3.333333
15
from plugin.core.environment import Environment from plugin.models.m_plex.account import PlexAccount from plugin.models.core import db from exception_wrappers.libraries.playhouse.apsw_ext import * from xml.etree import ElementTree import logging import requests log = logging.getLogger(__name__)
[ 6738, 13877, 13, 7295, 13, 38986, 1330, 9344, 198, 6738, 13877, 13, 27530, 13, 76, 62, 11141, 13, 23317, 1330, 47176, 30116, 198, 6738, 13877, 13, 27530, 13, 7295, 1330, 20613, 198, 198, 6738, 6631, 62, 29988, 11799, 13, 75, 11127, 13...
3.691358
81
# ============================================================================= # PROJECT CHRONO - http://projectchrono.org # # Copyright (c) 2014 projectchrono.org # All right reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distri...
[ 2, 38093, 25609, 198, 2, 21965, 23680, 32567, 1340, 46, 532, 2638, 1378, 16302, 11413, 78, 13, 2398, 198, 2, 198, 2, 15069, 357, 66, 8, 1946, 1628, 11413, 78, 13, 2398, 198, 2, 1439, 826, 10395, 13, 198, 2, 198, 2, 5765, 286, 42...
3.001104
2,717
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 dotzero <mail@dotzero.ru> # # 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 limitat...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 1584, 16605, 22570, 1279, 4529, 31, 26518, 22570, 13, 622, 29, 198, 2, 198, 2, 2448, ...
2.757688
813
import matplotlib.pyplot as plt DEFAULT_LABEL_FS = 12 DEFAULT_AXIS_FS = 12 DEFAULT_FIGSIZE = (12,8) def plot_single_ed(wide_df, hosp_id, figsize=(12,3), fontsize=DEFAULT_LABEL_FS, line_width=2): ''' Plot a single ED's data Assumes data are passed in wide format. Params: --...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 7206, 38865, 62, 48780, 3698, 62, 10652, 796, 1105, 198, 7206, 38865, 62, 25922, 1797, 62, 10652, 796, 1105, 198, 7206, 38865, 62, 16254, 33489, 796, 357, 1065, 11, 23...
2.049628
1,209
# ###################################################################################################################### # Copyright 2020 TRIXTER GmbH # # ...
[ 2, 1303, 29113, 29113, 29113, 14468, 4242, 2, 198, 2, 220, 15069, 12131, 37679, 55, 5781, 402, 2022, 39, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.955193
1,473
import discord from discord.ext import commands import os import random @commands.command(aliases = ['8ball'])
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 28686, 198, 11748, 4738, 628, 198, 31, 9503, 1746, 13, 21812, 7, 7344, 1386, 796, 37250, 23, 1894, 6, 12962, 628, 198 ]
3.484848
33
import datetime import addict import boto3 import botocore import pytest from bai_kafka_utils.events import ( FetcherBenchmarkEvent, FetcherPayload, FileSystemObject, DownloadableContent, ContentSizeInfo, FetchedType, BenchmarkDoc, BenchmarkJob, ) from bai_kafka_utils.executors.descript...
[ 11748, 4818, 8079, 198, 198, 11748, 19678, 198, 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 11748, 12972, 9288, 198, 6738, 275, 1872, 62, 74, 1878, 4914, 62, 26791, 13, 31534, 1330, 357, 198, 220, 220, 220, 44649, 2044, 44...
2.586466
665
import os import sys import numpy as np from mtuq import read, open_db, download_greens_tensors from mtuq.event import Origin from mtuq.graphics import plot_data_greens2, plot_misfit_depth, plot_misfit_dc, plot_variance_reduction_lune #from mtuq.graphics.uq.hypocenter import _get_depths, _get_sources, _min_dataarray ...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 285, 28047, 80, 1330, 1100, 11, 1280, 62, 9945, 11, 4321, 62, 70, 5681, 62, 83, 641, 669, 198, 6738, 285, 28047, 80, 13, 15596, 1330, 19349, 1...
2.322532
4,012
from setuptools import setup, find_packages version = '0.1' setup( name='ckanext-googleanalytics', version=version, description="Add GA tracking and reporting to CKAN instance", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', au...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 9641, 796, 705, 15, 13, 16, 6, 198, 198, 40406, 7, 198, 197, 3672, 11639, 694, 1531, 742, 12, 13297, 38200, 14094, 3256, 198, 197, 9641, 28, 9641, 11, 198, 197, 1...
2.65
340
# Copyright (c) 2021 by Cisco Systems, Inc. # All rights reserved. expected_output = { 'mac_addr': 'ffff.ffff.fffd', 'reference_count': 1, 'epoch': 0, 'producer': 'L2FIB', 'flags': ['None'], 'adjacency': { 'type':'olist', 'desc': 'Olist: 3, Ports:...
[ 2, 15069, 357, 66, 8, 33448, 416, 28289, 11998, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 198, 40319, 62, 22915, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 20285, 62, 29851, 10354, 705, 12927, 13, 12927, 13, 4...
1.618824
425
# import itertools # # import numpy as np # # import holoviews as hv # # # def _create_paths(count_array: np.ndarray): # """ # Returns an iterable containing coordinates for a single path, where the genes are integer-indexed # along the x-axis, and the mass of the gene (length * counts), is along the y-axis...
[ 2, 1330, 340, 861, 10141, 198, 2, 198, 2, 1330, 299, 32152, 355, 45941, 198, 2, 198, 2, 1330, 6039, 709, 769, 82, 355, 289, 85, 198, 2, 198, 2, 198, 2, 825, 4808, 17953, 62, 6978, 82, 7, 9127, 62, 18747, 25, 45941, 13, 358, ...
2.451429
875
import imp import os.path from amazonproduct import HOSTS from amazonproduct.processors import objectify, etree, minidom from amazonproduct.utils import load_config _here = os.path.abspath(os.path.dirname(__file__)) try: fp, path, desc = imp.find_module('config', [_here]) _config = imp.load_module('config'...
[ 198, 11748, 848, 198, 11748, 28686, 13, 6978, 198, 198, 6738, 716, 5168, 11167, 1330, 367, 10892, 50, 198, 6738, 716, 5168, 11167, 13, 14681, 669, 1330, 2134, 1958, 11, 2123, 631, 11, 949, 312, 296, 198, 6738, 716, 5168, 11167, 13, ...
2.572115
624
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import TripMapR version = TripMapR.__version__ setup( name='TripMapR', version=version, author="Rahul Verma", author_email='rahulv@gmail....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 628, 198, 28311, 25, 198, 220, 220, 220, 422, 900, 37623, 10141, 1330, 9058, 198,...
2.265487
226
#!/usr/bin/env python #import OpenImageIO as oiio import shutil ## This testsuite entry tests oiiotool features related to image ## transformations (moving pixels around and resampling). # helper function # Create some test images we need # No need to do this every time, we stashed it in src #make_test_pattern1 ("...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 11748, 4946, 5159, 9399, 355, 267, 72, 952, 198, 11748, 4423, 346, 198, 198, 2235, 770, 1332, 2385, 578, 5726, 5254, 267, 4178, 313, 970, 3033, 3519, 284, 2939, 198, 2235, 38226, ...
2.525694
1,946
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 2181, 844, 357, 20012, 5061, 737, 198, 2, 198, 2, 15069, 357, 34, 8, 1946, 12, 42334, 37464, 12386, 290, 20420, 198, 2, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 374, 6277, 13, 952, 402, 2022...
3.146497
628
from deap import base from deap import creator from deap import tools import random import math #Luke Grantham #python 3 compatible #variables IND_SIZE = 5 #number of key presses POP_SIZE = 1 #number of individuals T_SIZE = 3 #tournament size generations = 1000 #number of generations selb = 1 ...
[ 6738, 390, 499, 1330, 2779, 198, 6738, 390, 499, 1330, 13172, 198, 6738, 390, 499, 1330, 4899, 198, 11748, 4738, 198, 11748, 10688, 198, 198, 2, 30730, 17113, 400, 321, 198, 2, 29412, 513, 11670, 198, 198, 2, 25641, 2977, 198, 12115, ...
2.911565
588
import os import importlib from service import config from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_DATABASE_URI'] = config.connection_string \ if not config.get_boolean_param('debug') \ else co...
[ 11748, 28686, 198, 11748, 1330, 8019, 198, 6738, 2139, 1330, 4566, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250,...
2.544503
382
# -*- coding: utf-8 -*- __doc__="返回选择物体的类型" import rpw from rpw import revit, DB, UI,db,doc from System.Collections.Generic import List import json #from pyrevit import script as this_script #from scriptutils.userinput import CommandSwitchWindow import subprocess as sp #Change Selected Grid From 3D to 2D #selection = ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 15390, 834, 2625, 32573, 242, 32368, 252, 34460, 231, 162, 233, 102, 31965, 102, 19526, 241, 21410, 163, 109, 119, 161, 252, 233, 1, 198, 11748, 374, 79, 86, 198,...
2.574468
282
from typing import Dict, Optional, Union import numpy as np from pydantic import validator from src.biota_models.coral.model.coral_constants import CoralConstants from src.biota_models.coral.model.coral_only import CoralOnly from src.core import RESHAPE from src.core.base_model import ExtraModel from src.core.biota.b...
[ 6738, 19720, 1330, 360, 713, 11, 32233, 11, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 279, 5173, 5109, 1330, 4938, 1352, 198, 198, 6738, 12351, 13, 8482, 4265, 62, 27530, 13, 66, 6864, 13, 19849, 13, 66, 6864, 62, 99...
2.225573
4,145
# Generated by Django 3.0.7 on 2020-07-01 06:13 from django.db import migrations, models import uuid
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 12131, 12, 2998, 12, 486, 9130, 25, 1485, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 334, 27112, 628 ]
2.861111
36
from pylab import linspace, xlabel, ylabel, plot, show, grid def simple(funkjson, start=float, slutt=float, x_label="x", y_label="y"): ''' Lager enkel graf av funksjonen din. Passer fint for alle type grafer ''' x = linspace(start, slutt, 1001) y = funkjson(x) xlabel(x_label) ...
[ 6738, 279, 2645, 397, 1330, 300, 1040, 10223, 11, 2124, 18242, 11, 331, 18242, 11, 7110, 11, 905, 11, 10706, 198, 198, 4299, 2829, 7, 69, 2954, 17752, 11, 923, 28, 22468, 11, 1017, 15318, 28, 22468, 11, 2124, 62, 18242, 2625, 87, ...
2.127907
172
import os from copy import deepcopy import json import torch import torch.nn as nn import torch.optim as optim import numpy as np import pandas as pd from functools import partial import data import model import metric def get_partial_sampler(mode, class_weights): """Creates the sampling partial function to app...
[ 11748, 28686, 198, 6738, 4866, 1330, 2769, 30073, 198, 11748, 33918, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, ...
2.514822
1,012
# Generated by Django 2.1.2 on 2018-10-16 08:29 from django.conf import settings from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 17, 319, 2864, 12, 940, 12, 1433, 8487, 25, 1959, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.1
40
import numpy as np import cv2
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 197, 198 ]
2.461538
13