idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
283,539
private static void convertSdks() {<NEW_LINE>ProjectJdkTable sdkTable = ProjectJdkTable.getInstance();<NEW_LINE>Collection<String> globalGoPathUrls = ContainerUtil.newLinkedHashSet();<NEW_LINE>Collection<Sdk> sdksToDelete = ContainerUtil.newArrayList();<NEW_LINE>Collection<Sdk<MASK><NEW_LINE>GoSdkType sdkType = GoSdkTy...
> sdksToAdd = ContainerUtil.newArrayList();
1,546,385
private void createCenterContentPanel() {<NEW_LINE>fileListAdapter = new FileListAdapter(this, currentFiles);<NEW_LINE>fileListView = <MASK><NEW_LINE>setupDefaultScrollPane(fileListView.getScrollPane());<NEW_LINE>VisTable fileScrollPaneTable = new VisTable();<NEW_LINE>fileListBusyBar = new BusyBar();<NEW_LINE>fileListB...
new ListView<FileHandle>(fileListAdapter);
333,947
public Object calculate(Context ctx) {<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf('d') != -1) {<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar.setTimeInMillis(System.currentTimeMillis());<NEW_LINE>calendar.set(Calendar.HOUR_OF_DAY, 0);<NEW_LINE>calendar.set(Calendar.MINUTE, 0);<N...
set(Calendar.SECOND, 0);
1,276,451
public void listen(ConnectionLostEvent connectionLostEvent) {<NEW_LINE>ButtonType reconnect = new ButtonType(Localization.lang("Reconnect"), ButtonData.YES);<NEW_LINE>ButtonType workOffline = new ButtonType(Localization.lang("Work offline"), ButtonData.NO);<NEW_LINE>ButtonType closeLibrary = new ButtonType(Localization...
("Close library"), ButtonData.CANCEL_CLOSE);
558,536
public I_C_AllocationHdr create(final boolean complete) {<NEW_LINE>markAsBuilt();<NEW_LINE>// Supplier which provides a created & saved allocation header.<NEW_LINE>// To be used by line builder only when the line builder is sure it will create a line.<NEW_LINE>// We are memorizing the result because we want to save it ...
= new AdempiereException("No allocation lines were created even though the allocation header was saved. Deleting it: " + allocHdr);
986,345
protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {<NEW_LINE>boolean isVoid = getMethod().getReturnType().equals(Void.TYPE);<NEW_LINE>if (isVoid) {<NEW_LINE>if (getterName != null && getterName.length...
log.finer("Action method is not void, will use getter method on returned instance: " + getterName);
1,029,842
public void verifyDataAware() throws Exception {<NEW_LINE>List<QueryJobResults> migratedResults = migratedInstance.runQueries();<NEW_LINE>List<QueryJobResults> originalResults = originalInstance.runQueries();<NEW_LINE>QueryVerifier.exportToCsv(migratedResults, migratedInstance);<NEW_LINE>QueryVerifier.exportToCsv(origi...
differences = resultDifferences.get(i);
1,625,624
private void fill(ByteBuffer buf) {<NEW_LINE>((java.nio.Buffer) _appInput).flip();<NEW_LINE>if (_appInput.hasRemaining()) {<NEW_LINE>int bytesAvailable = _appInput.remaining();<NEW_LINE>int bytesNeeded = buf.remaining();<NEW_LINE>if (bytesAvailable > bytesNeeded) {<NEW_LINE>bytesAvailable = bytesNeeded;<NEW_LINE>}<NEW_...
_appInput.position() + bytesAvailable);
1,656,331
private String[] initProperties() {<NEW_LINE>List<String> props = new ArrayList<>();<NEW_LINE>props.add(createPropertyKey(P.TYPE));<NEW_LINE>props.add(createPropertyKey(P.NAME));<NEW_LINE>props.add(createPropertyKey(P.CALLABLE));<NEW_LINE>props.add<MASK><NEW_LINE>props.add(createPropertyKey(P.CONTEXT));<NEW_LINE>props....
(createPropertyKey(P.DESCRIPTION));
314,989
public DynamicTableSource createDynamicTableSource(DynamicTableFactory.Context context) {<NEW_LINE>final FactoryUtil.TableFactoryHelper helper = FactoryUtil.createTableFactoryHelper(this, context);<NEW_LINE>helper.validateExcept(DEBEZIUM_OPTIONS_PREFIX);<NEW_LINE>final ReadableConfig config = helper.getOptions();<NEW_L...
port = config.get(PORT);
560,869
static PsiFile doCreateNewScratch(@Nonnull Project project, @Nonnull ScratchFileCreationHelper.Context context) {<NEW_LINE>FeatureUsageTracker.getInstance().triggerFeatureUsed("scratch");<NEW_LINE>Language language = <MASK><NEW_LINE>if (context.fileExtension == null) {<NEW_LINE>LanguageFileType fileType = language.getA...
Objects.requireNonNull(context.language);
1,338,612
public <UnderlyingElement extends Element, WrappedElement extends TreeBackedElement> WrappedElement enterElement(UnderlyingElement underlyingElement, Function<UnderlyingElement, WrappedElement> constructor) {<NEW_LINE>// This function is the only one that inserts to this map<NEW_LINE>@SuppressWarnings("unchecked")<NEW_...
WrappedElement) treeBackedElements.get(underlyingElement);
187,877
private boolean printText(PrintStream out, PrintStream err, Shapes shapes) {<NEW_LINE>IndentedWriter iOut = new IndentedWriter(out);<NEW_LINE>ShLib.printShapes(iOut, shapes);<NEW_LINE>iOut.ensureStartOfLine();<NEW_LINE>iOut.flush();<NEW_LINE>int numShapes = shapes.numShapes();<NEW_LINE><MASK><NEW_LINE>if (isVerbose()) ...
int numRootShapes = shapes.numRootShapes();
321,198
public static BinaryPartAbstractImage createLinkedImagePart(OpcPackage opcPackage, Part sourcePart, URL url) throws Exception {<NEW_LINE>log.debug("Incoming url for linked image: " + url.toString());<NEW_LINE>// final param doesn't matter in this case<NEW_LINE>ImageInfo info = ensureFormatIsSupported(url, null, null, f...
imagePart.getExternalTarget(), imagePart);
1,269,938
public void registerEndpoint(WebServiceEndpoint webserviceEndpoint, EjbEndpointFacade ejbContainer, Object servant, Class tieClass) {<NEW_LINE>String uri = null;<NEW_LINE>EjbRuntimeEndpointInfo endpoint = createEjbEndpointInfo(webserviceEndpoint, ejbContainer, servant, tieClass);<NEW_LINE>synchronized (webServiceEjbEnd...
adapterListMap.put(uri, list);
1,115,348
private void refill() {<NEW_LINE>refill.mark();<NEW_LINE>List<FeedRefreshContext> contexts = new ArrayList<>();<NEW_LINE>int batchSize = Math.min(100, 3 * config.getApplicationSettings().getBackgroundThreads());<NEW_LINE>// add feeds we got from the add() method<NEW_LINE>int addQueueSize = addQueue.size();<NEW_LINE>for...
new FeedRefreshContext(feed, false));
1,848,113
static CodegenMethod generateOutputBatchedRowFromMapCodegen(ResultSetProcessorRowPerGroupForge forge, CodegenClassScope classScope, CodegenInstanceAux instance) {<NEW_LINE>Consumer<CodegenMethod> code = method -> {<NEW_LINE>method.getBlock().declareVar(EventBean.EPTYPEARRAY, "eventsPerStream", newArrayByLength(EventBea...
EPTYPE, constant(1)));
1,333,435
public void nettyServerInit() {<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NEW_LINE>ServerBootstrap serverBootstrap = new ServerBootstrap();<NEW_LINE>// BossGroup the Thread group is responsible for connection events<NEW_LINE>serverBootstrap.group(bossGroup, workGroup).channel(NioServerSocketChannel.class).handler(new ...
.closeFuture().sync();
1,440,835
private void loadShortCuts() {<NEW_LINE>FileObject root = FileUtil.getConfigRoot();<NEW_LINE>FileObject actionsDir = root.getFileObject(STORAGE_DIR);<NEW_LINE>if (actionsDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (FileObject profileDir : actionsDir.getChildren()) {<NEW_LINE>if (!profileDir.isFolder()) {<NE...
getFileObject(a.getId());
297,926
public com.amazonaws.services.robomaker.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.robomaker.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.robomaker.model.ResourceNotFoundException(nul...
int originalDepth = context.getCurrentDepth();
1,778,316
public static DescribeAlarmEventListResponse unmarshall(DescribeAlarmEventListResponse describeAlarmEventListResponse, UnmarshallerContext context) {<NEW_LINE>describeAlarmEventListResponse.setRequestId(context.stringValue("DescribeAlarmEventListResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new PageInfo();<NEW_LI...
(context.integerValue("DescribeAlarmEventListResponse.PageInfo.Count"));
49,923
protected void updateResizeFlags(MouseEvent event) {<NEW_LINE>if (event.isShiftKeyDown()) {<NEW_LINE>// resize from lower right<NEW_LINE>resizeUp = false;<NEW_LINE>resizeLeft = false;<NEW_LINE>resizeRight = true;<NEW_LINE>resizeDown = true;<NEW_LINE>move = false;<NEW_LINE>sizing = true;<NEW_LINE>return;<NEW_LINE>} else...
x = event.getRelativeX(c);
756,704
private static Map<String, Map<String, List<Pair<Integer, List<Object>>>>> shardMultiRowsSlowPath(String schemaName, String logicalTableName, List<List<Object>> values, List<String> shardingKeyNames, List<Integer> shardingKeyIndexes, List<ColumnMeta> shardingKeyMetas, List<Integer> primaryKeyIndexes, ExecutionContext e...
value = row.get(idx);
1,743,211
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,041,000
public void update(Gradient gradient) {<NEW_LINE>if (gradient.gradient().length() != numParams(true))<NEW_LINE>throw new IllegalArgumentException("Invalid input: expect gradients array of length " + numParams(true));<NEW_LINE>for (Map.Entry<String, INDArray> entry : gradient.gradientForVariable().entrySet()) {<NEW_LINE...
key.substring(idx + 1);
916,593
void createWebSocket(Http1xServerRequest request, PromiseInternal<ServerWebSocket> promise) {<NEW_LINE>context.execute(() -> {<NEW_LINE>if (request != responseInProgress) {<NEW_LINE>promise.fail("Invalid request");<NEW_LINE>} else if (webSocket != null) {<NEW_LINE>promise.complete(webSocket);<NEW_LINE>} else if (!(requ...
.metric(), webSocket));
1,717,248
public static void main(String[] args) throws IOException, ClassNotFoundException {<NEW_LINE>String dvmodelFile = null;<NEW_LINE>String lexparserFile = null;<NEW_LINE>String testTreebankPath = null;<NEW_LINE>FileFilter testTreebankFilter = null;<NEW_LINE>List<String> <MASK><NEW_LINE>for (int argIndex = 0; argIndex < ar...
unusedArgs = new ArrayList<>();
203,369
private Map<PackageIdentifier, Collection<Target>> bulkGetTargetsInPackage(String originalPattern, Iterable<PackageIdentifier> pkgIds, FilteringPolicy policy) throws InterruptedException {<NEW_LINE>try {<NEW_LINE>Map<PackageIdentifier, Package> pkgs = bulkGetPackages(pkgIds);<NEW_LINE>if (pkgs.size() != Iterables.size(...
, pkgs.keySet()));
637,129
public FailureDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FailureDetails failureDetails = new FailureDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,150,979
protected byte[] doDeserialize(InputStream inputStream, byte[] buffer) throws IOException {<NEW_LINE>int n = 0;<NEW_LINE>int bite;<NEW_LINE>int available = inputStream.available();<NEW_LINE>logger.debug(() -> "Available to read: " + available);<NEW_LINE>try {<NEW_LINE>while (true) {<NEW_LINE>bite = inputStream.read();<...
& 0xff) + "' not found before max message length: " + maxMessageSize);
718,773
TaskExecuter createTaskExecuter(AsyncWorkTracker asyncWorkTracker, BuildCacheController buildCacheController, BuildOperationExecutor buildOperationExecutor, BuildOutputCleanupRegistry cleanupRegistry, GradleEnterprisePluginManager gradleEnterprisePluginManager, ClassLoaderHierarchyHasher classLoaderHierarchyHasher, Del...
buildOperationExecutor, taskExecutionListener, taskListenerInternal, executer);
166,185
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see erjang.beam.BlockVisitor2#visitInitBitString(erjang.EObject,<NEW_LINE>* erjang.beam.Arg, erjang.beam.Arg)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visitInitBitString(Arg size, int flags, Arg out, boolean unit_is_bits) {<NEW_LINE>push(size, Type.INT_TYPE)...
String methodName = unit_is_bits ? "bs_initBits" : "bs_init";
997,579
public long payTax(long duration, long limit) {<NEW_LINE>long storageTax = calculateTax(duration, limit);<NEW_LINE>long tax = exchange(storageTax, false);<NEW_LINE>logger.info("tax: " + tax);<NEW_LINE>long newTotalTax = dynamicPropertiesStore.getTotalStorageTax() + tax;<NEW_LINE>long newTotalPool <MASK><NEW_LINE>long n...
= dynamicPropertiesStore.getTotalStoragePool() - tax;
1,337,011
/*<NEW_LINE>* This method is passed a list of features to check against the auto features. For each auto feature, the method checks to see if the capability<NEW_LINE>* statement has been satisfied by any of the other features in the list. If so, it is add to the list of features to process.<NEW_LINE>* We then need to r...
().getFeature(feature));
1,176,006
public static void fillBorder(GrayI16 input, int value, int radius) {<NEW_LINE>// top and bottom<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0,radius,y->{<NEW_LINE>for (int y = 0; y < radius; y++) {<NEW_LINE>int indexTop = input.startIndex + y * input.stride;<NEW_LINE>int indexBottom = input.startIndex + (inpu...
y - 1) * input.stride;
1,463,368
public String createUpdateQuery(KunderaQuery kunderaQuery) {<NEW_LINE>EntityMetadata metadata = kunderaQuery.getEntityMetadata();<NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(metadata.getPersistenceUnit());<NEW_LINE>CQLTranslator translator = new CQLTranslator...
), builder.length());
1,738,459
public void loadSemantics(Properties props) throws ClassNotFoundException, IOException {<NEW_LINE>log.info("LOADING SEMANTICS");<NEW_LINE>// wordnet = new WordNet();<NEW_LINE>// load word vector<NEW_LINE>if (HybridCorefProperties.loadWordEmbedding(props)) {<NEW_LINE>log.info("LOAD: WordVectors");<NEW_LINE>String wordve...
word2vecFile = HybridCorefProperties.getPathWord2Vec(props);
617,993
public static String obfuscate(String s) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>byte[] b = s.getBytes(StandardCharsets.UTF_8);<NEW_LINE>buf.append(__OBFUSCATE);<NEW_LINE>for (int i = 0; i < b.length; i++) {<NEW_LINE>byte b1 = b[i];<NEW_LINE>byte b2 = b[b.length - (i + 1)];<NEW_LINE>if (b1 < 0 || b...
int j2 = (i0 % 256);
557,109
public static long wangwangHash(String str, int n) {<NEW_LINE>BigInteger h = BigInteger.ZERO;<NEW_LINE>for (int i = 0; i < str.length(); i++) {<NEW_LINE>String charx = String.valueOf((int) str.charAt(i));<NEW_LINE>BigInteger temp2 = h.multiply(_33);<NEW_LINE>BigInteger temp1 = temp2.add(new BigInteger(charx));<NEW_LINE...
h = h.add(temp1);
810,250
public Flux<NumericResponse<ZAddCommand, Number>> zAdd(Publisher<ZAddCommand> commands) {<NEW_LINE>return connection.execute(cmd -> Flux.from(commands).concatMap(command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notEmpty(command.getTuples(), "Tuples must not be empty or nu...
getKey(), args, values);
1,325,179
final ModifyAuthenticationProfileResult executeModifyAuthenticationProfile(ModifyAuthenticationProfileRequest modifyAuthenticationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyAuthenticationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,382,237
public void translateToBedrock(CompoundTagBuilder builder, CompoundTag javaTag, String javaId) {<NEW_LINE>if (!javaId.contains("banner"))<NEW_LINE>return;<NEW_LINE>String bannerType = javaId.contains("_wall_banner") ? "_wall_banner" : "_banner";<NEW_LINE>String color = javaId.substring(0, javaId.indexOf("[")).replace(b...
).replace("minecraft:", "");
562,208
private // be changed<NEW_LINE>void pushAtRuleNode(CSSNode atRuleNode) {<NEW_LINE>int length = document.getLength();<NEW_LINE>int selectorStartingOffset = atRuleNode.getStartingOffset();<NEW_LINE>int selectEndingOffset = atRuleNode.getEndingOffset();<NEW_LINE>// Locate first white space after the @rule<NEW_LINE>while (...
.getStartingOffset(), selectorStartingOffset));
822,492
public TableConstructorExpressionNode transform(TableConstructorExpressionNode tableConstructorExpressionNode) {<NEW_LINE>Token tableKeyword = formatToken(tableConstructorExpressionNode.tableKeyword(), 1, 0);<NEW_LINE>KeySpecifierNode keySpecifier = formatNode(tableConstructorExpressionNode.keySpecifier().orElse(null),...
openBracket(), 0, rowTrailingNL);
930,069
private JPanel buildUserInfoPanel() {<NEW_LINE>textFieldFirstName = new JFriendlyTextField(FIRST_NAME_HINT);<NEW_LINE>textFieldFirstName.setPreferredSize(new Dimension(300, 24));<NEW_LINE>textFieldLastName = new JFriendlyTextField(LAST_NAME_HINT);<NEW_LINE>textFieldLastName.setPreferredSize(new Dimension(300, 24));<NEW...
new BorderLayout(8, 8));
1,838,584
public // calculate gradient<NEW_LINE>void createNewTree() throws Exception {<NEW_LINE>LOG.info("------Create new tree------");<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>// 1. create new tree, initialize tree nodes and node stats<NEW_LINE>RegTree tree = new RegTree(this.param);<NEW_LINE>tree.initTr...
this.fSet, i -> i);
365,790
public static DescribeCloudDiskAvailableResourceInfoResponse unmarshall(DescribeCloudDiskAvailableResourceInfoResponse describeCloudDiskAvailableResourceInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCloudDiskAvailableResourceInfoResponse.setRequestId(_ctx.stringValue("DescribeCloudDiskAvailableResourceInfo...
("DescribeCloudDiskAvailableResourceInfoResponse.SupportResources[" + i + "].Category"));
1,071,939
public static void compress() {<NEW_LINE>String input = BinaryStdIn.readString();<NEW_LINE>TernarySearchTrie<Integer> ternarySearchTrie = resetDictionary();<NEW_LINE>// R is the codeword for EOF<NEW_LINE>int codeword = R + 1;<NEW_LINE>while (input.length() > 0) {<NEW_LINE>// Find max prefix match<NEW_LINE>String <MASK>...
key = ternarySearchTrie.longestPrefixOf(input);
1,806,659
public static void main(String[] args) throws Exception {<NEW_LINE>Properties properties = Utils.readPropertiesFile(ExampleConstants.CONFIG_FILE_NAME);<NEW_LINE>final String eventMeshIp = properties.getProperty(ExampleConstants.EVENTMESH_IP);<NEW_LINE>final String eventMeshGrpcPort = properties.getProperty(ExampleConst...
* 1000)).build();
473,949
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler#notifyReceiveAllowed(com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void notifyReceiveAllowed(DestinationHandler destinationHandler) {<NEW_LINE>...
new Object[] { destinationHandler });
1,488,229
public boolean checkAuthorization(ChannelHandlerContext ctx, FullHttpRequest req) {<NEW_LINE>String id = req.headers().get("Twitch-Eventsub-Message-Id");<NEW_LINE>String timestamp = req.headers().get("Twitch-Eventsub-Message-Timestamp");<NEW_LINE>String body = req.content().toString(Charset.defaultCharset());<NEW_LINE>...
FORBIDDEN, Unpooled.buffer());
347,318
public boolean visit(ForStatement node) {<NEW_LINE>handleToken(node, TokenNameLPAREN, this.options.insert_space_before_opening_paren_in_for, this.options.insert_space_after_opening_paren_in_for);<NEW_LINE>handleTokenBefore(node.getBody(), TokenNameRPAREN, this.options.insert_space_before_closing_paren_in_for, false);<N...
insert_space_before_comma_in_for_increments, this.options.insert_space_after_comma_in_for_increments);
1,117,407
private Future<?> asyncUpdated(final ManagedServiceFactory service, final String factoryPid, final String pid, final Dictionary<String, ?> properties) {<NEW_LINE>return caFactory.updateQueue.add(factoryPid, new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (TraceComponent.isAnyTraci...
{ factoryPid, pid, service });
1,564,951
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>DeviceSession deviceS...
setLatitude(parser.nextCoordinate());
661,240
final GetTimeSeriesServiceStatisticsResult executeGetTimeSeriesServiceStatistics(GetTimeSeriesServiceStatisticsRequest getTimeSeriesServiceStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTimeSeriesServiceStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
566,770
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentName, IProgressMonitor monitor) throws IOException {<NEW_LINE>if (monitor != null && monitor.isCanceled())<NEW_LINE>throw new OperationCanceledException();<NEW_LINE>try ...
requestor, participant, scope, monitor);
715,404
public void onRender(Env env, Scope scope, Writer writer) {<NEW_LINE>String flag = getPara("flag", scope);<NEW_LINE>String pflag = getPara("parentFlag", scope);<NEW_LINE>Long pId = getParaToLong("parentId", scope);<NEW_LINE>boolean asTree = getParaToBool("asTree", scope, Boolean.FALSE);<NEW_LINE>List<ProductCategory> c...
collect(Collectors.toList());
856,820
private void init() {<NEW_LINE>this.typePublic = new ConcurrentHashMap<String, String>();<NEW_LINE>this.typeUri = new ConcurrentHashMap<String, String>();<NEW_LINE>Map<String, NamespaceDefinition> namespaceDefinitionRegistry = new HashMap<String, NamespaceDefinition>();<NEW_LINE>ResourceLoader classLoader = loaderCache...
NamespaceDefinition namespaceDefinition = new NamespaceDefinition(null);
1,491,828
public ModulesCompilerData compile(String entry, Map<String, String> sources, BundleType bundleType, Map<String, String> namespaceMapping, List<OutputConfig> configs) throws Exception {<NEW_LINE>if (bundleType == null) {<NEW_LINE>bundleType = BundleType.internal;<NEW_LINE>}<NEW_LINE>if (namespaceMapping == null) {<NEW_...
nanoTime() - startNanos) / 1000000;
1,062,097
static <T> T decode(Coder<T> coder, Coder.Context context, byte[] bytes) throws CoderException, IOException {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Coder<T> deserializedCoder = SerializableUtils.clone(coder);<NEW_LINE>byte[] buffer;<NEW_LINE>if (Objects.equals(context, Coder.Context.NESTED)) {<NEW_LINE>buffe...
buffer[bytes.length] = 1;
823,454
private void addFeedBlockedRowIfNodeIsBlocking(ClusterStateBundle stateBundle, NodeInfo nodeInfo, HtmlTable.Row nodeRow) {<NEW_LINE>// We only show a feed block row if the node is actually blocking feed in the cluster, not<NEW_LINE>// just if limits have been exceeded (as feed block may be config disabled).<NEW_LINE>//...
().setRowSpan(2));
804,747
private synchronized void initOptions(boolean firstTime) {<NEW_LINE>long start = 0;<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>start = System.currentTimeMillis();<NEW_LINE>// NOI18N<NEW_LINE>Object[] objects = new Object[] { firstTime ? "" : "re", wmRoot != null ? FileUtil.toFile(wmRoot) : "<null>" };<NEW_LINE...
System.currentTimeMillis() - start };
1,502,302
final DeleteTrafficPolicyInstanceResult executeDeleteTrafficPolicyInstance(DeleteTrafficPolicyInstanceRequest deleteTrafficPolicyInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTrafficPolicyInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTrafficPolicyInstance");
144,131
public DescribeApplicationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeApplicationResult describeApplicationResult = new DescribeApplicationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
1,157,314
public static Object iValueToJavaWithType(IValue iValue, Class<?> clazz) {<NEW_LINE>Object v = iValueToJava(iValue);<NEW_LINE>if (null == v) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// to Alink Tensor<NEW_LINE>if (com.alibaba.alink.common.linalg.tensor.Tensor.class.isAssignableFrom(clazz)) {<NEW_LINE>if (v instanceo...
, clazz.getSimpleName()));
1,802,775
final DescribeAccountOverviewResult executeDescribeAccountOverview(DescribeAccountOverviewRequest describeAccountOverviewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountOverviewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountOverview");
1,274,778
void waitScatterRegionFinish(TiRegion region, BackOffer backOffer) {<NEW_LINE>for (; ; ) {<NEW_LINE>GetOperatorResponse resp = <MASK><NEW_LINE>if (resp != null) {<NEW_LINE>if (isScatterRegionFinish(resp)) {<NEW_LINE>logger.info(String.format("wait scatter region on %d is finished", region.getId()));<NEW_LINE>return;<NE...
getOperator(region.getId());
1,380,248
final PutInlinePolicyToPermissionSetResult executePutInlinePolicyToPermissionSet(PutInlinePolicyToPermissionSetRequest putInlinePolicyToPermissionSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putInlinePolicyToPermissionSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
endClientExecution(awsRequestMetrics, request, response);
645,951
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>// named window tests<NEW_LINE>// no share<NEW_LINE>execs.add(new InfraNWTableSubqCorrelCoerceSimple(true, false, false, false));<NEW_LINE>// no share create index<NEW_LINE>execs.add(...
, true, false, true));
1,312,572
public void populateTable(Context context, String dbPassword) {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>SQLiteDatabase.loadLibs(context);<NEW_LINE>String dbPath = context.getDatabasePath("Players.db").getPath();<NEW_LINE>File dbPathFile = new File(dbPath);<NEW_LINE>if (!dbPathFile.exists()) {<NEW_LINE>dbPathFile<MASK><N...
.getParentFile().mkdirs();
1,031,523
private static List<String> listJarMime(URL url, @Nullable String prefix, @Nullable String type) {<NEW_LINE>List<String> output = new ArrayList<>();<NEW_LINE>FileNameMap fileNameMap = URLConnection.getFileNameMap();<NEW_LINE>JarFile jarfile;<NEW_LINE>try {<NEW_LINE>JarURLConnection connection = (JarURLConnection) url.o...
(ZipEntry) e.nextElement();
1,641,446
JSONObject writeItemsToJson(@NonNull JSONObject json) {<NEW_LINE>JSONArray jsonArray = new JSONArray();<NEW_LINE>Gson gson = new Gson();<NEW_LINE>Type type = new TypeToken<HashMap<String, String>>() {<NEW_LINE>}.getType();<NEW_LINE>if (!items.isEmpty()) {<NEW_LINE>try {<NEW_LINE>for (QuickAction action : items) {<NEW_L...
getActionType().getStringId());
409,684
public void doAction() {<NEW_LINE>Object[] payload = getNotification().getBody();<NEW_LINE>Entity entity = (Entity) payload[0];<NEW_LINE>entityId = EntityUtils.getEntityId(entity);<NEW_LINE>int fps = (int) payload[1];<NEW_LINE>String animName = (String) payload[2];<NEW_LINE>Animation.PlayMode playMode = (<MASK><NEW_LIN...
Animation.PlayMode) payload[3];
527,022
public void run() {<NEW_LINE>// Disallow iframing.<NEW_LINE>response.setHeader(X_FRAME_OPTIONS, "SAMEORIGIN");<NEW_LINE>// Ask IE not to be silly.<NEW_LINE>response.setHeader("X-Ui-Compatible", "IE=edge");<NEW_LINE>if (!authResult.userAuthInfo().isPresent()) {<NEW_LINE>response.setStatus(SC_MOVED_TEMPORARILY);<NEW_LINE...
data.put("logoFilename", logoFilename);
1,810,352
public boolean containsSuffix(Sequence seq) {<NEW_LINE>int state = root;<NEW_LINE>int i = 0;<NEW_LINE>while (true) {<NEW_LINE>// Find an edge leaving the current state marked with symbol sequence[i].<NEW_LINE>final int edge = findEdge(state, seq.objectAt(i));<NEW_LINE>if (edge < 0) {<NEW_LINE>// Different characters on...
m = getEndIndex(edge) + 1;
841,889
public void initializeRecordingManager() throws OpenViduException {<NEW_LINE>this.dockerManager.init();<NEW_LINE>this.composedRecordingService = new ComposedRecordingService(this, recordingDownloader, recordingUploader, kmsManager, fileManager, openviduConfig, cdr, this.dockerManager);<NEW_LINE>this.composedQuickStartR...
LocalDockerManager dockMng = new LocalDockerManager(true);
1,278,255
private boolean tryVariableExpressionAsProperty(final VariableExpression vexp, final String dynName) {<NEW_LINE>PropertyExpression pexp = thisPropX(true, dynName);<NEW_LINE>if (visitPropertyExpressionSilent(pexp, vexp)) {<NEW_LINE>vexp.copyNodeMetaData(pexp.getObjectExpression());<NEW_LINE>for (Object key : new Object[...
vexp.removeNodeMetaData(StaticTypesMarker.INFERRED_TYPE);
73,619
public void sendGOAWAYFrame(Http2Exception e) throws Http2Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "sendGOAWAYFrame: " + <MASK><NEW_LINE>}<NEW_LINE>boolean doGoAwayFromHere = muxLink.setStatusLinkToGoAwaySending();<NEW_LINE>if (!doGoAwayFromHere) {<NE...
" :close: H2InboundLink hc: " + muxLink.hashCode());
405,298
protected Long readCountAllActiveSkusInternal(Date currentDate) {<NEW_LINE>// Set up the criteria query that specifies we want to return a Long<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> criteria = builder.createQuery(Long.class);<NEW_LINE>// The root of our search is sku<N...
criteria.from(SkuImpl.class);
1,606,889
public void execute(final String sql, final List<Object> parameters, final ConnectionInformation connectionInformation) {<NEW_LINE>if (check()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HmilyStatement statement;<NEW_LINE>try {<NEW_LINE>statement = HmilySqlParserEngineFactory.newInstance().parser(sql, DatabaseTypes.INSTANC...
"TAC-try-lock ::: {}", undoContext.getHmilyLocks());
187,463
final DescribeAppInstanceAdminResult executeDescribeAppInstanceAdmin(DescribeAppInstanceAdminRequest describeAppInstanceAdminRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
395,885
private SourceMethodElementInfo createMethodInfo(MethodInfo methodInfo, SourceMethod handle) {<NEW_LINE>IJavaElement[] elements = getChildren(methodInfo);<NEW_LINE>SourceMethodElementInfo info;<NEW_LINE>if (methodInfo.isConstructor) {<NEW_LINE>info = elements.length == 0 ? new SourceConstructorInfo() : new SourceConstr...
node.arguments, handle, methodInfo);
904,568
public void testCriteriaQuery_int(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.f...
cq.from(Entity0010.class);
1,779,318
FaultToleranceMethod createFaultToleranceMethod(ClassInfo beanClass, MethodInfo method) {<NEW_LINE>Set<Class<? extends Annotation>> annotationsPresentDirectly = new HashSet<>();<NEW_LINE>FaultToleranceMethod result = new FaultToleranceMethod();<NEW_LINE>result.beanClass = getClassProxy(beanClass);<NEW_LINE>result.metho...
class, method, beanClass, annotationsPresentDirectly);
92,205
protected void run(HtmlRuleContext context, List<Hint> result) {<NEW_LINE>Snapshot snapshot = context.getSnapshot();<NEW_LINE>int snapshotLen = snapshot.getText().length();<NEW_LINE>List<? extends Error> diagnostics = context.getLeftDiagnostics();<NEW_LINE>ListIterator<? extends Error> itr = diagnostics.listIterator();...
), errorOffsetRange, fixes, 20);
1,416,692
private void ikUpdate(float tpf) {<NEW_LINE>TempVars vars = TempVars.get();<NEW_LINE>Quaternion tmpRot1 = vars.quat1;<NEW_LINE>Quaternion[] tmpRot2 = new Quaternion[] { vars.quat2, new Quaternion() };<NEW_LINE>Iterator<String> it = ikTargets.keySet().iterator();<NEW_LINE>float distance;<NEW_LINE>Bone bone;<NEW_LINE>Str...
(boneName), depth, maxDepth);
652,469
private IInvoiceCandAggregate createQualityDiscountInvoiceLine(@NonNull final I_C_Invoice_Candidate candidate, final BigDecimal qtyDiscount, final IInvoiceLineRW originalInvoiceLineRW) {<NEW_LINE>final BigDecimal qtyToInvoice = qtyDiscount.negate();<NEW_LINE>final StockQtyAndUOMQty stockQtyAndUOMQtyToInvoice = StockQty...
addAssociation(candidate, invoiceLine, stockQtyAndUOMQtyToInvoice);
547,652
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
getChildren().get(0);
226,242
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create table MyTable(" + <MASK><NEW_LINE>env.compileDeploy("into table MyTable " + "select window(sb.*) as thewin, sorted(sb.*) as thesort " + "from SupportBean_S0#lastevent, SupportBean...
"thewin window(*) @type('SupportBean')," + "thesort sorted(intPrimitive desc) @type('SupportBean')" + ")", path);
1,135,193
private void performPreview() {<NEW_LINE>Collection col = mTemplateEditor.getCol();<NEW_LINE>TemporaryModel tempModel = mTemplateEditor.getTempModel();<NEW_LINE>Timber.i("CardTemplateEditor:: Preview on tab %s", mTemplateEditor.mViewPager.getCurrentItem());<NEW_LINE>// Create intent for the previewer and add some argum...
i.putExtra("ordinal", ordinal);
1,183,590
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {<NEW_LINE>List<MegaNode> documents = adapter.getSelectedNodes();<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.cab_menu_download:<NEW_LINE>{<NEW_LINE>((ContactFileListActivity) context).downloadFile(documents);<NEW_LINE>break;<NEW_LINE>}<NEW_L...
node = documents.get(0);
443,429
public void surfaceCreated(SurfaceHolder surfaceHolder) {<NEW_LINE>if (isThemeChangingProcess()) {<NEW_LINE>LOGGER.d(TAG, "Activity is being recreated due theme changing, skip 'surfaceCreated' callback");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOGGER.<MASK><NEW_LINE>final Surface surface = surfaceHolder.getSurface();<NEW...
d(TAG, "surfaceCreated, mSurfaceCreated = " + mSurfaceCreated);
1,813,660
public int doStartTag() throws JspException {<NEW_LINE>boolean getSize = ServletRequestUtils.getBooleanParameter(pageContext.getRequest(), param, false);<NEW_LINE>StringBuilder query = new StringBuilder();<NEW_LINE>query.append(param).append("=").append(!getSize);<NEW_LINE>String encoding = pageContext<MASK><NEW_LINE>f...
.getResponse().getCharacterEncoding();
290,138
public ActionTypeIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ActionTypeIdentifier actionTypeIdentifier = new ActionTypeIdentifier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
1,417,004
public void marshall(DescribeFolderContentsRequest describeFolderContentsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describeFolderContentsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
describeFolderContentsRequest.getLimit(), LIMIT_BINDING);
1,535,749
public IStatus switchBranch(String branchName, IProgressMonitor monitor) {<NEW_LINE>if (branchName == null) {<NEW_LINE>return new Status(IStatus.ERROR, <MASK><NEW_LINE>}<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 4);<NEW_LINE>try {<NEW_LINE>// Before switching branches, check for existence of every open proj...
GitPlugin.PLUGIN_ID, Messages.GitRepository_ERR_BranchNotProvided);
1,214,502
public static void main(String[] args) throws Exception {<NEW_LINE>CommandLine commandLine = parseCommandLine(args);<NEW_LINE>String zookeeper = commandLine.getOptionValue(ZOOKEEPER);<NEW_LINE>ZkUtils zkUtils = KafkaUtils.getZkUtils(zookeeper);<NEW_LINE>Seq<String> topicsSeq = zkUtils.getAllTopics();<NEW_LINE>List<Stri...
._2().size();
1,604,164
public Explanation.Code includes(final AclRule rule, final Map<String, String> resource, final String action) {<NEW_LINE>// evaluate type<NEW_LINE>if (rule.getResourceType() != null) {<NEW_LINE>String resType = resource.get("type");<NEW_LINE>if (null == resType || !rule.getResourceType().equals(resType)) {<NEW_LINE>ret...
matched &= ruleMatchesMatchSection(resource, rule);
1,420,678
final DescribeImportTasksResult executeDescribeImportTasks(DescribeImportTasksRequest describeImportTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImportTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new DescribeImportTasksResultJsonUnmarshaller());
1,473,833
public boolean isRun(final String ip, final int port, final String password, final int retryTimes) {<NEW_LINE>boolean isRun = new IdempotentConfirmer(retryTimes) {<NEW_LINE><NEW_LINE>private int timeOutFactor = 1;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean execute() {<NEW_LINE>Jedis jedis = null;<NEW_LINE>try...
getJedis(ip, port, password);