idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
861,315 | final DescribeNotebookInstanceLifecycleConfigResult executeDescribeNotebookInstanceLifecycleConfig(DescribeNotebookInstanceLifecycleConfigRequest describeNotebookInstanceLifecycleConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNotebookInstanceLifecycleConfigRequest);<NEW_LIN... | false), new DescribeNotebookInstanceLifecycleConfigResultJsonUnmarshaller()); |
782,898 | public ProfiledInterval profile(Thread threadToProfile, long initialDelayNanos) {<NEW_LINE>long capturedSampleIntervalNanos = sampleIntervalNanos.get();<NEW_LINE><MASK><NEW_LINE>Thread samplerThread = new Thread(SAMPLER_GROUP, () -> {<NEW_LINE>long nextSleepBaseline = initialDelayNanos > 0 ? sleep(baseline, initialDela... | long baseline = System.nanoTime(); |
1,815,613 | public Void visitNewClass(NewClassTree tree, Void p) {<NEW_LINE>defaultAction(tree);<NEW_LINE>if (tree.getEnclosingExpression() != null) {<NEW_LINE>tree.getEnclosingExpression().accept(this, p);<NEW_LINE>}<NEW_LINE>tree.getIdentifier().accept(this, p);<NEW_LINE>for (Tree typeArgument : tree.getTypeArguments()) {<NEW_LI... | member.accept(this, p); |
129,265 | public void buildTablesPhysicalPlans() {<NEW_LINE>TableGroupConfig tableGroupConfig = OptimizerContext.getContext(preparedData.getSchemaName()).getTableGroupInfoManager().getTableGroupConfigByName(preparedData.getTableGroupName());<NEW_LINE>List<GroupDetailInfoExRecord> groupDetailInfoExRecords = preparedData.getTarget... | tableName, itemBuilder.getTableTopology()); |
432,458 | public void draw(DrawHandler drawHandler, DrawingInfo drawingInfo) {<NEW_LINE>double width = drawingInfo.getSymmetricWidth(getFirstLifeline(), getLastLifeline(), tick);<NEW_LINE>double height = getHeight(drawHandler, width);<NEW_LINE>double topY = drawingInfo.getVerticalStart(tick) + (drawingInfo.getTickHeight(tick) - ... | drawHandler, HEADER_TEXT, width, topLeft); |
1,230,170 | final DeletePolicyResult executeDeletePolicy(DeletePolicyRequest deletePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | (super.beforeMarshalling(deletePolicyRequest)); |
76,573 | synchronized void map(URL url) throws IOException {<NEW_LINE>if ("jrt".equals(url.getProtocol())) {<NEW_LINE>classMapping("FileSystem: " + url);<NEW_LINE>map(searchJrtFSForClasses(url<MASK><NEW_LINE>} else if ("jar".equals(url.getProtocol())) {<NEW_LINE>classMapping("FileSystem: " + url);<NEW_LINE>map(searchJarFSForCla... | ), new JrtClassSource(url)); |
1,434,767 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE>int leastPower = Integer.MAX_VALUE... | destroy(source, game, true); |
374,062 | public static DevInterceptorInfo from(InterceptorInfo interceptor, CompletedApplicationClassPredicateBuildItem predicate) {<NEW_LINE>boolean isApplicationBean = predicate.test(interceptor.getBeanClass());<NEW_LINE>Set<Name> bindings = new HashSet<>();<NEW_LINE>for (AnnotationInstance binding : interceptor.getBindings()... | AROUND_CONSTRUCT, interceptor.getAroundConstruct()); |
849,581 | private void addNodeMetricsBody(Collection<Pair<String, NodeMetricSnapshot>> snapshots) {<NEW_LINE>synchronized (nodeTable.writeLock) {<NEW_LINE>try (TableWriter writer = nodeTable.getWriter()) {<NEW_LINE>for (var snapshot : snapshots) {<NEW_LINE>Optional<Long> atMillis = nodeTable.adjustOrDiscard(snapshot.getSecond().... | getSecond().inService()); |
572,661 | public void sawOpcode(int seen) {<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Saw opcode " + OPCODE_NAMES<MASK><NEW_LINE>}<NEW_LINE>if ((prevOpCode == I2D || prevOpCode == L2D) && seen == INVOKESTATIC && ClassName.isMathClass(getClassConstantOperand()) && "ceil".equals(getNameConstantOperand())) {<NEW_LINE>bugAc... | [seen] + " " + pendingIdivCastToDivBugLocation); |
1,655,749 | public void onClick(View view) {<NEW_LINE>super.onClick(view);<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());<NEW_LINE>builder.setTitle(R.string.notifications);<NEW_LINE>String[] items = new String[] { getString(R.string.none), getString(R.string.toast), getString(R.string.notification) ... | .create().show(); |
1,736,330 | private ProvisionResponse processCreateDevice(ProvisionRequest provisionRequest, DeviceProfile profile) {<NEW_LINE>try {<NEW_LINE>if (StringUtils.isEmpty(provisionRequest.getDeviceName())) {<NEW_LINE>String newDeviceName = RandomStringUtils.randomAlphanumeric(20);<NEW_LINE>log.info("Device name not found in provision r... | ), provisionRequest.getDeviceName()); |
156,628 | public TypeDeclaration<?> toTypeDeclaration() {<NEW_LINE>ClassOrInterfaceDeclaration classDecl = new ClassOrInterfaceDeclaration().setName(name);<NEW_LINE>if (type.equals("object")) {<NEW_LINE>classDecl.addExtendedType("com.google.common.collect.ForwardingMap<String, Object>");<NEW_LINE>}<NEW_LINE>String propertyName =... | .format("return %s;", propertyName)); |
1,261,472 | public static void horizontal11(Kernel1D_S32 kernel, GrayS32 image, GrayS32 dest) {<NEW_LINE>final int[] dataSrc = image.data;<NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.... | k10 = kernel.data[9]; |
213,217 | // For offline segment pushes, validate that there are no missing segments, and update metrics<NEW_LINE>private void validateOfflineSegmentPush(TableConfig tableConfig) {<NEW_LINE>String offlineTableName = tableConfig.getTableName();<NEW_LINE>List<SegmentZKMetadata> segmentsZKMetadata = _pinotHelixResourceManager.getSe... | Math.max(segmentPushTime, segmentRefreshTime); |
1,140,900 | private void maybeSaveTimeline(ReplayFile replayFile) {<NEW_LINE>SPTimeline spTimeline = currentTimeline;<NEW_LINE>if (spTimeline == null || saveService == null) {<NEW_LINE>lastTimeline = null;<NEW_LINE>lastChange = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Change latestChange = spTimeline.getTimeline().peekUndoStack(... | , spTimeline.getTimeline())); |
1,227,467 | protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);<NEW_LINE>int order = 1;<NEW_LINE>double sigma = FactoryKernelGaussian.sigmaForRadius(radius, ... | kernel.get(x, y); |
780,380 | public static void main(String[] args) throws Exception {<NEW_LINE>ArgP argp = new ArgP();<NEW_LINE>CliOptions.addCommon(argp);<NEW_LINE>CliOptions.addVerbose(argp);<NEW_LINE>argp.addOption("--idwidth", "N", "Number of bytes on which the UniqueId is encoded.");<NEW_LINE>argp.addOption("--ignore-case", "Ignore case dist... | LOG.error("Unexpected exception while shutting down", e); |
1,097,799 | protected Promise<Tuple5<T1, T2, T3, T4, T5>> run(final Context context) throws Exception {<NEW_LINE>final SettablePromise<Tuple5<T1, T2, T3, T4, T5>> result = Promises.settable();<NEW_LINE>InternalUtil.fastFailAfter(p -> {<NEW_LINE>if (p.isFailed()) {<NEW_LINE>result.<MASK><NEW_LINE>} else {<NEW_LINE>result.done(tuple... | fail(p.getError()); |
1,378,391 | private void smartAppendExclusive(char[] vl, char val) {<NEW_LINE>int oldend;<NEW_LINE>if ((nbrruns == 0) || ((val) > (oldend = (getValue(nbrruns - 1)) + (getLength(nbrruns - 1)) + 1))) {<NEW_LINE>// we add a new one<NEW_LINE>vl[2 * nbrruns] = val;<NEW_LINE>vl[2 * nbrruns + 1] = 0;<NEW_LINE>nbrruns++;<NEW_LINE>return;<... | (nbrruns, (char) newend); |
1,142,376 | IndexedDigest H_msg(byte[] R, byte[] pkSeed, byte[] pkRoot, byte[] message) {<NEW_LINE>int forsMsgBytes = ((A * K) + 7) / 8;<NEW_LINE>int leafBits = H / D;<NEW_LINE>int treeBits = H - leafBits;<NEW_LINE>int leafBytes = (leafBits + 7) / 8;<NEW_LINE>int treeBytes = (treeBits + 7) / 8;<NEW_LINE>int m = forsMsgBytes + leaf... | ] out = new byte[m]; |
1,687,654 | public static GetEditingProjectMaterialsResponse unmarshall(GetEditingProjectMaterialsResponse getEditingProjectMaterialsResponse, UnmarshallerContext _ctx) {<NEW_LINE>getEditingProjectMaterialsResponse.setRequestId(_ctx.stringValue("GetEditingProjectMaterialsResponse.RequestId"));<NEW_LINE>List<Material> materialList ... | + "].Snapshots[" + j + "]")); |
1,105,039 | public void run() {<NEW_LINE>try {<NEW_LINE>String providerData = NetUtils.getContent(new URL(providerListUrl), 5000);<NEW_LINE>ObjectNode provider = objectMapper.readValue(providerData, ObjectNode.class);<NEW_LINE>ArrayNode arryaNode = (ArrayNode) provider.get("services");<NEW_LINE>for (JsonNode jsonNode : arryaNode) ... | ArrayNode) jsonNode.get("outputs"); |
1,767,230 | public static void main(String[] args) throws IOException {<NEW_LINE>BufferedImage image = ImageIO.read(new File(args[0]));<NEW_LINE>ImageWriter writer = <MASK><NEW_LINE>writer.setOutput(ImageIO.createImageOutputStream(new File(args[1])));<NEW_LINE>// writer.addIIOWriteProgressListener(new ProgressListenerBase() {<NEW_... | new IFFImageWriter(new IFFImageWriterSpi()); |
1,562,145 | private static Map<String, Wrapper<BaseCatalog>> loadCatalogClasses() {<NEW_LINE>Reflections reflections = new Reflections("com.alibaba.alink");<NEW_LINE>Map<String, Wrapper<BaseCatalog>> map = new HashMap<>();<NEW_LINE>Set<Class<?>> set = reflections.getTypesAnnotatedWith(CatalogAnnotation.class);<NEW_LINE>for (Class<... | BaseCatalog>) clazz, hasTimestamp)); |
836,869 | public ASTNode visitCreateTableAsSelectClause(final CreateTableAsSelectClauseContext ctx) {<NEW_LINE>SQLServerCreateTableStatement result = new SQLServerCreateTableStatement();<NEW_LINE>if (null != ctx.createTableAsSelect()) {<NEW_LINE>result.setTable((SimpleTableSegment) visit(ctx.createTableAsSelect().tableName()));<... | ().tableName())); |
1,795,923 | private static boolean check_ARB_robustness(FunctionProvider provider, PointerBuffer caps, Set<String> ext) {<NEW_LINE>if (!ext.contains("GL_ARB_robustness")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int flag0 = provider.getFunctionAddress("glGetMapdv") != NULL ? 0 : Integer.MIN_VALUE;<NEW_LINE>int flag1 = provider... | != NULL ? 0 : Integer.MIN_VALUE; |
278,674 | protected int encodeTransactionLine(MessageTree tree, Transaction t, ByteBuf buf, Locator locator, Ruler ruler) {<NEW_LINE>BufferHelper helper = m_bufferHelper;<NEW_LINE>XmlBuilder b = new XmlBuilder();<NEW_LINE>int width = 6;<NEW_LINE>int height = 18;<NEW_LINE>int x = 0;<NEW_LINE>int y = locator.getLine() <MASK><NEW_L... | * height + ruler.getOffsetY(); |
958,538 | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) {<NEW_LINE>// paint tab separators<NEW_LINE>if (clientPropertyBoolean(tabPane, TABBED_PANE_SHOW_TAB_SEPARATORS, showTabSeparators) && !isLastInRun(tabIndex)) {<NEW_LINE>if (getTabType() == TAB_TYPE_... | x, y, w, h); |
481,617 | public void put(long key, E value) {<NEW_LINE>int i = binarySearch(mKeys, 0, mSize, key);<NEW_LINE>if (i >= 0) {<NEW_LINE>mValues[i] = value;<NEW_LINE>} else {<NEW_LINE>i = ~i;<NEW_LINE>if (i < mSize && mValues[i] == DELETED) {<NEW_LINE>mKeys[i] = key;<NEW_LINE>mValues[i] = value;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>i... | n = idealLongArraySize(mSize + 1); |
909,119 | public void propagate(InstanceState state) {<NEW_LINE>// get attributes<NEW_LINE>final var data = BitWidth.ONE;<NEW_LINE>final var select = state.getAttributeValue(PlexersLibrary.ATTR_SELECT);<NEW_LINE>final var threeState = <MASK><NEW_LINE>final var enable = state.getAttributeValue(PlexersLibrary.ATTR_ENABLE);<NEW_LIN... | state.getAttributeValue(PlexersLibrary.ATTR_TRISTATE); |
313,406 | // @formatter:on<NEW_LINE>@Override<NEW_LINE>public boolean applies(IProgressMonitor monitor) throws CoreException {<NEW_LINE>if (rootFolder == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Preferences preferences = getPreferences();<NEW_LINE>if (!preferences.isImportGradleEnabled()) {<NEW_LINE>return false;<NEW_L... | .getLocation().toOSString(); |
162,733 | public void acceptType(char[] packageName, char[] typeName, int modifiers, boolean isDeclaration, char[] uniqueKey, int start, int end) {<NEW_LINE>int acceptFlags = 0;<NEW_LINE>int kind = modifiers & (ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation);<NEW_LINE>switch(kind)... | type.getElementName(), key); |
300,228 | // Clone new authentication session from the given authSession. New authenticationSession will have same parent (rootSession) and will use same client<NEW_LINE>public static AuthenticationSessionModel clone(KeycloakSession session, AuthenticationSessionModel authSession) {<NEW_LINE>AuthenticationSessionModel clone = au... | ), clientNote.getValue()); |
523,100 | // Fold an accessor getter into the method handle of a user accessor property.<NEW_LINE>private MethodHandle insertAccessorsGetter(final UserAccessorProperty uap, final LinkRequest request, final MethodHandle mh) {<NEW_LINE>MethodHandle superGetter = uap.getAccessorsGetter();<NEW_LINE>if (isInherited()) {<NEW_LINE>supe... | getPrimitiveWrapFilter(request.getReceiver()); |
305,744 | /*<NEW_LINE>* this method should be called in readlock scope of 'rwLock'. This method<NEW_LINE>* returns a new set, by adding excludedBookies and bookies in<NEW_LINE>* defaultfaultdomain.<NEW_LINE>*/<NEW_LINE>protected Set<BookieId> addDefaultFaultDomainBookies(Set<BookieId> excludeBookies) {<NEW_LINE>Set<BookieId> com... | new HashSet<BookieId>(excludeBookies); |
15,104 | public void deleteAttributesInBackground(final List<String> attributeNamesToDelete, final GenericHandler callback) {<NEW_LINE>if (callback == null) {<NEW_LINE>throw new CognitoParameterInvalidException("callback is null");<NEW_LINE>}<NEW_LINE>final CognitoUser user = this;<NEW_LINE>new Thread(new Runnable() {<NEW_LINE>... | Handler(context.getMainLooper()); |
1,066,150 | private MatchResult recordAndMatchCandidateValue(int c, int a) {<NEW_LINE>Object requestedValue = getRequestedValue(a);<NEW_LINE>Attribute<?> attribute = requestedAttributes.get(a);<NEW_LINE>AttributeValue<?> candidateValue = candidateAttributeSets[c].<MASK><NEW_LINE>if (!candidateValue.isPresent()) {<NEW_LINE>setCandi... | findEntry(attribute.getName()); |
971,529 | // recursively delete the directory and its contents<NEW_LINE>public boolean delete(Path path, boolean recursive) throws IOException {<NEW_LINE>final Path absolute = makeAbsolute(path);<NEW_LINE>try {<NEW_LINE>final KfsFileAttr fa = qfsImpl.fullStat(absolute);<NEW_LINE>final String srep = absolute.toUri().getPath();<NE... | qfsImpl.rmdir(srep) == 0; |
1,285,027 | final SetTerminationProtectionResult executeSetTerminationProtection(SetTerminationProtectionRequest setTerminationProtectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setTerminationProtectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | (super.beforeMarshalling(setTerminationProtectionRequest)); |
549,316 | public ValueHolder<V> computeAndGet(K key, BiFunction<? super K, ? super V, ? extends V> mappingFunction, Supplier<Boolean> replaceEqual, Supplier<Boolean> invokeWriter) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>XATransactionContext<K, V> currentContext = getCurrentContext();<NEW_LINE>if (currentCo... | >> softLockValueHolder = getSoftLockValueHolderFromUnderlyingStore(key); |
1,719,768 | private static TsMethodModel createDeserializationMethodForTaggedUnion(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean) {<NEW_LINE>final List<TsSwitchCaseClause> caseClauses = new ArrayList<>();<NEW_LINE>for (Class<?> cls : bean.getTaggedUnionClasses()) {<NEW_LINE>final TsBeanModel <MASK><NEW_LINE>caseClause... | tuBean = tsModel.getBean(cls); |
1,334,797 | private Task<int[]> mergePlan(final Range fstRange, final Promise<int[]> fstPromise, final Range sndRange, final Promise<int[]> sndPromise) {<NEW_LINE>return callable("Merge " + fstRange + " " + sndRange, new Callable<int[]>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int[] call() throws Exception {<NEW_LINE>final... | fst.length + snd.length]; |
1,112,467 | public void process(GrayF32 intensity, GrayS8 direction, float lower, float upper) {<NEW_LINE>if (lower < 0)<NEW_LINE>throw new IllegalArgumentException("Lower must be >= 0!");<NEW_LINE>InputSanityCheck.checkSameShape(intensity, direction);<NEW_LINE>// set up internal data structures<NEW_LINE>this.intensity = intensity... | .startIndex + y * intensity.stride; |
1,390,227 | protected void handleException(final ZuulMessage zuulMesg, final String filterName, final Exception ex) {<NEW_LINE>HttpRequestInfo zuulReq = null;<NEW_LINE>if (zuulMesg instanceof HttpRequestMessage) {<NEW_LINE>zuulReq = (HttpRequestMessage) zuulMesg;<NEW_LINE>} else if (zuulMesg instanceof HttpResponseMessage) {<NEW_L... | logger.error(errMesg, ex); |
1,484,266 | public void createTableLike(CreateTableLikeStmt stmt) throws DdlException {<NEW_LINE>try {<NEW_LINE>Database db = Catalog.getCurrentCatalog().getDb(stmt.getExistedDbName());<NEW_LINE>List<String> createTableStmt = Lists.newArrayList();<NEW_LINE>db.readLock();<NEW_LINE>try {<NEW_LINE>Table table = db.getTable(stmt.getEx... | null, null, false, false); |
496,439 | private List<String> decode(List<Candidates> candidatesList) {<NEW_LINE>ActiveList<Hypothesis> current = new ActiveList<>();<NEW_LINE>ActiveList<Hypothesis> next = new ActiveList<>();<NEW_LINE>// Pad with END tokens.<NEW_LINE>candidatesList.add(END_CANDIDATES);<NEW_LINE>Hypothesis initial = new Hypothesis();<NEW_LINE>i... | (hist[j].content); |
33,400 | public DescribeAcceleratorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAcceleratorResult describeAcceleratorResult = new DescribeAcceleratorResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | ().unmarshall(context)); |
1,706,188 | public void process(Supplier<Context> context) {<NEW_LINE>context.get().enqueueWork(() -> {<NEW_LINE>WireLogger.logger.debug("Processing sync for connection from {} to {}, type {}, adding {}", start, end, type, added);<NEW_LINE>Player player = ImmersiveEngineering.proxy.getClientPlayer();<NEW_LINE>Level w = player.leve... | (type, start, end)); |
702,608 | public GATKReportTable generateReportTable(final String covariateNames) {<NEW_LINE>GATKReportTable argumentsTable;<NEW_LINE>argumentsTable = new GATKReportTable("Arguments", "Recalibration argument collection values used in this run", 2, GATKReportTable.Sorting.SORT_BY_COLUMN);<NEW_LINE>argumentsTable.addColumn("Argume... | argumentsTable.addRowID("binary_tag_name", true); |
1,507,273 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player targetPlayer = game.getPlayer(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (controller == null || targetPlayer == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>in... | > 1 ? "s" : "")); |
132,499 | public void putRetentionPolicy(PutRetentionPolicyRequest putRetentionPolicyRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putRetentionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(... | awsRequestMetrics.endEvent(Field.ClientExecuteTime); |
1,713,569 | /*<NEW_LINE>* This can be replaced by listening for the onShown/onHidden events<NEW_LINE>* Note: This method MUST only be called via its accessor method.<NEW_LINE>*/<NEW_LINE>private void doVisibleChanged(boolean value) {<NEW_LINE>if (value) {<NEW_LINE>// Finish initialization<NEW_LINE>TKStage peer = getPeer();<NEW_LIN... | = new ArrayList<Object>(); |
701,774 | public boolean rename(Path src, Path dst) throws IOException {<NEW_LINE>LOG.trace("rename(src {}, dst {})", src, dst);<NEW_LINE>boolean lakefsRes = false;<NEW_LINE>boolean s3aRes = false;<NEW_LINE>IOException lakeFSException = null;<NEW_LINE>IOException s3aException = null;<NEW_LINE>try {<NEW_LINE>lakefsRes = lfsFileSy... | dst, e.getMessage()); |
1,847,891 | public void updateReachableEndpoints(long now) {<NEW_LINE>if (destroyed)<NEW_LINE>return;<NEW_LINE>List<RPCServer> reachableServers = new ArrayList<>(interfacesInUse.values().size());<NEW_LINE>for (Iterator<RPCServer> it = interfacesInUse.values().iterator(); it.hasNext(); ) {<NEW_LINE>RPCServer srv = it.next();<NEW_LI... | reachableServers.size()))); |
1,004,164 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText;<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>SupportListener listener = env.listenerNew();<NEW_LINE>stmtText = "@public create window MyWindow#lastevent as select * from SupportBean";<NEW_LINE>env.compileDeploy(stmtText, path);<NEW_... | , 2, 1, 0 }); |
508,130 | public OTAUpdateFile unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>OTAUpdateFile oTAUpdateFile = new OTAUpdateFile();<NEW_LINE>reader.beginOb... | String name = reader.nextName(); |
1,302,631 | private static void propagateOthersMetaData(RelativeOrderMetaData relativeOrderMetaData, Map<String, RelativeOrderMetaData> relativeOrderMap) throws UnableToAdaptException {<NEW_LINE>boolean isTracing = TraceComponent.isAnyTracingEnabled();<NEW_LINE>OthersEnum othersEnum = relativeOrderMetaData.getOthersEnum();<NEW_LIN... | > afterNameList = relativeOrderMetaData.getAfterNameList(); |
233,737 | public static int sched_getcpu() {<NEW_LINE>final CLibrary lib = CLibrary.INSTANCE;<NEW_LINE>try {<NEW_LINE>final int ret = lib.sched_getcpu();<NEW_LINE>if (ret < 0) {<NEW_LINE>throw new IllegalStateException("sched_getcpu() failed; errno=" + Native.getLastError());<NEW_LINE>}<NEW_LINE>return ret;<NEW_LINE>} catch (Las... | << 20) + 1024L * 2L); |
316,621 | public void actionPerformed(ActionEvent e) {<NEW_LINE>if (!isLocked()) {<NEW_LINE>VisualElement ve = getActualVisualElement();<NEW_LINE>if (ve != null) {<NEW_LINE>try {<NEW_LINE>if (library.getElementType(ve.getElementName()).hasAttribute(Keys.INPUT_COUNT)) {<NEW_LINE>int number = ve.getElementAttributes().get(Keys.INP... | , Keys.INPUT_COUNT, number)); |
35,354 | // -------------------//<NEW_LINE>// renderAttachments //<NEW_LINE>// -------------------//<NEW_LINE>@Override<NEW_LINE>public void renderAttachments(Graphics2D g) {<NEW_LINE>if (attachments.isEmpty() || !ViewParameters.getInstance().isAttachmentPainting()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Color oldColor = ... | font = oldFont.deriveFont(at); |
1,619,985 | public static DescribeDataHubTopicsResponse unmarshall(DescribeDataHubTopicsResponse describeDataHubTopicsResponse, UnmarshallerContext context) {<NEW_LINE>describeDataHubTopicsResponse.setRequestId(context.stringValue("DescribeDataHubTopicsResponse.RequestId"));<NEW_LINE>describeDataHubTopicsResponse.setPageSize(conte... | ("DescribeDataHubTopicsResponse.Items[" + i + "].Name")); |
370,663 | public static <T extends ImageGray<T>, D extends ImageGray<D>> void generalized(T input) {<NEW_LINE>Class<T> inputType = (Class<T>) input.getClass();<NEW_LINE>Class<D> derivType = GImageDerivativeOps.getDerivativeType(inputType);<NEW_LINE><MASK><NEW_LINE>D derivX = GeneralizedImageOps.createSingleBand(derivType, input.... | T blurred = input.createSameShape(); |
1,824,428 | private void processLeaveType(MHRLeaveType leaveType) {<NEW_LINE>String durationType = TNAUtil.getDurationUnitFromFrequencyType(leaveType.getFrequencyType());<NEW_LINE>// Create<NEW_LINE>if (Util.isEmpty(durationType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (durationType.equals(TimeUtil.DURATIONUNIT_Hour)) {<NEW_LIN... | setHR_LeaveType_ID(leaveType.getHR_LeaveType_ID()); |
639,345 | private void maybeConfigureTlsProtocolsAndCiphers(SslContextFactory sslContextFactory) {<NEW_LINE>List<String> includeProtocols = _config.getList(WebServerConfig.WEBSERVER_SSL_INCLUDE_PROTOCOLS_CONFIG);<NEW_LINE>if (includeProtocols != null) {<NEW_LINE>sslContextFactory.setIncludeProtocols(includeProtocols.toArray(new ... | _config.getList(WebServerConfig.WEBSERVER_SSL_INCLUDE_CIPHERS_CONFIG); |
447,029 | private void extractPeakListList() throws UnsupportedAudioFileException {<NEW_LINE>PipedAudioStream f = new PipedAudioStream(fileName);<NEW_LINE>TarsosDSPAudioInputStream stream = f.getMonoStream(sampleRate, 0);<NEW_LINE>final SpectralPeakProcessor spectralPeakFollower = new SpectralPeakProcessor(fftsize, overlap, samp... | AudioDispatcher(stream, fftsize, overlap); |
1,617,074 | private boolean isPackageBundleLatest(JSONObject packageMetadata) {<NEW_LINE>try {<NEW_LINE>Long binaryModifiedDateDuringPackageInstall = null;<NEW_LINE>String binaryModifiedDateDuringPackageInstallString = packageMetadata.optString(CodePushConstants.BINARY_MODIFIED_TIME_KEY, null);<NEW_LINE>if (binaryModifiedDateDurin... | packageMetadata.optString("appVersion", null); |
1,174,867 | private static void queueStronglyReferencedValues(@Nonnull Deque<? super BackLink> queue, @Nonnull Object root, @Nonnull Predicate<Object> shouldExamineValue, @Nonnull BackLink backLink) {<NEW_LINE>Class<?> rootClass = root.getClass();<NEW_LINE>for (Field field : getAllFields(rootClass)) {<NEW_LINE>String fieldName = f... | value = field.get(root); |
292,965 | private KdNode insertExact(Coordinate p, Object data) {<NEW_LINE>KdNode currentNode = root;<NEW_LINE>KdNode leafNode = root;<NEW_LINE>boolean isXLevel = true;<NEW_LINE>boolean isLessThan = true;<NEW_LINE>while (currentNode != null) {<NEW_LINE>boolean isInTolerance = p.distance(<MASK><NEW_LINE>// check if point is alrea... | currentNode.getCoordinate()) <= tolerance; |
145,543 | public static String VRResources_GetResourceFullPath(@NativeType("char const *") CharSequence pchResourceName, @NativeType("char const *") CharSequence pchResourceTypeDirectory, @NativeType("uint32_t") int unBufferLen) {<NEW_LINE>MemoryStack stack = stackGet();<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>stack.nASCII(pchRe... | int stackPointer = stack.getPointer(); |
729,052 | public void replayAddBackend(Backend newBackend) {<NEW_LINE>// update idToBackend<NEW_LINE>if (Catalog.getCurrentCatalogJournalVersion() < FeMetaVersion.VERSION_30) {<NEW_LINE>newBackend.setOwnerClusterName(DEFAULT_CLUSTER);<NEW_LINE>newBackend.setBackendState(BackendState.using);<NEW_LINE>}<NEW_LINE>Map<Long, Backend>... | copiedBackends = Maps.newHashMap(idToBackendRef); |
1,288,016 | public RpcTaskResult runRPC() throws Exception {<NEW_LINE>RpcTaskResult result = new RpcTaskResult();<NEW_LINE>if (mWorkerPool == null) {<NEW_LINE>result.addError("Worker ID pool is null");<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>// Get the worker to use<NEW_LINE>if (mWorkerPool.isEmpty()) {<NEW_LINE>result.addErro... | info("Test start time {}, end time {}", startTime, endTime); |
1,554,977 | final ModifyClusterResult executeModifyCluster(ModifyClusterRequest modifyClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | false), new ModifyClusterResultJsonUnmarshaller()); |
1,168,872 | public void apply() throws ConfigurationException {<NEW_LINE>final CompilerConfiguration configuration = CompilerConfiguration.getInstance(myProject);<NEW_LINE>if (myProjectName != null && StringUtil.isEmptyOrSpaces(myProjectName.getValue())) {<NEW_LINE>throw new ConfigurationException("Please, specify project name!");... | String canonicalPath = myCompilerPathController.getValue(); |
1,502,169 | private static Table<String, IOType, Wrapper<AlgoOperator<?>>> loadIoOpClasses() {<NEW_LINE>Reflections reflections = new Reflections("com.alibaba.alink");<NEW_LINE>Table<String, IOType, Wrapper<AlgoOperator<?>>> table = HashBasedTable.create();<NEW_LINE>for (Class<?> clazz : reflections.getTypesAnnotatedWith(IoOpAnnot... | clazz.getAnnotation(IoOpAnnotation.class); |
1,370,197 | public DeleteGlobalNetworkResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteGlobalNetworkResult deleteGlobalNetworkResult = new DeleteGlobalNetworkResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | int originalDepth = context.getCurrentDepth(); |
1,417,642 | public synchronized void updatePartitionStatistics(MetastoreContext metastoreContext, String databaseName, String tableName, String partitionName, Function<PartitionStatistics, PartitionStatistics> update) {<NEW_LINE>PartitionStatistics originalStatistics = getPartitionStatistics(metastoreContext, databaseName, tableNa... | partitionName)).get(partitionName); |
1,040,619 | public static void main(String[] args) {<NEW_LINE>Tracer tracer = TracerBuilder.create("Client").collectorUri(URI.create("http://localhost:9411/api/v2/spans")).build();<NEW_LINE>ClientTracingInterceptor tracingInterceptor = ClientTracingInterceptor.builder(tracer).withVerbosity().withTracedAttributes(ClientRequestAttri... | .usePlaintext().build(); |
1,662,749 | private String writeFiles(Compilation compilation) throws IOException {<NEW_LINE>// Path outputRoot = Files.createTempDirectory("grape-ffi");<NEW_LINE>File outputRootDir = new File(this.outputDirectory);<NEW_LINE>if (!outputRootDir.exists()) {<NEW_LINE>outputRootDir.mkdirs();<NEW_LINE>}<NEW_LINE>Path outputRootPath = o... | (File.separator, pathList)); |
139,195 | private static FileContent readFileContent(String fileName, InputStream inputStream, FileContentSettings settings, boolean readBeans) throws Exception {<NEW_LINE>StringBuilder content = new StringBuilder();<NEW_LINE>List<FileContent> javaFiles = new ArrayList<>();<NEW_LINE>FacesContext facesContext = FacesContext.getCu... | InputStreamReader(inputStream, StandardCharsets.UTF_8); |
1,512,914 | public static CompLongLongVector mergeSparseLongCompVector(LongIndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>Map<PartitionKey, <MASK><NEW_LINE>List<PartitionKey> partKeys = getSortedPartKeys(param.matrixId, param.getRowId());<NEW_LINE>MatrixMeta meta = PSAgentContext.get().getMatrixMetaManager()... | PartitionGetResult> partKeyToResultMap = mapPartKeyToResult(partResults); |
690,056 | public void handleTravelerPacket(PacketPipeTransportTraveler packet) {<NEW_LINE>TravelingItem item = TravelingItem.clientCache.get(packet.getTravelingEntityId());<NEW_LINE>if (item == null) {<NEW_LINE>item = TravelingItem.make(packet.getTravelingEntityId());<NEW_LINE>}<NEW_LINE>if (item.getContainer() != container || !... | .input = packet.getInputOrientation(); |
446,081 | public static MPeriod findByCalendar(Properties ctx, Timestamp DateAcct, int C_Calendar_ID, String trxName) {<NEW_LINE>final IPeriodBL periodBL = Services.get(IPeriodBL.class);<NEW_LINE>final ICalendarBL calendarBL = Services.get(ICalendarBL.class);<NEW_LINE>final int AD_Client_ID = Env.getAD_Client_ID(ctx);<NEW_LINE>/... | pstmt.setInt(1, C_Calendar_ID); |
544,628 | private static void generateSearchMsg(StringBuilder pysb, Class<?> clazz) {<NEW_LINE>String actionName = populateActionName(clazz);<NEW_LINE>pysb.append(String.format("\n\nclass %s(inventory.%s):", actionName, clazz.getSimpleName()));<NEW_LINE>pysb.append(String.format("\n%sdef __init__(self):", whiteSpace(4)));<NEW_LI... | "\n%sdef run(self):", whiteSpace(4))); |
360,155 | final GetEffectivePoliciesResult executeGetEffectivePolicies(GetEffectivePoliciesRequest getEffectivePoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEffectivePoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | endClientExecution(awsRequestMetrics, request, response); |
65,586 | //<NEW_LINE>private static void SetMatrix(double d, double d1, double[][] ad, int i) {<NEW_LINE>double[][] ad1 = new double[3][3];<NEW_LINE>double[][] ad2 = new double[3][3];<NEW_LINE>ad1[0][0] = 1.0D;<NEW_LINE>ad1[0][1] = 0.0D;<NEW_LINE>ad1[0][2] = 0.0D;<NEW_LINE>ad1[1][0] = 0.0D;<NEW_LINE>ad1[1][1] = Math.cos(d);<NEW... | ] = Math.cos(d1); |
234,927 | /*<NEW_LINE>* @see com.ibm.wsspi.channelfw.Channel#start()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start() throws ChannelException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(this, <MASK><NEW_LINE>}<NEW_LINE>if (// only start once<NEW_LINE>stoppedFlag) {<N... | tc, "start; " + getName()); |
845,783 | public static void main(String[] args) throws Exception {<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>// as I cannot share my configuration of OCI, let's combine the configuration<NEW_LINE>// from my home directory with the one compiled into the jar<NEW_LINE>// when running this example, you can either update the a... | PostMetricDataResponseDetails postMetricDataResponseDetails = postMetricDataResponse.getPostMetricDataResponseDetails(); |
1,792,996 | private static void compareValueCollection(Collection<Object> expected, Collection<Object> actual) {<NEW_LINE>assertEquals(expected.size(), actual.size());<NEW_LINE>assertEquals(expected.isEmpty(), actual.isEmpty());<NEW_LINE>EPAssertionUtil.assertEqualsExactOrder(expected.toArray(), actual.toArray());<NEW_LINE>EPAsser... | -> a.remove("DUMMY")); |
1,520,927 | final UpdateRoomResult executeUpdateRoom(UpdateRoomRequest updateRoomRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRoomRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateRoomRequest> request = null;<NEW_LINE>Response<Up... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,316,394 | public String queryGC100(String getDevices, String sourceAddress) throws IOException {<NEW_LINE>List<String> deviceList = new ArrayList<String>();<NEW_LINE>Socket socket = new Socket(sourceAddress, GC100IRControlPoint.CONNECT_PORT);<NEW_LINE>SocketAddress socketAddress = socket.getRemoteSocketAddress();<NEW_LINE>if (so... | DataOutputStream(socket.getOutputStream()); |
1,461,704 | public void initialize(String name, Map<String, String> properties) {<NEW_LINE>String uri = properties.get(CatalogProperties.URI);<NEW_LINE>Preconditions.checkNotNull(uri, "JDBC connection URI is required");<NEW_LINE>String warehouse = properties.get(CatalogProperties.WAREHOUSE_LOCATION);<NEW_LINE>Preconditions.checkNo... | warehouse.replaceAll("/*$", ""); |
269,219 | public void addLogListener(UPnPLogListener l) {<NEW_LINE>List old_logs;<NEW_LINE>List old_alerts;<NEW_LINE>try {<NEW_LINE>this_mon.enter();<NEW_LINE>old_logs = new ArrayList(log_history);<NEW_LINE>old_alerts = new ArrayList(log_alert_history);<NEW_LINE>log_listeners.add(l);<NEW_LINE>} finally {<NEW_LINE>this_mon.exit()... | ]) old_alerts.get(i); |
1,840,517 | public SDVariable defineVertex(SameDiff sameDiff, Map<String, SDVariable> layerInput, Map<String, SDVariable> paramTable, Map<String, SDVariable> maskVars) {<NEW_LINE>final SDVariable queries = layerInput.get("queries");<NEW_LINE>final SDVariable keys = layerInput.get("keys");<NEW_LINE>final SDVariable values = layerIn... | Wv, Wo, mask, true); |
364,019 | public void testPurgeMaxSize_4() throws Exception {<NEW_LINE>RemoteFile binaryLogDir = null;<NEW_LINE>RemoteFile binaryTraceDir = null;<NEW_LINE><MASK><NEW_LINE>server.updateServerConfiguration(new File(server.pathToAutoFVTTestFiles, "server-HPELPurgeMaxSizeTest_3.xml"));<NEW_LINE>server.restartServer();<NEW_LINE>serve... | NumberFormat nf = NumberFormat.getInstance(); |
486,238 | // XXX remove<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private void initEncoding() {<NEW_LINE>originalEncoding = ProjectPropertiesSupport.<MASK><NEW_LINE>if (originalEncoding == null) {<NEW_LINE>originalEncoding = Charset.defaultCharset().name();<NEW_LINE>}<NEW_LINE>encodingComboBox.setRenderer(ProjectCustomize... | getEncoding(properties.getProject()); |
950,439 | protected IXDocReport loadReport(String reportId, XDocReportRegistry registry, In request) throws IOException, XDocReportException {<NEW_LINE>// 2) Get sourceStream<NEW_LINE>InputStream sourceStream = getSourceStream(reportId, request);<NEW_LINE>if (sourceStream == null) {<NEW_LINE>throw new XDocReportException("Input ... | templateEngine = getTemplateEngine(reportId, request); |
1,316,913 | public boolean parseResource(HttpMessage message, Source source, int depth) {<NEW_LINE>getLogger().debug("Parsing an OData Atom resource.");<NEW_LINE>// Get the context (base url)<NEW_LINE>String baseURL = message.getRequestHeader().getURI().toString();<NEW_LINE>// Use a simple pattern matcher to find urls (absolute an... | .getResponseBody().toString(); |
593,979 | public static void collectOverlayQuads(@Nonnull ModelBakeEvent event) {<NEW_LINE>final Block block = ModObject.block_machine_io.getBlockNN();<NEW_LINE>Map<IBlockState, ModelResourceLocation> locations = event.getModelManager().getBlockModelShapes().getBlockStateMapper().getVariants(block);<NEW_LINE>NNIterator<IOMode> m... | withProperty(IOMode.IO, mode); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.