idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
336,847
List<OrderDecorator> buildCustomFilterList(Element element, ParserContext pc) {<NEW_LINE>List<Element> customFilterElts = DomUtils.getChildElementsByTagName(element, Elements.CUSTOM_FILTER);<NEW_LINE>List<OrderDecorator> customFilters = new ArrayList<>();<NEW_LINE>for (Element elt : customFilterElts) {<NEW_LINE>String ...
, pc.extractSource(elt));
1,580,144
private QualityInvoiceLine createQualityInvoiceLineDetail_RegularOrder(final IQualityInspectionOrder productionOrder, final BigDecimal overallAvgProducedQtyPerTU, final String labelToUse) {<NEW_LINE>//<NEW_LINE>// Extract parameters from regular manufacturing order<NEW_LINE>final IQualityInspectionLinesCollection quali...
uom, currentRawHUInfo, currentQty, labelToUse);
654,381
private void createResponseSubscription(final long deploymentKey, final int partitionId, final CompletableActorFuture<Void> distributedFuture) {<NEW_LINE>final String topic = getDeploymentResponseTopic(deploymentKey, partitionId);<NEW_LINE>if (eventService.getSubscriptions(topic).isEmpty()) {<NEW_LINE><MASK><NEW_LINE>e...
LOG.trace("Setting up deployment subscription for topic {}", topic);
298,196
public void run() {<NEW_LINE>// init remoting server<NEW_LINE>NettyServerConfig serverConfig = new NettyServerConfig();<NEW_LINE>serverConfig.setListenPort(workerConfig.getListenPort());<NEW_LINE>this.nettyRemotingServer = new NettyRemotingServer(serverConfig);<NEW_LINE>this.nettyRemotingServer.registerProcessor(Comman...
registerProcessor(CommandType.GET_LOG_BYTES_REQUEST, loggerRequestProcessor);
598,033
public void run() {<NEW_LINE>final GetServerMetaResp.Builder respBuilder = GetServerMetaResp.newBuilder();<NEW_LINE>try {<NEW_LINE>final ServerMeta.Builder <MASK><NEW_LINE>PlannerSettings plannerSettings = new PlannerSettings(session.getOptions(), context.getFunctionImplementationRegistry());<NEW_LINE>DrillParserConfig...
metaBuilder = ServerMeta.newBuilder(DEFAULT);
1,235,121
public void apply(Project project) {<NEW_LINE>if (project.getParent() == null) {<NEW_LINE>project.getTasks().register("init", InitBuild.class, initBuild -> {<NEW_LINE>initBuild.setGroup("Build Setup");<NEW_LINE>initBuild.setDescription("Initializes a new Gradle build.");<NEW_LINE>RelativeFilePathResolver resolver = ((P...
File buildFile = project.getBuildFile();
1,510,022
private Map<String, List<SimpleInterval>> composeAndGroupTraversalIntervalsByContig(final SAMSequenceDictionary dictionary) {<NEW_LINE>if (!intervalArgumentCollection.intervalsSpecified()) {<NEW_LINE>return dictionary.getSequences().stream().map(s -> new SimpleInterval(s.getSequenceName(), 1, s.getSequenceLength())).co...
, entry.getValue()));
1,620,307
public void createBuilderInjectMethod(EFragmentHolder holder, Element element, List<ArgHelper> argHelpers) {<NEW_LINE>JDefinedClass builderClass = holder.getBuilderClass();<NEW_LINE>JFieldRef builderArgsField = holder.getBuilderArgsField();<NEW_LINE>JMethod builderMethod = builderClass.method(PUBLIC, holder.narrow(buil...
(builderArgsField, argKeyStaticField, arg));
1,578,242
static IntegerSpace portRangeStringToIntegerSpace(String range) {<NEW_LINE>if (range.isEmpty()) {<NEW_LINE>// warn? all ports instead?<NEW_LINE>return IntegerSpace.EMPTY;<NEW_LINE>}<NEW_LINE>IntegerSpace raw;<NEW_LINE>char firstChar = range.charAt(0);<NEW_LINE>if ('0' <= firstChar && firstChar <= '9') {<NEW_LINE>// Exa...
raw = IntegerSpace.parse(range);
1,292,929
public com.amazonaws.services.servicequotas.model.TooManyRequestsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.servicequotas.model.TooManyRequestsException tooManyRequestsException = new com.amazonaws.services.servicequotas.model.TooManyRequestsExcep...
String currentParentElement = context.getCurrentParentElement();
1,603,973
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String dicomServiceName, String workspaceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann...
error(new IllegalArgumentException("Parameter dicomServiceName is required and cannot be null."));
149,335
public int handleTask(ConsoleWrapper stdin, PrintStream stdout, PrintStream stderr, String[] args) throws Exception {<NEW_LINE>setTaskIO(new TaskIO<MASK><NEW_LINE>setTaskArgs(args);<NEW_LINE>// Make sure either --jobInstanceId or --jobExecutionId is specified.<NEW_LINE>verifyRequiredArgs();<NEW_LINE>BatchRestClient bat...
(stdin, stdout, stderr));
1,804,331
public static void sendRestServerSendEvent(RestServerSendEvent restServerSendEvent) {<NEW_LINE>// this is special for rest<NEW_LINE>if (EventBus.isEnable(ServerSendEvent.class)) {<NEW_LINE>SofaRequest request = new SofaRequest();<NEW_LINE>String appName = (String) RpcRuntimeContext.get(RpcRuntimeContext.KEY_APPNAME);<N...
(INTERNAL_KEY_PREFIX + RestConstants.REST_METHODNAME_KEY));
255,163
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.multitenant.MultitenantMicroservice#start(com.<NEW_LINE>* sitewhere.spi.microservice.lifecycle.ILifecycleProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException {<NEW_LINE>super.start...
CompositeLifecycleStep("Start " + getName());
1,271,731
private static String createSignature(@Nonnull PsiElement element) {<NEW_LINE>String <MASK><NEW_LINE>if (signature != null && Registry.is("folding.signature.validation")) {<NEW_LINE>PsiFile containingFile = element.getContainingFile();<NEW_LINE>PsiElement restoredElement = FoldingPolicy.restoreBySignature(containingFil...
signature = FoldingPolicy.getSignature(element);
1,189,941
final GetLayerVersionByArnResult executeGetLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLayerVersionByArnRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
1,754,013
public Boolean run(final Session<?> session) throws BackgroundException {<NEW_LINE>final DistributionConfiguration cdn = session.getFeature(DistributionConfiguration.class);<NEW_LINE>if (null == cdn) {<NEW_LINE>log.warn(String<MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (Distribution.Method method : methods) {...
.format("Missing CDN support in %s", session));
816,409
// "template method"<NEW_LINE>@Override<NEW_LINE>public final E evaluate(Model<T> model, List<Prediction<T>> predictions, DataProvenance dataProvenance) {<NEW_LINE>//<NEW_LINE>// Create the provenance for the model and dataset<NEW_LINE>EvaluationProvenance provenance = new EvaluationProvenance(model.getProvenance(), da...
results = computeResults(context, metrics);
706,792
private void generateExpressionForOpenCL1_0(NodeLIRBuilderTool generator) {<NEW_LINE>LIRGeneratorTool tool = generator.getLIRGeneratorTool();<NEW_LINE>Variable result = tool.newVariable<MASK><NEW_LINE>if (atomicNode instanceof TornadoAtomicIntegerNode) {<NEW_LINE>TornadoAtomicIntegerNode atomicIntegerNode = (TornadoAto...
(tool.getLIRKind(stamp));
1,213,352
public static DescribeFabricOrganizationChaincodesResponse unmarshall(DescribeFabricOrganizationChaincodesResponse describeFabricOrganizationChaincodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricOrganizationChaincodesResponse.setRequestId(_ctx.stringValue("DescribeFabricOrganizationChaincodesResponse.R...
("DescribeFabricOrganizationChaincodesResponse.Result[" + i + "].ChaincodeName"));
698,910
private void addParkingPosition(boolean limited) {<NEW_LINE>ParkingPositionPlugin plugin = OsmandPlugin.getActivePlugin(ParkingPositionPlugin.class);<NEW_LINE>if (plugin != null) {<NEW_LINE>MapActivity mapActivity = (MapActivity) getActivity();<NEW_LINE>Bundle args = getArguments();<NEW_LINE>double latitude = args.getD...
mapActivity, new Dialog(mapActivity));
907,848
public void loadThumbnails(ReaderImageList imageList, boolean isPrivate, String content) {<NEW_LINE>// get rid of any views already added<NEW_LINE>mView.removeAllViews();<NEW_LINE>if (imageList.size() < THUMBNAIL_STRIP_IMG_COUNT) {<NEW_LINE>mView.setVisibility(View.GONE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Enum...
findViewById(R.id.thumbnail_strip_image);
1,285,267
public ConfirmTopicRuleDestinationResult confirmTopicRuleDestination(ConfirmTopicRuleDestinationRequest confirmTopicRuleDestinationRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(confirmTopicRuleDestinationRequest);<NEW_LINE>AWSRequestM...
invoke(request, responseHandler, executionContext);
982,535
public String sayHello() {<NEW_LINE>if (msg != null && !msg.getMessage().contains(MESSAGE_HELLO)) {<NEW_LINE>msg.appendMessage(MESSAGE_HELLO);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>FilePermission fp = new FilePermission("/scratch/spei/bug/test/war.txt", "delete");<NEW_LINE>try {<NEW_LINE>if (System.getSecurityManager() !...
StringBuffer check = new StringBuffer(" -EJB test-");
469,621
public static String extractHostname(String uriString) {<NEW_LINE>if (uriString == null || uriString.isEmpty()) {<NEW_LINE>// Nothing to do here<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int firstQuestionMark = uriString.indexOf('?');<NEW_LINE>int firstAmpersand = uriString.indexOf('&');<NEW_LINE>int cutIndex = -1;<NEW...
uri = URI.create(uriString);
658,725
public void error(VirtualConnection vc, Throwable t) {<NEW_LINE>synchronized (_upgradeOut) {<NEW_LINE>if (null == vc) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (_upgradeOut.getBufferHelper().isOutputStream_closed()) {<NEW_LINE>if ...
Tr.debug(tc, "error , vc is null , connection must be closed ");
1,274,724
private void logResults() {<NEW_LINE>LOG.info("Key Values Processed: " + kvs_processed.get());<NEW_LINE>LOG.info("Rows Processed: " + rows_processed.get());<NEW_LINE>LOG.info("Valid Datapoints: " + valid_datapoints.get());<NEW_LINE>LOG.info("Annotations: " + annotations.get());<NEW_LINE>LOG.info("Invalid Row Keys Found...
"Datapoints Qualified for VLE : " + vle.get());
1,467,309
public void addFolder(final Folder folder, final Identifier id) {<NEW_LINE>if (folder == null || id == null || !UtilMethods.isSet(id.getId()) || !UtilMethods.isSet(id.getPath())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();<NEW_LINE>// Folder by Inode<...
inode, folder, getPrimaryGroup());
1,585,600
public void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context, @NotNull CompletionResultSet resultSet) {<NEW_LINE>if (!Symfony2ProjectComponent.isEnabled(parameters.getPosition())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PhpIndex phpIndex = PhpIndex.getInstance(parameters.<MASK><NEW_LINE...
getOriginalFile().getProject());
691,090
public boolean clear(int version) throws IndexException {<NEW_LINE>assert this.fExclusiveLock;<NEW_LINE>boolean wasCanceled = false;<NEW_LINE>removeChunksFromCache();<NEW_LINE>this.log.clear();<NEW_LINE>this.fVersion = version;<NEW_LINE>// Clear the first chunk.<NEW_LINE>this.fHeaderChunk.clear(0, CHUNK_SIZE);<NEW_LINE...
.fHeaderChunk.flush() || wasCanceled;
1,434,838
private void readDefaultAnalyzer(ParserConfig config) {<NEW_LINE>ArrayList<String> list = null;<NEW_LINE>String value;<NEW_LINE>try {<NEW_LINE>list = readList("scouter/workerThread");<NEW_LINE>config.setWorkerThread(list);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>System.err.println(ex.getMessage());<NEW_LINE>}<NEW_LI...
println(ex.getMessage());
1,541,537
private List<ByteBuffer> extractVpsSpsPpsFromH265(ByteBuffer csd0byteBuffer) {<NEW_LINE>List<ByteBuffer> byteBufferList = new ArrayList<>();<NEW_LINE>int vpsPosition = -1;<NEW_LINE>int spsPosition = -1;<NEW_LINE>int ppsPosition = -1;<NEW_LINE>int contBufferInitiation = 0;<NEW_LINE>int length = csd0byteBuffer.remaining(...
= new byte[ppsPosition - spsPosition];
1,069,600
private void logXmlProblem(CategorizedProblem problem, char[] unitSource) {<NEW_LINE>final int sourceStart = problem.getSourceStart();<NEW_LINE>final int sourceEnd = problem.getSourceEnd();<NEW_LINE>final int id = problem.getID();<NEW_LINE>HashMap<String, Object> parameters = new HashMap<>();<NEW_LINE>// ID as field na...
.PROBLEM_ARGUMENT_VALUE, arguments[i]);
402,902
private static Model makeModel() {<NEW_LINE>String BASE = "http://example/";<NEW_LINE>Model model = ModelFactory.createDefaultModel();<NEW_LINE>model.setNsPrefix("", BASE);<NEW_LINE>Resource r1 = model.createResource(BASE + "r1");<NEW_LINE>Resource r2 = model.createResource(BASE + "r2");<NEW_LINE>Property p1 = model.cr...
).addProperty(p1, v2);
773,172
public void delete(final FileLock lock, ProvidedExtensions.DeleteHandler deleteHandler) throws IOException {<NEW_LINE>final Deque<FileObject> all = new ArrayDeque<FileObject>();<NEW_LINE>final File file = getFileName().getFile();<NEW_LINE>if (!deleteFile(file, all, getFactory(), deleteHandler)) {<NEW_LINE>FileObject pa...
file.getName(), parentPath);
1,768,380
private void markForUnregister(String deviceDN, List<String> dns) throws NamingException, ConfigurationException {<NEW_LINE>NamingEnumeration<SearchResult> aets = search(<MASK><NEW_LINE>try {<NEW_LINE>while (aets.hasMore()) {<NEW_LINE>String rdn = aets.next().getName();<NEW_LINE>if (!rdn.equals("dicomAETitle=*"))<NEW_L...
deviceDN, "(objectclass=dicomNetworkAE)", StringUtils.EMPTY_STRING);
537,625
public VectorChiSqSelectorBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>BatchOperator<?> in = checkAndGetFirst(inputs);<NEW_LINE>String vectorColName = getSelectedCol();<NEW_LINE>String labelColName = getLabelCol();<NEW_LINE>SelectorType selectorType = getParams().get(SELECTOR_TYPE);<NEW_LINE>int numTopFeatur...
vectorTest(in, vectorColName, labelColName);
829,148
public static ApiDefinitionExecResult addResult(BatchRunDefinitionRequest request, TestPlanApiCase key, String status) {<NEW_LINE>ApiDefinitionExecResult apiResult = new ApiDefinitionExecResult();<NEW_LINE>apiResult.setId(UUID.randomUUID().toString());<NEW_LINE>apiResult.setCreateTime(System.currentTimeMillis());<NEW_L...
selectByPrimaryKey(key.getApiCaseId());
743,858
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(classLoader, className, classfil...
target.getDeclaredMethod("end", "io.vertx.core.buffer.Buffer");
1,675,665
final CreateAccessPreviewResult executeCreateAccessPreview(CreateAccessPreviewRequest createAccessPreviewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAccessPreviewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAccessPreview");
550,017
public ILogicExpression evaluatePartial(final Evaluatee ctx) {<NEW_LINE>if (isConstant()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>final ILogicExpression leftExpression = getLeft();<NEW_LINE>final ILogicExpression newLeftExpression = leftExpression.evaluatePartial(ctx);<NEW_LINE>final ILogicExpression rightExpressio...
newRightExpression = rightExpression.evaluatePartial(ctx);
184,007
public static Metadata readFrom(StreamInput in) throws IOException {<NEW_LINE>Builder builder = new Builder();<NEW_LINE>builder.version = in.readLong();<NEW_LINE>builder<MASK><NEW_LINE>builder.clusterUUIDCommitted = in.readBoolean();<NEW_LINE>builder.coordinationMetadata(new CoordinationMetadata(in));<NEW_LINE>builder....
.clusterUUID = in.readString();
617,954
private void deleteSnapshotsFromRepository(SnapshotDeletionsInProgress.Entry deleteEntry, Version minNodeVersion) {<NEW_LINE>final long expectedRepoGen = deleteEntry.repositoryStateId();<NEW_LINE>repositoriesService.getRepositoryData(deleteEntry.repository(), new ActionListener<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LI...
+ repositoryData.getGenId() + "] in the repository";
723,763
public Map<String, Object> generateSkus(HttpServletRequest request, HttpServletResponse response, Model model, @PathVariable(value = "productId") Long productId, @PathVariable(value = "skusFieldName") String skusFieldName) {<NEW_LINE>HashMap<String, Object> result = new HashMap<>();<NEW_LINE>Integer <MASK><NEW_LINE>// ...
skusGenerated = adminCatalogService.generateSkusFromProduct(productId);
734,410
private void writeAuxiliaryData(AuxiliaryConfiguration conf, String property, String value, boolean shared) {<NEW_LINE>Element el = getOrCreateRootElement(conf, shared);<NEW_LINE>Element enEl;<NEW_LINE>NodeList list = el.getElementsByTagNameNS(NAMESPACE, property);<NEW_LINE>if (list.getLength() > 0) {<NEW_LINE>enEl = (...
removeConfigurationFragment(ROOT, NAMESPACE, shared);
1,038,361
private void writeFunction(GeneratorContext context, SourceWriter writer) throws IOException {<NEW_LINE>String thisName = context.getParameterName(1);<NEW_LINE>String methodName = context.getParameterName(2);<NEW_LINE>writer.append("var name").ws().append('=').ws().append("'jso$functor$'").ws().append('+').ws().append(...
.indent().softNewLine();
1,448,306
protected void run(String method) throws IOException {<NEW_LINE>String text = getString("text");<NEW_LINE>int number = getInt("number", 10);<NEW_LINE>boolean <MASK><NEW_LINE>if (text == null || "".equals(text)) {<NEW_LINE>response(STATUS_INVALID_ARGS, "Invalid Arguments");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JcsegGlob...
autoFilter = getBoolean("autoFilter", false);
1,785,790
public DataSet<Tuple1<Long>> string2longSource(String source, long sessionId, TypeInformation<?> vertexType) {<NEW_LINE>Row rowData = new Row(1);<NEW_LINE>if (Types.BIG_INT.equals(vertexType) || Types.BIG_DEC.equals(vertexType) || Types.LONG.equals(vertexType)) {<NEW_LINE>rowData.setField(0, Double.valueOf(source).long...
(Arrays.asList(sourceRow));
1,817,488
protected String apply(FilterPredicate filterPredicate, Function<Path, String> aliasGenerator) {<NEW_LINE>Function<Path, String> removeThisFromAlias = (path) -> {<NEW_LINE>String fieldPath = aliasGenerator.apply(path);<NEW_LINE>// JPQL doesn't support 'this', but it does support aliases.<NEW_LINE>return fieldPath.repla...
, last.getFieldName()));
1,515,336
private void init(Hashtable toCopy) {<NEW_LINE>super.copy(toCopy);<NEW_LINE>Hashtable f = (Hashtable) toCopy.get("from");<NEW_LINE>if (f != null) {<NEW_LINE>from.copy(f);<NEW_LINE>}<NEW_LINE>iconUrl = (String) toCopy.get("icon");<NEW_LINE>pictureUrl = (String) toCopy.get("picture");<NEW_LINE>sourceUrl = (String) toCopy...
String) toCopy.get("link");
911,288
private Mono<Response<Flux<ByteBuffer>>> updateGatewaySettingsWithResponseAsync(String resourceGroupName, String clusterName, UpdateGatewaySettingsParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.ge...
this.client.mergeContext(context);
80,520
private void readFormatterFile() {<NEW_LINE>File formatterFile <MASK><NEW_LINE>if (formatterFile.exists()) {<NEW_LINE>try (Reader in = new FileReader(formatterFile)) {<NEW_LINE>// Ok, we found and opened the file. Read all contents:<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int c;<NEW_LINE>while ((c = i...
= new File(lfFileName + FORMATTERS_EXTENSION);
1,549,077
private GraphQLType buildInputType(Table table) {<NEW_LINE>GraphQLInputObjectType.Builder input = GraphQLInputObjectType.newInputObject().name(nameMapping.getGraphqlName(table) + "Input").description(getTypeDescription(table, DmlType.Input));<NEW_LINE>for (Column column : table.columns()) {<NEW_LINE>String graphqlName ...
), column.table());
382,861
private DataEntryLayout retrieveByWindowId(@NonNull final AdWindowId adWindowId) {<NEW_LINE>final ImmutableList<I_DataEntry_Tab> tabRecords = retrieveTabRecords(adWindowId);<NEW_LINE>final I_AD_Tab firstADTab = Services.get(IADWindowDAO.class).retrieveFirstTab(adWindowId);<NEW_LINE>if (firstADTab == null) {<NEW_LINE>th...
.class).retrieveTableName(mainTableId);
738,349
public SqoopTaskExecutionContext generateExtendedContext(ResourceParametersHelper parametersHelper) {<NEW_LINE>SqoopTaskExecutionContext sqoopTaskExecutionContext = new SqoopTaskExecutionContext();<NEW_LINE>if (!SqoopJobType.TEMPLATE.getDescp().equals(this.getJobType())) {<NEW_LINE>return sqoopTaskExecutionContext;<NEW...
getSourceParams(), SourceMysqlParameter.class);
654,305
private void convertRegionsToJSON(List<TileRegion> tileRegions, Promise promise) {<NEW_LINE>CountDownLatch countDownLatch = new <MASK><NEW_LINE>ArrayList<TileRegionError> errors = new ArrayList<>();<NEW_LINE>ArrayList<Geometry> geometries = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>for (TileRegion region : tileRegions...
CountDownLatch(tileRegions.size());
1,298,309
private static ActionGroup createActionsStep(final List<TaskListItem> tasks, final Project project, final Ref<Boolean> shiftPressed) {<NEW_LINE>ActionGroup.Builder group = ActionGroup.newImmutableBuilder();<NEW_LINE>final TaskManager manager = TaskManager.getManager(project);<NEW_LINE>final LocalTask task = tasks.<MASK...
get(0).getTask();
1,455,488
public static QuerySpeechPushJobDeviceResponse unmarshall(QuerySpeechPushJobDeviceResponse querySpeechPushJobDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySpeechPushJobDeviceResponse.setRequestId(_ctx.stringValue("QuerySpeechPushJobDeviceResponse.RequestId"));<NEW_LINE>querySpeechPushJobDeviceResponse.setSu...
(_ctx.booleanValue("QuerySpeechPushJobDeviceResponse.Success"));
1,627,949
final PutProtocolsListResult executePutProtocolsList(PutProtocolsListRequest putProtocolsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putProtocolsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
424,847
private void createDragSource(final Tree tree) {<NEW_LINE>Transfer[] types = new Transfer[] { TextTransfer.getInstance() };<NEW_LINE>int operations = DND.DROP_MOVE;<NEW_LINE>final DragSource source <MASK><NEW_LINE>source.setTransfer(types);<NEW_LINE>source.addDragListener(new DragSourceListener() {<NEW_LINE><NEW_LINE>@...
= new DragSource(tree, operations);
331,023
public static void main(String[] args) throws URISyntaxException {<NEW_LINE>// Use the arg as a file path or get this class's path<NEW_LINE>String filePath = args.length > 0 ? args[0] : new File(DiskStoreForPath.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getPath();<NEW_LINE>System.out.println("S...
.getFileSystem().getFileStores();
1,478,242
LaunchFlexTemplateResponse launchComparisonPipeline(String jobName, String sqlSnapshotId, String latestCommitLogTimestamp) {<NEW_LINE>try {<NEW_LINE>// Hardcode machine type and initial workers to force a quick start.<NEW_LINE>ImmutableMap.Builder<String, String> paramsBuilder = new ImmutableMap.Builder().put("workerMa...
"comparisonStartTimestamp", comparisonStartTimestamp.toString());
69,515
private void init() {<NEW_LINE>if (getC_Charge_ID() != 0) {<NEW_LINE>// Retrieve tax Exempt<NEW_LINE>String sql = "SELECT C_Tax_ID FROM C_Tax WHERE AD_Client_ID=? AND IsActive='Y' " + "AND IsTaxExempt='Y' AND ValidFrom < SYSDATE ORDER BY IsDefault DESC";<NEW_LINE>// Set tax for charge as exempt<NEW_LINE>taxId = DB.getS...
getCtx(), getC_Charge_ID());
1,810,215
public void load(Composite dataType) {<NEW_LINE>if (dataType == null) {<NEW_LINE>// TODO: Why is this needed? Use case?<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataTypeManager dataTypeManager = dataType.getDataTypeManager();<NEW_LINE>if (dataTypeManager == null) {<NEW_LINE>throw new IllegalArgumentException("Datatype " +...
originalCompositeId = originalDTM.getID(dataType);
45,395
public void onResult(@Nullable String result, @Nullable String error, @Nullable Integer resultCode) {<NEW_LINE>if (!Algorithms.isEmpty(result)) {<NEW_LINE>SimpleDateFormat source = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.US);<NEW_LINE>source.setTimeZone(TimeZone.getTimeZone("UTC"));<NEW_LINE>try {<NEW_LINE>Date...
e.getMessage(), e);
655,824
protected ExtensionSearch toSearchEntry(Extension extension, SearchStats stats) {<NEW_LINE>var entry = extension.toSearch();<NEW_LINE>var ratingValue = 0.0;<NEW_LINE>if (entry.averageRating != null) {<NEW_LINE>var reviewCount = repositories.countActiveReviews(extension);<NEW_LINE>// Reduce the rating relevance if there...
) + timestampRelevance * limit(timestampValue);
1,343,201
public void markAsRead(final int position) {<NEW_LINE>String uri;<NEW_LINE>uri = API_LINK_V2 + "mark-notification/" + mNotifications.<MASK><NEW_LINE>Log.v("EXECUTING", uri);<NEW_LINE>// Set up client<NEW_LINE>OkHttpClient client = new OkHttpClient();<NEW_LINE>// Execute request<NEW_LINE>Request request = new Request.Bu...
get(position).getId();
462,222
/*<NEW_LINE>* Like visitLines() except in reverse.<NEW_LINE>* <p><NEW_LINE>* Starts at 'end' and goes to 'begin'.<NEW_LINE>*/<NEW_LINE>void reverseVisitLines(BCoord begin, BCoord end, boolean newlines, LineVisitor visitor) {<NEW_LINE>// very similar to visitLines<NEW_LINE>Line l;<NEW_LINE>if (begin.row == end.row) {<NE...
l = lineAt(end.row);
156,320
protected InputStream prepareInputStream(FTPTransferObject data) {<NEW_LINE>InputStream is = null;<NEW_LINE>if (data.getput == Direction.FTP_PUT) {<NEW_LINE>if (data.local instanceof byte[]) {<NEW_LINE>is = new ByteArrayInputStream((byte[]) data.local);<NEW_LINE>} else if (data.local instanceof ByteArrayInputStream) {<...
is = (InputStream) data.local;
237,731
private void updateIndicatorPosition(boolean includeTab) {<NEW_LINE>final View selectedTitle = getChildAt(mSelectedPosition);<NEW_LINE>int left, right;<NEW_LINE>if (selectedTitle != null && selectedTitle.getWidth() > 0) {<NEW_LINE>left = selectedTitle.getLeft();<NEW_LINE>right = selectedTitle.getRight();<NEW_LINE>if (m...
(1.0f - mSelectionOffset) * left);
1,012,388
public static long[] coordinatesToHilbert(byte[] coords, int bitsperdim, int offset) {<NEW_LINE>final int numdim = coords.length;<NEW_LINE>final int numbits = numdim * bitsperdim;<NEW_LINE>final long[] output = BitsUtil.zero(numbits);<NEW_LINE>int rotation = 0;<NEW_LINE>long[] refl = BitsUtil.zero(numdim);<NEW_LINE>for...
interleaveBits(coords, i + offset);
920,992
public void removeSystemRescueKeyPair(String version, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/settings/keypair";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pai...
HashMap<String, String>();
154,675
// Calculate the proportion of coverage between column statistic range<NEW_LINE>public double overlapPercentWith(StatisticRangeValues other) {<NEW_LINE>requireNonNull(other, "other is null");<NEW_LINE>if (this.isEmpty() || other.isEmpty()) {<NEW_LINE>return 0.0;<NEW_LINE>}<NEW_LINE>// If the low and high values is infi...
max(this.distinctValues, 1);
1,572,804
private List<CalendarState.Action> createActionsList(Map<CalendarDateRange, Set<Action>> actionMap) {<NEW_LINE>if (actionMap.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<CalendarState.Action> calendarActions = new ArrayList<CalendarState.Action>();<NEW_LINE>SimpleDateFormat formatter = new SimpleDateForm...
key, action.getIcon());
661,927
Object str(VirtualFrame frame, PBaseException self, @Cached BaseExceptionAttrNode attrNode, @Cached BaseExceptionBuiltins.StrNode baseStrNode, @Cached PyObjectReprAsJavaStringNode reprNode) {<NEW_LINE>// TODO: missing windows code<NEW_LINE>final Object filename = attrNode.get(self, IDX_FILENAME, OS_ERROR_ATTR_FACTORY);...
get(self, IDX_STRERROR, OS_ERROR_ATTR_FACTORY);
515,684
private void sendMembershipEvents(Collection<CPMemberInfo> currentMembers, Collection<CPMemberInfo> newMembers) {<NEW_LINE>if (!isMetadataGroupLeader()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EventService eventService = nodeEngine.getEventService();<NEW_LINE>Collection<CPMemberInfo> addedMembers = new LinkedHashSet<>(n...
event, EVENT_TOPIC_MEMBERSHIP.hashCode());
1,706,101
// Concatenate stack traces if kept the original stack trace from the task creation<NEW_LINE>private void appendTaskStackTrace(final Throwable error) {<NEW_LINE>StackTraceElement[] taskStackTrace = _taskStackTraceHolder != null ? _taskStackTraceHolder.getStackTrace() : null;<NEW_LINE>// At a minimum, any stack trace sh...
0, errorStackTrace.length - skipErrorFrames);
515,534
@PostMapping(value = "/batch-delete")<NEW_LINE>@ResponseStatus(HttpStatus.OK)<NEW_LINE>@ApiException(BATCH_DELETE_PROCESS_DEFINE_BY_CODES_ERROR)<NEW_LINE>@AccessLogAnnotation(ignoreRequestArgs = "loginUser")<NEW_LINE>public Result batchDeleteProcessDefinitionByCodes(@ApiIgnore @RequestAttribute(value = Constants.SESSIO...
code = Long.parseLong(strProcessDefinitionCode);
621,237
public int[] transformToIntValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>int numDocs = projectionBlock.getNumDocs();<NEW_LINE>if (_intValuesSV == null || _intValuesSV.length < numDocs) {<NEW_LINE>_intValuesSV = new int[numDocs];<NEW_LINE>}<NEW_LINE>int[] values = _arguments.get(0).transformToIntValuesSV(projecti...
0, _intValuesSV, 0, numDocs);
172,358
public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException {<NEW_LINE>super.startElement(namespaceURI, localName, qualifiedName, attributes);<NEW_LINE>switch(Element.fromString(localName)) {<NEW_LINE>case SCHEMA:<NEW_LINE>startSchemaElement(<MASK><NE...
namespaceURI, localName, qualifiedName, attributes);
665,811
public PredictionTimeRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PredictionTimeRange predictionTimeRange = new PredictionTimeRange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
483,991
private void relockDomain() {<NEW_LINE>RegistryLock oldLock = null;<NEW_LINE>DomainBase domain;<NEW_LINE>try {<NEW_LINE>oldLock = RegistryLockDao.getByRevisionId(oldUnlockRevisionId).orElseThrow(() -> new IllegalArgumentException(String.format("Unknown revision ID %d", oldUnlockRevisionId)));<NEW_LINE>domain = tm().loa...
.of(oldLock), t);
1,178,039
public boolean removeWorkflow(String workflowId) {<NEW_LINE>WorkflowModel workflow = getWorkflow(workflowId, true);<NEW_LINE>boolean removed = false;<NEW_LINE>// TODO: calculate number of shards and iterate<NEW_LINE>if (workflow != null) {<NEW_LINE>try {<NEW_LINE>recordCassandraDaoRequests("removeWorkflow", "n/a", work...
).forEach(this::removeTaskLookup);
1,805,372
public static void main(String[] args) throws Exception {<NEW_LINE>Options options = constructOptions();<NEW_LINE>Options helpOptions = constructHelpOptions();<NEW_LINE>CommandLineParser parser = new DefaultParser();<NEW_LINE>// parse the help options first.<NEW_LINE>CommandLine cmd = parser.parse(helpOptions, args, tr...
println(e.getMessage());
576,353
private static Font createFont(Workbook workbook, Font originFont, WriteFont writeFont) {<NEW_LINE><MASK><NEW_LINE>if (originFont == null) {<NEW_LINE>return font;<NEW_LINE>}<NEW_LINE>if (originFont instanceof XSSFFont) {<NEW_LINE>XSSFFont xssfFont = (XSSFFont) font;<NEW_LINE>XSSFFont xssfOriginFont = ((XSSFFont) origin...
Font font = workbook.createFont();
1,754,180
/*TODO readd<NEW_LINE>@Override<NEW_LINE>public void openManual()<NEW_LINE>{<NEW_LINE>if(improveReadability())<NEW_LINE>{<NEW_LINE>((IEItemFontRender)this.fontRenderer).spacingModifier = -.5f;<NEW_LINE>((IEItemFontRender)this.fontRenderer).customSpaceWidth = 1f;<NEW_LINE>}<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LI...
this.fontRenderer).verticalBoldness = true;
832,797
private boolean isKubernetesServiceNetworkOfferingConfigured(DataCenter zone) {<NEW_LINE>// Check network offering<NEW_LINE>String networkOfferingName = KubernetesClusterNetworkOffering.value();<NEW_LINE>if (networkOfferingName == null || networkOfferingName.isEmpty()) {<NEW_LINE>LOGGER.warn(String.format("Global setti...
.format("Unable to find the network offering %s to be used for provisioning Kubernetes cluster", networkOfferingName));
357,345
public void decodeSubBlock(BoolDecoder bc2, int[][][][] coef_probs, int ilc, int type, boolean withY2) throws IOException {<NEW_LINE>SubBlock sb = this;<NEW_LINE>int startAt = 0;<NEW_LINE>if (withY2) {<NEW_LINE>startAt = 1;<NEW_LINE>}<NEW_LINE>int lc = ilc;<NEW_LINE>int c = 0;<NEW_LINE>int v = 1;<NEW_LINE>boolean skip ...
[c + startAt]] = dv;
1,109,636
public static long parseEpisodeReleaseDate(@NonNull ZoneId showTimeZone, @Nullable Date releaseDate, @NonNull LocalTime showReleaseTime, @Nullable String showCountry, @Nullable String showNetwork, @NonNull String deviceTimeZone) {<NEW_LINE>if (releaseDate == null) {<NEW_LINE>return Constants.EPISODE_UNKNOWN_RELEASE;<NE...
dateTime = localDateTime.atZone(showTimeZone);
612,753
public boolean dbgSaveToBitmap(String fileName) {<NEW_LINE>try {<NEW_LINE>FileOutputStream outfile = new FileOutputStream(fileName);<NEW_LINE>int height = m_width;<NEW_LINE>int width = m_width;<NEW_LINE>int sz = 14 + 40 + 4 * m_width * height;<NEW_LINE>// Write the BITMAPFILEHEADER<NEW_LINE>ByteBuffer byteBuffer = Byte...
] b = byteBuffer.array();
34,719
protected void startProcessDefinitionByKey(Job job, String configuration, DeploymentManager deploymentManager, CommandContext commandContext) {<NEW_LINE>// it says getActivityId, but < 5.21, this would have the process definition key stored<NEW_LINE>String processDefinitionKey = TimerEventHandler.getActivityIdFromConfi...
LOGGER.error("exception during timer execution", e);
1,006,742
private Map<String, Gauge> extractGauges(final MetricRegistry metricRegistry, final MetricFilter filter) {<NEW_LINE>Map<String, Gauge> gauges = new HashMap<>();<NEW_LINE>// find the AggregatorMetric metrics from within all currently registered metrics<NEW_LINE>final Optional<Map<String, Gauge>> aggregatorMetrics = Flue...
), matches(filter)));
1,763,071
public void handleChunkUnload(ChunkEvent.Unload event) {<NEW_LINE>if (!onchunkgenerate)<NEW_LINE>return;<NEW_LINE>IWorld w = event.getWorld();<NEW_LINE>if (!(w instanceof ServerWorld))<NEW_LINE>return;<NEW_LINE>IChunk c = event.getChunk();<NEW_LINE>if ((c != null) && (c.getStatus() == ChunkStatus.FULL)) {<NEW_LINE>Forg...
int x = cp.x << 4;
654,676
public Boolean visitAssignment(AssignmentTree node, ConstructorData p) {<NEW_LINE>TypeElement oldQName = this.referenceTarget;<NEW_LINE>this.referenceTarget = null;<NEW_LINE>lValueDereference = true;<NEW_LINE>scan(node.getVariable(), null);<NEW_LINE>lValueDereference = false;<NEW_LINE>Boolean constVal = scan(node.getEx...
, node.getVariable()));
494,315
private ScimUser syncGroups(ScimUser user) {<NEW_LINE>if (user == null) {<NEW_LINE>return user;<NEW_LINE>}<NEW_LINE>Set<ScimGroup> directGroups = membershipManager.getGroupsWithMember(user.getId(), false, identityZoneManager.getCurrentIdentityZoneId());<NEW_LINE>Set<ScimGroup> indirectGroups = membershipManager.getGrou...
true, identityZoneManager.getCurrentIdentityZoneId());
1,762,477
public void process(URL maggot, OutputStream os) throws IOException {<NEW_LINE>// convert into magnet lookalike<NEW_LINE>String maggot_str = maggot.toExternalForm();<NEW_LINE>int pos = maggot_str.indexOf('?');<NEW_LINE>String rem;<NEW_LINE>if (pos == -1) {<NEW_LINE>rem = "";<NEW_LINE>} else {<NEW_LINE>rem = "&" + maggo...
URL magnet = new URL(magnet_str);
162,375
private static Map<String, FileTypes> extractTypes(GenerateBlobCConfig config, StructureXMLParser parser) throws IOException {<NEW_LINE>Map<String, FileTypes> typesByAbsolutePath = extractTypesByAbsolutePath(parser);<NEW_LINE>Map<String, FileTypes> typesByHeaderName = stripPaths(typesByAbsolutePath);<NEW_LINE>Map<Strin...
(headerName) + " instead of " + absolutePath);
1,011,654
private static void primeHTTPDeliveryServices(final String domain, final TrafficRouter tr, final LoadingCache<ZoneKey, Zone> dzc, final Zone zone, final DeliveryService ds, final CacheRegister data) throws TextParseException {<NEW_LINE>final Name edgeName = newName(ds.getRoutingName(), domain);<NEW_LINE>LOGGER.info("Pr...
setDnssec(signatureManager.isDnssecEnabled());
1,323,017
public void prepare(AbstractRequest request, Context context) throws BizException {<NEW_LINE>super.prepare(request, context);<NEW_LINE>SortedMap sParaTemp = context.getsParaTemp();<NEW_LINE>AliPaymentContext aliPaymentContext = (AliPaymentContext) context;<NEW_LINE>sParaTemp.put("partner", aliPaymentConfig.getAli_partn...
"seller_id", aliPaymentConfig.getSeller_id());
1,575,280
public static boolean isSymlinkOrJunction(String path) throws IOException {<NEW_LINE>boolean[] result = new boolean[] { false };<NEW_LINE>String[] error <MASK><NEW_LINE>switch(nativeIsSymlinkOrJunction(asLongPath(path), result, error)) {<NEW_LINE>case IS_SYMLINK_OR_JUNCTION_SUCCESS:<NEW_LINE>return result[0];<NEW_LINE>...
= new String[] { null };