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
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; using Server.Spells.Chivalry; us...
[ "\t\t\t\tParticipant p = (Participant)m_Participants[i];" ]
5,243
lcc
csharp
null
28ce5cf5e0beeb47248c6cba20ae17fa71d60d402770d464
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 (u, v, data) tuples. This i...
[ "\t\t\tZ_.add_edge(e_u, e_v, **data.copy())" ]
1,069
lcc
python
null
ca807f49d7c6f84dcae3df694bde685aa7f75a02e9d4f574
#! /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, available_file_formats from ...
[ " rfd, fd, cfilename = open_tmp_file('rwseektest.wav')" ]
844
lcc
python
null
04429037d9380b6e9c3f7b2070992a5af10745895025113c
#!/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 _VIDEO_TITLE = ".main-tit...
[ " if e.text == language:" ]
462
lcc
python
null
9bc1f81e1a4c4b44da11ffc093a0c9fecbe5f99e4eff3aa5
/* * $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. * * This program is free software; yo...
[ "\t\t\t\t\tOLStyleValue styleValue = (OLStyleValue) value;" ]
570
lcc
java
null
a5da7e173afd5ba71e0185228a1df77238c2949ba3ea2935
#!/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 PyQt4 from PyQt4.QtGui import (...
[ " longest = max(self.answers)" ]
1,229
lcc
python
null
3bd5a501fc0327fd7bcda8389c7d11b3a821c9b5ce5a93cc
/************************************** *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 Date: 02/04/09 * ...
[ " mob.Target = new SR_NewRuneTarget(RuneAcc);" ]
907
lcc
csharp
null
227b063979c62ee1de7436be168450b5a7712a7a637fa6d4
/* * 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, as * published by the Free ...
[ " for (int i = 0; i < chain.length; i++)" ]
1,820
lcc
java
null
f652398c3e8be338b4a7873ba6fecc5a686204d99a1a8d10
/* * 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 of the * License, or (at your ...
[ " sp = new JESpace(name, path);" ]
1,096
lcc
java
null
01b11dc980d93775ce16fd5e630cf5619f66f281ee12947b
/* * 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 Software Foundation, either vers...
[ "\t\t\t\t\tpos = btnEnergizeAll.bottom();" ]
567
lcc
java
null
64d5f26d486a85e85284229e8d254f996cfafd844cd321c5
#!/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 program is distributed in the...
[ " length = int(environ['CONTENT_LENGTH'])" ]
1,670
lcc
python
null
8ae06de3dd26783213ae72552d610c4f1518647b7898d383
# -*- 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 PyQt4.QtGui import QLabel from ...
[ " mark = \"setRepeated('%s');\" % status_id" ]
686
lcc
python
null
14de6afab15eabeb4fec480f9d6b4db78e93e0493851cc35
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 import AnalyzeSize from lib.File...
[ " return {\"error\": False}" ]
958
lcc
python
null
1712603d3736689b03586a52e0f51eedd1a2bccd03217fde
// // 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 this software and associated ...
[ "\t\t\tIPermission result = a.Union (b);" ]
778
lcc
csharp
null
e212994f82962f98d4e1be7a5678cfd25eacb4f645df2198
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.security.cert import CertificateE...
[ " certs = []" ]
713
lcc
python
null
e6dca363f4644795057dce35d57cdbc53e1e84bea1699bbf
/* * 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 your option) any later version. ...
[ " User user = getUser(request);" ]
847
lcc
java
null
45be6133b10843a59b2ff2272116e322f7dd795025749020
#!/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 2 of the License, or # (at yo...
[ " self.__tmp_dir, 'datastream.%s.pipe' % uuid.uuid4().hex)" ]
1,276
lcc
python
null
4b93f91719b36d7aee8a2f7f39b3991d464913e3bc3e77b4
/* * 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\t\tif(! option1) {" ]
957
lcc
csharp
null
54df7435e6cdeb9cf80f52a45f4c173229b57b7dfcc77ad7
/* * $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 ASF licenses this file * to you...
[ " if ((args == null) || (args.length == 0)) {" ]
1,570
lcc
java
null
e42bb143aca03ffdde352e012ca3991013aa4f1018e60c8f
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.censoredsoftware.capitalism.entity.Pe...
[ "\t\t\t\tfirms = loadFromFile();" ]
515
lcc
java
null
04233bb10cad37ee372ddcc1ca95b3e2a853d217fa90929e
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; import org.eclipse.jface.preference...
[ "\t\tPreferencePage generalPage = new FieldEditorPreferencePage() {" ]
925
lcc
java
null
36799d0d8e06fa5c217eccd67db779ab9866845eb0713e74
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( "Arch Protection", "Vas Uus Sanct...
[ " if (m_Owner.SpellTarget == null)" ]
538
lcc
csharp
null
82560c22f3648e5086523b10f22179edb1aebdc379fdfaa5
# 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.""" import weakref from itertools im...
[ " for state, dict_ in states.items():" ]
4,268
lcc
python
null
52b05f3e84a4fe67c9a1b15719fbecb75dda4932f22567e9
/****************************************************************************** * 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 this distribution, and is availa...
[ "\t\tfor(IField field : fields) { " ]
1,985
lcc
java
null
1e32291c11bc48e0917860b1de8446dde3fedecd450ef073
#!/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 required by applicable law or a...
[ " like ``r'/foo/?'`` in conjunction with using the decorator." ]
6,502
lcc
python
null
d5dde130982bcbe6f095c65d1d5a928669bc3a458df26cc6
// // 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 (the // "Software"), to deal i...
[ "\t\t\tif ((Controls.Count == 0) && (initialIndex != -1)) " ]
777
lcc
csharp
null
5dbe65a9966abf6a6fdc04cf78e20977f8d24df06849e8e7
#!/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 will be useful, ## but WITHOUT AN...
[ " args = parser.parse_args()" ]
1,225
lcc
python
null
43954d45633ac63acc4badb3892fdb276e080592cc147b1e
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 class ImbuingGumpC : Gump { ...
[ " if (mod >= 156 && mod <= 160)" ]
1,845
lcc
csharp
null
9d639220f2ae9cbb3b86c56287371346450159efa5afc251
# 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 example values for them: * product...
[ " for plat_os in ['Windows', 'Linux', 'Linux 64', 'OS X']:" ]
816
lcc
python
null
03873ecbb96288a84c3d9ea1f5a2a718188d2c8a0c5920ab
/** * 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 Public License as published by ...
[ "\t\tif (projectID==null || issueTypeID==null) {" ]
1,101
lcc
java
null
63fdad7f1feacdf8cca4aaf57dae737d83c351d9ab66db8b
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.Statements; using AutoJIT.Parser.AST.St...
[ " foreach (ArgumentSyntax argumentSyntax in argumentSyntaxs) {" ]
861
lcc
csharp
null
a2ce4aeed86faf7c78539925675910ecdf08f4ca9f5603ee
"""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.urlresolvers import reverse from conten...
[ " split_test = self._update_partition_id(0)" ]
2,752
lcc
python
null
b55c3cd64c946848d39da7e77c7364582b5e7ab71a545f58
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 * (the "License"); you may n...
[ " foreach (object o in longTag.Values) {" ]
1,490
lcc
csharp
null
caded4c1338faaf5978525a343ec76e66b5546a6a35088a6
/* -*- 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 License as published by * the Free ...
[ "\t\t\t\t\t\tGraphNode cgn = graphNodes.get(cell);" ]
1,113
lcc
java
null
341005dfebe6821d4201177ffce38b1e3048f5a0d9c30463
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; import android.graphics.Rect;...
[ " task = new ListenableFutureTask<>(callable);" ]
629
lcc
java
null
32d36e0536e57f991a066ab60778b32884747e7689f3c816
/*************************************************************************** * Copyright 2006-2014 by Christian Ihle * * contact@kouchat.net * * * * This f...
[ " else if (ke.getKeyCode() == KeyEvent.VK_DOWN) {" ]
1,035
lcc
java
null
1f9066ab085c69885da88c003a539d651c2835d2ed83fd83
# -*- 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, Accordion, ManageIQTree, Pagination...
[ " prerequisite = NavigateToSibling('Details')" ]
534
lcc
python
null
88af654f6cc0799e1844ea6d4158729b1130dc62928ae169
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; import maejava.GeneralSkeleton; ...
[ "\t\tfor (IJRecognitionListener listener : recognitionListeners) {" ]
482
lcc
java
null
08b681d309832c3aa506f61679aefcaed7ca5b6c115d2701
#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...
[ " ScriptManager sm = ScriptManager.GetCurrent(Page);" ]
655
lcc
csharp
null
1472d733364caca77c7f2605a8ceaee6c18fb02ebc460475
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.enchantment.EnchantmentHelper; import ...
[ "\t\tdamageCooldown = compound.getInteger(\"DamageCooldown\");" ]
475
lcc
java
null
2abe780e4777e159876fcba6fb9c21888d8a0782e7499c3e
/** * 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 License, or * (at your optio...
[ " StringBuilder sb = new StringBuilder(32);" ]
661
lcc
java
null
214bccc94127564a29c72827ff53ccb4c3bd880918d517fa
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.environ.get('CIF_ELASTICSEARCH_...
[ " i = store.handle_indicators_create(t, {" ]
577
lcc
python
null
492de4fd744409d77007630f3cf7e7c49b13037cb2b2a8c6
# -*- 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') self.db = get_db() clas...
[ " p = Person.objects.get(name=\"owner\")" ]
701
lcc
python
null
a507514e59d02bec9d48f262b48dffcb180b6665ae945f96
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, Circle from bokeh.tile_providers im...
[ " interact(self._plot_line, x_name=widget_x, y_name=widget_y)" ]
1,433
lcc
python
null
821b5076e7642f35d6db6b0af29ca2ff7694928b53b0dace
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; using NzbDrone.Core.Configuration...
[ " if (!ShouldIgnoreChange(path, ignored))" ]
513
lcc
csharp
null
33a191efb28d5b529c26b622495441d20e705cfb2dc5be9f
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 TransformingMap contains an internal {@code ...
[ "\t\treturn read(key, computed);" ]
837
lcc
java
null
6fac8d0b410c99d32f6421d53dcbd4534f8f4a65b4dcede9
############################################################################### #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 source appliance is distributed ...
[ " cat = getToolByName(self.context, 'uid_catalog')" ]
1,519
lcc
python
null
b581893ac400757aaad32eed292afd06559e04175e8d6fdf
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 ); private readonly Tile[][]...
[ "\t\t\tset { m_ID = (ushort)value; }" ]
1,528
lcc
csharp
null
b5474d9a2623627f5e344cff1193ab0629353b34b75b1c81
/* * 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: * * Redistributions of source code must r...
[ " channelUri = ChannelUri(scene, land);" ]
1,661
lcc
csharp
null
c357dc85d4b8de20bfeb7e4f0a5fb6c3f1e2ad3fba2c7691
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.Windows.Forms.Form{ private OpenD...
[ "\t\t\t\tMsgBox.Show(this,\"Please fix data entry errors first.\");" ]
576
lcc
csharp
null
7c3bba0835a61180b3615e5a45405828fb9f896470cd8acb
# (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 License, or # (at your option) any l...
[ " lat, lon = _build_lat_lon_for_NAME_timeseries(column_headings)" ]
2,765
lcc
python
null
d6baed6ebf26ec130b53d88863008a04aa5759c9dbf5f916
# 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): check1 = all(authz.check_conf...
[ " group_id = data_dict['id']" ]
772
lcc
python
null
37c8cc83faf991e5dab1a2d463f96ea1e173fbf645387307
/** * 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 License as published by the Free...
[ "\t\t\t\tString label = example.getValueAsString(predictionAttribute);" ]
784
lcc
java
null
d2fab0055348069f0d8e88dc8cdb2f46840753245d44d77d
// --------------------------------- // <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> // --------------------------------...
[ " var searchResultsArray = new SearchResults[segments.Length];" ]
1,172
lcc
csharp
null
39981401e38829b7087717c9452de413a3ec15cf21ca091f
/* * 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 modify * it under the terms o...
[ " char low = string.charAt(offset++);" ]
6,474
lcc
java
null
d616bbc2ccc30cab16459d0300a1d8c933b33e1455e3aa84
/** * 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 distributed on an "AS IS" * basi...
[ " if (GenericValidator.isBlankOrNull(studyFormName)) {" ]
945
lcc
java
null
5d56dd41743ce710c9b0986b24ec730ba947774b15696336
#region Copyright & License Information /* * Copyright 2007-2017 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of * the Licen...
[ "\t\t\t\t\tSendOrderTo(newConn, \"AuthenticationError\", message);" ]
807
lcc
csharp
null
cb8ef7b164c1f9b4d27225f6b8e45ea33c8096c073d82e27
//############################################################################# //# # //# Copyright (C) <2015> <IMS MAXIMS> # //# # ...
[ "\t\tif(beans == null)" ]
833
lcc
java
null
6e13c44c01f4116cb114d1ed362252ac9e0da0ef7331a74b
# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it wil...
[ "elif prnum == 'advanced':" ]
549
lcc
python
null
73fefc41fc5fa1c47966c4abc5dc1e78bb36629f5e868c89
////////////////////////////////////////////////////////////////// // // // This is an auto - manipulated source file. // // Edits inside regions of HYCALPER AUTO GENERATED CODE // // will be lost and overwritten on the next build! ...
[ " int [] ret = new int[A.Dimensions.NumberOfDimensions]; " ]
1,174
lcc
csharp
null
5f7f8ad03839f70553f1bf1189d38d53af0f00c6db0c9584
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, getSelectedSetup from DIRAC import S_OK,...
[ " reportName = pD[ 'plotName' ]" ]
1,147
lcc
python
null
6f5d658cc2b84c64bf49c302dee4078f60fd158ed24b7b19
#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, either version 3 of * the Licen...
[ "\t\t\tforeach (var rp in world.ActorsWithTrait<RallyPoint>())" ]
985
lcc
csharp
null
10f9dbc73235c1d307666e6143b4217f1b7b644ae2fe93d6
/* 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 * without limitation the rights to...
[ " List<PlanNodeList> nodeLists = new ArrayList<PlanNodeList>();" ]
768
lcc
java
null
fc248cbd17650fa9a1b49a55fb76191e355a916d55809db3
/* -*- 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 * * http://www.apache.org/l...
[ "\t\t\tthis.comboBox1.Size = new System.Drawing.Size(224, 21);" ]
1,012
lcc
csharp
null
8f007015b8b3b455a6fcd8f989241324f18ff10327811d5b
// // 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; using System.ComponentModel; names...
[ "\t\t\tdcb.SetValues (baud_rate, parity, data_bits, bits, hs);" ]
1,031
lcc
csharp
null
d356cc0ece3ba9de9fcbb2613757dcabae2d8a589e1f370b
# 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 ugettext as _ from channelguide.test...
[ " page = self.get_page(self.user.get_profile().get_url()," ]
840
lcc
python
null
feedb243436593ce6db6b01f37eaf505c93f329ca6adb4ff
#!/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: disable=global-statement, inva...
[ " options, args = parser.parse_known_args()" ]
555
lcc
python
null
320e62adbcd607acda753d0d1559c566d029796c177de00e
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.List import List from Components...
[ "\t\t\tcurrentListEntry = self[\"list\"].getCurrent()" ]
1,024
lcc
python
null
544c63cee98145e32800b86cdc53d87ba73f46da8aeafade
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 compliance with the License. * ...
[ " int len = fCode.Length + 2;" ]
1,163
lcc
csharp
null
5c41dbe75be69a522492a261348f685fcc83189eb876ce02
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 PropertiesUtils { private Propertie...
[ " if (results == null) {" ]
840
lcc
java
null
cdd96b1a6cdd32b52402ed8afa5c640bc81a206da183fee0
# 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 some things can be initialised b...
[ " y_points = np.arange(-89.12, +90.0, 42.847)" ]
819
lcc
python
null
f199ac4b782288ef2a374c11cfb7bee86753f53493876247
// 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 version 3 of the License, or // (...
[ " if (currPacket != null)" ]
518
lcc
csharp
null
6cbff4b2ab9cd811f4d0b2d6ed54a5ae26c2c9ed95c4d5cb
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, shuffles and manages a small datas...
[ " elif color == 'yellow':" ]
1,319
lcc
python
null
6071885a8ddae41fc3b21de3b7edec8f485b65d210d0a2e3
/////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2006-2019 Esper Team. All rights reserved. / // http://esper.codehaus.org / // -----------------------------------------------------...
[ " set { _numValues = value; }" ]
743
lcc
csharp
null
90e9975c7f92d8ef21fcbe89fd1500b3a541124b7b4304fb
namespace Tripodmaps { partial class DummySolutionExplorer { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
[ " this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);" ]
1,467
lcc
csharp
null
e51a6d98c9314e0d0e73c15da39e443dc71aa90ae24eefe6
"""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.ccisvalid = ccisvalid def __seta...
[ " elif hasattr( original, 'originalFunction' ):" ]
831
lcc
python
null
e23602db74e35727f7f766eb0f92a05cdb9599280a144a07
/* * 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, Version 2.0 * (the "License"); you...
[ " final DataOutputStream out = new DataOutputStream(baos);" ]
1,652
lcc
java
null
ce9e73e7e622c7688ef392b99d6afaa87bea6b138e34fa82
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; import java.awt.geom.AffineTr...
[ " for (int i = 0; i < ticker.length; i++)" ]
600
lcc
java
null
6a3563763220617ce12df989e13f3ad3d2a6e723fd3d119e
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] public class TransmissionFix...
[ " var item = Subject.GetItems().Single();" ]
655
lcc
csharp
null
83459d6f1f2adf3b906ee4a28eaf21c3a195f75ae100c64b
#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.Item; #endregion namespace PoGo....
[ " if (_diff > 0)" ]
772
lcc
csharp
null
a35dec5733725ddbb50c8215f4db5a1bb8d03ea5bf6f87c7
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 consists of bulge and disk componen...
[ " 'relative to data\\n'])" ]
1,863
lcc
python
null
c19772b78b722854250c2ccf8a287dc2802417dbeafa7d23
/* 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 distributed in the hope that it ...
[ " i += ((b & 0x08) << 2);" ]
1,309
lcc
java
null
ce7af30933d25fa24c3982a8a49548083f6f94e48e102d6a
""" 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 import STUDIO_BASE_URL from com...
[ " course_key = CourseKey.from_string(self._course_key)" ]
824
lcc
python
null
09ae4ef8effb51b554602ffbe68a496389bb548ebc5983ad
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 option) any later version. This...
[ "\t\tint min = -1;" ]
803
lcc
java
null
56d619ed99235ddf5394f3518b191a845301a65eebac5d5e
#!/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 the Free Software Foundation, ...
[ " types = ['cert', 'key']" ]
744
lcc
python
null
41849aea5e307f5199745185087b9ae2038c2a8673824a84
//$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.ComponentModel.IContainer com...
[ " this.lblPrivacy.Location = new System.Drawing.Point(6, 26);" ]
1,336
lcc
csharp
null
87a46bb8e4f77d817428047955d797ac5726abcbd031985c
""" 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 redistribute it and/or modify # it under ...
[ " for i in zip(self.loaded_plugins):" ]
3,043
lcc
python
null
0040aff29f9f6ccd4819e0793a5a66b9d75d882f56fae40c
# -*- 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 Free Software Foundation; eith...
[ " getRoomFullName.produce = lambda s: s.getRoom()" ]
893
lcc
python
null
8a746e0f9e09ec54d8d1e7bf7ca7b8e16731fe8f4652e145
/* * 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.client.ui; import java.awt.Co...
[ " throw new MessageWriterException(e);" ]
543
lcc
java
null
bf41ff7b860961e0d3143422090577f24d568a16dd294083
/* * 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 of the * License, or (at you...
[ "\t\t \t\t\tlayer = ScriptRuntime.toInt32(value);" ]
762
lcc
java
null
5e5cdb6218b379ec44de7c00d3f6ce7f79c90829d6cf905f
/** * 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 applicable law or agreed to in ...
[ " if (currentSession != null && currentSession.isOpened()) {" ]
1,328
lcc
java
null
1d185bc0190b4d50ec508a59208f05925712f6455d6ece65
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; /** Array of pairs [feature index, f...
[ "\t\tfor(Emotion emotion : emotions)" ]
630
lcc
java
null
2728509e7278c4d21b0ffa379c7ac4c266c2cb3953c53b51
# 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 redistribute it and/or modify ...
[ " 'property1': 2, 'property2': 3}" ]
1,160
lcc
python
null
937eae55baa939e82bad4567e4b302435ea8891cfa090cc2
#!/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 #===============================...
[ " N1 = a/sqrt(1-eccSquared*sin(phi1Rad)*sin(phi1Rad))" ]
980
lcc
python
null
b3d7b8ae829a609d04350475dc3cbba8c1903ae29d44f33f
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, ReportUserForm from django.core.url...
[ " form = ReportUserForm(request.POST)" ]
651
lcc
python
null
43b09bf2cf11206d57ef722d796e2250d60d38db8c309917
# 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', 'ProductAdminView', 'Prod...
[ " field_names = ['name', 'summary', 'branch', 'releasefileglob']" ]
4,413
lcc
python
null
c87c42b130a11ba81e64078e5be1ddb51be6aa08d42fa60d
/* 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 Software Foundation; either version...
[ "\t\t\t\ttry { RtlApplyToControls(form.Controls); }" ]
511
lcc
csharp
null
6d015d2fedcdf18b400b44406bfa6c05a907c32559c2fac3
/** * @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 Software Foundation; either ver...
[ " temp >>= 8;" ]
917
lcc
java
null
de844ece27c689ffd57823fb8131dd2a4050b2ce6d5802d8
# 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 # notice, this list of conditio...
[ " if flag == 'exclude_tags':" ]
1,382
lcc
python
null
0eae36deb9dbeb31e09db8bd01a91ef5b679925d700f9563
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 (index) { ...
[ " return new object[0];" ]
545
lcc
csharp
null
d9e11801221dccea3ae87a56625d947443bb2bb387b8a83d