content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 2864, 12, 1238, 1828, 12280, 897, 261, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
3.160819
342
# Generated by Django 3.1.7 on 2021-07-18 10:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 2998, 12, 1507, 838, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 142...
3.081967
61
from rfeed import * # Create RSS feeds import GetOldTweets3 as got # Scrape for tweets from functools import lru_cache # Cache feeds from flask import make_response # Tell Flask that it's being sent XML @lru_cache(maxsize=None)
[ 6738, 374, 12363, 1330, 1635, 1303, 13610, 25012, 21318, 198, 11748, 3497, 19620, 32665, 1039, 18, 355, 1392, 1303, 1446, 13484, 329, 12665, 198, 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 1303, 34088, 21318, 198, 6738, 42903, 133...
3.484848
66
# Generated by Django 2.2.6 on 2019-10-21 02:18 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 13130, 12, 940, 12, 2481, 7816, 25, 1507, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import asyncio import logging import time from typing import Iterable, NoReturn, Optional, Set from procrastinate import app, exceptions, jobs, signals, tasks, types logger = logging.getLogger(__name__)
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 19720, 1330, 40806, 540, 11, 1400, 13615, 11, 32233, 11, 5345, 198, 198, 6738, 13834, 5685, 4559, 1330, 598, 11, 13269, 11, 3946, 11, 10425, 11, 8861, 11, 3858, 198, 19...
3.678571
56
import wx
[ 11748, 266, 87, 198 ]
2.5
4
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 357, 66, 8, 12131, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393...
2.931871
866
# coding=utf8 import MySQLdb conn = MySQLdb.connect( host='localhost', user='root', passwd='123456', db='TeacherSchema' ) cur = conn.cursor() cur.execute("SELECT COUNT(Teacher_Name) FROM Teacher;") count = cur.fetchall() count = count[0][0] print count for i in range(count): try: sql = "SELECT Teacher_Photo F...
[ 2, 19617, 28, 40477, 23, 198, 11748, 33476, 9945, 198, 198, 37043, 796, 33476, 9945, 13, 8443, 7, 198, 197, 4774, 11639, 36750, 3256, 198, 197, 7220, 11639, 15763, 3256, 198, 197, 6603, 16993, 11639, 10163, 29228, 3256, 198, 197, 9945, ...
2.601626
246
""" Setup FFMPEG before!!! https://www.ffmpeg.org/download.html#build-windows """ from pydub import AudioSegment names = [ 'shot', 'explosion', 'explosion_1' ] for name in names: sound = AudioSegment.from_mp3(f"../sound/{name}.mp3") sound.export(f"../sound/{name}.wav", format="wav")
[ 37811, 198, 40786, 18402, 7378, 7156, 878, 10185, 198, 5450, 1378, 2503, 13, 487, 43913, 13, 2398, 14, 15002, 13, 6494, 2, 11249, 12, 28457, 198, 37811, 198, 198, 6738, 279, 5173, 549, 1330, 13491, 41030, 434, 198, 198, 14933, 796, 68...
2.456
125
from django.urls import path from home.views import IndexView, BlogView, DetailView, ToolView, ToolDetailView urlpatterns = [ path('', IndexView.as_view(), name='index'), path('blog/', BlogView.as_view(), name='blog'), path('detail/', DetailView.as_view(), name='detail'), path('tool/', ToolView.as_view...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 201, 6738, 1363, 13, 33571, 1330, 12901, 7680, 11, 14001, 7680, 11, 42585, 7680, 11, 16984, 7680, 11, 16984, 11242, 603, 7680, 201, 201, 6371, 33279, 82, 796, 685, 201, 220, 220, 220, 3108...
2.861111
144
# Copyright 2016 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ 2, 15069, 1584, 30446, 15503, 6400, 446, 14973, 7712, 18470, 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, 137...
2.767424
2,597
import os import pytest from barbell2.dicomexplorer.dicomexplorer import DicomExplorer COHORT_DIR = '/Volumes/USB_SECURE1/data/radiomics/projects/deepseg/data/mega/processed/NEWEPOC' COHORT_DCM_FILE = '/Volumes/USB_SECURE1/data/radiomics/projects/deepseg/data/mega/processed/NEWEPOC/003001_pre_PV_L3.dcm' COHORT_TAG_F...
[ 11748, 28686, 198, 11748, 12972, 9288, 198, 198, 6738, 2318, 7923, 17, 13, 67, 291, 462, 87, 489, 11934, 13, 67, 291, 462, 87, 489, 11934, 1330, 360, 291, 296, 18438, 11934, 628, 198, 8220, 39, 9863, 62, 34720, 796, 31051, 16598, 81...
2.193798
258
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ 2, 220, 220, 220, 220, 15069, 12131, 11, 17356, 9075, 268, 11, 6920, 1462, 25, 5568, 13, 71, 323, 268, 31, 14816, 13, 785, 198, 2, 198, 2, 220, 220, 220, 220, 2142, 286, 366, 45, 5013, 4914, 1600, 281, 45780, 11361, 17050, 326, ...
2.685075
3,350
from constants.constants import FOLDER_CONFIG_FILE_REPLACE, FILE_NOTION_CONFIG, CONFIG_FOLDER from config_builder.config_builder import get_file_data import os
[ 6738, 38491, 13, 9979, 1187, 1330, 376, 3535, 14418, 62, 10943, 16254, 62, 25664, 62, 2200, 6489, 11598, 11, 45811, 62, 11929, 2849, 62, 10943, 16254, 11, 25626, 62, 37, 3535, 14418, 198, 6738, 4566, 62, 38272, 13, 11250, 62, 38272, 1...
3.156863
51
import socket import threading import socketserver from Player import Player from Account import Account from World import World import re from copy import deepcopy global commands commands = dict({ "room" : "Exibe a sala atual", "move <n(north), s(south), e(east), w(weast)>" : "Move o personagem para a direção...
[ 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 37037, 18497, 198, 6738, 7853, 1330, 7853, 198, 6738, 10781, 1330, 10781, 198, 6738, 2159, 1330, 2159, 198, 11748, 302, 198, 6738, 4866, 1330, 2769, 30073, 198, 20541, 9729, 198, 9503, 1746...
2.675676
333
import mongoengine import datetime import re import socket import time from bson.errors import InvalidStringData from flask import request from utilities.flask_tracking import documents from utilities.flask_tracking.utils import WSGICopyBody from mongoengine import Document try: from flask_login import current_u...
[ 11748, 285, 25162, 18392, 198, 11748, 4818, 8079, 198, 11748, 302, 198, 11748, 17802, 198, 11748, 640, 198, 198, 6738, 275, 1559, 13, 48277, 1330, 17665, 10100, 6601, 198, 6738, 42903, 1330, 2581, 198, 6738, 20081, 13, 2704, 2093, 62, 3...
3.755102
98
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, merge, publish, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 11593, 34, 3185, 38162, 9947, 834, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 198, 2, 257, 4866, 286, 428, 3788, 290, ...
3.00612
817
import numpy as np from matplotlib import pyplot from matplotlib.colors import Normalize from scipy import stats from scipy.special import logsumexp from IPython.display import Markdown import seaborn as sns lamda = 0.005 kappa = 0.25 rho = 0.01 mu = 0.01 data = [] for n_dim in [10, 80, 640]: for dt in [1, 8, 64]...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 198, 6738, 2603, 29487, 8019, 13, 4033, 669, 1330, 14435, 1096, 198, 6738, 629, 541, 88, 1330, 9756, 198, 6738, 629, 541, 88, 13, 20887, 1330, 2604, 16345,...
2.220513
390
from .card import CardFilterSet
[ 6738, 764, 9517, 1330, 5172, 22417, 7248, 198 ]
4
8
""" This carries out dynamic and static code analysis and POSTs the results to GitHub as statuses. Without passing statuses, a pull request cannot be merged. Dynamic tests require 100% passing to be considered a success. The static tests are informational only and will always generate success if they run correctly. """...
[ 37811, 198, 1212, 10732, 503, 8925, 290, 9037, 2438, 3781, 290, 24582, 82, 262, 2482, 284, 21722, 355, 1185, 2664, 13, 198, 16249, 6427, 1185, 2664, 11, 257, 2834, 2581, 2314, 307, 23791, 13, 26977, 5254, 2421, 1802, 4, 6427, 284, 307...
2.855282
691
# Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). # You may assume that the intervals were initially sorted according to their start times. # Example 1: # Given intervals [1,3],[6,9], insert and merge [2,5] in as [1,5],[6,9]. # Example 2: # Given [1,2],[3,5],[...
[ 2, 11259, 257, 900, 286, 1729, 12, 2502, 75, 5912, 20016, 11, 7550, 257, 649, 16654, 656, 262, 20016, 357, 647, 469, 611, 3306, 737, 198, 198, 2, 921, 743, 7048, 326, 262, 20016, 547, 7317, 23243, 1864, 284, 511, 923, 1661, 13, 19...
2.6
270
from copy import deepcopy from dataclasses import dataclass, field from math import degrees, radians, sin, tan from typing import List from taperable_helix import Helix, HelixLocation @dataclass class HelicalThread(Helix): """ A set of fields used to represent a helical thread and passed as the parameter...
[ 6738, 4866, 1330, 2769, 30073, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 10688, 1330, 7370, 11, 2511, 1547, 11, 7813, 11, 25706, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 256, 2136, 540, 62, 2978, 8...
2.432936
3,273
from .transparentTimer import TransparentTimer
[ 6738, 764, 7645, 8000, 48801, 1330, 3602, 8000, 48801 ]
5.111111
9
import pytest # Create your tests here. from restapi.models import Organism, Repeat @pytest.fixture @pytest.mark.django_db def test_model_can_create_an_organism(organism): """Test the organism model can create an Organism.""" old_count = Organism.objects.count() organism.save() new_count = Organism...
[ 11748, 12972, 9288, 198, 198, 2, 13610, 534, 5254, 994, 13, 198, 6738, 1334, 15042, 13, 27530, 1330, 7221, 1042, 11, 30021, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 4102, 13, 28241, 14208, 62, 9945, 198,...
2.840708
226
import logging import os from clustertools import set_stdout_logging, ParameterSet, Experiment from clustertools.storage import PickleStorage from generic_threshold import TuneThresholdComputation from train_monuseg_selftrain_clustertools import env_parser if __name__ == "__main__": import sys main(sys....
[ 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 32966, 861, 10141, 1330, 900, 62, 19282, 448, 62, 6404, 2667, 11, 25139, 2357, 7248, 11, 29544, 198, 6738, 32966, 861, 10141, 13, 35350, 1330, 12346, 293, 31425, 198, 198, 6738, 14276, 62...
3.142857
105
import sys from PyQt5.QtCore import QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWidgets import QApplication from ytdl_gui import host, port
[ 11748, 25064, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1195, 28165, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 13908, 13798, 54, 312, 11407, 1330, 1195, 13908, 13798, 7680, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, ...
2.737705
61
import lmdb import numpy as np import cv2 as cv from itertools import islice import time import os from os.path import sep as path_sep from os.path import join as path_join import torch import torch.nn as nn import torchvision path = '/home/xfz/Projects/PycharmProjects/TextRecognitionDataGenerator-master/trdg/out' ...
[ 11748, 300, 9132, 65, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 355, 269, 85, 198, 6738, 340, 861, 10141, 1330, 318, 75, 501, 198, 11748, 640, 198, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 41767, 355, ...
2.043582
1,262
import youtube_dl import datetime import threading import requests import re import time import os threads = [] # all threads list tasks_list = [] # all tasks list def start_received_request_action(data): """ Main function which extract task type and start proper action. Then return response. :param d...
[ 11748, 35116, 62, 25404, 198, 11748, 4818, 8079, 198, 11748, 4704, 278, 198, 11748, 7007, 198, 11748, 302, 198, 11748, 640, 198, 11748, 28686, 198, 198, 16663, 82, 796, 17635, 220, 1303, 477, 14390, 1351, 198, 83, 6791, 62, 4868, 796, ...
2.611742
528
from tensorflow import keras import matplotlib.pyplot as plt from sklearn.linear_model import SGDClassifier from sklearn.model_selection import cross_validate import numpy as np from sklearn.model_selection import train_test_split (train_input, train_target), (test_input, test_target) =\ keras.datasets.fashion_mn...
[ 6738, 11192, 273, 11125, 1330, 41927, 292, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 26147, 35, 9487, 7483, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 3272...
2.570435
575
from unittest import mock import decimal from webob.multidict import MultiDict from pyramid.compat import text_type, NativeIO import ptah.form from ptah.form import iso8601 from ptah.testing import strip, BaseTestCase
[ 6738, 555, 715, 395, 1330, 15290, 198, 11748, 32465, 198, 6738, 3992, 672, 13, 16680, 312, 713, 1330, 15237, 35, 713, 198, 6738, 27944, 13, 5589, 265, 1330, 2420, 62, 4906, 11, 12547, 9399, 198, 198, 11748, 42975, 993, 13, 687, 198, ...
3.232877
73
# Copyright (c) 2021, Moritz E. Beber. # # 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 i...
[ 2, 15069, 357, 66, 8, 33448, 11, 3461, 4224, 412, 13, 1355, 527, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 3...
2.441809
1,349
import requests req_url = "https://www.chinaamc.com/indexfundvalue.js" response = requests.get(req_url) print(response.apparent_encoding) response.encoding = "UTF-8" print(response.text)
[ 11748, 7007, 628, 198, 42180, 62, 6371, 796, 366, 5450, 1378, 2503, 13, 354, 1437, 321, 66, 13, 785, 14, 9630, 10990, 8367, 13, 8457, 1, 198, 198, 26209, 796, 7007, 13, 1136, 7, 42180, 62, 6371, 8, 198, 4798, 7, 26209, 13, 1324, ...
2.794118
68
#!/usr/bin/env python ''' Copyright (c) 2020 Modul 9/HiFiBerry 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, me...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 15269, 357, 66, 8, 12131, 3401, 377, 860, 14, 17250, 10547, 25215, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 19...
2.475232
2,584
import logging import hashlib import assets_pb2 as assets from sawtooth_sdk.processor.exceptions import InvalidTransaction import handler.addressing as Addressing import handler.utils as utils LOGGER = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 12234, 8019, 198, 198, 11748, 6798, 62, 40842, 17, 355, 6798, 198, 6738, 2497, 1462, 849, 62, 21282, 74, 13, 41341, 13, 1069, 11755, 1330, 17665, 48720, 198, 11748, 21360, 13, 2860, 11697, 355, 3060, 11697, 198...
3.666667
63
#!/usr/bin/env python from netCDF4 import Dataset import matplotlib.pyplot as plt from matplotlib.cm import get_cmap import cartopy.crs as crs from cartopy.feature import NaturalEarthFeature from wrf import ALL_TIMES, to_np, getvar, smooth2d, get_cartopy, cartopy_xlim, cartopy_ylim, latlon_coords # Open the NetCDF fi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 2010, 34, 8068, 19, 1330, 16092, 292, 316, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 11215, 1330, 651, 62, 66, 8899, 198, ...
2.489768
733
import os import sys import launch import launch_ros.actions from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration from launch_ros.actions import ComposableNodeContainer from launch_ros.descriptions import ComposableNode
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 4219, 198, 11748, 4219, 62, 4951, 13, 4658, 198, 6738, 4219, 13, 4658, 1330, 16691, 533, 38296, 28100, 1713, 198, 6738, 4219, 13, 7266, 301, 270, 3508, 1330, 21225, 38149, 198, 6738, 4219, 62...
4.269841
63
from kivy.storage.jsonstore import JsonStore from kivy.uix.boxlayout import BoxLayout from kivy.uix.floatlayout import FloatLayout from kivy.uix.screenmanager import Screen from kivymd.app import MDApp from kivy.lang import Builder from kivymd.uix.button import MDFlatButton, MDFloatingActionButton from kivymd.uix.dialo...
[ 6738, 479, 452, 88, 13, 35350, 13, 17752, 8095, 1330, 449, 1559, 22658, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 3524, 39786, 1330, 8315, 32517, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 22468, 39786, 1330, 48436, 32517, 198, 6738,...
2.844828
174
from multiprocessing.sharedctypes import Value import socket import spotipy from spotipy.oauth2 import SpotifyClientCredentials HEADER = 64 PORT = 5050 FORMAT = 'utf-8' DISCONNECT_MESSAGE = "!DISCONNECT" # SERVER = socket.gethostbyname(socket.gethostname()) SERVER = "192.168.0.155" ADDR = (SERVER, PORT) """ Calls...
[ 6738, 18540, 305, 919, 278, 13, 28710, 310, 9497, 1330, 11052, 198, 11748, 17802, 198, 11748, 4136, 541, 88, 198, 6738, 4136, 541, 88, 13, 12162, 1071, 17, 1330, 26778, 11792, 34, 445, 14817, 628, 198, 37682, 1137, 796, 5598, 198, 154...
2.944186
215
'''4. Write a Python program to generate groups of five consecutive numbers in a list. ''' l = [[5*i + j for j in range(1,6)] for i in range(5)] print(l) #Reference: w3resource
[ 7061, 6, 19, 13, 19430, 257, 11361, 1430, 284, 7716, 2628, 286, 1936, 12785, 3146, 287, 257, 1351, 13, 705, 7061, 198, 198, 75, 796, 16410, 20, 9, 72, 1343, 474, 329, 474, 287, 2837, 7, 16, 11, 21, 15437, 329, 1312, 287, 2837, 7...
2.966667
60
#!/usr/bin/python # coding: UTF-8 # # Author: Dawid Laszuk # Contact: laszukdawid@gmail.com # # Feel free to contact for any information. from __future__ import division, print_function import emcee import logging import numpy as np import time, datetime from .kursl_model import KurSL from .model import ModelWrapper ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 19617, 25, 41002, 12, 23, 198, 2, 198, 2, 6434, 25, 17552, 312, 10123, 89, 2724, 198, 2, 14039, 25, 39990, 89, 2724, 67, 707, 312, 31, 14816, 13, 785, 198, 2, 198, 2, 18571, 1479, ...
2.127854
1,095
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import info # make sure this path is correct PATH = "C:\Program Files (x86)\ChromeDriver\chromedriver.exe" driver = webdr...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 198, 6738, 384, 119...
2.212942
1,329
""" Copyright start Copyright (C) 2008 - 2021 Fortinet Inc. All rights reserved. FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE Copyright end """ import boto3, requests, json from connectors.core.connector import get_logger, ConnectorError logger = get_logger('aws-network-firewall') TEMP_CRED_ENDPO...
[ 37811, 15069, 923, 198, 220, 15069, 357, 34, 8, 3648, 532, 33448, 6401, 42504, 3457, 13, 198, 220, 1439, 2489, 10395, 13, 198, 220, 7473, 51, 1268, 2767, 7102, 37, 25256, 12576, 1222, 7473, 51, 1268, 2767, 4810, 3185, 7112, 2767, 1315...
2.71719
541
# Enter your code here. Read input from STDIN. Print output to STDOUTseen = '' from string import ascii_uppercase, digits import re for _ in range(1, int(input())+1): uid = str(input()) seen = '' valid = True if len(uid) == 10: for char in uid: if char not in seen and char.isaln...
[ 2, 6062, 534, 2438, 994, 13, 4149, 5128, 422, 48571, 1268, 13, 12578, 5072, 284, 48571, 12425, 15898, 796, 10148, 198, 6738, 4731, 1330, 355, 979, 72, 62, 7211, 2798, 589, 11, 19561, 198, 11748, 302, 198, 1640, 4808, 287, 2837, 7, 1...
1.996997
333
from __future__ import with_statement import datetime import random import hashlib import base64 from decimal import Decimal from django.db import models from django_bitcoin.utils import bitcoind from django_bitcoin import settings , models from django.utils.translation import ugettext as _ from django_bitcoin.models...
[ 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 198, 198, 11748, 4818, 8079, 198, 11748, 4738, 198, 11748, 12234, 8019, 198, 11748, 2779, 2414, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, ...
3.451883
239
from model.contact import Contact from model.group import Group #Главная #Выбираем контакт #Выбираем группу #Нажимаем добавить #Нажимаем перейти в группу #Получаем ид группы #- #Записываем из базы не пустую группу с нашим айдишником #Сравниваем
[ 6738, 2746, 13, 32057, 1330, 14039, 198, 6738, 2746, 13, 8094, 1330, 4912, 628, 628, 628, 628, 628, 628, 628, 628, 198, 2, 140, 241, 30143, 16142, 38857, 22177, 16142, 40623, 198, 2, 140, 240, 45035, 140, 109, 18849, 21169, 16142, 168...
1.125541
231
import html import json import requests from django.apps import apps from django.contrib.gis.geos import GEOSGeometry, MultiPolygon, Polygon from django.conf import settings from django.core.management.base import BaseCommand from councils.models import Council class Command(BaseCommand): """ Turn off auto sy...
[ 11748, 27711, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 70, 271, 13, 469, 418, 1330, 22319, 2640, 10082, 15748, 11, 15237, 34220, 14520, 11, 12280, 1...
2.404562
833
from pathlib import Path from tools.config import Config, ResumeConfig from tools.runner import CustomRunner if __name__ == '__main__': resume_config = ResumeConfig.cli("Pix2Pix Tensorflow 2 Keras implementation") config = Config.load(Path(resume_config.path).joinpath("config.json")) CustomRunner.resume(c...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 4899, 13, 11250, 1330, 17056, 11, 1874, 2454, 16934, 198, 6738, 4899, 13, 16737, 1330, 8562, 49493, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
3.184211
114
import re import argparse from string import punctuation from scipy.io import wavfile import torch import yaml import numpy as np from torch.utils.data import DataLoader from g2p_en import G2p from pypinyin import pinyin, Style from utils.model import get_model, get_vocoder from utils.tools import to_dev...
[ 11748, 302, 201, 198, 11748, 1822, 29572, 201, 198, 6738, 4731, 1330, 21025, 2288, 201, 198, 6738, 629, 541, 88, 13, 952, 1330, 266, 615, 7753, 201, 198, 201, 198, 11748, 28034, 201, 198, 11748, 331, 43695, 201, 198, 11748, 299, 32152...
2.212658
2,765
""" swat-s1 topology """ from mininet.topo import Topo as TopoBase from pinger import Pinger from plc2 import Plc2 from plc1 import Plc1
[ 37811, 198, 2032, 265, 12, 82, 16, 1353, 1435, 198, 37811, 198, 198, 6738, 949, 42504, 13, 4852, 78, 1330, 5849, 78, 355, 5849, 78, 14881, 198, 198, 6738, 279, 3889, 1330, 350, 3889, 198, 6738, 458, 66, 17, 1330, 1345, 66, 17, 198...
2.641509
53
import matplotlib.pyplot as plt import numpy as np from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) rc('text', usetex=True) c =0.9996 f = lambda p: 1/((1-c)+(c/p)) p_list = np.arange(1,1024) N=100 tsm = 18.4e-9 tnode = 65e-9 tproc = 0.08e-9 toff = 27e-3 T = N*N/6 dt = 0.24 ...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 48321, 198, 6015, 10786, 10331, 3256, 1174, 90, 6, 17989, 10354, 6, 82, 504, 12, 2655, 361, 41707, 82, 50...
2.153846
962
from urllib.request import urlopen # ------------------ MITAB FUNCTIONS ------------------ # ----------------------------------------------------- # Note that we are only going to get 10 interactions at most queryUrl = "http://www.ebi.ac.uk/Tools/webservices/psicquic/intact/webservices/current/search/query/BBC1?first...
[ 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 198, 2, 34400, 438, 17168, 6242, 29397, 4177, 11053, 34400, 438, 198, 198, 2, 20368, 19351, 12, 198, 2, 5740, 326, 356, 389, 691, 1016, 284, 651, 838, 12213, 379, 749, 198, 22...
2.944664
253
# -*- coding: utf-8 -*- """ Created on Sep 6, 2020 @author: eljeffe Copyright 2020 Root the Box 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/licen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 8621, 718, 11, 12131, 198, 198, 31, 9800, 25, 1288, 73, 14822, 68, 628, 220, 220, 220, 15069, 12131, 20410, 262, 8315, 628, 220, 220, 220, 4996...
2.916667
768
# 0480-matrix-no-numpy-mul2.py # Multiply a matrix with a matrix # 20220216 Create this example. import matrix as mat # multiply a matrix with a matrix # define a list as two-dimension matrix m1 = [ [1, 1, 1], [1, 2, 1], ] m2 = [ [1, 1], [1, 2], [1, 1], ] m3 = mulmat2(m1, m2) # display ...
[ 2, 8702, 1795, 12, 6759, 8609, 12, 3919, 12, 77, 32152, 12, 76, 377, 17, 13, 9078, 198, 2, 7854, 541, 306, 257, 17593, 351, 257, 17593, 198, 2, 1160, 17572, 20666, 13610, 428, 1672, 13, 198, 198, 11748, 17593, 355, 2603, 198, 198,...
2.09
200
#!/usr/bin/env python3 ''' MIT License Copyright (c) 2020 Futurewei Cloud 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, cop...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 7061, 6, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 12131, 10898, 42990, 10130, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, ...
2.993289
1,043
# Advection test evolution from models import advection from bcs import periodic from simulation import simulation from methods import minmod_lf from rk import rk2 from grid import grid Npoints = 20 Ngz = 2 interval = grid([-0.5, 0.5], Npoints, Ngz) model = advection.advection(v=1, initia...
[ 2, 1215, 303, 596, 1332, 6954, 198, 198, 6738, 4981, 1330, 512, 303, 596, 198, 6738, 275, 6359, 1330, 27458, 198, 6738, 18640, 1330, 18640, 198, 6738, 5050, 1330, 949, 4666, 62, 1652, 198, 6738, 374, 74, 1330, 374, 74, 17, 198, 6738...
2.40708
226
import tensorflow as tf """tf.tensordot(a, b, axes, name=None) 功能:同numpy.tensordot,根据axis计算点乘。 输入:axes=1或axes=[[1],[0]],即为矩阵乘。""" a = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) b = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) z = tf.tensordot(a, b, axes=[[1], [1]]) # 第一个矩阵的行乘上第二个矩阵的行 z1 ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 37811, 27110, 13, 83, 641, 585, 313, 7, 64, 11, 275, 11, 34197, 11, 1438, 28, 14202, 8, 198, 27950, 253, 47797, 121, 171, 120, 248, 28938, 234, 77, 32152, 13, 83, 641, 585, 313, 171,...
1.35625
480
class DELpy(Exception): """ Raise this so people could easily catch the exception """ pass
[ 4871, 28163, 9078, 7, 16922, 2599, 201, 198, 220, 220, 220, 37227, 201, 198, 220, 220, 220, 35123, 428, 523, 661, 714, 3538, 4929, 262, 6631, 201, 198, 220, 220, 220, 37227, 201, 198, 220, 220, 220, 1208, 201, 198 ]
2.8
40
import tensorflow as tf import sys import numpy as np import json import torch import pandas as pd from tensorflow.saved_model import tag_constants from os.path import dirname, realpath # Add root directory to path file_path = realpath(__file__) file_dir = dirname(file_path) parent_dir = dirname(file_dir) sys.path.app...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 11748, 28034, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 11192, 273, 11125, 13, 82, 9586, 62, 19849, 1330, 7621, ...
1.883361
2,392
from itertools import izip try: from carbon.storage import loadStorageSchemas, loadAggregationSchemas SCHEMAS = loadStorageSchemas() AGGREGATION_SCHEMAS = loadAggregationSchemas() except ImportError: SCHEMAS = [] AGGREGATION_SCHEMAS = [] # Update metadata to match carbon schemas.
[ 6738, 340, 861, 10141, 1330, 220, 528, 541, 198, 198, 28311, 25, 198, 220, 422, 6588, 13, 35350, 1330, 3440, 31425, 27054, 5356, 11, 3440, 46384, 43068, 27054, 5356, 198, 220, 22374, 3620, 1921, 796, 3440, 31425, 27054, 5356, 3419, 198,...
3.072917
96
import numpy as np import pytest import pytest_check as check from pointcloudset import PointCloud from pointcloudset.config import OPS @pytest.mark.parametrize("op", ["<", ">=", "<="])
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 11748, 12972, 9288, 62, 9122, 355, 2198, 198, 198, 6738, 966, 17721, 2617, 1330, 6252, 18839, 198, 6738, 966, 17721, 2617, 13, 11250, 1330, 40490, 628, 628, 198, 198, 31, 9078...
3.047619
63
from django.db import models # Create your models here. #class Al_batch_output(models.Models): #class Coverage_by_base(models.Model): # patient = models.ForeignKey(Patient, on_delete=models.CASCADE) # chromosome = models.CharField(max_length=2) # genomic_coordinate = models.CharField(max_length=30) # dep...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 198, 2, 4871, 978, 62, 43501, 62, 22915, 7, 27530, 13, 5841, 1424, 2599, 198, 198, 2, 4871, 33998, 62, 1525, 62, 8692, 7, 27530, 13, 17633, 259...
2.605128
195
from django.conf.urls import url from django.views.generic import TemplateView from .api import ListApi, CardApi urlpatterns = [ url(r'^lists$', ListApi.as_view()), url(r'^cards$', CardApi.as_view()), url(r'^home', TemplateView.as_view(template_name="scrumboard/home.html")), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 628, 198, 6738, 764, 15042, 1330, 7343, 32, 14415, 11, 5172, 32, 14415, 198, 198, 6371, 33279, 82, 796, 685, 1...
2.504274
117
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("EQUALITY_ROOT", "~/.equality/mainnet"))).resolve()
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 7206, 38865, 62, 13252, 2394, 62, 34219, 796, 10644, 7, 418, 13, 6978, 13, 11201, 392, 7220, 7, 418, 13, 1136, 24330, 7203, 36, 10917, 1847, 9050, 62, 13252, 2394, 1600, 366,...
2.62963
54
import datetime def days_in_month(year, month): """ Inputs: year - an integer between datetime.MINYEAR and datetime.MAXYEAR representing the year month - an integer between 1 and 12 representing the month Returns: The number of days in the input month. """ if month...
[ 11748, 4818, 8079, 198, 198, 4299, 1528, 62, 259, 62, 8424, 7, 1941, 11, 1227, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 23412, 82, 25, 198, 220, 220, 220, 220, 220, 614, 220, 532, 281, 18253, 1022, 4818, 8079, 13, 2367...
2.385911
1,306
import argparse import json import logging import numpy as np from datetime import datetime from os import path from webias.constants import BIAS_METRIC_LIMITS, BIAS_METRIC_ZERO, LOGGING_CONFIG def calculate_mean_values(results_per_run: list) -> float: """Calculate the mean values of each dimension for the give...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 28686, 1330, 3108, 198, 198, 6738, 3992, 4448, 13, 9979, 1187, 1330, 20068, 1921, 62, ...
2.516715
4,128
from searcher import NCBI_searcher # this api_key is only for testing. So pls use your api_key from ur NCBI accounts, otherwise it will effect your speed api_key = '1cb4976dd163905feedacce5da0f10552309' keywords = "metabolomics" keywords_file = "propanoyl-CoA" searcher = NCBI_searcher(api_key=api_key, len_limit=0) ...
[ 6738, 9622, 2044, 1330, 8823, 3483, 62, 325, 283, 2044, 628, 198, 2, 428, 40391, 62, 2539, 318, 691, 329, 4856, 13, 1406, 458, 82, 779, 534, 40391, 62, 2539, 422, 2956, 8823, 3483, 5504, 11, 4306, 340, 481, 1245, 534, 2866, 198, 1...
2.735294
170
# coding: utf-8 """ CCCS No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa:...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 327, 4093, 50, 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, 2032, 79...
2.190661
18,289
from ij import IJ from ij.gui import ShapeRoi from java.awt import Color, Polygon from java.awt.geom import PathIterator w = int(36) h = int(42) lineWidth = 2 arrowWidth = 16 image = IJ.createImage('Download arrow', 'rgb', w, h, 1) ip = image.getProcessor() ip.setLineWidth(lineWidth) ip.setColor(Color(0x65a4e3)) roi ...
[ 6738, 1312, 73, 1330, 314, 41, 198, 6738, 1312, 73, 13, 48317, 1330, 25959, 15450, 72, 198, 6738, 20129, 13, 707, 83, 1330, 5315, 11, 12280, 14520, 198, 6738, 20129, 13, 707, 83, 13, 469, 296, 1330, 10644, 37787, 198, 198, 86, 796, ...
2.153137
542
"""Test LND functions""" import logging import random import json import unittest from unittest import mock from noma import lnd import noma.config as cfg class TestComplete(Exception): """Raise me to stop the test, we're done""" class Unhappy(Exception): """Something has gone wrong""" class LndCreateWall...
[ 37811, 14402, 406, 8575, 5499, 37811, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 33918, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 1330, 15290, 198, 6738, 4515, 64, 1330, 300, 358, 198, 11748, 4515, 64, 13, 11250, 355, ...
2.093692
3,757
#!/usr/bin/python3 from jmespath import search as queryJson import boto3 import json if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 474, 6880, 6978, 1330, 2989, 355, 12405, 41, 1559, 198, 11748, 275, 2069, 18, 198, 11748, 33918, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, ...
2.711111
45
# Copyright 2014 Rackspace # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 15069, 1946, 37927, 13200, 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, 198, 2, 220, 220, 220, 407, 779, 428, 2393,...
3.591743
218
from collections.abc import Mapping from typing import Any, Optional from .object_schema import InvalidObjectError, InvalidTypeError from .schema import Schema, SchemaError
[ 6738, 17268, 13, 39305, 1330, 337, 5912, 198, 6738, 19720, 1330, 4377, 11, 32233, 198, 198, 6738, 764, 15252, 62, 15952, 2611, 1330, 17665, 10267, 12331, 11, 17665, 6030, 12331, 198, 6738, 764, 15952, 2611, 1330, 10011, 2611, 11, 10011, ...
4
44
''' read_vcf Read a vcf file into pandas data frame ''' import pandas as pd from typing import TextIO, List import numpy as np def import_vcf(vcf_reader: TextIO, dataframe: pd.DataFrame = None, check_phasing: bool = False, individuals: List[str] = None) -> pd.DataFrame:...
[ 7061, 6, 198, 961, 62, 85, 12993, 198, 198, 5569, 257, 410, 12993, 2393, 656, 19798, 292, 1366, 5739, 198, 7061, 6, 628, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 19720, 1330, 8255, 9399, 11, 7343, 198, 11748, 299, 32152, 355...
2.075489
2,146
import datetime import logging import string from unittest import TestCase from unittest import mock from elasticsearch_raven import exceptions from elasticsearch_raven import transport
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 4731, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 6738, 27468, 12947, 62, 430, 574, 1330, 13269, 198, 6738, 27468, 12947, 62, 430, 574, ...
4.12766
47
import binascii import functools import json import os from rest_framework import permissions from rest_framework import exceptions from api.exceptions import * from api.cryptor import ApiCrypto
[ 11748, 9874, 292, 979, 72, 198, 11748, 1257, 310, 10141, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 1334, 62, 30604, 1330, 21627, 198, 6738, 1334, 62, 30604, 1330, 13269, 198, 198, 6738, 40391, 13, 1069, 11755, 1330, 1635, 19...
3.807692
52
from core.models.view_tables import Edocument from core.models.core_tables import TypeDef from core.utilities.wf1_utils import generate_robot_file, generate_robot_file_wf1 #
[ 6738, 4755, 13, 27530, 13, 1177, 62, 83, 2977, 1330, 1717, 7990, 198, 6738, 4755, 13, 27530, 13, 7295, 62, 83, 2977, 1330, 5994, 7469, 198, 6738, 4755, 13, 315, 2410, 13, 86, 69, 16, 62, 26791, 1330, 7716, 62, 305, 13645, 62, 7753...
2.966102
59
from typing import Optional, Union import tensorflow as tf from tensorflow.python.layers.core import fully_connected from hotpot.elmo.elmo import ElmoWrapper from hotpot.elmo.lm_model import LanguageModel from hotpot.encoder import QuestionsAndParagraphsEncoder from hotpot.models.multiple_context_models import Multipl...
[ 6738, 19720, 1330, 32233, 11, 4479, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 75, 6962, 13, 7295, 1330, 3938, 62, 15236, 198, 198, 6738, 3024, 13059, 13, 417, 5908, 13, 417, 5908, 1330, 25...
3.730463
627
import urllib.request as urlreq import io,json import pandas as pd # ****************************************************************************************************************************************** def download_smiles(myList,intv=1) : """Retrieve canonical SMILES strings for a list of input INCHIKEYS. ...
[ 11748, 2956, 297, 571, 13, 25927, 355, 19016, 42180, 198, 11748, 33245, 11, 17752, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 41906, 17174, 17174, 17174, 4557, 1174, 198, 4299, 4321, 62, 5796, 2915, 7, 1820, 8053, 11, 600, 85,...
2.080595
3,896
# main imports import numpy as np import pandas as pd import sys, os, argparse import subprocess import time import json # models imports from sklearn.utils import shuffle from sklearn.externals import joblib from sklearn.metrics import accuracy_score, f1_score, recall_score, roc_auc_score from sklearn.model_selectio...
[ 2, 1388, 17944, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 25064, 11, 28686, 11, 1822, 29572, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 33918, 198, 198, 2, 4981, 17944, 198, 6...
2.865789
380
/home/runner/.cache/pip/pool/b7/df/1e/7980259571f5a43b5ac0c36215dfc4b1485986d14af13b40a821ae930f
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 65, 22, 14, 7568, 14, 16, 68, 14, 3720, 1795, 25191, 42875, 69, 20, 64, 3559, 65, 20, 330, 15, 66, 2623, 23349, 7568, 66, 19, 65, 18294, 3270, 4521, 67, 1415, 1878, ...
1.777778
54
# Ashwin Chidambaram ## # Task: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum ## ##########################################################...
[ 2, 7844, 5404, 609, 312, 4131, 41158, 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.735763
439
import tequila as tq import numpy as np import typing
[ 11748, 573, 43652, 355, 256, 80, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19720, 628, 198 ]
3.294118
17
# These need to be at the top to allow for running on cluster import os import random import sys cwd = os.getcwd() sys.path.append(cwd) # Other imports import json import getopt from h_captionmodel import CaptionModel import pickle import time import tensorflow.keras.backend as K arguments = getopt.g...
[ 2, 2312, 761, 284, 307, 379, 262, 1353, 284, 1249, 329, 2491, 319, 13946, 201, 198, 11748, 28686, 201, 198, 11748, 4738, 201, 198, 11748, 25064, 201, 198, 201, 198, 66, 16993, 796, 28686, 13, 1136, 66, 16993, 3419, 201, 198, 17597, ...
2.356013
1,264
#! /usr/bin/python3 import os import telegram_send import requests from datetime import date,datetime from time import time,ctime,sleep #Refresh Interval in seconds ref_interval = 5 d_today = date.today() age_limit = 18 __district_code = "363" dt = d_today.strftime("%d/%m/%Y") __date_today = str(dt).replace("/","...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 28686, 198, 11748, 573, 30536, 62, 21280, 198, 11748, 7007, 198, 6738, 4818, 8079, 1330, 3128, 11, 19608, 8079, 198, 6738, 640, 1330, 640, 11, 310, 524, 11, 42832, 198, 198, 2,...
2.514423
208
import sys print ("#icebucketchallenge vs #alsicebucketchallenge, percentage change") print_change(200,500,100,300) print_change(500,2000,300,1500) print_change(2000,12000,1500,13000) print_change(12000,24000,13000,25000) print_change(24000,65000,25000,105000) print_change(65000,70000,105000,85000) # read the last te...
[ 11748, 25064, 198, 198, 4798, 5855, 2, 501, 27041, 7569, 439, 3540, 3691, 1303, 874, 501, 27041, 7569, 439, 3540, 11, 5873, 1487, 4943, 198, 4798, 62, 3803, 7, 2167, 11, 4059, 11, 3064, 11, 6200, 8, 198, 4798, 62, 3803, 7, 4059, 1...
2.250923
271
#!/usr/bin/env python from setuptools import setup import gscholar setup(name='gscholar', version=gscholar.__VERSION__, description='Python library to query Google Scholar.', long_description='This package provides a python package and CLI to query google scholar and get references in various form...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 11748, 308, 20601, 6192, 198, 198, 40406, 7, 3672, 11639, 14542, 354, 6192, 3256, 198, 220, 220, 220, 220, 220, 2196, 28, 14542, 354...
2.466844
377
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Homer Strong, Radim Rehurek # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """This module implements the "hashing trick" [1]_ -- a mapping between words and their integer ids using a fixed and static mapping. Notes -----...
[ 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, 34, 8, 2321, 28440, 13535, 11, 5325, 320, 797, 71, 495, 74, 198, 2, 49962, 739, 262, 22961, ...
2.435998
5,328
#!/usr/bin/python #'''''''10''''''''20''''''''30''''''''40''''''''50''''''''60''''''''70''''''''80 '''_____________________________________________________________________________ ' ' Created By: Kevin M. Albright ' Creation Date: 03.24.2014 ' ' Modified By: Kevin M. Albright ' Last Modified: 03.30.2014 ' ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 39115, 7061, 6, 940, 39115, 39115, 1238, 39115, 39115, 1270, 39115, 39115, 1821, 39115, 39115, 1120, 39115, 39115, 1899, 39115, 39115, 2154, 39115, 39115, 1795, 198, 7061, 6, 27193, 2602, 2934...
2.851977
1,770
from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords from sklearn.metrics.pairwise import cosine_similarity import en_coref_lg import networkx as nx import pandas as pd import numpy as np nlp = en_coref_lg.load() # paths # embedding_path = "../../data/embeddings/" # article summarizer # def g...
[ 6738, 299, 2528, 74, 13, 30001, 1096, 1330, 1908, 62, 30001, 1096, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 2245, 10879, 198, 6738, 1341, 35720, 13, 4164, 10466, 13, 24874, 3083, 1330, 8615, 500, 62, 38610, 414, 198, 11748,...
2.205276
2,085
import cv2 import keras import numpy as np from keras.models import * from keras.layers import * from keras.optimizers import * from .base import EdgeDetector # Size of the edge mask matrix TARGET_IMAGE_SIZE = 256 class UNetEdgeDetector(EdgeDetector): """ EdgeDetector implementation which uses the UNet deep ...
[ 11748, 269, 85, 17, 198, 11748, 41927, 292, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 27530, 1330, 1635, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 1635, 198, 6738, 41927, 292, 13, 40085, 11341, 1330, 1635, 198, 1...
2.553628
634
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # CDS-ILS is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """CDS-ILS migrator module.""" from cds_dojson.overdo import OverdoBase serial_marc21 = OverdoBase(entry_point_models="cd...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 12131, 327, 28778, 13, 198, 2, 198, 2, 327, 5258, 12, 45484, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 34...
2.653266
199
import connexion import six from papahana.models.instrument_enum import InstrumentEnum from papahana.models.instrument_package import InstrumentPackage from papahana import util from papahana.controllers import controller_helper as utils def instrument_packages(instrument): """instrument_packages Retrieves...
[ 11748, 369, 12413, 295, 198, 11748, 2237, 198, 198, 6738, 20461, 993, 2271, 13, 27530, 13, 259, 43872, 62, 44709, 1330, 42410, 4834, 388, 198, 6738, 20461, 993, 2271, 13, 27530, 13, 259, 43872, 62, 26495, 1330, 42410, 27813, 198, 6738, ...
3.087282
802
from collections import OrderedDict import torch from torchvision import models from torchvision.ops import FeaturePyramidNetwork from dvmvs.config import Config from dvmvs.convlstm import MVSLayernormConvLSTMCell from dvmvs.layers import conv_layer, depth_layer_3x3 fpn_output_channels = 32 hyper_channels = 32 ...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 28034, 198, 6738, 28034, 10178, 1330, 4981, 198, 6738, 28034, 10178, 13, 2840, 1330, 27018, 20519, 20255, 26245, 198, 198, 6738, 288, 14761, 14259, 13, 11250, 1330, 17056, 198, 673...
3.125
104
#!/usr/bin/python from fabric.operations import local as lrun, run from fabric.api import env,cd,run,settings,task from fabric.colors import cyan,red import sys # Usage for VXML -> fab domain_vxml -H <hostname> # Usage for VCS -> fab domain_vcs -H <hostname> env.user = 'root' # Take the host name argument and split it ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 6738, 9664, 13, 3575, 602, 1330, 1957, 355, 300, 5143, 11, 1057, 198, 6738, 9664, 13, 15042, 1330, 17365, 11, 10210, 11, 5143, 11, 33692, 11, 35943, 198, 6738, 9664, 13, 4033, 669, 1330, 36...
3.338129
278
import sympy as sy from scipy import signal
[ 11748, 10558, 88, 355, 827, 198, 6738, 629, 541, 88, 1330, 6737, 198 ]
3.384615
13
from .question import Question from .matcher import Matcher see_that = Condition
[ 6738, 764, 25652, 1330, 18233, 198, 6738, 764, 6759, 2044, 1330, 6550, 2044, 628, 198, 198, 3826, 62, 5562, 796, 24295, 198 ]
3.818182
22
# from clld.web.util.helpers import rendered_sentence
[ 2, 198, 6738, 269, 297, 67, 13, 12384, 13, 22602, 13, 16794, 364, 1330, 15111, 62, 34086, 594 ]
2.944444
18
from __future__ import absolute_import from django import template from django.template.loader import render_to_string from alacarte import get_menus register = template.Library() @register.tag
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 198, 6738, 435, 330, 32074, 1330, 651, 62, 3653, 385, 198, ...
3.571429
56
from .base import CallbackEngine, Callback from . import essentials from . import scheduling
[ 6738, 764, 8692, 1330, 4889, 1891, 13798, 11, 4889, 1891, 198, 6738, 764, 1330, 41954, 198, 6738, 764, 1330, 26925 ]
4.6
20