idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
282,813
public BaseDataSourceParamDTO createDatasourceParamDTO(String connectionJson) {<NEW_LINE>OracleConnectionParam connectionParams = (OracleConnectionParam) createConnectionParams(connectionJson);<NEW_LINE>OracleDataSourceParamDTO oracleDatasourceParamDTO = new OracleDataSourceParamDTO();<NEW_LINE>oracleDatasourceParamDTO...
setUserName(connectionParams.getUser());
344,980
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Set<Card> cardsToExile = new HashSet<>(this.getTargetPointer().getTargets(game, source).size());<NEW_LINE>for (UUID targetId : this.getTargetPointer().getT...
getToughness().modifyBaseValue(4);
145,832
public void run() {<NEW_LINE>File[] folders;<NEW_LINE>synchronized (foldersToCheck) {<NEW_LINE>folders = foldersToCheck.toArray(new File<MASK><NEW_LINE>foldersToCheck.clear();<NEW_LINE>loggingTask = null;<NEW_LINE>}<NEW_LINE>for (File f : folders) {<NEW_LINE>if (!checkFolderLogged(f, false)) {<NEW_LINE>// if other task...
[foldersToCheck.size()]);
1,109,122
protected void paint(GC gc) {<NEW_LINE>Rectangle clipping = gc.getClipping();<NEW_LINE>if (clipping.width == 0 || clipping.height == 0)<NEW_LINE>return;<NEW_LINE>Rectangle clientArea = getScreenRectInVirtualSpace();<NEW_LINE>// Beginning coordinates<NEW_LINE>int xOffset = clientArea.x;<NEW_LINE>int yOffset = clientArea...
int cx = colFirst * fCellWidth - xOffset;
877,308
private void addNuggets() {<NEW_LINE>addToTag(MekanismTags.Items.NUGGETS_BRONZE, MekanismItems.BRONZE_NUGGET);<NEW_LINE>addToTag(MekanismTags.Items.NUGGETS_REFINED_GLOWSTONE, MekanismItems.REFINED_GLOWSTONE_NUGGET);<NEW_LINE>addToTag(MekanismTags.Items.NUGGETS_REFINED_OBSIDIAN, MekanismItems.REFINED_OBSIDIAN_NUGGET);<N...
Items.NUGGETS_STEEL, MekanismItems.STEEL_NUGGET);
1,733,198
public CloudWatchLogsLogDeliveryDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CloudWatchLogsLogDeliveryDescription cloudWatchLogsLogDeliveryDescription = new CloudWatchLogsLogDeliveryDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
class).unmarshall(context));
1,089,585
private static List<PresenterProviderMethod> collectPresenterProviders(TypeElement presentersContainer) {<NEW_LINE>List<PresenterProviderMethod> providers = new ArrayList<>();<NEW_LINE>for (Element element : presentersContainer.getEnclosedElements()) {<NEW_LINE>if (element.getKind() != ElementKind.METHOD) {<NEW_LINE>co...
DeclaredType) providerMethod.getReturnType());
694,965
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>tsModelPackage = modelPackage.replaceAll("\\.", "/");<NEW_LINE>String tsApiPackage = apiPackage.replaceAll("\\.", "/");<NEW_LINE>String modelRelativeToRoot = getRelativeToRoot(tsModelPackage);<NEW_LINE>String apiRelativeToRoot = getRelativeToRoot(tsApiP...
("gitignore", "", ".gitignore"));
209,632
final UpdateIncidentRecordResult executeUpdateIncidentRecord(UpdateIncidentRecordRequest updateIncidentRecordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateIncidentRecordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
917,797
public void commandLine(String query_input) {<NEW_LINE>// while (true) {<NEW_LINE>// query user for question, quit if user types in "exit"<NEW_LINE>// MsgPrinter.printQuestionPrompt();<NEW_LINE>// String question = readLine().trim();<NEW_LINE>String question = query_input.trim();<NEW_LINE>if (question.equalsIgnoreCase(...
results = askList(question, LIST_REL_THRESH);
924,089
private Pair<List<TableColumnDesc>, List<StmtClassForgeableFactory>> validateExpressions(List<CreateTableColumn> columns, StatementCompileTimeServices services) throws ExprValidationException {<NEW_LINE>Set<String> columnNames = new HashSet<>();<NEW_LINE>List<TableColumnDesc> descriptors = new ArrayList<>();<NEW_LINE>i...
column.getAnnotations(), services);
1,302,641
public static String parseText(final Properties ctx, final String text, final boolean isEmbeded, final BoilerPlateContext context, final String trxName) {<NEW_LINE>if (text == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>String textFixed = text;<NEW_LINE>if (isEmbeded) {<NEW_LINE>textFixed = textFixed....
[] functions = getTagNameAndFunctions(m);
273,884
private static void createArgs(String[] keys, int level, ArgumentSeries as, MapArgBenchmark mab, List mapList) {<NEW_LINE>if (level < keys.length) {<NEW_LINE>String key = keys[level];<NEW_LINE>Iterator vals = as.getValues(key);<NEW_LINE>while (vals.hasNext()) {<NEW_LINE>List localMapList = new ArrayList(11);<NEW_LINE>O...
List localMapList2 = new ArrayList(11);
1,520
private MediaSource.Factory createMediaSourceFactory() {<NEW_LINE>ImaServerSideAdInsertionMediaSource.AdsLoader.Builder serverSideAdLoaderBuilder = new ImaServerSideAdInsertionMediaSource.AdsLoader.Builder(/* context= */<NEW_LINE>this, playerView);<NEW_LINE>if (serverSideAdsLoaderState != null) {<NEW_LINE>serverSideAdL...
serverSideAdsLoader, new DefaultMediaSourceFactory(dataSourceFactory));
1,651,210
public static void writeAppRule() throws Throwable {<NEW_LINE>String serverAddr = System.getProperty("nacos.address", "localhost");<NEW_LINE>String dataId = "governance-conditionrouter-consumer.condition-router";<NEW_LINE>String group = "dubbo";<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.put...
content = IOUtils.toString(is);
1,521,613
private int copyMetadataAndSetIndexed(int columnIndex, int indexValueBlockSize) {<NEW_LINE>try {<NEW_LINE>int index = openMetaSwapFile(ff, ddlMem, path, rootLen, configuration.getMaxSwapFileCount());<NEW_LINE>int columnCount = metaMem.getInt(META_OFFSET_COUNT);<NEW_LINE>ddlMem.putInt(columnCount);<NEW_LINE>ddlMem.putIn...
(getColumnHash(metaMem, i));
1,459,619
private static Map<TypeAlias, NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, NativeType> m = new EnumMap<TypeAlias, NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, NativeType.SSHORT);<NEW_LINE...
TypeAlias.intptr_t, NativeType.SLONG);
1,216,685
private MSPData parse(String source) {<NEW_LINE>Scanner sc = new Scanner(source);<NEW_LINE>mspdata = new MSPData();<NEW_LINE>mspdata.numberOfMeetings = sc.nextInt();<NEW_LINE>sc.nextLine();<NEW_LINE>mspdata.numberOfAgents = sc.nextInt();<NEW_LINE>sc.nextLine();<NEW_LINE>mspdata.numberOfMeetingPerAgent = sc.nextInt();<N...
.maxDisTimeBetweenMeetings = sc.nextInt();
1,620,627
public static void main(String[] args) throws Exception {<NEW_LINE>String country = "", configfile = ""<MASK><NEW_LINE>if (args.length == 4) {<NEW_LINE>country = args[0];<NEW_LINE>configfile = args[1];<NEW_LINE>runtimeDataDir = args[2];<NEW_LINE>licensePlate = args[3];<NEW_LINE>} else {<NEW_LINE>System.err.println("Pro...
, runtimeDataDir = "", licensePlate = "";
527,262
public static void main(String[] args) {<NEW_LINE>System.out.println(JPA_ACLI_EYECATCHER + "Hello BasicJPAMethodInjAppClient");<NEW_LINE>System.out.<MASK><NEW_LINE>System.out.println(JPA_ACLI_EYECATCHER + "emfDD = " + emfDD);<NEW_LINE>if (emfAno == null) {<NEW_LINE>System.out.println(JPA_ACLI_FAIL_EYECATCHER + "emfAno ...
println(JPA_ACLI_EYECATCHER + "emfAno = " + emfAno);
832,601
private boolean gracefulStop(String baseUrl) {<NEW_LINE>try {<NEW_LINE>if (DoYUtil.isBlank(baseUrl)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>SimpleRestClient restClient = new SimpleRestClient();<NEW_LINE>String tail = "rest/stop";<NEW_LINE>String masterKey = config.getString(DrillOnYarnConfig.HTTP_REST_KEY);<NEW_L...
System.out.println("Resorting to forced kill");
387,452
public void testAnnotationJavamailSessionCreated() throws Throwable {<NEW_LINE>if (jm2 != null) {<NEW_LINE>Properties props = jm2.getProperties();<NEW_LINE>System.out.println("JavamailFATServlet.testAnnotationJavamailSessionCreated properties : " + props.toString());<NEW_LINE>// Validate we got the session we expected<...
userValue = jm2.getProperty("mail.user");
35,045
private BetaDistributionShape fitBeta(final List<int[]> altAndRefCounts) {<NEW_LINE>final int totalAltCount = altAndRefCounts.stream().mapToInt(pair -> pair[0]).sum();<NEW_LINE>final int totalRefCount = altAndRefCounts.stream().mapToInt(pair -> pair[1]).sum();<NEW_LINE>final int min = <MASK><NEW_LINE>// keeping the rat...
Math.min(totalAltCount, totalRefCount);
840,836
public void testSearchBase() throws Exception {<NEW_LINE>// check for valid user and group<NEW_LINE>String returnUser = servlet.checkPassword(USER_DN, "password");<NEW_LINE>assertNotNull("Should find user on checkPassword using " + USER_DN, returnUser);<NEW_LINE>assertTrue("Expected '" + USER_DN + "' to be valid user."...
, servlet.isValidUser(BAD_USER_DN));
683,790
protected void initializePluginFromInstance(final Plugin plugin, String plugin_id, String plugin_config_key) throws PluginException {<NEW_LINE>try {<NEW_LINE>final PluginInterfaceImpl plugin_interface = new PluginInterfaceImpl(plugin, this, plugin.getClass(), plugin.getClass().getClassLoader(), null, plugin_config_key,...
), "", plugin_id, null);
666,274
public Command<MetaServerConsoleService.PreviousPrimaryDcMessage> buildPrevPrimaryDcCommand(final String cluster, final String shard, final String prevPrimaryDc) {<NEW_LINE>return new AbstractCommand<MetaServerConsoleService.PreviousPrimaryDcMessage>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getName() {<N...
future().setSuccess(result);
150,500
// fast hack for making the spellchecking embedding aware, should be fixed properly<NEW_LINE>// performance: the current approach is wrong since a new token sequence is obtained<NEW_LINE>// and positioned for each search offset!<NEW_LINE>@Override<NEW_LINE>protected int[] findNextSpellSpan() throws BadLocationException...
.token().id();
596,000
PaymentWebhookResult internalProcessWebhook(Transaction transaction, PaymentContext paymentContext) {<NEW_LINE>int retryCount = Integer.parseInt(transaction.getMetadata().getOrDefault(RETRY_COUNT, "0"));<NEW_LINE>var configuration = <MASK><NEW_LINE>var paymentStatus = retrievePaymentStatus(configuration, transaction.ge...
loadConfiguration(paymentContext.getPurchaseContext());
1,586,903
public void connect(InetSocketAddress address, int timeoutMillis) throws IOException {<NEW_LINE>try {<NEW_LINE>if (!clientMode) {<NEW_LINE>throw new IllegalStateException("Can't call connect on a Channel that isn't in clientMode");<NEW_LINE>}<NEW_LINE>checkNotNull(address, "address");<NEW_LINE>checkNotNegative(timeoutM...
" using socket " + socketChannel.socket());
1,678,699
private void printDistributions(StringBuilder output, PlanNodeStats stats) {<NEW_LINE>Map<String, Double> inputAverages = stats.getOperatorInputPositionsAverages();<NEW_LINE>Map<String, Double> inputStdDevs = stats.getOperatorInputPositionsStdDevs();<NEW_LINE>Map<String, String> translatedOperatorTypes = <MASK><NEW_LIN...
translateOperatorTypes(stats.getOperatorTypes());
1,794,816
public RestoreSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RestoreSummary restoreSummary = new RestoreSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,524,406
final DescribeDBEngineVersionsResult executeDescribeDBEngineVersions(DescribeDBEngineVersionsRequest describeDBEngineVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBEngineVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
DescribeDBEngineVersionsResult>(new DescribeDBEngineVersionsResultStaxUnmarshaller());
766,893
public JavaIndexerPlugin create(final URL root, final FileObject cacheFolder) {<NEW_LINE>try {<NEW_LINE>File whiteListDir = roots2whiteListDirs.get(root);<NEW_LINE>if (whiteListDir == null) {<NEW_LINE>// First time<NEW_LINE>final FileObject whiteListFolder = FileUtil.createFolder(cacheFolder, WHITE_LIST_INDEX);<NEW_LIN...
rootFo = URLMapper.findFileObject(root);
1,032,813
public void chooseIdpWarVersion(TestServer idpServer) throws Exception {<NEW_LINE>String thisMethod = "chooseIdpWarVersion";<NEW_LINE>LibertyServer theServer = idpServer.getServer();<NEW_LINE>// copy the appropriate version of the idp.war file<NEW_LINE>if (System.getProperty("java.specification.version").matches("1\\.[...
theServer.getServerRoot() + "/test-apps/idp-war-3.3.1.war");
605,709
public void associateConnection(Object connection) throws ResourceException {<NEW_LINE>logFine("In associateConnection");<NEW_LINE>checkIfValid();<NEW_LINE>if (connection == null) {<NEW_LINE>String i18nMsg = localStrings.getString("jdbc.conn_handle_null");<NEW_LINE>throw new ResourceException(i18nMsg);<NEW_LINE>}<NEW_L...
ch.associateConnection(actualConnection, this);
954,265
private void addContact(SourceUIContact contact) {<NEW_LINE>SourceContact sourceContact = (SourceContact) contact.getDescriptor();<NEW_LINE>List<ContactDetail> details = sourceContact.getContactDetails(OperationSetPersistentPresence.class);<NEW_LINE>int detailsCount = details.size();<NEW_LINE>if (detailsCount > 1) {<NE...
SourceContact) contact.getDescriptor());
978,205
// if not empty - reuses most recently deleted node from freelist; otherwise allocates a new node<NEW_LINE>protected long allocateBlock(long parent, long recordRowId) {<NEW_LINE>if (freeList.size() > 0) {<NEW_LINE>long freeNode = freeList.get(freeList.size() - 1);<NEW_LINE>freeList.removeIndex(freeList.size() - 1);<NEW...
(refOf(freeNode), recordRowId);
1,309,010
public void processRows(List<Pair<Row, Collector<Row>>> rowCollectors) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>int currentBatchSize = rowCollectors.size();<NEW_LINE>List<List<?>> valueLists = new ArrayList<>();<NEW_LINE>for (int tfInputColId : tfInputColIds) {<NEW_LINE>List<Object> values = new...
getRight().collect(output);
652,987
public void run(String arg) {<NEW_LINE>ImagePlus imp = IJ.getImage();<NEW_LINE>if (imp == null)<NEW_LINE>return;<NEW_LINE>Roi roi = imp.getRoi();<NEW_LINE>if (roi == null) {<NEW_LINE>IJ.showMessage("No Roi found!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var gui = QuPathGUI.getInstance();<NEW_LINE>var viewer = gui == nul...
imp.getT() - 1);
1,220,075
final DisassociateRepositoryResult executeDisassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
896,812
public Object evaluate(DeferredObject[] arg0) throws HiveException {<NEW_LINE>Map hiveMap = mapInspector.getMap(arg0[0].get());<NEW_LINE>List keyValues = inspectList(keyListInspector.getList(arg0[1].get()));<NEW_LINE>// / Convert all the keys to standard keys<NEW_LINE>Map stdKeys = stdKeys(hiveMap);<NEW_LINE>Map retVal...
hiveVal, mapInspector.getMapValueObjectInspector());
283,133
public void onClick(DialogInterface dialog, int which) {<NEW_LINE>LinkedHashSet<String> accepted = new LinkedHashSet<String>();<NEW_LINE>for (int i = 0; i < selected.length; i++) {<NEW_LINE>if (selected[i]) {<NEW_LINE>accepted.add(array[i]);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (subCategories.size() == accepted.size()) {<...
filter.selectSubTypesToAccept(poiCategory, accepted);
911,422
public RubyString inspect(ThreadContext context) {<NEW_LINE>int off = this.off;<NEW_LINE>int s = (dt.getHourOfDay() * 60 + dt.getMinuteOfHour()) * 60 + dt.getSecondOfMinute() - off;<NEW_LINE>long ns = (dt.getMillisOfSecond() * 1_000_000) + (subMillisNum * 1_000_000) / subMillisDen;<NEW_LINE>// e.g. #<Date: 2018-01-15 (...
('s').append(',');
1,059,209
// getCM_ChatID<NEW_LINE>@Override<NEW_LINE>public void dataStatusChanged(final DataStatusEvent e) {<NEW_LINE>log.debug("dataStatusChanged: {} - {}", this, e);<NEW_LINE>final int oldCurrentRow = e.getCurrentRow();<NEW_LINE>// save it<NEW_LINE>m_DataStatusEvent = e;<NEW_LINE>// when sorted set current row to 0<NEW_LINE>...
String msg = m_DataStatusEvent.getAD_Message();
87,080
// -------------------------------------------------------------------------<NEW_LINE>// XXX Other queries for identites and sequences<NEW_LINE>// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public BigInteger lastID() {<NEW_LINE>switch(family()) {<NEW_LINE>case ...
("identity()", BigInteger.class));
815,554
void writeExternal(@Nonnull Element element) {<NEW_LINE>if (myInfos.isEmpty() && myRangeMarkers.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Info info : myInfos) {<NEW_LINE>Element e = new Element(ELEMENT_TAG);<NEW_LINE>e.setAttribute(SIGNATURE_ATT, info.signature);<NEW_LINE>if (info.expanded) {<NEW_LINE>e.se...
, Boolean.toString(true));
1,136,972
public void marshall(Component component, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (component == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(component.get...
component.getAppId(), APPID_BINDING);
561,531
// @formatter:on<NEW_LINE>@Redirect(method = "performCommand", at = @At(value = "INVOKE", target = "Lnet/minecraft/commands/Commands;performCommand(Lnet/minecraft/commands/CommandSourceStack;Ljava/lang/String;)I"))<NEW_LINE>private int arclight$serverCommand(Commands commands, CommandSourceStack sender, String command)...
command = command.substring(1);
465,881
// Test the code path where untimed invokeAll is interrupted while it is running a task on the current thread<NEW_LINE>// after the other tasks have been successfully submitted. Once interrupted, invokeAll must immediately cancel all of<NEW_LINE>// its tasks which have not already completed and return.<NEW_LINE>@Test<N...
= System.nanoTime() - start;
1,203,271
public static void main(String[] args) throws ParseException, IOException {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption(Option.builder("c").longOpt("command").hasArg().argName("COMMAND").desc("supported COMMAND: ingest / commit").build());<NEW_LINE>options.addOption(Option.builder("d").longOpt(...
parser.parse(options, args);
29,682
private void processLineEntry(final JsonToken token, final JsonLocation location, final JsonStreamContext context) {<NEW_LINE>if (!rootProcessed) {<NEW_LINE>NodeRange nodeRange = new NodeRange(location.getLineNr());<NEW_LINE>lines.put(jsonPointer, nodeRange);<NEW_LINE>rootProcessed = true;<NEW_LINE>return;<NEW_LINE>}<N...
jsonPointer, new NodeRange(lineNumber));
1,445,845
public final BetweenAndStep16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> notBetween(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16) {<NEW_LINE>return notBetween(row(Tools.field(t1, (DataType) dataType(0)), Tools.fi...
) dataType(15))));
692,481
private static void unzipEntryToDir(@Nullable ProgressIndicator progress, @Nonnull final ZipEntry zipEntry, @Nonnull final File extractToDir, ZipInputStream stream, @Nullable NullableFunction<String, String> pathConvertor, @Nullable ContentProcessor contentProcessor) throws IOException {<NEW_LINE>String relativeExtract...
setText("Extracting " + relativeExtractPath + " ...");
1,752,254
public static void main(String[] args) {<NEW_LINE>BinaryTree bt = new BinaryTree();<NEW_LINE>Node head = null;<NEW_LINE>head = bt.addNode(10, head);<NEW_LINE>head = bt.addNode(15, head);<NEW_LINE>head = bt.addNode(5, head);<NEW_LINE>head = bt.addNode(7, head);<NEW_LINE>head = <MASK><NEW_LINE>head = bt.addNode(20, head)...
bt.addNode(19, head);
1,067,332
public AssociatePhoneNumbersWithVoiceConnectorGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociatePhoneNumbersWithVoiceConnectorGroupResult associatePhoneNumbersWithVoiceConnectorGroupResult = new AssociatePhoneNumbersWithVoiceConnectorGroupResult();<NEW_LINE>int originalDepth =...
)).unmarshall(context));
1,503,831
private void saveWorkflowTask(final WorkflowProcessor processor) throws DotDataException {<NEW_LINE>WorkflowTask task = processor.getTask();<NEW_LINE>if (null == task) {<NEW_LINE>task = new WorkflowTask();<NEW_LINE>}<NEW_LINE>final Role role = roleAPI.getUserRole(processor.getUser());<NEW_LINE>if (task.isNew()) {<NEW_L...
.setCreationDate(new Date());
1,524,053
public boolean sameSearchResult(SearchResult r1, SearchResult r2) {<NEW_LINE>boolean isSameType = r1.objectType == r2.objectType;<NEW_LINE>if (isSameType) {<NEW_LINE>ObjectType type = r1.objectType;<NEW_LINE>if (type == ObjectType.INDEX_ITEM || type == ObjectType.GPX_TRACK) {<NEW_LINE>return Algorithms.objectEquals(r1....
a2 = (Amenity) r2.object;
1,512,914
public static CompLongLongVector mergeSparseLongCompVector(LongIndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>Map<PartitionKey, PartitionGetResult> partKeyToResultMap = mapPartKeyToResult(partResults);<NEW_LINE>List<PartitionKey> partKeys = getSortedPartKeys(param.matrixId, param.getRowId());<NEW...
VFactory.sparseLongKeyLongVector(subDim, 0);
857,428
private byte[] packFlags() {<NEW_LINE>byte[] bytes = new byte[2];<NEW_LINE>bytes[0] = BufferTools.setBit(bytes[0], PRESERVE_TAG_BIT, preserveTag);<NEW_LINE>bytes[0] = BufferTools.setBit(bytes[0], PRESERVE_FILE_BIT, preserveFile);<NEW_LINE>bytes[0] = BufferTools.setBit(bytes[0], READ_ONLY_BIT, readOnly);<NEW_LINE>bytes[...
[1], COMPRESSION_BIT, compression);
1,538,146
private void justifyResult(List<GeocodingResult> res, final ResultMatcher<GeocodingResult> result) {<NEW_LINE>List<GeocodingResult> complete = new ArrayList<>();<NEW_LINE>double minBuildingDistance = 0;<NEW_LINE>if (res != null) {<NEW_LINE>List<BinaryMapIndexReader> readers = new ArrayList<>();<NEW_LINE>GeocodingUtilit...
(0) : new GeocodingResult();
27,922
private void notifyProcessors(List<BLangAnnotationAttachment> attachments, BiConsumer<CompilerPlugin, List<AnnotationAttachmentNode>> notifier) {<NEW_LINE>Map<CompilerPlugin, List<AnnotationAttachmentNode>> attachmentMap = new HashMap<>();<NEW_LINE>for (BLangAnnotationAttachment attachment : attachments) {<NEW_LINE>Def...
-> new ArrayList<>());
1,140,933
Command<K, V, String> migrate(String host, int port, int db, long timeout, MigrateArgs<K> migrateArgs) {<NEW_LINE>LettuceAssert.notNull(host, "Host " + MUST_NOT_BE_NULL);<NEW_LINE>LettuceAssert.notEmpty(host, "Host " + MUST_NOT_BE_EMPTY);<NEW_LINE>LettuceAssert.notNull(migrateArgs, "migrateArgs " + MUST_NOT_BE_NULL);<N...
(host).add(port);
1,783,794
static String parseFieldsInGeneralPurpose(String rawInformation) throws NotFoundException {<NEW_LINE>if (rawInformation.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Processing 2-digit AIs<NEW_LINE>if (rawInformation.length() < 2) {<NEW_LINE>throw NotFoundException.getNotFoundInstance();<NEW_LINE>}<NEW_LINE...
.substring(0, 4));
58,131
public GeneratorEntity compile() {<NEW_LINE>GeneratorEntity entity = new GeneratorEntity(getCompiler().getContext());<NEW_LINE>entity.setReturnReference(statement.isReturnReference());<NEW_LINE>entity.setInternalName(compiler.getModule().getInternalName() + "_generator" + statement.getGeneratorId());<NEW_LINE>entity.se...
ClassStmtToken(statement.getMeta());
600,743
public String sendGetRequest(String url) throws ApiException {<NEW_LINE>Request request = httpClient.newRequest(address + url);<NEW_LINE>request.timeout(3, TimeUnit.SECONDS);<NEW_LINE>request.method(HttpMethod.GET);<NEW_LINE>request.header(HttpHeader.ACCEPT_ENCODING, "gzip");<NEW_LINE>logger.trace("Sending WLED GET:{}"...
"InterruptedException: %s", e.getMessage());
907,714
public void handleAcceptedLogin() {<NEW_LINE>ServerPlayer entity = ((PlayerListBridge) this.server.getPlayerList()).bridge$canPlayerLogin(this.connection.getRemoteAddress(), this.gameProfile, (ServerLoginPacketListenerImpl) (Object) this);<NEW_LINE>if (entity == null) {<NEW_LINE>// this.disconnect(itextcomponent);<NEW_...
this.gameProfile.getId());
1,511,026
static StoredConfigKey readConfigKeyFromRequest(final PwmRequest pwmRequest) throws PwmUnrecoverableException {<NEW_LINE>final String keyStringParam = pwmRequest.readParameterAsString(ConfigEditorServlet.REQ_PARAM_KEY);<NEW_LINE>if (keyStringParam.startsWith(ConfigEditorServlet.REQ_PARAM_LOCALE_BUNDLE)) {<NEW_LINE>try ...
= new StringTokenizer(keyStringParam, "-");
1,435,153
// The tested deployment exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC<NEW_LINE>public void launchHealthTck() throws Exception {<NEW_LINE>String protocol = "http";<NEW_LINE>String host = server.getHostname();<NEW_LINE>String port = Integer.toString(server.getPort(PortType.WC_defaulthost));<N...
resultInfo.put("results_type", "MicroProfile");
1,198,629
protected void initSubreportFiller(DatasetExpressionEvaluator evaluator) throws JRException {<NEW_LINE>JasperReport jasperReport = getReport();<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Fill " + filler.fillerId + ": creating subreport filler for " + jasperReport.getName());<NEW_LINE>}<NEW_LINE>SectionTyp...
subreportFiller.mainDataset.setFillPosition(datasetPosition);
831,872
private View createView() {<NEW_LINE>LinearLayout linearLayout = new LinearLayout(container.$context());<NEW_LINE>linearLayout.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));<NEW_LINE>linearLayout.setId(1);<NEW_LINE>linearLayout.setOrientat...
TextView(container.$context());
756,304
private JustifiedSecStatus verifySignature(SRRset rrset, RRSIGRecord sigrec, RRset keyRrset, Instant date) {<NEW_LINE>if (!rrset.getName().subdomain(keyRrset.getName())) {<NEW_LINE>log.debug("Signer name is off-tree");<NEW_LINE>return new JustifiedSecStatus(SecurityStatus.BOGUS, ExtendedErrorCodeOption.DNSSEC_BOGUS, R....
, R.get("dnskey.no_match"));
569,797
private static boolean _cutteeStartCutterEndEvent(int eventIndex, EditShape editShape, ArrayList<CutEvent> cutEvents, int ipartCuttee, int ivertexCuttee, int ipartCutter, int ivertexCutter, int ifirstVertexCuttee) {<NEW_LINE>Segment segmentCuttee;<NEW_LINE>Segment segmentCutter;<NEW_LINE>Line lineCuttee = new Line();<N...
editShape.queryLineConnector(ivertexCutter, lineCutter);
434,831
public static CheckDeviceResponse unmarshall(CheckDeviceResponse checkDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>checkDeviceResponse.setRequestId<MASK><NEW_LINE>checkDeviceResponse.setStatus(_ctx.booleanValue("CheckDeviceResponse.Status"));<NEW_LINE>checkDeviceResponse.setMsg(_ctx.stringValue("CheckDeviceResp...
(_ctx.stringValue("CheckDeviceResponse.RequestId"));
155,095
private void visitPrimaryExpression(ASTPrimaryExpression node, Object data, Set<String> sqlMapFields) throws JaxenException {<NEW_LINE>List<Node> astNames = node.findChildNodesWithXPath(PRIMARY_METHOD_NAME_XPATH);<NEW_LINE>for (Node astName : astNames) {<NEW_LINE>String methodName = astName.getImage();<NEW_LINE>// meth...
literals = node.findChildNodesWithXPath(PRIMARY_METHOD_ARGUMENT_XPATH);
677,800
@Consumes(MediaType.TEXT_PLAIN)<NEW_LINE>@Produces(MediaType.TEXT_PLAIN)<NEW_LINE>@Blocking<NEW_LINE>public String sendByteArrayWithPojo(@RestQuery @DefaultValue("true") Boolean withPojo) {<NEW_LINE>FileWithPojo data = new FileWithPojo();<NEW_LINE>data.file = HELLO_WORLD.getBytes(UTF_8);<NEW_LINE>data.setFileName(GREET...
).readEntity(String.class);
1,654,832
private RevolutPaymentExport toRevolutExportRequest(@NonNull final I_C_PaySelectionLine line) {<NEW_LINE>final RevolutPaymentExport.RevolutPaymentExportBuilder revolutPaymentExportBuilder = RevolutPaymentExport.builder();<NEW_LINE>final I_C_Invoice invoice = invoiceDAO.getByIdInTrx(InvoiceId.ofRepoId(line.getC_Invoice_...
.setParameter("bankAccountId", bankAccountId));
575,348
protected static void saveIntrinsics(JComponent owner, File directory, Object calibration) {<NEW_LINE>boolean mono = calibration instanceof CameraModel;<NEW_LINE>var chooser = new JFileChooser();<NEW_LINE>chooser.addChoosableFileFilter(new FileNameExtensionFilter<MASK><NEW_LINE>chooser.setFileSelectionMode(JFileChooser...
("yaml", "yaml", "yml"));
1,386,492
private static FeatureManager findFeatureManagerInClassLoader(ClassLoader classLoader) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("No cached FeatureManager for class loader: " + classLoader);<NEW_LINE>}<NEW_LINE>// build a sorted list of all SPI implementations<NEW_LINE>Iterator<FeatureManagerProvider> p...
add(providerIterator.next());
1,032,284
public void trigger(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) {<NEW_LINE>EventInstance eventInstance = (EventInstance) planItemInstanceEntity.getTransientVariable(EventConstants.EVENT_INSTANCE);<NEW_LINE>if (eventInstance != null) {<NEW_LINE>handleEventInstance(planItemInstanceEntity...
eventPlanItemInstanceEntity.setState(PlanItemInstanceState.AVAILABLE);
799,729
public void onNext(T t) {<NEW_LINE>if (!gate) {<NEW_LINE>gate = true;<NEW_LINE>if (wip == 0 && WIP.compareAndSet(this, 0, 1)) {<NEW_LINE>actual.onNext(t);<NEW_LINE>if (WIP.decrementAndGet(this) != 0) {<NEW_LINE>handleTermination();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Publi...
= new SampleFirstOther<>(this);
1,133,820
public static void peekChatAsync(final String net, final String key, final Runnable done) {<NEW_LINE>boolean async = false;<NEW_LINE>try {<NEW_LINE>if (isBetaChatAvailable()) {<NEW_LINE>if (net != AENetworkClassifier.AT_PUBLIC && !isBetaChatAnonAvailable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (peek_dispatcher.get...
BuddyPluginUtils.peekChat(net, key);
1,826,045
public boolean isKnownPackage(String qualifiedPackageName) {<NEW_LINE>if (this.knownPackageNames == null) {<NEW_LINE>LinkedHashSet<String> names = new LinkedHashSet<>(this.typeLocators.size());<NEW_LINE>Set<Entry<String, String>> keyTable = this.typeLocators.entrySet();<NEW_LINE>for (Entry<String, String> entry : keyTa...
Arrays.sort(this.knownPackageNames);
1,317,073
public final ChangeReplicationFilterContext changeReplicationFilter() throws RecognitionException {<NEW_LINE>ChangeReplicationFilterContext _localctx = new ChangeReplicationFilterContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 288, RULE_changeReplicationFilter);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterO...
_la = _input.LA(1);
1,030,292
public void planarToUVInterleaved(Pointer frame, int pitch) {<NEW_LINE>if (pitch == 0) {<NEW_LINE>pitch = this.width;<NEW_LINE>}<NEW_LINE>Pointer puv = frame.getPointer((long) pitch * this.height);<NEW_LINE>if (pitch == this.width) {<NEW_LINE>memcpy(this.quad, puv, ((long) this.width * this.height / 4) * this.byteDepth...
2) * this.byteDepth));
939,563
protected void evaluateDecisionTable(DmnDecisionTableImpl decisionTable, VariableContext variableContext, DmnDecisionTableEvaluationEventImpl evaluationResult) {<NEW_LINE>int inputSize = decisionTable.getInputs().size();<NEW_LINE>List<DmnDecisionTableRuleImpl> matchingRules = new ArrayList<DmnDecisionTableRuleImpl>(dec...
evaluatedInput = evaluateInput(input, variableContext);
1,746,452
public void parameterChanged(String parameterName) {<NEW_LINE>boolean <MASK><NEW_LINE>if (doRateGraphs) {<NEW_LINE>if (imgRec == null || imgRec.isDisposed()) {<NEW_LINE>imgRec = new Image(display, 100, 20);<NEW_LINE>GC gc = new GC(imgRec);<NEW_LINE>gc.setBackground(statusDown.getBackground());<NEW_LINE>gc.fillRectangle...
doRateGraphs = COConfigurationManager.getBooleanParameter("status.rategraphs");
463,381
public // hbase_rest("http://example. com:8000/table/scanner/","POST/GET/PUT/DELETE","UTF-8","xml or json","Accept: text/xml","Content-Type: text/xml")<NEW_LINE>Object calculate(Context ctx) {<NEW_LINE>m_ctx = ctx;<NEW_LINE>IParam param = this.param;<NEW_LINE>try {<NEW_LINE>if (param.getType() == ';') {<NEW_LINE>ArrayL...
param.getSubSize())));
1,082,779
public void onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) throws Http2Exception {<NEW_LINE>// A push promise should not be allowed to add headers to an existing stream<NEW_LINE>Http2Stream promisedStream = connection.stream(promisedStreamId);<NEW_LIN...
connectionError(PROTOCOL_ERROR, "Push Promise Frame received for pre-existing stream id %d", promisedStreamId);
1,516,236
public void removeEdges(EdgeLabel edgeLabel) {<NEW_LINE>if (this.hasUpdate()) {<NEW_LINE>throw new HugeException("There are still changes to commit");<NEW_LINE>}<NEW_LINE>boolean autoCommit = this.autoCommit();<NEW_LINE>this.autoCommit(false);<NEW_LINE>// Commit data already in tx firstly<NEW_LINE>this.commit();<NEW_LI...
, edgeLabel.id()));
1,780,134
protected void onSizeChanged(int w, int h, int oldw, int oldh) {<NEW_LINE>hasSize = true;<NEW_LINE>if (waitingDocumentConfigurator != null) {<NEW_LINE>waitingDocumentConfigurator.load();<NEW_LINE>}<NEW_LINE>if (isInEditMode() || state != State.SHOWN) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// calculates the position of ...
centerPointInStripXOffset = -currentXOffset + oldw * 0.5f;
1,093,559
public void encode(FriendlyByteBuf buffer) {<NEW_LINE>buffer.writeBoolean(isUpdate);<NEW_LINE>if (isUpdate) {<NEW_LINE>buffer.writeUUID(playerUUID);<NEW_LINE>buffer.writeUtf(playerUsername);<NEW_LINE>BasePacketHandler.writeOptional(buffer, securityData, (buf, data) -> data.write(buf));<NEW_LINE>} else {<NEW_LINE>List<S...
frequency.getOwner() == null);
170,441
public static DescribeDcdnIpaServiceResponse unmarshall(DescribeDcdnIpaServiceResponse describeDcdnIpaServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnIpaServiceResponse.setRequestId(_ctx.stringValue("DescribeDcdnIpaServiceResponse.RequestId"));<NEW_LINE>describeDcdnIpaServiceResponse.setInstanceId<MAS...
(_ctx.stringValue("DescribeDcdnIpaServiceResponse.InstanceId"));
228,254
private static InetSocketAddress createInetSocketAddress(String address) throws UnknownHostException {<NEW_LINE>final char firstChar = address.charAt(0);<NEW_LINE>if (firstChar == '_' || (firstChar == 'u' && "unknown".equals(address))) {<NEW_LINE>// To early return when the address is not an IP address.<NEW_LINE>// - a...
logger.debug("Failed to parse an address: {}", address);
1,169,027
public void onResponse(final JSONObject response) {<NEW_LINE>List<Note> notes;<NEW_LINE>if (response == null) {<NEW_LINE>// Not sure this could ever happen, but make sure we're catching all response types<NEW_LINE>AppLog.w(AppLog.T.NOTIFS, "Success, but did not receive any notes");<NEW_LINE>EventBus.getDefault().post(n...
<Note>(0)));
1,779,520
protected Document createDefaultModel() {<NEW_LINE>return new PlainDocument() {<NEW_LINE><NEW_LINE>public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {<NEW_LINE>final String text = this.getText(0, offs) + str;<NEW_LINE>List oldSuggestions = suggestions;<NEW_LINE>suggestions = rec...
super.remove(offs, len);
943,851
final AddRegionResult executeAddRegion(AddRegionRequest addRegionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addRegionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AddRegionRequest> request = null;<NEW_LINE>Response<AddRegio...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
780,480
private void parseDependenciesFromJson(Node node) {<NEW_LINE>NodeMapper mapper = new NodeMapper();<NEW_LINE>ObjectNode root = node.expectObjectNode();<NEW_LINE>root.warnIfAdditionalProperties(TOP_LEVEL_PROPERTIES);<NEW_LINE>// Must define a version.<NEW_LINE>root.expectStringMember(VERSION).expectOneOf("1.0");<NEW_LINE...
Builder builder = SymbolDependency.builder();
142,481
public Operand buildHash(HashNode hashNode) {<NEW_LINE>List<KeyValuePair<Operand, Operand>> args = new ArrayList<>();<NEW_LINE>boolean hasAssignments = hashNode.containsVariableAssignment();<NEW_LINE>Variable hash = null;<NEW_LINE>for (KeyValuePair<Node, Node> pair : hashNode.getPairs()) {<NEW_LINE>Node key = pair.getK...
new Hash(args) }));
1,633,064
private static // should be specified in radians, not degrees.<NEW_LINE>Point2D rotatePoint(Point2D fp, Point2D pt, double angle) {<NEW_LINE>double fpx = fp.getX();<NEW_LINE>double fpy = fp.getY();<NEW_LINE>double ptx = pt.getX();<NEW_LINE>double pty = pt.getY();<NEW_LINE>// Compute the vector <x, y> from the fixed poi...
fpx + xRotated, fpy + yRotated);
1,720,477
final GetMethodResponseResult executeGetMethodResponse(GetMethodResponseRequest getMethodResponseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMethodResponseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);