Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
820
1M
score
float64
0
0.24
from django.conf import settings from django.core.mail import send_mail from django.shortcuts import render from .forms import ContactForm, SignUpForm from .models import SignUp # Create your views here. def home(request): title = 'Sign Up Now' form = SignUpForm(request.POST or None) context = { "title": title, ...
0.040835
import oebakery from oebakery import die, err, warn, info, debug import os import operator import bb # Handle all the arhicture related variables. # To be able to reuse definitions for both build, machine and sdk # architectures, the usual bitbake variables are not used, but a more # hierarchical setup using a number...
0.014907
# -*- coding: utf-8 -*- # # testiaf.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 version 2 of the License, or # (...
0.00374
#!/usr/bin/python2.4 # Copyright 2009, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
0.002342
#!/usr/bin/env python3 # Copyright (c) 2015-2017 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 p2p mempool message. Test that nodes are disconnected if they send mempool messages when bloom fi...
0.004288
# Copyright 2012 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
0.004493
import os import random class CPU(object): """ The Chip-8 has 4KB of RAM from 0x000 to 0xFFF. The original interpreter is stored in memory from 0x000 to 0x1FF so most programs will start at 0x200. The Chip-8 has 16 8-bit registers and a 16-bit register that stores memory addresses. There are also 2 8-...
0.007022
""" For a given aws account, go through all un-attached volumes and tag them. """ import boto import boto.utils import argparse import logging import subprocess import time import os from os.path import join, exists, isdir, islink, realpath, basename, dirname import yaml # needs to be pip installed import netaddr LO...
0.003777
from collections import defaultdict from itertools import product, chain from math import sqrt, floor, ceil from PyQt4.QtCore import Qt, QSize from PyQt4.QtGui import (QGraphicsScene, QGraphicsView, QColor, QPen, QBrush, QDialog, QApplication, QSizePolicy) import Orange from Orange.data impor...
0.006135
""" Views related to course tabs """ from access import has_course_access from util.json_request import expect_json, JsonResponse from django.http import HttpResponseNotFound from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied f...
0.002995
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
0.004838
# Copyright 2012 OpenStack Foundation. # 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 req...
0.000672
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
0.004371
import hashlib import hmac import logging import requests from datetime import timedelta from django.utils import timezone from allauth.socialaccount import app_settings, providers from allauth.socialaccount.helpers import ( complete_social_login, render_authentication_error, ) from allauth.socialaccount.mode...
0
bdLibPath=os.path.abspath(sys.argv[0]+"..") if not bdLibPath in sys.path: sys.path.append(bdLibPath) from _lib import * import unittest class SmokeTests(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_001_GoogleSearch(self): LaunchB...
0.007339
# -*- coding: utf-8 -*- # This file is part of the Horus Project __author__ = 'Jes煤s Arroyo Torrens <jesus.arroyo@bq.com>' __copyright__ = 'Copyright (C) 2014-2016 Mundo Reader S.L.' __license__ = 'GNU General Public License v2 http://www.gnu.org/licenses/gpl2.html' import numpy as np from horus import Singleton @...
0.001311
''' Image ===== The :class:`Image` widget is used to display an image:: wimg = Image(source='mylogo.png') Asynchronous Loading -------------------- To load an image asynchronously (for example from an external webserver), use the :class:`AsyncImage` subclass:: aimg = AsyncImage(source='http://mywebsite.com...
0.000337
#!/usr/bin/python # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' module: ela...
0.001913
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import with_statement import errno import filecmp import os.path import re import tempfile import sys # A minimal memoizing decorator. It'll blo...
0.011239
#!/usr/bin/env python3 from ev3dev.ev3 import * from time import sleep from PIL import Image import ev3dev.ev3 as ev3 #connect infrared and check it's connected. ir = InfraredSensor() assert ir.connected, "Connect a single infrared sensor to port" #put the infrared sensor into proximity mode. ir.mode = 'IR-PROX' #...
0.018676
import angr from cle.backends.externs.simdata.io_file import io_file_data_for_arch ###################################### # fdopen # # Reference for implementation: # glibc-2.25/libio/iofdopen.c ###################################### def mode_to_flag(mode): # TODO improve this: handle mode = strings if mo...
0.007515
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
37