code stringlengths 10 805k | def_use_chains listlengths 0 667 |
|---|---|
"""
ASGI config for CongoCart project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
[
[
232,
234
],
[
287,
289
]
],
[
[
265,
285
],
[
372,
392
]
],
[
[
358,
369
]
]
] |
import pygame
"""
levels.py
Houses all possible levels for the game to choose from.
Selection occurs by invoking the selected level
and by having a return tuple of (pad_sprite, trophies, car[x,y]).
Must still be rendered into the main game.
"""
class PadSprite(pygame.sprite.Sprite):
def __in... | [
[
[
7,
13
],
[
285,
291
],
[
752,
758
],
[
413,
419
],
[
457,
463
],
[
519,
525
],
[
817,
823
],
[
874,
880
]
],
[
[
275,
284
],
... |
''' 3. Criar 2 matrizes 3x4 somar seus valores e armazenar o resultado em uma terceira
matriz 3x4.''' | [] |
#
# Copyright (c) European Synchrotron Radiation Facility (ESRF)
#
# 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,... | [
[
[
1123,
1134
]
],
[
[
1153,
1164
]
],
[
[
1173,
1181
]
],
[
[
1206,
1208
],
[
1481,
1483
]
],
[
[
1216,
1220
],
[
1768,
1772
]
],
[
[
1228,
... |
# -*- coding: utf-8 -*-
import scrapy
import re
from rkpass.items import dzswMorningItem
# 电子商务设计师上午题
class DzswmorningspiderSpider(scrapy.Spider):
name = 'dzswMorningSpider'
allowed_domains = ['www.rkpass.cn']
start_urls = []
paperId_list = ['612', '541', '477', '453', '281', '280', '279', '278', '277... | [
[
[
31,
37
],
[
133,
139
],
[
3211,
3217
]
],
[
[
45,
47
],
[
1290,
1292
]
],
[
[
73,
88
],
[
2862,
2877
]
],
[
[
109,
132
]
]
] |
def decoupling_regularization_prepare(graph, sigma_square,lambda_input):
# get W matrix, Z(for row sum) and Z_prime(for col sum), and A_tilde
# get matrix W:
A = np.array(nx.adjacency_matrix(graph).todense())
d = np.sum(A, axis=1)
D = np.diag(d)
n = len(D)
# Alternative way(19): set Sigma_s... | [
[
[
4,
37
]
]
] |
# coding: utf8
from __future__ import unicode_literals
from ..char_classes import ALPHA, ALPHA_LOWER, ALPHA_UPPER, QUOTES, HYPHENS
from ..char_classes import LIST_ELLIPSES, LIST_ICONS
_hyphens_no_dash = HYPHENS.replace('-', '').strip('|').replace('||', '')
_infixes = (LIST_ELLIPSES + LIST_ICONS +
... | [
[
[
39,
55
]
],
[
[
86,
91
],
[
435,
440
],
[
498,
503
],
[
564,
569
],
[
619,
624
],
[
690,
695
],
[
771,
776
]
],
[
[
93,
104
... |
# -*- coding: utf-8 -*-
# Copyright (c) 2020 Felix Fontein <felix@fontein.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class ModuleDocFragment(object):
DOCUMENTATION = r'''... | [
[
[
197,
212
]
],
[
[
214,
222
]
],
[
[
224,
238
]
],
[
[
240,
253
]
],
[
[
269,
286
]
]
] |
#!/usr/bin/env python3
from pyxdc.exceptions import (
ProviderError, BalanceError, APIError, AddressError, InvalidURLError,
ClientError, NotFoundError, UnitError
)
import pytest
def test_exceptions():
with pytest.raises(ProviderError, match="error"):
raise ProviderError("error")
with pytest... | [
[
[
59,
72
],
[
237,
250
],
[
282,
295
],
[
328,
341
],
[
380,
393
]
],
[
[
74,
86
],
[
435,
447
],
[
479,
491
],
[
524,
536
],
... |
# coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd">
# Copyright (c) 2003-2021 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and ass... | [
[
[
1406,
1421
]
],
[
[
1430,
1438
],
[
3163,
3171
]
],
[
[
1446,
1448
],
[
2613,
2615
],
[
3097,
3099
]
],
[
[
1489,
1490
],
[
1803,
1818
],
... |
import numpy as np
import scipy.sparse as sp
import torch
def encode_onehot(labels):
classes = set(labels)
classes_dict = {c: np.identity(len(classes))[i, :] for i, c in
enumerate(classes)}
labels_onehot = np.array(list(map(classes_dict.get, labels)),
dtype... | [
[
[
7,
18
],
[
136,
138
],
[
240,
242
],
[
321,
323
],
[
549,
551
],
[
647,
649
],
[
727,
729
],
[
823,
825
],
[
865,
867
],
[
... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
[
[
176,
184
]
],
[
[
192,
198
]
],
[
[
206,
220
],
[
386,
392
],
[
888,
894
],
[
501,
507
],
[
523,
529
],
[
823,
829
],
[
938,
944... |
import ast
with open('./test.txt',"r") as f: #设置文件对象
str = f.read() #可以是随便对文件的操作
print(str)
frame_list = ast.literal_eval(str)
for frame in frame_list:
print(frame) | [
[
[
7,
10
],
[
115,
118
]
],
[
[
42,
43
],
[
66,
67
]
],
[
[
60,
63
],
[
97,
100
],
[
132,
135
]
],
[
[
102,
112
],
[
150,
160
... |
"""
Package-level constants
"""
from strenum import StrEnum
class SummaryLevel(StrEnum):
"""
Values for the SUMLEV column in PL94 data
"""
STATE = "040"
STATE_COUNTY = "050"
STATE_COUNTY_TRACT = "140"
STATE_COUNTY_TRACT_BLOCKGROUP = "150"
STATE_COUNTY_TRACT_BLOCKGROUP_BLOCK = "750"
| [
[
[
52,
59
],
[
81,
88
]
],
[
[
68,
80
]
]
] |
import _initpath
import pyradox
#result = pyradox.txt.parse_file('D:/Steam/steamapps/common/Europa Universalis IV/common/prices/00_prices.txt')
#print(result)
result = pyradox.parse("""
regular_group = { 1 2 3 }
empty_tree = {}
mixed_group = {
10
{}
{ a = 1 b = 2 }
20
}
player_countries={
ITA={
... | [
[
[
7,
16
]
],
[
[
24,
31
],
[
170,
177
]
],
[
[
161,
167
],
[
431,
437
]
]
] |
"""
This is a plugin created by ShiN0
Copyright (c) 2020 ShiN0
<https://www.github.com/mgaertne/minqlx-plugin-tests>
You are free to modify this plugin to your own one.
"""
import minqlx
from minqlx import Plugin
from minqlx.database import Redis
import os
import math
import time
import random
import itertools
impo... | [
[
[
182,
188
],
[
1160,
1166
],
[
7687,
7693
],
[
9256,
9262
],
[
17403,
17409
],
[
43938,
43944
],
[
53694,
53700
],
[
54045,
54051
],
[
65611,
... |
"""
Module imports for templates.python.business_logic.my_project.my_app.migrations
This file is automatically generated by ./scripts/empty_pyinit.sh
DO NOT EDIT IT MANUALLY
"""
| [] |
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
# The simplest Django settings possible
# support for Django < 1.5
DATABASE_ENGINE = 'django.db.backends.sqlite3'
DATABASE_NAME = ':memory:'
# support for Django >= 1.5
SECRET_KEY = 'unittest'
DATABASES = {
'default': {
'ENGINE': DATABASE... | [
[
[
135,
150
],
[
312,
327
]
],
[
[
182,
195
],
[
345,
358
]
],
[
[
238,
248
]
],
[
[
263,
272
]
],
[
[
370,
384
]
],
[
[
412,
430
]
]... |
# Copyright (c) 2021, Manfred Moitzi
# License: MIT License
import copy
import math
from typing import Iterable, List, Optional, Tuple
from ezdxf import colors
from ezdxf.entities import MText
from ezdxf.lldxf import const
from ezdxf.math import Matrix44, Vec3
from ezdxf.render.abstract_mtext_renderer import Abstrac... | [
[
[
69,
73
],
[
8219,
8223
],
[
8613,
8617
]
],
[
[
81,
85
],
[
3911,
3915
],
[
4063,
4067
],
[
4072,
4076
]
],
[
[
105,
113
],
[
716,
... |
# -*- coding: utf-8 -*-
#
# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache 2 License.
#
# This product includes software developed at Datadog
# (https://www.datadoghq.com/).
#
# Copyright 2018 Datadog, Inc.
#
"""database.py
Testing utils for creating database records ... | [
[
[
374,
390
],
[
801,
817
],
[
849,
865
],
[
1354,
1370
],
[
1559,
1575
],
[
1895,
1911
],
[
2345,
2361
],
[
2778,
2794
]
],
[
[
392,
4... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('postcode_api', '0003_populate_postcode_area'),
]
operations = [
migrations.CreateModel(
name='LocalAuthority',
... | [
[
[
47,
63
]
],
[
[
87,
93
],
[
369,
375
],
[
518,
524
],
[
681,
687
],
[
832,
838
],
[
946,
952
],
[
1141,
1147
],
[
1285,
1291
]
... |
# coding: utf-8
from collections import namedtuple
from supervisely_lib.api.module_api import ApiField, ModuleApi
from supervisely_lib._utils import camel_to_snake
class PluginApi(ModuleApi):
_info_sequence = [ApiField.ID,
ApiField.NAME,
ApiField.DESCRIPTION,
... | [
[
[
41,
51
],
[
658,
668
]
],
[
[
95,
103
],
[
217,
225
],
[
252,
260
],
[
289,
297
],
[
333,
341
],
[
370,
378
],
[
418,
426
],
... |
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
import torch
import torch.nn as nn... | [
[
[
293,
298
]
],
[
[
306,
320
],
[
499,
501
],
[
1919,
1921
],
[
1033,
1035
],
[
3067,
3069
],
[
4609,
4611
],
[
4656,
4658
],
[
4711,
... |
#
from resolve import resolve
####################################
####################################
# 以下にプラグインの内容をペーストする
#
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout... | [
[
[
22,
29
],
[
370,
377
]
],
[
[
136,
139
],
[
280,
283
],
[
292,
295
],
[
388,
391
],
[
421,
424
]
],
[
[
155,
163
],
[
334,
342
... |
from catalyst.contrib.datasets.misc_cv import ImageClassificationDataset
class Imagewang(ImageClassificationDataset):
"""
`Imagewang <https://github.com/fastai/imagenette#image%E7%BD%91>`_ Dataset.
.. note::
catalyst[cv] required for this dataset.
"""
name = "imagewang"
resources = [... | [
[
[
46,
72
],
[
91,
117
],
[
488,
514
],
[
953,
979
]
],
[
[
81,
90
]
],
[
[
475,
487
]
],
[
[
940,
952
]
],
[
[
1399,
1406
]
]
] |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
[
[
808,
822
]
],
[
[
830,
833
],
[
854,
857
]
],
[
[
841,
849
],
[
19150,
19158
]
],
[
[
878,
888
]
],
[
[
891,
898
]
],
[
[
926,
931
]... |
import unittest
from src.google_foobar.P008_carrotland.solution_01 import answer
class TestSolution(unittest.TestCase):
def testcase_001(self):
vertices = [[2, 3], [6, 9], [10, 160]]
expected = 289
self.assertEqual(answer(vertices), expected)
def testcase_002(self):
vertices ... | [
[
[
7,
15
],
[
103,
111
],
[
1656,
1664
]
],
[
[
75,
81
],
[
246,
252
],
[
428,
434
],
[
575,
581
],
[
778,
784
],
[
982,
988
],
... |
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | [
[
[
796,
799
],
[
1023,
1026
]
],
[
[
821,
835
],
[
987,
994
]
],
[
[
843,
870
],
[
1689,
1698
]
],
[
[
878,
881
],
[
3459,
3462
],
[
... |
from keras.layers import Input
from keras.layers.merge import Concatenate
from keras.models import Model
from keras.optimizers import Adam
from .keras_base import KerasBaseExp
from .keras_base import exp_bag_of_strokes
from .blocks import fc_branch, final_type1
class mlp_type1(KerasBaseExp):
def initialize_mode... | [
[
[
25,
30
],
[
371,
376
]
],
[
[
62,
73
],
[
462,
473
]
],
[
[
99,
104
],
[
606,
611
]
],
[
[
134,
138
],
[
684,
688
]
],
[
[
164... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021 Infoblox, Inc.
# Authors: Amit Mishra (@amishra2-infoblox), Vedant Sethia (@vedantsethia)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
try:
... | [
[
[
271,
286
]
],
[
[
288,
296
]
],
[
[
298,
312
]
],
[
[
331,
339
],
[
974,
982
],
[
1708,
1716
],
[
1805,
1813
],
[
2481,
2489
],
[
... |
# Copyright © 2019 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
[
[
655,
659
],
[
1371,
1375
]
],
[
[
685,
694
],
[
951,
960
]
],
[
[
696,
704
],
[
1144,
1152
]
],
[
[
706,
710
],
[
1241,
1245
]
],
[
... |
"""Autocorrelation plot of data."""
from ..data import convert_to_dataset
from ..labels import BaseLabeller
from ..sel_utils import xarray_var_iter
from ..rcparams import rcParams
from ..utils import _var_names
from .plot_utils import default_grid, filter_plotters_list, get_plotting_function
def plot_autocorr(
da... | [
[
[
55,
73
],
[
3990,
4008
]
],
[
[
95,
107
],
[
4263,
4275
]
],
[
[
132,
147
],
[
4329,
4344
]
],
[
[
171,
179
],
[
4804,
4812
]
],
[
[... |
# -*- encoding: utf-8 -*-
"""
Copyright (c) 2019 - present AppSeed.us
"""
from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import RemOrganization, RemRole, RemUser, Nursery, NurseryPlantsHistory, MotherTree, Plantation, BeninYield, AlteiaData, DeptSatellite,... | [
[
[
102,
107
]
],
[
[
165,
170
],
[
353,
358
],
[
390,
395
],
[
419,
424
],
[
448,
453
],
[
477,
482
],
[
519,
524
],
[
551,
556
],
... |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License.
from __future__ import print_function
import contextlib
import glob
import json
import os
import re
import shutil
import stat
import subprocess
import sys
import tempfile
import time
import unittest
import zipfile
from da... | [
[
[
121,
135
]
],
[
[
144,
154
],
[
3269,
3279
],
[
10148,
10158
],
[
76037,
76047
],
[
79676,
79686
],
[
80529,
80539
],
[
106778,
106788
],
[
... |
from ptypes import *
class Header(pstruct.type):
_fields_ = [
(dyn.block(3), 'Signature'),
(dyn.block(3), 'Version'),
]
class LogicalScreenDescriptor(pstruct.type):
class _Flags(pbinary.struct):
_fields_ = [(1, 'Global Color Table'), (3, 'Color Resolution'), (1, 'Sort'), (3, 'Size'... | [
[
[
19,
20
],
[
35,
42
],
[
76,
79
],
[
113,
116
],
[
176,
183
],
[
208,
215
],
[
560,
564
],
[
594,
598
],
[
656,
660
],
[
70... |
import dis
import re
import sys
import textwrap
import unittest
from test.support import cpython_only
from test.bytecode_helper import BytecodeTestCase
class TestTranforms(BytecodeTestCase):
def test_unot(self):
# UNARY_NOT POP_JUMP_IF_FALSE --> POP_JUMP_IF_TRUE'
def unot(x):
if not... | [
[
[
7,
10
],
[
3395,
3398
],
[
6936,
6939
],
[
9344,
9347
],
[
9565,
9568
],
[
10227,
10230
],
[
10684,
10687
],
[
11318,
11321
],
[
11800,
... |
# -*- coding: utf-8 -*-
__author__ = 'Matt Makai'
__email__ = 'mmakai@twilio.com'
__version__ = '0.1.0' | [
[
[
25,
35
]
],
[
[
51,
60
]
],
[
[
83,
94
]
]
] |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
from numpy.testing import assert_allclose
from .. import Parameter, Parameters, optimize_iminuit
pytest.importorskip("iminuit")
def fcn(parameters):
x = parameters["x"].value
y = parameters["y"].value
z = parameters["z"].value
... | [
[
[
71,
77
],
[
176,
182
],
[
499,
505
]
],
[
[
104,
119
],
[
808,
823
],
[
897,
912
],
[
948,
963
],
[
1079,
1094
],
[
1195,
1210
]... |
m = int(input())
m /= 1000
if m < 0.1:
print('00')
elif 0.1 <= m and m <= 5:
m = str(int(10 * m))
if len(m) == 1:
m = '0' + m
print(m)
elif 6 <= m and m <= 30:
print(int(m) + 50)
elif 35 <= m and m <= 70:
print((int(m) - 30) // 5 + 80)
else:
print('89')
| [
[
[
0,
1
],
[
17,
18
]
],
[
[
85,
86
],
[
117,
118
],
[
144,
145
],
[
156,
157
]
],
[
[
134,
135
],
[
156,
157
]
]
] |
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.distributions as td
class Flow(nn.Module):
"""
Building both normalizing flows and neural flows.
Example:
>>> import stribor as st
>>> torch.manual_seed(123)
>>> dim = 2
>>> flow = st.Flow(st.UnitN... | [
[
[
7,
12
],
[
1665,
1670
]
],
[
[
21,
35
],
[
117,
119
],
[
758,
760
]
],
[
[
44,
68
]
],
[
[
77,
102
]
],
[
[
112,
116
]
]
] |
#!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test external signer.
Verify that a blinkhashd node can use an external signer command.
See also walle... | [
[
[
382,
384
],
[
644,
646
],
[
657,
659
],
[
673,
675
],
[
1265,
1267
],
[
1405,
1407
],
[
1415,
1417
]
],
[
[
392,
400
],
[
735,
743
... |
import pandas as pd
import pathlib
from fairness.results import local_results_path
BASE_DIR = local_results_path()
PACKAGE_DIR = pathlib.Path(__file__).parents[2]
RAW_DATA_DIR = PACKAGE_DIR / 'data' / 'raw'
PROCESSED_DATA_DIR = BASE_DIR / 'data' / 'preprocessed' # Joosje: BASE_DIR used to be PACKAGE_DIR
RESULT_DIR = B... | [
[
[
7,
19
],
[
3523,
3525
],
[
5995,
5997
],
[
6136,
6138
]
],
[
[
27,
34
],
[
130,
137
]
],
[
[
64,
82
],
[
95,
113
]
],
[
[
84,
... |
from django.core.urlresolvers import reverse
from django.http import Http404
from django.test import TestCase, override_settings
import mock
from rest_framework.exceptions import APIException, PermissionDenied
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework.... | [
[
[
37,
44
],
[
1145,
1152
],
[
1950,
1957
]
],
[
[
69,
76
],
[
3329,
3336
],
[
5052,
5059
],
[
5174,
5181
]
],
[
[
101,
109
],
[
853,
... |
import os, sys, urllib.request
from tkinter import *
from tkinter.messagebox import *
__version__ = 3
__filename__ = "ImageRenaming"
__basename__ = os.path.basename(sys.argv[0])
__savepath__ = os.path.join(os.environ['APPDATA'], "QuentiumPrograms")
__iconpath__ = __savepath__ + "/{}.ico".format(__filename__)
try:urll... | [
[
[
7,
9
],
[
149,
151
],
[
194,
196
],
[
207,
209
],
[
428,
430
],
[
466,
468
],
[
955,
957
],
[
1303,
1305
],
[
1373,
1375
],
[
... |
# Generated by Django 3.1.4 on 2021-01-24 04:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exam', '0006_exam_duration'),
]
operations = [
migrations.AlterField(
model_name='exam',
name='duration',
... | [
[
[
71,
81
],
[
108,
118
],
[
227,
237
]
],
[
[
83,
89
],
[
328,
334
]
],
[
[
98,
107
]
]
] |
import asyncio
import inspect
import json
import os
import random
import unittest
from unittest.mock import Mock
import aiohttp
import aiohttp.web
from aiohttp.test_utils import unittest_run_loop, setup_test_loop, teardown_test_loop
import pep8
import jsonrpc_base
import jsonrpc_websocket.jsonrpc
from jsonrpc_websock... | [
[
[
7,
14
],
[
884,
891
],
[
4782,
4789
],
[
4385,
4392
],
[
4398,
4405
],
[
4456,
4463
]
],
[
[
22,
29
]
],
[
[
37,
41
],
[
2220,
2... |
r"""
Incidence structures (i.e. hypergraphs, i.e. set systems)
An incidence structure is specified by a list of points, blocks, or an incidence
matrix ([1]_, [2]_). :class:`IncidenceStructure` instances have the following methods:
{METHODS_OF_IncidenceStructure}
REFERENCES:
.. [1] Block designs and incidence struct... | [
[
[
1683,
1697
]
],
[
[
1706,
1709
],
[
17658,
17661
],
[
17740,
17743
],
[
32528,
32531
],
[
50420,
50423
],
[
70054,
70057
],
[
74343,
74346
]
],
... |
# -*- coding: utf-8 -*-
# Define source file encoding to support raw unicode characters in Python 2
import sys
# Third party
import pytest
# Project
from ddtrace.compat import to_unicode, PY2, reraise, get_connection_response
# Use different test suites for each Python version, this allows us to test the expected
#... | [
[
[
107,
110
],
[
4899,
4902
]
],
[
[
133,
139
],
[
4689,
4695
]
],
[
[
178,
188
],
[
581,
591
],
[
813,
823
],
[
1208,
1218
],
[
1449,
... |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import contextlib
import copy
import importlib.util
import logging
import math
import os
import sys
import warnings
from collections import de... | [
[
[
185,
195
],
[
15270,
15280
],
[
15796,
15806
]
],
[
[
203,
207
],
[
11285,
11289
],
[
11853,
11857
]
],
[
[
215,
229
],
[
13475,
13484
]
],
... |
from numpy.core.fromnumeric import reshape
import torch
import numpy as np
import pickle
from itertools import combinations, permutations
from sklearn.decomposition import PCA
from sklearn.manifold import MDS, TSNE
from scipy.stats import pearsonr, ttest_ind
import statsmodels.api as sm
from dataset import get_loaders... | [
[
[
35,
42
]
],
[
[
50,
55
],
[
655,
660
],
[
729,
734
],
[
5129,
5134
]
],
[
[
64,
75
],
[
867,
869
],
[
1291,
1293
],
[
1369,
1371... |
from hummingbot.client.config.config_var import ConfigVar
from hummingbot.client.config.config_validators import (
validate_exchange,
validate_market_trading_pair,
)
from hummingbot.client.settings import (
required_exchanges,
EXAMPLE_PAIRS,
)
from typing import Optional
def symbol_prompt():
excha... | [
[
[
48,
57
],
[
1197,
1206
],
[
1317,
1326
],
[
1594,
1603
],
[
1787,
1796
],
[
2103,
2112
],
[
2363,
2372
],
[
2584,
2593
],
[
2801,
2810
... |
from django.views.generic import View
from django.http import HttpResponse
from django.conf import settings
import os
class ReactAppView(View):
def get(self, request):
try:
with open(os.path.join(str(settings.ROOT_DIR), 'frontend', 'build', 'index.html')) as file:
return HttpR... | [
[
[
33,
37
],
[
139,
143
]
],
[
[
62,
74
],
[
315,
327
],
[
377,
389
]
],
[
[
99,
107
],
[
227,
235
]
],
[
[
115,
117
],
[
210,
... |
# Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='ProductMain']/div[@class='product-title']/h1",
'price' : "//div[@class='Row Price']/div[@class='ProductPrice VariationPr... | [
[
[
104,
108
],
[
837,
841
],
[
915,
919
]
],
[
[
143,
156
],
[
842,
855
],
[
920,
933
]
],
[
[
158,
163
]
],
[
[
636,
640
]
],
[
[
... |
#!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Copyright (c) 2017 The Ravencoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test using named arguments for RPCs."""
from test_framew... | [
[
[
346,
368
],
[
477,
499
]
],
[
[
407,
419
],
[
873,
885
],
[
911,
923
],
[
980,
992
],
[
1031,
1043
],
[
1085,
1097
]
],
[
[
425,
... |
# coding: utf-8
"""
"""
import pandas as pd
import numpy as np
import cv2 # Used to manipulated the images
from scipy.signal import wiener
np.random.seed(1207) # The seed I used - pick your own or comment out for a random seed. A constant seed allows for better comparisons though
# Import Keras
from keras.mo... | [
[
[
36,
48
],
[
722,
724
],
[
5353,
5355
],
[
5523,
5525
]
],
[
[
57,
68
],
[
148,
150
],
[
3752,
3754
],
[
3850,
3852
],
[
4171,
4173
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from concurrent import futures
def naehere_pi_an(n):
pi_halbe = 1
zaehler, nenner = 2.0, 1.0
for i in range(n):
pi_halbe *= zaehler / nenner
if i % 2:
zaehler += 2
else:
nenner += 2
return 2... | [
[
[
70,
77
],
[
405,
412
]
],
[
[
83,
96
],
[
483,
496
]
],
[
[
332,
333
],
[
498,
499
]
],
[
[
450,
452
],
[
476,
478
]
]
] |
#!/usr/bin/env python
__all__ = ['nicovideo_download']
from ..common import *
def nicovideo_login(user, password):
data = "current_form=login&mail=" + user +"&password=" + password + "&login_submit=Log+In"
response = request.urlopen(request.Request("https://secure.nicovideo.jp/secure/login?site=niconico", he... | [
[
[
23,
30
]
],
[
[
78,
79
],
[
1652,
1674
],
[
228,
235
],
[
244,
251
],
[
326,
338
],
[
504,
511
],
[
591,
598
],
[
634,
641
],
... |
import pytest
from .base import TestBaseClass
# flake8: noqa W291 - we want to explicitly test trailing whitespace here
class TestClassOelintVarsValueQuoted(TestBaseClass):
@pytest.mark.parametrize('id', ['oelint.vars.valuequoted'])
@pytest.mark.parametrize('occurrence', [2])
@pytest.mark.parametrize('in... | [
[
[
7,
13
],
[
181,
187
],
[
245,
251
],
[
293,
299
],
[
842,
848
],
[
906,
912
],
[
954,
960
]
],
[
[
33,
46
],
[
159,
172
]
],
... |
# See: https://packaging.python.org/en/latest/distributing/#standards-compliance-for-interoperability
__version__ = '0.9.0'
| [
[
[
102,
113
]
]
] |
#!/usr/bin/python3
# --- 001 > U5W1P1_Task1_w1
def solution(s):
# print( ''.join(reversed(s)) )
if( s==''.join(reversed(s))):
return bool(True)
return bool(False)
if __name__ == "__main__":
print('----------start------------')
s = "zork"
print(solution( s ))
print('------------en... | [
[
[
52,
60
],
[
280,
288
]
],
[
[
259,
260
],
[
290,
291
]
]
] |
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 9 10:51:35 2019
@author: levy.he
"""
import ctypes
from . import vxlapy
def stringify(cobj, indent=2):
s = "%s\n" % type(cobj)
if issubclass(type(cobj), ctypes.Union):
cobj = getattr(cobj, cobj._fields_[0][0])
if issubclass(type(cobj), ctypes.Struct... | [
[
[
94,
100
],
[
212,
218
],
[
307,
313
],
[
1701,
1707
],
[
1741,
1747
],
[
1783,
1789
],
[
2538,
2544
],
[
4063,
4069
],
[
4127,
4133
... |
import pandas as pd
import numpy as np
from time import time
import sys
class StateBasedBucketer(object):
def __init__(self, encoder):
self.encoder = encoder
self.dt_states = None
self.n_states = 0
def fit(self, X, y=None):
dt_encoded = self.... | [
[
[
7,
19
],
[
707,
709
]
],
[
[
27,
38
]
],
[
[
56,
60
]
],
[
[
68,
71
]
],
[
[
79,
97
]
]
] |
""" Test cases for .hist method """
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas import DataFrame, Index, Series, to_datetime
import pandas._testing as tm
from pandas.tests.plotting.common import TestPlotBase, _check_plot_works
pytestmark = pytest.mark.slow
@td.skip_if_no... | [
[
[
44,
55
],
[
1625,
1627
],
[
3891,
3893
],
[
3930,
3932
],
[
4887,
4889
],
[
5330,
5332
],
[
5916,
5918
],
[
6431,
6433
],
[
6497,
6499
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class BillDingBizOrderSum(object):
def __init__(self):
self._biz_date = None
self._expenses = None
self._income = None
@property
def biz_date(self):
return self... | [
[
[
53,
57
]
],
[
[
110,
111
]
],
[
[
120,
139
],
[
1537,
1556
]
]
] |
class Calculator:
def __init__(self):
pass
def add(self, a, b):
return a + b
def divide(self, a, b):
return b / a
# Todo: Add subtract option
# def root(a):
# return math.sqrt()
def greetings(name):
print('Hello ' + name + '!')
def goodbye():
print('Good... | [
[
[
6,
16
],
[
344,
354
]
],
[
[
238,
247
]
],
[
[
294,
301
]
],
[
[
329,
341
],
[
355,
367
]
]
] |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
[
[
793,
799
],
[
16168,
16174
]
],
[
[
807,
818
]
],
[
[
826,
841
],
[
2332,
2343
],
[
2831,
2842
]
],
[
[
849,
853
],
[
20198,
20202
]
],
... |
"""
MIT License
Copyright (c) 2019 Yoga Suhas Kuruba Manjunath
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, m... | [
[
[
1140,
1152
]
],
[
[
1210,
1226
]
],
[
[
1274,
1280
]
],
[
[
1313,
1319
]
],
[
[
1377,
1396
]
],
[
[
1403,
1424
]
],
[
[
1468,
1473
]
],
[
[
... |
import numpy as np
import theano
import theano.tensor as TT
from rllab.core.serializable import Serializable
from rllab.misc import ext
from rllab.misc import krylov
from rllab.misc import logger
from rllab.misc.ext import sliced_fun
class PerlmutterHvp(Serializable):
def __init__(self, num_slices=1):
S... | [
[
[
7,
18
],
[
9147,
9149
],
[
9916,
9918
],
[
10064,
10066
],
[
10266,
10268
],
[
10404,
10406
],
[
10857,
10859
],
[
10875,
10877
],
[
11111,
... |
# coding: utf-8
import pprint
import re
import six
class TemplateCddl:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is js... | [
[
[
24,
30
],
[
3377,
3383
]
],
[
[
38,
40
]
],
[
[
49,
52
],
[
2457,
2460
]
],
[
[
64,
76
],
[
3617,
3629
]
]
] |
from flask import Flask, render_template, redirect, url_for, flash, request, abort
from functions import UserLogin, UserRegistration, NewExpense
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import func
from datetime import datetime, timedelta, date
from flask_bcrypt import Bcrypt
from flask_login import Logi... | [
[
[
18,
23
],
[
639,
644
]
],
[
[
25,
40
],
[
2547,
2562
],
[
3146,
3161
],
[
4834,
4849
],
[
5883,
5898
],
[
7295,
7310
],
[
10224,
102... |
import unittest
import mock
import numpy
import pytest
import cupy
from cupy import testing
from cupyx.scipy import sparse
@testing.parameterize(*testing.product({
'dtype': [numpy.float32, numpy.float64, numpy.complex64, numpy.complex128],
'format': ['csr', 'csc', 'coo'],
'm': [3],
'n': [None, 3, 2]... | [
[
[
7,
15
],
[
389,
397
],
[
913,
921
],
[
1366,
1374
],
[
1825,
1833
],
[
4074,
4082
],
[
4779,
4787
]
],
[
[
24,
28
],
[
3521,
3525
... |
import torch
import numpy as np;
from torch.autograd import Variable
def normal_std(x):
return x.std() * np.sqrt((len(x) - 1.)/(len(x)))
class Data_utility(object):
# train and valid is the ratio of training set and validation set. test = 1 - train - valid
def __init__(self, dSet, train, valid, cuda, hor... | [
[
[
7,
12
],
[
753,
758
],
[
1055,
1060
],
[
1066,
1071
],
[
1082,
1087
],
[
2145,
2150
],
[
2189,
2194
],
[
2350,
2355
],
[
2413,
2418
... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: device_administration_dictionary_attributes_policy_set_info
short_description: Information module for Device Admin... | [
[
[
173,
186
]
],
[
[
850,
858
]
],
[
[
1179,
1185
]
]
] |
##########################################################################
#
# Copyright (c) 2011, John Haddon. All rights reserved.
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | [
[
[
1867,
1873
],
[
2147,
2153
]
],
[
[
1882,
1888
],
[
1971,
1977
],
[
2043,
2049
],
[
2096,
2102
],
[
2117,
2123
]
],
[
[
1950,
1969
],
[
... |
# buildifier: disable=module-docstring
load("@rules_foreign_cc//tools/build_defs/shell_toolchain/toolchains:function_and_call.bzl", "FunctionAndCall")
_REPLACE_VALUE = "BAZEL_GEN_ROOT"
def os_name():
return "Fancy"
def pwd():
return "$(pwd)"
def echo(text):
return "printf \"{text}\"".format(text = text)... | [
[
[
152,
166
],
[
3631,
3645
],
[
3848,
3862
]
],
[
[
191,
198
]
],
[
[
226,
229
]
],
[
[
258,
262
]
],
[
[
326,
336
]
],
[
[
426,
435
]... |
import re
import uuid
from django.db import transaction
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth import get_user_model
from django.contrib.sites.models import Site
from django.core.files import File
from django.utils.translation import gettext_lazy as _
from django.con... | [
[
[
7,
9
],
[
15535,
15537
]
],
[
[
17,
21
],
[
3555,
3559
]
],
[
[
45,
56
],
[
16115,
16126
]
],
[
[
82,
90
],
[
5055,
5063
],
[
1193... |
"""
Django settings for Gallery project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
[
[
316,
318
],
[
1200,
1202
],
[
1216,
1218
],
[
1232,
1234
],
[
3469,
3471
],
[
3555,
3557
],
[
3707,
3709
]
],
[
[
327,
342
],
[
885,
... |
"""SwaggerToSdk core tools.
"""
from enum import Enum, unique
import json
import logging
import os
import re
import tempfile
from pathlib import Path
import requests
from github import Github, UnknownObjectException
from .autorest_tools import (
autorest_latest_version_finder,
autorest_bootstrap_version_find... | [
[
[
49,
53
],
[
1570,
1574
]
],
[
[
55,
61
],
[
1543,
1549
]
],
[
[
69,
73
],
[
5874,
5878
],
[
6532,
6536
]
],
[
[
81,
88
],
[
442,
... |
import torch
from ptstat.core import RandomVariable, _to_v
class Categorical(RandomVariable):
"""
Categorical over 0,...,N-1 with arbitrary probabilities, 1-dimensional rv, long type.
"""
def __init__(self, p=None, p_min=1E-6, size=None, cuda=False):
super(Categorical, self).__init__()
... | [
[
[
7,
12
],
[
504,
509
],
[
532,
537
],
[
566,
571
],
[
576,
581
],
[
586,
591
],
[
639,
644
],
[
779,
784
],
[
931,
936
],
[
... |
# (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from .__about__ import __version__
from .http_check import HTTPCheck
__all__ = ['__version__', 'HTTPCheck']
| [
[
[
139,
150
]
],
[
[
175,
184
]
],
[
[
186,
193
]
]
] |
import unittest
from localstack.utils.aws import aws_stack
class SSMTest(unittest.TestCase):
def test_describe_parameters(self):
ssm_client = aws_stack.connect_to_service("ssm")
response = ssm_client.describe_parameters()
self.assertIn("Parameters", response)
self.assertIsInstanc... | [
[
[
7,
15
],
[
76,
84
]
],
[
[
50,
59
],
[
157,
166
],
[
409,
418
],
[
760,
769
],
[
1109,
1118
],
[
1166,
1175
],
[
2080,
2089
],
... |
import json
import os
import sys
from . import uploader
from . import processing
from . import exif_read
def verify_mapillary_tag(filepath):
filepath_keep_original = processing.processed_images_rootpath(filepath)
if os.path.isfile(filepath_keep_original):
filepath = filepath_keep_original
"""
... | [
[
[
7,
11
],
[
3740,
3744
],
[
4451,
4455
],
[
6237,
6241
]
],
[
[
19,
21
],
[
227,
229
],
[
1080,
1082
],
[
1121,
1123
],
[
1487,
1489
... |
import re
import click
from cloup import option, option_group
from ... import logger
def validate_scene_range(ctx, param, value):
try:
start = int(value)
return (start,)
except Exception:
pass
if value:
try:
start, end = map(int, re.split(r"[;,\-]", value))
... | [
[
[
7,
9
],
[
291,
293
],
[
571,
573
]
],
[
[
18,
23
],
[
1237,
1242
],
[
1489,
1494
],
[
2222,
2227
],
[
2764,
2769
]
],
[
[
42,
48... |
from setuptools import setup, find_packages
setup(
name="intent_classifier",
version="0.2.0",
packages=find_packages(),
include_package_data=True,
install_requires=["numpy", "scipy", "PyMySQL", "scikit-learn==0.20.3"]
)
| [
[
[
23,
28
],
[
45,
50
]
],
[
[
30,
43
],
[
116,
129
]
]
] |
from django.contrib import admin
from application.models import Profile
# Register your models here.
admin.site.register(Profile)
| [
[
[
27,
32
],
[
102,
107
]
],
[
[
64,
71
],
[
122,
129
]
]
] |
#!/usr/local/bin/python
'''
pyAero_geometry
Holds the Python Aerodynamic Analysis Classes (base and inherited).
Copyright (c) 2008 by Dr. Ruben E. Perez
All rights reserved. Not to be used for commercial purposes.
Revision: 1.1 $Date: 21/05/2008 21:00$
Developers:
-----------
- Dr. Ruben E. Perez (RP)
History
--... | [
[
[
381,
392
]
],
[
[
627,
629
]
],
[
[
631,
634
]
],
[
[
642,
645
]
],
[
[
840,
845
]
],
[
[
1394,
1402
],
[
4090,
4098
]
],
[
[
3254,
... |
from orchespy import device
from orchespy.devicetype import CUDAGPU, Host, VE
import sys
import pytest
import numpy as np
if "cupy" in sys.modules:
import cupy as cp
if "nlcpy" in sys.modules:
import nlcpy as vp
no_nlcpy = pytest.mark.skipif(
"nlcpy" not in sys.modules, reason=' test require nlcpy. '... | [
[
[
21,
27
],
[
450,
456
],
[
602,
608
],
[
756,
762
]
],
[
[
60,
67
],
[
609,
616
]
],
[
[
69,
73
],
[
457,
461
]
],
[
[
75,
77... |
# !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2021
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '6/29/21 10:49 AM'
# sys
import typing as t
from threading import Lock
from threading import get_ident
# 3p
import sqlalchemy
from sqlalchemy import (
orm,
schema,
)... | [
[
[
179,
190
],
[
561,
562
],
[
4089,
4090
],
[
4145,
4146
],
[
4192,
4193
],
[
4255,
4256
],
[
4317,
4318
],
[
4374,
4375
],
[
5020,
5021
... |
# Copyright (c) 2019 Platform9 Systems 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 ... | [
[
[
615,
622
],
[
1026,
1033
]
],
[
[
646,
652
],
[
870,
876
],
[
915,
921
],
[
961,
967
],
[
1008,
1014
],
[
1055,
1061
],
[
1100,
1106... |
"""SCons.Tool.sunf77
Tool-specific initialization for sunf77, the Sun Studio F77 compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permission is... | [
[
[
1365,
1377
]
],
[
[
1449,
1459
],
[
1853,
1858
],
[
1917,
1922
]
],
[
[
1487,
1501
],
[
1637,
1651
]
],
[
[
1503,
1512
],
[
1681,
1690
],
... |
# Package: values
# Date: 11th April 2010
# Author: James Mills, prologic at shortcircuit dot net dot au
"""Values
This defines the Value object used by components and events.
"""
from types import ListType
from itertools import imap
from events import Event
class ValueChanged(Event):
"""Value Changed E... | [
[
[
208,
216
],
[
1955,
1963
],
[
2916,
2924
]
],
[
[
239,
243
],
[
2172,
2176
]
],
[
[
264,
269
],
[
290,
295
]
],
[
[
277,
289
],
[
... |
"""
Deploy semi-supervised PU machine learning models.
This module provides classes for training, testing, and deploying a PU
learning model for predicting material synthesizability. Utility functions
for plotting aid in visualizing and analyzing results.
References:
[1] DOI: 10.1021/acsnano.8b08014
[2] DOI: ... | [
[
[
420,
442
]
],
[
[
471,
502
]
],
[
[
531,
537
],
[
18424,
18430
]
],
[
[
566,
581
],
[
19156,
19171
]
],
[
[
583,
606
],
[
20040,
20063
]... |
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | [
[
[
632,
647
]
],
[
[
671,
679
]
],
[
[
703,
717
]
],
[
[
734,
738
],
[
931,
935
],
[
1052,
1056
],
[
1119,
1123
]
],
[
[
765,
773
],
[
... |
"""GaussianProcessRegressionSklearn tests.
Scientific Machine Learning Benchmark:
A benchmark of regression models in chem- and materials informatics.
"""
import pytest
import numpy as np
skl = pytest.importorskip("sklearn")
import smlb
from smlb.learners.scikit_learn.gaussian_process_regression_sklearn import Gau... | [
[
[
164,
170
],
[
198,
204
]
],
[
[
179,
190
],
[
676,
678
],
[
706,
708
],
[
764,
766
],
[
909,
911
],
[
1567,
1569
],
[
1601,
1603
... |
# Picking Numbers
# Developer: Murillo Grubler
# Link: https://www.hackerrank.com/challenges/picking-numbers/problem
def picking_number(n, arr):
max_combinations = 0
for i in range(n):
combination = arr.count(arr[i]) + arr.count(arr[i] + 1)
if combination > max_combinations:
max_co... | [
[
[
122,
136
],
[
465,
479
]
],
[
[
374,
375
],
[
480,
481
]
],
[
[
399,
400
],
[
483,
484
]
]
] |
#!/usr/bin/env python3
import os
import sys
from vmaf.core.quality_runner import QualityRunner
from vmaf.core.result_store import FileSystemResultStore
from vmaf.routine import run_remove_results_for_dataset
from vmaf.tools.misc import import_python_file
__copyright__ = "Copyright 2016-2020, Netflix, Inc."
__license__... | [
[
[
30,
32
],
[
442,
444
]
],
[
[
40,
43
],
[
459,
462
],
[
620,
623
],
[
707,
710
],
[
746,
749
]
],
[
[
81,
94
],
[
996,
1009
... |
""" Dataframe functions """
import logging
import os
from tempfile import mkstemp
import pandas as pd
from box import Box
# pylint: disable=too-many-arguments
logger = logging.getLogger(__name__) # pylint: disable=C0103
def pd_export(
dataframe: pd.DataFrame,
export_type: str,
df_name: str,
temp_n... | [
[
[
35,
42
],
[
171,
178
]
],
[
[
50,
52
],
[
832,
834
],
[
1074,
1076
]
],
[
[
74,
81
],
[
679,
686
]
],
[
[
90,
102
],
[
256,
... |
from .MidiInfo import * | [
[
[
22,
23
]
]
] |
#!/usr/bin/env python3
import argparse
import json
import urllib.request
if __name__ == '__main__':
parser = argparse.ArgumentParser ()
parser.add_argument ('-v', '--verbose', help = 'Enable Verbose Mode', action = 'store_true')
parser.add_argument ('-ip', help = 'IP Address to Test')
args = parser.parse_arg... | [
[
[
31,
39
],
[
114,
122
]
],
[
[
47,
51
],
[
544,
548
]
],
[
[
59,
73
],
[
557,
563
]
],
[
[
105,
111
],
[
143,
149
],
[
238,
2... |
import os
import json
from pathlib import Path
import jimi
# Initialize
dbCollectionName = "model"
class _model(jimi.db._document):
name = str()
className = str()
classType = str()
location = str()
hidden = bool()
manifest = dict()
_dbCollection = jimi.db.db[dbCollectionName]
def ne... | [
[
[
7,
9
]
],
[
[
17,
21
],
[
11808,
11812
],
[
16707,
16711
]
],
[
[
42,
46
]
],
[
[
55,
59
],
[
115,
119
],
[
280,
284
],
[
3607,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.