content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/python3.4 # -*-coding:utf-8 -* """ https://openclassrooms.com/courses/apprenez-a-programmer-en-python/le-reseau LA FIN LE TERMINAL QUITTE PYTHON : DONC CE PROGRAMME NE MARCHE PAS !! """ # Les deux lignes prcdentes serviraient si je rendais ce fichier # directement excutable import socket # Construire n...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 19, 198, 2, 532, 9, 12, 66, 7656, 25, 40477, 12, 23, 532, 9, 198, 37811, 198, 198, 5450, 1378, 9654, 4871, 9649, 13, 785, 14, 66, 39975, 14, 1324, 25924, 89, 12, 64, 12, 23065, 647...
2.477137
503
import os import sys import time from tqdm import tqdm as print_progress import csv import json import logging import numpy as np import pandas as pd import random import cv2 from PIL import Image from matplotlib import pyplot as plt import re import requests from io import BytesIO from bs4 impo...
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 640, 201, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 355, 3601, 62, 33723, 201, 198, 201, 198, 11748, 269, 21370, 201, 198, 11748, 33918, 201, 198, 11748, 18931, 201, 198, 2...
2.468013
594
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf from inferbeddings.regularizers import TransEEquivalentPredicateRegularizer from inferbeddings.regularizers import DistMultEquivalentPredicateRegularizer from inferbeddings.regularizers import ComplExEquivalentPredicateRegularizer from inferbeddings.r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 13249, 3077, 67, 654, 13, 16338, 11341, 1330, 3602, 6500, 421, 29540, 39156,...
3.377778
135
""" Code illustration: 8.11 Chaos Game Tkinter GUI Application Development Blueprints """ import random from tkinter import Tk, Canvas import math WIDTH = 800 HEIGHT = 500 v1 = (float(WIDTH/2), 0.0) v2 = (0.00, float(HEIGHT)) v3 = (float(WIDTH), float(HEIGHT)) last_point = None root = Tk() canvas = Canvas(roo...
[ 37811, 198, 10669, 20936, 25, 807, 13, 1157, 198, 220, 220, 220, 13903, 3776, 198, 51, 74, 3849, 25757, 15678, 7712, 4518, 17190, 198, 37811, 198, 11748, 4738, 198, 6738, 256, 74, 3849, 1330, 309, 74, 11, 1680, 11017, 198, 11748, 1068...
2.584699
183
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import wagtail.wagtailcore.fields import wagtail.wagtailcore.blocks import datetime import wagtail.wagtailimages.blocks
[ 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, 266, 363, 13199, 13, 86, 363,...
2.948052
77
""" 17.17 Multi Search: Given a string b and an array of smaller strings T, design a method to search b for each small string in T. In - text: str, words: List[str] Out - List[str] lgget`s go to the party tonight? ['go', 'test', 'jump'] return ['go'] O(k^2 + n*t) time complexity, where k is the size of text, n is ...
[ 37811, 198, 1558, 13, 1558, 15237, 11140, 25, 11259, 257, 4731, 275, 290, 281, 7177, 286, 4833, 13042, 309, 11, 1486, 257, 2446, 284, 2989, 275, 329, 198, 27379, 1402, 4731, 287, 309, 13, 198, 198, 818, 532, 2420, 25, 965, 11, 2456,...
2.648084
287
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="replacefs", version="1.2.0", python_requires='>=3', author="yoarch", author_email="yo.managements@gmail.com", description="Search and replace CLI tool for strings on the all system", ...
[ 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, ...
2.608553
304
""" modulegraph tests """
[ 37811, 953, 84, 16606, 5254, 37227, 198 ]
3.714286
7
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys if __name__ == '__main__': A = list(map(int, input().split())) if len(A) != 10: print(" ", file=sys.stderr) exit(1) s = 0 for item in A: if not ((item % 2) == 0): s += item x0 = 0 # x1...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 25064, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 2...
1.689055
402
import requests import re import sys xml = re.compile(r'<.+>|\n') # queries using closed intervals [x,y], 1-based # queries using half-open intervals [x,y), 0-based
[ 11748, 7007, 198, 11748, 302, 198, 11748, 25064, 198, 198, 19875, 796, 302, 13, 5589, 576, 7, 81, 6, 27, 13, 10, 29, 91, 59, 77, 11537, 198, 198, 2, 20743, 1262, 4838, 20016, 685, 87, 11, 88, 4357, 352, 12, 3106, 628, 198, 2, ...
2.816667
60
import cmath import math import logging import random import plotly import pandas
[ 11748, 269, 11018, 198, 11748, 10688, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 7110, 306, 198, 11748, 19798, 292, 198 ]
3.904762
21
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 24958, 12, 10262, 658, 46665, 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, ...
3.618893
307
from invenio_oarepo_oai_pmh_harvester.register import Decorators from invenio_oarepo_oai_pmh_harvester.rules.utils import iter_array from invenio_oarepo_oai_pmh_harvester.transformer import OAITransformer
[ 6738, 287, 574, 952, 62, 78, 533, 7501, 62, 78, 1872, 62, 4426, 71, 62, 9869, 1158, 353, 13, 30238, 1330, 4280, 273, 2024, 198, 6738, 287, 574, 952, 62, 78, 533, 7501, 62, 78, 1872, 62, 4426, 71, 62, 9869, 1158, 353, 13, 38785, ...
2.575
80
import unittest import queries
[ 11748, 555, 715, 395, 198, 198, 11748, 20743, 628 ]
3.666667
9
from MedipReport import ProjectTracker from CGATReport.Tracker import SingleTableTrackerRows, \ SingleTableTrackerEdgeList _gat_analysis = {"Results": GatResults, "SignificantResults": GatSignificantResults, "Fold": GatLogFold, "LogFold": GatLogFold} _gat_...
[ 6738, 2019, 541, 19100, 1330, 4935, 35694, 198, 6738, 29925, 1404, 19100, 13, 35694, 1330, 14206, 10962, 35694, 49, 1666, 11, 3467, 198, 220, 220, 220, 14206, 10962, 35694, 37021, 8053, 628, 628, 628, 628, 198, 62, 41268, 62, 20930, 796...
2.262009
229
from tkinter import * from interfaces.functions import centralize from tkinter import messagebox from interfaces.functions import update_session_data_csv, update_clients_csv, get_current_balance
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 20314, 13, 12543, 2733, 1330, 4318, 1096, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 198, 6738, 20314, 13, 12543, 2733, 1330, 4296, 62, 29891, 62, 7890, 62, 40664, 11, 4296, 62, 565, 2334, ...
3.843137
51
''' cardcollectordb URL Configuration ''' from django.contrib import admin from django.urls import include, path from account.views import SignUp urlpatterns = [ path('admin/', admin.site.urls), path('account/', include('account.urls'), name='account'), path('signup/', SignUp.as_view(), name='signup'), ]...
[ 7061, 6, 198, 9517, 33327, 585, 65, 10289, 28373, 198, 7061, 6, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 198, 6738, 1848, 13, 33571, 1330, 5865, 4933, 628, ...
2.944954
109
# Copyright 2021 The Kubeflow Authors # # 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...
[ 2, 15069, 33448, 383, 24921, 891, 9319, 46665, 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.866771
638
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from datetime import datetime, date from decimal import Decimal from base import GAETestCase from notification_app.notification_model import Notification from routes.notifications import rest from gaegraph.model import Node from mock impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 3128, 198, 6738, 32465, 1330, 4280, 4402, 1...
3.739583
96
#!/usr/bin/env python ''' yamlcfg Bring in Configs into namespace ''' from yamlcfg.conf import Config as BaseConfig from yamlcfg.yml import YAMLConfig YMLConfig = YAMLConfig YamlConfig = YAMLConfig from yamlcfg.util import normalize, validate_ext from yamlcfg.env import check_env
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 331, 43695, 37581, 198, 198, 31416, 287, 17056, 82, 656, 25745, 198, 7061, 6, 198, 198, 6738, 331, 43695, 37581, 13, 10414, 1330, 17056, 355, 7308, 16934, 198, 6738, 331, 4369...
2.938144
97
# -*- coding: utf-8 -*- from scrapy.item import Item, Field
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 15881, 88, 13, 9186, 1330, 9097, 11, 7663 ]
2.565217
23
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from ..modeldb import Lineage_pb2 as modeldb_dot_Lineage__pb2 def add_LineageServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'addLineage': grpc.unary_unary_rpc_method_handler( servicer.addLineag...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 11748, 1036, 14751, 198, 198, 6738, 11485, 14171, 335, 65, 1330, 6910, 496, 62, 40842, 17, 355, 4235, 335, 65, 62, 26518, 62, 13949, 49...
2.341804
787
import numpy import logging import theano import theano.tensor as TT from theano.gradient import grad_clip from sparnn.utils import * from sparnn.layers import Layer logger = logging.getLogger(__name__)
[ 198, 11748, 299, 32152, 198, 11748, 18931, 198, 11748, 262, 5733, 198, 11748, 262, 5733, 13, 83, 22854, 355, 26653, 198, 6738, 262, 5733, 13, 49607, 1330, 3915, 62, 15036, 198, 198, 6738, 599, 1501, 77, 13, 26791, 1330, 1635, 198, 673...
3.136364
66
import base64 import glob import gzip if __name__ == '__main__': for submission_name in ['tf', 'mx']: build_script(submission_name)
[ 11748, 2779, 2414, 198, 11748, 15095, 198, 11748, 308, 13344, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 329, 14498, 62, 3672, 287, 37250, 27110, 3256, 705, 36802, 6, 5974, 198, 220, 2...
2.578947
57
""" DOCSTRING """ import dash import dash.dependencies as dependencies import dash_core_components.Graph as Graph import dash_core_components.Input as Input import dash_html_components.Div as Div import dash_html_components.H1 as H1 app = dash.Dash() app.layout = Div(children=[Input(id='input', value='blank', type='te...
[ 37811, 198, 38715, 18601, 2751, 198, 37811, 198, 11748, 14470, 198, 11748, 14470, 13, 45841, 3976, 355, 20086, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 13, 37065, 355, 29681, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 13, 20560, 3...
3.17094
117
# My script to process the generated data # The temperature we want to aim for aimTemperature = float(30 + 273) # To halt the script import sys # Numpy matrices import numpy as np #Used to get the epoch time to calculate the time difference dt import datetime import time #Regular expressions import re # Generate rando...
[ 2, 2011, 4226, 284, 1429, 262, 7560, 1366, 198, 2, 383, 5951, 356, 765, 284, 4031, 329, 198, 1385, 42492, 796, 12178, 7, 1270, 1343, 38549, 8, 198, 198, 2, 1675, 17369, 262, 4226, 198, 11748, 25064, 198, 2, 399, 32152, 2603, 45977, ...
2.734886
2,448
""" graphjson module pull an event from neo4j and creates graphjson formated file to be used with AlchemyJS Written by Ray Bernard ray@suprfanz.com """ import json from neo4j.v1 import GraphDatabase, basic_auth from config import neo4j_dbip, neo4j_admin, neo4j_password session = GraphDatabase.driver("bolt://{}:7687"...
[ 37811, 198, 34960, 17752, 8265, 2834, 281, 1785, 422, 19102, 19, 73, 290, 8075, 198, 34960, 17752, 1296, 515, 2393, 284, 307, 973, 351, 43987, 20120, 198, 25354, 416, 7760, 16197, 26842, 31, 37330, 81, 24408, 89, 13, 785, 198, 198, 37...
2.56701
194
""" dataset.py defines a container for a training dataset. """ import os import torch from torchvision import datasets, transforms
[ 37811, 198, 19608, 292, 316, 13, 9078, 15738, 257, 9290, 329, 257, 3047, 27039, 13, 198, 37811, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 28034, 10178, 1330, 40522, 11, 31408, 628 ]
4.125
32
# Copyright (C) 2012 - 2014 EMC 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 # # Un...
[ 2, 15069, 357, 34, 8, 2321, 532, 1946, 412, 9655, 10501, 13, 198, 2, 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, 19...
3.31441
229
# -*- coding: utf-8 -*- # Author : Manki Baek # e-mail : bmg8551@seculayer.co.kr # Powered by Seculayer 2021 Service Model Team from mlps.core.data.cnvrtr.ConvertAbstract import ConvertAbstract if __name__ == "__main__": payload = "192.168.1.110" tokenizer = IPTransferDivide(stat_dict=None, arg_list=None) ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 6434, 1058, 337, 962, 72, 8999, 988, 198, 2, 304, 12, 4529, 1058, 275, 11296, 23, 43697, 31, 2363, 377, 2794, 13, 1073, 13, 38584, 198, 2, 45090, 416, 1882, 377, ...
2.561151
139
import DBScrape import calendar import datetime import time import csv import sys import os days = 30 R = roomAnalytics() R.roomData() R.saveData()
[ 11748, 20137, 3351, 13484, 198, 11748, 11845, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 12545, 796, 1542, 628, 628, 628, 628, 198, 198, 49, 796, 2119, 37702, 14094, ...
2.962264
53
import pytest from unittest import mock from reactive import kubernetes_master from charms.reactive import endpoint_from_flag, remove_state from charmhelpers.core import hookenv
[ 11748, 12972, 9288, 198, 6738, 555, 715, 395, 1330, 15290, 198, 6738, 32242, 1330, 479, 18478, 3262, 274, 62, 9866, 198, 6738, 41700, 13, 260, 5275, 1330, 36123, 62, 6738, 62, 32109, 11, 4781, 62, 5219, 198, 6738, 20024, 16794, 364, 1...
3.770833
48
# # PySNMP MIB module HH3C-DOT3-EFM-EPON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-DOT3-EFM-EPON-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:26:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 47138, 18, 34, 12, 35, 2394, 18, 12, 36, 23264, 12, 8905, 1340, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723...
2.503312
22,793
import argparse from module_a.fun_1 import fun_1 from module_c.fun_4 import fun_4 from external_a.extra_fun import extra_fun if __name__ == "__main__": main()
[ 11748, 1822, 29572, 198, 198, 6738, 8265, 62, 64, 13, 12543, 62, 16, 1330, 1257, 62, 16, 198, 6738, 8265, 62, 66, 13, 12543, 62, 19, 1330, 1257, 62, 19, 198, 198, 6738, 7097, 62, 64, 13, 26086, 62, 12543, 1330, 3131, 62, 12543, ...
2.625
64
from .Proxy import Proxy from robot.libraries.BuiltIn import BuiltIn import sys from robot.libraries.Screenshot import Screenshot from robot.api import logger import I18nListener as i18n import ManyTranslations as ui from robot.utils import unic
[ 6738, 764, 44148, 1330, 38027, 198, 6738, 9379, 13, 75, 11127, 13, 39582, 818, 1330, 28477, 818, 198, 11748, 25064, 198, 6738, 9379, 13, 75, 11127, 13, 34204, 1330, 1446, 26892, 198, 6738, 9379, 13, 15042, 1330, 49706, 198, 11748, 314, ...
3.888889
63
# coding=utf-8 # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 3012, 11419, 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,...
3.666667
273
import json
[ 11748, 33918 ]
5.5
2
from time import sleep colors = {"clean": "\033[m", "red": "\033[31m", "green": "\033[32m", "yellow": "\033[33m", "blue": "\033[34m", "purple": "\033[35m", "cian": "\033[36m"} v = float(input("Enter the car speed was: ")) tic = (v - 80) * 7 print("{}Loading......
[ 6738, 640, 1330, 3993, 198, 4033, 669, 796, 19779, 27773, 1298, 37082, 44427, 58, 76, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 445, 1298, 37082, 44427, 58, 3132, 76, 1600, 198, 220, 220, 220, 220, 220, 220, 220, ...
2.33
300
# # @lc app=leetcode id=687 lang=python3 # # [687] Longest Univalue Path # # https://leetcode.com/problems/longest-univalue-path/description/ # # algorithms # Easy (34.69%) # Likes: 1312 # Dislikes: 351 # Total Accepted: 76.5K # Total Submissions: 218.3K # Testcase Example: '[5,4,5,1,1,5]' # # Given a binary tre...
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 39925, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 39925, 60, 5882, 395, 791, 2473, 518, 10644, 198, 2, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, ...
2.066784
569
#!/usr/bin/env python2.7 # -*- coding: utf-8; mode: python; -*- """ Module for reading and processing GemaNet files. Constants: POS - list of parts-of-speech present in GermaNet RELTYPES - types of GermaNet relations Classes: Germanet - main class for processing GermaNet files """ #################################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 26, 4235, 25, 21015, 26, 532, 9, 12, 198, 198, 37811, 198, 26796, 329, 3555, 290, 7587, 15669, 64, 7934, 3696, 13, 198, ...
2.820513
585
import sys sys.path.append('./python') import skyhook.common as lib import io import json import math import numpy import os import os.path import skimage.io import struct user_func = None # user_func will be defined by the exec call in meta_func lib.run(callback, meta_func)
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 4458, 14, 29412, 11537, 198, 11748, 6766, 25480, 13, 11321, 355, 9195, 198, 198, 11748, 33245, 198, 11748, 33918, 198, 11748, 10688, 198, 11748, 299, 32152, 198, 11748, 28686, 198, 11748, ...
3.146067
89
# model eval
[ 2, 2746, 5418 ]
4
3
import ply.lex # # Lexer setup # instructions = ( 'NOP', 'INT', 'IPI', 'RETINT', 'CALL', 'RET', 'CLI', 'STI', 'HLT', 'RST', 'IDLE', 'PUSH', 'POP', 'INC', 'DEC', 'ADD', 'SUB', 'CMP', 'J', 'AND', 'OR', 'XOR', 'NOT', 'SHL', 'SHR', 'SHRS', 'LW', 'LS', 'LB', 'LI', 'LIU', 'LA', 'STW', 'STS', 'STB', 'MOV', 'SWP', 'MU...
[ 11748, 35960, 13, 2588, 198, 198, 2, 198, 2, 17210, 263, 9058, 198, 2, 198, 259, 7249, 507, 796, 357, 198, 220, 705, 45, 3185, 3256, 705, 12394, 3256, 705, 4061, 40, 3256, 705, 26087, 12394, 3256, 705, 34, 7036, 3256, 705, 26087, ...
1.982609
1,150
from django.test import TestCase, override_settings from django.urls import reverse from rest_framework.test import APIClient from MyUser.models import User
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 20957, 62, 33692, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 198, 6738, 2011, 12982, 13, 27530, 1330, ...
3.697674
43
""" flashcards.commands.sets ~~~~~~~~~~~~~~~~~~~ Contains the commands and subcommands related to the sets resource. """ import os import click from flashcards import sets from flashcards import storage sets_group.add_command(new) sets_group.add_command(select)
[ 37811, 198, 34167, 27761, 13, 9503, 1746, 13, 28709, 198, 27156, 4907, 93, 198, 198, 4264, 1299, 262, 9729, 290, 850, 9503, 1746, 3519, 284, 262, 5621, 8271, 13, 198, 37811, 198, 11748, 28686, 198, 198, 11748, 3904, 198, 198, 6738, 76...
3.506494
77
"""Module containing imports for user entity feature set pipelines.""" from legiti_challenge.feature_store_pipelines.user.user_chargebacks import ( UserChargebacksPipeline, ) from legiti_challenge.feature_store_pipelines.user.user_orders import UserOrdersPipeline __all__ = ["UserChargebacksPipeline", "UserOrdersPi...
[ 37811, 26796, 7268, 17944, 329, 2836, 9312, 3895, 900, 31108, 526, 15931, 198, 6738, 6984, 72, 62, 36747, 3540, 13, 30053, 62, 8095, 62, 79, 541, 20655, 13, 7220, 13, 7220, 62, 10136, 10146, 1330, 357, 198, 220, 220, 220, 11787, 50044...
3.29
100
import numpy as np import struct import getpass import struct from datetime import datetime edge_curve = {}
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2878, 198, 11748, 651, 6603, 198, 11748, 2878, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 14907, 62, 22019, 303, 796, 23884, 628 ]
3.548387
31
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from marshmallow import Schema, fields, validate
[ 6738, 22397, 42725, 1330, 10011, 2611, 11, 7032, 11, 26571, 628 ]
4.545455
11
from styx_msgs.msg import TrafficLight import tensorflow as tf import numpy as np import rospy import cv2 import os MAX_IMAGE_WIDTH = 300 MAX_IMAGE_HEIGHT = 300
[ 6738, 8944, 87, 62, 907, 14542, 13, 19662, 1330, 23624, 15047, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 686, 2777, 88, 198, 11748, 269, 85, 17, 198, 11748, 28686, 628, 198, 22921, 62, ...
2.733333
60
import os import serial import time import binascii import textwrap import re from wifi import WIFI_SSID, WIFI_PASS if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 11389, 198, 11748, 640, 198, 11748, 9874, 292, 979, 72, 198, 11748, 2420, 37150, 198, 11748, 302, 198, 198, 6738, 43121, 1330, 370, 5064, 40, 62, 5432, 2389, 11, 370, 5064, 40, 62, 47924, 628, 628, 198, 361, ...
2.741379
58
from extension_native_helpers import * Dtool_PreloadDLL('libpandaode') from libpandaode import * from extension_native_helpers import * Dtool_PreloadDLL('libpanda') from libpanda import * Dtool_funcToMethod(convert, OdeGeom) del convert Dtool_funcToMethod(getConvertedSpace, OdeGeom) del getConvertedSpace Dtool_fu...
[ 6738, 7552, 62, 30191, 62, 16794, 364, 1330, 1635, 198, 35, 25981, 62, 6719, 2220, 35, 3069, 10786, 8019, 79, 5282, 1098, 11537, 198, 6738, 9195, 79, 5282, 1098, 1330, 1635, 198, 6738, 7552, 62, 30191, 62, 16794, 364, 1330, 1635, 198,...
2.813158
380
import gi import json gi.require_version('Gtk', '3.0') from gi.repository import Gtk
[ 11748, 308, 72, 198, 11748, 33918, 198, 198, 12397, 13, 46115, 62, 9641, 10786, 38, 30488, 3256, 705, 18, 13, 15, 11537, 198, 6738, 308, 72, 13, 260, 1930, 37765, 1330, 402, 30488, 628 ]
2.558824
34
from homeserver.voice_control.google_speech import GoogleVoiceRecognition from homeserver.voice_control.snowboy.snowboydecoder import HotwordDetector, play_audio_file #make the voicecontrol follow the device interface structure for control from homeserver.interface import DeviceInterface, DeviceTarget # import the ...
[ 198, 198, 6738, 5682, 18497, 13, 38888, 62, 13716, 13, 13297, 62, 45862, 1330, 3012, 35708, 6690, 2360, 653, 198, 6738, 5682, 18497, 13, 38888, 62, 13716, 13, 82, 2197, 7081, 13, 82, 2197, 7081, 12501, 12342, 1330, 6964, 4775, 11242, ...
4.025
120
# Name: HELLO WORLD # Author: Fenteale # # Notes: # This is just a tiny program meant to showcase what # a repository will look like when downloaded through # github. print("Hello World!") print("This is just meant to be a tiny program to show off what a repo looks like.") inp = input("Type something here: ") print...
[ 2, 6530, 25, 47899, 46, 29564, 198, 2, 6434, 25, 376, 21872, 1000, 198, 2, 220, 198, 2, 11822, 25, 198, 2, 770, 318, 655, 257, 7009, 1430, 4001, 284, 21742, 644, 198, 2, 257, 16099, 481, 804, 588, 618, 15680, 832, 198, 2, 33084,...
3.496124
129
from pyfirmata import Arduino, util import time board = Arduino('/dev/ttyACM0') while 1: board.digital[13].write(0) time.sleep(1) board.digital[13].write(1) time.sleep(1)
[ 6738, 12972, 69, 2533, 1045, 1330, 27634, 11, 7736, 198, 11748, 640, 198, 3526, 796, 27634, 10786, 14, 7959, 14, 42852, 2246, 44, 15, 11537, 198, 198, 4514, 352, 25, 198, 220, 220, 220, 3096, 13, 34725, 58, 1485, 4083, 13564, 7, 15,...
2.379747
79
import pytest from Door import Door
[ 11748, 12972, 9288, 198, 6738, 19821, 1330, 19821 ]
4.375
8
import FWCore.ParameterSet.Config as cms process = cms.Process("SiPixelCPEGenericErrorParmReaderTest") process.load("CondCore.DBCommon.CondDBSetup_cfi") process.load("FWCore.MessageService.MessageLogger_cfi") process.source = cms.Source("EmptySource") process.maxEvents = cms.untracked.PSet( input = cms.untracked...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 14681, 796, 269, 907, 13, 18709, 7203, 42801, 40809, 8697, 7156, 877, 291, 12331, 47, 1670, 33634, 14402, 4943, 198, 14681, 13, 2220, 7203, 25559, 14055, 13, 35, ...
2.018494
757
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry import test from benchmarks import silk_flags from measurements import smoothness import page_sets class SmoothnessMaps(test.Test): te...
[ 2, 15069, 2211, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 6738,...
3.392473
372
from setuptools import setup, find_packages setup(name='robot', version='1.0', author='Igor Couto', author_email='igorcouto@gmail.com', description='A project to execute a robot that performs several actions on the browser.', packages=find_packages(), license='MIT' )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 201, 198, 201, 198, 40406, 7, 3672, 11639, 305, 13645, 3256, 201, 198, 220, 220, 220, 220, 220, 2196, 11639, 16, 13, 15, 3256, 201, 198, 220, 220, 220, 220, 220, 1772, 11639,...
2.603306
121
#!/usr/bin/env python import argparse import boundary import functools import graphics import itertools import json import operator import os.path import random import re import secrets import sys import traceback from boundary import Boundary from boundary import Domain from boundary import Orientation from boundary...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 11748, 1822, 29572, 198, 11748, 18645, 198, 11748, 1257, 310, 10141, 198, 11748, 9382, 198, 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 10088, 198, 11748, 28686, 13, 6978, ...
2.514654
1,706
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainpage.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtGui import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 12417, 7700, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, 2...
2.704082
98
""" @Author : liujianhan @Date : 2018/6/2 11:59 @Project : posture_classification @FileName : data_processor.py @Description : Placeholder """ import os from typing import Tuple import pandas as pd from keras.applications.resnet50 import preprocess_input from keras.preprocessing.image...
[ 37811, 198, 220, 2488, 13838, 220, 220, 220, 220, 220, 220, 1058, 7649, 23577, 666, 7637, 198, 220, 2488, 10430, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 2864, 14, 21, 14, 17, 1367, 25, 3270, 198, 220, 2488, 16775, 220, 220, ...
2.193173
1,289
from math import sqrt x1,y1=map(float,input().split()) x2,y2=map(float,input().split()) p1=x2-x1 p2=y2-y1 res=sqrt((p1*p1)+(p2*p2)) print("%.4f"%res)
[ 6738, 10688, 1330, 19862, 17034, 198, 87, 16, 11, 88, 16, 28, 8899, 7, 22468, 11, 15414, 22446, 35312, 28955, 198, 87, 17, 11, 88, 17, 28, 8899, 7, 22468, 11, 15414, 22446, 35312, 28955, 198, 79, 16, 28, 87, 17, 12, 87, 16, 198,...
1.807229
83
from .pointer_network import PointerNetwork
[ 6738, 764, 29536, 62, 27349, 1330, 7695, 3849, 26245 ]
4.777778
9
from django.shortcuts import render, redirect from django.utils.datastructures import MultiValueDictKeyError
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 26791, 13, 19608, 459, 1356, 942, 1330, 15237, 11395, 35, 713, 9218, 12331, 628 ]
3.793103
29
""" Test class attributes. """ import numba from numba import * from numba.testing.test_support import parametrize, main #------------------------------------------------------------------------ # Tests #------------------------------------------------------------------------ if __name__ == '__main__': # test_d...
[ 37811, 198, 14402, 1398, 12608, 13, 198, 37811, 198, 198, 11748, 997, 7012, 198, 6738, 997, 7012, 1330, 1635, 198, 6738, 997, 7012, 13, 33407, 13, 9288, 62, 11284, 1330, 5772, 316, 380, 2736, 11, 1388, 198, 198, 2, 10097, 982, 198, ...
4.261905
84
import time from datetime import datetime import pytest from pnp.plugins.pull import StopPollingError from pnp.plugins.pull.simple import CustomPolling from . import make_runner, start_runner def test_poll_with_cron_expression(): from cronex import CronExpression dut = CustomPolling(name='pytest', interv...
[ 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 279, 37659, 13, 37390, 13, 31216, 1330, 13707, 39176, 278, 12331, 198, 6738, 279, 37659, 13, 37390, 13, 31216, 13, 36439, 1330, 8562, 391...
2.866667
180
from picamera import PiCamera from time import * from cv2 import * import numpy as np import os from PIL import Image from .errors import *
[ 6738, 8301, 18144, 1330, 13993, 35632, 198, 6738, 640, 1330, 1635, 198, 6738, 269, 85, 17, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 764, 48277, 1330, 1635, 198 ]
3.5
40
from setuptools import setup, find_packages """ Uma biblioteca para leitura de arquivos CNAB 240. """ setup( name='sbcnab240', version='0.1.0', url='https://github.com/Superbuy-Team/sbcnab240/', license='MIT', author='SuperBuy Team', author_email='ti@superbuy.com.br', description='Uma bibl...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 37811, 198, 52, 2611, 275, 29142, 313, 31047, 31215, 443, 270, 5330, 390, 610, 421, 452, 418, 327, 4535, 33, 14956, 13, 198, 37811, 198, 198, 40406, 7, 198, 220, 22...
2.476768
495
from mlib.proj.struct import Project from mlib.web.html import HTMLPage, Hyperlink, HTMLImage SKIPPED_SOURCE = [ '@log_invokation', 'global DOC', '@staticmethod' ] FUN_LINKS = { 'bilinear': 'https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.bilinear.html' } FUN_LINKS.update( {fun.s...
[ 6738, 285, 8019, 13, 1676, 73, 13, 7249, 1330, 4935, 198, 6738, 285, 8019, 13, 12384, 13, 6494, 1330, 11532, 9876, 11, 15079, 8726, 11, 11532, 5159, 198, 18831, 31444, 1961, 62, 47690, 796, 685, 198, 220, 220, 220, 705, 31, 6404, 62...
2.079295
227
#!/usr/local/bin/python3 import sys import os import shutil import markdown def generate_markdown(source_file, dest_dir): '''generates a new html file in the dest directory, returns the name of the newly-created file''' md = "" with open(source_file, 'r') as opened_file: md = opened_file.r...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 1317, 2902, 628, 628, 198, 4299, 7716, 62, 4102, 2902, 7, 10459, 62, 7753, 11, 2244, 62, 15908, 2599, 198, ...
2.502024
247
#!/usr/bin/python from ansible.module_utils.basic import * if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 35487, 1330, 1635, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.512195
41
"""Schemas Schemas Package more description """
[ 37811, 27054, 5356, 220, 198, 27054, 5356, 15717, 198, 220, 220, 220, 517, 6764, 198, 37811, 198 ]
3.117647
17
from itertools import chain, combinations from re import search from urllib.parse import urlparse from pymongo.errors import BulkWriteError from tweepy import OAuthHandler, API from yaml import load as yaml_load, BaseLoader from objects.article import Article from objects.hashtag import Hashtag from objects.tweet imp...
[ 6738, 340, 861, 10141, 1330, 6333, 11, 17790, 198, 6738, 302, 1330, 2989, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 6738, 279, 4948, 25162, 13, 48277, 1330, 47900, 16594, 12331, 198, 6738, 4184, 538, 88, 1330, ...
3.490909
165
import psycopg2 import pandas as pd from ensemble_compilation.utils import gen_full_join_query, print_conditions
[ 11748, 17331, 22163, 70, 17, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 6738, 34549, 62, 5589, 10520, 13, 26791, 1330, 2429, 62, 12853, 62, 22179, 62, 22766, 11, 3601, 62, 17561, 1756, 201, 198, 201, 198, 201, 19...
2.837209
43
# encoding: utf-8 # module Autodesk.AutoCAD.EditorInput calls itself EditorInput # from Acmgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null, accoremgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes ...
[ 2, 21004, 25, 3384, 69, 12, 23, 201, 198, 2, 8265, 5231, 4147, 74, 13, 27722, 34, 2885, 13, 17171, 20560, 3848, 2346, 12058, 20560, 201, 198, 2, 422, 4013, 11296, 67, 11, 10628, 28, 1731, 13, 15, 13, 15, 13, 15, 11, 17346, 28, ...
1.764032
873
from all_models_for_mock.models.M0001_mock import * from all_models_for_mock.models.M0002_keywords import * from all_models_for_mock.models.M0003_statisic_task import *
[ 6738, 477, 62, 27530, 62, 1640, 62, 76, 735, 13, 27530, 13, 44, 18005, 62, 76, 735, 1330, 1635, 198, 6738, 477, 62, 27530, 62, 1640, 62, 76, 735, 13, 27530, 13, 44, 34215, 62, 2539, 10879, 1330, 1635, 198, 6738, 477, 62, 27530, ...
2.640625
64
# This program reverses a given string reverse()
[ 2, 770, 1430, 10372, 274, 257, 1813, 4731, 628, 198, 198, 50188, 3419, 198 ]
3.714286
14
import copy import cmath import numpy import scipy.linalg from pauxy.estimators.thermal import greens_function, one_rdm_from_G, particle_number from pauxy.estimators.mixed import local_energy from pauxy.walkers.stack import PropagatorStack from pauxy.walkers.walker import Walker from pauxy.utils.linalg import regularis...
[ 11748, 4866, 198, 11748, 269, 11018, 198, 11748, 299, 32152, 198, 11748, 629, 541, 88, 13, 75, 1292, 70, 198, 6738, 279, 559, 5431, 13, 395, 320, 2024, 13, 490, 7617, 1330, 30966, 62, 8818, 11, 530, 62, 4372, 76, 62, 6738, 62, 38,...
2.894737
152
from collections import OrderedDict import os import re from schedules_tools.schedule_handlers.smart_sheet import ScheduleHandler_smartsheet import yaml DEFAULT_TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates') DEPENDENCY_REGEX = re.compile(r'^{(?P<to>predecessor|\d+)}(?P<type>[F|S]+)?' ...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 24025, 62, 31391, 13, 15952, 5950, 62, 4993, 8116, 13, 27004, 62, 21760, 1330, 19281, 25060, 62, 5796, 5889, 25473, 198, 11748, 331, 43695, 628, 198...
1.986547
223
"""Script to run camera calibration""" from camera import Camera camera = Camera(source_dir='/home/mce/Documents/bubble3D/calibration/Cam01', outfilename='Cam01', target_dir='results/camera', verbose=True) camera.calibrate() camera.compute_undistort()
[ 37811, 7391, 284, 1057, 4676, 36537, 37811, 198, 6738, 4676, 1330, 20432, 628, 198, 25695, 796, 20432, 7, 10459, 62, 15908, 11639, 14, 11195, 14, 76, 344, 14, 38354, 14, 46176, 903, 18, 35, 14, 9948, 571, 1358, 14, 21701, 486, 3256, ...
2.842105
95
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "MPZinke" ######################################################################################################################## # # # cre...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 366, 7378, 57, 259, 365, 1, 198, 198, 29113, 29113, 29113, 14468, 7804, 198, 2, 220, 220, ...
1.554648
979
from flask import Flask from werkzeug.routing import BaseConverter app = Flask(__name__) app.config['DEBUG'] = True app.url_map.converters['re'] = RegexConverter if __name__ == '__main__': app.run(host='0.0.0.0', port=8888)
[ 6738, 42903, 1330, 46947, 198, 6738, 266, 9587, 2736, 1018, 13, 81, 13660, 1330, 7308, 3103, 332, 353, 628, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250, 17816, 30531, 20520, 796, 6407, 198, 1324, 13, 6371, ...
2.489362
94
from pyfields import field from trend_analyze.src.validate import Validate from trend_analyze.config import *
[ 6738, 12972, 25747, 1330, 2214, 198, 198, 6738, 5182, 62, 38200, 2736, 13, 10677, 13, 12102, 378, 1330, 3254, 20540, 198, 6738, 5182, 62, 38200, 2736, 13, 11250, 1330, 1635, 628 ]
3.612903
31
# -*- coding: utf-8 -*- """ Inheritance Diagram ------------------- .. inheritance-diagram:: kotti.testing """ import os from os.path import join, dirname from unittest import TestCase from pytest import mark from pyramid import testing from pyramid.events import NewResponse from pyramid.security import ALL_PERMISS...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 818, 372, 42942, 6031, 6713, 198, 1783, 6329, 198, 198, 492, 24155, 12, 10989, 6713, 3712, 479, 26380, 13, 33407, 198, 37811, 198, 198, 11748, 28686, 19...
2.656984
2,341
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2124, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, 796, 2124, 1...
2.173333
75
# simple recursions print("-"*5, "count down from 10") count_down(10) print() print("-"*5, "count down from 5") count_down(5) print()
[ 2, 2829, 664, 42394, 198, 198, 4798, 7203, 21215, 9, 20, 11, 366, 9127, 866, 422, 838, 4943, 198, 9127, 62, 2902, 7, 940, 8, 198, 4798, 3419, 198, 198, 4798, 7203, 21215, 9, 20, 11, 366, 9127, 866, 422, 642, 4943, 198, 9127, 62,...
2.566038
53
# Standard Python import copy # Thirdparty import numpy as np
[ 2, 8997, 11361, 198, 11748, 4866, 198, 198, 2, 10467, 10608, 198, 11748, 299, 32152, 355, 45941, 628, 628, 628, 628, 198 ]
3.227273
22
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2019-07-23 22:47 # @Author : Simon Meng # @Site : # @File : mkdir.py # @Software: PyCharm import os # Make a folder under the current path
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 220, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 220, 198, 2, 2488, 7575, 1058, 13130, 12, 2998, 12, 1954, 2534, 25, 2857, 220, 198, 2, 2488, 13838, 1058, 11288, ...
2.367816
87
import os import sys header_file_fmt = "{name}_ocl.hpp" header_string = ( "#ifndef {definition}_OCL_HPP\n" "#define {definition}_OCL_HPP\n" "#include <opencv2/core/ocl.hpp>\n" "const cv::ocl::ProgramSource& {module}_{name}_ocl() {{\n" "static cv::ocl::ProgramSource source(\"{module}\", \"{name}\", \"{kernel}\", \"\");...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 25677, 62, 7753, 62, 69, 16762, 796, 45144, 3672, 92, 62, 38679, 13, 71, 381, 1, 198, 25677, 62, 8841, 796, 357, 198, 1, 2, 361, 358, 891, 1391, 46758, 92, 62, 4503, 43, 62, 39, 10246, ...
2.168539
267
from lotto_game.lotto_game import LottoGame if __name__ == "__main__": main()
[ 198, 6738, 300, 17631, 62, 6057, 13, 75, 17631, 62, 6057, 1330, 406, 17631, 8777, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.457143
35
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 6738, 16298, 2238, 1330, 40391, 11, 7032, 11, 4981, 628, 198 ]
3.159091
44
# ---------------------------------------------------------------------- # | # | BinaryStatementParserInfo.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-10-12 13:55:27 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 # | Di...
[ 2, 16529, 23031, 201, 198, 2, 930, 201, 198, 2, 930, 220, 45755, 48682, 46677, 12360, 13, 9078, 201, 198, 2, 930, 201, 198, 2, 930, 220, 3271, 4373, 695, 1279, 9945, 31, 11006, 20644, 695, 13, 785, 29, 201, 198, 2, 930, 220, 220...
3.762274
387
__author__ = 'Daniel Kapellusch' import astropy.io.fits as fits import os import csv import json import sys import multiprocessing as mp #necessary imports. Note: this is written in python 2. from os import path import ConfigParser from os import system #necessary imports. Note: this is written in python 2. global pa...
[ 834, 9800, 834, 796, 705, 19962, 509, 1758, 297, 385, 354, 6, 198, 11748, 220, 6468, 28338, 13, 952, 13, 21013, 355, 11414, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 18540, 305, 919, ...
2.520567
1,410
import datetime import random from django.test import TestCase from django.utils.dateparse import parse_datetime from .models import Article
[ 11748, 4818, 8079, 198, 11748, 4738, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 26791, 13, 4475, 29572, 1330, 21136, 62, 19608, 8079, 198, 198, 6738, 764, 27530, 1330, 10172, 628 ]
3.789474
38
import nltk from nltk.tokenize import sent_tokenize from nltk.tokenize import word_tokenize from nltk.corpus import wordnet # TODO move cut words to config CUT_WORDS = ( "drop", "cut", "leave", "lose", "trim", "shed", "cast", "unload", "strike", "skip", "throw", "shake",...
[ 11748, 299, 2528, 74, 198, 6738, 299, 2528, 74, 13, 30001, 1096, 1330, 1908, 62, 30001, 1096, 198, 6738, 299, 2528, 74, 13, 30001, 1096, 1330, 1573, 62, 30001, 1096, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 1573, 3262, 19...
2.441558
308
Python 3.9.2 (v3.9.2:1a79785e3e, Feb 19 2021, 09:06:10) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()" for more information. >>>
[ 37906, 513, 13, 24, 13, 17, 357, 85, 18, 13, 24, 13, 17, 25, 16, 64, 3720, 41172, 68, 18, 68, 11, 3158, 678, 33448, 11, 7769, 25, 3312, 25, 940, 8, 220, 198, 58, 2601, 648, 718, 13, 15, 357, 565, 648, 12, 8054, 13, 15, 13,...
2.189873
79
from __future__ import unicode_literals import boto import sure # noqa from nose.tools import assert_raises from boto.exception import BotoServerError from moto import mock_iam
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 275, 2069, 198, 11748, 1654, 220, 1303, 645, 20402, 198, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 430, 2696, 198, 6738, 275, 2069, 13, 1069, 4516, 1330, 347, 2...
3.303571
56
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: unversioned Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "Licens...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 12554, 527, 3262, 274, 628, 220, 220, 220, 1400, 6764, 2810, 357, 27568, 416, 2451, 7928, 6127, 5235, 3740, 1378, 12567, 13, 785, 14, 2032, 7928, 12, 15042, 14, ...
3.162242
339