question
stringclasses
1 value
context
stringlengths
4.2k
104k
answers
listlengths
1
1
length
int32
399
10k
dataset
stringclasses
1 value
language
stringclasses
3 values
all_classes
null
_id
stringlengths
48
48
_row_id
int64
0
499
context_cheatsheet
stringlengths
4.19k
104k
prompt_cheatsheet
stringclasses
1 value
answer_prefix
stringclasses
1 value
task
stringclasses
1 value
max_new_tokens
int64
84
84
cheatsheet
stringlengths
620
12k
Please complete the code given below. # This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Andreas Korb <andreas.d.korb@gmail.com> # Copyright (C) Nils Weiss <nils@we155.de> # This program is published under a GPLv2 license from scapy.fields import StrFixedLenFie...
[ " 0x06: 'EOBD (Europe) '," ]
557
lcc
python
null
bfeb58c9afcb4b7dfc22c93238798de6b1c61704eb37134a
100
Your task is code completion. # This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Andreas Korb <andreas.d.korb@gmail.com> # Copyright (C) Nils Weiss <nils@we155.de> # This program is published under a GPLv2 license from scapy.fields import StrFixedLenField, BitEn...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for OBD-II PIDs: **OBD-II PIDs Overview** * OBD-II PIDs are used to request specific information from a vehicle's onboard computer (ECU). * Each PID has a unique ID and returns a specific type of data. **OBD_PID Classes** * Each OBD_PID class represents a specific OBD-II PID. * They inherit from...
Please complete the code given below. #!/usr/bin/env python # # Copyright 2011 Stef Walter # # This program 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 of the licence or (at # your...
[ "\t\tloop = gobject.MainLoop()" ]
1,595
lcc
python
null
fe11c4d3c4d9b1392973aed3ba28df9d9cf6a13123cc8e59
101
Your task is code completion. #!/usr/bin/env python # # Copyright 2011 Stef Walter # # This program 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 of the licence or (at # your option) ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] class SecretService(dbus.service.Object): algorithms = { 'plain': PlainAlgorithm(), "dh-ietf1024-sha256-aes128-cbc-pkcs7": AesAlgorithm(), } def __init__(self, name=None): ...
Please complete the code given below. using System; using Server.Items; using Server.Spells; namespace Server.Engines.Craft { public class DefInscription : CraftSystem { public override SkillName MainSkill { get { return SkillName.Inscribe; } ...
[ " this.AddRes(index, typeof(BlackPearl), 1044353, 1, 1044253);" ]
1,615
lcc
csharp
null
faf59e122b5cf0c3acab0447bcd6a53f208c972065c8414a
102
Your task is code completion. using System; using Server.Items; using Server.Spells; namespace Server.Engines.Craft { public class DefInscription : CraftSystem { public override SkillName MainSkill { get { return SkillName.Inscribe; } }...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class DefInscription : CraftSystem { // ... (many lines omitted for brevity) public override void InitCraftList() { // ... (many lines of code) m_Circle...
Please complete the code given below. # -*- coding: utf-8 -*- """ flask.ctx ~~~~~~~~~ Implements the objects required to keep the context. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement import sys from functools import ...
[ " app_ctx = self._implicit_app_ctx_stack.pop()" ]
1,358
lcc
python
null
5cba5adbc6ed3521940b6a136fc48a061a432b5260ca8c1f
103
Your task is code completion. # -*- coding: utf-8 -*- """ flask.ctx ~~~~~~~~~ Implements the objects required to keep the context. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement import sys from functools import update_wr...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given context: Context: [Previous code... ~10,000 lines omitted for brevity] def __init__(self, app, environ, request=None): self.app = app if request is None: request = app.request_class(environ) self.request = request self.url_adapter = app.create_u...
Please complete the code given below. # -*- coding: utf-8 -*- """ Copyright (C) 2011 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib import logging from functools import ...
[ " response = _pubsub_consumer(session, cluster_id, query_wrapper)" ]
2,251
lcc
python
null
9621a523cfd2361541d82c5585397ca2326e223496d5585c
104
Your task is code completion. # -*- coding: utf-8 -*- """ Copyright (C) 2011 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib import logging from functools import wraps # S...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] @query_wrapper def pubsub_consumer_list(session, cluster_id, topic_name, needs_columns=False): """ All pub/sub consumers. """ @query_wrapper def pubsub_consumer_list(session, cluster_id, topic_name, needs_...
Please complete the code given below. /* * AMW - Automated Middleware allows you to manage the configurations of * your Java EE applications on an unlimited number of different environments * with various versions, including the automated deployment of those apps. * Copyright (C) 2013-2016 by Puzzle ITC * * This...
[ " if (resourceEntityForRelease != null) {" ]
1,149
lcc
java
null
693b0b0207d00086cfcee5f5943068055d8630c9db62e018
105
Your task is code completion. /* * AMW - Automated Middleware allows you to manage the configurations of * your Java EE applications on an unlimited number of different environments * with various versions, including the automated deployment of those apps. * Copyright (C) 2013-2016 by Puzzle ITC * * This program ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class ResourceDependencyResolverService { // ... existing code ... public Set<ResourceEntity> getConsumedRelatedResourcesByResourceType(ResourceEntity resource, DefaultResourceTypeDefinition default...
Please complete the code given below. # Copyright 2014-2016 The ODL development group # # This file is part of ODL. # # ODL 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 ...
[ " dx = ray_trafo.range.meshgrid[1]" ]
1,057
lcc
python
null
6515bcd028819c4ca6bc104bc8610724275c7ed4d429f30c
106
Your task is code completion. # Copyright 2014-2016 The ODL development group # # This file is part of ODL. # # ODL 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 you...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def parker_weighting(ray_trafo, q=0.25): # Note: Parameter names taken from WES2002 # Extract parameters src_radius = ray_trafo.geometry.src_radius det_radius = ray_trafo.geometry...
Please complete the code given below. # coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage 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...
[ " logger.log(u\"Proxified REGEX: \" + regx, logger.DEBUG)" ]
1,751
lcc
python
null
73869275419cb7e29c3d7b53bed42f41e39223637ced7d1d
107
Your task is code completion. # coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def _get_title_and_url(self, item): """ Retrieves the title and URL data from the item XML node item: An elementtree.ElementTree element representing the <item> tag of the RSS feed Returns:...
Please complete the code given below. // // System.Web.UI.WebControls.FontUnit.cs // // Authors: // Miguel de Icaza (miguel@novell.com) // Ben Maurer (bmaurer@ximian.com). // // Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining /...
[ "\t\t\tif (type == FontSize.NotSet)" ]
726
lcc
csharp
null
a1362f2667219e18121103e3f58abc48d5b819038a41374c
108
Your task is code completion. // // System.Web.UI.WebControls.FontUnit.cs // // Authors: // Miguel de Icaza (miguel@novell.com) // Ben Maurer (bmaurer@ximian.com). // // Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for FontUnit.cs: Context: [Previous code... ~10,000 lines omitted for brevity] public string ToString (IFormatProvider fmt) { // [Current method: ToString] // [Previous line: implicit operator FontUnit (int n)] // [Relevant variables: type, unit, fmt] // [Relevant me...
Please complete the code given below. using System; using System.Collections; using Nequeo.Cryptography.Key.Crypto.Parameters; using Nequeo.Cryptography.Key.Math; using Nequeo.Cryptography.Key.Utilities; namespace Nequeo.Cryptography.Key.Crypto.Engines { /** * NaccacheStern Engine. For details on this cipher, please...
[ "\t\t\t\t\t\t|| (block2.Length > GetInputBlockSize()))" ]
924
lcc
csharp
null
dc4f68ed20529e95f1739fef515a496692b2f641f11bc128
109
Your task is code completion. using System; using System.Collections; using Nequeo.Cryptography.Key.Crypto.Parameters; using Nequeo.Cryptography.Key.Math; using Nequeo.Cryptography.Key.Utilities; namespace Nequeo.Cryptography.Key.Crypto.Engines { /** * NaccacheStern Engine. For details on this cipher, please see * h...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the NaccacheSternEngine class: **Context:** [Previous code... ~10,000 lines omitted for brevity] ```csharp public class NaccacheSternEngine : IAsymmetricBlockCipher { // ... public byte[] AddCryptedBlocks( byte[] block1, byte[] block2) { // ... if (forEnc...
Please complete the code given below. using NUnit.Framework; using System; using NConfiguration.Json.Parsing; using System.Linq; namespace NConfiguration.Json { [TestFixture] public class ParsingTests { [TestCase(@"[""Unclosed array""")] [TestCase(@"{unquoted_key: ""keys must be quoted""}")] [TestCase(@"[""ex...
[ "\t\t\tobj = (JObject)obj.Properties[0].Value;" ]
537
lcc
csharp
null
05a84c831d09b24c15be892934f316b53ccabf77bfe3253f
110
Your task is code completion. using NUnit.Framework; using System; using NConfiguration.Json.Parsing; using System.Linq; namespace NConfiguration.Json { [TestFixture] public class ParsingTests { [TestCase(@"[""Unclosed array""")] [TestCase(@"{unquoted_key: ""keys must be quoted""}")] [TestCase(@"[""extra comma...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Based on the provided code, I will create a cheat sheet to help with the code completion task. **Context:** The code is a set of unit tests for a JSON parser using the NUnit testing framework. The tests cover various scenarios, including parsing invalid JSON and valid JSON with different data types. **Relevant Variab...
Please complete the code given below. /* * WANDORA Knowledge Extraction, Management, and Publishing Application * http://wandora.org * * Copyright (C) 2004-2016 Wandora Team * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as publish...
[ " for (int w = 0; w < width; w++) {" ]
1,282
lcc
java
null
74db7236c3c75feb5089de045fc0919ca9061c171999a049
111
Your task is code completion. /* * WANDORA Knowledge Extraction, Management, and Publishing Application * http://wandora.org * * Copyright (C) 2004-2016 Wandora Team * * 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class SquareCylinder extends AbstractCylinder implements Cylinder { private int size = 0; private int width = 0; private int height = 0; private boolean isToroid = false; ...
Please complete the code given below. import pathlib import warnings import numpy as np import dclab from dclab import isoelastics as iso from dclab.features import emodulus from dclab.features.emodulus import pxcorr from helper_methods import example_data_dict def get_isofile(name="example_isoelastics.txt"): this...
[ " i1 = iso.get_default()" ]
761
lcc
python
null
815f132424cf8772d1a660e02d231ddd3309d07fe636e616
112
Your task is code completion. import pathlib import warnings import numpy as np import dclab from dclab import isoelastics as iso from dclab.features import emodulus from dclab.features.emodulus import pxcorr from helper_methods import example_data_dict def get_isofile(name="example_isoelastics.txt"): thisdir = pat...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~20,000 lines omitted for brevity] def test_volume_scale_2(): """The default values are used if set to None""" i1 = iso.get_default() data = i1.get(col1="volume", col2="deform", channel_wi...
Please complete the code given below. /* Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved. Contact: SYSTAP, LLC DBA Blazegraph 2501 Calvert ST NW #106 Washington, DC 20008 licenses@blazegraph.com This program is free software; you can redistribute it and/or modify it under t...
[ " if (args.length < 2 || args.length > 3) {" ]
1,331
lcc
java
null
0ab3fa6fa37f02b5f789515e8bd2a7357fa959242a06e4e3
113
Your task is code completion. /* Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved. Contact: SYSTAP, LLC DBA Blazegraph 2501 Calvert ST NW #106 Washington, DC 20008 licenses@blazegraph.com This program is free software; you can redistribute it and/or modify it under the terms ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class TripleStoreUtility { // ... public static boolean modelsEqual(AbstractTripleStore expected, AbstractTripleStore actual) throws Exception { // ... final ...
Please complete the code given below. #!/usr/bin/env python """ Test alerts """ import unittest import datetime from dateutil.tz import tzutc from spotbot import alert def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): """ Borrow isclose from Python 3.5 """ return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs...
[ " {u'Timestamp': datetime.datetime(2015, 12, 31, 21, 29, 47," ]
706
lcc
python
null
ec079a446c9b8d37501282c4d7ea9038eeec3621948ada9e
114
Your task is code completion. #!/usr/bin/env python """ Test alerts """ import unittest import datetime from dateutil.tz import tzutc from spotbot import alert def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): """ Borrow isclose from Python 3.5 """ return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) cla...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def test_lowest_spotprice(self): """We should find the lowest spotprice for a given zone or return None.""" history = [ {u'Timestamp': datetime.datetime(2015, 12, 31, 22, 13, 43, ...
Please complete the code given below. package fr.inria.arles.yarta.desktop.library.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; i...
[ "\t\t\tString downloadedJarFile = performDownload();" ]
519
lcc
java
null
2048127690b0643c5439f0746443d4a8223e39ac290d9891
115
Your task is code completion. package fr.inria.arles.yarta.desktop.library.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import jav...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the Installer class: Context: [Previous code... ~10,000 lines omitted for brevity] public boolean downloadAndInstall() { int selection = JOptionPane.showConfirmDialog(null, Strings.InstallerDownloadPrompt, Strings.InstallerDownloadTitle, JOptionPane.OK_CANCEL...
Please complete the code given below. #region Copyright & License Information /* * Copyright 2007-2019 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 Found...
[ "\t\t\tif (context != IntPtr.Zero)" ]
469
lcc
csharp
null
704587a1d393bef058060b716bb0ae02a9df9635baed95b0
116
Your task is code completion. #region Copyright & License Information /* * Copyright 2007-2019 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, ei...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given context: Context: [Previous code... ~10,000 lines omitted for brevity] public class Sdl2GraphicsContext : ThreadAffine, IGraphicsContext { // ... public void Dispose() { if (disposed) return; disposed = true; ...
Please complete the code given below. try: import typing # help IDEs with type-hinting inside docstrings except ImportError: pass import numpy # help IDEs with type-hinting inside docstrings from collections import OrderedDict from copy import deepcopy import numpy as np from ...core.error import CovMat from...
[ " projected onto the *y* axis. :py:obj:`None` if singular." ]
985
lcc
python
null
846340ba2c3c023a2837435e9ce17bc793645f33a20dcb42
117
Your task is code completion. try: import typing # help IDEs with type-hinting inside docstrings except ImportError: pass import numpy # help IDEs with type-hinting inside docstrings from collections import OrderedDict from copy import deepcopy import numpy as np from ...core.error import CovMat from ...tools...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] class XYFit(FitBase): ... @property def data_cov_mat_inverse(self): """2D array of shape ``(N, N)`` containing the inverse of the data *xy* covariance matrix or :py:obj:`None` if singular...
Please complete the code given below. /* * This library is part of OpenCms - * the Open Source Content Management System * * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
[ " if (this == EMPTY) {" ]
703
lcc
java
null
1915494441abd4076b5a0f96dc9ffb2c41a828a4c1abde95
118
Your task is code completion. /* * This library is part of OpenCms - * the Open Source Content Management System * * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class CmsLinkInfo { // ... /** * Converts this to a CmsLink. * * @return a new CmsLink instance with the information from this bean */ pub...
Please complete the code given below. /************************************************************************* * Copyright 2009-2015 Eucalyptus Systems, Inc. * * 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...
[ " adminUser = getEucalyptusAdmin();" ]
4,345
lcc
java
null
cf6d3d1f0f07aeb719a37db4e37a1cd437cb894df0b12bdd
119
Your task is code completion. /************************************************************************* * Copyright 2009-2015 Eucalyptus Systems, Inc. * * 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public static Function<ObjectInfo, ObjectEntity> objectTransformationFunction() { @Override @Nullable public ObjectEntity apply(@Nonnull ObjectInfo walrusObject) { ObjectEntity osgObjec...
Please complete the code given below. #region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and...
[ " add { _selectedFolderChanged += value; }" ]
666
lcc
csharp
null
2a81205ef1f5abf727ff63850ffd1162fadd475e92b2d3ca
120
Your task is code completion. #region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and/or modif...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class FolderExplorerComponent : ApplicationComponent, IFolderExplorerComponent { // ... public void SelectFolder(FolderTreeNode nodeToSelect) { // [Code to be completed] ...
Please complete the code given below. package org.ovirt.engine.core.bll; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.mockito.Matchers.any; import static org.mockito.Ma...
[ " ImportVmTemplateParameters parameters = createParameters();" ]
616
lcc
java
null
b8a0388946b2d3e0cf2a7f1db681ccb8c70cc44275b2f173
121
Your task is code completion. package org.ovirt.engine.core.bll; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.mockito.Matchers.any; import static org.mockito.Matchers.an...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given context: Context: [Previous code... ~10,000 lines omitted for brevity] private void checkTemplateName(boolean isImportAsNewEntity, String name) { // ... Cheatsheet (for next line): - We are in checkTemplateName(), which seems to be a test method. - It takes two parameters: isImpo...
Please complete the code given below. // This file has been generated by the GUI designer. Do not modify. namespace BlinkStickClient { public partial class CpuEditorWidget { private global::Gtk.VBox vbox2; private global::Gtk.Frame frame1; private global::Gtk.Alignment GtkAlignment; private global:...
[ "\t\t\tw10.TopAttach = ((uint)(1));" ]
650
lcc
csharp
null
6261fc22209c7ae19b5098f7004853c527e546aedd74f793
122
Your task is code completion. // This file has been generated by the GUI designer. Do not modify. namespace BlinkStickClient { public partial class CpuEditorWidget { private global::Gtk.VBox vbox2; private global::Gtk.Frame frame1; private global::Gtk.Alignment GtkAlignment; private global::Gtk.VBox...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] // Container child alignment2.Gtk.Container+ContainerChild this.table1 = new global::Gtk.Table (((uint)(2)), ((uint)(5)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); th...
Please complete the code given below. # -*- encoding: utf-8 -*- # # A scripting wrapper for NZBGet's Post Processing Scripting # # Copyright (C) 2014 Chris Caron <lead2gold@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License ...
[ " environ['%sCATEGORY' % POSTPROC_ENVIRO_ID] = \\" ]
1,764
lcc
python
null
a5e1e43a793649afc91e7bd083f0d034f0df3e24509c448e
123
Your task is code completion. # -*- encoding: utf-8 -*- # # A scripting wrapper for NZBGet's Post Processing Scripting # # Copyright (C) 2014 Chris Caron <lead2gold@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as publis...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def postprocess_init(self, *args, **kwargs): ... # self.system['CATEGORY'] = self.category if self.category is not None: Cheatsheet (for next line): - We are in postprocess_init(), whic...
Please complete the code given below. /* Copyright (C) 2008-2011 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...
[ "\t\t\treturn new ConstructorBuilder(mb);" ]
910
lcc
csharp
null
6b78cc0ec714622bb22d89aa972b1eae59e59788b357955a
124
Your task is code completion. /* Copyright (C) 2008-2011 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 ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Based on the provided code, I will create a cheat sheet to help me complete the code. **Cheat Sheet:** **Context:** `TypeBuilder` class, `DefineTypeInitializer` method **Relevant lines:** * `public ConstructorBuilder DefineTypeInitializer()` * `MethodBuilder mb = DefineMethod(ConstructorInfo.TypeConstructorName, Me...
Please complete the code given below. // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! #pragma warning disable 1591 #region Designer generated code using pb = global::Google.ProtocolBuffers; using pbc = global::Google.ProtocolBuffers.Collections; using pbd = ...
[ " return (Builder) new Builder().MergeFrom(prototype);" ]
1,897
lcc
csharp
null
773a363f2c8a3fdcc084a85466fde2a1350769f67776f1f4
125
Your task is code completion. // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! #pragma warning disable 1591 #region Designer generated code using pb = global::Google.ProtocolBuffers; using pbc = global::Google.ProtocolBuffers.Collections; using pbd = global::G...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Based on the provided code, I will create a cheat sheet to help with the code completion task. Context: [Previous code... ~10,000 lines omitted for brevity] public class SendInvitationRequest : pb::GeneratedMessage<SendInvitationRequest, SendInvitationRequest.Builder> { // ... (many lines omitted for brevity) ...
Please complete the code given below. /* * Copyright (c) 2003-2009 jMonkeyEngine * 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 abo...
[ " vertices[x] = new Vector3f();" ]
1,059
lcc
java
null
1354213b38f26ed15b8f898742ff5002cfb7db09baf32dd7
126
Your task is code completion. /* * Copyright (c) 2003-2009 jMonkeyEngine * 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 copyri...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public void getQuad(int i, Vector3f[] vertices) { if (i < getQuadCount() && i >= 0) { for (int x = 0; x < 4; x++) { if (vertices[x] == null) vertices[x] = ...
Please complete the code given below. /* * File : $Source: /alkacon/cvs/alkacon/com.alkacon.opencms.documentcenter/src/com/alkacon/opencms/documentcenter/CmsDocumentFrontend.java,v $ * Date : $Date: 2010/03/19 15:31:13 $ * Version: $Revision: 1.3 $ * * This file is part of the Alkacon OpenCms Add-On Module Pa...
[ " if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(showDateData)) {" ]
1,920
lcc
java
null
5b8e2643405d58c8009b6c2812341072d705748a64e8f971
127
Your task is code completion. /* * File : $Source: /alkacon/cvs/alkacon/com.alkacon.opencms.documentcenter/src/com/alkacon/opencms/documentcenter/CmsDocumentFrontend.java,v $ * Date : $Date: 2010/03/19 15:31:13 $ * Version: $Revision: 1.3 $ * * This file is part of the Alkacon OpenCms Add-On Module Package * ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class CmsDocumentFrontend extends CmsJspActionElement { // ... private List<String> getHiddenColumns() { List<String> result = new ArrayList<String>(4); String igno...
Please complete the code given below. // Copyright 2014 Invex Games http://invexgames.com // 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 // Unle...
[ "\t\t\tyield return new WaitForEndOfFrame();" ]
583
lcc
csharp
null
6f54b8bdeec79fa980ac72092ce615f8de384ea5d04ccc11
128
Your task is code completion. // Copyright 2014 Invex Games http://invexgames.com // 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 requir...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class InputFieldConfig : MonoBehaviour, ISelectHandler, IDeselectHandler { ... void Update () { ... if (state == 2) // Deactivating { if (animDeltaTime <= 1f) { ... ...
Please complete the code given below. using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace mRemoteNG.UI.TaskDialog { public sealed partial class CommandButton : Button { //---------------------------------------------------------...
[ " int h = GetBestHeight();" ]
638
lcc
csharp
null
9ee2a42b13526dd952de8a27bb5404cee70aa93dc9e35ee7
129
Your task is code completion. using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace mRemoteNG.UI.TaskDialog { public sealed partial class CommandButton : Button { //------------------------------------------------------------------...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat Sheet for Code Completion Task: **Context:** [Previous code... ~10,000 lines omitted for brevity] protected override void OnSizeChanged(EventArgs e) { if (m_autoHeight) { // [Current line] // [Previous code... ~10,000 lines omitted for brevity] **Cheat Sheet:** - We are in t...
Please complete the code given below. // // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // timop // // Copyright 2004-2013 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of th...
[ " lastUser = r[\"CreatedBy\"].ToString();" ]
864
lcc
csharp
null
fee4dc71675158dd9374b556629af2d83cdc0503955dba84
130
Your task is code completion. // // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // timop // // Copyright 2004-2013 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of the GNU Gen...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] private static void SendEmailsPerUser(DataTable AErrors) { // get all users that have created or modified the records in the past week(s) List<String> Users = new List<string>(); fore...
Please complete the code given below. #region Copyright & License Information /* * Copyright 2007-2014 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 Found...
[ "\t\t\t\tdirections |= ScrollDirection.Right;" ]
598
lcc
csharp
null
91b83a11b6dc2c86381251a96905d31244b8ac184fe12ef5
131
Your task is code completion. #region Copyright & License Information /* * Copyright 2007-2014 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. Fo...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class ViewportControllerWidget : Widget { ... public override void Tick() { edgeDirections = ScrollDirection.None; if (Game.Settings.Game.ViewportEdgeScroll && Ga...
Please complete the code given below. // // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // peters // // Copyright 2004-2012 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of t...
[ " string[] CriteriaCodesUsedArray = CriteriaCodesUsed.ToArray();" ]
1,562
lcc
csharp
null
56926abd2bf7483455bb0fefd23ad8e304fab1e8b70b8eee
132
Your task is code completion. // // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // peters // // Copyright 2004-2012 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of the GNU Ge...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] private void ValidateDataManual(PcConferenceRow ARow) { PcDiscountTable DiscountTable = FMainDS.PcDiscount; TVerificationResultCollection VerificationResultCollection = FPetraUtilsObject.Veri...
Please complete the code given below. /* * Phosphorus Five, copyright 2014 - 2017, Thomas Hansen, thomas@gaiasoul.com * * This file is part of Phosphorus Five. * * Phosphorus Five is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3, as publish...
[ " stream.Read (buffer, 0, buffer.Length);" ]
722
lcc
csharp
null
50f7d00750145f888361c63d85ebf5e9fb68a039385b8255
133
Your task is code completion. /* * Phosphorus Five, copyright 2014 - 2017, Thomas Hansen, thomas@gaiasoul.com * * This file is part of Phosphorus Five. * * Phosphorus Five is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3, as published by * ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] using System; using System.IO; using p5.exp; using p5.core; using p5.io.common; using p5.exp.exceptions; namespace p5.io.file { /// <summary> /// Loads one or more...
Please complete the code given below. # # Copyright (C) 2019 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is ...
[ " return not any(self._reqs.values())" ]
879
lcc
python
null
59b6354e9591524b4ada354f2fa122917bcd1253262c12f2
134
Your task is code completion. # # Copyright (C) 2019 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distribut...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] class PayloadRequirements(object): def __init__(self): self._apply_called_for_all_requirements = True self._apply_cb = None self._reqs = {} for req_type in PayloadRe...
Please complete the code given below. #region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.ClearCanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and...
[ "\t\t\tget { return Enabled && _numberOfImages > 2; }" ]
1,205
lcc
csharp
null
949612e418b169f935d6b0410ff5626ba21152c71a086f2d
135
Your task is code completion. #region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.ClearCanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and/or modif...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class CopySubsetToClipboardComponent : ApplicationComponent { // ... (many lines omitted for brevity) private void CopyToClipboardInternal() { // ... (many lines omitted for ...
Please complete the code given below. using System; using System.Runtime.InteropServices; using System.Text; using System.IO; using System.Xml; using Mono.Unix; using Mono.Unix.Native; using Hyena; using NDesk.DBus; using org.gnome.SessionManager; namespace Tomboy { public class GnomeApplication : INativeApplication ...
[ "\t\t\tget { return dataDir; }" ]
614
lcc
csharp
null
e2ce1e79b1ea6b76bdda716904c17e746e52a6a0261ef941
136
Your task is code completion. using System; using System.Runtime.InteropServices; using System.Text; using System.IO; using System.Xml; using Mono.Unix; using Mono.Unix.Native; using Hyena; using NDesk.DBus; using org.gnome.SessionManager; namespace Tomboy { public class GnomeApplication : INativeApplication { #if PA...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class GnomeApplication : INativeApplication { // ... public string DataDirectory { get { // [Insert code here] } } // ... } Cheatshee...
Please complete the code given below. /* * FindBugs - Find bugs in Java programs * Copyright (C) 2003-2008, University of Maryland * * 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;...
[ " if (bugAnnotation instanceof PackageMemberAnnotation) {" ]
733
lcc
java
null
cb3e34be4795caaf719f520787549681e8b00fbac71530a7
137
Your task is code completion. /* * FindBugs - Find bugs in Java programs * Copyright (C) 2003-2008, University of Maryland * * 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 ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class TextUIBugReporter extends AbstractBugReporter { // ... (many lines omitted for brevity) private boolean applySuppressions; // ... (many lines omitted for brevity) ...
Please complete the code given below. using System; using System.Collections; using Server.Network; using System.Collections.Generic; using Server.ContextMenus; namespace Server.Items { public abstract class Food : Item { private Mobile m_Poisoner; private Poison m_Poison; private int m_FillFactor; [CommandP...
[ "\t[TypeAlias( \"Server.Items.Pizza\" )]" ]
1,914
lcc
csharp
null
c539b59ccd2559e5f2823b3d0c876ed3d71dad59f7a6e121
138
Your task is code completion. using System; using System.Collections; using Server.Network; using System.Collections.Generic; using Server.ContextMenus; namespace Server.Items { public abstract class Food : Item { private Mobile m_Poisoner; private Poison m_Poison; private int m_FillFactor; [CommandProperty( ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **Context:** The code is a part of a game, specifically the food system, where various food items are defined as subclasses of the `Food` class. The `Food` class has properties like `Poisoner`, `Poison`, `FillFactor`, and methods like `Eat`, `CheckHunger`, and `FillHunger`. **Relevant ...
Please complete the code given below. using EloBuddy; using LeagueSharp.Common; namespace Flowers_ADC_Series.Pluging { using ADCCOMMON; using System; using System.Linq; using LeagueSharp; using LeagueSharp.Common; using Color = System.Drawing.Color; internal class KogMaw : Logic ...
[ " if (eFarm.MinionsHit >= Menu.GetSlider(\"LaneClearECount\"))" ]
993
lcc
csharp
null
d8843d3a7c6577b304c94d48767a3f75337b2aeadd3c5f76
139
Your task is code completion. using EloBuddy; using LeagueSharp.Common; namespace Flowers_ADC_Series.Pluging { using ADCCOMMON; using System; using System.Linq; using LeagueSharp; using LeagueSharp.Common; using Color = System.Drawing.Color; internal class KogMaw : Logic { ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **Context:** [Previous code... ~10,000 lines omitted for brevity] private void LaneClear() { if (ManaManager.HasEnoughMana(Menu.GetSlider("LaneClearMana")) && ManaManager.SpellFarm) { var minions = MinionManager.GetMinions(Me.Position, R.Range); ...
Please complete the code given below. package ch.sfdr.fractals.gui.component; import java.awt.GridBagConstraints; import java.awt.Insets; /** * GBC, a small helper class to create GridBagConstraints in a more readable way * with less typing: just use the static methods when adding a component, eg. * <code> * con...
[ "\t\treturn get(x, y, width, height, 0.0, 0.0, DEFAULT_FILL, anchor);" ]
691
lcc
java
null
9812a3e53ee25cf9a764b1de80d781f37d829475a8bf8980
140
Your task is code completion. package ch.sfdr.fractals.gui.component; import java.awt.GridBagConstraints; import java.awt.Insets; /** * GBC, a small helper class to create GridBagConstraints in a more readable way * with less typing: just use the static methods when adding a component, eg. * <code> * container.ad...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the GBC class: **Context:** [Previous code... ~10,000 lines omitted for brevity] ```java public final class GBC { // ... /** * Returns a GridBagConstraint * @param x * @param y * @param width * @param height * @param wx * @param wy * @param fill * @p...
Please complete the code given below. #!/usr/bin/env python3 # vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab ######################################################################### # Copyright 2012-2013 Marcus Popp marcus@popp.mx #####################################...
[ " filexml = self._retr_file(filename)" ]
709
lcc
python
null
140b5a1cf9a62eb1f7eac54fcb8dec74b23e9ea6e4d3d93a
141
Your task is code completion. #!/usr/bin/env python3 # vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab ######################################################################### # Copyright 2012-2013 Marcus Popp marcus@popp.mx ##############################################...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def pollen(self, region): filename = 'gds/specials/warnings/FG/s_b31fg.xml' Cheatsheet (for next line): - We are in the pollen() method, which is supposed to retrieve pollen data for a given region. - The filenam...
Please complete the code given below. # -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2014 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 o...
[ " value = {'a': 'Awesome title', 'b': 'sub title', 'k': 'form'}" ]
559
lcc
python
null
377a5cd5de82ca79a2db39ae2f6c6eefe06766c9245639af
142
Your task is code completion. # -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2014 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 ## ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def test_field_name_model_based(self): """JSONAlchemy - field name model based""" clean_field_model_definitions() field_model_def = Field_parser.field_definition_model_based( ...
Please complete the code given below. /////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2006-2015 Esper Team. All rights reserved. / // http://esper.codehaus.org / // --------------...
[ " new[] {new object[] {10L, \"E1\"}});" ]
2,245
lcc
csharp
null
3b38e1fde0c4d94fe262da07601e96359f818e86edae6271
143
Your task is code completion. /////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2006-2015 Esper Team. All rights reserved. / // http://esper.codehaus.org / // -----------------------...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given context: Context: [Previous code... ~10,000 lines omitted for brevity] internal class InfraInvalid : RegressionExecution { private readonly bool namedWindow; public InfraInvalid(bool namedWindow) { this.namedWindow = namedWindow; } p...
Please complete the code given below. from ctypes import Structure, c_double, c_int, byref, memmove, sizeof, c_uint32, c_uint, c_ulong from . import clibrebound import math import ctypes.util import rebound import sys import random __all__ = ["Particle"] def notNone(a): """ Returns True if array a contains at ...
[ " c = self.copy()" ]
2,793
lcc
python
null
87167f35efb4266c3e3919ffabd45083b35092d703ea2b45
144
Your task is code completion. from ctypes import Structure, c_double, c_int, byref, memmove, sizeof, c_uint32, c_uint, c_ulong from . import clibrebound import math import ctypes.util import rebound import sys import random __all__ = ["Particle"] def notNone(a): """ Returns True if array a contains at least one...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def __rmul__(self, other): try: other = float(other) except: return NotImplemented clibrebound.reb_particle_imul(byref(self), c_double(other)) return self...
Please complete the code given below. # -*- coding: utf-8 -*- import copy import re import simplejson import werkzeug from lxml import etree, html from openerp import SUPERUSER_ID from openerp.addons.website.models import website from openerp.http import request from openerp.osv import osv, fields class view(osv.osv):...
[ " view = self.browse(cr, SUPERUSER_ID, res_id, context=context)" ]
739
lcc
python
null
f1012042daf639a1e2d064433991b95b1734be709802fbc1
145
Your task is code completion. # -*- coding: utf-8 -*- import copy import re import simplejson import werkzeug from lxml import etree, html from openerp import SUPERUSER_ID from openerp.addons.website.models import website from openerp.http import request from openerp.osv import osv, fields class view(osv.osv): _inh...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def save(self, cr, uid, res_id, value, xpath=None, context=None): """ Update a view section. The view section may embed fields to write :param str model: :param int res_id: :param str xpath...
Please complete the code given below. /* * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License versi...
[ " value = BasicHTML.createHTMLView(c, text);" ]
980
lcc
java
null
79f8206b5d5b0bfc5beeb608d3ce99dca25c4d4a1db02f09
146
Your task is code completion. /* * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public static void updateRenderer(JComponent c, String text) { View value = null; View oldValue = (View)c.getClientProperty(BasicHTML.propertyKey); Boolean htmlDisabled = (Boolean) c.getC...
Please complete the code given below. import os import pytest from six import BytesIO from ..sourcefile import SourceFile, read_script_metadata, js_meta_re, python_meta_re def create(filename, contents=b""): assert isinstance(contents, bytes) return SourceFile("/", filename, "/", contents=contents) def items(s...
[ " s = create(filename, content)" ]
633
lcc
python
null
d15c99c3eb39bc99358e7e6768ef9b03d171255c2c8c033a
147
Your task is code completion. import os import pytest from six import BytesIO from ..sourcefile import SourceFile, read_script_metadata, js_meta_re, python_meta_re def create(filename, contents=b""): assert isinstance(contents, bytes) return SourceFile("/", filename, "/", contents=contents) def items(s): it...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def test_testharness(ext): content = b"<script src=/resources/testharness.js></script>" filename = "html/test." + ext Relevant lines/variables: - `ext` is a string variable representing th...
Please complete the code given below. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using NHibernate.Cfg.MappingSchema; using NHibernate.Persister.Collection; using NHibernate.UserTypes; namespace NHibernate.Mapping.ByCode.Impl { public class MapMapper : IMapPropertiesMap...
[ "\t\t\t\tmapping.loader = new HbmLoader();" ]
620
lcc
csharp
null
941de4a30042444c37ae61552e7f11d288717b818793b5d1
148
Your task is code completion. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using NHibernate.Cfg.MappingSchema; using NHibernate.Persister.Collection; using NHibernate.UserTypes; namespace NHibernate.Mapping.ByCode.Impl { public class MapMapper : IMapPropertiesMapper { ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class MapMapper : IMapPropertiesMapper { // ... public void Fetch(CollectionFetchMode fetchMode) { if (fetchMode == null) { return; } mapping.fetch = fetchMode.To...
Please complete the code given below. using System; namespace Server.Factions { public class FactionState { private Faction m_Faction; private Mobile m_Commander; private int m_Tithe; private int m_Silver; private PlayerStateCollection m_Members; private Election m_Election; private FactionItemCollecti...
[ "\t\t\twriter.WriteEncodedInt( (int) m_Members.Count );" ]
670
lcc
csharp
null
8beb1da6b11326207584621c562d0cde00dc7c7e21ffd3f0
149
Your task is code completion. using System; namespace Server.Factions { public class FactionState { private Faction m_Faction; private Mobile m_Commander; private int m_Tithe; private int m_Silver; private PlayerStateCollection m_Members; private Election m_Election; private FactionItemCollection m_Fact...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for FactionState class: **Context:** [Previous code... ~10,000 lines omitted for brevity] public void Serialize( GenericWriter writer ) { writer.WriteEncodedInt( (int) 4 ); // version writer.WriteEncodedInt( (int) m_LastBroadcasts.Length ); for ( int i = 0; i < m_LastBroadca...
Please complete the code given below. /* * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License versi...
[ " assert graphQueue.size() <= maxGraphs;" ]
2,259
lcc
java
null
67ef14339142182591850f1edd39a2ecbd4e4b7e0f37c376
150
Your task is code completion. /* * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public class InliningData { // ... private void processNextInvoke() { CallsiteHolderExplorable callsiteHolder = (CallsiteHolderExplorable) currentGraph(); Invoke invoke = callsiteHo...
Please complete the code given below. #!/usr/bin/env python2 from cfme.utils.conf import docker as docker_conf from cfme.utils.net import random_port, my_ip_address import argparse import fauxfactory import requests import os import os.path import docker import re import subprocess import sys import yaml from six.move...
[ " self.args['pytest'] = \"py.test {}\".format(pytest)" ]
951
lcc
python
null
7b8b8a69f57173dd972113558b3540a67621319e219d30c4
151
Your task is code completion. #!/usr/bin/env python2 from cfme.utils.conf import docker as docker_conf from cfme.utils.net import random_port, my_ip_address import argparse import fauxfactory import requests import os import os.path import docker import re import subprocess import sys import yaml from six.moves.urllib....
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def create_pytest_command(self): if self.args['auto_gen_test'] and self.args['pr']: self.pr_metadata = self.get_pr_metadata(self.args['pr']) pytest = self.pr_metadata.get('pytest', None) ...
Please complete the code given below. /* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License versi...
[ " if (phi) {" ]
810
lcc
java
null
f6536b39e8505ccb4c694576fea0f11053ae3a52c68fe5c6
152
Your task is code completion. /* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] private class ReadEliminationMergeProcessor extends EffectsClosure<ReadEliminationBlockState>.MergeProcessor { private final HashMap<Object, ValuePhiNode> materializedPhis = new HashMap<>(); publ...
Please complete the code given below. /* * Copyright (C) 2014 The Android Open Source Project * * 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/L...
[ " if (mCallback != null) {" ]
587
lcc
java
null
eda13b1d2aeeeac450c99e7b1bd4ab5d92449eda79b54da5
153
Your task is code completion. /* * Copyright (C) 2014 The Android Open Source Project * * 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....
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public abstract class ImsVideoCallProvider { private final ImsVideoCallProviderBinder mBinder; private IImsVideoCallCallback mCallback; private final Handler mProviderHandler = new Handler(Looper.g...
Please complete the code given below. using Server; using System; using Server.Mobiles; using Server.Gumps; using System.Collections.Generic; using Server.Engines.Quests; using Server.Network; using Server.ContextMenus; using Server.Multis; namespace Server.Items { public class MyrmidexRewardBag : Backpack { ...
[ "\t\t\t\tGump g = new Gump(0, 0);" ]
854
lcc
csharp
null
93191c3c840c04430c2e0222e3643013a8af4e2b709e6f95
154
Your task is code completion. using Server; using System; using Server.Mobiles; using Server.Gumps; using System.Collections.Generic; using Server.Engines.Quests; using Server.Network; using Server.ContextMenus; using Server.Multis; namespace Server.Items { public class MyrmidexRewardBag : Backpack { pu...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Based on the provided code, I will create a cheat sheet to help with the code completion task. **Cheat Sheet:** **Context:** The code is from the `MoonstoneCrystal` class, specifically in the `Serialize` method. **Relevant lines:** 1. `public override void Serialize(GenericWriter writer)` 2. `writer.Write(0);` 3. `...
Please complete the code given below. # -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014, 2015 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...
[ "] + models)" ]
609
lcc
python
null
588825a49d4fdd244fc2fb3cce5086b306490b945a3bc787
155
Your task is code completion. # -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014, 2015 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 # Li...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] class BibrecBibxxxMixin(utils.TableFromCamelNameMixin): """Mixin for BibrecBibxxx tables.""" @declared_attr def _bibxxx(cls): return globals()[cls.__name__[6:]] @declared_attr def id_bibrec(cls): ...
Please complete the code given below. # This file is part of xmpp-backends (https://github.com/mathiasertl/xmpp-backends). # # xmpp-backends 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...
[ " user = '%s@%s' % (username, domain)" ]
744
lcc
python
null
a94d83a5503d88913110cc5d278d085fdccea0e30d2e9d9b
156
Your task is code completion. # This file is part of xmpp-backends (https://github.com/mathiasertl/xmpp-backends). # # xmpp-backends 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 Licens...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def remove_user(self, username, domain): # [Insert code here] Cheatsheet (for next line): - We are in the remove_user method, which is supposed to remove a user from the system. - The method takes two p...
Please complete the code given below. #!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT (see LICENSE file provided) # vim600: fdm=marker tabstop=4 shiftwidth=4 expandtab ai # # This file has been modified by Manuel Saelices <msaelices _at_ yaco.es> # and belongs to David JEAN LOUIS <izimobil@gmail.com>. ...
[ " - *fpath*: string, full or relative path to the file." ]
2,528
lcc
python
null
a80d3f058a72bdd5747b39d44c4b55204d02f090d3568cee
157
Your task is code completion. #!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT (see LICENSE file provided) # vim600: fdm=marker tabstop=4 shiftwidth=4 expandtab ai # # This file has been modified by Manuel Saelices <msaelices _at_ yaco.es> # and belongs to David JEAN LOUIS <izimobil@gmail.com>. # # You c...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor. **Keyword arguments**: - *fpath*: string, path to po or mo file - *wrapwidth*...
Please complete the code given below. """ Runs few integrity checks """ __RCSID__ = "$Id$" from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Core.Utilities.List ...
[ " if not res['OK']:" ]
873
lcc
python
null
924bc05657c826f5fa04974021bf21c5946ff1d3a39ea9ef
158
Your task is code completion. """ Runs few integrity checks """ __RCSID__ = "$Id$" from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Core.Utilities.List ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def finalizeCheck( self, transID ): """ Move to 'WaitingIntegrity' or 'ValidatedOutput' """ res = self.integrityClient.getTransformationProblematics( int( transID ) ) Cheatsheet (for next line): - We are in fi...
Please complete the code given below. /* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ package freenet.client.filter; import freenet.client.filter.HTMLFilter.ParsedT...
[ "\t\t\tString path = uri.getPath();" ]
1,604
lcc
java
null
e19ebd2a302575d8fb0c11be6536df7e0face2889546ed8d
159
Your task is code completion. /* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ package freenet.client.filter; import freenet.client.filter.HTMLFilter.ParsedTag; impor...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public String processForm(String method, String action) throws CommentException { if(action == null) return null; if(method == null) method = "GET"; method = method.toUpperCase(); if(!(meth...
Please complete the code given below. # This file is part of Buildbot. Buildbot 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 distributed in the hope that it will be useful, ...
[ " gsp = yield self.setupGerritStatusPush(reviewCB=sampleReviewCB," ]
958
lcc
python
null
6dad6c68d75d75e242d0bbeb5900a85521954edf3aeb5975
160
Your task is code completion. # This file is part of Buildbot. Buildbot 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 distributed in the hope that it will be useful, but WITHO...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given context: Context: [Previous code... ~10,000 lines omitted for brevity] @defer.inlineCallbacks def check_single_build(self, buildResult, verifiedScore): gsp = yield self.setupGerritStatusPush(summaryCB=sampleSummaryCB) msg = yield self.run_fake_single_build(gsp, buildRe...
Please complete the code given below. #!/usr/bin/python # -*-*- encoding: utf-8 -*-*- # # Copyright (C) 2006 Google 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.a...
[ " self.category = atom.Category()" ]
629
lcc
python
null
0bad08e092a4b3c97228cda53b001b7ddfd62dc3a8be077b
161
Your task is code completion. #!/usr/bin/python # -*-*- encoding: utf-8 -*-*- # # Copyright (C) 2006 Google 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **AuthorTest class** - We are in the `setUp` method, which is a special method in unittest that is called before each test method. - The `self.author` object is an instance of `atom.Author`. - The `setUp` method is used to set up the test environment. Relevant lines: ```python class A...
Please complete the code given below. package org.checkerframework.checker.igj; import org.checkerframework.checker.igj.qual.AssignsFields; import org.checkerframework.checker.igj.qual.I; import org.checkerframework.checker.igj.qual.Immutable; import org.checkerframework.checker.igj.qual.Mutable; import org.checkerfra...
[ " Map<String, AnnotationMirror> r2) {" ]
2,339
lcc
java
null
0d5ebe09775314436fb1f120cb4c0d408be485ca49b27ab0
162
Your task is code completion. package org.checkerframework.checker.igj; import org.checkerframework.checker.igj.qual.AssignsFields; import org.checkerframework.checker.igj.qual.I; import org.checkerframework.checker.igj.qual.Immutable; import org.checkerframework.checker.igj.qual.Mutable; import org.checkerframework.ch...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class IGJAnnotatedTypeFactory extends BaseAnnotatedTypeFactory { // ... private class ImmutabilityResolver extends AnnotatedTypeScanner<Void, Map<String, AnnotationMirror>> { ...
Please complete the code given below. # ##### BEGIN GPL LICENSE BLOCK ##### # # 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 late...
[ " col = split.column()" ]
2,052
lcc
python
null
6303ed98c58fa08f8639667add933df524657e812b3495b5
163
Your task is code completion. # ##### BEGIN GPL LICENSE BLOCK ##### # # 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] class MATERIAL_PT_transp(MaterialButtonsPanel, Panel): bl_label = "Transparency" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod def poll(cls, context): mat = context.material engine = context...
Please complete the code given below. using System; using NesHd.Core.Memory; using NesHd.Core.Memory.Mappers; namespace NesHd.Core.Misc { [Serializable] public class StateHolder { #region CPU public int CycleCounter; private int _cyclesPerScanline; private bool _flagB; ...
[ " if (_engine.Memory.Map.Cartridge.MapperNo == 16)" ]
1,369
lcc
csharp
null
23b0090fa6618a3171db2086d8cc9478f03e22182380161d
164
Your task is code completion. using System; using NesHd.Core.Memory; using NesHd.Core.Memory.Mappers; namespace NesHd.Core.Misc { [Serializable] public class StateHolder { #region CPU public int CycleCounter; private int _cyclesPerScanline; private bool _flagB; privat...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Based on the provided code, I will create a cheat sheet to help with the code completion task. **Cheat Sheet:** **Context:** The code is in the `LoadNesData` method of the `StateHolder` class. This method is used to load the state of the NES engine into the `StateHolder` object. **Relevant Variables and Regions:** ...
Please complete the code given below. /************************************************************************* * * The Contents of this file are made available subject to the terms of * the BSD license. * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * * Redistribution and ...
[ " String[] sTDocUrls = m_oInspector.getTDocUrls();" ]
594
lcc
java
null
4d661a278930364d65e248d5f8bbbf7992b0f866443d527f
165
Your task is code completion. /************************************************************************* * * The Contents of this file are made available subject to the terms of * the BSD license. * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * * Redistribution and use in so...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **Context:** [Previous code... ~10,000 lines omitted for brevity] public class SwingDialogProvider implements XDialogProvider{ ... private void addOpenDocumentMenu(JMenu _jMnuRoot){ ActionListener oActionListener = new ActionListener(){ pu...
Please complete the code given below. //--- Aura Script ----------------------------------------------------------- // Aranwen //--- Description ----------------------------------------------------------- // Teacher //--------------------------------------------------------------------------- public class AranwenScrip...
[ "\t\tAdd(\"Party Quest\", 70025); // Party Quest Scroll [30 Red Bears]" ]
1,340
lcc
csharp
null
972aa86922fe3fc5000647badc4783f41e4e10f292b5d31b
166
Your task is code completion. //--- Aura Script ----------------------------------------------------------- // Aranwen //--- Description ----------------------------------------------------------- // Teacher //--------------------------------------------------------------------------- public class AranwenScript : NpcSc...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: **Context:** The code is for an NPC (non-player character) script in a game, specifically for Aranwen, a teacher who teaches combat skills. The script handles conversations and interactions with the player. **Relevant lines and variables:** 1. `case "@upgrade":` - This is th...
Please complete the code given below. using System; using Android.App; using Android.Widget; using Android.Graphics; using Java.Interop; using Android.Animation; using Android.Util; using Android.Graphics.Drawables; using Android.Runtime; using Android.Views; namespace StartClockApp { internal class UIView : Relative...
[ "\t\t\tMeasure (0, 0);" ]
853
lcc
csharp
null
d9359fe4b11ff3d0cc4c2102fccceb75920f6435962b6b84
167
Your task is code completion. using System; using Android.App; using Android.Widget; using Android.Graphics; using Java.Interop; using Android.Animation; using Android.Util; using Android.Graphics.Drawables; using Android.Runtime; using Android.Views; namespace StartClockApp { internal class UIView : RelativeLayout {...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **UIView Class** - The class is a custom RelativeLayout in Android. - It has properties for Frame, BackgroundColor, BorderColor, and Hidden. - It has methods for animating the view's position, size, and visibility. - It has methods for adding and removing borders, and setting the backg...
Please complete the code given below. """ Data models for the announcements app. """ from django.db import models from django.conf import settings from django.core.urlresolvers import reverse from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from apps.tools.utils import unique_s...
[ " return '%s -> %s' % (self.announcement, self.tweet_id)" ]
846
lcc
python
null
795a770e3d8fd600446fa22b4ced986b2139cc631f903b24
168
Your task is code completion. """ Data models for the announcements app. """ from django.db import models from django.conf import settings from django.core.urlresolvers import reverse from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from apps.tools.utils import unique_slug from ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code...] def __str__(self): return self.name def get_absolute_url(self): """ Return the permalink to this announcement's tag. """ return reverse('announcements:tag_detail', kwargs={'slug': self.slug}) def g...
Please complete the code given below. # -*- coding: utf-8 -*- # # Kotori documentation build configuration file, created by # sphinx-quickstart on Fri Nov 6 21:36:37 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are prese...
[ "lexers['php'] = PhpLexer(startinline=True)" ]
1,773
lcc
python
null
9ff8464a2c0b3eaf3e56da2bde63d1a0b3109df20a251c6e
169
Your task is code completion. # -*- coding: utf-8 -*- # # Kotori documentation build configuration file, created by # sphinx-quickstart on Fri Nov 6 21:36:37 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in thi...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def setup(app): # https://github.com/snide/sphinx_rtd_theme/issues/117#issuecomment-41571653 # foundation # Bootstrap conflicts with Sphinx #app.add_stylesheet("assets/css/bootstrap.m...
Please complete the code given below. import settings import string import datetime import time from time import mktime import sqlite3 import pytz from datetime import timedelta # Creates or opens a file called mydb with a SQLite3 DB db = sqlite3.connect('flogger.sql3') # Get a cursor object cursor = db.cursor() curs...
[ " ORDER BY sdate, stime ''', (i,))" ]
1,259
lcc
python
null
3a72959ac7abd9d2f988ade3c891be2582b4b66a6cc74678
170
Your task is code completion. import settings import string import datetime import time from time import mktime import sqlite3 import pytz from datetime import timedelta # Creates or opens a file called mydb with a SQLite3 DB db = sqlite3.connect('flogger.sql3') # Get a cursor object cursor = db.cursor() cursor.execut...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **Context:** [Previous code...] cursor.execute('''SELECT sdate, stime, edate, etime, duration, src_callsign, max_altitude, registration FROM flight_group WHERE groupID=?''', (i,)) i = 1 while i <= max_groupID: cursor.execute('''SELECT max(max_altitu...
Please complete the code given below. #!/usr/bin/env python3 import datetime, json, os, requests, rethinkdb, shutil, signal, socket, subprocess, time HOSTS = '/node/etc/hosts' # POD_NAMESPACE must be explicitly set in deployment yaml using downward api -- # see https://github.com/kubernetes/kubernetes/blob/release-1.0...
[ " last_snapshot = timestamp_to_rethinkdb(timestamp)" ]
896
lcc
python
null
d6e15d0ebb2aa304bba431f5e996732e5585011c1cec782a
171
Your task is code completion. #!/usr/bin/env python3 import datetime, json, os, requests, rethinkdb, shutil, signal, socket, subprocess, time HOSTS = '/node/etc/hosts' # POD_NAMESPACE must be explicitly set in deployment yaml using downward api -- # see https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/use...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def db_set_last_snapshot(new_snapshots): """ new_snapshots should be a dictionary with keys the project_id's and values timestamps. This function will connect to the database if possible, and set t...
Please complete the code given below. //--- Aura Script ----------------------------------------------------------- // Deian //--- Description ----------------------------------------------------------- // Shepard - manages the sheep at Tir Chonaill Grassland //---------------------------------------------------------...
[ "\t\t\t\tMsg(\"Welcome to the real world...\");" ]
1,740
lcc
csharp
null
2c8143e18e8a59b4e401fca8446e57b31d54c7fc033009c7
172
Your task is code completion. //--- Aura Script ----------------------------------------------------------- // Deian //--- Description ----------------------------------------------------------- // Shepard - manages the sheep at Tir Chonaill Grassland //------------------------------------------------------------------...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] protected override async Task Keywords(string keyword) { switch (keyword) { // ... (many cases) case "complicity": // [Current line] //...
Please complete the code given below. #!/usr/bin/env python # # This file is part of aDBa. # # aDBa 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 l...
[ "\t\tname\t- aname/ename/gname" ]
2,041
lcc
python
null
997526c4ebbb7938e65ea14362c83fde9d979401f5f5f445
173
Your task is code completion. #!/usr/bin/env python # # This file is part of aDBa. # # aDBa 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 vers...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Based on the provided code, I will create a cheat sheet to help with the code completion task. **Context:** The code is a part of a Python class hierarchy for parsing and handling responses from a database. The class `ResponseResolver` is responsible for parsing the response data and delegating it to the corresponding...
Please complete the code given below. # (c) 2016 Matt Clay <matt@mystile.com> # # 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 #...
[ " self.start = time.time()" ]
793
lcc
python
null
1be8fdfd322b9ece97d70593dac71eecdd59539ab7ef69d7
174
Your task is code completion. # (c) 2016 Matt Clay <matt@mystile.com> # # 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] class TaskData: """ Data about an individual task. """ def __init__(self, uuid, name, path, play): self.uuid = uuid self.name = name self.path = path self.play = play se...
Please complete the code given below. package com.germainz.crappalinks; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os...
[ " Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));" ]
690
lcc
java
null
6a8feeca0aea2095a4c5fc0c58f18f3456556c6af9b7374a
175
Your task is code completion. package com.germainz.crappalinks; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.AsyncTas...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **Context:** [Previous code... ~10,000 lines omitted for brevity] public class Resolver extends Activity { private String toastType; private boolean confirmOpen; private String resolveAllWhen; private boolean useUnshortenIt; public void onCrea...
Please complete the code given below. # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import behave import re import os import tempfile import glob from lib.file import decompress_file_by_extension_to_dir from common.lib.behave_ext import check_context_table from co...
[ " if (len(primary.keys()) > 0):" ]
918
lcc
python
null
fd3a1a817ea75abb6d8f7040fcfb3ee43dbfe07e4e6d9408
176
Your task is code completion. # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import behave import re import os import tempfile import glob from lib.file import decompress_file_by_extension_to_dir from common.lib.behave_ext import check_context_table from common.lib....
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] @behave.step("primary in \"{path}\" has only packages") def primary_in_path_contains_only_packages(context, path): check_context_table(context, ["Name", "Epoch", "Version", "Release", "Architec...
Please complete the code given below. # This module should be kept compatible with Python 2.1. __revision__ = "$Id: install_lib.py 4802 2007-01-23 21:26:03Z vapier $" import sys, os, string from types import IntType from distutils.core import Command from distutils.errors import DistutilsOptionError # Extension for Py...
[ " build_ext = self.get_finalized_command('build_ext')" ]
791
lcc
python
null
b6029cffa6f017e686e2303165fc1ebc437fad4e837e5e05
177
Your task is code completion. # This module should be kept compatible with Python 2.1. __revision__ = "$Id: install_lib.py 4802 2007-01-23 21:26:03Z vapier $" import sys, os, string from types import IntType from distutils.core import Command from distutils.errors import DistutilsOptionError # Extension for Python sour...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def get_inputs (self): """Get the list of files that are input to this command, ie. the files that get installed as they are named in the build tree. The files in this list correspo...
Please complete the code given below. using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Text; using NHibernate.AdoNet; using NHibernate.Cache; using NHibernate.Cache.Entry; using NHibernate.Dialect.Lock; using NHibernate.Engine; using NH...
[ "\t\t\tfor (int j = 0; j < lazyPropertyNames.Length; j++)" ]
3,626
lcc
csharp
null
afaa47c3e50b88c722f2e7e2f9bb3b1204f8b80e185f355f
178
Your task is code completion. using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Text; using NHibernate.AdoNet; using NHibernate.Cache; using NHibernate.Cache.Entry; using NHibernate.Dialect.Lock; using NHibernate.Engine; using NHibernate....
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class AbstractEntityPersister : IOuterJoinLoadable, IQueryable, IClassMetadata, IUniqueKeyLoadable, ISqlLoadable, ILazyPropertyInitializer, IPostInsertIdentityPersister, ILockable { // ... ~10...
Please complete the code given below. # -*- coding: utf-8 -*- # # @file sge_jobs.py # # @remark Copyright 2014 Philippe Elie # @remark Read the file COPYING # # @author Philippe Elie import sys import os sys.path.append(os.path.expanduser('~/phe/common')) import utils import json import hashlib import time import MySQ...
[ " '-l', 'h_vmem=%dM' % request['job_max_vmem']," ]
1,274
lcc
python
null
9ac83f0cb7aff9cd52581d7e6d5bce356b4f5531fcc7b4f2
179
Your task is code completion. # -*- coding: utf-8 -*- # # @file sge_jobs.py # # @remark Copyright 2014 Philippe Elie # @remark Read the file COPYING # # @author Philippe Elie import sys import os sys.path.append(os.path.expanduser('~/phe/common')) import utils import json import hashlib import time import MySQLdb impor...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def sge_cmdline_arg(request): job_name = request['job_jobname'] log_name = request['job_log_dir'] + job_name + '_' + str(request['job_id']) sge_cmd_arg = [ jsub, '...
Please complete the code given below. namespace App.Mvc.Controllers { using Contracts; using Mvc; using Contracts.Services; using Models; using Filters; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using System.Web; [Filters.ExceptionHandler] publi...
[ " return View(\"Form\", new DelegateViewModel());" ]
1,017
lcc
csharp
null
abeb767e6c37cee48470e6764ac480ad487fef3e3fc93bba
180
Your task is code completion. namespace App.Mvc.Controllers { using Contracts; using Mvc; using Contracts.Services; using Models; using Filters; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using System.Web; [Filters.ExceptionHandler] public class D...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: **Controller Class: DelegateController** * **Namespace:** `App.Mvc.Controllers` * **Inheritance:** `Controller` * **Attributes:** * `[Filters.ExceptionHandler]` * **Properties:** * `ILogProvider log` * `IDelegateService service` * `const string LogName =...
Please complete the code given below. #region License /* Copyright 2014 - 2015 Nikita Bernthaler Report.cs is part of SFXUtility. SFXUtility 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 o...
[ " var circle = (Circle) obj;" ]
668
lcc
csharp
null
9db6b4d2545835b0eb906eb67dce37abd8a18390ff3dd44b
181
Your task is code completion. #region License /* Copyright 2014 - 2015 Nikita Bernthaler Report.cs is part of SFXUtility. SFXUtility 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 Lic...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat Sheet for Code Completion Task: **Context:** The code is a report generator for a League of Legends utility tool, SFXUtility. The `GenerateReport` class is responsible for generating a report with various information about the game, features, heroes, and assemblies. **Relevant Variables and Methods:** 1. `Buil...
Please complete the code given below. # -*- coding: utf-8 -*- import re from module.common.json_layer import json_loads from module.network.RequestFactory import getURL from module.plugins.Hoster import Hoster from module.plugins.Plugin import chunks from module.plugins.internal.CaptchaService import ReCaptcha from mo...
[ " elif res['error_code'] in [\"606\", \"607\", \"608\"]:" ]
545
lcc
python
null
58414c770f11b4a32f9d1c67426fd6d8e2028e408a27f131
182
Your task is code completion. # -*- coding: utf-8 -*- import re from module.common.json_layer import json_loads from module.network.RequestFactory import getURL from module.plugins.Hoster import Hoster from module.plugins.Plugin import chunks from module.plugins.internal.CaptchaService import ReCaptcha from module.plug...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] def handlePremium(self): premium_url = None if self.__name__ == "FileserveCom": #try api download res = self.load("http://app.fileserve.com/api/download/premium/", ...
Please complete the code given below. #region Copyright & License Information /* * Copyright 2007-2019 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 Found...
[ "\t\t\tif (path.Count > 0)" ]
747
lcc
csharp
null
f964e1772f2adb4100531633f6287a54c98f80ddd622f9d8
183
Your task is code completion. #region Copyright & License Information /* * Copyright 2007-2019 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, ei...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class FindAndDeliverResources : Activity { ... CPos? ClosestHarvestablePos(Actor self) { ... // Find any harvestable resources: List<CPos> p...
Please complete the code given below. """ Builds out filesystem trees/data based on the object tree. This is the code behind 'cobbler sync'. Copyright 2006-2009, Red Hat, Inc and Others Michael DeHaan <michael.dehaan AT gmail> This program is free software; you can redistribute it and/or modify it under the terms of t...
[ " self.logger.error(\"%s failed\" % service_name)" ]
750
lcc
python
null
3cc6d50befc6ded615d39d3b18b791d8f06b80ca3b2642b3
184
Your task is code completion. """ Builds out filesystem trees/data based on the object tree. This is the code behind 'cobbler sync'. Copyright 2006-2009, Red Hat, Inc and Others Michael DeHaan <michael.dehaan AT gmail> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: **Context:** [Previous code... ~10,000 lines omitted for brevity] def sync_dhcp(self): restart_dhcp = str(self.settings.restart_dhcp).lower() which_dhcp_module = module_loader.get_module_from_file("dhcp","module",just_name=True).strip() if sel...
Please complete the code given below. package org.yamcs.events; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.yamcs.yarch.protobuf.Db.Event; import org.yamcs.protobuf.Yamcs.Event.EventSeverity; /...
[ " long t = getMissionTime();" ]
575
lcc
java
null
7630f3d4fd6c44654c13b705304c20adea2cf0798b4dc72c
185
Your task is code completion. package org.yamcs.events; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.yamcs.yarch.protobuf.Db.Event; import org.yamcs.protobuf.Yamcs.Event.EventSeverity; /** * Def...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code: Context: [Previous code... ~10,000 lines omitted for brevity] public abstract class AbstractEventProducer implements EventProducer { ... private Event originalEvent; // Original evt of a series of repeated events private Event lastRepeat; // Last evt of a series of repea...
Please complete the code given below. #region Using using System; using System.IO; #endregion // This is a port of Dmitry Shkarin's PPMd Variant I Revision 1. // Ported by Michael Bone (mjbone03@yahoo.com.au). namespace SharpCompress.Compressors.PPMd.I1 { /// <summary> /// The model. /// </summary> int...
[ " if (state != PpmState.ZERO)" ]
2,203
lcc
csharp
null
6cc90781be873e3f526e24b432fa2997332f4aef86d6a696
186
Your task is code completion. #region Using using System; using System.IO; #endregion // This is a port of Dmitry Shkarin's PPMd Variant I Revision 1. // Ported by Michael Bone (mjbone03@yahoo.com.au). namespace SharpCompress.Compressors.PPMd.I1 { /// <summary> /// The model. /// </summary> internal par...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given context: Context: [Previous code... ~10,000 lines omitted for brevity] private void RestoreModel(PpmContext currentContext, PpmContext minimumContext, PpmContext foundStateSuccessor) { // ... (rest of the method implementation) if (foundStateSuccessor == PpmContext.ZER...
Please complete the code given below. #region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and...
[ " return new DicomAttributeSL(tag, bb);" ]
1,113
lcc
csharp
null
b6d055c89ca6a6c261a27807c672673ece45777ad9806d2e
187
Your task is code completion. #region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and/or modif...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public static readonly DicomVr OWvr = new DicomVr("OW", false, false, false, 2, false, '\0', 2, delegate(DicomTag tag, ByteBuffer bb) { if (bb == null) return new DicomAttribute...
Please complete the code given below. /* * This file is part of ChronoJump * * ChronoJump 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) ...
[ "\t\t\tint sessionID = Convert.ToInt32(tFull[3]);" ]
2,057
lcc
csharp
null
5d7f05b8f84258ef580014f750f774d8eb4af59aa074f04a
188
Your task is code completion. /* * This file is part of ChronoJump * * ChronoJump 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class EditEventWindow { // ... (many lines of code) protected virtual void updateEvent(int eventID, int personID, string description) { } } Cheatsheet (for next line): - We a...
Please complete the code given below. from mutagen._util import DictMixin, cdata, insert_bytes, delete_bytes from mutagen._util import decode_terminated, split_escape, dict_match, enum from mutagen._util import BitReader, BitReaderError, set_win32_unicode_argv from mutagen._compat import text_type, itervalues, iterkey...
[ " o = self.file(b'abcdefghij')" ]
694
lcc
python
null
8ed6880ab3b5c6188940a9999bc369708c565891b8d871f2
189
Your task is code completion. from mutagen._util import DictMixin, cdata, insert_bytes, delete_bytes from mutagen._util import decode_terminated, split_escape, dict_match, enum from mutagen._util import BitReader, BitReaderError, set_win32_unicode_argv from mutagen._compat import text_type, itervalues, iterkeys, iterit...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the task: Context: [Previous code... ~10,000 lines omitted for brevity] def test_smaller_than_file_at_end(self): o = self.file(b'abcdefghij') insert_bytes(o, 4, 8) self.assertEquals(b'abcdefghij\x00\x00ij', self.read(o)) Relevant lines and variables: - `insert_bytes(o, 4, 8...
Please complete the code given below. <?cs include:"doctype.cs" ?> <?cs include:"macros.cs" ?> <html devsite> <?cs if:sdk.redirect ?> <head> <title>Redirecting...</title> <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs ...
[ " <td><?cs var:sdk.win64_bundle_bytes ?> bytes</td>" ]
478
lcc
csharp
null
7a221b8009c1d73293e9a45c3c9dc18eb109dc4e8c6cef92
190
Your task is code completion. <?cs include:"doctype.cs" ?> <?cs include:"macros.cs" ?> <html devsite> <?cs if:sdk.redirect ?> <head> <title>Redirecting...</title> <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs else ?>in...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: **Context:** [Previous code... ~10,000 lines omitted for brevity] <?cs if:android.whichdoc == "online" ?> <?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?> <?cs call:tag_list(root.descr) ?> <h4><a href='' class="expandable" onclick="toggleExpandable(this,'....
Please complete the code given below. #!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import glob import json from math import sqr...
[ " ymin = csi_95[0]" ]
565
lcc
python
null
728682005fc144f5d03a92ebb7f121b7ceb08648eff87ba8
191
Your task is code completion. #!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import glob import json from math import sqrt import ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat Sheet for Code Completion Task: **Context:** The code is a Python script that processes and analyzes performance test results. It involves loading result sets from files, crunching the data, and generating statistics. The script uses various libraries such as `argparse`, `glob`, `json`, `matplotlib`, `numpy`, an...
Please complete the code given below. # -*- test-case-name: twisted.python.test.test_util # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.python.util}. """ from __future__ import division, absolute_import import errno import os.path import shutil import sys import warnin...
[ " self._testUIDGIDSwitch(1, 0, 2, 1, [0, 2, 0, 1], [1, 0])" ]
2,189
lcc
python
null
7e20f7645ae46306c1c075059d48f64e2003534e7b1502c4
192
Your task is code completion. # -*- test-case-name: twisted.python.test.test_util # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.python.util}. """ from __future__ import division, absolute_import import errno import os.path import shutil import sys import warnings try: ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] class RunAsEffectiveUserTests(unittest.TestCase): """ Test for the L{util.runAsEffectiveUser} function. """ if getattr(os, "geteuid", None) is None: skip = "geteuid/seteuid not availabl...
Please complete the code given below. package com.entrepidea.swing.components.checkbox; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; impo...
[ "\t\t\t\t\tdrawPressed3DBorder(g, x, y, controlSize, controlSize);" ]
518
lcc
java
null
971fbab8c3ab0ce2be833fead765ea9d6620fe3529e6e4f2
193
Your task is code completion. package com.entrepidea.swing.components.checkbox; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.i...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: **Context:** [Previous code... ~10,000 lines omitted for brevity] ```java public class TristateCheckbox extends JCheckBox { // ... private class TristateIcon implements Icon, UIResource, Serializable { // ... public void paintIcon(Component c, Gra...
Please complete the code given below. #!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software c...
[ " winner, _inferenceResult, _dist, _categoryDist = knn.infer(v[2])" ]
685
lcc
python
null
397181750c46cc7bb5cfa79f1f6812770ddf55fc6dac89cd
194
Your task is code completion. #!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def runTestKNNClassifier(self, short = 0): ... failures += simulateKMoreThanOne() LOGGER.info("\nTesting KNN Classifier on dense patterns") numPatterns, numClasses = getNumTestPatte...
Please complete the code given below. /* * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License versi...
[ " final int index = (offset - headerSize()) / elementSize();" ]
681
lcc
java
null
0eae7d0813189dfb61921a6690103cb83cdea076b845d152
195
Your task is code completion. /* * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for OhmArrayLayout class: **Context:** [Previous code... ~10,000 lines omitted for brevity] public class OhmArrayLayout extends OhmGeneralLayout implements ArrayLayout { ... @HOSTED_ONLY public void visitObjectCell(Object array, ObjectCellVisitor visitor) { visitHead...
Please complete the code given below. // pNAnt - A parallel .NET build tool // Copyright (C) 2016 Nathan Daniels // Original NAnt Copyright (C) 2001-2004 Gerry Shaw // // 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 ...
[ " if (!String.IsNullOrEmpty(relativePath)) {" ]
1,081
lcc
csharp
null
27f6b503096cf445095535f5a908b7e00038cf4f23a5d499
196
Your task is code completion. // pNAnt - A parallel .NET build tool // Copyright (C) 2016 Nathan Daniels // Original NAnt Copyright (C) 2001-2004 Gerry Shaw // // 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...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public abstract class AssemblyReferenceBase : FileReferenceBase { // ... protected abstract string ResolveAssemblyReference(); // ... protected string ResolveFromFolderList(...
Please complete the code given below. """ Utilities """ # Consistency from __future__ import print_function import copy import getpass import re import readline import sys py_version = sys.version_info.major if py_version == 2: import urllib else: import urllib.parse as urllib try: import termcolor if ...
[ " return string.format(*args, **kwargs)" ]
884
lcc
python
null
6b8b92b2b253189141dc998a845e117ddb34a9ced10cda39
197
Your task is code completion. """ Utilities """ # Consistency from __future__ import print_function import copy import getpass import re import readline import sys py_version = sys.version_info.major if py_version == 2: import urllib else: import urllib.parse as urllib try: import termcolor if sys.platf...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat Sheet for Code Completion Task: **Context:** The code snippet is from a utility module that provides various helper functions for logging, input/output, and dictionary manipulation. The code is written in Python. **Relevant Variables and Functions:** 1. `log()`: A function that prints a message to the console ...
Please complete the code given below. package org.netlib.lapack; import org.netlib.blas.Dcopy; import org.netlib.err.Xerbla; import org.netlib.util.doubleW; import org.netlib.util.intW; public final class Dlasda { public static void dlasda(int paramInt1, int paramInt2, int paramInt3, int paramInt4, double[] paramArr...
[ " if ((i != i7 ? 0 : 1) != 0) {" ]
1,437
lcc
java
null
2249fb5b605f86689474ffb501216d8475418e32ce63adab
198
Your task is code completion. package org.netlib.lapack; import org.netlib.blas.Dcopy; import org.netlib.err.Xerbla; import org.netlib.util.doubleW; import org.netlib.util.intW; public final class Dlasda { public static void dlasda(int paramInt1, int paramInt2, int paramInt3, int paramInt4, double[] paramArrayOfDoubl...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public static void dlasda(int paramInt1, int paramInt2, int paramInt3, int paramInt4, double[] paramArrayOfDouble1, int paramInt5, double[] paramArrayOfDouble2, int paramInt6, double[] paramArrayOfDouble3, int p...
Please complete the code given below. using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Mixamo { public interface TransitionHandler { string[] KeyControls(); bool CanTransitionTo( string guard , string source , string destination ); } /// <summary> /// A class for hol...
[ "\t\t\t\tstr += s.ToString() + \"\\n\";" ]
1,300
lcc
csharp
null
a1c2bff96d6d3cb3e23f9ea2a0029d635c3ebc32eb87a05c
199
Your task is code completion. using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Mixamo { public interface TransitionHandler { string[] KeyControls(); bool CanTransitionTo( string guard , string source , string destination ); } /// <summary> /// A class for holding all ...
Before solving the code completion task, imagine you are a student memorizing this material according to the task that you will have to perform. Ensure you preserve all critical details to solve the task and create a cheat sheet covering the entire context. Once you have done that, I will prompt you to solve the code c...
Next line of code:
lcc
84
Cheat sheet for the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class Layer { public State GetCurrentDestinationState() { if( _current_transition != null ) { return _current_transition.Destination; } else { ...