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/env python # # Copyright 2013 Facebook # # 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 agree...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 2211, 3203, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287,...
3.315789
437
# Question: https://projecteuler.net/problem=108 """ 1/x + 1/y = 1/n Since n > 0, we have x > n and y > n. Assume x >= y. Let x = n + a, y = n + b. 1/x + 1/y = 1/n -> xn + yn = xy -> (n+a)n + (n+b)n = (n+a)(n+b) -> 2n^2 + an + bn = n^2 + an + bn + ab -> n^2 = ab The number of solutions of (x,y) for each n is the nu...
[ 2, 18233, 25, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 15711, 198, 198, 37811, 198, 16, 14, 87, 1343, 352, 14, 88, 796, 352, 14, 77, 198, 6385, 299, 1875, 657, 11, 356, 423, 2124, 1875, 299, 290, 331, 1875, 299, 13...
2.279612
515
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
3.456693
254
#DATA: 6,000 labled tweets before 2020 election from Biden=0, Trump=1. #VECTORIZER: tokenizer. vocab size 19,415. #MODEL: 1-d CNN with a global max-pool layer. if __name__ == "__main__": #load the data import os import pandas as pd os.chdir('/Users/jacksonwalters/tensorflow_datasets') filepath_di...
[ 2, 26947, 25, 718, 11, 830, 2248, 992, 12665, 878, 12131, 3071, 422, 21010, 28, 15, 11, 1301, 28, 16, 13, 198, 2, 53, 9782, 1581, 14887, 1137, 25, 11241, 7509, 13, 12776, 397, 2546, 678, 11, 35038, 13, 198, 2, 33365, 3698, 25, 3...
2.473077
1,300
from flask import Flask, Response, request import json import os from threading import Thread from poll import Poll from slack import WebClient from slackeventsapi import SlackEventAdapter from handlers.handlers import handle_commands, handle_interactivity # Start Flask app that will be produce all the requests app ...
[ 6738, 42903, 1330, 46947, 11, 18261, 11, 2581, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 3278, 1330, 12868, 198, 6738, 30740, 1330, 5313, 11792, 198, 6738, 1017, 330, 365, 85, 658, 15042, 1330, ...
2.799716
704
from my_lambda.my_classes import MyUtilities import numpy as np import pandas as pd if __name__ == "__main__": d = {'col1': [1, 5, 3, 100, 8], 'col2': [3, 4, np.nan, 5, 6]} dt = MyUtilities(d) print(dt.num_nans()) X_train, X_val, X_test, y_train, y_val, y_test = dt.train_validation_test_...
[ 6738, 616, 62, 50033, 13, 1820, 62, 37724, 1330, 2011, 18274, 2410, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 288, ...
2.093137
204
# Copyright (c) 2016 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ 2, 15069, 357, 66, 8, 1584, 7381, 20836, 11, 3457, 13, 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...
3.2827
237
from typing import List """ Runtime: O(mn) Space: O(mn) where m = no of rows in A and n = no of cols in A Runtime: 72 ms, faster than 80.91% of Python3 online submissions for Transpose Matrix. Memory Usage: 13.4 MB, less than 100.00% of Python3 online submissions for Transpose Matrix. """
[ 6738, 19720, 1330, 7343, 628, 198, 198, 37811, 198, 41006, 25, 440, 7, 10295, 8, 198, 14106, 25, 440, 7, 10295, 8, 198, 3003, 285, 796, 645, 286, 15274, 287, 317, 290, 299, 796, 645, 286, 951, 82, 287, 317, 198, 198, 41006, 25, ...
3.230769
91
from core import Files from library.stigma.helper import kivyBuilder from library.stigma.application import Popup kivyBuilder(Files.apppath, 'model', 'builder', 'option', 'optionpopup.kv')
[ 6738, 4755, 1330, 13283, 198, 6738, 5888, 13, 301, 13495, 13, 2978, 525, 1330, 479, 452, 88, 32875, 198, 6738, 5888, 13, 301, 13495, 13, 31438, 1330, 8099, 929, 198, 74, 452, 88, 32875, 7, 25876, 13, 1324, 6978, 11, 705, 19849, 3256...
3.258621
58
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.864865
185
from pyroute2.netlink import nla
[ 6738, 279, 2417, 13192, 17, 13, 3262, 8726, 1330, 299, 5031, 628 ]
2.833333
12
import tensorflow as tf import numpy as np import math import pickle import os """ Import sbot class definition. """ from sbot import sbot """ Function to load data and prepare the metadata variables """ """ Function to build training sequences. """ """ Training Function. """ flags = tf.app.flags...
[ 11748, 11192, 273, 11125, 355, 48700, 220, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 10688, 198, 11748, 2298, 293, 198, 11748, 28686, 198, 198, 37811, 198, 20939, 264, 13645, 1398, 6770, 13, 198, 37811, 198, 6738, 264, 13645, ...
3.181818
209
import webbrowser from AppKit import NSPredicate from mechanic.extension import Extension from mechanic.ui.lists.base import BaseList from mechanic.ui.formatters.description import DescriptionFormatter from mechanic.ui.cells.circle import CircleCell class InstallationList(BaseList): """Return an ExtensionList fo...
[ 11748, 3992, 40259, 198, 6738, 2034, 20827, 1330, 399, 4303, 445, 5344, 198, 198, 6738, 21600, 13, 2302, 3004, 1330, 27995, 198, 6738, 21600, 13, 9019, 13, 20713, 13, 8692, 1330, 7308, 8053, 198, 6738, 21600, 13, 9019, 13, 18982, 1010, ...
2.411392
316
# -*- coding: utf-8 -*- import unittest import brambox.boxes as bbb if __name__ == '__main__': unittest.main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 11748, 275, 859, 3524, 13, 29305, 355, 275, 11848, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 2...
2.288462
52
import sys from os.path import abspath, dirname, join from PyQt5.QtCore import QObject from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine if __name__ == '__main__': app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() # Instance of the Python object br...
[ 11748, 25064, 198, 6738, 28686, 13, 6978, 1330, 2352, 6978, 11, 26672, 3672, 11, 4654, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1195, 10267, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1195, 8205, 72...
2.666667
273
""" Start program """ import logging import os from commands import Commands from admin.admin_auth import AdminAuth from admin.notify_admin import NotifyAdmin from admin.register_admin import RegisterAdmin from feedback import Feedback from resident.notify_resident import NotifyResident from resident.register_residen...
[ 37811, 198, 10434, 1430, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 9729, 1330, 49505, 198, 6738, 13169, 13, 28482, 62, 18439, 1330, 32053, 30515, 198, 6738, 13169, 13, 1662, 1958, 62, 28482, 1330, 1892, 1958, ...
2.522754
2,527
# # Copyright 2017 Tubular Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ 2, 198, 2, 15069, 2177, 42850, 934, 23500, 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, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789...
2.556
2,500
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import adafruit_tc74 i2c = board.I2C() tc = adafruit_tc74.TC74(i2c) while True: print(f"Temperature: {tc.temperature} C") time.sleep(0.5)
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 33448, 10846, 4763, 329, 1215, 1878, 4872, 20171, 201, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 201, 198, 201, 198, 11748, 640, 201, 198, 11748, 3096, 201, 198, 11748, 512, 1...
2.341667
120
#!/usr/bin/python import MySQLdb import cgi import Cookie import os if 'HTTP_COOKIE' in os.environ : cookie = Cookie.SimpleCookie(os.environ["HTTP_COOKIE"]) else : print "error" print "Content-type:text/html\r\n\r\n" db = MySQLdb.connect('localhost','root','1315','quiz', unix_socket="/opt/lampp/var/mysql/m...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 33476, 9945, 198, 11748, 269, 12397, 198, 11748, 39606, 198, 11748, 28686, 198, 198, 361, 705, 40717, 62, 34, 15308, 10008, 6, 287, 28686, 13, 268, 2268, 1058, 198, 220, 220, 220,...
2.432269
1,159
# -*- coding: utf-8 -*- # @Time : 2022/1/13 10:13 下午 # @Author : Haruki # @File : __init__.py.py
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 1058, 33160, 14, 16, 14, 1485, 838, 25, 1485, 220, 10310, 233, 39355, 230, 198, 2, 2488, 13838, 1058, 2113, 11308, 198, 2, 2488, 8979, 1058, 11593, 1500...
1.901961
51
import unittest from unittest.mock import patch, mock_open from hm_pyhelper.diagnostics.diagnostics_report import \ DIAGNOSTICS_PASSED_KEY, DIAGNOSTICS_ERRORS_KEY, DiagnosticsReport from hw_diag.diagnostics.serial_number_diagnostic import SerialNumberDiagnostic VALID_CPU_PROC = """00000000ddd1a4c2""" PADDED_CPU_P...
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 15290, 62, 9654, 198, 198, 6738, 289, 76, 62, 9078, 2978, 525, 13, 47356, 34558, 13, 47356, 34558, 62, 13116, 1330, 3467, 198, 220, 220, 220, 360, 3539, ...
2.634328
134
import datetime from foil.learning import foil from foil.learning import get_closure from foil.learning import get_constants from foil.learning import get_masks from foil.models import Clause from foil.models import Example from foil.models import Literal from foil.models import Program if __name__ == '__main__': ...
[ 11748, 4818, 8079, 198, 198, 6738, 25501, 13, 40684, 1330, 25501, 198, 6738, 25501, 13, 40684, 1330, 651, 62, 17966, 198, 6738, 25501, 13, 40684, 1330, 651, 62, 9979, 1187, 198, 6738, 25501, 13, 40684, 1330, 651, 62, 5356, 591, 198, 6...
2.243405
834
from pytools.alternate import is_alternate
[ 6738, 12972, 31391, 13, 33645, 378, 1330, 318, 62, 33645, 378, 198 ]
3.583333
12
import torch import torch.nn as nn import torch.nn.functional as F
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628 ]
3.4
20
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) # # Testing XML Node comparison and Node hash-value # doc = libxml2.parseDoc("""<root><foo/></root>""") root = doc.getRootElement() # Create two different objects which point to foo foonode1 = root.children foonode2 = root...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 532, 84, 198, 11748, 25064, 198, 198, 11748, 9195, 19875, 17, 198, 198, 2, 14059, 14257, 2176, 198, 8019, 19875, 17, 13, 24442, 30871, 7, 16, 8, 198, 198, 2, 198, 2, 23983, 23735, 19081, 7208, ...
3.00396
505
from pydantic import BaseModel from spectroscope.model import Action
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 6738, 5444, 305, 29982, 13, 19849, 1330, 7561, 628, 198 ]
3.944444
18
#!/usr/local/bin/python3 import math # Complete the encryption function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result = encryption(s) fptr.write(result + '\n') fptr.close()
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 198, 2, 13248, 262, 15835, 2163, 2174, 13, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 277, 20692, 796, 12...
2.421569
102
import unittest from coronachat.storage.api import GENERIC_ERROR_MSG, NO_OPTION_FOUND_MSG, MessageReader from coronachat.storage.schema import TopLevelMessage, TopLevelOption _TEST_HEADER_CONTENT = """\ Welcome to your local government bot Get information and guidance from use regarding the current outbreak of coron...
[ 11748, 555, 715, 395, 198, 198, 6738, 26920, 620, 265, 13, 35350, 13, 15042, 1330, 24700, 1137, 2149, 62, 24908, 62, 5653, 38, 11, 8005, 62, 3185, 24131, 62, 37, 15919, 62, 5653, 38, 11, 16000, 33634, 198, 6738, 26920, 620, 265, 13,...
3.158416
202
# -*- coding: utf-8 -*- from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def verify_password(plain_password, hashed_password): """ Is the hash of the two values equal :param plain_password: plaintext :param hashed_password: hash password :retu...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1208, 8019, 13, 22866, 1330, 15126, 21947, 198, 198, 79, 16993, 62, 22866, 796, 15126, 21947, 7, 1416, 4411, 274, 28, 14692, 15630, 6012, 33116, 39224, 2625, 23736, ...
2.863158
190
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. import h5py import pytest from wetterdienst.provider.dwd.radar import ( DwdRadarDataFormat, DwdRadarDataSubset, DwdRadarDate, DwdRadarParameter, DwdRadarP...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2864, 12, 1238, 2481, 11, 4534, 672, 3168, 602, 6505, 13, 198, 2, 4307, 6169, 739, 262, 17168, 13789, 13, 4091, 38559, 24290, 329, 517, 7508, 1...
2.272727
2,167
#!/usr/bin/env python3 import jsonschema from jsonschema import validate from os.path import join, dirname, abspath import jsonref def _load_json_schema(filename): """ Loads the given schema file """ # relative_path = join('', filename) relative_path = filename absolute_path = join(dirname(__file__),...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 44804, 684, 2395, 2611, 198, 6738, 44804, 684, 2395, 2611, 1330, 26571, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 11, 2352, 6978, 198, 11748, 33918, 5420, 628, ...
2.48
450
from amaranth_boards.ice40_up5k_b_evn import * from amaranth_boards.ice40_up5k_b_evn import __all__ import warnings warnings.warn("instead of nmigen_boards.ice40_up5k_b_evn, use amaranth_boards.ice40_up5k_b_evn", DeprecationWarning, stacklevel=2)
[ 6738, 716, 19173, 400, 62, 12821, 13, 501, 1821, 62, 929, 20, 74, 62, 65, 62, 1990, 77, 1330, 1635, 198, 6738, 716, 19173, 400, 62, 12821, 13, 501, 1821, 62, 929, 20, 74, 62, 65, 62, 1990, 77, 1330, 11593, 439, 834, 628, 198, ...
2.267241
116
import pymel.all as pymel import maya.cmds as cmds from python.libs import naming_utils from python.libs import joint_utils from python.libs import shapes import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def attach_class(node, net): """ Adds a string attribute to a PyNode set to t...
[ 11748, 279, 4948, 417, 13, 439, 355, 279, 4948, 417, 198, 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 198, 6738, 21015, 13, 8019, 82, 1330, 19264, 62, 26791, 198, 6738, 21015, 13, 8019, 82, 1330, 6466, 62, 26791, 198, 6738, 21015...
2.414466
5,074
# import plotly.plotly as py # import plotly.graph_objs as go # import plotly.figure_factory as FF import csv import math import numpy as np import pandas as pd import matplotlib as mplt import itertools import matplotlib.pyplot as plt neededfiles = ['aim.fsm','battlefield2.fsm','counterstrike-source.fsm','halflife2-d...
[ 2, 1330, 7110, 306, 13, 29487, 306, 355, 12972, 198, 2, 1330, 7110, 306, 13, 34960, 62, 672, 8457, 355, 467, 198, 2, 1330, 7110, 306, 13, 26875, 62, 69, 9548, 355, 18402, 198, 11748, 269, 21370, 198, 11748, 10688, 198, 11748, 299, ...
2.218487
595
#!/usr/bin/env python # -*- coding: utf-8 -*- from geometry_msgs.msg import Pose from ros_3d_pointing_detection.calc_3d_dist import point_3d_line_distance, point_plane_distance from tfpose_ros.msg import Persons from sensor_msgs.msg import PointCloud2, CameraInfo from sensor_msgs import point_cloud2 import numpy as np...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 37557, 198, 6738, 686, 82, 62, 18, 67, 62, 4122, 278, 62, 15255, ...
2.909548
199
# Zenora, a modern Python API wrapper for the Discord REST API # # Copyright (c) 2020 K.M Ahnaf Zamil # # 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 ...
[ 2, 14760, 5799, 11, 257, 3660, 11361, 7824, 29908, 329, 262, 39462, 30617, 7824, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 509, 13, 44, 7900, 77, 1878, 38343, 346, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877,...
3.761905
357
from scrapy import signals from scrapy.exceptions import NotConfigured from scrapy.utils.misc import load_object from twisted.internet.task import LoopingCall from spidermon import MonitorSuite from spidermon.contrib.scrapy.runners import SpiderMonitorRunner from spidermon.python import factory from spidermon.python.m...
[ 6738, 15881, 88, 1330, 10425, 198, 6738, 15881, 88, 13, 1069, 11755, 1330, 1892, 16934, 1522, 198, 6738, 15881, 88, 13, 26791, 13, 44374, 1330, 3440, 62, 15252, 198, 6738, 19074, 13, 37675, 13, 35943, 1330, 6706, 15816, 14134, 198, 198,...
4.028571
105
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 921, 198, 2, 743, 407, 779, 428, 2393, 2845, ...
3.019126
366
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from student.student_model import StudentForm, Course, Student from distutils import log from gaecookie.decorator import no_csrf from gaepermission.decorator import login_not_required from tekton.gae.middleware.json_middleware import JsonU...
[ 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, 3710, 13, 50139, 62, 19849, 1330, 13613, 8479, 11, 20537, 11, 13613, 198, 673...
3.052632
152
import keras.layers as lyr def residual_unit(input, size, filters, downsample, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer): """ Residual unit using pre-activation as described in: https://arxiv.org/pdf/1603.05027v2.pdf Note that we use 1x1 convolution...
[ 11748, 41927, 292, 13, 75, 6962, 355, 47188, 628, 198, 4299, 29598, 62, 20850, 7, 15414, 11, 2546, 11, 16628, 11, 21838, 1403, 11, 9720, 62, 36733, 7509, 11, 10690, 62, 36733, 7509, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, ...
3.041727
695
""" Tests for the PyTorch NN backend. """ import torch from torch import nn import numpy as np from quantnn import set_default_backend from quantnn.qrnn import QRNN from quantnn.drnn import DRNN, _to_categorical from quantnn.mrnn import Quantiles, Density, Mean, MRNN from quantnn.models.pytorch import QuantileLoss, C...
[ 37811, 198, 51, 3558, 329, 262, 9485, 15884, 354, 399, 45, 30203, 13, 198, 37811, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 5554, 20471, 1330, 900, 62, 12286, 62, 1891, 437...
1.925401
6,850
/home/runner/.cache/pip/pool/c0/a1/92/92cb988e38603986bf8c3eae95a2a93d7694ccf8b2cdf44d353e033a2a
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 66, 15, 14, 64, 16, 14, 5892, 14, 5892, 21101, 24, 3459, 68, 2548, 1899, 2670, 4521, 19881, 23, 66, 18, 68, 3609, 3865, 64, 17, 64, 6052, 67, 22, 45214, 535, 69, 2...
1.655172
58
from django.utils import timezone import pytz from core.models import RecordRelationship, Project, ProjectDesign, Work, WorkSprint, Notification from django.conf import settings
[ 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 11748, 12972, 22877, 198, 198, 6738, 4755, 13, 27530, 1330, 13266, 47117, 1056, 11, 4935, 11, 4935, 23067, 11, 5521, 11, 5521, 50, 4798, 11, 42808, 198, 6738, 42625, 14208, 13, 10414...
4.068182
44
import m5 from m5.objects import * # Create a system system = System() print(system) # Setup a clock domain system.clk_domain=SrcClockDomain() system.clk_domain.clock = '1GHz' system.clk_domain.voltage_domain=VoltageDomain() # Setup memory mode system.mem_mode='timing' system.mem_ranges= [AddrRange('512MB')] # Crea...
[ 11748, 285, 20, 198, 6738, 285, 20, 13, 48205, 1330, 1635, 198, 198, 2, 13610, 257, 1080, 198, 10057, 796, 4482, 3419, 198, 4798, 7, 10057, 8, 198, 198, 2, 31122, 257, 8801, 7386, 198, 10057, 13, 565, 74, 62, 27830, 28, 50, 6015, ...
2.84788
401
# -*- coding: UTF-8 -*- from flask_sqlalchemy import SQLAlchemy import sqlalchemy from sqlalchemy.ext.declarative import declared_attr from app import bms_app from app.utils import password_encrypt, password_check __author__ = 'lpe234' db = SQLAlchemy(bms_app)
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 11748, 44161, 282, 26599, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 6875, 62,...
2.846939
98
from ...plugins.sqliteregistry import SqliteRegistry
[ 6738, 2644, 37390, 13, 25410, 270, 567, 70, 4592, 1330, 311, 13976, 578, 8081, 4592, 628 ]
3.375
16
import numpy as np w1 = input("W1 :") w2 = input("W2 :") b = input("b :") y=w1*0.4+w2*0.6+b yy=1/(1+np.exp(-y)) print(y) print(yy)
[ 11748, 299, 32152, 355, 45941, 198, 86, 16, 796, 5128, 7203, 54, 16, 1058, 4943, 198, 86, 17, 796, 5128, 7203, 54, 17, 1058, 4943, 198, 65, 796, 5128, 7203, 65, 1058, 4943, 198, 88, 28, 86, 16, 9, 15, 13, 19, 10, 86, 17, 9, ...
1.756757
74
#!/usr/bin/env python # original code by Thatte, Anand, Sahlmann, Greenbaum # utility routines and constants for AMI image simulations reorganized by Sahlmann, Anand 3/2016 # anand@stsci.edu 18 Mar 2016 """ """ import numpy as np import sys, time from astropy.io import fits import os # global variables global readno...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 2656, 2438, 416, 1320, 660, 11, 1052, 392, 11, 311, 15668, 9038, 11, 3469, 24738, 198, 2, 10361, 31878, 290, 38491, 329, 3001, 40, 2939, 27785, 302, 30280, 416, 311, 15668, 9038, ...
2.020594
5,827
lista = [] lista_par = [] lista_impar = [] while True: n = int(input('Digite um valor: ')) lista.append(n) if n%2 == 0: lista_par.append(n) else: lista_impar.append(n) again = str(input('Quer continuar? [S/N] ')).strip().upper()[0] if again in 'N': break print(f'Lista co...
[ 4868, 64, 796, 17635, 198, 4868, 64, 62, 1845, 796, 17635, 198, 4868, 64, 62, 320, 1845, 796, 17635, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 1188, 273, 25, 705, 4008, 198, 2...
2.052632
209
from django.db import models from django.contrib.auth.models import User class AbstractTimeStamp(models.Model): """Abstract TimeStamp Model Inherit: Model Fields: created_at : DateTimeField (UnEditable) updated_at : DateTimeField (Editable) """ created_at = models.DateTime...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628, 198, 4871, 27741, 7575, 1273, 696, 7, 27530, 13, 17633, 2599, 198, 220, 220, 220, 37227, 23839, 3862, 1273, 696, ...
2.454259
317
import os import torch from imageio import imwrite from scipy.io import wavfile from tqdm import tqdm import numpy as np from dataset.music import MUSICMixDataset from helpers.utils import get_ctx, recover_rgb, makedirs, istft_reconstruction, magnitude2heatmap from steps.common import build_model, unwarp_log_scale, ...
[ 11748, 28686, 198, 198, 11748, 28034, 198, 6738, 2939, 952, 1330, 545, 13564, 198, 6738, 629, 541, 88, 13, 952, 1330, 266, 615, 7753, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, ...
3.181818
121
n=int(input('enter a number: ')) f(n) ''' output: enter a number: 6 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 '''
[ 77, 28, 600, 7, 15414, 10786, 9255, 257, 1271, 25, 705, 4008, 198, 69, 7, 77, 8, 198, 7061, 6, 198, 22915, 25, 198, 9255, 257, 1271, 25, 718, 198, 16, 362, 513, 604, 642, 718, 220, 198, 16, 362, 513, 604, 642, 220, 198, 16, ...
1.818182
66
""" MIT License Copyright (c) 2019 Blue Cloud Red Dot 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, publi...
[ 37811, 198, 36393, 13789, 198, 15269, 357, 66, 8, 13130, 4518, 10130, 2297, 22875, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, ...
2.537267
1,610
dict = {} user_count = 6040 gender = {} gender['M'] = 1 gender['F'] = 2 dict[1] = "Gender-male" dict[2] = "Gender-female" age = {} age['1'] = 3 age['18'] = 4 age['25'] = 5 age['35'] = 6 age['45'] = 7 age['50'] = 8 age['56'] = 9 dict[3] = "Age-under 18" dict[4] = "Age-18-24" dict[5] = "Age-25-34" dict[6] = "Age-35-...
[ 11600, 796, 23884, 198, 198, 7220, 62, 9127, 796, 3126, 1821, 198, 198, 8388, 796, 23884, 198, 8388, 17816, 44, 20520, 796, 352, 198, 8388, 17816, 37, 20520, 796, 362, 198, 198, 11600, 58, 16, 60, 796, 366, 41394, 12, 22606, 1, 198,...
2.074425
3,695
"""syphon.schema.resolvepath.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """ from pandas import DataFrame from sortedcontainers import SortedDict def _normalize(directory: str) -> str: """Make lowercase and replace spaces w...
[ 37811, 1837, 746, 261, 13, 15952, 2611, 13, 411, 6442, 6978, 13, 9078, 628, 220, 220, 15069, 357, 66, 8, 2177, 12, 7908, 14926, 1636, 43953, 11, 11419, 13, 198, 220, 220, 49962, 739, 17168, 357, 5450, 1378, 12567, 13, 785, 14, 17231...
2.657635
812
# Generated by Django 3.2.3 on 2021-07-14 16:22 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 2998, 12, 1415, 1467, 25, 1828, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
from flask import Flask from flask_pymongo import pymongo from app import app CONNECTION_STRING = "mongodb+srv://swayam:swayam123@cluster0.wiqoj.mongodb.net/newsfeedbacksystem?retryWrites=true&w=majority" client = pymongo.MongoClient(CONNECTION_STRING) db = client.get_database('newsfeedbacksystem') store = pymongo.coll...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 79, 4948, 25162, 1330, 279, 4948, 25162, 198, 6738, 598, 1330, 598, 198, 10943, 45, 24565, 62, 18601, 2751, 796, 366, 31059, 375, 65, 10, 27891, 85, 1378, 82, 1014, 321, 25, 82, 1014, ...
2.845528
123
## # Copyright (c) 2012-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2235, 198, 2, 15069, 357, 66, 8, 2321, 12, 5539, 4196, 3457, 13, 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.173864
9,680
# -*- coding: utf-8 -*- ######## # Copyright (c) 2016-2020 Cloudify Platform Ltd. 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...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7804, 198, 2, 15069, 357, 66, 8, 1584, 12, 42334, 10130, 1958, 19193, 12052, 13, 1439, 2489, 10395, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
3.377698
278
from unittest import mock from django.test import TestCase from factories.workflow_models import CountryFactory, OrganizationFactory, TolaUserFactory from tola_management.models import UserManagementAuditLog as UM from workflow.models import TolaUser from tola.pipeline import create_user_okta SPECIAL_CHARS = "ßpécî...
[ 6738, 555, 715, 395, 1330, 15290, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 17590, 13, 1818, 11125, 62, 27530, 1330, 12946, 22810, 11, 12275, 22810, 11, 309, 5708, 12982, 22810, 198, 6738, 284, 5031, 62, 2760...
3.412371
97
#!/usr/bin/env python3 import argparse from lark import Lark if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 6738, 300, 668, 1330, 406, 668, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.564103
39
import pygame from RRTbasePy import RRTGraph from RRTbasePy import RRTMap import time if __name__ == '__main__': result=False while not result: try: main() result=True except: result=False ...
[ 11748, 12972, 6057, 201, 198, 6738, 371, 14181, 8692, 20519, 1330, 371, 14181, 37065, 201, 198, 6738, 371, 14181, 8692, 20519, 1330, 371, 14181, 13912, 201, 198, 11748, 640, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834,...
1.698413
189
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = '@britodfbr' import pandas as pd from faker import Faker import locale import random import toml from pathlib import Path dados = Path('dados/dados.toml') dados.parent.mkdir(exist_ok=True) locale.setlocale(locale.LC_TIME, 'pt_BR.utf8') fake = Faker('pt_BR') ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 31, 65, 799, 375, 69, 1671, 6, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 277, 3110...
2.365854
820
import allure import pytest from api.account import account from api.user import user from util.log_util import logger from util.mysql_util import mysqler # 在crm后台登录,获取cookies @pytest.fixture(scope="session") # 在h5后台登录,获取cookies @pytest.fixture(scope="session") # 注册1个leads # 注册1个正课用户 # 已老用户身份登录并拿到cookie # ...
[ 11748, 477, 495, 198, 11748, 12972, 9288, 198, 198, 6738, 40391, 13, 23317, 1330, 1848, 198, 6738, 40391, 13, 7220, 1330, 2836, 198, 6738, 7736, 13, 6404, 62, 22602, 1330, 49706, 198, 6738, 7736, 13, 28744, 13976, 62, 22602, 1330, 616, ...
1.567413
1,921
from django.shortcuts import render, redirect from django.http import HttpResponse from .gdscript import GDSCriptCLI, GODOT_BINARY
[ 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 198, 6738, 764, 21287, 12048, 1330, 402, 5258, 34, 1968, 5097, 40, 11, 29562, 2394, 62, 33, 1268, 13153, ...
3.139535
43
# Create a plotter that we initialize with no lights, and add a # cube and a single headlight to it. # import pyvista as pv plotter = pv.Plotter(lighting='none') _ = plotter.add_mesh(pv.Cube()) light = pv.Light(color='cyan', light_type='headlight') plotter.add_light(light) plotter.show()
[ 2, 13610, 257, 7110, 353, 326, 356, 41216, 351, 645, 7588, 11, 290, 751, 257, 198, 2, 23441, 290, 257, 2060, 1182, 2971, 284, 340, 13, 198, 2, 198, 11748, 12972, 85, 12523, 355, 279, 85, 198, 29487, 353, 796, 279, 85, 13, 43328, ...
2.805825
103
# THE MOST INTERESTING MAN IN THE WORLD # SLACK CHATBOT IN PYTHON # # Author: Zachary Gillis #-------------------------------------- import os import time import re import random import urllib import requests import json import sqlite3 from slackclient import SlackClient from config import SLACK_BOT_TOKEN from databas...
[ 2, 3336, 337, 10892, 23255, 6465, 2751, 17254, 3268, 3336, 29564, 198, 2, 12419, 8120, 5870, 1404, 33, 2394, 3268, 350, 56, 4221, 1340, 198, 2, 198, 2, 6434, 25, 18825, 560, 12981, 271, 198, 2, 3880, 23031, 198, 198, 11748, 28686, 1...
2.229028
751
""" Test file for asynchronous requests handlers. """ import pytest from osbrain import Agent from osbrain import run_agent from osbrain.helper import wait_agent_attr from common import nsproxy # noqa: F401 from common import append_received def test_async_rep_handler_exists(nsproxy): """ When binding an...
[ 37811, 198, 14402, 2393, 329, 39354, 7007, 32847, 13, 198, 37811, 198, 11748, 12972, 9288, 198, 198, 6738, 28686, 27825, 1330, 15906, 198, 6738, 28686, 27825, 1330, 1057, 62, 25781, 198, 6738, 28686, 27825, 13, 2978, 525, 1330, 4043, 62, ...
2.899461
1,114
import pickle from .. import romanian from ...datasources import revision_oriented from ...dependencies import solve from .util import compare_extraction BAD = [ "bou", "caca", "cacat", "cur", "curu", "curva", "curve", "dracu", "fraier", "fraieri", "fraierilor", "fut", "fute", "futut", "k...
[ 11748, 2298, 293, 628, 198, 6738, 11485, 1330, 374, 5185, 666, 198, 6738, 2644, 19608, 292, 2203, 1330, 18440, 62, 17107, 198, 6738, 2644, 45841, 3976, 1330, 8494, 198, 6738, 764, 22602, 1330, 8996, 62, 2302, 7861, 198, 198, 33, 2885, ...
1.935567
776
from __future__ import annotations from dataclasses import dataclass from typing import Optional, List from ..database import Database @dataclass
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 32233, 11, 7343, 198, 198, 6738, 11485, 48806, 1330, 24047, 628, 198, 31, 19608, 330, 31172, 198 ]
4.138889
36
# Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. # Note: The solution set must not contain duplicate triplets. # For example, given array S = [-1, 0, 1, 2, -1, -4], # A solution set is: # [ # [-1, 0, 1], ...
[ 2, 11259, 281, 7177, 311, 286, 299, 37014, 11, 389, 612, 4847, 257, 11, 275, 11, 269, 287, 311, 884, 326, 257, 1343, 275, 1343, 269, 796, 657, 30, 9938, 477, 3748, 15055, 912, 287, 262, 7177, 543, 3607, 262, 2160, 286, 6632, 13, ...
2.728
125
from paraview.simple import * import paraview sourceDs = Wavelet() inputDs = Sphere() # Test 'Resample With Dataset` proxies p1 = ResampleWithDataset(Input=inputDs, Source=sourceDs) print("Proxy Name before: %s" % p1.GetXMLName()) assert p1.GetXMLName() == "ResampleWithDataset", "The default proxy name must be Resamp...
[ 6738, 1582, 615, 769, 13, 36439, 1330, 1635, 198, 11748, 1582, 615, 769, 198, 198, 10459, 30832, 796, 17084, 1616, 3419, 198, 15414, 30832, 796, 31798, 3419, 198, 198, 2, 6208, 705, 4965, 1403, 2080, 16092, 292, 316, 63, 41775, 198, 7...
2.96087
230
#!/usr/bin/python #-*- coding: UTF-8-*- import cgi import cgitb import os import sys sys.path.append("/home/pi/devel/BerePi/apps/tinyosGW/cgi") #import simple if __name__ == "__main__": cgitb.enable() args = cgi.FieldStorage() #print os.environ.items() print "Content-type: text/html\n" pr...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 12, 9, 12, 19617, 25, 41002, 12, 23, 12, 9, 12, 198, 198, 11748, 269, 12397, 198, 11748, 269, 18300, 65, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 720...
2.358407
226
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 18:24:32 2021 @author: mauricio parameter handle for GUI """ import pandas as pd from nasagamma import spectrum as sp from nasagamma import peaksearch as ps from nasagamma import read_cnf import re
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 3158, 2534, 1248, 25, 1731, 25, 2624, 33448, 198, 198, 31, 9800, 25, 285, 2899, 46441, 198, 17143, 2357, 5412, 329, 25757, 198, 37811, 198,...
2.863636
88
import os import streamlit as st from text import ( spanish_text, english_text, spanish_labels_dictionary, english_labels_dictionary, ) import pandas as pd import altair as alt import biome.text st.set_page_config(page_title="Temis Demo App", layout="centered") os.environ["TOKENIZERS_PARALLELISM"] =...
[ 11748, 28686, 198, 198, 11748, 4269, 18250, 355, 336, 198, 6738, 2420, 1330, 357, 198, 220, 220, 220, 599, 7115, 62, 5239, 11, 198, 220, 220, 220, 46932, 62, 5239, 11, 198, 220, 220, 220, 599, 7115, 62, 23912, 1424, 62, 67, 14188, ...
2.39585
1,253
import imp, glob, shutil, numpy imp.load_source('common_functions','common_functions.py') import common_functions as cf def contsub(msfile,config,config_raw,config_file,logger): """ Subtracts the continuum from each of the science target MSs. If the no line free range is set then the user is queried (in in...
[ 11748, 848, 11, 15095, 11, 4423, 346, 11, 299, 32152, 198, 11011, 13, 2220, 62, 10459, 10786, 11321, 62, 12543, 2733, 41707, 11321, 62, 12543, 2733, 13, 9078, 11537, 198, 11748, 2219, 62, 12543, 2733, 355, 30218, 198, 198, 4299, 542, ...
2.245676
8,556
from threading import Thread import time import datetime import json import requests import csv # Create keys.py in same directory and include API keys from keys import METRA_USER, METRA_PASS, WEATHER_KEY import logging as log # Setup logging log.basicConfig(filename='data/data_collection.log', filem...
[ 6738, 4704, 278, 1330, 14122, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 269, 21370, 198, 198, 2, 13610, 8251, 13, 9078, 287, 976, 8619, 290, 2291, 7824, 8251, 198, 6738, 8251, 1330, 31243,...
2.668317
404
""" Contains the 'ClustarData' class, which is responsible for executing the entire project pipeline for detecting groups in a single FITS image; this class also collects and stores all relevant data, statistics, and variables in this pipeline. Visit <https://clustar.github.io/> for additional information. """ from...
[ 37811, 198, 4264, 1299, 262, 705, 2601, 436, 283, 6601, 6, 1398, 11, 543, 318, 4497, 329, 23710, 262, 198, 298, 557, 1628, 11523, 329, 31521, 2628, 287, 257, 2060, 376, 29722, 2939, 26, 428, 220, 198, 4871, 635, 26609, 290, 7000, 47...
2.152137
8,775
import tensorflow as tf import numpy as np from ..agent import Agent from abc import ABC, abstractmethod
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 25781, 1330, 15906, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396 ]
3.851852
27
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Collections.General import IdList from RouToolPa.Tools.NCBIToolkit import FastqDump parser = argparse.ArgumentParser() parser.add_argument("-i", "--ids", action="store", dest="ids", type=lambda s: s.split(","), ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 834, 9800, 834, 796, 705, 7089, 469, 72, 376, 13, 14770, 1428, 6, 198, 11748, 1822, 29572, 198, 6738, 13876, 25391, 28875, 13, 5216, 26448, 13, 12218, 1330, 5121, 8053, 198, 6738, 1387...
2.534632
462
import dolfin as df import os from . import * from common.io import mpi_is_root from common.bcs import Fixed, Pressure # from ufl import max_value __author__ = "Asger Bolet; Gaute Linga" # Left boundary is target domain def initialize(Lx, Ly, rad_init, interface_thickness, solutes, restart_folde...
[ 11748, 288, 4024, 259, 355, 47764, 198, 11748, 28686, 198, 6738, 764, 1330, 1635, 198, 6738, 2219, 13, 952, 1330, 285, 14415, 62, 271, 62, 15763, 198, 6738, 2219, 13, 65, 6359, 1330, 10832, 11, 30980, 198, 2, 422, 334, 2704, 1330, 3...
2.080311
1,930
""" Python unit tests for the aeon3odt project. Test suite for aeon3yw.pyw. For further information see https://github.com/peter88213/aeon3yw Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from shutil import copyfile import zipfile import os import unittest import cnvaeon_stub_...
[ 37811, 11361, 4326, 5254, 329, 262, 257, 23277, 18, 375, 83, 1628, 13, 198, 198, 14402, 18389, 329, 257, 23277, 18, 88, 86, 13, 9078, 86, 13, 198, 198, 1890, 2252, 1321, 766, 3740, 1378, 12567, 13, 785, 14, 79, 2357, 3459, 26427, ...
2.669967
606
# -*- coding: utf-8 -*- """ @author: Chris Lucas """ import numpy as np def structure_tensor(points): """ Computes the structure tensor of points by computing the eigenvalues and eigenvectors of the covariance matrix of a point cloud. Parameters ---------- points : (Mx3) array X, Y ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 31, 9800, 25, 5180, 15257, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 4645, 62, 83, 22854, 7, 13033, 2599, 198, 220, 220, 22...
2.457071
396
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class EquitySwapAllOf(object): """NOTE: This class ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 406, 2937, 2389, 7824, 628, 220, 220, 220, 33642, 33, 11698, 12161, 8987, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 220, 383, 2196, 286, 262, 4946, 1...
2.467431
7,062
from __future__ import print_function import sys import subprocess import signal import time import os import shlex from Choruslib.Blatres import Blatres def start_gfServer(file2bit, gfspath, stepsize=7, blatport=10010): ''' :param file2bit: :param gfspath: :param stepsize: :param blatport: :...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 6737, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 427, 2588, 198, 6738, 609, 15125, 8019, 13, 3629, 265, 411, 1330, 1086, 265, 411...
2.294643
896
"""empty message Revision ID: af9c317d2c92 Revises: 245d12695c69 Create Date: 2020-03-12 08:49:36.009020 """ # revision identifiers, used by Alembic. revision = 'af9c317d2c92' down_revision = '245d12695c69' from alembic import op import sqlalchemy as sa from sqlalchemy import orm from app import db from enum import...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 6580, 24, 66, 34125, 67, 17, 66, 5892, 198, 18009, 2696, 25, 29637, 67, 1065, 37381, 66, 3388, 198, 16447, 7536, 25, 12131, 12, 3070, 12, 1065, 8487, 25, 2920, 25, 2623, 13, 405, ...
2.754839
155
from model import Igrica nova_igra = 'n' while nova_igra == "n": trenutna_igra = Igrica() # print(trenutna_igra) while True: trenutna_igra.izpis_igre() print(f"na vrsti je igralec {trenutna_igra.igralec}") while True: print("Napiši št: ") polje = input()...
[ 6738, 2746, 1330, 28818, 30997, 198, 198, 38438, 62, 328, 430, 796, 705, 77, 6, 198, 198, 4514, 645, 6862, 62, 328, 430, 6624, 366, 77, 1298, 198, 220, 220, 220, 256, 918, 315, 2616, 62, 328, 430, 796, 28818, 30997, 3419, 628, 220...
1.759369
507
# Python EVE Swagger Interface # https://github.com/nicoscha/PESI # ESI version 0.8.9 import ESI_request def get_alliances(*, if_none_match=None): """ :param if_none_match: ETag from a previous request. A 304 will be returned if this matches the current ETag List all active player alliances --- Al...
[ 2, 11361, 32356, 2451, 7928, 26491, 198, 2, 3740, 1378, 12567, 13, 785, 14, 6988, 418, 11693, 14, 47, 1546, 40, 198, 2, 412, 11584, 2196, 657, 13, 23, 13, 24, 198, 11748, 412, 11584, 62, 25927, 628, 198, 4299, 651, 62, 439, 16097,...
2.079877
103,371
n = int(input()) a = [list(map(int, input().split())) for i in range(n)] c = min([a[0][0], a[0][n-1], a[n - 1][0], a[n - 1][n - 1]]) if a[0][0] == c: for i in a: print(*i) pass elif a[0][n - 1] == c: for i in range(n - 1, -1, -1): for j in range(n): print(a[j][i], end=' ') ...
[ 77, 796, 493, 7, 15414, 28955, 198, 64, 796, 685, 4868, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 329, 1312, 287, 2837, 7, 77, 15437, 198, 198, 66, 796, 949, 26933, 64, 58, 15, 7131, 15, 4357, 257, 58, 15, 7131, 77, ...
1.722772
303
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_util ---------------------------------- Tests for `util` module. """ try: import unittest2 as unittest except ImportError: import unittest from lispify import util if __name__ == '__main__': unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 9288, 62, 22602, 198, 3880, 438, 198, 198, 51, 3558, 329, 4600, 22602, 63, 8265, 13, 198, 37811, 628...
2.660377
106
# Three IA’s are conducted for a class of 10 students for the subject Maths. # The name, marks and USN are read from a file in.txt. Find the average of # the IA for each student and write the USN and average to a file out.txt. # Display the highest average of the class on the console with open("in.txt", "r") as inp...
[ 2, 7683, 35229, 447, 247, 82, 389, 5952, 329, 257, 1398, 286, 838, 2444, 329, 262, 2426, 16320, 82, 13, 220, 198, 2, 383, 1438, 11, 8849, 290, 1294, 45, 389, 1100, 422, 257, 2393, 287, 13, 14116, 13, 9938, 262, 2811, 286, 220, 1...
2.209906
424
import os import json import numpy as np from ashic import simulation from ashic import structure from ashic.utils import find_closestlength_chrom, encodejson from ashic.utils import get_localinds, get_rdis, parse_localinds from ashic.utils import centroid_distance from ashic.commands.fit import initialx, create_model ...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12530, 291, 1330, 18640, 198, 6738, 12530, 291, 1330, 4645, 198, 6738, 12530, 291, 13, 26791, 1330, 1064, 62, 565, 418, 395, 13664, 62, 28663, 11, 37773, 17...
3.461538
143
# Given an array of integers, find if the array contains any duplicates. # # Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. # # Example 1: # # # Input: [1,2,3,1] # Output: true # # Example 2: # # # Input: [1,2,3,4] # Out...
[ 2, 11259, 281, 7177, 286, 37014, 11, 1064, 611, 262, 7177, 4909, 597, 14184, 16856, 13, 201, 198, 2, 198, 2, 3406, 2163, 815, 1441, 2081, 611, 597, 1988, 3568, 379, 1551, 5403, 287, 262, 7177, 11, 290, 340, 815, 1441, 3991, 611, 7...
2.503448
435
# -*- coding: utf-8 -*- import time import functools import socket import logging from .metricspy.groupmetrics import GroupMetrics from app import load_app_config logger = logging.getLogger(__name__) metrics_clients = {} HOSTNAME = socket.getfqdn()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 640, 198, 11748, 1257, 310, 10141, 198, 11748, 17802, 198, 11748, 18931, 198, 6738, 764, 4164, 10466, 9078, 13, 8094, 4164, 10466, 1330, 4912, 9171, 10466, 198, 673...
2.908046
87
""" Top-level module of Jina. The primary function of this module is to import all of the public Jina interfaces into a single place. The interfaces themselves are located in sub-modules, as described below. """ # DO SOME OS-WISE PATCHES import datetime as _datetime import os as _os import platform as _platform imp...
[ 37811, 198, 9126, 12, 5715, 8265, 286, 449, 1437, 13, 198, 198, 464, 4165, 2163, 286, 428, 8265, 318, 284, 1330, 477, 286, 262, 1171, 449, 1437, 198, 3849, 32186, 656, 257, 2060, 1295, 13, 383, 20314, 2405, 389, 5140, 287, 198, 7266...
2.530864
2,754
import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Optional # ====================== # Schema for: # * 'show wlan summary' # ====================== class ShowWlanSummarySchema(MetaParser): """Schema for show wlan summary.""" schema = { "wlan_summar...
[ 11748, 302, 198, 198, 6738, 2429, 494, 13, 4164, 499, 28198, 1330, 30277, 46677, 198, 6738, 2429, 494, 13, 4164, 499, 28198, 13, 22602, 13, 15952, 2611, 18392, 1330, 4377, 11, 32233, 628, 198, 2, 36658, 1421, 28, 198, 2, 10011, 2611, ...
1.620882
4,310
#!/usr/bin/env python from mnml import TokenBasedApplication, RegexBasedApplication, \ RequestHandler, HttpResponse, HttpResponseRedirect, \ development_server # a MNML application consists of a series of RequestHandlers which return # HttpResponse objects when methods are called. Th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 285, 77, 4029, 1330, 29130, 15001, 23416, 11, 797, 25636, 15001, 23416, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1939...
2.674738
1,239
from django.conf import settings from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), # Use "linaro-openid" to allow pe...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 198, 2, 791, 23893, 262, 1306, 734, 3951, 284, 7139, 262, 13169, 25, 198, 6738, 42625, ...
2.445295
914
"""Gather -- Collect all your plugins Gather allows a way to register plugins. It features the ability to register the plugins from any module, in any package, in any distribution. A given module can register plugins of multiple types. In order to have anything registered from a package, it needs to declare that it s...
[ 37811, 38, 1032, 1377, 9745, 477, 534, 20652, 198, 198, 38, 1032, 3578, 257, 835, 284, 7881, 20652, 13, 198, 1026, 3033, 262, 2694, 284, 7881, 262, 20652, 422, 597, 8265, 11, 198, 259, 597, 5301, 11, 287, 597, 6082, 13, 198, 32, 1...
2.537145
2,571
import gmsh import sys gmsh.initialize(sys.argv) gmsh.fltk.initialize() gmsh.option.setNumber("General.Terminal", 1) gmsh.model.add("square with cracks") surf1 = 1 gmsh.model.occ.addRectangle(0, 0, 0, 1, 1, surf1) pt1 = gmsh.model.occ.addPoint(0.2, 0.2, 0) pt2 = gmsh.model.occ.addPoint(0.4, 0.4, 0) line1 = gmsh.mo...
[ 11748, 308, 907, 71, 198, 11748, 25064, 198, 198, 70, 907, 71, 13, 36733, 1096, 7, 17597, 13, 853, 85, 8, 198, 70, 907, 71, 13, 69, 2528, 74, 13, 36733, 1096, 3419, 198, 198, 70, 907, 71, 13, 18076, 13, 2617, 15057, 7203, 12218,...
2.229541
501