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. using System; using System.Collections; using System.Collections.Generic; using Server.Commands; using Server.Engines.PartySystem; using Server.Factions; using Server.Gumps; using Server.Items; using Server.Mobiles; using Server.Network; using Server.Spells; using Server.Spells.Bu...
[ "\t\t\t\tParticipant p = (Participant)m_Participants[i];" ]
5,243
lcc
csharp
null
28ce5cf5e0beeb47248c6cba20ae17fa71d60d402770d464
0
Your task is code completion. using System; using System.Collections; using System.Collections.Generic; using Server.Commands; using Server.Engines.PartySystem; using Server.Factions; using Server.Gumps; using Server.Items; using Server.Mobiles; using Server.Network; using Server.Spells; using Server.Spells.Bushido; us...
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 DuelContext { // ... (many lines of code) public void Award( Mobile us, Mobile them, bool won ) { // ... (many lines of code) LadderEntry ourEntry = ladder.F...
Please complete the code given below. import networkx as nx import pickle from Queue import PriorityQueue import copy import random import string import sys class MultiDiGraph_EdgeKey(nx.MultiDiGraph): """ MultiDiGraph which assigns unique keys to every edge. Adds a dictionary edge_index which maps edge ...
[ "\t\t\tZ_.add_edge(e_u, e_v, **data.copy())" ]
1,069
lcc
python
null
ca807f49d7c6f84dcae3df694bde685aa7f75a02e9d4f574
1
Your task is code completion. import networkx as nx import pickle from Queue import PriorityQueue import copy import random import string import sys class MultiDiGraph_EdgeKey(nx.MultiDiGraph): """ MultiDiGraph which assigns unique keys to every edge. Adds a dictionary edge_index which maps edge keys to (...
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 ranking(self, k, graph=None, Y=nx.DiGraph(), Z=nx.DiGraph(), mode='branching', root='R'): if graph is not None: self._init(graph, Y, Z) if root == 'R' and mode == 'branching': ...
Please complete the code given below. #! /usr/bin/env python # Last Change: Sun Dec 14 07:00 PM 2008 J """Test for the sndfile class.""" from os.path import join, dirname import os import sys from numpy.testing import TestCase, assert_array_equal, dec import numpy as np from audiolab import Sndfile, Format, available_...
[ " rfd, fd, cfilename = open_tmp_file('rwseektest.wav')" ]
844
lcc
python
null
04429037d9380b6e9c3f7b2070992a5af10745895025113c
2
Your task is code completion. #! /usr/bin/env python # Last Change: Sun Dec 14 07:00 PM 2008 J """Test for the sndfile class.""" from os.path import join, dirname import os import sys from numpy.testing import TestCase, assert_array_equal, dec import numpy as np from audiolab import Sndfile, Format, available_encodings...
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_float_frames(self): """ Check nframes can be a float""" rfd, fd, cfilename = open_tmp_file('pysndfiletest.wav') try: # Open the file for writing f...
Please complete the code given below. #!/usr/bin/env python from apps.webdriver_testing.pages.site_pages import UnisubsPage from urlparse import urlsplit class VideoPage(UnisubsPage): """ Video Page contains the common elements in the video page. """ _URL = "videos/%s/info/" # %s is the unique onsite...
[ " if e.text == language:" ]
462
lcc
python
null
9bc1f81e1a4c4b44da11ffc093a0c9fecbe5f99e4eff3aa5
3
Your task is code completion. #!/usr/bin/env python from apps.webdriver_testing.pages.site_pages import UnisubsPage from urlparse import urlsplit class VideoPage(UnisubsPage): """ Video Page contains the common elements in the video page. """ _URL = "videos/%s/info/" # %s is the unique onsite video id...
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 VideoPage(UnisubsPage): # ... (many lines of code) def __init__(self): # ... (many lines of code) def upload_subtitles(self, sub_lang, ...
Please complete the code given below. /* * $Header: it.geosolutions.geobatch.wmc.WMCStream,v. 0.1 03/dic/2009 01:55:21 created by Fabiani $ * $Revision: 0.1 $ * $Date: 03/dic/2009 01:55:21 $ * * ==================================================================== * * Copyright (C) 2007-2008 GeoSolutions S.A.S. ...
[ "\t\t\t\t\tOLStyleValue styleValue = (OLStyleValue) value;" ]
570
lcc
java
null
a5da7e173afd5ba71e0185228a1df77238c2949ba3ea2935
4
Your task is code completion. /* * $Header: it.geosolutions.geobatch.wmc.WMCStream,v. 0.1 03/dic/2009 01:55:21 created by Fabiani $ * $Revision: 0.1 $ * $Date: 03/dic/2009 01:55:21 $ * * ==================================================================== * * Copyright (C) 2007-2008 GeoSolutions S.A.S. * * 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 the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class WMCStream { private XStream xstream = new XStream(new DomDriver("UTF-8")); // ... xstream.registerConverter(new Converter() { public boolean canConvert(Class claz...
Please complete the code given below. #!/usr/bin/env python import sys #begin dependent modules #sys.path.insert(0, "../") import yobot_interfaces import yobotproto from client_support import YCAccount, SimpleNotice from gui import gui_util from gui.gui_util import signal_connect, ConnectionWidget #end import triviadb...
[ " longest = max(self.answers)" ]
1,229
lcc
python
null
3bd5a501fc0327fd7bcda8389c7d11b3a821c9b5ce5a93cc
5
Your task is code completion. #!/usr/bin/env python import sys #begin dependent modules #sys.path.insert(0, "../") import yobot_interfaces import yobotproto from client_support import YCAccount, SimpleNotice from gui import gui_util from gui.gui_util import signal_connect, ConnectionWidget #end import triviadb import P...
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 start_requested(self): log_err("implement me") def stop_requested(self): log_err("implement me") def pause_requested(self): log_err("implement me") def next_requeste...
Please complete the code given below. /************************************** *Script Name: Staff Runebook * *Author: Joeku * *For use with RunUO 2.0 RC2 * *Client Tested with: 6.0.9.2 * *Version: 1.10 * *Initial Release: 11/25/07 * *...
[ " mob.Target = new SR_NewRuneTarget(RuneAcc);" ]
907
lcc
csharp
null
227b063979c62ee1de7436be168450b5a7712a7a637fa6d4
6
Your task is code completion. /************************************** *Script Name: Staff Runebook * *Author: Joeku * *For use with RunUO 2.0 RC2 * *Client Tested with: 6.0.9.2 * *Version: 1.10 * *Initial Release: 11/25/07 * *Revision ...
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 SR_Gump : Gump { public override void OnResponse(NetState sender, RelayInfo info) { int button = info.ButtonID; Mobile mob = sender.Mobile; ...
Please complete the code given below. /* * Copyright (c) 1996, 2012, 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...
[ " for (int i = 0; i < chain.length; i++)" ]
1,820
lcc
java
null
f652398c3e8be338b4a7873ba6fecc5a686204d99a1a8d10
7
Your task is code completion. /* * Copyright (c) 1996, 2012, 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 abstract class HandshakeMessage { // ... abstract int messageType(); abstract int messageLength(); abstract void send(HandshakeOutStream s) throws IOException; //...
Please complete the code given below. /* * jPOS Project [http://jpos.org] * Copyright (C) 2000-2015 Alejandro P. Revilla * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either ve...
[ " sp = new JESpace(name, path);" ]
1,096
lcc
java
null
01b11dc980d93775ce16fd5e630cf5619f66f281ee12947b
8
Your task is code completion. /* * jPOS Project [http://jpos.org] * Copyright (C) 2000-2015 Alejandro P. Revilla * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 o...
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 synchronized static JESpace getSpace (String name, String path) { JESpace sp = (JESpace) spaceRegistrar.get (name); if (sp == null) { sp = new JESpace(name, path); spaceR...
Please complete the code given below. /* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2021 Evan Debenham * * 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 * th...
[ "\t\t\t\t\tpos = btnEnergizeAll.bottom();" ]
567
lcc
java
null
64d5f26d486a85e85284229e8d254f996cfafd844cd321c5
9
Your task is code completion. /* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2021 Evan Debenham * * 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 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 Alchemize extends Spell { // ... public static class WndAlchemizeItem extends WndInfoItem { // ... private WndBag owner; public WndAlchemizeItem(Item item, WndBag owner) { ...
Please complete the code given below. #!/usr/bin/python # -*- coding: utf-8 -*- # 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 3, or (at your option) any later # version....
[ " length = int(environ['CONTENT_LENGTH'])" ]
1,670
lcc
python
null
8ae06de3dd26783213ae72552d610c4f1518647b7898d383
10
Your task is code completion. #!/usr/bin/python # -*- coding: utf-8 -*- # 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 3, or (at your option) any later # version. # # This...
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 do_post(self, environ, start_response): self.send_response(200) self.send_header("Content-type", "text/xml") self.end_headers() request = self.rfile.read(int(self.headers.geth...
Please complete the code given below. # -*- coding: utf-8 -*- # Qt widget to implement statuses column in Turpial #from PyQt4 import QtCore from PyQt4.QtCore import Qt from PyQt4.QtCore import QSize from PyQt4.QtCore import QRect from PyQt4.QtCore import QLine from PyQt4.QtGui import QFont from PyQt4.QtGui import QCol...
[ " mark = \"setRepeated('%s');\" % status_id" ]
686
lcc
python
null
14de6afab15eabeb4fec480f9d6b4db78e93e0493851cc35
11
Your task is code completion. # -*- coding: utf-8 -*- # Qt widget to implement statuses column in Turpial #from PyQt4 import QtCore from PyQt4.QtCore import Qt from PyQt4.QtCore import QSize from PyQt4.QtCore import QRect from PyQt4.QtCore import QLine from PyQt4.QtGui import QFont from PyQt4.QtGui import QColor from P...
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 mark_status_as_repeated(self, status_id): [Relevant lines: mark_status_as_favorite, unmark_status_as_favorite, update_statuses, update_conversation, error_in_conversation, mark_status_as_favorite, unmark_status_as_fav...
Please complete the code given below. import pprint import select import traceback from multiprocessing import Pipe, Process from beget_msgpack import Controller from base.exc import Error from lib.FileManager import FM from lib.FileManager.OperationStatus import OperationStatus from lib.FileManager.workers.sftp.analy...
[ " return {\"error\": False}" ]
958
lcc
python
null
1712603d3736689b03586a52e0f51eedd1a2bccd03217fde
12
Your task is code completion. import pprint import select import traceback from multiprocessing import Pipe, Process from beget_msgpack import Controller from base.exc import Error from lib.FileManager import FM from lib.FileManager.OperationStatus import OperationStatus from lib.FileManager.workers.sftp.analyzeSize im...
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 action_create_archive(self, login, password, status_id, params, session): try: self.logger.info("FM starting subprocess worker create_archive %s %s", pprint.pformat(status_id), ...
Please complete the code given below. // // ZoneIdentityPermissionTest.cs - NUnit Test Cases for ZoneIdentityPermission // // Author: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // ...
[ "\t\t\tIPermission result = a.Union (b);" ]
778
lcc
csharp
null
e212994f82962f98d4e1be7a5678cfd25eacb4f645df2198
13
Your task is code completion. // // ZoneIdentityPermissionTest.cs - NUnit Test Cases for ZoneIdentityPermission // // Author: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of...
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 ZoneIdentityPermissionTest.cs: Context: [Previous code... ~10,000 lines omitted for brevity] public class ZoneIdentityPermissionTest { private bool Same(ZoneIdentityPermission zip1, ZoneIdentityPermission zip2) { // ... } private ZoneIdentityPermission Ba...
Please complete the code given below. import logging import sys import uuid from array import array from contextlib import closing from StringIO import StringIO from java.io import BufferedInputStream, BufferedReader, FileReader, InputStreamReader, ByteArrayInputStream from java.security import KeyStore, Security from...
[ " certs = []" ]
713
lcc
python
null
e6dca363f4644795057dce35d57cdbc53e1e84bea1699bbf
14
Your task is code completion. import logging import sys import uuid from array import array from contextlib import closing from StringIO import StringIO from java.io import BufferedInputStream, BufferedReader, FileReader, InputStreamReader, ByteArrayInputStream from java.security import KeyStore, Security from java.sec...
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 CompositeX509TrustManager(X509TrustManager): def __init__(self, trust_managers): self.trust_managers = trust_managers def checkClientTrusted(self, chain, auth_type): for trust_manager in self...
Please complete the code given below. /* * Jamm * Copyright (C) 2002 Dave Dribin and Keith Garner * * 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 ...
[ " User user = getUser(request);" ]
847
lcc
java
null
45be6133b10843a59b2ff2272116e322f7dd795025749020
15
Your task is code completion. /* * Jamm * Copyright (C) 2002 Dave Dribin and Keith Garner * * 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 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 given context: Context: [Previous code... ~10,000 lines omitted for brevity] public class DomainAdminAction extends JammAction { /** * Prepares the account information and adds it to the web page. * * @param request The request we're servicing * @para...
Please complete the code given below. #!/usr/bin/python3 # @begin:license # # Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.de> # # 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; eithe...
[ " self.__tmp_dir, 'datastream.%s.pipe' % uuid.uuid4().hex)" ]
1,276
lcc
python
null
4b93f91719b36d7aee8a2f7f39b3991d464913e3bc3e77b4
16
Your task is code completion. #!/usr/bin/python3 # @begin:license # # Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.de> # # 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...
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] async def __setup_datastream_pipe(self) -> None: self.__datastream_address = os.path.join( self.__tmp_dir, str(uuid.uuid4())) self.__datastream_fd = os.open( self.__datastream_addre...
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\t\tif(! option1) {" ]
957
lcc
csharp
null
54df7435e6cdeb9cf80f52a45f4c173229b57b7dfcc77ad7
17
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 the code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] protected void on_button_accept_clicked (object o, EventArgs args) { Gtk.TreeIter iter; int jumpID; bool option1; if (store.GetIterFirst(out iter)) { //do...
Please complete the code given below. /* * $Id: Resources.java 476419 2006-11-18 02:28:07Z niallp $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership...
[ " if ((args == null) || (args.length == 0)) {" ]
1,570
lcc
java
null
e42bb143aca03ffdde352e012ca3991013aa4f1018e60c8f
18
Your task is code completion. /* * $Id: Resources.java 476419 2006-11-18 02:28:07Z niallp $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The AS...
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 Resources { // ... /** * Gets the message arguments based on the current <code>ValidatorAction</code> * and <code>Field</code>. * * @param a...
Please complete the code given below. package com.censoredsoftware.capitalism.data; import com.censoredsoftware.capitalism.Capitalism; import com.censoredsoftware.capitalism.data.util.ServerDatas; import com.censoredsoftware.capitalism.data.util.TimedDatas; import com.censoredsoftware.capitalism.entity.Firm; import co...
[ "\t\t\t\tfirms = loadFromFile();" ]
515
lcc
java
null
04233bb10cad37ee372ddcc1ca95b3e2a853d217fa90929e
19
Your task is code completion. package com.censoredsoftware.capitalism.data; import com.censoredsoftware.capitalism.Capitalism; import com.censoredsoftware.capitalism.data.util.ServerDatas; import com.censoredsoftware.capitalism.data.util.TimedDatas; import com.censoredsoftware.capitalism.entity.Firm; import com.censore...
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 enum File { PLAYER(new ConfigFile<String, Person>() { @Override public Person create(String string, ConfigurationSection conf) { return new Person(string, conf); } @O...
Please complete the code given below. package gui; import java.io.IOException; import java.io.InputStream; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.preference.BooleanFieldEditor; import org.eclipse.jface.preference.FieldEditor; import org.eclipse.jface.preference.FieldEditorPreferencePa...
[ "\t\tPreferencePage generalPage = new FieldEditorPreferencePage() {" ]
925
lcc
java
null
36799d0d8e06fa5c217eccd67db779ab9866845eb0713e74
20
Your task is code completion. package gui; import java.io.IOException; import java.io.InputStream; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.preference.BooleanFieldEditor; import org.eclipse.jface.preference.FieldEditor; import org.eclipse.jface.preference.FieldEditorPreferencePage; 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 completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class Config extends PreferenceStore { // ... (many lines of code) public void showConfigurationDialog(Shell parent) throws PmTransException { // Create the preference manager ...
Please complete the code given below. using System; using System.Collections.Generic; using Server.Network; using Server.Items; using Server.Targeting; using Server.Engines.PartySystem; namespace Server.Spells.Fourth { public class ArchProtectionSpell : MagerySpell { private static SpellInfo m_Info = new SpellInfo...
[ " if (m_Owner.SpellTarget == null)" ]
538
lcc
csharp
null
82560c22f3648e5086523b10f22179edb1aebdc379fdfaa5
21
Your task is code completion. using System; using System.Collections.Generic; using Server.Network; using Server.Items; using Server.Targeting; using Server.Engines.PartySystem; namespace Server.Spells.Fourth { public class ArchProtectionSpell : MagerySpell { private static SpellInfo m_Info = new SpellInfo( "Ar...
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 ArchProtectionSpell : MagerySpell { // ... public void Target(IPoint3D p) { // ... if (Core.AOS) { // ... fo...
Please complete the code given below. # orm/session.py # Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Provides the Session class and related utiliti...
[ " for state, dict_ in states.items():" ]
4,268
lcc
python
null
52b05f3e84a4fe67c9a1b15719fbecb75dda4932f22567e9
22
Your task is code completion. # orm/session.py # Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Provides the Session class and related utilities.""" im...
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
Context: [Previous code... ~10,000 lines omitted for brevity] def get_bind(self, mapper=None, clause=None): """Return a "bind" to which this :class:`.Session` is bound. ... :param mapper: Optional :func:`.mapper` mapped class or instance of :class:`.Mapper`. The bind ca...
Please complete the code given below. /****************************************************************************** * Copyright (c) 2009 - 2015 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accom...
[ "\t\tfor(IField field : fields) { " ]
1,985
lcc
java
null
1e32291c11bc48e0917860b1de8446dde3fedecd450ef073
23
Your task is code completion. /****************************************************************************** * Copyright (c) 2009 - 2015 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies th...
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 Strings { // ... (many methods and variables) public static Map<InstanceKey, String> instanceNames(Set<InstanceKey> instances) { // ... (code) } public static Map<...
Please complete the code given below. #!/usr/bin/env python # # Copyright 2009 Facebook # # 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 # #...
[ " like ``r'/foo/?'`` in conjunction with using the decorator." ]
6,502
lcc
python
null
d5dde130982bcbe6f095c65d1d5a928669bc3a458df26cc6
24
Your task is code completion. #!/usr/bin/env python # # Copyright 2009 Facebook # # 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 r...
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
Context: [Previous code... ~10,000 lines omitted for brevity] def _handle_request_exception(self, e): if isinstance(e, Finish): # Not an error; just finish the request without logging. if not self._finished: self.finish() return try: se...
Please complete the code given below. // // System.Web.UI.WebControls.MultiView.cs // // Authors: // Lluis Sanchez Gual (lluis@novell.com) // // (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentati...
[ "\t\t\tif ((Controls.Count == 0) && (initialIndex != -1)) " ]
777
lcc
csharp
null
5dbe65a9966abf6a6fdc04cf78e20977f8d24df06849e8e7
25
Your task is code completion. // // System.Web.UI.WebControls.MultiView.cs // // Authors: // Lluis Sanchez Gual (lluis@novell.com) // // (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files ...
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 snippet: Context: [Previous code... ~10,000 lines omitted for brevity] public class MultiView: Control { // ... protected override void OnBubbleEvent (object source, EventArgs e) { CommandEventArgs ca = e as CommandEventArgs; if (ca...
Please complete the code given below. #!/usr/bin/env python # -*- coding: utf-8 -*- ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## version 2 as published by the Free Software Foundation. ## ## This program is distributed in the hope th...
[ " args = parser.parse_args()" ]
1,225
lcc
python
null
43954d45633ac63acc4badb3892fdb276e080592cc147b1e
26
Your task is code completion. #!/usr/bin/env python # -*- coding: utf-8 -*- ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## version 2 as published by the Free Software Foundation. ## ## This program is distributed in the hope that it wil...
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 Wigle Downloader code completion task: **Context:** [Previous code... ~10,000 lines omitted for brevity] def download(self): ... try: for interval in self.INTERVALS: assert len(interval) == 4, 'Something wrong generating self.INTERVALS.' l...
Please complete the code given below. using System; using Server; using Server.Targeting; using Server.Mobiles; using Server.Network; using Server.Items; using Server.Gumps; using System.Collections; using System.Collections.Generic; using Server.ContextMenus; using Server.SkillHandlers; namespace Server.Gumps { p...
[ " if (mod >= 156 && mod <= 160)" ]
1,845
lcc
csharp
null
9d639220f2ae9cbb3b86c56287371346450159efa5afc251
27
Your task is code completion. using System; using Server; using Server.Targeting; using Server.Mobiles; using Server.Network; using Server.Items; using Server.Gumps; using System.Collections; using System.Collections.Generic; using Server.ContextMenus; using Server.SkillHandlers; namespace Server.Gumps { public 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 given code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class ImbuingGumpC : Gump { // ... (many lines of code) public override void OnResponse(NetState state, RelayInfo info) { // ... (many lines of code) switch (buttonNum) ...
Please complete the code given below. # 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/. """ Download buttons. Let's get some terminology straight. Here is a list of terms...
[ " for plat_os in ['Windows', 'Linux', 'Linux 64', 'OS X']:" ]
816
lcc
python
null
03873ecbb96288a84c3d9ea1f5a2a718188d2c8a0c5920ab
28
Your task is code completion. # 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/. """ Download buttons. Let's get some terminology straight. Here is a list of terms and exam...
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] @jingo.register.function @jinja2.contextfunction def download_firefox(ctx, build='release', small=False, icon=True, mobile=None, dom_id=None, locale=None, simple=False, ...
Please complete the code given below. /** * Genji Scrum Tool and Issue Tracker * Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions * <a href="http://www.trackplus.com">Genji Scrum Tool</a> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU ...
[ "\t\tif (projectID==null || issueTypeID==null) {" ]
1,101
lcc
java
null
63fdad7f1feacdf8cca4aaf57dae737d83c351d9ab66db8b
29
Your task is code completion. /** * Genji Scrum Tool and Issue Tracker * Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions * <a href="http://www.trackplus.com">Genji Scrum Tool</a> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General P...
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 SystemStateRT extends SystemSelectBaseLocalizedRT { // ... (many methods and variables) public boolean lookupBeanAllowed(Integer objectID, SerializableBeanAllowedCon...
Please complete the code given below. using System.Collections.Generic; using System.Linq; using AutoJIT.Contrib; using AutoJIT.CSharpConverter.ConversionModule.Helper; using AutoJIT.CSharpConverter.ConversionModule.StatementConverter.Interface; using AutoJIT.Parser; using AutoJIT.Parser.AST; using AutoJIT.Parser.AST....
[ " foreach (ArgumentSyntax argumentSyntax in argumentSyntaxs) {" ]
861
lcc
csharp
null
a2ce4aeed86faf7c78539925675910ecdf08f4ca9f5603ee
30
Your task is code completion. using System.Collections.Generic; using System.Linq; using AutoJIT.Contrib; using AutoJIT.CSharpConverter.ConversionModule.Helper; using AutoJIT.CSharpConverter.ConversionModule.StatementConverter.Interface; using AutoJIT.Parser; using AutoJIT.Parser.AST; using AutoJIT.Parser.AST.Statement...
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 code completion. **Cheat Sheet:** **Context:** The code is part of the `ConversionVisitor` class, specifically in the `Convert` method, which is used to convert an `AutoitFunction` to a C# method. **Relevant Variables and Methods:** * `function`: ...
Please complete the code given below. """Tests for items views.""" import json from datetime import datetime import ddt from mock import patch from pytz import UTC from webob import Response from django.http import Http404 from django.test import TestCase from django.test.client import RequestFactory from django.core....
[ " split_test = self._update_partition_id(0)" ]
2,752
lcc
python
null
b55c3cd64c946848d39da7e77c7364582b5e7ab71a545f58
31
Your task is code completion. """Tests for items views.""" import json from datetime import datetime import ddt from mock import patch from pytz import UTC from webob import Response from django.http import Http404 from django.test import TestCase from django.test.client import RequestFactory from django.core.urlresolv...
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
Context: [Previous code... ~10,000 lines omitted for brevity] class TestEditSplitModule(ItemTest): """ Tests around editing instances of the split_test module. """ def setUp(self): super(TestEditSplitModule, self).setUp() self.course.user_partitions = [ UserPartition( ...
Please complete the code given below. using System; using System.IO; using System.Text; using System.Collections; /* * $Id: TrueTypeFontUnicode.cs,v 1.7 2006/09/17 16:03:37 psoares33 Exp $ * $Name: $ * * Copyright 2001, 2002 Paulo Soares * * The contents of this file are subject to the Mozilla Public License Ve...
[ " foreach (object o in longTag.Values) {" ]
1,490
lcc
csharp
null
caded4c1338faaf5978525a343ec76e66b5546a6a35088a6
32
Your task is code completion. using System; using System.IO; using System.Text; using System.Collections; /* * $Id: TrueTypeFontUnicode.cs,v 1.7 2006/09/17 16:03:37 psoares33 Exp $ * $Name: $ * * Copyright 2001, 2002 Paulo Soares * * The contents of this file are subject to the Mozilla Public License Version 1.1...
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] internal override void WriteFont(PdfWriter writer, PdfIndirectReference piref, Object[] parms) { Hashtable longTag = (Hashtable)parms[0]; AddRangeUni(longTag, true, subset); ArrayList tmp...
Please complete the code given below. /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: CellChangeJobs.java * * Copyright (c) 2006 Sun Microsystems and Static Free Software * * Electric(tm) is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publ...
[ "\t\t\t\t\t\tGraphNode cgn = graphNodes.get(cell);" ]
1,113
lcc
java
null
341005dfebe6821d4201177ffce38b1e3048f5a0d9c30463
33
Your task is code completion. /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: CellChangeJobs.java * * Copyright (c) 2006 Sun Microsystems and Static Free Software * * Electric(tm) is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public 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 the brevity] public class CellChangeJobs { // ... public static class GraphCells extends Job { // ... public boolean doIt() throws JobException { // ... ...
Please complete the code given below. package org.thoughtcrime.securesms.components.emoji; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.Pix...
[ " task = new ListenableFutureTask<>(callable);" ]
629
lcc
java
null
32d36e0536e57f991a066ab60778b32884747e7689f3c816
34
Your task is code completion. package org.thoughtcrime.securesms.components.emoji; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.PixelFormat;...
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 EmojiProvider { // ... private class EmojiPageBitmap { // ... private ListenableFutureTask<Bitmap> task; public EmojiPageBitmap(EmojiPageModel model) { ...
Please complete the code given below. /*************************************************************************** * Copyright 2006-2014 by Christian Ihle * * contact@kouchat.net * * ...
[ " else if (ke.getKeyCode() == KeyEvent.VK_DOWN) {" ]
1,035
lcc
java
null
1f9066ab085c69885da88c003a539d651c2835d2ed83fd83
35
Your task is code completion. /*************************************************************************** * Copyright 2006-2014 by Christian Ihle * * contact@kouchat.net * * ...
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 MainPanel extends JPanel implements ActionListener, CaretListener, ChatWindow, KeyListener { // ... (many lines omitted for brevity) @Override public void keyReleased(final KeyEvent ke) ...
Please complete the code given below. # -*- coding: utf-8 -*- # added new list_tbl definition from functools import partial import random import itertools from navmazing import NavigateToAttribute, NavigateToSibling from widgetastic.widget import View from widgetastic_manageiq import ( BootstrapSelect, Button, Tab...
[ " prerequisite = NavigateToSibling('Details')" ]
534
lcc
python
null
88af654f6cc0799e1844ea6d4158729b1130dc62928ae169
36
Your task is code completion. # -*- coding: utf-8 -*- # added new list_tbl definition from functools import partial import random import itertools from navmazing import NavigateToAttribute, NavigateToSibling from widgetastic.widget import View from widgetastic_manageiq import ( BootstrapSelect, Button, Table, Accor...
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] class NodeDetailsView(NodeView): download = Button(name='download_view') @property def is_displayed(self): return ( self.in_cloud_instance and match_page(summary='{} (Summary)'.f...
Please complete the code given below. package maejavawrapper; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import maejava.BoneVector; import maejava.ColumnDefinitionVector; import maejava.ETimeUnit; import maejava.FlMovementController; import maejava.FlSkeleton; import maejava.Genera...
[ "\t\tfor (IJRecognitionListener listener : recognitionListeners) {" ]
482
lcc
java
null
08b681d309832c3aa506f61679aefcaed7ca5b6c115d2701
37
Your task is code completion. package maejavawrapper; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import maejava.BoneVector; import maejava.ColumnDefinitionVector; import maejava.ETimeUnit; import maejava.FlMovementController; import maejava.FlSkeleton; import maejava.GeneralPose; im...
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 constructors and methods omitted for brevity] public void notifyPoseListeners(BigInteger timestamp, GeneralSkeleton skeleton) { for (IJPoseListener listener : poseListeners) { listener.onPose(timestamp, skeleton); } } ...
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...
[ " ScriptManager sm = ScriptManager.GetCurrent(Page);" ]
655
lcc
csharp
null
1472d733364caca77c7f2605a8ceaee6c18fb02ebc460475
38
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 Code Completion Task: **Context:** [Previous code... ~10,000 lines omitted for brevity] public class ToolbarButton : ImageButton, IScriptControl { #region Public Properties public string Roles { get { return ViewState["Roles"] as s...
Please complete the code given below. package com.github.lazylazuli.traps.common.tile; import com.github.lazylazuli.traps.common.block.BlockSpikeTrap; import net.minecraft.block.state.IBlockState; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentDurability; import net.minecraft...
[ "\t\tdamageCooldown = compound.getInteger(\"DamageCooldown\");" ]
475
lcc
java
null
2abe780e4777e159876fcba6fb9c21888d8a0782e7499c3e
39
Your task is code completion. package com.github.lazylazuli.traps.common.tile; import com.github.lazylazuli.traps.common.block.BlockSpikeTrap; import net.minecraft.block.state.IBlockState; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentDurability; import net.minecraft.enchantm...
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: **TileSpikeTrap Class** - The class extends `TileEntity` and implements `ITickable`. - It has several fields: `inventory`, `sharpness`, `fire`, `blast`, `bane`, `damageCooldown`, and `damage`. - The `update()` method is used to decrement `damageCooldown`. - The `initializeStack()` meth...
Please complete the code given below. /** * Copyright (C) 2002-2015 The FreeCol Team * * This file is part of FreeCol. * * FreeCol 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 ...
[ " StringBuilder sb = new StringBuilder(32);" ]
661
lcc
java
null
214bccc94127564a29c72827ff53ccb4c3bd880918d517fa
40
Your task is code completion. /** * Copyright (C) 2002-2015 The FreeCol Team * * This file is part of FreeCol. * * FreeCol 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: Context: [Previous code... ~10,000 lines omitted for brevity] public class Effect extends FreeColGameObjectType { // ... (many lines omitted for brevity) /** * Get the probability of this effect. * * @return The probability. */ public final int getPro...
Please complete the code given below. import pytest from csirtg_indicator import Indicator from cif.store import Store from cif.auth import Auth from elasticsearch_dsl.connections import connections import os import arrow from cifsdk.exceptions import AuthError from pprint import pprint import json DISABLE_TESTS = Tru...
[ " i = store.handle_indicators_create(t, {" ]
577
lcc
python
null
492de4fd744409d77007630f3cf7e7c49b13037cb2b2a8c6
41
Your task is code completion. import pytest from csirtg_indicator import Indicator from cif.store import Store from cif.auth import Auth from elasticsearch_dsl.connections import connections import os import arrow from cifsdk.exceptions import AuthError from pprint import pprint import json DISABLE_TESTS = True if os.e...
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] @pytest.mark.skipif(DISABLE_TESTS, reason='need to set CIF_ELASTICSEARCH_TEST=1 to run') def test_store_elasticsearch_tokens_groups4(store, indicator): t = store.store.tokens.create({ 'username': '...
Please complete the code given below. # -*- coding: utf-8 -*- import sys sys.path[0:0] = [""] import unittest from bson import SON from mongoengine import * from mongoengine.connection import get_db __all__ = ("DeltaTest",) class DeltaTest(unittest.TestCase): def setUp(self): connect(db='mongoenginetest') ...
[ " p = Person.objects.get(name=\"owner\")" ]
701
lcc
python
null
a507514e59d02bec9d48f262b48dffcb180b6665ae945f96
42
Your task is code completion. # -*- coding: utf-8 -*- import sys sys.path[0:0] = [""] import unittest from bson import SON from mongoengine import * from mongoengine.connection import get_db __all__ = ("DeltaTest",) class DeltaTest(unittest.TestCase): def setUp(self): connect(db='mongoenginetest') 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 completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def test_circular_reference_deltas_2(self): self.circular_reference_deltas_2(Document, Document) self.circular_reference_deltas_2(Document, DynamicDocument) self.circular_reference_...
Please complete the code given below. import os.path import bokeh import bokeh.io import bokeh.model import bokeh.plotting import bokeh.util.platform import ipywidgets as widgets import matplotlib.pyplot as plt import numpy as np import pyproj from IPython.display import display from bokeh.models import ColumnDataSour...
[ " interact(self._plot_line, x_name=widget_x, y_name=widget_y)" ]
1,433
lcc
python
null
821b5076e7642f35d6db6b0af29ca2ff7694928b53b0dace
43
Your task is code completion. import os.path import bokeh import bokeh.io import bokeh.model import bokeh.plotting import bokeh.util.platform import ipywidgets as widgets import matplotlib.pyplot as plt import numpy as np import pyproj from IPython.display import display from bokeh.models import ColumnDataSource, Circl...
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 line(self, x=None, y=None, sel_dim=False): """ Plot two 1D-variables against each other. :param x: Name of a 1D-variable :param y: Name of another 1D-variable, must have the s...
Please complete the code given below. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; using NzbDrone.Common.TPL; using NzbDrone.Core.Configura...
[ " if (!ShouldIgnoreChange(path, ignored))" ]
513
lcc
csharp
null
33a191efb28d5b529c26b622495441d20e705cfb2dc5be9f
44
Your task is code completion. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; using NzbDrone.Common.TPL; using NzbDrone.Core.Configuration; usi...
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 RootFolderWatchingService : IRootFolderWatchingService, IDisposable, IHandle<ModelEvent<RootFolder>>, IHandle<ApplicationStartedEvent>, IHandle<ConfigSavedEvent> { ...
Please complete the code given below. package com.electronwill.nightconfig.core.utils; import java.util.AbstractMap; import java.util.Collection; import java.util.Map; import java.util.Set; import java.util.function.BiConsumer; import java.util.function.BiFunction; import java.util.function.Function; /** * * A Trans...
[ "\t\treturn read(key, computed);" ]
837
lcc
java
null
6fac8d0b410c99d32f6421d53dcbd4534f8f4a65b4dcede9
45
Your task is code completion. package com.electronwill.nightconfig.core.utils; import java.util.AbstractMap; import java.util.Collection; import java.util.Map; import java.util.Set; import java.util.function.BiConsumer; import java.util.function.BiFunction; import java.util.function.Function; /** * * A TransformingMa...
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 a `TransformingMap` class, which extends `AbstractMap`. It applies transformations to the values of the internal map. **Relevant lines and variables:** * `readTransform`: a `BiFunction` that converts an internal value to an external value * `writ...
Please complete the code given below. ############################################################################### #cyn.in is an open source Collaborative Knowledge Management Appliance that #enables teams to seamlessly work together on files, documents and content in #a secure central environment. # #cyn.in v2 a...
[ " cat = getToolByName(self.context, 'uid_catalog')" ]
1,519
lcc
python
null
b581893ac400757aaad32eed292afd06559e04175e8d6fdf
46
Your task is code completion. ############################################################################### #cyn.in is an open source Collaborative Knowledge Management Appliance that #enables teams to seamlessly work together on files, documents and content in #a secure central environment. # #cyn.in v2 an open 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 completion task: Context: [Previous code... ~10,000 lines omitted for brevity] def togglecommentsview(self): uid = '' itemindex = '' viewtype = '' if self.request.has_key('uid'): uid = self.request['uid'] if self.request.has...
Please complete the code given below. using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.InteropServices; namespace Server { public class TileMatrix { private static readonly ILog log = LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().Decla...
[ "\t\t\tset { m_ID = (ushort)value; }" ]
1,528
lcc
csharp
null
b5474d9a2623627f5e344cff1193ab0629353b34b75b1c81
47
Your task is code completion. using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.InteropServices; namespace Server { public class TileMatrix { private static readonly ILog log = LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().DeclaringType ...
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 TileMatrix { // ... public Tile GetLandTile( int x, int y ) { Tile[] tiles = GetLandBlock( x >> 3, y >> 3 ); return tiles[( ( y & 0x7 ) << 3 ) + ( x & 0x7 )...
Please complete the code given below. /* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
[ " channelUri = ChannelUri(scene, land);" ]
1,661
lcc
csharp
null
c357dc85d4b8de20bfeb7e4f0a5fb6c3f1e2ad3fba2c7691
48
Your task is code completion. /* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistr...
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 string ParcelVoiceInfoRequest(Scene scene, string request, string path, string param, UUID agentID, Caps caps) { ... try { ...
Please complete the code given below. using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using OpenDentBusiness; namespace OpenDental{ /// <summary> /// Summary description for FormBasicTemplate. /// </summary> public class FormPayPeriodEdit : Sys...
[ "\t\t\t\tMsgBox.Show(this,\"Please fix data entry errors first.\");" ]
576
lcc
csharp
null
7c3bba0835a61180b3615e5a45405828fb9f896470cd8acb
49
Your task is code completion. using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using OpenDentBusiness; namespace OpenDental{ /// <summary> /// Summary description for FormBasicTemplate. /// </summary> public class FormPayPeriodEdit : System.Windo...
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 butOK_Click(object sender, System.EventArgs e) { if(textDateStart.errorProvider1.GetError(textDateStart)!="" || textDateStop.errorProvider1.GetError(textDateStop)!="" ...
Please complete the code given below. # (C) British Crown Copyright 2013 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of t...
[ " lat, lon = _build_lat_lon_for_NAME_timeseries(column_headings)" ]
2,765
lcc
python
null
d6baed6ebf26ec130b53d88863008a04aa5759c9dbf5f916
50
Your task is code completion. # (C) British Crown Copyright 2013 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the 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 given context: Context: [Previous code... ~10,000 lines omitted for brevity] def load_NAMEII_timeseries(filename): """ Load a NAME II Time Series file returning a generator of :class:`iris.cube.Cube` instances. Args: * filename (string): Name ...
Please complete the code given below. # encoding: utf-8 import ckan.logic as logic import ckan.authz as authz import ckan.logic.auth as logic_auth from ckan.common import _ @logic.auth_allow_anonymous_access def package_create(context, data_dict=None): user = context['user'] if authz.auth_is_anon_user(context)...
[ " group_id = data_dict['id']" ]
772
lcc
python
null
37c8cc83faf991e5dab1a2d463f96ea1e173fbf645387307
51
Your task is code completion. # encoding: utf-8 import ckan.logic as logic import ckan.authz as authz import ckan.logic.auth as logic_auth from ckan.common import _ @logic.auth_allow_anonymous_access def package_create(context, data_dict=None): user = context['user'] if authz.auth_is_anon_user(context): ...
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 _group_or_org_member_create(context, data_dict): user = context['user'] Cheatsheet (for next line): - We are in _group_or_org_member_create(), which is a function that seems to be related to creating a group or or...
Please complete the code given below. /** * Copyright (C) 2001-2020 by RapidMiner and the contributors * * Complete list of developers available at our web site: * * http://rapidminer.com * * This program is free software: you can redistribute it and/or modify it under the terms of the * GNU Affero General ...
[ "\t\t\t\tString label = example.getValueAsString(predictionAttribute);" ]
784
lcc
java
null
d2fab0055348069f0d8e88dc8cdb2f46840753245d44d77d
52
Your task is code completion. /** * Copyright (C) 2001-2020 by RapidMiner and the contributors * * Complete list of developers available at our web site: * * http://rapidminer.com * * This program is free software: you can redistribute it and/or modify it under the terms of the * GNU Affero General Public 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 code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] private void performPredictionRecursivly(ExampleSet applySet, Node node, double[] confidences, int[] outcomes, int[] depths, int depth, int numberOfPartitions) throws OperatorException { if (...
Please complete the code given below. // --------------------------------- // <copyright file="AbstractTrados2007LanguageDirection.cs" company="SDL International"> // Copyright 2011 All Right Reserved // </copyright> // <author>Kostiantyn Lukianets</author> // <email>klukianets@sdl.com</email> // <date>2011-11-08</da...
[ " var searchResultsArray = new SearchResults[segments.Length];" ]
1,172
lcc
csharp
null
39981401e38829b7087717c9452de413a3ec15cf21ca091f
53
Your task is code completion. // --------------------------------- // <copyright file="AbstractTrados2007LanguageDirection.cs" company="SDL International"> // Copyright 2011 All Right Reserved // </copyright> // <author>Kostiantyn Lukianets</author> // <email>klukianets@sdl.com</email> // <date>2011-11-08</date> // --...
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 AbstractTrados2007LanguageDirection : ITranslationProviderLanguageDirection { #region Fields protected readonly object locker = new object(); /// <summary> /// Sto...
Please complete the code given below. /* * Copyright (c) 1998-2010 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute i...
[ " char low = string.charAt(offset++);" ]
6,474
lcc
java
null
d616bbc2ccc30cab16459d0300a1d8c933b33e1455e3aa84
54
Your task is code completion. /* * Copyright (c) 1998-2010 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or ...
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 RegexpNode { // ... ~10,000 lines omitted for brevity public static final int FAIL = -1; public static final int SUCCESS = 0; // ... ~10,000 lines omitted for brevity ...
Please complete the code given below. /** * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Software distributed under the Lice...
[ " if (GenericValidator.isBlankOrNull(studyFormName)) {" ]
945
lcc
java
null
5d56dd41743ce710c9b0986b24ec730ba947774b15696336
55
Your task is code completion. /** * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is di...
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 ProgramAccessionValidator implements IAccessionNumberValidator { // ... (many lines of code) public ValidationResults checkAccessionNumberValidity(String accessionNumber, String reco...
Please complete the code given below. #region Copyright & License Information /* * Copyright 2007-2017 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Found...
[ "\t\t\t\t\tSendOrderTo(newConn, \"AuthenticationError\", message);" ]
807
lcc
csharp
null
cb8ef7b164c1f9b4d27225f6b8e45ea33c8096c073d82e27
56
Your task is code completion. #region Copyright & License Information /* * Copyright 2007-2017 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation, 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] void ValidateClient(Connection newConn, string data) { try { if (State == ServerState.GameStarted) { Log.Write("server", "Rejected connection from {0};...
Please complete the code given below. //############################################################################# //# # //# Copyright (C) <2015> <IMS MAXIMS> # //# ...
[ "\t\tif(beans == null)" ]
833
lcc
java
null
6e13c44c01f4116cb114d1ed362252ac9e0da0ef7331a74b
57
Your task is code completion. //############################################################################# //# # //# Copyright (C) <2015> <IMS MAXIMS> # //# ...
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 CatsReferralPendingEmergencyNonEDAdmissionListVoCollection extends ims.vo.ValueObjectCollection implements ims.vo.ImsCloneable, Iterable<CatsReferralPendingEmergencyNonEDAdmissionListVo>, ims.vo.i...
Please complete the code given below. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program...
[ "elif prnum == 'advanced':" ]
549
lcc
python
null
73fefc41fc5fa1c47966c4abc5dc1e78bb36629f5e868c89
58
Your task is code completion. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distr...
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 given code is a script for a Kodi add-on that provides various cleaning options for the Kodi media center. The script includes functions for clearing cache, packages, music database, video database, thumbnails, advanced settings, view modes database, and date. The...
Please complete the code given below. ////////////////////////////////////////////////////////////////// // // // This is an auto - manipulated source file. // // Edits inside regions of HYCALPER AUTO GENERATED CODE // // will be l...
[ " int [] ret = new int[A.Dimensions.NumberOfDimensions]; " ]
1,174
lcc
csharp
null
5f7f8ad03839f70553f1bf1189d38d53af0f00c6db0c9584
59
Your task is code completion. ////////////////////////////////////////////////////////////////// // // // This is an auto - manipulated source file. // // Edits inside regions of HYCALPER AUTO GENERATED CODE // // will be lost and o...
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... ~20 lines omitted for brevity] public static int[] ind2sub(ILArray<T> A, int seqindex) { if (object.Equals(A,null) || A.IsEmpty) return new int[0]; int [] ret = new int[A.Dimensions.NumberOfDimensions]; A...
Please complete the code given below. import logging import datetime import simplejson import tempfile try: from hashlib import md5 except: from md5 import md5 from dirac.lib.base import * from dirac.lib.diset import getRPCClient, getTransferClient from dirac.lib.credentials import getUsername, getSelectedGroup, g...
[ " reportName = pD[ 'plotName' ]" ]
1,147
lcc
python
null
6f5d658cc2b84c64bf49c302dee4078f60fd158ed24b7b19
60
Your task is code completion. import logging import datetime import simplejson import tempfile try: from hashlib import md5 except: from md5 import md5 from dirac.lib.base import * from dirac.lib.diset import getRPCClient, getTransferClient from dirac.lib.credentials import getUsername, getSelectedGroup, getSelecte...
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 parseFormParams(params): pD = {} extraParams = {} pinDates = False for name in params: if name.find( "_" ) != 0: continue value = params[ name ] name = name[1:...
Please complete the code given below. #region Copyright & License Information /* * Copyright 2007-2021 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\tforeach (var rp in world.ActorsWithTrait<RallyPoint>())" ]
985
lcc
csharp
null
10f9dbc73235c1d307666e6143b4217f1b7b644ae2fe93d6
61
Your task is code completion. #region Copyright & License Information /* * Copyright 2007-2021 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 BaseBuilderBotModule : ConditionalTrait<BaseBuilderBotModuleInfo>, IGameSaveTraitData, IBotTick, IBotPositionsUpdated, IBotRespondToAttack, IBotRequestPauseUnitProduction { // ... void IBotTic...
Please complete the code given below. /* This file is part of VoltDB. * Copyright (C) 2008-2013 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, includ...
[ " List<PlanNodeList> nodeLists = new ArrayList<PlanNodeList>();" ]
768
lcc
java
null
fc248cbd17650fa9a1b49a55fb76191e355a916d55809db3
62
Your task is code completion. /* This file is part of VoltDB. * Copyright (C) 2008-2013 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * wi...
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 the brevity] public class PlannerTestAideDeCamp { // ... public List<AbstractPlanNode> compile(String sql, int paramCount, String joinOrder, Object partitionParameter, boolean inferSP, boolean lockInSP, Determini...
Please complete the code given below. /* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 1997-2004 Apple Computer, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
[ "\t\t\tthis.comboBox1.Size = new System.Drawing.Size(224, 21);" ]
1,012
lcc
csharp
null
8f007015b8b3b455a6fcd8f989241324f18ff10327811d5b
63
Your task is code completion. /* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 1997-2004 Apple Computer, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
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 SimpleChat : System.Windows.Forms.Form { // ... (many lines omitted for brevity) private void InitializeComponent() { // ... (many lines omitted for brevity) ...
Please complete the code given below. // // System.IO.Ports.WinSerialStream.cs // // Authors: // Carlos Alberto Cortez (calberto.cortez@gmail.com) // // (c) Copyright 2006 Novell, Inc. (http://www.novell.com) // using System; using System.Text; using System.IO; using System.Runtime.InteropServices; using System.Thread...
[ "\t\t\tdcb.SetValues (baud_rate, parity, data_bits, bits, hs);" ]
1,031
lcc
csharp
null
d356cc0ece3ba9de9fcbb2613757dcabae2d8a589e1f370b
64
Your task is code completion. // // System.IO.Ports.WinSerialStream.cs // // Authors: // Carlos Alberto Cortez (calberto.cortez@gmail.com) // // (c) Copyright 2006 Novell, Inc. (http://www.novell.com) // using System; using System.Text; using System.IO; using System.Runtime.InteropServices; using System.Threading; usin...
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 void SetAttributes (int baud_rate, Parity parity, int data_bits, StopBits bits, Handshake hs) { DCB dcb = new DCB (); if (!GetCommState (handle, dcb)) ReportIOError (...
Please complete the code given below. # Copyright (c) 2008-2009 Participatory Culture Foundation # See LICENSE for details. import re from django.core import mail from django.core.urlresolvers import reverse from django.conf import settings from django.contrib.auth.models import User from django.utils.translation impo...
[ " page = self.get_page(self.user.get_profile().get_url()," ]
840
lcc
python
null
feedb243436593ce6db6b01f37eaf505c93f329ca6adb4ff
65
Your task is code completion. # Copyright (c) 2008-2009 Participatory Culture Foundation # See LICENSE for details. import re from django.core import mail from django.core.urlresolvers import reverse from django.conf import settings from django.contrib.auth.models import User from django.utils.translation import ugette...
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: **UserProfileTest class** * The class is testing user profile functionality. * It has several test methods, including `test_login`, `test_register`, `test_forgot_password`, etc. * The `register` method tests the registration process and checks various aspects of the registered...
Please complete the code given below. #!/usr/bin/env python # -*- coding: utf-8 -*- """ functional_tests ~~~~~~~~~~~~~~~~ This file contains the functional or acceptance tests for the fetchphotos project. """ # Time-stamp: <2015-02-22 14:17:50 bob> ## invoke tests using the call_func_tests.sh script in this directory ...
[ " options, args = parser.parse_known_args()" ]
555
lcc
python
null
320e62adbcd607acda753d0d1559c566d029796c177de00e
66
Your task is code completion. #!/usr/bin/env python # -*- coding: utf-8 -*- """ functional_tests ~~~~~~~~~~~~~~~~ This file contains the functional or acceptance tests for the fetchphotos project. """ # Time-stamp: <2015-02-22 14:17:50 bob> ## invoke tests using the call_func_tests.sh script in this directory #pylint: ...
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 main(): """Main routine for functional unit tests""" global _keep_tempdir # This handy code from http://stackoverflow.com/a/17259773 parser = argparse.ArgumentParser(add_help=False) par...
Please complete the code given below. from enigma import eTimer, eEnv from Screens.Screen import Screen from Components.ActionMap import ActionMap, NumberActionMap from Components.Pixmap import Pixmap, MultiPixmap from Components.Label import Label from Components.Sources.StaticText import StaticText from Components.S...
[ "\t\t\tcurrentListEntry = self[\"list\"].getCurrent()" ]
1,024
lcc
python
null
544c63cee98145e32800b86cdc53d87ba73f46da8aeafade
67
Your task is code completion. from enigma import eTimer, eEnv from Screens.Screen import Screen from Components.ActionMap import ActionMap, NumberActionMap from Components.Pixmap import Pixmap, MultiPixmap from Components.Label import Label from Components.Sources.StaticText import StaticText from Components.Sources.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 WlanScan(Screen): def __init__(self, session, iface): ... self.skin_path = plugin_path self.oldInterfaceState = iNetwork.getAdapterAttribute(self.iface, "up") ...
Please complete the code given below. using System; using iTextSharp.text; /* * $Id: Barcode39.cs,v 1.5 2006/09/17 15:58:51 psoares33 Exp $ * * Copyright 2002-2006 by Paulo Soares. * * The contents of this file are subject to the Mozilla Public License Version 1.1 * (the "License"); you may not use this file exc...
[ " int len = fCode.Length + 2;" ]
1,163
lcc
csharp
null
5c41dbe75be69a522492a261348f685fcc83189eb876ce02
68
Your task is code completion. using System; using iTextSharp.text; /* * $Id: Barcode39.cs,v 1.5 2006/09/17 15:58:51 psoares33 Exp $ * * Copyright 2002-2006 by Paulo Soares. * * The contents of this file are subject to the Mozilla Public License Version 1.1 * (the "License"); you may not use this file except in co...
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 Barcode39 : Barcode { // ... public override Rectangle BarcodeSize { get { float fontX = 0; float fontY = 0; if (font != n...
Please complete the code given below. package edu.stanford.nlp.util; import java.io.PrintStream; import java.lang.reflect.Type; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.Map.Entry; public clas...
[ " if (results == null) {" ]
840
lcc
java
null
cdd96b1a6cdd32b52402ed8afa5c640bc81a206da183fee0
69
Your task is code completion. package edu.stanford.nlp.util; import java.io.PrintStream; import java.lang.reflect.Type; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.Map.Entry; public class Propert...
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 PropertiesUtils { // ... existing code ... /** * Loads a boolean property. If the key is not present, returns defaultValue. */ public static boolean getBool(Properti...
Please complete the code given below. # Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Integration tests for :mod:`iris.analysis.trajectory`.""" # import iris tests first s...
[ " y_points = np.arange(-89.12, +90.0, 42.847)" ]
819
lcc
python
null
f199ac4b782288ef2a374c11cfb7bee86753f53493876247
70
Your task is code completion. # Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Integration tests for :mod:`iris.analysis.trajectory`.""" # import iris tests first so that 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 task: Context: [Previous code... ~10,000 lines omitted for brevity] @tests.skip_data class TestTriPolar(tests.IrisTest): def setUp(self): # load data cubes = iris.load( tests.get_data_path(["NetCDF", "ORCA2", "votemper.nc"]) ) cube = cubes[0] ...
Please complete the code given below. // CANAPE Network Testing Tool // Copyright (C) 2014 Context Information Security // // 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, eith...
[ " if (currPacket != null)" ]
518
lcc
csharp
null
6cbff4b2ab9cd811f4d0b2d6ed54a5ae26c2c9ed95c4d5cb
71
Your task is code completion. // CANAPE Network Testing Tool // Copyright (C) 2014 Context Information Security // // 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 versio...
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 PacketLogViewerForm: **Context:** [Previous code... ~10,000 lines omitted for brevity] private void toolStripButtonCopy_Click(object sender, EventArgs e) { LogPacket currPacket = GetCurrentPacket(); // [Insert code here] **Relevant Variables and Methods:** - `currPacket`: The ...
Please complete the code given below. import cPickle import wave import gzip import scipy import scipy.io.wavfile from matplotlib import pylab import scipy.io.wavfile import os from numpy import * from pydub import AudioSegment from pyechonest import track, config import numpy import mfcc_diy class Dataset: """Sli...
[ " elif color == 'yellow':" ]
1,319
lcc
python
null
6071885a8ddae41fc3b21de3b7edec8f485b65d210d0a2e3
72
Your task is code completion. import cPickle import wave import gzip import scipy import scipy.io.wavfile from matplotlib import pylab import scipy.io.wavfile import os from numpy import * from pydub import AudioSegment from pyechonest import track, config import numpy import mfcc_diy class Dataset: """Slices, shuf...
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 collection of functions for audio processing and dataset management. The functions are used for tasks such as loading audio files, extracting features (MFCCs), splitting audio files, and building datasets. **Relevant lines and variables:** 1. `build_dataset(...
Please complete the code given below. /////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2006-2019 Esper Team. All rights reserved. / // http://esper.codehaus.org / // --------------...
[ " set { _numValues = value; }" ]
743
lcc
csharp
null
90e9975c7f92d8ef21fcbe89fd1500b3a541124b7b4304fb
73
Your task is code completion. /////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2006-2019 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 RefCountedSet class: **Context:** ```csharp public class RefCountedSet<TK> { // ... public virtual bool Remove(TK key) { if (ReferenceEquals(key, null)) { return RemoveNull(); } int value; if (!_refSet.TryGetValue(key, out value)) { ...
Please complete the code given below. namespace Tripodmaps { partial class DummySolutionExplorer { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources be...
[ " this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);" ]
1,467
lcc
csharp
null
e51a6d98c9314e0d0e73c15da39e443dc71aa90ae24eefe6
74
Your task is code completion. namespace Tripodmaps { partial class DummySolutionExplorer { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used....
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 provided code is a Windows Forms application with a TreeView control named `treeView1` and an ImageList control named `imageList1`. The code is generated by the Visual Studio designer. **Relevant Variables and Methods:** 1. `treeView1`: The TreeView control that...
Please complete the code given below. """Base class for platform implementations """ import ctypes from OpenGL.platform import ctypesloader import sys import OpenGL as top_level_module from OpenGL import logs class _CheckContext( object ): def __init__( self, func, ccisvalid ): self.func = func se...
[ " elif hasattr( original, 'originalFunction' ):" ]
831
lcc
python
null
e23602db74e35727f7f766eb0f92a05cdb9599280a144a07
75
Your task is code completion. """Base class for platform implementations """ import ctypes from OpenGL.platform import ctypesloader import sys import OpenGL as top_level_module from OpenGL import logs class _CheckContext( object ): def __init__( self, func, ccisvalid ): self.func = func self.ccisva...
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: **Class and Methods** - The code is in the `BasePlatform` class. - The class has several methods, including `install`, `functionTypeFor`, `errorChecking`, `wrapContextCheck`, `wrapLogging`, `finalArgType`, `constructFunction`, `createBaseFunction`, `checkExtension`, and `copyBa...
Please complete the code given below. /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache Licens...
[ " final DataOutputStream out = new DataOutputStream(baos);" ]
1,652
lcc
java
null
ce9e73e7e622c7688ef392b99d6afaa87bea6b138e34fa82
76
Your task is code completion. /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Versio...
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] private void writeFileEmptyFiles(final DataOutput header) throws IOException { boolean hasEmptyFiles = false; for (final SevenZArchiveEntry entry : files) { if (!entry.hasStream...
Please complete the code given below. package fr.nantes.univ.alma.tools.ui; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.font.FontRenderContext; import java.awt.font.Te...
[ " for (int i = 0; i < ticker.length; i++)" ]
600
lcc
java
null
6a3563763220617ce12df989e13f3ad3d2a6e723fd3d119e
77
Your task is code completion. package fr.nantes.univ.alma.tools.ui; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.font.FontRenderContext; import java.awt.font.TextLayout;...
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 InfiniteProgressPanel extends JComponent implements MouseListener { ... protected class Animator implements Runnable { private boolean rampUp = true; ...
Please complete the code given below. using System.Collections.Generic; using System.Linq; using FluentAssertions; using Moq; using NUnit.Framework; using NzbDrone.Core.Download; using NzbDrone.Core.Download.Clients.Transmission; namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests { [TestFi...
[ " var item = Subject.GetItems().Single();" ]
655
lcc
csharp
null
83459d6f1f2adf3b906ee4a28eaf21c3a195f75ae100c64b
78
Your task is code completion. using System.Collections.Generic; using System.Linq; using FluentAssertions; using Moq; using NUnit.Framework; using NzbDrone.Core.Download; using NzbDrone.Core.Download.Clients.Transmission; namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests { [TestFixture] ...
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 Transmission client in the NzbDrone project. The tests cover various scenarios related to downloading, getting items, and checking the status of the Transmission client. **...
Please complete the code given below. #region using directives using System; using System.Threading; using System.Threading.Tasks; using PoGo.NecroBot.Logic.Common; using PoGo.NecroBot.Logic.Event; using PoGo.NecroBot.Logic.Logging; using PoGo.NecroBot.Logic.State; using PoGo.NecroBot.Logic.Utils; using POGOProtos.Inv...
[ " if (_diff > 0)" ]
772
lcc
csharp
null
a35dec5733725ddbb50c8215f4db5a1bb8d03ea5bf6f87c7
79
Your task is code completion. #region using directives using System; using System.Threading; using System.Threading.Tasks; using PoGo.NecroBot.Logic.Common; using PoGo.NecroBot.Logic.Event; using PoGo.NecroBot.Logic.Logging; using PoGo.NecroBot.Logic.State; using PoGo.NecroBot.Logic.Utils; using POGOProtos.Inventory.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: **Context:** ```csharp private static async Task OptimizedRecycleBerries(ISession session, CancellationToken cancellationToken) { var razz = await session.Inventory.GetItemAmountByType(ItemId.ItemRazzBerry); var bluk = await session.Inventory.GetItemAmountByType(ItemId.ItemBlukB...
Please complete the code given below. import os import sys import pyfits import config as c from os.path import exists from numpy import log10 from readlog import ReadLog from runsexfunc import * from flagfunc import * class ConfigIter: """The class making configuration file for GALFIT. The configuration file ...
[ " 'relative to data\\n'])" ]
1,863
lcc
python
null
c19772b78b722854250c2ccf8a287dc2802417dbeafa7d23
80
Your task is code completion. import os import sys import pyfits import config as c from os.path import exists from numpy import log10 from readlog import ReadLog from runsexfunc import * from flagfunc import * class ConfigIter: """The class making configuration file for GALFIT. The configuration file consi...
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 SersicFunc(conffile, ParamDict, FitDict, No): f=open(config_file, 'ab') f.writelines([' 0) sersic \n']) f.writelines([' 1) ', str(ParamDict[No][2][0]), ' ', \ str(...
Please complete the code given below. /* This file is part of Arcadeflex. Arcadeflex is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Arcadef...
[ " i += ((b & 0x08) << 2);" ]
1,309
lcc
java
null
ce7af30933d25fa24c3982a8a49548083f6f94e48e102d6a
81
Your task is code completion. /* This file is part of Arcadeflex. Arcadeflex is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Arcadeflex is di...
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 segar { public static abstract interface sega_decryptPtr { public abstract void handler(int pc,/*unsinged*/ int[] lo); } public static sega_decryptPtr sega_decrypt; public static UByte...
Please complete the code given below. """ Fixture to create a course and course components (XBlocks). """ import datetime import json import mimetypes from collections import namedtuple from textwrap import dedent import six from opaque_keys.edx.keys import CourseKey from path import Path from common.test.acceptance.f...
[ " course_key = CourseKey.from_string(self._course_key)" ]
824
lcc
python
null
09ae4ef8effb51b554602ffbe68a496389bb548ebc5983ad
82
Your task is code completion. """ Fixture to create a course and course components (XBlocks). """ import datetime import json import mimetypes from collections import namedtuple from textwrap import dedent import six from opaque_keys.edx.keys import CourseKey from path import Path from common.test.acceptance.fixtures 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 task: Context: [Previous code... ~10,000 lines omitted for brevity] def _create_course(self): # ... (course creation code) def _install_course_updates(self): # ... (update installation code) def _install_course_handouts(self): # ... (handout installation code) ...
Please complete the code given below. package de.tink.minecraft.plugin.safari; /* Copyright (C) 2012 Thomas Starl This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (...
[ "\t\tint min = -1;" ]
803
lcc
java
null
56d619ed99235ddf5394f3518b191a845301a65eebac5d5e
83
Your task is code completion. package de.tink.minecraft.plugin.safari; /* Copyright (C) 2012 Thomas Starl This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your o...
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 SafariEventListener implements Listener { // ... private int parseInt(String number) { if(number == null) return 0; String[] splitNumber = number.split(" "); ...
Please complete the code given below. #!/usr/bin/python # -*- coding: utf-8 -*- """ Ansible module to add boundary meters. (c) 2013, curtis <curtis@serverascode.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 publ...
[ " types = ['cert', 'key']" ]
744
lcc
python
null
41849aea5e307f5199745185087b9ae2038c2a8673824a84
84
Your task is code completion. #!/usr/bin/python # -*- coding: utf-8 -*- """ Ansible module to add boundary meters. (c) 2013, curtis <curtis@serverascode.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 ...
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 download_request(module, name, apiid, apikey, cert_type): # If we can't open the file it's not there, so we should download it... # Now download the file... # ...and save it to the config directory ...
Please complete the code given below. //$Header: /cvsroot/autowikibrowser/src/Project\040select.Designer.cs,v 1.15 2006/06/15 10:14:49 wikibluemoose Exp $ namespace AutoWikiBrowser { partial class MyPreferences { /// <summary> /// Required designer variable. /// </summary> priva...
[ " this.lblPrivacy.Location = new System.Drawing.Point(6, 26);" ]
1,336
lcc
csharp
null
87a46bb8e4f77d817428047955d797ac5726abcbd031985c
85
Your task is code completion. //$Header: /cvsroot/autowikibrowser/src/Project\040select.Designer.cs,v 1.15 2006/06/15 10:14:49 wikibluemoose Exp $ namespace AutoWikiBrowser { partial class MyPreferences { /// <summary> /// Required designer variable. /// </summary> private System...
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] private System.ComponentModel.IContainer components = null; protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose...
Please complete the code given below. """ Gather information about a system and report it using plugins supplied for application-specific information """ # sosreport.py # gather information about a system and report it # Copyright (C) 2006 Steve Conklin <sconklin@redhat.com> # This program is free software; you can re...
[ " for i in zip(self.loaded_plugins):" ]
3,043
lcc
python
null
0040aff29f9f6ccd4819e0793a5a66b9d75d882f56fae40c
86
Your task is code completion. """ Gather information about a system and report it using plugins supplied for application-specific information """ # sosreport.py # gather information about a system and report it # Copyright (C) 2006 Steve Conklin <sconklin@redhat.com> # This program is free software; you can redistribut...
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 collect(self): self.ui_log.info(_(" Running plugins. Please wait ...")) self.ui_log.info("") plugruncount = 0 Cheatsheet (for next line): - We are in the collect() method of th...
Please complete the code given below. # -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN). ## ## Indico is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## publishe...
[ " getRoomFullName.produce = lambda s: s.getRoom()" ]
893
lcc
python
null
8a746e0f9e09ec54d8d1e7bf7ca7b8e16731fe8f4652e145
87
Your task is code completion. # -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN). ## ## Indico 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 given context: **IFossil Interface** - `IFossil` is the base interface for all fossils. - It has no methods defined in the given code snippet. **ICategoryFossil** - `ICategoryFossil` inherits from `IFossil`. - It has two methods: `getId()` and `getName()`. **IConferenceMinimalFossil** - `IConf...
Please complete the code given below. /* * Copyright (c) Mirth Corporation. All rights reserved. * * http://www.mirthcorp.com * * The software in this package is published under the terms of the MPL license a copy of which has * been included with this distribution in the LICENSE.txt file. */ package com.mirt...
[ " throw new MessageWriterException(e);" ]
543
lcc
java
null
bf41ff7b860961e0d3143422090577f24d568a16dd294083
88
Your task is code completion. /* * Copyright (c) Mirth Corporation. All rights reserved. * * http://www.mirthcorp.com * * The software in this package is published under the terms of the MPL license a copy of which has * been included with this distribution in the LICENSE.txt file. */ package com.mirth.connect...
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] private void importMessages() { if (StringUtils.isBlank(fileTextField.getText())) { fileTextField.setBackground(UIConstants.INVALID_COLOR); parent.alertError(parent, "Please...
Please complete the code given below. /* * Axiom Stack Web Application Framework * Copyright (C) 2008 Axiom Software Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either ...
[ "\t\t \t\t\tlayer = ScriptRuntime.toInt32(value);" ]
762
lcc
java
null
5e5cdb6218b379ec44de7c00d3f6ce7f79c90829d6cf905f
89
Your task is code completion. /* * Axiom Stack Web Application Framework * Copyright (C) 2008 Axiom Software Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3...
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] protected int getLayer(Object options) throws Exception { int layer = -1; try { if (options != null) { Object value = null; if (options instanceof Scriptable) { value = ((Scriptable) opt...
Please complete the code given below. /** * Copyright 2012 Facebook * * 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 requ...
[ " if (currentSession != null && currentSession.isOpened()) {" ]
1,328
lcc
java
null
1d185bc0190b4d50ec508a59208f05925712f6455d6ece65
90
Your task is code completion. /** * Copyright 2012 Facebook * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
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 fetchUserInfo() { final Session currentSession = getSession(); if (currentSession != null) { // [Code to fetch user info] } } Cheatsheet (for next line): - We are in f...
Please complete the code given below. package info.deskchan.talking_system; import info.deskchan.core_utils.TextOperations; import org.json.JSONObject; import java.util.*; public class StandardEmotionsController implements EmotionsController{ private static class Emotion{ /** Emotion name. **/ public String name;...
[ "\t\tfor(Emotion emotion : emotions)" ]
630
lcc
java
null
2728509e7278c4d21b0ffa379c7ac4c266c2cb3953c53b51
91
Your task is code completion. package info.deskchan.talking_system; import info.deskchan.core_utils.TextOperations; import org.json.JSONObject; import java.util.*; public class StandardEmotionsController implements EmotionsController{ private static class Emotion{ /** Emotion name. **/ public String name; /** Ar...
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 void normalize(){ float sum = 0; for (Emotion emotion : emotions){ sum += emotion.strength; } for (Emotion emotion : emotions){ emotion.chance /= sum; ...
Please complete the code given below. # vim: set expandtab sw=4 ts=4: # # Unit tests for BuildJob class # # Copyright (C) 2014-2016 Dieter Adriaenssens <ruleant@users.sourceforge.net> # # This file is part of buildtimetrend/python-lib # <https://github.com/buildtimetrend/python-lib/> # # This program is free software:...
[ " 'property1': 2, 'property2': 3}" ]
1,160
lcc
python
null
937eae55baa939e82bad4567e4b302435ea8891cfa090cc2
92
Your task is code completion. # vim: set expandtab sw=4 ts=4: # # Unit tests for BuildJob class # # Copyright (C) 2014-2016 Dieter Adriaenssens <ruleant@users.sourceforge.net> # # This file is part of buildtimetrend/python-lib # <https://github.com/buildtimetrend/python-lib/> # # This program is free software: you can ...
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_to_xml_string(self): self.assertEqual( b'<build>\n' b' <stages/>\n' b'</build>\n', self.build.to_xml_string()) def test_to_xml(self): self.assertEqual( ...
Please complete the code given below. #!/usr/bin/env python """ This modules contains functions for the conversion of types. Examples: lat/lon <-> UTM local time <-> UTC meters <-> furlongs . . . @UofA, 2013 (LK) """ #================================================================= from math import pi, sin, cos, tan...
[ " N1 = a/sqrt(1-eccSquared*sin(phi1Rad)*sin(phi1Rad))" ]
980
lcc
python
null
b3d7b8ae829a609d04350475dc3cbba8c1903ae29d44f33f
93
Your task is code completion. #!/usr/bin/env python """ This modules contains functions for the conversion of types. Examples: lat/lon <-> UTM local time <-> UTC meters <-> furlongs . . . @UofA, 2013 (LK) """ #================================================================= from math import pi, sin, cos, tan, sqrt #=...
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 UTMtoLL(ReferenceEllipsoid, northing, easting, zone): """ converts UTM coords to lat/long. Equations from USGS Bulletin 1532 East Longitudes are positive, West longitudes are negati...
Please complete the code given below. from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.template import RequestContext from accounts.forms import RegisterForm, ChangeEmailForm, ChangeUsernameForm, SendPMForm, SendMassPMFor...
[ " form = ReportUserForm(request.POST)" ]
651
lcc
python
null
43b09bf2cf11206d57ef722d796e2250d60d38db8c309917
94
Your task is code completion. from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.template import RequestContext from accounts.forms import RegisterForm, ChangeEmailForm, ChangeUsernameForm, SendPMForm, SendMassPMForm, Report...
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...] @login_required def report_user(request, username): user = get_object_or_404(User, username=username) profile = user.get_profile() if request.method == 'POST': # [Code to be completed] Relevant lines/variables: - `request`: The curren...
Please complete the code given below. # Copyright 2009-2013 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). """Browser views for products.""" __metaclass__ = type __all__ = [ 'ProductAddSeriesView', 'ProductAddView', 'ProductAddViewB...
[ " field_names = ['name', 'summary', 'branch', 'releasefileglob']" ]
4,413
lcc
python
null
c87c42b130a11ba81e64078e5be1ddb51be6aa08d42fa60d
95
Your task is code completion. # Copyright 2009-2013 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). """Browser views for products.""" __metaclass__ = type __all__ = [ 'ProductAddSeriesView', 'ProductAddView', 'ProductAddViewBase', ...
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
Context: [Previous code... ~10,000 lines omitted for brevity] class ProductDownloadFilesView(LaunchpadView, SortSeriesMixin, ProductDownloadFileMixin): """View class for the product's file downloads page.""" batch_size = config.launchpad.download_bat...
Please complete the code given below. /* KeePass Password Safe - The Open-Source Password Manager Copyright (C) 2003-2019 Dominik Reichl <dominik.reichl@t-online.de> 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 F...
[ "\t\t\t\ttry { RtlApplyToControls(form.Controls); }" ]
511
lcc
csharp
null
6d015d2fedcdf18b400b44406bfa6c05a907c32559c2fac3
96
Your task is code completion. /* KeePass Password Safe - The Open-Source Password Manager Copyright (C) 2003-2019 Dominik Reichl <dominik.reichl@t-online.de> 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 Softw...
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 the brevity] public static void Save(KPTranslation kpTrl, Stream sOut, IXmlSerializerEx xs) { if(xs == null) throw new ArgumentNullException("xs"); #if !KeePassLibSD using(GZipStream gz ...
Please complete the code given below. /** * @author : Paul Taylor * @author : Eric Farng * * Version @version:$Id$ * * MusicTag Copyright (C)2003,2004 * * 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 t...
[ " temp >>= 8;" ]
917
lcc
java
null
de844ece27c689ffd57823fb8131dd2a4050b2ce6d5802d8
97
Your task is code completion. /** * @author : Paul Taylor * @author : Eric Farng * * Version @version:$Id$ * * MusicTag Copyright (C)2003,2004 * * 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 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 code completion task: Context: [Previous code... ~10,000 lines omitted for brevity] public class NumberVariableLength extends AbstractDataType { private static final int MINIMUM_NO_OF_DIGITS = 1; private static final int MAXIMUM_NO_OF_DIGITS = 8; int minLength = MINI...
Please complete the code given below. # Copyright (c) 2017 Mark D. Hill and David A. Wood # 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 co...
[ " if flag == 'exclude_tags':" ]
1,382
lcc
python
null
0eae36deb9dbeb31e09db8bd01a91ef5b679925d700f9563
98
Your task is code completion. # Copyright (c) 2017 Mark D. Hill and David A. Wood # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright #...
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 compile_tag_regex(positional_tags): if not positional_tags: return positional_tags else: new_positional_tags_list = [] positional_tags = positional_tags[0]...
Please complete the code given below. using System; using System.Globalization; using System.Reflection; namespace CorApi2.Metadata { namespace Microsoft.Samples.Debugging.CorMetadata { public class MethodGenericParameter : GenericParameter { public MethodGenericParameter (int index...
[ " return new object[0];" ]
545
lcc
csharp
null
d9e11801221dccea3ae87a56625d947443bb2bb387b8a83d
99
Your task is code completion. using System; using System.Globalization; using System.Reflection; namespace CorApi2.Metadata { namespace Microsoft.Samples.Debugging.CorMetadata { public class MethodGenericParameter : GenericParameter { public MethodGenericParameter (int index) : base ...
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:** `public override object[] GetCustomAttributes (Type attributeType, bool inherit)` **Relevant Information:** - We are in the `GetCustomAttributes` method, which is part of the `Type` class. - This method is used to get the custom attributes of a type. - The method ta...