idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,793,872 | public String info(final Collection<ObjectName> objectNames) {<NEW_LINE>final Set<String> alreadyDone = new HashSet<>();<NEW_LINE><MASK><NEW_LINE>if (!objectNames.isEmpty()) {<NEW_LINE>final String NL = StringUtil.LS;<NEW_LINE>for (final ObjectName objectName : objectNames) {<NEW_LINE>final MBeanInfo mbeanInfo = getPro... | final StringBuilder buf = new StringBuilder(); |
1,494,106 | public static DWARFAbbreviation read(BinaryReader reader, DWARFProgram prog, TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>int ac = LEB128.readAsUInt32(reader);<NEW_LINE>if (ac == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int tag = LEB128.readAsUInt32(reader);<NEW_LINE>DWARFChildren hasChi... | [tmpAttrSpecs.size()]); |
426,702 | private void readInput(BufferedReader in) throws Exception {<NEW_LINE>// GET RID OF COMMENT LINES<NEW_LINE>String line = in.readLine();<NEW_LINE>while (line.trim().startsWith("#")) {<NEW_LINE>line = in.readLine();<NEW_LINE>}<NEW_LINE>// READ LATTICE<NEW_LINE>latticeWords = new ArrayList<>();<NEW_LINE>Pattern wordLinePa... | pronun = wordLineMatcher.group(6); |
577,377 | private void ekskey(byte[] data, byte[] key) {<NEW_LINE>int i;<NEW_LINE>int[] koffp = { 0 };<NEW_LINE>int[] doffp = { 0 };<NEW_LINE>int[] lr = { 0, 0 };<NEW_LINE>int plen = P.length, slen = S.length;<NEW_LINE>for (i = 0; i < plen; i++) P[i] = P[i] ^ streamToWord(key, koffp);<NEW_LINE>for (i = 0; i < plen; i += 2) {<NEW... | ] ^= streamToWord(data, doffp); |
848,003 | private void processBackgroundImage(String cssUrl, String cssContent, Map<String, Object> filesToUpdate) throws URISyntaxException, IOException {<NEW_LINE>// Current restriction : only one image is supported and the relevant property in CSS file has to be 'background-image: url(images/custom-logo.png);'<NEW_LINE>if (!c... | event(tc, "backgroundImagePath=" + backgroundImagePath); |
1,357,960 | protected void createParameterGroups(Composite parent) {<NEW_LINE>Composite composite = new Composite(parent, SWT.NO_FOCUS);<NEW_LINE>composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>GridLayout layout = new GridLayout(2, true);<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>layout.marginHeight... | Messages.FindReplaceDialog_13, IFindReplaceProvider.PARAM_ALL_MODELS); |
868,085 | protected void paintContent(@NotNull final Graphics2D g2d, @NotNull final C c, @NotNull final D d, @NotNull final Rectangle bounds) {<NEW_LINE>final Stroke os = GraphicsUtils.setupStroke(g2d, stroke, stroke != null);<NEW_LINE>final Paint op = GraphicsUtils.setupPaint(g2d, color);<NEW_LINE>final GeneralPath gp = new Gen... | y + bounds.height * 0.375); |
1,124,256 | public static void applyAccountStorageSyncUpdates(@NonNull Context context, @NonNull Recipient self, @NonNull StorageRecordUpdate<SignalAccountRecord> update, boolean fetchProfile) {<NEW_LINE>SignalDatabase.recipients().applyStorageSyncAccountUpdate(update);<NEW_LINE>TextSecurePreferences.setReadReceiptsEnabled(context... | ).orElse(null))); |
377,513 | private void processData(final LayerLightEngine<?, ?> lightProvider, final boolean doSkylight, final boolean skipEdgeLightPropagation, final CallbackInfo ci) {<NEW_LINE>// Process light removal<NEW_LINE>for (final long cPos : this.removedChunks) {<NEW_LINE>for (int y = -1; y < 17; ++y) {<NEW_LINE>final long sectionPos ... | this.processRelight(lightProvider, cPos); |
243,846 | public static QueryAccountBillResponse unmarshall(QueryAccountBillResponse queryAccountBillResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAccountBillResponse.setRequestId(_ctx.stringValue("QueryAccountBillResponse.RequestId"));<NEW_LINE>queryAccountBillResponse.setCode(_ctx.stringValue("QueryAccountBillResponse.Co... | (_ctx.integerValue("QueryAccountBillResponse.Data.PageNum")); |
1,556,774 | private boolean sanitizePrevious(Sanitize sanitizing, Context context, int offset, TokenCondition condition) {<NEW_LINE>TokenSequence<? extends JsTokenId> ts = LexUtilities.getTokenSequence(context.getSnapshot(), 0, language);<NEW_LINE>if (ts != null) {<NEW_LINE>ts.move(offset);<NEW_LINE>int start = -1;<NEW_LINE>while ... | StringBuilder(context.getOriginalSource()); |
813,349 | private List<Token> enqueueHiddens(Token t) {<NEW_LINE>List<Token> newlines = new ArrayList<Token>();<NEW_LINE>if (inSingle && t.getType() == Token.EOF) {<NEW_LINE>int k = 1;<NEW_LINE>while (stream.size() > lastTokenAddedIndex + k) {<NEW_LINE>Token hidden = stream.get(lastTokenAddedIndex + k);<NEW_LINE>if (hidden.getTy... | i = text.indexOf("\n"); |
109,028 | public static void main(String[] args) {<NEW_LINE>if (args.length > 0 && args[0].charAt(0) != '-') {<NEW_LINE>Class<?> cls = ELKIServiceRegistry.findImplementation(AbstractApplication.class, args[0]);<NEW_LINE>if (cls != null) {<NEW_LINE>try {<NEW_LINE>Method m = cls.getMethod("main", String[].class);<NEW_LINE>Object a... | (null, (Object) args); |
1,460,170 | public void grow() {<NEW_LINE>if (this.destination.offset == Offset.UNSET) {<NEW_LINE>throw new InternalCompilerException("Cannot relocate branch to unset destination offset");<NEW_LINE>}<NEW_LINE>int offset = this.destination.offset - this.source.offset;<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>final int opc... | this.pushInserter(this.source); |
452,965 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>final String uri = sources[0].toString();<NEW_LINE>final String body = sources[1].toString();<NEW_LINE>String c... | sources[2].toString(); |
1,172,202 | TextInfoWidget createWidgetControl(@NonNull MapActivity mapActivity, String widgetId) {<NEW_LINE>TextInfoWidget control = new RightTextInfoWidget(mapActivity) {<NEW_LINE><NEW_LINE>private boolean init = true;<NEW_LINE><NEW_LINE>private String cachedTxt;<NEW_LINE><NEW_LINE>private String cachedSubtext;<NEW_LINE><NEW_LIN... | != null && drawSettings.isNightMode(); |
1,608,475 | public void onAlbumClicked(View view, Album album) {<NEW_LINE>MusicPlayerAlbumDemoFragment fragment = MusicPlayerAlbumDemoFragment.newInstance(album.id);<NEW_LINE>MaterialContainerTransform transform = new MaterialContainerTransform(requireContext(), /* entering= */<NEW_LINE>true);<NEW_LINE>fragment.setSharedElementEnt... | setDuration(transform.getDuration()); |
569,699 | public OperatorStr visitPhysicalHashAggregate(OptExpression optExpression, OperatorPrinter.ExplainContext context) {<NEW_LINE>OperatorStr child = visit(optExpression.getInputs().get(0), new ExplainContext(context.step + 1));<NEW_LINE>PhysicalHashAggregateOperator aggregate = (PhysicalHashAggregateOperator) optExpressio... | ()).append(") "); |
597,865 | public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {<NEW_LINE>String caCertPem = specification.getSecret().getCaCertPem();<NEW_LINE>// First compute a stripped PEM certificate and decode it from base64.<NEW_LINE>String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE,... | getInstance(KeyStore.getDefaultType()); |
78,147 | public void deserialize(ByteBuf input) {<NEW_LINE>int featsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (featsFlag > 0) {<NEW_LINE>feats = (IntFloatVector) ByteBufSerdeUtils.deserializeVector(input);<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>if (neighborsFlag > 0) {<NEW_LINE>neighbors = ByteBufSerdeUtils.d... | neighborsFlag = ByteBufSerdeUtils.deserializeInt(input); |
1,650,144 | private void deliverSuccessResponse(ANResponse response) {<NEW_LINE>if (mJSONObjectRequestListener != null) {<NEW_LINE>mJSONObjectRequestListener.onResponse((JSONObject) response.getResult());<NEW_LINE>} else if (mJSONArrayRequestListener != null) {<NEW_LINE>mJSONArrayRequestListener.onResponse((JSONArray) response.get... | Bitmap) response.getResult()); |
502,108 | final DeleteStageResult executeDeleteStage(DeleteStageRequest deleteStageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | (super.beforeMarshalling(deleteStageRequest)); |
668,112 | final CreateLoadBalancerResult executeCreateLoadBalancer(CreateLoadBalancerRequest createLoadBalancerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLoadBalancerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | invoke(request, responseHandler, executionContext); |
726,887 | public <T, B> ByteBuffer<B> encode(T object, ByteBufferFactory<?, B> allocator) {<NEW_LINE>Event<Object> event;<NEW_LINE>if (object instanceof Event) {<NEW_LINE>event = (Event<Object>) object;<NEW_LINE>} else {<NEW_LINE>event = Event.of(object);<NEW_LINE>}<NEW_LINE>Object data = event.getData();<NEW_LINE>byte[] body;<N... | , (byte) '\n', start); |
1,717,016 | private static Element createStyleElement(HTMLConversionContext conversionContext, Document document, StringBuilder buffer) {<NEW_LINE><MASK><NEW_LINE>boolean hasDefaultHeader = false;<NEW_LINE>boolean hasDefaultFooter = false;<NEW_LINE>// TODO: This doesn't quite work as the defaultHeader and defaultFooter are per sec... | String userCSS = conversionContext.getUserCSS(); |
1,325,817 | private void purgeLeftPeaks() {<NEW_LINE>for (SystemInfo system : sheet.getSystems()) {<NEW_LINE>for (Staff staff : system.getStaves()) {<NEW_LINE>final StaffProjector projector = projectorOf(staff);<NEW_LINE>final Set<StaffPeak> toRemove = new LinkedHashSet<>();<NEW_LINE>final int xLeft = staff.getAbscissa(LEFT);<NEW_... | logger.info("VIP removing left {}", peak); |
920,059 | final UpdateFunctionConfigurationResult executeUpdateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFunctionConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | false), new UpdateFunctionConfigurationResultJsonUnmarshaller()); |
557,318 | private void updateSelectionToolbar() {<NEW_LINE><MASK><NEW_LINE>selectAllButton.setEnabled(!support.isSelectAll());<NEW_LINE>clearTimestampSelectionButton.setEnabled(support.isTimestampSelection(false));<NEW_LINE>int startIndex = support.getStartIndex();<NEW_LINE>int endIndex = support.getEndIndex();<NEW_LINE>String s... | TimelineSupport support = model.getTimelineSupport(); |
191,078 | public UpdateBasePathMappingResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateBasePathMappingResult updateBasePathMappingResult = new UpdateBasePathMappingResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | JsonToken token = context.getCurrentToken(); |
1,807,648 | public void createDatabase(MetastoreContext metastoreContext, Database database) {<NEW_LINE>if (!database.getLocation().isPresent() && defaultDir.isPresent()) {<NEW_LINE>String databaseLocation = new Path(defaultDir.get(), database.<MASK><NEW_LINE>database = Database.builder(database).setLocation(Optional.of(databaseLo... | getDatabaseName()).toString(); |
1,008,170 | protected NamedDataSchema parse(InputStream inputStream, final DataSchemaLocation location, String name, StringBuilder errorMessageBuilder) {<NEW_LINE>NamedDataSchema schema = null;<NEW_LINE>PegasusSchemaParser parser = _parserFactory.create(_dependencyResolver);<NEW_LINE>parser.setLocation(location);<NEW_LINE>parser.p... | (location).append(".\n"); |
1,623,073 | public BankOrder mergeBankOrders(Collection<BankOrder> bankOrders) throws AxelorException {<NEW_LINE>if (bankOrders == null || bankOrders.size() <= 1) {<NEW_LINE>throw new AxelorException(TraceBackRepository.CATEGORY_INCONSISTENCY, IExceptionMessage.BANK_ORDER_MERGE_AT_LEAST_TWO_BANK_ORDERS);<NEW_LINE>}<NEW_LINE>this.c... | PaymentMode paymentMode = bankOrder.getPaymentMode(); |
1,128,841 | public void configure(Archive archive) throws IOException {<NEW_LINE>List<String> dirContent = new ArrayList<String>();<NEW_LINE>filterDirectory(dirContent, dirPattern, "");<NEW_LINE>for (String file : dirContent) {<NEW_LINE>Path originalPath = new File(<MASK><NEW_LINE>if (originalPath.toFile().isDirectory())<NEW_LINE>... | source, file).toPath(); |
399,735 | public File putFilesIdRemoveSharedLink(String fields, String fileId, FilesFileIdremoveSharedLinkBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'fields' is set<NEW_LINE>if (fields == null) {<NEW_LINE>throw new ApiException(400, "Missing the required pa... | localVarAuthNames = new String[] {}; |
56,228 | public SearchContextHighlight build(QueryShardContext context) throws IOException {<NEW_LINE>// create template global options that are later merged with any partial field options<NEW_LINE>final SearchContextHighlight.FieldOptions.Builder globalOptionsBuilder = new SearchContextHighlight.FieldOptions.Builder();<NEW_LIN... | >(field.matchedFields.length); |
279,930 | public Expr apply(final List<Expr> args) {<NEW_LINE>if (args.size() < 2 || args.size() > 3) {<NEW_LINE>throw new IAE("Function[%s] must have 2 or 3 arguments", name());<NEW_LINE>}<NEW_LINE>final Expr arg = args.get(0);<NEW_LINE>final Expr patternExpr = args.get(1);<NEW_LINE>final Expr escapeExpr = args.size() > 2 ? arg... | ), escapeExpr.stringify()); |
1,541,454 | public DescribeClientVpnEndpointsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClientVpnEndpointsResult describeClientVpnEndpointsResult = new DescribeClientVpnEndpointsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1... | ().unmarshall(context)); |
286,806 | public DataStorage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DataStorage dataStorage = new DataStorage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | JsonToken token = context.getCurrentToken(); |
1,598,834 | public void onTurnOn() {<NEW_LINE>super.onTurnOn();<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {<NEW_LINE>MatrixLog.w(TAG, "only support >= android 8.0 for the moment");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mCore.getConfig().isAmsHookEnabled || ((mCore.getConfig().amsHookEnableFlag & AMS_HOOK_FLAG_... | ).getStackTrace()) : ""; |
1,495,050 | // region Meta.Method<NEW_LINE>@TruffleBoundary<NEW_LINE>public Object invokeWithConversions(Object self, Object... args) {<NEW_LINE>getContext().getJNI().clearPendingException();<NEW_LINE>assert args.length == Signatures.parameterCount(getParsedSignature());<NEW_LINE>// assert !isStatic() || ((StaticObject) self).isSt... | Object[args.length + 1]; |
1,534,370 | private void teleportBack(final CommandSource sender, final User user, final String commandLabel) throws Exception {<NEW_LINE>if (user.getLastLocation() == null) {<NEW_LINE>throw new Exception(tl("noLocationFound"));<NEW_LINE>}<NEW_LINE>final String lastWorldName = user.getLastLocation().getWorld().getName();<NEW_LINE>... | getName(), this.ess); |
960,618 | public Policy putPolicy(String domainName, String policyName, String auditRef, Policy policy) {<NEW_LINE>WebTarget target = base.path("/domain/{domainName}/policy/{policyName}").resolveTemplate("domainName", domainName<MASK><NEW_LINE>Invocation.Builder invocationBuilder = target.request("application/json");<NEW_LINE>if... | ).resolveTemplate("policyName", policyName); |
537,190 | public void marshall(AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails awsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argume... | awsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails.getScope(), SCOPE_BINDING); |
849,998 | private void shutdown(ContainerTracker.ContainerShutdownDescriptor descriptor, boolean keepContainer, boolean removeVolumes) throws DockerAccessException, ExecException {<NEW_LINE>String containerId = descriptor.getContainerId();<NEW_LINE>StopMode stopMode = descriptor.getStopMode();<NEW_LINE>if (descriptor.getPreStop(... | .subSequence(0, 12)); |
708,831 | private static void putEdges(ContentResolver resolver, Cursor media, WritableMap response, int limit, Set<String> include) {<NEW_LINE>WritableArray edges = new WritableNativeArray();<NEW_LINE>media.moveToFirst();<NEW_LINE>int mimeTypeIndex = media.getColumnIndex(Images.Media.MIME_TYPE);<NEW_LINE>int groupNameIndex = me... | getColumnIndex(MediaStore.MediaColumns.DATE_ADDED); |
668,510 | protected static int handleRaiseException(final RaiseException ex) {<NEW_LINE><MASK><NEW_LINE>final Ruby runtime = raisedException.getRuntime();<NEW_LINE>if (runtime.getSystemExit().isInstance(raisedException)) {<NEW_LINE>IRubyObject status = raisedException.callMethod(runtime.getCurrentContext(), "status");<NEW_LINE>i... | RubyException raisedException = ex.getException(); |
957,416 | public Socket createSocket(String host, int port) throws IOException {<NEW_LINE>char[] passphrase = null;<NEW_LINE>if (keyStorePassword != null) {<NEW_LINE>passphrase = keyStorePassword.toCharArray();<NEW_LINE>}<NEW_LINE>KeyStore keyStore = null;<NEW_LINE>if (keyStoreLocation != null) {<NEW_LINE>keyStore = loadStore(ke... | getInstance(KeyManagerFactory.getDefaultAlgorithm()); |
988,859 | private static void v1doc(Path basedir, Path output) throws Exception {<NEW_LINE>Path v1source = basedir.resolve("v1");<NEW_LINE>FileUtils.cleanDirectory(v1source.toFile());<NEW_LINE>Files.createDirectories(v1source);<NEW_LINE>Git git = new <MASK><NEW_LINE>git.clone("--single-branch", "--branch", "gh-pages");<NEW_LINE>... | Git("jooby-project", "jooby", v1source); |
118,502 | public void applyBlock(BlockCapsule blockCapsule) {<NEW_LINE>WitnessCapsule wc;<NEW_LINE>long blockNum = blockCapsule.getNum();<NEW_LINE>long blockTime = blockCapsule.getTimeStamp();<NEW_LINE>byte[] blockWitness = blockCapsule.getWitnessAddress().toByteArray();<NEW_LINE>wc = consensusDelegate.getWitness(blockWitness);<... | wc = consensusDelegate.getWitness(witness); |
1,275,358 | public final <T> Lookup.Item<T> lookupItem(Lookup.Template<T> template) {<NEW_LINE>AbstractLookup.this.beforeLookup(template);<NEW_LINE>ArrayList<Pair<T>> list = null;<NEW_LINE>AbstractLookup.Storage<?> t = enterStorage();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>en = t.lookup(template.getType());<NEW_LIN... | Enumeration<Pair<T>> en; |
1,679,294 | public DeleteProfileObjectTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteProfileObjectTypeResult deleteProfileObjectTypeResult = new DeleteProfileObjectTypeResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | int originalDepth = context.getCurrentDepth(); |
195,424 | private int connectToLongestChain(Map<Long, List<NetworkRouteSegmentChain>> chains, Map<Long, List<NetworkRouteSegmentChain>> endChains, int rad) {<NEW_LINE>List<NetworkRouteSegmentChain> chainsFlat = new ArrayList<NetworkRouteSegmentChain>();<NEW_LINE>for (List<NetworkRouteSegmentChain> ch : chains.values()) {<NEW_LIN... | chains, endChains, first, second); |
1,115,281 | /*<NEW_LINE>* Retrieves the selection region from the program, builds the search string, and pops<NEW_LINE>* up the MemSearchDialog<NEW_LINE>*/<NEW_LINE>private void processAction(NavigatableActionContext context, boolean useOps, boolean useConsts) {<NEW_LINE>NavigatableActionContext newContext = (NavigatableActionCont... | ] maskedBytes = maskedBitString.getBytes(); |
295,216 | public Object clone() {<NEW_LINE>Component c = new Component();<NEW_LINE>c.type = type;<NEW_LINE>c.iType = iType;<NEW_LINE>c.id = id;<NEW_LINE>c.ignoreValue = ignoreValue;<NEW_LINE>c.multipleIds = multipleIds;<NEW_LINE>c.required = required;<NEW_LINE>if (method != null)<NEW_LINE>c.method = (Method) method.clone();<NEW_... | c.notValues = new HashMap(); |
791,124 | public void init(final PwmApplication pwmApplication, final HttpClientService httpClientService, final PwmHttpClientConfiguration pwmHttpClientConfiguration) throws PwmUnrecoverableException {<NEW_LINE>this.<MASK><NEW_LINE>this.pwmHttpClientConfiguration = pwmHttpClientConfiguration;<NEW_LINE>this.httpClientService = O... | pwmApplication = Objects.requireNonNull(pwmApplication); |
1,672,345 | public static CompStreamKeyValuePart[] splitStream(MatrixMeta matrixMeta, Vector[] vectors) {<NEW_LINE>PartitionKey[<MASK><NEW_LINE>// Use comp key value part<NEW_LINE>CompStreamKeyValuePart[] dataParts = new CompStreamKeyValuePart[matrixParts.length];<NEW_LINE>KeyValuePart[][] subDataParts = new KeyValuePart[vectors.l... | ] matrixParts = matrixMeta.getPartitionKeys(); |
1,671,320 | public void addAll(final List<? extends Entry> entries, final OBinarySerializer<K> keySerializer, final boolean isEncrypted) {<NEW_LINE>final int currentSize = size();<NEW_LINE>final boolean isLeaf = isLeaf();<NEW_LINE>if (!isLeaf) {<NEW_LINE>for (int i = 0; i < entries.size(); i++) {<NEW_LINE>final NonLeafEntry entry ... | ) entries, keySerializer, isEncrypted)); |
1,002,125 | public Object clone() {<NEW_LINE>GZIPHeader gheader = new GZIPHeader();<NEW_LINE>byte[] tmp;<NEW_LINE>if (gheader.extra != null) {<NEW_LINE>tmp = new byte[gheader.extra.length];<NEW_LINE>System.arraycopy(gheader.extra, 0, <MASK><NEW_LINE>gheader.extra = tmp;<NEW_LINE>}<NEW_LINE>if (gheader.name != null) {<NEW_LINE>tmp ... | tmp, 0, tmp.length); |
377,917 | final DescribeRecommendationExportJobsResult executeDescribeRecommendationExportJobs(DescribeRecommendationExportJobsRequest describeRecommendationExportJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRecommendationExportJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,182,871 | public static ComplexNumber divide(ComplexNumber z1, ComplexNumber z2) {<NEW_LINE>ArgChecker.notNull(z1, "z1");<NEW_LINE><MASK><NEW_LINE>double a = z1.getReal();<NEW_LINE>double b = z1.getImaginary();<NEW_LINE>double c = z2.getReal();<NEW_LINE>double d = z2.getImaginary();<NEW_LINE>if (Math.abs(c) > Math.abs(d)) {<NEW_... | ArgChecker.notNull(z2, "z2"); |
1,285,896 | public void onPublish(InterceptPublishMessage msg) {<NEW_LINE>String clientId = msg.getClientID();<NEW_LINE>ByteBuf payload = msg.getPayload();<NEW_LINE><MASK><NEW_LINE>String username = msg.getUsername();<NEW_LINE>MqttQoS qos = msg.getQos();<NEW_LINE>LOG.debug("Receive publish message. clientId: {}, username: {}, qos:... | String topic = msg.getTopicName(); |
91,457 | synchronized public void readMetadata(@NonNull BackupFiles.BackupFile backupFile) throws IOException {<NEW_LINE>String metadata = FileUtils.getFileContent(backupFile.getMetadataFile());<NEW_LINE>if (TextUtils.isEmpty(metadata)) {<NEW_LINE>throw new IOException("Empty JSON string for path " + backupFile.getBackupPath())... | .metadata.backupPath.getName(); |
1,060,928 | // operationName<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>@Override<NEW_LINE>public void onStart(AttributesBuilder attributes, Context parentContext, REQUEST request) {<NEW_LINE>set(attributes, SemanticAttributes.MESSAGING_SYSTEM, getter.system(request));<NEW_LINE>set(attributes, SemanticAttributes.MESSAGING_... | , getter.destination(request)); |
188,947 | /*<NEW_LINE>* Create an authentication request that will send to openID provider for authentication<NEW_LINE>*/<NEW_LINE>public void createAuthRequest(ServletRequest request, ServletResponse response) throws ServletException, Exception {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) request;<NEW_LINE>HttpServl... | String uniqueKey = MessageDigestUtil.getDigest(); |
1,185,684 | private static List<UniverseDefinitionTaskParams.Cluster> mapClustersInParams(ObjectNode formData, boolean failIfNotPresent) throws JsonProcessingException {<NEW_LINE>ArrayNode clustersJsonArray = (ArrayNode) formData.get("clusters");<NEW_LINE>if (clustersJsonArray == null) {<NEW_LINE>if (failIfNotPresent) {<NEW_LINE>t... | formData.set("clusters", newClustersJsonArray); |
1,425,126 | private void updateListeners() {<NEW_LINE>final boolean useLocation = mRunning && mMode != 0 && !mIitc.isLoading();<NEW_LINE>final boolean useOrientation = useLocation && mMode == 2;<NEW_LINE>if (useLocation && !mLocationRegistered) {<NEW_LINE>try {<NEW_LINE>mLocationManager.requestLocationUpdates(LocationManager.<MASK... | NETWORK_PROVIDER, 0, 0, this); |
251,095 | public DataxTaskExecutionContext generateExtendedContext(ResourceParametersHelper parametersHelper) {<NEW_LINE>DataxTaskExecutionContext dataxTaskExecutionContext = new DataxTaskExecutionContext();<NEW_LINE>if (customConfig == Flag.YES.ordinal()) {<NEW_LINE>return dataxTaskExecutionContext;<NEW_LINE>}<NEW_LINE>DataSour... | getResourceParameters(ResourceType.DATASOURCE, dataSource); |
942,368 | protected void init(int row, int column) {<NEW_LINE>updateService();<NEW_LINE>editor = new DataTypeSelectionEditor(service, getAllowed(row, column));<NEW_LINE>editor.setPreferredDataTypeManager(getPreferredDataTypeManager(row, column));<NEW_LINE>editor.setTabCommitsEdit(true);<NEW_LINE>editor.setConsumeEnterKeyPress(fa... | > textField = editor.getDropDownTextField(); |
535,218 | public void add(HeapHistogram second) {<NEW_LINE>final Map<String, ClassInfo> classesMap <MASK><NEW_LINE>final Map<String, ClassInfo> permGenMap = new HashMap<>(1024);<NEW_LINE>for (final ClassInfo classInfo : classes) {<NEW_LINE>addClassInfo(classInfo, classesMap);<NEW_LINE>}<NEW_LINE>for (final ClassInfo classInfo : ... | = new HashMap<>(1024); |
988,681 | private DetailedExitCode checkCwdInWorkspace(EventHandler eventHandler) {<NEW_LINE>if (!commandAnnotation.mustRunInWorkspace()) {<NEW_LINE>return DetailedExitCode.success();<NEW_LINE>}<NEW_LINE>if (!workspace.getDirectories().inWorkspace()) {<NEW_LINE>String message = "The '" + commandAnnotation.name() + "' command is ... | createDetailedExitCode(message, Code.NOT_IN_WORKSPACE); |
1,507,298 | final UpdateLedgerPermissionsModeResult executeUpdateLedgerPermissionsMode(UpdateLedgerPermissionsModeRequest updateLedgerPermissionsModeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLedgerPermissionsModeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
514,745 | public void enterCip_transform_set(Cip_transform_setContext ctx) {<NEW_LINE>if (_currentIpsecTransformSet != null) {<NEW_LINE>throw new BatfishException("IpsecTransformSet should be null!");<NEW_LINE>}<NEW_LINE>_currentIpsecTransformSet = new IpsecTransformSet(ctx.name.getText());<NEW_LINE>_configuration.defineStructur... | (ctx.ipsec_encryption_aruba())); |
1,598,676 | private void initializeComponents(DynamicsModifier.Angular aValue, String charTitle) {<NEW_LINE>JPanel contentPanel = getContentPanel();<NEW_LINE>{<NEW_LINE>JPanel panel = new JPanel();<NEW_LINE>panel.add(new JLabel("Global"), new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, ne... | 0), 0, 0)); |
1,512,676 | public static Definition translate(Raml raml) throws TranslationException {<NEW_LINE>Definition definition = new Definition();<NEW_LINE>if (raml.getVersion() != null) {<NEW_LINE>definition.setVersion(raml.getVersion().substring(1));<NEW_LINE>// def.setEndpoint(raml.getBaseUri().replace("{version}",<NEW_LINE>// raml.get... | setName(raml.getTitle()); |
1,771,402 | public /*<NEW_LINE>private class CorpusWordCounts {<NEW_LINE>Alphabet unigramAlphabet;<NEW_LINE>FeatureCounter unigramCounts = new FeatureCounter(unigramAlphabet);<NEW_LINE>public CorpusWordCounts(Alphabet alphabet) {<NEW_LINE>unigramAlphabet = alphabet;<NEW_LINE>}<NEW_LINE>private double mylog(double x) { return (x ==... | ) - mylog(nextTotalCount - nextBigramCount); |
1,393,591 | public Hcl visitForObject(Hcl.ForObject forObject, PrintOutputCapture<P> p) {<NEW_LINE>visitSpace(forObject.getPrefix(), Space.Location.FOR_OBJECT, p);<NEW_LINE>visitMarkers(forObject.getMarkers(), p);<NEW_LINE>p.out.append("{");<NEW_LINE>visit(forObject.getIntro(), p);<NEW_LINE>visitLeftPadded(":", forObject.getPaddin... | p.out.append("..."); |
1,807,538 | public void marshall(Eac3Settings eac3Settings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (eac3Settings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(eac3Settings.getAttenuationControl(), ATTENUATIO... | eac3Settings.getMetadataControl(), METADATACONTROL_BINDING); |
1,311,817 | private void drawDocumentBox(Point[] points, Size stdSize) {<NEW_LINE>Path path = new Path();<NEW_LINE>HUDCanvasView hud = mMainActivity.getHUD();<NEW_LINE>// ATTENTION: axis are swapped<NEW_LINE>float previewWidth = (float) stdSize.height;<NEW_LINE>float previewHeight = (float) stdSize.width;<NEW_LINE>path.moveTo(prev... | , 0, 255, 0)); |
518,699 | public void validateCall(SqlCall call, SqlValidatorScope scope) {<NEW_LINE>final SqlOperator operator = call.getOperator();<NEW_LINE>if ((call.operandCount() == 0) && (operator.getSyntax() == SqlSyntax.FUNCTION_ID) && !call.isExpanded() && !conformance.allowNiladicParentheses()) {<NEW_LINE>// For example, "LOCALTIME()"... | operandScope = scope.getOperandScope(call); |
300,997 | private void aztecRegisterFailedMediaForThisPost(PostModel post) {<NEW_LINE>// there could be failed media in the post, that has not been registered in the UploadStore because<NEW_LINE>// the media was being uploaded separately (i.e. the user included media, started uploading within<NEW_LINE>// the editor, and such med... | (post.getLocalSiteId())); |
1,669,937 | public int compareTo(getActiveCompactions_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess())... | ), other.isSetSec()); |
1,799,700 | private Map<String, List<String>> buildELBtoASGMap() {<NEW_LINE>AWSClient awsClient = getAWSClient();<NEW_LINE>LOGGER.info(String.format("Getting all ELBs associated with ASGs in region %s", awsClient.region()));<NEW_LINE>List<AutoScalingGroup> autoScalingGroupList = awsClient.describeAutoScalingGroups();<NEW_LINE>Hash... | ("Found ASG %s associated with ELB %s", asgName, elbName)); |
974,318 | private MInOutLine createLine(MInvoice invoice, MInvoiceLine invoiceLine) {<NEW_LINE>final IInvoiceBL invoiceBL = Services.get(IInvoiceBL.class);<NEW_LINE>final IMatchInvDAO matchInvDAO = Services.get(IMatchInvDAO.class);<NEW_LINE>final StockQtyAndUOMQty qtyMatched = matchInvDAO.retrieveQtyMatched(invoiceLine);<NEW_LIN... | (invoiceLine.getC_UOM_ID())); |
1,226,635 | private void updateExecutableFlow(final ExecutableFlow flow, final EncodingType encType) throws ExecutorManagerException {<NEW_LINE>final <MASK><NEW_LINE>byte[] data = null;<NEW_LINE>try {<NEW_LINE>// If this action fails, the execution must be failed.<NEW_LINE>final String json = JSONUtils.toJSON(flow.toObject());<NEW... | String UPDATE_EXECUTABLE_FLOW_DATA = "UPDATE execution_flows " + "SET status=?,update_time=?,start_time=?,end_time=?,enc_type=?,flow_data=? " + "WHERE exec_id=?"; |
1,428,932 | public boolean applyAppOpsAndPerms() {<NEW_LINE>if (mPackageInfo == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean isSuccessful = true;<NEW_LINE>int uid = mPackageInfo.applicationInfo.uid;<NEW_LINE>AppOpsService appOpsService = new AppOpsService();<NEW_LINE>// Apply all app ops<NEW_LINE>for (AppOpRule appOp... | mPackageInfo, permission, appOpsService, true); |
455,248 | public void start(WorkflowModel workflow, TaskModel task, WorkflowExecutor executor) {<NEW_LINE>final Map<String, Object> taskInput = task.getInputData();<NEW_LINE>final String queryExpression = (String) taskInput.get(QUERY_EXPRESSION_PARAMETER);<NEW_LINE>if (queryExpression == null) {<NEW_LINE>task.setReasonForIncompl... | workflow.getWorkflowId(), e); |
999,887 | public boolean place(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) {<NEW_LINE>int[] faces = { 2, 5, 3, 4 };<NEW_LINE>this.setDamage(faces[player != null ? player.getDirection().getHorizontalIndex() : 0]);<NEW_LINE>this.getLevel().setBlock(block, this, true, true);... | .getCustomBlockData().getTags(); |
1,059,419 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (ServletFileUpload.isMultipartContent(request)) {<NEW_LINE>DiskFileItemFactory factory = new DiskFileItemFactory();<NEW_LINE>factory.setSizeThreshold(MEMORY_THRESHOLD);<NEW_LINE>factory.set... | "There was an error: " + ex.getMessage()); |
1,588,917 | public void internalRun(T2 runContext) throws Exception {<NEW_LINE>WsdlTestCase testCase = getTestCase();<NEW_LINE>gotoStepIndex = -1;<NEW_LINE>testStepResults.clear();<NEW_LINE>// create state for testcase if specified<NEW_LINE>if (testCase.getKeepSession()) {<NEW_LINE>if (!(runContext.getProperty(SubmitContext.HTTP_S... | testStep.prepare(this, runContext); |
1,644,051 | public void onDataReceived(@NonNull final BluetoothDevice device, @NonNull final Data data) {<NEW_LINE>super.onDataReceived(device, data);<NEW_LINE>if (data.size() < 5) {<NEW_LINE>onInvalidDataReceived(device, data);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int offset = 0;<NEW_LINE>final int flags = data.getIntValue(Data.F... | temperature, unit, calendar, type); |
904,980 | public Object newInstance(final Class<?> type) {<NEW_LINE>ErrorWritingException ex = null;<NEW_LINE>if (type == void.class || type == Void.class) {<NEW_LINE>ex = new ConversionException("Security alert: Marshalling rejected");<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>for (final Constructor<?> constructor : type.getDec... | "Constructor for type threw an exception", e.getTargetException()); |
923,737 | private ListenableFuture<?> rollupHistogramFromRows(RollupParams rollup, AggregateQuery query, Iterable<Row> rows, ScratchBuffer scratchBuffer) throws Exception {<NEW_LINE>double totalDurationNanos = 0;<NEW_LINE>long transactionCount = 0;<NEW_LINE>LazyHistogram durationNanosHistogram = new LazyHistogram();<NEW_LINE>for... | ++, query.transactionName()); |
1,006,841 | private Schema avroType(com.google.cloud.teleport.spanner.common.Type spannerType) {<NEW_LINE>switch(spannerType.getCode()) {<NEW_LINE>case BOOL:<NEW_LINE>return SchemaBuilder.builder().booleanType();<NEW_LINE>case INT64:<NEW_LINE>return SchemaBuilder.builder().longType();<NEW_LINE>case FLOAT64:<NEW_LINE>return SchemaB... | throw new IllegalArgumentException("Unknown spanner type " + spannerType); |
1,375,843 | final ListModelExplainabilityJobDefinitionsResult executeListModelExplainabilityJobDefinitions(ListModelExplainabilityJobDefinitionsRequest listModelExplainabilityJobDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listModelExplainabilityJobDefinitionsRequest);<NEW_LINE>AWSReque... | false), new ListModelExplainabilityJobDefinitionsResultJsonUnmarshaller()); |
75,154 | public OrderableClusterOption unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>OrderableClusterOption orderableClusterOption = new OrderableClusterOption();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument... | ().unmarshall(context)); |
567,012 | public void saveSchemeIdsForContentType(final ContentType contentType, final Set<String> schemesIds) throws DotDataException {<NEW_LINE>try {<NEW_LINE>Logger.info(WorkflowAPIImpl.class, String.format("Saving Schemas [ %s ] for Content type '%s'", String.join(",", schemesIds), contentType.inode()));<NEW_LINE>SecurityLog... | this.cleanInvalidDefaultActionForContentType(contentType, schemesIds); |
1,234,131 | public com.amazonaws.services.organizations.model.SourceParentNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.organizations.model.SourceParentNotFoundException sourceParentNotFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int origi... | organizations.model.SourceParentNotFoundException(null); |
1,345,725 | public Optional<PromoCodeDiscount> handleDynamicDiscount(Event event, Map<Integer, Long> quantityByCategory, String reservationId) {<NEW_LINE>try {<NEW_LINE>var values = new HashMap<String, Object>();<NEW_LINE><MASK><NEW_LINE>values.put(RESERVATION_ID, reservationId);<NEW_LINE>var dynamicDiscountResult = syncCall(Exten... | values.put("quantityByCategory", quantityByCategory); |
480,066 | private void fillPicks() {<NEW_LINE>// Price List<NEW_LINE>String sql = "SELECT M_PriceList_Version.M_PriceList_Version_ID," + " M_PriceList_Version.Name || ' (' || c.Iso_Code || ')' AS ValueName " + "FROM M_PriceList_Version, M_PriceList pl, C_Currency c " + "WHERE M_PriceList_Version.M_PriceList_ID=pl.M_PriceList_ID"... | Level.SEVERE, sql, e); |
308,886 | public Map<String, Object> perform() {<NEW_LINE>// Keeps a list of users<NEW_LINE>ArrayList<Map<String, String>> list = null;<NEW_LINE>// Keeps the objects in container needed by the Ajax proxy (client-side)<NEW_LINE>Map<String, Object> results = new HashMap<String, Object>(2);<NEW_LINE>// Keeps the grand total of item... | String, String>>(0); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.