Dataset Viewer
Auto-converted to Parquet Duplicate
org_text
stringlengths
761
968k
texts
sequence
scores
sequence
num_lines
int64
1
25.7k
avg_score
float64
0
0.31
#!/usr/bin/env python """ patrol_smach.py - Version 1.0 2013-04-12 Control a robot to patrol a square area using SMACH Created for the Pi Robot Project: http://www.pirobot.org Copyright (c) 2013 Patrick Goebel. All rights reserved. This program is free software; you can redistribute it and/or modif...
[ "#!/usr/bin/env python\n", "\n", "\"\"\" patrol_smach.py - Version 1.0 2013-04-12\n", "\n", " Control a robot to patrol a square area using SMACH\n", "\n", " Created for the Pi Robot Project: http://www.pirobot.org\n", " Copyright (c) 2013 Patrick Goebel. All rights reserved.\n", "\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2, 0, 0, 0, 0, 0.2, 0, 0.14285714285714285, 0, 0, 0, 0, 0, 0, 0, 0, 0.0625, 0, 0, 0.1111111111111111, 0, 0, 0.1111111111111111, 0, 0, 0.1111111111111111, 0, 0, 0, 0, 0, 0, 0, 0.111111...
109
0.022425
from __future__ import division, print_function, absolute_import import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import tensorflow as tf import tflearn from tflearn.data_utils import to_categorical import tflearn.data_utils as du from tflearn.layers.core impor...
[ "from __future__ import division, print_function, absolute_import\n", "\n", "import numpy as np # linear algebra\n", "import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n", "import tensorflow as tf\n", "import tflearn\n", "from tflearn.data_utils import to_categorical\n", "import t...
[ 0, 0, 0.027777777777777776, 0.014084507042253521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012345679012345678, 0.012658227848101266, 0, 0.012578616352201259, 0.012903225806451613, 0, 0.058823529411764705, 0, 0.058823529411764705, 0, 0.0625, 0, 0.0625, ...
125
0.009461
#!/usr/bin/env python3 # THIS FILE IS PART OF THE CYLC SUITE ENGINE. # Copyright (C) NIWA & British Crown (Met Office) & Contributors. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either v...
[ "#!/usr/bin/env python3\n", "\n", "# THIS FILE IS PART OF THE CYLC SUITE ENGINE.\n", "# Copyright (C) NIWA & British Crown (Met Office) & Contributors.\n", "#\n", "# This program is free software: you can redistribute it and/or modify\n", "# it under the terms of the GNU General Public License as publis...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
276
0
#!/usr/bin/env python # # 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 # "...
[ "#!/usr/bin/env python\n", "#\n", "# Licensed to the Apache Software Foundation (ASF) under one\n", "# or more contributor license agreements. See the NOTICE file\n", "# distributed with this work for additional information\n", "# regarding copyright ownership. The ASF licenses this file\n", "# to you...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02857142857142857, 0.16666666666666666, 0, 0, 0.045454545454545456, 0, 0, 0, 0, 0.019230769230769232, 0, 0,...
119
0.007546
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function __metaclass__ = type # Copyright 2019 Palo Alto Networks, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ...
[ "#!/usr/bin/env python\n", "# -*- coding: utf-8 -*-\n", "\n", "from __future__ import absolute_import, division, print_function\n", "__metaclass__ = type\n", "\n", "# Copyright 2019 Palo Alto Networks, Inc\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# yo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
123
0.000273
# Copyright 2015, Yahoo Inc. # Licensed under the terms of the Apache License, Version 2.0. See the LICENSE file associated with the project for terms. from pyspark.context import SparkContext import numpy as np import base64 import cPickle as pkl from tempfile import NamedTemporaryFile import os import subprocess fro...
[ "# Copyright 2015, Yahoo Inc.\n", "# Licensed under the terms of the Apache License, Version 2.0. See the LICENSE file associated with the project for terms.\n", "from pyspark.context import SparkContext\n", "\n", "import numpy as np\n", "import base64\n", "import cPickle as pkl\n", "from tempfile imp...
[ 0, 0.008130081300813009, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011904761904761904, 0.011494252873563218, 0.010526315789473684, 0, 0, 0.009259259259259259, 0, 0, 0.034482758620689655, 0, 0.014285714285714285, 0, 0.011111111111111112, 0, 0, 0, 0, 0.01...
136
0.002114
import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry import logging import os from datetime import datetime try: import defusedxml.minidom as xml except ImportError: import xml.dom.minidom as xml class instagram: def __init__(self, cookie): ...
[ "import requests\n", "from requests.adapters import HTTPAdapter\n", "from requests.packages.urllib3.util.retry import Retry\n", "import logging\n", "import os\n", "from datetime import datetime\n", "try:\n", " import defusedxml.minidom as xml\n", "except ImportError:\n", " import xml.dom.min...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.058823529411764705, 0, 0, 0, 0, 0.009259259259259259, 0, 0, 0, 0, 0, 0, 0.025, 0.02, 0.023809523809523808, 0.023529411764705882, 0.022222222222222223, 0.013157894736842105, 0.02631578947368421, 0, 0, 0.013793103448275...
272
0.002124
from airflow.hooks.base_hook import BaseHook from airflow import configuration try: snakebite_imported = True from snakebite.client import Client, HAClient, Namenode except ImportError: snakebite_imported = False from airflow.utils import AirflowException class HDFSHookException(AirflowException): p...
[ "from airflow.hooks.base_hook import BaseHook\n", "from airflow import configuration\n", "\n", "try:\n", " snakebite_imported = True\n", " from snakebite.client import Client, HAClient, Namenode\n", "except ImportError:\n", " snakebite_imported = False\n", "\n", "from airflow.utils import...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03225806451612903, 0.017241379310344827, 0.029411764705882353, 0.008333333333333333, 0, 0, 0.011904761...
50
0.001983
import json import csv """ def write_to_text(data, filename): f = open(filename, 'w', encoding = 'utf-8') for line in data: f.write(line + '\n') f.close() """ def read_text_file(filename): ignore = [] ignore.append('[') ignore.append(']') ignore.append('') f = open(filename, en...
[ "import json\n", "import csv\n", "\n", "\"\"\"\n", "def write_to_text(data, filename):\n", " f = open(filename, 'w', encoding = 'utf-8')\n", " for line in data:\n", " f.write(line + '\\n')\n", " f.close()\n", "\"\"\"\n", "\n", "def read_text_file(filename):\n", " ignore = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.029411764705882353, 0, 0.04081632653061224, 0, 0, 0, 0.05, 0, 0, 0, 0.027777777777777776, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01...
49
0.024418
#!/usr/bin/python -u from optparse import OptionParser, OptionGroup from sys import argv as sys_argv, exit from swiftclient import Client def upload(options): values = { 'username': options.os_username, 'password': options.os_password, 'auth_url': options.os_auth_url, 'project_na...
[ "#!/usr/bin/python -u\n", "\n", "from optparse import OptionParser, OptionGroup\n", "from sys import argv as sys_argv, exit\n", "\n", "from swiftclient import Client\n", "\n", "def upload(options):\n", "\n", " values = {\n", " 'username': options.os_username,\n", " 'password':...
[ 0, 0, 0, 0, 0, 0, 0, 0.047619047619047616, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.043478260869565216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.038461538461538464, 0, 0, 0, 0, 0, 0, 0, ...
152
0.002443
# Copyright (c) 2015 Huawei, 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 b...
[ "# Copyright (c) 2015 Huawei, Inc. All rights reserved.\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n", "# not use this file except in compliance with the License. You may obtain\n", "# a copy of the License at\n", "#\n", "# http://www.apache....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
32
0
from __future__ import print_function from ase.db.table import dict2forces, hill from ase.data import atomic_masses, chemical_symbols from ase.db.core import float_to_time_string, now import numpy as np class Summary: def __init__(self, dct, subscript=None): self.dct = dct self.cell = [...
[ "from __future__ import print_function\n", "\n", "from ase.db.table import dict2forces, hill\n", "from ase.data import atomic_masses, chemical_symbols\n", "from ase.db.core import float_to_time_string, now\n", "\n", "import numpy as np\n", "\n", "\n", "class Summary:\n", " def __init__(self, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1111111111111111, 0, 0.1111111111111111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.047619047619047616, 0, 0, 0, 0.07692307692307693, 0, 0, 0, 0, 0.07692307692307693, 0, 0, 0,...
125
0.010963
import sys from metatlas import metatlas_objects as metob import metatlas.helpers.metatlas_get_data_helper_fun as ma_data import os from IPython.display import display import matplotlib.pyplot as plt try: import ipywidgets as widgets except ImportError: from IPython.html import widgets try: import traitl...
[ "import sys\n", "\n", "from metatlas import metatlas_objects as metob\n", "import metatlas.helpers.metatlas_get_data_helper_fun as ma_data\n", "import os\n", "\n", "\n", "from IPython.display import display\n", "import matplotlib.pyplot as plt\n", "try:\n", " import ipywidgets as widgets\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
221
0.00685
#!/usr/bin/env python ''' Plots the gravitational potential of the earth and moon assumes the earth is at 0,0 and moon is on x-axis. Inspired by http://www.wired.com/2014/07/contour-plots-with-python-and-plotly/?mbid=social_twitter and: https://gist.github.com/rhettallain/1aa12b44d59562ce08fc Practicing plotly ''' _...
[ "#!/usr/bin/env python\n", "'''\n", "Plots the gravitational potential of the earth and moon\n", "assumes the earth is at 0,0 and moon is on x-axis.\n", "\n", "Inspired by http://www.wired.com/2014/07/contour-plots-with-python-and-plotly/?mbid=social_twitter\n", "and: https://gist.github.com/rhettallain...
[ 0, 0, 0, 0, 0, 0.010101010101010102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02127659574468085, 0, 0, 0, 0.023809523809523808, 0, 0.01680672268907563, 0, 0, 0, 0, 0, 0.08695652173913043, 0, 0, 0, 0, 0, 0, 0, 0, 0.03773584905660377...
54
0.008172
""" EULA APP This module provides additional functionality to the EUAL app. Classes: EULAAcceptedMixin Functions: n/a Created on 23 Oct 2013 @author: michael """ from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse_lazy from django.contrib.auth.decorators import...
[ "\"\"\"\n", "EULA APP\n", "\n", "This module provides additional functionality to the EUAL app.\n", "\n", "Classes:\n", " EULAAcceptedMixin\n", "\n", "Functions:\n", " n/a\n", "\n", "Created on 23 Oct 2013\n", "\n", "@author: michael\n", "\n", "\"\"\"\n", "from django.core.exce...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.030303030303030304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.015625, 0.015625, 0, 0, 0, 0, 0, ...
70
0.000879
"""Fixtures for tests in this directory.""" import multiprocessing import multiprocessing.queues import sys import httpretty import pytest from sphinx import build_main def run_build_main(docs_dir, html_dir, overflow): """Run build_main(). :param str docs_dir: Path to input docs directory. :param str h...
[ "\"\"\"Fixtures for tests in this directory.\"\"\"\n", "\n", "import multiprocessing\n", "import multiprocessing.queues\n", "import sys\n", "\n", "import httpretty\n", "import pytest\n", "from sphinx import build_main\n", "\n", "\n", "def run_build_main(docs_dir, html_dir, overflow):\n", " ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010416666666666666, 0.009433962264150943, 0, 0.008403361344537815, 0.008264462809917356, 0, 0, 0.009174311926605505, 0, 0, 0, 0, 0.01, 0, 0, 0, ...
142
0.000756
# Copyright 2017 Cisco Systems # # 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, so...
[ "# Copyright 2017 Cisco Systems\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n", "# not use this file except in compliance with the License. You may obtain\n", "# a copy of the License at\n", "#\n", "# http://www.apache.org/licenses/LICENSE-2.0\n", "#\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
96
0
import numpy from chainer.backends import cuda from chainer.functions.loss import black_out from chainer import link from chainer.utils import walker_alias from chainer import variable class BlackOut(link.Link): """BlackOut loss layer. .. seealso:: :func:`~chainer.functions.black_out` for more detail. ...
[ "import numpy\n", "\n", "from chainer.backends import cuda\n", "from chainer.functions.loss import black_out\n", "from chainer import link\n", "from chainer.utils import walker_alias\n", "from chainer import variable\n", "\n", "\n", "class BlackOut(link.Link):\n", "\n", " \"\"\"BlackOut los...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
67
0
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
457

Models trained or fine-tuned on kejian/codeparrot-train-more-filter-3.3b-cleaned