input
stringlengths
0
1.96k
context
stringlengths
1.23k
257k
answers
listlengths
1
5
length
int32
399
40.5k
dataset
stringclasses
10 values
language
stringclasses
5 values
all_classes
listlengths
_id
stringlengths
48
48
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Andreas Korb <andreas.d.korb@gmail.com> # Copyright (C) Nils Weiss <nils@we155.de> # This program is published under a GPLv2 license from scapy.fields import StrFixedLenField, BitEnumField, BitField, \ Scali...
[ " 0x06: 'EOBD (Europe) '," ]
557
lcc
python
null
bfeb58c9afcb4b7dfc22c93238798de6b1c61704eb37134a
#!/usr/bin/env python # # Copyright 2011 Stef Walter # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; either version 2 of the licence or (at # your option) any later version. # # See the...
[ "\t\tloop = gobject.MainLoop()" ]
1,595
lcc
python
null
fe11c4d3c4d9b1392973aed3ba28df9d9cf6a13123cc8e59
using System; using Server.Items; using Server.Spells; namespace Server.Engines.Craft { public class DefInscription : CraftSystem { public override SkillName MainSkill { get { return SkillName.Inscribe; } } public override int G...
[ " this.AddRes(index, typeof(BlackPearl), 1044353, 1, 1044253);" ]
1,615
lcc
csharp
null
faf59e122b5cf0c3acab0447bcd6a53f208c972065c8414a
# -*- coding: utf-8 -*- """ flask.ctx ~~~~~~~~~ Implements the objects required to keep the context. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement import sys from functools import update_wrapper from werkzeug.exceptions...
[ " app_ctx = self._implicit_app_ctx_stack.pop()" ]
1,358
lcc
python
null
5cba5adbc6ed3521940b6a136fc48a061a432b5260ca8c1f
# -*- coding: utf-8 -*- """ Copyright (C) 2011 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib import logging from functools import wraps # SQLAlchemy from sqlalchemy impo...
[ " response = _pubsub_consumer(session, cluster_id, query_wrapper)" ]
2,251
lcc
python
null
9621a523cfd2361541d82c5585397ca2326e223496d5585c
/* * AMW - Automated Middleware allows you to manage the configurations of * your Java EE applications on an unlimited number of different environments * with various versions, including the automated deployment of those apps. * Copyright (C) 2013-2016 by Puzzle ITC * * This program is free software: you can redi...
[ " if (resourceEntityForRelease != null) {" ]
1,149
lcc
java
null
693b0b0207d00086cfcee5f5943068055d8630c9db62e018
# Copyright 2014-2016 The ODL development group # # This file is part of ODL. # # ODL is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. #...
[ " dx = ray_trafo.range.meshgrid[1]" ]
1,057
lcc
python
null
6515bcd028819c4ca6bc104bc8610724275c7ed4d429f30c
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 ...
[ " logger.log(u\"Proxified REGEX: \" + regx, logger.DEBUG)" ]
1,751
lcc
python
null
73869275419cb7e29c3d7b53bed42f41e39223637ced7d1d
// // System.Web.UI.WebControls.FontUnit.cs // // Authors: // Miguel de Icaza (miguel@novell.com) // Ben Maurer (bmaurer@ximian.com). // // Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associate...
[ "\t\t\tif (type == FontSize.NotSet)" ]
726
lcc
csharp
null
a1362f2667219e18121103e3f58abc48d5b819038a41374c
using System; using System.Collections; using Nequeo.Cryptography.Key.Crypto.Parameters; using Nequeo.Cryptography.Key.Math; using Nequeo.Cryptography.Key.Utilities; namespace Nequeo.Cryptography.Key.Crypto.Engines { /** * NaccacheStern Engine. For details on this cipher, please see * http://www.gemplus.com/smart/rd...
[ "\t\t\t\t\t\t|| (block2.Length > GetInputBlockSize()))" ]
924
lcc
csharp
null
dc4f68ed20529e95f1739fef515a496692b2f641f11bc128
using NUnit.Framework; using System; using NConfiguration.Json.Parsing; using System.Linq; namespace NConfiguration.Json { [TestFixture] public class ParsingTests { [TestCase(@"[""Unclosed array""")] [TestCase(@"{unquoted_key: ""keys must be quoted""}")] [TestCase(@"[""extra comma"",]")] [TestCase(@"[""doubl...
[ "\t\t\tobj = (JObject)obj.Properties[0].Value;" ]
537
lcc
csharp
null
05a84c831d09b24c15be892934f316b53ccabf77bfe3253f
/* * WANDORA Knowledge Extraction, Management, and Publishing Application * http://wandora.org * * Copyright (C) 2004-2016 Wandora Team * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, ...
[ " for (int w = 0; w < width; w++) {" ]
1,282
lcc
java
null
74db7236c3c75feb5089de045fc0919ca9061c171999a049
import pathlib import warnings import numpy as np import dclab from dclab import isoelastics as iso from dclab.features import emodulus from dclab.features.emodulus import pxcorr from helper_methods import example_data_dict def get_isofile(name="example_isoelastics.txt"): thisdir = pathlib.Path(__file__).parent ...
[ " i1 = iso.get_default()" ]
761
lcc
python
null
815f132424cf8772d1a660e02d231ddd3309d07fe636e616
/* Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved. Contact: SYSTAP, LLC DBA Blazegraph 2501 Calvert ST NW #106 Washington, DC 20008 licenses@blazegraph.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
[ " if (args.length < 2 || args.length > 3) {" ]
1,331
lcc
java
null
0ab3fa6fa37f02b5f789515e8bd2a7357fa959242a06e4e3
#!/usr/bin/env python """ Test alerts """ import unittest import datetime from dateutil.tz import tzutc from spotbot import alert def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): """ Borrow isclose from Python 3.5 """ return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) class AlertTest(unittest.TestCase...
[ " {u'Timestamp': datetime.datetime(2015, 12, 31, 21, 29, 47," ]
706
lcc
python
null
ec079a446c9b8d37501282c4d7ea9038eeec3621948ada9e
package fr.inria.arles.yarta.desktop.library.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java....
[ "\t\t\tString downloadedJarFile = performDownload();" ]
519
lcc
java
null
2048127690b0643c5439f0746443d4a8223e39ac290d9891
#region Copyright & License Information /* * Copyright 2007-2019 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of * the Licen...
[ "\t\t\tif (context != IntPtr.Zero)" ]
469
lcc
csharp
null
704587a1d393bef058060b716bb0ae02a9df9635baed95b0
try: import typing # help IDEs with type-hinting inside docstrings except ImportError: pass import numpy # help IDEs with type-hinting inside docstrings from collections import OrderedDict from copy import deepcopy import numpy as np from ...core.error import CovMat from ...tools import print_dict_as_table fr...
[ " projected onto the *y* axis. :py:obj:`None` if singular." ]
985
lcc
python
null
846340ba2c3c023a2837435e9ce17bc793645f33a20dcb42
/* * This library is part of OpenCms - * the Open Source Content Management System * * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by th...
[ " if (this == EMPTY) {" ]
703
lcc
java
null
1915494441abd4076b5a0f96dc9ffb2c41a828a4c1abde95
/************************************************************************* * Copyright 2009-2015 Eucalyptus Systems, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3 of the ...
[ " adminUser = getEucalyptusAdmin();" ]
4,345
lcc
java
null
cf6d3d1f0f07aeb719a37db4e37a1cd437cb894df0b12bdd
#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 modify it under the terms of the GN...
[ " add { _selectedFolderChanged += value; }" ]
666
lcc
csharp
null
2a81205ef1f5abf727ff63850ffd1162fadd475e92b2d3ca
package org.ovirt.engine.core.bll; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyList; import static org.mocki...
[ " ImportVmTemplateParameters parameters = createParameters();" ]
616
lcc
java
null
b8a0388946b2d3e0cf2a7f1db681ccb8c70cc44275b2f173
// This file has been generated by the GUI designer. Do not modify. namespace BlinkStickClient { public partial class CpuEditorWidget { private global::Gtk.VBox vbox2; private global::Gtk.Frame frame1; private global::Gtk.Alignment GtkAlignment; private global::Gtk.VBox vbox3; private global::G...
[ "\t\t\tw10.TopAttach = ((uint)(1));" ]
650
lcc
csharp
null
6261fc22209c7ae19b5098f7004853c527e546aedd74f793
# -*- encoding: utf-8 -*- # # A scripting wrapper for NZBGet's Post Processing Scripting # # Copyright (C) 2014 Chris Caron <lead2gold@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Fou...
[ " environ['%sCATEGORY' % POSTPROC_ENVIRO_ID] = \\" ]
1,764
lcc
python
null
a5e1e43a793649afc91e7bd083f0d034f0df3e24509c448e
/* Copyright (C) 2008-2011 Jeroen Frijters This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercia...
[ "\t\t\treturn new ConstructorBuilder(mb);" ]
910
lcc
csharp
null
6b78cc0ec714622bb22d89aa972b1eae59e59788b357955a
// Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! #pragma warning disable 1591 #region Designer generated code using pb = global::Google.ProtocolBuffers; using pbc = global::Google.ProtocolBuffers.Collections; using pbd = global::Google.ProtocolBuffers.Descript...
[ " return (Builder) new Builder().MergeFrom(prototype);" ]
1,897
lcc
csharp
null
773a363f2c8a3fdcc084a85466fde2a1350769f67776f1f4
/* * Copyright (c) 2003-2009 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
[ " vertices[x] = new Vector3f();" ]
1,059
lcc
java
null
1354213b38f26ed15b8f898742ff5002cfb7db09baf32dd7
/* * File : $Source: /alkacon/cvs/alkacon/com.alkacon.opencms.documentcenter/src/com/alkacon/opencms/documentcenter/CmsDocumentFrontend.java,v $ * Date : $Date: 2010/03/19 15:31:13 $ * Version: $Revision: 1.3 $ * * This file is part of the Alkacon OpenCms Add-On Module Package * * Copyright (c) 2010 Alkacon ...
[ " if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(showDateData)) {" ]
1,920
lcc
java
null
5b8e2643405d58c8009b6c2812341072d705748a64e8f971
// Copyright 2014 Invex Games http://invexgames.com // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed...
[ "\t\t\tyield return new WaitForEndOfFrame();" ]
583
lcc
csharp
null
6f54b8bdeec79fa980ac72092ce615f8de384ea5d04ccc11
using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace mRemoteNG.UI.TaskDialog { public sealed partial class CommandButton : Button { //-------------------------------------------------------------------------------- #region PRI...
[ " int h = GetBestHeight();" ]
638
lcc
csharp
null
9ee2a42b13526dd952de8a27bb5404cee70aa93dc9e35ee7
// // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // timop // // Copyright 2004-2013 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publish...
[ " lastUser = r[\"CreatedBy\"].ToString();" ]
864
lcc
csharp
null
fee4dc71675158dd9374b556629af2d83cdc0503955dba84
#region Copyright & License Information /* * Copyright 2007-2014 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation. For more information, * see COP...
[ "\t\t\t\tdirections |= ScrollDirection.Right;" ]
598
lcc
csharp
null
91b83a11b6dc2c86381251a96905d31244b8ac184fe12ef5
// // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // peters // // Copyright 2004-2012 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publis...
[ " string[] CriteriaCodesUsedArray = CriteriaCodesUsed.ToArray();" ]
1,562
lcc
csharp
null
56926abd2bf7483455bb0fefd23ad8e304fab1e8b70b8eee
/* * Phosphorus Five, copyright 2014 - 2017, Thomas Hansen, thomas@gaiasoul.com * * This file is part of Phosphorus Five. * * Phosphorus Five is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3, as published by * the Free Software Foundation. ...
[ " stream.Read (buffer, 0, buffer.Length);" ]
722
lcc
csharp
null
50f7d00750145f888361c63d85ebf5e9fb68a039385b8255
# # Copyright (C) 2019 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it will be...
[ " return not any(self._reqs.values())" ]
879
lcc
python
null
59b6354e9591524b4ada354f2fa122917bcd1253262c12f2
#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 modify it under the terms of the GN...
[ "\t\t\tget { return Enabled && _numberOfImages > 2; }" ]
1,205
lcc
csharp
null
949612e418b169f935d6b0410ff5626ba21152c71a086f2d
using System; using System.Runtime.InteropServices; using System.Text; using System.IO; using System.Xml; using Mono.Unix; using Mono.Unix.Native; using Hyena; using NDesk.DBus; using org.gnome.SessionManager; namespace Tomboy { public class GnomeApplication : INativeApplication { #if PANEL_APPLET private Gnome.Pro...
[ "\t\t\tget { return dataDir; }" ]
614
lcc
csharp
null
e2ce1e79b1ea6b76bdda716904c17e746e52a6a0261ef941
/* * FindBugs - Find bugs in Java programs * Copyright (C) 2003-2008, University of Maryland * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, ...
[ " if (bugAnnotation instanceof PackageMemberAnnotation) {" ]
733
lcc
java
null
cb3e34be4795caaf719f520787549681e8b00fbac71530a7
using System; using System.Collections; using Server.Network; using System.Collections.Generic; using Server.ContextMenus; namespace Server.Items { public abstract class Food : Item { private Mobile m_Poisoner; private Poison m_Poison; private int m_FillFactor; [CommandProperty( AccessLevel.GameMaster )] pu...
[ "\t[TypeAlias( \"Server.Items.Pizza\" )]" ]
1,914
lcc
csharp
null
c539b59ccd2559e5f2823b3d0c876ed3d71dad59f7a6e121
using EloBuddy; using LeagueSharp.Common; namespace Flowers_ADC_Series.Pluging { using ADCCOMMON; using System; using System.Linq; using LeagueSharp; using LeagueSharp.Common; using Color = System.Drawing.Color; internal class KogMaw : Logic { public KogMaw() { ...
[ " if (eFarm.MinionsHit >= Menu.GetSlider(\"LaneClearECount\"))" ]
993
lcc
csharp
null
d8843d3a7c6577b304c94d48767a3f75337b2aeadd3c5f76
package ch.sfdr.fractals.gui.component; import java.awt.GridBagConstraints; import java.awt.Insets; /** * GBC, a small helper class to create GridBagConstraints in a more readable way * with less typing: just use the static methods when adding a component, eg. * <code> * container.add(someComponent, GBC.get(0, 0,...
[ "\t\treturn get(x, y, width, height, 0.0, 0.0, DEFAULT_FILL, anchor);" ]
691
lcc
java
null
9812a3e53ee25cf9a764b1de80d781f37d829475a8bf8980
#!/usr/bin/env python3 # vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab ######################################################################### # Copyright 2012-2013 Marcus Popp marcus@popp.mx ######################################################################### # ...
[ " filexml = self._retr_file(filename)" ]
709
lcc
python
null
140b5a1cf9a62eb1f7eac54fcb8dec74b23e9ea6e4d3d93a
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2014 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) a...
[ " value = {'a': 'Awesome title', 'b': 'sub title', 'k': 'form'}" ]
559
lcc
python
null
377a5cd5de82ca79a2db39ae2f6c6eefe06766c9245639af
/////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2006-2015 Esper Team. All rights reserved. / // http://esper.codehaus.org / // -----------------------------------------------------...
[ " new[] {new object[] {10L, \"E1\"}});" ]
2,245
lcc
csharp
null
3b38e1fde0c4d94fe262da07601e96359f818e86edae6271
from ctypes import Structure, c_double, c_int, byref, memmove, sizeof, c_uint32, c_uint, c_ulong from . import clibrebound import math import ctypes.util import rebound import sys import random __all__ = ["Particle"] def notNone(a): """ Returns True if array a contains at least one element that is not None. Ret...
[ " c = self.copy()" ]
2,793
lcc
python
null
87167f35efb4266c3e3919ffabd45083b35092d703ea2b45
# -*- coding: utf-8 -*- import copy import re import simplejson import werkzeug from lxml import etree, html from openerp import SUPERUSER_ID from openerp.addons.website.models import website from openerp.http import request from openerp.osv import osv, fields class view(osv.osv): _inherit = "ir.ui.view" _colum...
[ " view = self.browse(cr, SUPERUSER_ID, res_id, context=context)" ]
739
lcc
python
null
f1012042daf639a1e2d064433991b95b1734be709802fbc1
/* * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
[ " value = BasicHTML.createHTMLView(c, text);" ]
980
lcc
java
null
79f8206b5d5b0bfc5beeb608d3ce99dca25c4d4a1db02f09
import os import pytest from six import BytesIO from ..sourcefile import SourceFile, read_script_metadata, js_meta_re, python_meta_re def create(filename, contents=b""): assert isinstance(contents, bytes) return SourceFile("/", filename, "/", contents=contents) def items(s): item_type, items = s.manifest_it...
[ " s = create(filename, content)" ]
633
lcc
python
null
d15c99c3eb39bc99358e7e6768ef9b03d171255c2c8c033a
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using NHibernate.Cfg.MappingSchema; using NHibernate.Persister.Collection; using NHibernate.UserTypes; namespace NHibernate.Mapping.ByCode.Impl { public class MapMapper : IMapPropertiesMapper { private readonly IAccessorProp...
[ "\t\t\t\tmapping.loader = new HbmLoader();" ]
620
lcc
csharp
null
941de4a30042444c37ae61552e7f11d288717b818793b5d1
using System; namespace Server.Factions { public class FactionState { private Faction m_Faction; private Mobile m_Commander; private int m_Tithe; private int m_Silver; private PlayerStateCollection m_Members; private Election m_Election; private FactionItemCollection m_FactionItems; private FactionTra...
[ "\t\t\twriter.WriteEncodedInt( (int) m_Members.Count );" ]
670
lcc
csharp
null
8beb1da6b11326207584621c562d0cde00dc7c7e21ffd3f0
/* * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
[ " assert graphQueue.size() <= maxGraphs;" ]
2,259
lcc
java
null
67ef14339142182591850f1edd39a2ecbd4e4b7e0f37c376
#!/usr/bin/env python2 from cfme.utils.conf import docker as docker_conf from cfme.utils.net import random_port, my_ip_address import argparse import fauxfactory import requests import os import os.path import docker import re import subprocess import sys import yaml from six.moves.urllib.parse import urlsplit def _dgc...
[ " self.args['pytest'] = \"py.test {}\".format(pytest)" ]
951
lcc
python
null
7b8b8a69f57173dd972113558b3540a67621319e219d30c4
/* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
[ " if (phi) {" ]
810
lcc
java
null
f6536b39e8505ccb4c694576fea0f11053ae3a52c68fe5c6
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
[ " if (mCallback != null) {" ]
587
lcc
java
null
eda13b1d2aeeeac450c99e7b1bd4ab5d92449eda79b54da5
using Server; using System; using Server.Mobiles; using Server.Gumps; using System.Collections.Generic; using Server.Engines.Quests; using Server.Network; using Server.ContextMenus; using Server.Multis; namespace Server.Items { public class MyrmidexRewardBag : Backpack { public MyrmidexRewardBag() ...
[ "\t\t\t\tGump g = new Gump(0, 0);" ]
854
lcc
csharp
null
93191c3c840c04430c2e0222e3643013a8af4e2b709e6f95
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014, 2015 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any...
[ "] + models)" ]
609
lcc
python
null
588825a49d4fdd244fc2fb3cce5086b306490b945a3bc787
# This file is part of xmpp-backends (https://github.com/mathiasertl/xmpp-backends). # # xmpp-backends is free software: you can redistribute it and/or modify it under the terms of the GNU General # Public License as published by the Free Software Foundation, either version 3 of the License, or (at your # option) any l...
[ " user = '%s@%s' % (username, domain)" ]
744
lcc
python
null
a94d83a5503d88913110cc5d278d085fdccea0e30d2e9d9b
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT (see LICENSE file provided) # vim600: fdm=marker tabstop=4 shiftwidth=4 expandtab ai # # This file has been modified by Manuel Saelices <msaelices _at_ yaco.es> # and belongs to David JEAN LOUIS <izimobil@gmail.com>. # # You can find more information about...
[ " - *fpath*: string, full or relative path to the file." ]
2,528
lcc
python
null
a80d3f058a72bdd5747b39d44c4b55204d02f090d3568cee
""" Runs few integrity checks """ __RCSID__ = "$Id$" from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Core.Utilities.List import sortList from DIRAC.Co...
[ " if not res['OK']:" ]
873
lcc
python
null
924bc05657c826f5fa04974021bf21c5946ff1d3a39ea9ef
/* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ package freenet.client.filter; import freenet.client.filter.HTMLFilter.ParsedTag; import freenet.clients.http.Externa...
[ "\t\t\tString path = uri.getPath();" ]
1,604
lcc
java
null
e19ebd2a302575d8fb0c11be6536df7e0face2889546ed8d
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
[ " gsp = yield self.setupGerritStatusPush(reviewCB=sampleReviewCB," ]
958
lcc
python
null
6dad6c68d75d75e242d0bbeb5900a85521954edf3aeb5975
#!/usr/bin/python # -*-*- encoding: utf-8 -*-*- # # Copyright (C) 2006 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
[ " self.category = atom.Category()" ]
629
lcc
python
null
0bad08e092a4b3c97228cda53b001b7ddfd62dc3a8be077b
package org.checkerframework.checker.igj; import org.checkerframework.checker.igj.qual.AssignsFields; import org.checkerframework.checker.igj.qual.I; import org.checkerframework.checker.igj.qual.Immutable; import org.checkerframework.checker.igj.qual.Mutable; import org.checkerframework.checker.igj.qual.ReadOnly; impor...
[ " Map<String, AnnotationMirror> r2) {" ]
2,339
lcc
java
null
0d5ebe09775314436fb1f120cb4c0d408be485ca49b27ab0
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ " col = split.column()" ]
2,052
lcc
python
null
6303ed98c58fa08f8639667add933df524657e812b3495b5
using System; using NesHd.Core.Memory; using NesHd.Core.Memory.Mappers; namespace NesHd.Core.Misc { [Serializable] public class StateHolder { #region CPU public int CycleCounter; private int _cyclesPerScanline; private bool _flagB; private bool _flagC; private...
[ " if (_engine.Memory.Map.Cartridge.MapperNo == 16)" ]
1,369
lcc
csharp
null
23b0090fa6618a3171db2086d8cc9478f03e22182380161d
/************************************************************************* * * The Contents of this file are made available subject to the terms of * the BSD license. * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * * Redistribution and use in source and binary forms, with or...
[ " String[] sTDocUrls = m_oInspector.getTDocUrls();" ]
594
lcc
java
null
4d661a278930364d65e248d5f8bbbf7992b0f866443d527f
//--- Aura Script ----------------------------------------------------------- // Aranwen //--- Description ----------------------------------------------------------- // Teacher //--------------------------------------------------------------------------- public class AranwenScript : NpcScript { public override void L...
[ "\t\tAdd(\"Party Quest\", 70025); // Party Quest Scroll [30 Red Bears]" ]
1,340
lcc
csharp
null
972aa86922fe3fc5000647badc4783f41e4e10f292b5d31b
using System; using Android.App; using Android.Widget; using Android.Graphics; using Java.Interop; using Android.Animation; using Android.Util; using Android.Graphics.Drawables; using Android.Runtime; using Android.Views; namespace StartClockApp { internal class UIView : RelativeLayout { public const string LEFT_MA...
[ "\t\t\tMeasure (0, 0);" ]
853
lcc
csharp
null
d9359fe4b11ff3d0cc4c2102fccceb75920f6435962b6b84
""" Data models for the announcements app. """ from django.db import models from django.conf import settings from django.core.urlresolvers import reverse from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from apps.tools.utils import unique_slug from apps.tools.models import Model...
[ " return '%s -> %s' % (self.announcement, self.tweet_id)" ]
846
lcc
python
null
795a770e3d8fd600446fa22b4ced986b2139cc631f903b24
# -*- coding: utf-8 -*- # # Kotori documentation build configuration file, created by # sphinx-quickstart on Fri Nov 6 21:36:37 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
[ "lexers['php'] = PhpLexer(startinline=True)" ]
1,773
lcc
python
null
9ff8464a2c0b3eaf3e56da2bde63d1a0b3109df20a251c6e
import settings import string import datetime import time from time import mktime import sqlite3 import pytz from datetime import timedelta # Creates or opens a file called mydb with a SQLite3 DB db = sqlite3.connect('flogger.sql3') # Get a cursor object cursor = db.cursor() cursor.execute('''CREATE TABLE IF NOT EXIST...
[ " ORDER BY sdate, stime ''', (i,))" ]
1,259
lcc
python
null
3a72959ac7abd9d2f988ade3c891be2582b4b66a6cc74678
#!/usr/bin/env python3 import datetime, json, os, requests, rethinkdb, shutil, signal, socket, subprocess, time HOSTS = '/node/etc/hosts' # POD_NAMESPACE must be explicitly set in deployment yaml using downward api -- # see https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/user-guide/downward-api.md POD_NA...
[ " last_snapshot = timestamp_to_rethinkdb(timestamp)" ]
896
lcc
python
null
d6e15d0ebb2aa304bba431f5e996732e5585011c1cec782a
//--- Aura Script ----------------------------------------------------------- // Deian //--- Description ----------------------------------------------------------- // Shepard - manages the sheep at Tir Chonaill Grassland //--------------------------------------------------------------------------- public class DeianSc...
[ "\t\t\t\tMsg(\"Welcome to the real world...\");" ]
1,740
lcc
csharp
null
2c8143e18e8a59b4e401fca8446e57b31d54c7fc033009c7
#!/usr/bin/env python # # This file is part of aDBa. # # aDBa is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # aDBa is distributed i...
[ "\t\tname\t- aname/ename/gname" ]
2,041
lcc
python
null
997526c4ebbb7938e65ea14362c83fde9d979401f5f5f445
# (c) 2016 Matt Clay <matt@mystile.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # ...
[ " self.start = time.time()" ]
793
lcc
python
null
1be8fdfd322b9ece97d70593dac71eecdd59539ab7ef69d7
package com.germainz.crappalinks; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; i...
[ " Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));" ]
690
lcc
java
null
6a8feeca0aea2095a4c5fc0c58f18f3456556c6af9b7374a
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import behave import re import os import tempfile import glob from lib.file import decompress_file_by_extension_to_dir from common.lib.behave_ext import check_context_table from common.lib.diff import print_lines_diff f...
[ " if (len(primary.keys()) > 0):" ]
918
lcc
python
null
fd3a1a817ea75abb6d8f7040fcfb3ee43dbfe07e4e6d9408
# This module should be kept compatible with Python 2.1. __revision__ = "$Id: install_lib.py 4802 2007-01-23 21:26:03Z vapier $" import sys, os, string from types import IntType from distutils.core import Command from distutils.errors import DistutilsOptionError # Extension for Python source files. PYTHON_SOURCE_EXTENS...
[ " build_ext = self.get_finalized_command('build_ext')" ]
791
lcc
python
null
b6029cffa6f017e686e2303165fc1ebc437fad4e837e5e05
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Text; using NHibernate.AdoNet; using NHibernate.Cache; using NHibernate.Cache.Entry; using NHibernate.Dialect.Lock; using NHibernate.Engine; using NHibernate.Exceptions; using NHibernate.I...
[ "\t\t\tfor (int j = 0; j < lazyPropertyNames.Length; j++)" ]
3,626
lcc
csharp
null
afaa47c3e50b88c722f2e7e2f9bb3b1204f8b80e185f355f
# -*- coding: utf-8 -*- # # @file sge_jobs.py # # @remark Copyright 2014 Philippe Elie # @remark Read the file COPYING # # @author Philippe Elie import sys import os sys.path.append(os.path.expanduser('~/phe/common')) import utils import json import hashlib import time import MySQLdb import subprocess import qstat impo...
[ " '-l', 'h_vmem=%dM' % request['job_max_vmem']," ]
1,274
lcc
python
null
9ac83f0cb7aff9cd52581d7e6d5bce356b4f5531fcc7b4f2
namespace App.Mvc.Controllers { using Contracts; using Mvc; using Contracts.Services; using Models; using Filters; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using System.Web; [Filters.ExceptionHandler] public class DelegateController : Controller...
[ " return View(\"Form\", new DelegateViewModel());" ]
1,017
lcc
csharp
null
abeb767e6c37cee48470e6764ac480ad487fef3e3fc93bba
#region License /* Copyright 2014 - 2015 Nikita Bernthaler Report.cs is part of SFXUtility. SFXUtility is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any...
[ " var circle = (Circle) obj;" ]
668
lcc
csharp
null
9db6b4d2545835b0eb906eb67dce37abd8a18390ff3dd44b
# -*- coding: utf-8 -*- import re from module.common.json_layer import json_loads from module.network.RequestFactory import getURL from module.plugins.Hoster import Hoster from module.plugins.Plugin import chunks from module.plugins.internal.CaptchaService import ReCaptcha from module.plugins.internal.SimpleHoster impo...
[ " elif res['error_code'] in [\"606\", \"607\", \"608\"]:" ]
545
lcc
python
null
58414c770f11b4a32f9d1c67426fd6d8e2028e408a27f131
#region Copyright & License Information /* * Copyright 2007-2019 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of * the Licen...
[ "\t\t\tif (path.Count > 0)" ]
747
lcc
csharp
null
f964e1772f2adb4100531633f6287a54c98f80ddd622f9d8
""" Builds out filesystem trees/data based on the object tree. This is the code behind 'cobbler sync'. Copyright 2006-2009, Red Hat, Inc and Others Michael DeHaan <michael.dehaan AT gmail> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
[ " self.logger.error(\"%s failed\" % service_name)" ]
750
lcc
python
null
3cc6d50befc6ded615d39d3b18b791d8f06b80ca3b2642b3
package org.yamcs.events; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.yamcs.yarch.protobuf.Db.Event; import org.yamcs.protobuf.Yamcs.Event.EventSeverity; /** * Default implementation of an Even...
[ " long t = getMissionTime();" ]
575
lcc
java
null
7630f3d4fd6c44654c13b705304c20adea2cf0798b4dc72c
#region Using using System; using System.IO; #endregion // This is a port of Dmitry Shkarin's PPMd Variant I Revision 1. // Ported by Michael Bone (mjbone03@yahoo.com.au). namespace SharpCompress.Compressors.PPMd.I1 { /// <summary> /// The model. /// </summary> internal partial class Model { ...
[ " if (state != PpmState.ZERO)" ]
2,203
lcc
csharp
null
6cc90781be873e3f526e24b432fa2997332f4aef86d6a696
#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 modify it under the terms of the GN...
[ " return new DicomAttributeSL(tag, bb);" ]
1,113
lcc
csharp
null
b6d055c89ca6a6c261a27807c672673ece45777ad9806d2e
/* * 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 version. * * ChronoJump...
[ "\t\t\tint sessionID = Convert.ToInt32(tFull[3]);" ]
2,057
lcc
csharp
null
5d7f05b8f84258ef580014f750f774d8eb4af59aa074f04a
from mutagen._util import DictMixin, cdata, insert_bytes, delete_bytes from mutagen._util import decode_terminated, split_escape, dict_match, enum from mutagen._util import BitReader, BitReaderError, set_win32_unicode_argv from mutagen._compat import text_type, itervalues, iterkeys, iteritems, PY2, \ cBytesIO, xran...
[ " o = self.file(b'abcdefghij')" ]
694
lcc
python
null
8ed6880ab3b5c6188940a9999bc369708c565891b8d871f2
<?cs include:"doctype.cs" ?> <?cs include:"macros.cs" ?> <html devsite> <?cs if:sdk.redirect ?> <head> <title>Redirecting...</title> <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs else ?>index.html<?cs /if ?>"> <lin...
[ " <td><?cs var:sdk.win64_bundle_bytes ?> bytes</td>" ]
478
lcc
csharp
null
7a221b8009c1d73293e9a45c3c9dc18eb109dc4e8c6cef92
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import glob import json from math import sqrt import re import sys import matplotli...
[ " ymin = csi_95[0]" ]
565
lcc
python
null
728682005fc144f5d03a92ebb7f121b7ceb08648eff87ba8
# -*- test-case-name: twisted.python.test.test_util # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.python.util}. """ from __future__ import division, absolute_import import errno import os.path import shutil import sys import warnings try: import pwd, grp except Impo...
[ " self._testUIDGIDSwitch(1, 0, 2, 1, [0, 2, 0, 1], [1, 0])" ]
2,189
lcc
python
null
7e20f7645ae46306c1c075059d48f64e2003534e7b1502c4
package com.entrepidea.swing.components.checkbox; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.Serializable; import javax.s...
[ "\t\t\t\t\tdrawPressed3DBorder(g, x, y, controlSize, controlSize);" ]
518
lcc
java
null
971fbab8c3ab0ce2be833fead765ea9d6620fe3529e6e4f2
#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditio...
[ " winner, _inferenceResult, _dist, _categoryDist = knn.infer(v[2])" ]
685
lcc
python
null
397181750c46cc7bb5cfa79f1f6812770ddf55fc6dac89cd
/* * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
[ " final int index = (offset - headerSize()) / elementSize();" ]
681
lcc
java
null
0eae7d0813189dfb61921a6690103cb83cdea076b845d152
// pNAnt - A parallel .NET build tool // Copyright (C) 2016 Nathan Daniels // Original NAnt Copyright (C) 2001-2004 Gerry Shaw // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either versio...
[ " if (!String.IsNullOrEmpty(relativePath)) {" ]
1,081
lcc
csharp
null
27f6b503096cf445095535f5a908b7e00038cf4f23a5d499
""" Utilities """ # Consistency from __future__ import print_function import copy import getpass import re import readline import sys py_version = sys.version_info.major if py_version == 2: import urllib else: import urllib.parse as urllib try: import termcolor if sys.platform == 'win32': # Only...
[ " return string.format(*args, **kwargs)" ]
884
lcc
python
null
6b8b92b2b253189141dc998a845e117ddb34a9ced10cda39
package org.netlib.lapack; import org.netlib.blas.Dcopy; import org.netlib.err.Xerbla; import org.netlib.util.doubleW; import org.netlib.util.intW; public final class Dlasda { public static void dlasda(int paramInt1, int paramInt2, int paramInt3, int paramInt4, double[] paramArrayOfDouble1, int paramInt5, double[] pa...
[ " if ((i != i7 ? 0 : 1) != 0) {" ]
1,437
lcc
java
null
2249fb5b605f86689474ffb501216d8475418e32ce63adab
using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Mixamo { public interface TransitionHandler { string[] KeyControls(); bool CanTransitionTo( string guard , string source , string destination ); } /// <summary> /// A class for holding all the control parameters (weight...
[ "\t\t\t\tstr += s.ToString() + \"\\n\";" ]
1,300
lcc
csharp
null
a1c2bff96d6d3cb3e23f9ea2a0029d635c3ebc32eb87a05c