Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
681
1.05M
score
float64
0
0.27
""" Test the session-flushing middleware """ import unittest from django.conf import settings from django.test import Client @unittest.skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Test only valid in lms') class TestSessionFlushMiddleware(unittest.TestCase): """ Ensure that if the pipeline is exited when ...
0.002798
# 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 # d...
0
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved # Django from django.core.management.base import BaseCommand from django.core.management.base import CommandError from django.contrib.auth.models import User class UpdatePassword(object): def update_password(self, username, password): changed = Fal...
0.001407
import numpy as np from petsc4py import PETSc from src.geo import * from src import stokes_flow as sf from src.support_class import * from src.StokesFlowMethod import * __all__ = ['createEcoli_ellipse', 'createEcoliComp_ellipse', 'createEcoli_2tails', 'createEcoliComp_tunnel', 'createEcoli_tunnel', 'create_...
0.002428
import uuid from django import forms from django.utils.translation import ugettext as _ from django.utils.text import slugify from crispy_forms.helper import FormHelper from crispy_forms.layout import Div, Field, HTML, Layout, Fieldset from crispy_forms.bootstrap import PrependedText from django.template import Reques...
0.005959
"""Views handler for ask admin page rendering.""" from django.core.urlresolvers import reverse import simplejson as json from django.http import Http404, HttpResponse from django.template.loader import render_to_string from django.core.mail.message import EmailMultiAlternatives from apps.managers.challenge_mgr import...
0.001871
# This code was originally contributed by Jeffrey Harris. import datetime import struct from six.moves import winreg from six import text_type try: import ctypes from ctypes import wintypes except ValueError: # ValueError is raised on non-Windows systems for some horrible reason. raise ImportError("Ru...
0.000618
#!/usr/bin/env python #-*- coding: utf-8 -*- """ feed2db works to turn text-based feed list into database """ # @author chengdujin # @contact chengdujin@gmail.com # @created Jul. 30, 2013 import sys reload(sys) sys.setdefaultencoding('UTF-8') sys.path.append('../..') from config.settings import Collection from con...
0.003552
#!/usr/bin/python #CHIPSEC: Platform Security Assessment Framework #Copyright (c) 2010-2015, Intel Corporation # #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; Version 2. # #This program is distr...
0.018573
# -*- coding: utf-8 -*- import pytest from django.utils import timezone from nose.tools import * # noqa from framework.auth.core import Auth from osf_tests.factories import AuthUserFactory, ProjectFactory, UserFactory from scripts import parse_citation_styles from tests.base import OsfTestCase from osf.models import ...
0.000777
# Copyright 2001-2010 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
0.003544
# -*- coding: utf-8 -*- """ Common Utilities run most requests """ # ============================================================================= # Special local requests (e.g. from scheduler) # if request.is_local: # This is a request made from the local server f = get_vars.get("format", None) auth...
0.00196
# -*- coding:utf-8 -*- import datetime import json from flask import abort from flask import current_app from werkzeug.exceptions import BadRequest from api.extensions import db from api.extensions import rd from api.lib.cmdb.cache import AttributeCache from api.lib.cmdb.cache import CITypeCache from api.lib.cmdb....
0.003839
from numpy import * import random import logging import argparse from random import randint import os import os.path import time from AbstractSampler import AbstractSampler def myArgmin(A): # A is assumed to be a 1D array bottomInds = nonzero(A==A.min())[0] return bottomInds[randint(0,bottomInds.shape[0]-...
0.007047
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
11