input stringlengths 0 1.96k | context stringlengths 1.23k 257k | answers listlengths 1 5 | length int32 399 40.5k | dataset stringclasses 10
values | language stringclasses 5
values | all_classes listlengths | _id stringlengths 48 48 |
|---|---|---|---|---|---|---|---|
// Copyright 2014 - 2014 Esk0r
// SpellDatabase.cs is part of Evade.
//
// Evade 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 3 of the License, or
// (at your option) any later version.
//... | [
" ExtraMissileNames = new[] { \"lucianrmissile\" },"
] | 5,265 | lcc | csharp | null | 57cd1d16d832804a0b41e45c65ffbdf55dee0d169df79a8e | |
package com.sirma.sep.model.management;
import static com.sirma.sep.model.management.ModelsFakeCreator.createStringMap;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.Collections;
import java.util.UU... | [
"\t\tEmfUser user = new EmfUser(\"admin@test.tenant\");"
] | 505 | lcc | java | null | 46847858f2d1579242f46d971b4229d6cb8d79b8a5dea86e | |
import unittest
import os
import mock
import errno
import testlib
class TestTestContext(unittest.TestCase):
def test_generate_inventory_file(self):
context = testlib.TestContext()
context.inventory = dict(key='value')
self.assertEquals("key='value'", context.generate_inventory_contents())
... | [
" context = testlib.TestContext()"
] | 426 | lcc | python | null | 36ab3dcfde1587fd327a15d56d7d38fb65b8104458bbcd00 | |
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections.Generic;
using System.IO;
namespace ICSharpCode.Core
... | [
"\t\t\tif (configDirectory == null)"
] | 753 | lcc | csharp | null | dc7f3a684d9468c9631828995c836b9722e18b4999cdd713 | |
//
// System.Data.Constraint.cs
//
// Author:
// Franklin Wise <gracenote@earthlink.net>
// Daniel Morgan
// Tim Coleman (tim@timcoleman.com)
//
//
// (C) Ximian, Inc. 2002
// Copyright (C) Tim Coleman, 2002
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of... | [
"\t\tinternal abstract bool IsColumnContained (DataColumn column);"
] | 743 | lcc | csharp | null | 1fbe52a6ae333eb46f1ea6000375cec54d0c1377ea171db3 | |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'pyslvs_ui/io/preference.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from qtpy import ... | [
" self.button_box = QtWidgets.QDialogButtonBox(Dialog)"
] | 519 | lcc | python | null | ffafcf6803367046bcd6535efabfd55b6913ed04cf9c0e14 | |
/*
* FlightIntel for Pilots
*
* Copyright 2012 Nadeem Hasan <nhasan@nadmm.com>
*
* 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 version 3 of the License, or
* (at your option) an... | [
" TextView tv =(TextView) findViewById( R.id.status_msg );"
] | 986 | lcc | java | null | cff5cce659d8bde6af869ff91a57f4b6445b88159e169708 | |
using System.Collections;
using System.Collections.Generic;
using NHibernate.Criterion;
using NHibernate.Multi;
using NHibernate.Stat;
using NUnit.Framework;
namespace NHibernate.Test.Stats
{
[TestFixture]
public class StatsFixture : TestCase
{
protected override string MappingsAssembly
{
get { return "NHiber... | [
"\t\t\t\tvar r = s.CreateCriteria<Country>().List();"
] | 596 | lcc | csharp | null | ae9e378a2b48e8a532bf970e581bc7ccc318cd5047ec916c | |
using System;
namespace WebArbor.LiveUpdate.Engine
{
/// <summary>
/// Tool to calculate and add CRC codes to a string
///
/// ***************************************************************************
/// Copyright (c) 2003 Thoraxcentrum, Erasmus MC, The Netherlands.
///
/// Written by M... | [
" for (int iBitIndex = 0; iBitIndex < 8; iBitIndex++)"
] | 1,212 | lcc | csharp | null | cb8b4b2b743ae5c5feb0a78bada007e175140164e40f5a42 | |
package net.geforcemods.securitycraft.entity;
import java.util.List;
import java.util.Random;
import net.geforcemods.securitycraft.SCContent;
import net.geforcemods.securitycraft.SecurityCraft;
import net.geforcemods.securitycraft.api.Owner;
import net.geforcemods.securitycraft.blockentities.KeypadChestBlockEntity;
imp... | [
"\t\treturn hasSpeedModule() ? 5 : 10;"
] | 1,639 | lcc | java | null | 97d6976069558160fcb06c6802085ee52a6ef637d5832a1a | |
/********************************************************************************
* Copyright (c) 2011-2017 Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 1.0 which is available at
* http://www.eclipse... | [
" return new IHyperlinkDetector[0];"
] | 548 | lcc | java | null | bf36c52efb42e2c0506f3cb765385becf6bf8e07977c4ec2 | |
import Object3DQt as qt
import PyQt4.Qwt5 as Qwt5
from VerticalSpacer import VerticalSpacer
DEBUG = 0
DRAW_MODES = ['NONE',
'POINT',
'WIRE',
'SURFACE']
class Object3DDrawingModeWidget(qt.QGroupBox):
def __init__(self, parent = None):
qt.QGroupBox.__init__(self, pa... | [
" self.aspectWidget = Object3DAspect(self)"
] | 1,044 | lcc | python | null | f2938d3f351d2aebd34b5c529253c96aa77b793e3442e486 | |
using System;
using System.Reflection;
using System.Collections;
using Server;
using Server.Targeting;
using Server.Network;
using Server.Misc;
namespace Server.Gumps
{
public class SetPoint2DGump : Gump
{
private PropertyInfo m_Property;
private Mobile m_Mobile;
private object m_Object;
private Stack m_Stack... | [
"\t\t\t\tcase 3: // Use values"
] | 886 | lcc | csharp | null | 782603f333c5ed114de335a7728c0c7c288c0ea45f48a9ee | |
/*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.addon.ui.util;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
... | [
" String valueLabel = selectConverter.convert(value);"
] | 764 | lcc | java | null | cffa07171638f2df3007fc0e85a42300f465b867bac1df90 | |
/* Mesquite source code. Copyright 1997-2009 W. Maddison and D. Maddison.
Version 2.71, September 2009.
Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code.
The commenting leaves much to be desired. Please approach this source code with the spiri... | [
"\t\t\t\tif (i!=j) {"
] | 1,027 | lcc | java | null | c72913a89874d6308bd8a87c745a41178548b9df3cd7e0c0 | |
/**
* Copyright (C) Squizz PTY LTD
* 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 version 3 of the License, or (at your option) any later version.
* This program is distributed in the hope t... | [
" foreach (KeyValuePair<int, int> unpricedLine in unpricedLines) {"
] | 1,177 | lcc | csharp | null | 7850286a4534f85c6c1e090310eb4027cb5b38c4f626ff33 | |
//
// ClientOperation.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2005 Novell, Inc. http://www.novell.com
//
// 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 Softwa... | [
"\t\t\tget { throw new NotImplementedException (); }"
] | 629 | lcc | csharp | null | a93d814dbddd20576003b7d27ccabef85f5258c0f1c189bf | |
package org.exist.security;
import org.exist.storage.io.VariableByteInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import org.exist.storage.io.VariableByteOutputStream;
import org.exist.Database;
import org.exist.security.ACLPermission.ACE_TARGET;
import org.exist.security.ACLPermission.A... | [
" final Subject mockUser = EasyMock.createMock(Subject.class);"
] | 1,006 | lcc | java | null | b8d674585c2854a71ff59d091611a1181f7327620a70524e | |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using... | [
"\t\t\tVector2 max = viewport.ToVector2 ();"
] | 882 | lcc | csharp | null | 145cc36abdaa2c8860959982f54fca44c7cae309bc44bcf9 | |
import xdrlib
class XDREnum(object):
__slots__ = ['name', 'value']
def __init__(self, name, value):
self.name = name
self.value = value
def __int__(self):
return self.value
def __str__(self):
return self.name
def __repr__(self):
return self.name
def __cmp_... | [
"__all__ = ['endpoint_key', 'endpoint_value', 'endpoint_stats']"
] | 399 | lcc | python | null | c69d4ae0425c1d742d8cad38e1238ffbf39d8f97b105df79 | |
/*
SLAM server
Copyright (C) 2009 Bob Mottram
fuzzgun@gmail.com
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 version 3 of the License, or
(at your option) any lat... | [
"\t\t\t\t RemoveClient(i, m_workerSocketList, disconnect_client);"
] | 2,031 | lcc | csharp | null | cf8e0d5f2adf8762eb153e24cdc6edacca8bb1e84f6b7c14 | |
package eu.applabs.crowdsensingfitnesslibrary.portal.google;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesU... | [
" for(Bucket bucket : list) {"
] | 768 | lcc | java | null | a0064864baa8bd09ff6fc63712208d825b29b2d8f56ab567 | |
#!/usr/bin/python
# 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 version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | [
" if bind_count > 0 or exec_count > 0:"
] | 1,549 | lcc | python | null | b8ddcb433aa1bfe07017e01e1c838c3c2d78b8b973eabc54 | |
from django.db.models.loading import get_model
from metadata.utils.date_range import in_range
from django.shortcuts import render
from django.utils import simplejson
from django.http import Http404, HttpResponse
from django.conf import settings
from schedule.utils import range as s_range
import csv
import json
# This i... | [
" Returns a range query in JSON (full-calendar) format."
] | 722 | lcc | python | null | 7f21bbeb3cc4c97701a78291f4d98bf6819b5e05cca6641e | |
/**
Copyright (C) SYSTAP, LLC 2006-2015. All rights reserved.
Contact:
SYSTAP, LLC
2501 Calvert ST NW #106
Washington, DC 20008
licenses@systap.com
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 Soft... | [
" new VarNode(\"score\"), null/* c */,"
] | 644 | lcc | java | null | 6a5c6418a11e7d5ca010f8f986194ae5efec73ff41f7c167 | |
# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
import random
from django import for... | [
" self.object = self.get_object()"
] | 558 | lcc | python | null | 2f9e87b359085e3741fab9367978273edee2f0b2e60fcfe8 | |
//-----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// This code is licensed under the Microsoft Public License.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPL... | [
" get { return this.ResolvedAssembly.PublicKeyToken; }"
] | 1,633 | lcc | csharp | null | d5131ee794bcf700f0f43d91cbdd4928e4078dee775d3bd7 | |
// <copyright file="TFQMR.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com
//
// Copyright (c) 2009-2010 Math.NET
//
// Permission is hereby granted, free of charge, to any pe... | [
" var pseudoResiduals = new DenseVector(input);"
] | 1,146 | lcc | csharp | null | 85a1c12ae7813d7b73cbbf458fd9262e032bd9cc88005aa1 | |
package net.arccotangent.amathng.math;
import net.arccotangent.amathng.Main;
import net.arccotangent.amathng.utils.MathUtils;
import net.arccotangent.amathng.utils.NumberHelper;
import org.apfloat.*;
import java.util.ArrayList;
public class Statistics {
/**
* Gaussian error function
* @param z Value
* @return ... | [
"\t\t\treturn new Apfloat[] {sortedNumbers[left]};"
] | 685 | lcc | java | null | 463db0e034d463507a505f61f5addf4f1153492f465bc47f | |
"""
A collection of utilities to edit and construct tree sequences.
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import json
import random
import numpy as np
import tskit.provenance as provenance
import tskit
def add_provenance(provenance_table, metho... | [
" sample_count[v] -= sample_count[edge.child]"
] | 2,596 | lcc | python | null | 25409067cd0b9bd6ffc59d2ab30579edc2ec8b0a47154def | |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2019 Bitergia
#
# 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 version 3 of the License, or
# (at your option) any later version.
#
# This ... | [
" es_mapping = ESMapping.from_json(index_name=self.enrich_index,"
] | 630 | lcc | python | null | 40994fe53243d5f8fce4983fc820f09dbd61a083c8a53c8f | |
#region Copyright & License Information
/*
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the Licen... | [
"\t\t\t\t\t\t\t\t\t\tvar bot = botNames.Random(Game.CosmeticRandom);"
] | 690 | lcc | csharp | null | 944fd1f9c7ec90cdc70498975f2faf06111d7dfe2ae05e81 | |
// This code is derived from jcifs smb client library <jcifs at samba dot org>
// Ported by J. Arturo <webmaster at komodosoft dot net>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundat... | [
"\t\t\t\treturn base.ToString() + \"\\n\" + _rootCause;"
] | 697 | lcc | csharp | null | 363a7940d934ec4a64df64a51b70cb62268340fa89d647f7 | |
"""
"""
from enum import IntEnum, Enum
from .exceptions import ProtocolError, FrameSizeError, FlowControlError
import struct
MAX_FRAME_SIZE = (2 ** 14) - 1
MAX_WINDOW_UPDATE = (2 ** 31) - 1
DEFAULT_PRIORITY = (2 ** 30)
class ConnectionSetting(Enum):
HEADER_TABLE_SIZE = 0x01
ENABLE_PUSH = 0x02
MAX_CONCURRENT... | [
" pad_low_and_high = struct.pack('!BB', pad_high, pad_low)"
] | 652 | lcc | python | null | 0a774cef85a83037bcd6fbf761f83707f105e2ee3118ef09 | |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Msagl.Core.DataStructures;
using Microsoft.Msagl.Core.Geometry;
using Microsoft.Msagl.Core.Geometry.Curves;
using Microsoft.Msagl.Layout.LargeGraphLayout;
#if TEST_MSAGL
using Microsoft.Msagl.DebugHelpers;
using... | [
" foreach (var child in cluster.Clusters.Concat(cluster.Nodes)) {"
] | 936 | lcc | csharp | null | adeed84f45c576f4e84e46a705dd8d968d64d0646a6ef56a | |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2008 Erwin Coumans http://bulletphysics.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grante... | [
"\tm_maxSlopeCosine = btCos(slopeRadians);"
] | 2,149 | lcc | csharp | null | f498e75d306788f63949bcfcf05c9e4bb4e190034ff80488 | |
package org.checkerframework.common.aliasing;
/*>>>
import org.checkerframework.checker.compilermsgs.qual.CompilerMessageKey;
*/
import org.checkerframework.common.aliasing.qual.LeakedToResult;
import org.checkerframework.common.aliasing.qual.NonLeaked;
import org.checkerframework.common.aliasing.qual.Unique;
import or... | [
" if (initializers != null && !initializers.isEmpty()) {"
] | 1,063 | lcc | java | null | 57e19c332b765589c06c6317e00c2f7c5f50bc38d1fac11c | |
package flaxbeard.cyberware.common.item;
import java.util.List;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.enti... | [
"\t\t\tif (nbttagcompound == null)"
] | 484 | lcc | java | null | 3acf18da43544d1e056b344459d85b5599253c6ef78403fb | |
/*
* JSTools.Parser.DocGenerator.dll / JSTools.net - A framework for JavaScript/ASP.NET applications.
* Copyright (C) 2005 Silvan Gehrig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Found... | [
"\t\t\t\tif (typeAttribute != null)"
] | 715 | lcc | csharp | null | 65e83568eadd384a035b2d009ca4b6e8962b6a6b11a58326 | |
//
// TrackBarTest.cs: Test cases for TrackBar.
//
// Author:
// Ritvik Mayank (mritvik@novell.com)
//
// (C) 2005 Novell, Inc. (http://www.novell.com)
//
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Reflection;
using NUnit.Framework;
namespace MonoTests.System.Windows.Forms
{
[TestFi... | [
"\t\t\tAssert.AreEqual(handle, handle, \"Removes warning\");"
] | 643 | lcc | csharp | null | 5eb2fab7c77b669d9d20bb243cdb60fddafbb0a6170b9d88 | |
package rocks.inspectit.server.instrumentation.classcache;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers... | [
"\t\t\tInterfaceType interfaceType = new InterfaceType(\"\");"
] | 686 | lcc | java | null | 91bafdb949e83b9df31caa1198f61d205a6b734664bdeee5 | |
/*******************************************************************************
* Copyright (c) 2012 Secure Software Engineering Group at EC SPRIDE.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this... | [
"\t\tif (postdominators == null) {"
] | 1,449 | lcc | java | null | 2ea1e8b1be13cbbb6a96058b7c5db07ae3e7e9bfca12207f | |
package edu.stanford.nlp.parser.lexparser;
import java.util.regex.Matcher;
/** Does iterative deepening search inside the CKY algorithm for faster
* parsing. This is still guaranteed to find the optimal parse. This
* iterative deepening is only implemented in insideScores().
* Implements the algorithm described ... | [
" int min2 = wideLExtent[end][rightState];"
] | 1,079 | lcc | java | null | 5a8b582269e533bdd34babfe47a607fb7faa5ba65cee7bc8 | |
# Copyright (C) 2013-2016 2ndQuadrant Italia Srl
#
# This file is part of Barman.
#
# Barman 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 3 of the License, or
# (at your option) any later ver... | [
" 'rsync', '-rLKpts', '--delete-excluded', '--inplace',"
] | 2,433 | lcc | python | null | 8e994637773ecb1aa1a46681e23f58b9b6e946d95aa0e329 | |
/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy 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 3 of the License, or
(at your option) any later v... | [
"\t\t\tprocess.IsRunningChanged -= DbgProcess_IsRunningChanged;"
] | 924 | lcc | csharp | null | 55b5cf622c6554fcf71e7f540ab814974112cbd9bdc49443 | |
/*
* AsoBrain 3D Toolkit
* Copyright (C) 1999-2016 Peter S. Heijnen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any l... | [
"\t\twriter.attribute( null, \"b\", String.valueOf( b ) );"
] | 2,472 | lcc | java | null | 98f9620b662d7e8b7c7e7545d6c341f8a167b3d6925ee74a | |
package com.servinglynk.hmis.warehouse.model.v2016;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.Map;
import java.util.WeakHashMap;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persisten... | [
"\t\tif (aThat instanceof HibernateProxy) {"
] | 839 | lcc | java | null | 68ec6af65d2a91e6853c589c87fadc19a538ca14d6f249ae | |
import argparse
import numpy as np
import scipy.linalg
import scipy.spatial as spatial
import scipy.sparse.linalg as spla
import subprocess
try:
import pickle as cpickle
except:
try:
import cpickle
except:
import _pickle as cpickle
from functools import partial
import sys
import time
import copy
import sc... | [
"\t if total_rej == 1:"
] | 801 | lcc | python | null | ca3ae6a5d8c6865655de823a63f15080b5c10cc5843037df | |
from __future__ import absolute_import, print_function, division
"""
Tensor optimizations addressing the ops in basic.py.
"""
# TODO: intelligent merge for mul/add
# TODO: 0*x -> 0
from collections import defaultdict
import logging
import itertools
import operator
import sys
import time
import traceback
import warnings... | [
" for pos, idx in enumerate(cdata):"
] | 10,029 | lcc | python | null | 0a0acfe5a6238a45947c2e198dabe87dee8487c858569c30 | |
from django import forms
from django.forms import ValidationError
from django.contrib.auth.models import Group
from common.forms import ModelFormWithHelper
from common.helpers import SubmitCancelFormHelper
from community.constants import COMMUNITY_ADMIN, COMMUNITY_PRESENCE_CHOICES
from community.models import Community... | [
" self.member_groups = self.user.get_member_groups(self.groups)"
] | 746 | lcc | python | null | bc922d0a7fcc0c037de90c7f575f1de8f8ac956e5c9e4e82 | |
# orm/events.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""ORM event interfaces.
"""
from .. import event, exc, util
from .base import _mapper_... | [
" return fn(*arg, **kw)"
] | 9,203 | lcc | python | null | 9517e442464f24ead2a124310c2f1752d78474b38bd420f2 | |
"""Conditional module is the xmodule, which you can use for disabling
some xmodules by conditions.
"""
import json
import logging
from lazy import lazy
from lxml import etree
from pkg_resources import resource_string
from xmodule.x_module import XModule, STUDENT_VIEW
from xmodule.seq_module import SequenceDescriptor
fr... | [
" show_str = u'<{tag_name} sources=\"{sources}\" />'.format("
] | 801 | lcc | python | null | b7096bf4313f6484e8f39bf9f0977db406f68e5dc24dcd54 | |
import numpy as np
import larray as la
from larray_editor.utils import Product, _LazyDimLabels, Axis, get_sample
from larray_editor.commands import ArrayValueChange
REGISTERED_ADAPTERS = {}
def register_adapter(type):
"""Class decorator to register new adapter
Parameters
----------
type : type
T... | [
" for key, (old_value, new_value) in data_model_changes.items()]"
] | 947 | lcc | python | null | 8662bf8b41808cda788f6de30f92e265f34051125e765056 | |
/*
Copyright (C) 2002-2010 Jeroen Frijters
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercia... | [
"\t\t\telse if (Class != null && type == null)"
] | 2,841 | lcc | csharp | null | eb53d2d7980f93f767d7f4ca69e7c363d7a2bdffbbb04b9c | |
/*
* Copyright (C) 2006-2010 - Frictional Games
*
* This file is part of HPL1 Engine.
*
* HPL1 Engine 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 3 of the License, or
* (at your opti... | [
"\t\t\tthis.objYLabel.Size = new System.Drawing.Size(200, 32);"
] | 722 | lcc | csharp | null | 7176f682200a0adf4ae5cf5e13ef2ec7cb669d6f638cffd3 | |
# -*- test-case-name: buildbot.test.test_mailparse -*-
from twisted.trial import unittest
from twisted.python import util
from buildbot.changes import mail
class TestFreshCVS(unittest.TestCase):
def get(self, msg):
msg = util.sibpath(__file__, msg)
s = mail.FCMaildirSource(None)
return s.par... | [
" c = self.getNoPrefix(\"mail/syncmail.5\")"
] | 615 | lcc | python | null | 20b813f30f59822e04edffdae1cdbf1b533dbdd72c1cc321 | |
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of... | [
" if (termData == null) {"
] | 987 | lcc | java | null | 44bc927038ee4f263ad7e6209084767cae0e9109fe53fa72 | |
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Jan 24, 2014, 8:03:36 PM (GMT)... | [
"\t\tif(player == null)"
] | 639 | lcc | java | null | b8f2bccffdfaa6714889fe5bc5f0f10b12a66609c8c585d1 | |
package implementable;
import gnu.trove.map.hash.THashMap;
import gnu.trove.set.hash.THashSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import tools.DebugMode;
import communityDetectionPackage.ILCDMetaAlgorithm;
import TemporalNetworkManipulation.Community;
import TemporalNetworkM... | [
" intrinsicCohesion += this.getRepresentativity(component, c);"
] | 569 | lcc | java | null | db86b64c8c534e1f3bab91df60822f5e3fd18cea9415e467 | |
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2012, 2013 CERN.
##
## Invenio 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 (at your opt... | [
" if not (docformat in flags[flagname][version]):"
] | 1,095 | lcc | python | null | e346c1259b04562f788d0e2865564ee2ec42aaada9b4e031 | |
/* Copyright (C) 2004 MySQL AB
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 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY ... | [
"\t\t\tArrayList comp = this.computerMgmt.getComputerCollection();"
] | 2,301 | lcc | csharp | null | d2d2eb23f584337e252086c2162142cf3c5e40a39100b329 | |
/*
* Copyright (C) 2000 - 2011 Silverpeas
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* As a spec... | [
" for (java.util.Date anExceptionDate : exceptionDates) {"
] | 783 | lcc | java | null | 0467947f0aca59814dfee0185e479155997e02d24818a1ab | |
/* Copyright 2013-2014 Daikon Forge */
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Provides the ability to bind a property on one object to the value of
/// another property on another object. This class uses an event-driven
/// model, which waits for... | [
"\t\tsourceEventBinding.DataSource = new dfComponentMemberInfo()"
] | 1,021 | lcc | csharp | null | 7a6b465ccf619db236b9ebaa5024b7f2602fd097e1f14af8 | |
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | [
" Gson gson = new Gson();"
] | 2,177 | lcc | java | null | 5eaaec0ad17e5ea95bb6b35275422001e3f763eea091799b | |
//#############################################################################
//# #
//# Copyright (C) <2015> <IMS MAXIMS> #
//# #
... | [
"\t\t\t\tsuper(id, path, width, height);"
] | 5,167 | lcc | java | null | 9315cf46a7b8a5186358aa90329c4cf7aa7e8815f99ea810 | |
/*
* ome.testing
*
* Copyright 2006 University of Dundee. All rights reserved.
* Use is subject to license terms supplied in LICENSE.txt
*/
package ome.testing;
// Java imports
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import jav... | [
" double value = (size - 1) * rnd.nextDouble();"
] | 669 | lcc | java | null | 0a5fee26c27c916f5e6a6d4e21655aac2bf96a3c71502cab | |
import hashlib
from django.db import models
from django.db.models import Q
from opencontext_py.apps.entities.entity.models import Entity
from opencontext_py.apps.ldata.linkannotations.models import LinkAnnotation
from opencontext_py.apps.ldata.linkentities.models import LinkEntity
from opencontext_py.apps.ocitems.asse... | [
" la = LinkAnnotation()"
] | 1,128 | lcc | python | null | aa0355191116e9da144d262dfbaa191cd76f4cdbf90c55e2 | |
/* ====================================================================
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 ... | [
" buffer.Append(\" .shrinktoft= \").Append(ShrinkToFit)"
] | 2,537 | lcc | csharp | null | 36b953ee4b12b6a4faa25120b4dd3ff257e71cd2c3c9e231 | |
/*
* CP51932.cs - Japanese EUC-JP code page.
*
* It is based on CP932.cs from Portable.NET
*
* Author:
* Atsushi Enomoto <atsushi@ximian.com>
*
* Below are original (CP932.cs) copyright lines
*
* (C)2004 Novell Inc.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted,... | [
"\t\t\t\tvalue = ch - 0xFF60 + 0x8EA0;"
] | 1,301 | lcc | csharp | null | 774fe32bf5c3e50a3060d52bef095025decb114d4ab2a37b | |
# -*- coding: utf-8 -*-
# This code is part of Amoco
# Copyright (C) 2021 Axel Tillequin (bdcht3@gmail.com)
# published under GPLv2 license
from amoco.arch.tricore import env
from amoco.arch.core import *
# -------------------------------------------------------
# from TriCore TC1.6.2 core architecture manual V1.2.2
# ... | [
" if obj.mnemonic in (\"LD_A\", \"LEA\"): dst = env.A[a]"
] | 7,935 | lcc | python | null | 1af3862e060454bfb42e00c39c490c31b97f3330caa0e1f1 | |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2011 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
... | [
"\t\t\tstream = location.openStream();"
] | 1,068 | lcc | java | null | ff129ecf1bae342708a06c6afdaf4c0c520b36db7f9fe934 | |
package net.minecraft.world;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.world.storage.WorldInfo;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public final class WorldSettings
{
/** The seed for the map. */
private final long s... | [
" return this == CREATIVE;"
] | 497 | lcc | java | null | 812a9c309ebcd63dc97a9d9c993e5afbcef9d934b3a428bf | |
// CommonSecurityDescriptorTest.cs - NUnit Test Cases for CommonSecurityDescriptor
//
// Authors:
// James Bellinger <jfb@zer7.com>
//
// Copyright (C) 2012 James Bellinger
using System;
using System.Collections.Generic;
using System.Security.AccessControl;
using System.Security.Principal;
using NUnit.Framework;
names... | [
"\t\t\tSecurityIdentifier userSid = new SecurityIdentifier (\"SY\");"
] | 692 | lcc | csharp | null | a179ca21c89046426dbe560130d12a91ef853ad8e707e8c2 | |
# -*- coding: utf-8 -*-
# Copyright 2011,2013 Christoph Reiter
#
# 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 version 2 of the License, or
# (at your option) any later version.
import ... | [
" for i, result in enumerate(results):"
] | 864 | lcc | python | null | fbaaf263e4f759d000390c802a4c3c1ccb343adcb8654c23 | |
// ----------------------------------------------------------------------------
// <copyright file="PhotonEditor.cs" company="Exit Games GmbH">
// PhotonNetwork Framework for Unity - Copyright (C) 2011 Exit Games GmbH
// </copyright>
// <summary>
// MenuItems and in-Editor scripts for PhotonNetwork.
// </summary>
/... | [
" HashSet<string> currentRpcs = new HashSet<string>();"
] | 2,652 | lcc | csharp | null | 752a89a5b36c7b8f6f0e35bfd40db4c72421fcad3b20b85b | |
/*
* Copyright (c) 2016-2017 Viktor Fedenyov <me@ii-net.tk> <https://ii-net.tk>
*
* This file is part of IDEC Mobile.
*
* IDEC Mobile 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 3 of ... | [
" if (!Config.isKDEConnectInstalled) {"
] | 551 | lcc | java | null | 4ba808cbdaf8b17ba189c38980dbfe9f2db8c50e68c78815 | |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
"""K-point/spin combination-descriptors
This module contains classes for defining combinations of two indices:
* Index k for irreducible kpoints in the 1st Brillouin zone.
* Index s for spin up/down if spin-polarized (otherwi... | [
" ik = self.bz2ibz_k[k]"
] | 906 | lcc | python | null | 887af1daa5b7038bf77928f7810b6046e0a6e79e65f0db63 | |
/*
* Copyright (C) 2022 Inera AB (http://www.inera.se)
*
* This file is part of sklintyg (https://github.com/sklintyg).
*
* sklintyg 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 3 of t... | [
" CreateUtkastRequest utkastRequest = buildRequest(intygsTyp);"
] | 675 | lcc | java | null | 641e1c881986075c2c1d4de3afcfdf28d45ea43407457b7d | |
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// 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, cop... | [
"\t\t\t\tforeach (ILNode child in block.GetChildren()) {"
] | 2,070 | lcc | csharp | null | d2cc14959cc14d9e5f5c314ff857cbc70f1ff16fa1441fa2 | |
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using Frontiers;
using Frontiers.World.Gameplay;
using TNet;
using Frontiers.World;
namespace Frontiers.World
{
public class WorldBody : TNBehaviour
{
//used as a base for CharacterBody and CreatureBody
//central hub ... | [
"\t if (mConvertingToRagdoll) {"
] | 2,058 | lcc | csharp | null | 73339a8013cf28c56a4c1187df921540e969f355e17c82b2 | |
import sys
import os
from gm_base.json_data import *
import gm_base.geometry_files.layers_io as lfc
class LayerType(IntEnum):
"""Layer type"""
stratum = 0
fracture = 1
shadow = 2
class TopologyType(IntEnum):
given = 0
interpolated = 1
class RegionDim(IntEnum):
invalid = -2
none = -1... | [
" _not_serialized_attrs_ = ['layer_type', 'top_type']"
] | 878 | lcc | python | null | b1cefd5f19084d4e4a500f51ff0fd6a59f8c2c70e47b868c | |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or ... | [
" out[outOff + 3] = (byte)(num >>> 24);"
] | 1,083 | lcc | java | null | fe08dcb281de4c3a0e2cca60ae83b079f30ce3924ae5131b | |
/**
* Copyright (c) 2002-2012 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | [
" super( source, new Predicate<PatternMatch>()"
] | 1,124 | lcc | java | null | e65940b61936a514284b1b107717706bb95a8df5df726f13 | |
# -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it un... | [
" elif key == 'TAUX':"
] | 954 | lcc | python | null | acf5e37bfbe33cbb9516c325004620f2cae48ca166d4d0ad | |
package org.openswing.swing.mdi.client;
import java.beans.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.event.*;
import org.openswing.swing.util.client.*;
i... | [
" InternalFrame f = (InternalFrame)buttons.get(btn);"
] | 769 | lcc | java | null | c15dc271a99f31760a613bea95abc84961ad13d294310c3c | |
import os
import zmq
import warnings
TIMEOUT = 1000 # milliseconds
VERBOSE = False
RETRY = True # Should we try to get another server if we can't connect?
SERVERFILE = "serverlist.dat" # Base name of the file containing server names
if __name__ == '__main__':
VERBOSE = True
def printV(*args):
if VERBOSE:
... | [
" elif sys.argv[1] == '--list':"
] | 866 | lcc | python | null | 2e4d03a695dc0527178e4eddff2b2c0651ddc6a0588d6cb5 | |
/**
* This file is part of LibLaserCut.
* Copyright (C) 2011 - 2014 Thomas Oster <mail@thomas-oster.de>
*
* LibLaserCut is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the Lice... | [
" move(out, Util.px2mm(offset.x, dpi), Util.px2mm(offset.y, dpi));"
] | 1,057 | lcc | java | null | 9a6eb97bf19cf92ba543d527e5650f3a6198498b114bcbf3 | |
/*
* Copyright 2013-2015 Daniel Pereira Coelho
*
* This file is part of the Expenses Android Application.
*
* Expenses 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 in version 3.
*
* E... | [
"\t\t\t\t\tContentValues cv = new ContentValues();"
] | 666 | lcc | java | null | f6cf9afee16a6f9eb253d2163fc5f2accb17108da85e51a3 | |
// Taken from https://stackoverflow.com/questions/6596327/how-to-check-if-a-file-is-signed-in-c
using System;
using System.Runtime.InteropServices;
namespace VisualStudioHelpDownloaderPlus
{
internal static class AuthenticodeTools
{
[DllImport("Wintrust.dll", PreserveSig = true, SetLastError = false)]
... | [
" else if (m_meth == AllocMethod.CoTaskMem)"
] | 459 | lcc | csharp | null | 2237275bf34eb140554aa5a5e98dc8bde6dd285b688c247c | |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
###################... | [
"LOGOUT_URL = '/accounts/logout/'"
] | 2,324 | lcc | python | null | d9aa0fae1843d2d73e9ac2308f31a3760b5ff6be9bc4face | |
#region Copyright & License Information
/*
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COP... | [
"\t\t\tfor (var i = 0; i < numberToCancel; i++)"
] | 1,183 | lcc | csharp | null | f928fa8a814e6601eba3952b11bcbc31cc18a3d2f086048f | |
from PyQt4 import QtCore,QtGui,Qt
import sys, os
from ui import design
from genericpath import isdir, isfile
from collections import OrderedDict
from src import Utils, showTags
from functools import partial
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class WindowSourc... | [
" infoText += \" file\" if numberOfFiles==1 else \" files\" "
] | 886 | lcc | python | null | a6ff01b3019b5f686be4e5365d4e5986aec163213a88b95e | |
#!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2010 (ita)
"""
Task generators
The class :py:class:`waflib.TaskGen.task_gen` encapsulates the creation of task objects (low-level code)
The instances can have various parameters, but the creation of task nodes (Task.py)
is always postponed. To achieve this, va... | [
" code = code.replace('%', '%%')"
] | 2,292 | lcc | python | null | c954057ff94e553216187b97466689a94cf01d35b64c1d11 | |
#!/usr/bin/env python
'''
Created on Jan 28, 2016
@author: cme
'''
#****************************************************************
# \file
#
# \note
# Copyright (c) 2016 \n
# Fraunhofer Institute for Manufacturing Engineering
# and Automation (IPA) \n\n
#
#*************************************************************... | [
" result = self._planningExecutorClient.get_result()"
] | 747 | lcc | python | null | e3985a9e93ec883a946ded49a6c0d5a149f870a2551a4bae | |
using System;
using System.Collections.Generic;
using System.Text;
using Axiom.Core;
using Axiom.Media;
using Axiom.Graphics;
using Axiom.Overlays;
using Axiom.Animating;
using Axiom.Math;
using System.Runtime.InteropServices;
namespace Axiom.Demos
{
public class DynamicTextures : TechDemo
{
Texture ptex;
Hardwar... | [
"\t\t\t\t\t\t\t\t\t+ chemical[ 0 ][ idx + reactorExtent ], hdiv0 );"
] | 1,036 | lcc | csharp | null | ae83375fd17d59ade51acb7d21f140c348517cad10d87283 | |
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... | [
" if (pattern == null) {"
] | 839 | lcc | java | null | 1b693ff15f56949b8dd6a9b75de17dd49f7f0b08bf33823d | |
/*
Classe gerada automaticamente pelo MSTech Code Creator
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MSTech.Data.Common;
using MSTech.Data.Common.Abstracts;
using MSTech.GestaoEscolar.Entities;
namespace MSTech.GestaoEscolar.DAL.Abstracts
{
/// ... | [
" entity.cti_id = Convert.ToInt32(qs.Return.Rows[0][0]);"
] | 515 | lcc | csharp | null | 39bbeca7715c515fede070fff57d6f18c6608542a2b291d1 | |
using System;
using System.Linq;
using System.Data.Common;
using NHibernate.Cfg.MappingSchema;
using NHibernate.Engine;
using NHibernate.Mapping.ByCode;
using NHibernate.Mapping.ByCode.Impl;
using NHibernate.Properties;
using NHibernate.SqlTypes;
using NHibernate.Type;
using NHibernate.UserTypes;
using NUnit.Framework;... | [
"\t\t\tthrow new NotImplementedException();"
] | 1,017 | lcc | csharp | null | 590b51d23289d047b57ac6677f20d8695fe1def2a0120e8d | |
#!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible 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 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | [
" commands = list()"
] | 1,208 | lcc | python | null | fec6e895c63341559f9f9bba6ca62f48771c6ee896904ae7 | |
# pylint: disable=no-member
"""
Unit tests for the Mixed Modulestore, with DDT for the various stores (Split, Draft, XML)
"""
from collections import namedtuple
import datetime
import logging
import ddt
import itertools
import mimetypes
from unittest import skip
from uuid import uuid4
from contextlib import contextmana... | [
" component = self.store.update_item(component, editing_user)"
] | 4,935 | lcc | python | null | c83f71189a57f9b8fbf6439c1c211939a9c292a33024b337 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.