idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
441,863 | protected void startHeartbeat() throws ServiceException {<NEW_LINE>if (master == null) {<NEW_LINE>LOG.error("Master has not been connected");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>clientId = master.getClientId(null, GetClientIdRequest.getDefaultInstance()).getClientId();<NEW_LINE>master.clientRegister(null, ClientRegist... | (clientId).build()); |
1,682,180 | public InProcessNeo4j build() {<NEW_LINE>Path <MASK><NEW_LINE>Path internalLogFile = serverFolder.resolve("debug.log");<NEW_LINE>config.set(ServerSettings.third_party_packages, unmanagedExtentions.toList());<NEW_LINE>config.set(GraphDatabaseSettings.store_internal_log_path, internalLogFile.toAbsolutePath());<NEW_LINE>v... | userLogFile = serverFolder.resolve("neo4j.log"); |
535,603 | private JMenu buildHelpMenu() {<NEW_LINE>JMenu menu = new JMenu(tr("Help"));<NEW_LINE>menu.setMnemonic(KeyEvent.VK_H);<NEW_LINE>JMenuItem item = new JMenuItem(tr("Getting Started"));<NEW_LINE>item.addActionListener(event -> Base.openURL("https://www.arduino.cc/en/Guide"));<NEW_LINE>menu.add(item);<NEW_LINE>item = <MASK... | new JMenuItem(tr("Environment")); |
1,170,271 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>logger.print("{} delete query flag:{}.", effectivePerson.getDistinguishedName(), flag);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = ne... | emc.beginTransaction(Reveal.class); |
247,528 | final DescribeNetworkInsightsAccessScopesResult executeDescribeNetworkInsightsAccessScopes(DescribeNetworkInsightsAccessScopesRequest describeNetworkInsightsAccessScopesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNetworkInsightsAccessScopesRequest);<NEW_LINE>AWSRequestMetrics ... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
649,930 | public void generate(TypeElement e) throws IOException {<NEW_LINE>Map<String, HashSet<ExecutableElement>> methodsPerAttribute = methodsPerAttributeMapping(e);<NEW_LINE>String className = e.getQualifiedName().toString();<NEW_LINE>String packageName = null;<NEW_LINE>int lastDot = className.lastIndexOf('.');<NEW_LINE>if (... | println("package " + packageName + ";"); |
1,548,443 | public // The caller need to hold the db write lock<NEW_LINE>void modifyTableReplicationNum(Database db, OlapTable table, Map<String, String> properties) throws DdlException {<NEW_LINE>Preconditions.checkArgument(db.isWriteLockHeldByCurrentThread());<NEW_LINE>ColocateTableIndex colocateTableIndex = Catalog.getCurrentCo... | getDataProperty(partition.getId()); |
564,610 | public void process(final Exchange exchange) throws Exception {<NEW_LINE>final ImportOrdersRouteContext context = ProcessorHelper.getPropertyOrThrowError(exchange, ROUTE_PROPERTY_IMPORT_ORDERS_CONTEXT, ImportOrdersRouteContext.class);<NEW_LINE>final Optional<Instant> nextImportStartingTimestamp = context.getNextImportS... | (runtimeParameterUpsertItem)).build(); |
1,727,181 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_contacts);<NEW_LINE>// For set status bar<NEW_LINE>ChinaPhoneHelper.setStatusBar(this, true);<NEW_LINE>themeManager = ThemeManager.getInstance();<NEW_LINE>initLanguageStr();<NEW_LI... | findViewById(R.id.TV_contact_short_sort); |
1,458,438 | public BatchDeleteDevicePositionHistoryResult batchDeleteDevicePositionHistory(BatchDeleteDevicePositionHistoryRequest batchDeleteDevicePositionHistoryRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteDevicePositionHistoryReque... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
767,283 | static HazelcastInstance embeddedHazelcastServer() {<NEW_LINE>Config config = new Config();<NEW_LINE>NetworkConfig networkConfig = config.getNetworkConfig();<NEW_LINE>networkConfig.setPort(0);<NEW_LINE>networkConfig.getJoin().<MASK><NEW_LINE>MapAttributeConfig attributeConfig = new MapAttributeConfig().setName(Hazelcas... | getMulticastConfig().setEnabled(false); |
599,311 | private static Object convert(Object value, Type targetType, List<TypeValuePair> unresolvedValues, boolean allowAmbiguity, BTypedesc t) {<NEW_LINE>if (value == null) {<NEW_LINE>if (targetType.isNilable()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return createError(VALUE_LANG_LIB_CONVERSION_ERROR, BLangExceptionHelpe... | TypeConverter.convertValues(matchingType, value); |
581,496 | private static String processClassLoaderString43OrLater(String input) {<NEW_LINE>int start = input.indexOf("DexPathList") + "DexPathList".length();<NEW_LINE>if (input.length() > start + 4) {<NEW_LINE>// [[ + ]]<NEW_LINE>String trimmed = input.substring(start);<NEW_LINE>int end = trimmed.indexOf(']');<NEW_LINE>if (trimm... | trimmed.substring(2, end); |
962,223 | public void baseline(Blackhole blackHole) {<NEW_LINE>blackHole.consume(baselineInstance.method(booleanValue));<NEW_LINE>blackHole.consume(baselineInstance.method(byteValue));<NEW_LINE>blackHole.consume(baselineInstance.method(shortValue));<NEW_LINE>blackHole.consume(baselineInstance.method(intValue));<NEW_LINE>blackHol... | (stringValue, stringValue, stringValue)); |
472,875 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<NEW_LI... | extends Interceptor> executeQueryInterceptor = StatementExecuteQueryInterceptor.class; |
363,285 | protected void ExpandBuff(boolean wrapAround) throws IOException {<NEW_LINE>char[] newbuffer <MASK><NEW_LINE>int[] newbufline = new int[bufsize + 2048];<NEW_LINE>int[] newbufcolumn = new int[bufsize + 2048];<NEW_LINE>try {<NEW_LINE>if (wrapAround) {<NEW_LINE>System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - ... | = new char[bufsize + 2048]; |
1,673,586 | final CreateCloudFormationChangeSetResult executeCreateCloudFormationChangeSet(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCloudFormationChangeSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,784,376 | final CreateSlotTypeVersionResult executeCreateSlotTypeVersion(CreateSlotTypeVersionRequest createSlotTypeVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSlotTypeVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,461,930 | public static String extractFromURIPattern(String pattern, String realURI) {<NEW_LINE>Map<String, String> criteriaMap = new TreeMap<String, String>();<NEW_LINE>// Build a pattern for extracting parts from pattern and a pattern for extracting values<NEW_LINE>// from realURI. Supporting both {id} and :id.<NEW_LINE>String... | valuesP = Pattern.compile(valuesPattern); |
938,771 | public Mono<Void> onGuildCreate(int shardIndex, GuildCreate dispatch) {<NEW_LINE>return Mono.fromRunnable(() -> {<NEW_LINE>long guildId = dispatch.guild().id().asLong();<NEW_LINE>GuildCreateData createData = dispatch.guild();<NEW_LINE>List<RoleData> roles = createData.roles();<NEW_LINE>List<EmojiData> emojis = createDa... | -> saveMember(guildId, member)); |
251,190 | public AnnotationProcessingData read(Decoder decoder) throws Exception {<NEW_LINE><MASK><NEW_LINE>SetSerializer<String> typesSerializer = new SetSerializer<>(hierarchicalNameSerializer);<NEW_LINE>MapSerializer<String, Set<String>> generatedTypesSerializer = new MapSerializer<>(hierarchicalNameSerializer, typesSerialize... | HierarchicalNameSerializer hierarchicalNameSerializer = classNameSerializerSupplier.get(); |
1,714,966 | public Future<Boolean> startModule(ExtendedModuleInfo moduleInfo) throws StateChangeException {<NEW_LINE>try {<NEW_LINE>latch.await(5, TimeUnit.SECONDS);<NEW_LINE>} catch (InterruptedException e1) {<NEW_LINE>AccessController.doPrivileged(new PrivilegedAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void r... | cmi, args, cmd, newLoader); |
841,623 | private void configurePorts(Instance instance) {<NEW_LINE>BitWidth inWidth = instance.getAttributeValue(StdAttr.WIDTH);<NEW_LINE>int inputs = instance.getAttributeValue(NUM_INPUTS);<NEW_LINE>int outWidth = computeOutputBits(inWidth.getWidth(), inputs);<NEW_LINE>int y;<NEW_LINE>int dy = 10;<NEW_LINE>switch(inputs) {<NEW... | (S.getter("bitAdderOutputManyTip")); |
1,402,658 | public void updateDescription(@NonNull LocalIndexInfo info) {<NEW_LINE>File f = new File(info.getPathToData());<NEW_LINE>if (info.getType() == LocalIndexType.MAP_DATA) {<NEW_LINE>Map<String, String> ifns = app.getResourceManager().getIndexFileNames();<NEW_LINE>if (ifns.containsKey(info.getFileName())) {<NEW_LINE>try {<... | .setDescription(getInstalledDate(f)); |
1,062,612 | public void onPlayerJoin(PlayerJoinEvent event) {<NEW_LINE>if (!DiscordSRV.config().getBoolean("BanSynchronizationMinecraftToDiscord")) {<NEW_LINE>DiscordSRV.debug(Debug.MINECRAFT_TO_DISCORD, "Not handling possible unban for player " + event.getPlayer().getName() + " (" + event.getPlayer().getUniqueId() + ") because do... | getPlayer().getUniqueId()); |
968,491 | private void loadLocaleIndependentCurrencyData() {<NEW_LINE>InputFile supp = cldrFactory.getSupplementalData();<NEW_LINE>// load the table of default # of decimal places and rounding for each currency<NEW_LINE>defaultCurrencyFraction = 0;<NEW_LINE>XPathParts parts = new XPathParts();<NEW_LINE>for (String path : supp.li... | (supp.getFullXPath(path)); |
792,727 | private HttpMediaType fromString(String combinedType) {<NEW_LINE>Matcher matcher = FULL_MEDIA_TYPE_REGEX.matcher(combinedType);<NEW_LINE>Preconditions.checkArgument(matcher.matches(), "Type must be in the 'maintype/subtype; parameter=value' format");<NEW_LINE>setType<MASK><NEW_LINE>setSubType(matcher.group(2));<NEW_LIN... | (matcher.group(1)); |
603,361 | public boolean accept(final Path file, final Local local, final TransferStatus parent) throws BackgroundException {<NEW_LINE>if (local.isFile()) {<NEW_LINE>if (local.exists()) {<NEW_LINE>// Read remote attributes<NEW_LINE>final PathAttributes attributes = attribute.find(file);<NEW_LINE>if (local.attributes().getSize() ... | accept(file, local, parent); |
1,662,521 | void asyncStartFetchLogSegments(final CompletableFuture<Versioned<List<LogSegmentMetadata>>> promise) {<NEW_LINE>readLogSegmentsFromStore(LogSegmentMetadata.COMPARATOR, LogSegmentFilter.DEFAULT_FILTER, this).whenComplete(new FutureEventListener<Versioned<List<LogSegmentMetadata>>>() {<NEW_LINE><NEW_LINE>@Override<NEW_L... | getZKRetryBackoffMaxMillis(), TimeUnit.MILLISECONDS); |
784,960 | public int[] intersection(SparseVector other) {<NEW_LINE>List<Integer> diffIndicesList = new ArrayList<>();<NEW_LINE>Iterator<VectorTuple> itr = iterator();<NEW_LINE>Iterator<VectorTuple> otherItr = other.iterator();<NEW_LINE>if (itr.hasNext() && otherItr.hasNext()) {<NEW_LINE>VectorTuple tuple = itr.next();<NEW_LINE>V... | diffIndicesList.add(tuple.index); |
1,729,085 | public static boolean checkInstanceIdForPortRuleInES(String instanceId, String ec2PortUrl, String ruleId, String type) throws Exception {<NEW_LINE>JsonParser jsonParser = new JsonParser();<NEW_LINE>String resourceid = null;<NEW_LINE>Map<String, Object> mustFilter = new HashMap<>();<NEW_LINE>Map<String, Object> mustNotF... | PacmanSdkConstants.RESOURCE_ID).getAsString(); |
45,690 | public void sendEvent(Event event) throws InterruptedException {<NEW_LINE>try {<NEW_LINE>if (latencyTracker != null && Level.BASIC.compareTo(siddhiAppContext.getRootMetricsLevel()) <= 0) {<NEW_LINE>latencyTracker.markOut();<NEW_LINE>}<NEW_LINE>Object[] transportProperties = trpProperties.get();<NEW_LINE>String[<MASK><N... | ] transportSyncProperties = trpSyncProperties.get(); |
590,400 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new InfraFAFSubquerySimple(true));<NEW_LINE>execs.add(new InfraFAFSubquerySimple(false));<NEW_LINE>execs<MASK><NEW_LINE>execs.add(new InfraFAFSubqueryInsert(true));<NEW_LINE... | .add(new InfraFAFSubquerySimpleJoin()); |
357,115 | private void convertUnopInsn(InsnNode insn) {<NEW_LINE>int op = insn.getOpcode();<NEW_LINE>boolean dword = op == LNEG || op == DNEG;<NEW_LINE>StackFrame frame = getFrame(insn);<NEW_LINE>Operand[] out = frame.out();<NEW_LINE>Operand opr;<NEW_LINE>if (out == null) {<NEW_LINE>Operand op1 = dword ? popImmediateDual() : pop... | throw new AssertionError("Unknown unop: " + op); |
1,195,170 | private static <K, V> void translateGroupByKey(PTransformNode transformNode, RunnerApi.Pipeline pipeline, SparkTranslationContext context) {<NEW_LINE>RunnerApi.Components components = pipeline.getComponents();<NEW_LINE>String inputId = getInputId(transformNode);<NEW_LINE>Dataset inputDataset = context.popDataset(inputI... | inputRdd, inputKeyCoder, inputValueCoder, partitioner); |
1,580,443 | public void actionPerformed(ActionEvent event) {<NEW_LINE>Queue<PageFlowSceneElement> deleteNodesList <MASK><NEW_LINE>// Workaround: Temporarily Wrapping Collection because of Issue: 100127<NEW_LINE>Set<Object> selectedObjects = new HashSet<Object>(scene.getSelectedObjects());<NEW_LINE>LOG.fine("Selected Objects: " + s... | = new LinkedList<PageFlowSceneElement>(); |
1,418,999 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeVInt(entries.size());<NEW_LINE>for (ObjectCursor<Entry> v : entries.values()) {<NEW_LINE>Entry entry = v.value;<NEW_LINE>if (out.getVersion().onOrAfter(Version.V_4_3_0)) {<NEW_LINE>out.writeString(entry.uuid);<NEW_LINE>}<NEW_LINE>entry.snapsho... | shards().size()); |
234,911 | public ASTNode visitResetOption(final ResetOptionContext ctx) {<NEW_LINE>if (null != ctx.MASTER()) {<NEW_LINE>ResetMasterOptionSegment result = new ResetMasterOptionSegment();<NEW_LINE>if (null != ctx.binaryLogFileIndexNumber()) {<NEW_LINE>result.setBinaryLogFileIndexNumber((NumberLiteralValue) visit(ctx.binaryLogFileI... | ctx.stop.getStopIndex()); |
1,184,659 | public void pointerReleasedImpl(int x, int y, boolean longPress) {<NEW_LINE>if (!isDragActivated()) {<NEW_LINE>// fire the action event into the selected component<NEW_LINE>Component cmp = renderer.getCellRendererComponent(ContainerList.this, model, model.getItemAt(offset), offset, hasFocus());<NEW_LINE>if (cmp instanc... | selectionCmp.pointerPressed(newX, newY); |
454,451 | public void parse() {<NEW_LINE>for (String nextResourceName : myResourceNames) {<NEW_LINE>RuntimeResourceDefinition def = <MASK><NEW_LINE>Resource resource = new Resource();<NEW_LINE>resource.setName(def.getName());<NEW_LINE>resource.setElementName(def.getName());<NEW_LINE>addResource(resource);<NEW_LINE>for (RuntimeSe... | getCtx().getResourceDefinition(nextResourceName); |
670,182 | private void downloadFormList() {<NEW_LINE>if (!connectivityProvider.isDeviceOnline()) {<NEW_LINE>ToastUtils.showShortToast(this, R.string.no_connection);<NEW_LINE>if (viewModel.isDownloadOnlyMode()) {<NEW_LINE>setReturnResult(false, getString(R.string.no_connection), viewModel.getFormResults());<NEW_LINE>finish();<NEW... | ), viewModel.getPassword()); |
622,681 | public void processTask(long taskId, Metadata metadata) {<NEW_LINE>int indent = metadata.getValue(GtasksMetadata.INDENT);<NEW_LINE>try {<NEW_LINE>long parent, sibling;<NEW_LINE>if (indent > previousIndent.get()) {<NEW_LINE>parent = previousTask.get();<NEW_LINE>sibling = Task.NO_ID;<NEW_LINE>} else if (indent == previou... | sibling = parents.get(sibling); |
332,809 | public static Map<String, String> patch(final String address, final String requestBody, final String username, final String password, final String proxyUrl, final String proxyUsername, final String proxyPassword, final String cookie, final Map<String, String> headers, final String charset) {<NEW_LINE>final Map<String, ... | proxyPassword, cookie, headers, true); |
522,071 | private List<Hierarchy> axisInfo(SaxWriter writer, CellSetAxis axis, String axisName) {<NEW_LINE>writer.startElement("AxisInfo", "name", axisName);<NEW_LINE>List<Hierarchy> hierarchies;<NEW_LINE>List<Property> props = new ArrayList<>(getProps(axis.getAxisMetaData()));<NEW_LINE>Iterator<org.olap4j.Position> it = axis.ge... | Position position = it.next(); |
1,441,973 | public void INVOKEDYNAMIC(Object indyResult, String owner) {<NEW_LINE>final Class<?> anonymousClass = indyResult.getClass();<NEW_LINE>if (!LambdaUtils.isLambda(anonymousClass))<NEW_LINE>throw new IllegalArgumentException("InvokeDynamic for things other than lambdas are not implemented yet!, class found: " + anonymousCl... | anonymousClassType = Type.getType(anonymousClass); |
717,487 | private void init(Context context, AttributeSet attrs) {<NEW_LINE>TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ColorPanelView);<NEW_LINE>shape = a.getInt(R.<MASK><NEW_LINE>showOldColor = a.getBoolean(R.styleable.ColorPanelView_cpv_showOldColor, false);<NEW_LINE>if (showOldColor && shape != Colo... | styleable.ColorPanelView_cpv_colorShape, ColorShape.CIRCLE); |
103,285 | private UnionTypeExtensionDefinition createUnionTypeExtensionDefinition(@NotNull GraphQLUnionTypeExtensionDefinition extensionDefinition) {<NEW_LINE>UnionTypeExtensionDefinition.Builder def = UnionTypeExtensionDefinition.newUnionTypeExtensionDefinition();<NEW_LINE>GraphQLTypeName typeName = extensionDefinition.getTypeN... | name(typeName.getName()); |
1,140,575 | private boolean isNeedInfer(SlotRef newSlot, SlotRef checkSlot, Analyzer analyzer, ExprRewriter.ClauseType clauseType) {<NEW_LINE>boolean ret = false;<NEW_LINE>TupleId newTid = newSlot.getDesc().getParent().getRef().getId();<NEW_LINE>TupleId checkTid = checkSlot.getDesc().getParent().getRef().getId();<NEW_LINE>boolean ... | joinOperator = analyzer.getAnyTwoTablesJoinOp(changeTids); |
805,635 | private void showEvent() {<NEW_LINE>if (!event.isValid())<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>int id = SharedPreferencesUtil.getInt(ConstantStrings.SESSION_MAP_ID, -1);<NEW_LINE>if (id != -1) {<NEW_LINE>Session session = realmRepo.getSessionSync(id);<NEW_LINE>Microlocation microlocation = session.getMicrolocation(... | setDestinationLongitude(microlocation.getLongitude()); |
1,046,785 | public void updateUiElements() {<NEW_LINE>super.updateUiElements();<NEW_LINE>toolbar.setBackgroundColor(getPrimaryColor());<NEW_LINE>setStatusBarColor();<NEW_LINE>setNavBarColor();<NEW_LINE>setRecentApp(getString(org.horaapps.leafpic.R.string.donate));<NEW_LINE>themeSeekBar(bar);<NEW_LINE>themeButton(btnDonateIap);<NEW... | donate_header_item)).setTextColor(color); |
816,188 | public void store() throws IOException {<NEW_LINE>Preferences prefs = prefs(suiteProject);<NEW_LINE>prefs.putBoolean(GENERATE_FOR_WINDOWS, windowsModel.isSelected());<NEW_LINE>prefs.putBoolean(GENERATE_FOR_LINUX, linuxModel.isSelected());<NEW_LINE>prefs.putBoolean(GENERATE_FOR_SOLARIS, solarisModel.isSelected());<NEW_L... | PropertyUtils.relativizeFile(suiteLocation, f); |
371,277 | protected boolean supportsViewFor(Application app) {<NEW_LINE>if (!(ApplicationTypeFactory.getApplicationTypeFor(app) instanceof GlassFishApplicationType))<NEW_LINE>return false;<NEW_LINE>final JmxModel <MASK><NEW_LINE>if (model == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>DomainRoot dr = AMXUtil.getDomainRoot... | model = JmxModelFactory.getJmxModelFor(app); |
1,098,781 | private void initializeUnsafeOffsets(TypeSpec.Builder builder, TypeElement encodedType, List<? extends VariableElement> parameters) {<NEW_LINE>MethodSpec.Builder constructor = MethodSpec.constructorBuilder();<NEW_LINE>for (VariableElement param : parameters) {<NEW_LINE>Optional<FieldValueAndClass> field = getFieldByNam... | Modifier.PRIVATE, Modifier.FINAL); |
1,809,283 | private com.netflix.genie.proto.JobMetadata toJobMetadataProto(final AgentJobRequest jobRequest) throws GenieConversionException {<NEW_LINE>final JobMetadata jobMetadata = jobRequest.getMetadata();<NEW_LINE>final ExecutionEnvironment jobResources = jobRequest.getResources();<NEW_LINE>final com.netflix.genie.proto.JobMe... | .proto.JobMetadata.newBuilder(); |
1,284,940 | public static byte[] buildPsshAtom(UUID systemId, @Nullable UUID[] keyIds, @Nullable byte[] data) {<NEW_LINE>int dataLength = data <MASK><NEW_LINE>int psshBoxLength = Atom.FULL_HEADER_SIZE + 16 + /* SystemId */<NEW_LINE>4 + /* DataSize */<NEW_LINE>dataLength;<NEW_LINE>if (keyIds != null) {<NEW_LINE>psshBoxLength += 4 +... | != null ? data.length : 0; |
369,446 | private T createInstanceForParameterizedType(CreationalContext<T> creationalContext, BeanManager beanManager) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "createInstanceForParameterizedType", creationalContext, beanManager);<NEW_LINE>}<NEW_LINE>T instance = null;<... | ?>) parameterizedType.getRawType(); |
289,137 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,383,413 | public boolean install(String name, String url, String version) {<NEW_LINE>if (url.startsWith("---extensions---")) {<NEW_LINE>// url = RunTime.get().SikuliRepo + name + "-" + version + ".jar";<NEW_LINE>}<NEW_LINE>String extPath = fExtensions.getAbsolutePath();<NEW_LINE>String tmpdir = Commons<MASK><NEW_LINE>try {<NEW_L... | .getIDETemp().getAbsolutePath(); |
614,734 | private byte[] createNewRef(int newRef, int forceLength) {<NEW_LINE>byte[] newRefBytes;<NEW_LINE>if ((forceLength == -1 && newRef <= 107) || forceLength == 1) {<NEW_LINE>newRefBytes = new byte[1];<NEW_LINE>newRefBytes[0] = (byte) (newRef + 139);<NEW_LINE>} else if ((forceLength == -1 && newRef <= 1131) || forceLength =... | [4] = (byte) newRef; |
422,980 | private void readAllServices() {<NEW_LINE>Document xml = getFboxXmlResponse(_url + "/" + TR064DOWNLOADFILE);<NEW_LINE>if (xml == null) {<NEW_LINE>logger.error("Could not read xml response services");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// get all service nodes<NEW_LINE>NodeList nlServices = xml.getElementsByTagName("s... | , currentNode, XPathConstants.STRING)); |
729,520 | boolean computeFused(GrayF32 disparity) {<NEW_LINE>// If there's one pixel with a valid value this will pass<NEW_LINE>boolean singleValidPixel = false;<NEW_LINE>for (int y = 0; y < fused.height; y++) {<NEW_LINE>int indexOut = disparity.startIndex + y * disparity.stride;<NEW_LINE>for (int x = 0; x < fused.width; x++) {<... | fused.get(x, y); |
1,297,521 | public void drawLayer(Canvas canvas, Matrix parentMatrix, int parentAlpha) {<NEW_LINE>int backgroundAlpha = Color.alpha(layerModel.getSolidColor());<NEW_LINE>if (backgroundAlpha == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int opacity = transform.getOpacity() == null ? 100 : transform.getOpacity().getValue();<NEW_LINE>... | 6], points[7]); |
1,625,825 | public void modifyState(@FeatureFlags int key, boolean enabled) {<NEW_LINE>switch(key) {<NEW_LINE>case FEAT_INSTALLER:<NEW_LINE>modifyState(<MASK><NEW_LINE>break;<NEW_LINE>case FEAT_INTERCEPTOR:<NEW_LINE>modifyState(key, ActivityInterceptor.class, enabled);<NEW_LINE>break;<NEW_LINE>case FEAT_MANIFEST:<NEW_LINE>modifySt... | key, PackageInstallerActivity.class, enabled); |
1,488,063 | private static ParcelUuid parseUuidFrom(byte[] uuidBytes) {<NEW_LINE>if (uuidBytes == null) {<NEW_LINE>throw new IllegalArgumentException("uuidBytes cannot be null");<NEW_LINE>}<NEW_LINE>int length = uuidBytes.length;<NEW_LINE>if (length != UUID_BYTES_16_BIT && length != UUID_BYTES_32_BIT && length != UUID_BYTES_128_BI... | new UUID(msb, lsb)); |
400,262 | protected String doIt() throws Exception {<NEW_LINE>MDDFreight freightOrder = new MDDFreight(getCtx(), 0, get_TrxName());<NEW_LINE><MASK><NEW_LINE>freightOrder.setDD_Driver_ID(getDriverId());<NEW_LINE>freightOrder.setDD_Vehicle_ID(getVehicleId());<NEW_LINE>freightOrder.setDateDoc(getDateDoc());<NEW_LINE>freightOrder.se... | freightOrder.setWM_InOutBound_ID(getInOutBoundId()); |
865,058 | public void buildUserInfo(List<ApiDefinitionResult> apis) {<NEW_LINE>if (CollectionUtils.isEmpty(apis)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> userIds = new HashSet<>();<NEW_LINE>apis.forEach(i -> {<NEW_LINE>userIds.add(i.getUserId());<NEW_LINE>userIds.<MASK><NEW_LINE>userIds.add(i.getCreateUser());<NEW_LIN... | add(i.getDeleteUserId()); |
866,499 | public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "create variable boolean KEEP = true;\n" + "@name('s0') select irstream * from SupportBean#expr(KEEP);\n";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>... | new SupportBean("E3", 3)); |
86,950 | private String convertLessThanOneThousand(int number) {<NEW_LINE>String soFar;<NEW_LINE>if (number % 100 < 20) {<NEW_LINE>// 19 et moins<NEW_LINE>soFar = numNames[number % 100];<NEW_LINE>number /= 100;<NEW_LINE>} else if ((number % 100 < 80) && (number % 100 > 70)) {<NEW_LINE>// 71 ->79 (soixante et onze )<NEW_LINE>soF... | (number - 60) % 100]; |
850,763 | public void PrintRegionData(int Label0, int Label1) {<NEW_LINE>if (Label0 < 0)<NEW_LINE>Label0 = 0;<NEW_LINE>if (Label1 > MaxLabel)<NEW_LINE>Label1 = MaxLabel;<NEW_LINE>if (Label1 < Label0)<NEW_LINE>return;<NEW_LINE>for (int Label = Label0; Label <= Label1; Label++) {<NEW_LINE>double[] Property = RegionData[Label];<NEW... | = (int) Property[BLOBMINY]; |
1,192,131 | public void recordBrokerStats(BrokerStats brokerStats) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>LinkedList<BrokerStats> brokerStatsList = brokerStatsMap.computeIfAbsent(brokerId, i -> new LinkedList<>());<NEW_LINE>// multiple PastReplicaStatsProcessor/BrokerStatsProcessor may be processing BrokerStats<NEW_LINE>// for ... | int brokerId = brokerStats.getId(); |
926,211 | static Throwable removeRecursiveCalls(final Throwable cause, final Class<?> declaringClass) {<NEW_LINE>final List<String> uniqueStackTraceItems = new ArrayList<>();<NEW_LINE>final List<Integer> indexesToBeRemoved = new ArrayList<>();<NEW_LINE>for (StackTraceElement element : cause.getStackTrace()) {<NEW_LINE>final Stri... | ).forEach(adjustedList::remove); |
1,722,119 | private void initialize() {<NEW_LINE>if (selection != null && !selection.isEmpty() && selection instanceof IStructuredSelection) {<NEW_LINE>IStructuredSelection ssel = (IStructuredSelection) selection;<NEW_LINE>if (ssel.size() > 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object obj = ssel.getFirstElement();<NEW_LINE>// ... | throw new RuntimeException("Error in reflection code", e); |
857,190 | private void parseStream(StreamInfo streamInfo) {<NEW_LINE>Preconditions.checkNotNull(streamInfo, "stream is null");<NEW_LINE>Preconditions.checkNotNull(streamInfo.getStreamId(), "streamId is null");<NEW_LINE>Preconditions.checkNotNull(streamInfo.getNodes(), "nodes is null");<NEW_LINE>Preconditions.checkState(!streamIn... | streamInfo.getRelations(), "relations is null"); |
1,141,115 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "mfxer");<NEW_LINE>final IOperandTreeNode targetR... | 29L), dw, tmpVar1)); |
66,292 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3".split(",");<NEW_LINE>String epl = "@name('s0') select " + "maxbyever(intPrimitive).theString as c0, " + "minbyever(intPrimitive).theString as c1, " + "maxby(intPrimitive).theString as c2, " + "minby(intPrimitive).theString as c3 " + "... | new SupportBean("E3", 0)); |
1,765,102 | private WrapClosure makeEvalWrapClosure(WrapClosure wrapClosure, TruffleString name, int frameLevel, int scopeLevel, Environment current) {<NEW_LINE>final JSFrameSlot dynamicScopeSlot = current.findBlockFrameSlot(FunctionEnvironment.DYNAMIC_SCOPE_IDENTIFIER);<NEW_LINE>assert dynamicScopeSlot != null;<NEW_LINE>return Wr... | ), isStrictMode(), context); |
730,118 | public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put(CounterEngine.ATTR_NAME, type);<NEW_LINE>param.put(CounterEngine.ATTR_DISPLAY, displayName);<NEW_LINE>param.<MASK><NEW_LINE>param.put(CounterEngine.ATTR_ICON, icon);<NEW_... | put(CounterEngine.ATTR_FAMILY, family); |
1,837,549 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.<MASK><NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>com.google.protobuf.GeneratedMessa... | writeString(output, 1, diskName_); |
1,335,184 | public Entity newLevelBox(SpawnData data) {<NEW_LINE>var ground = new Box(50, 0.5, 150);<NEW_LINE>ground.setMaterial(new PhongMaterial(Color.BROWN));<NEW_LINE>var WALL_HEIGHT = 20;<NEW_LINE>var wallL = new Box(0.5, WALL_HEIGHT, 150);<NEW_LINE>wallL.setMaterial(new PhongMaterial(Color.LIGHTCORAL));<NEW_LINE>wallL.setTra... | .setTranslateY(-WALL_HEIGHT / 2.0); |
1,080,840 | protected void consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() {<NEW_LINE>// ClassInstanceCreationExpression ::= Primary '.' 'new' TypeArguments SimpleName '(' ArgumentListopt ')' ClassBodyopt<NEW_LINE>// ClassInstanceCreationExpression ::= ClassInstanceCreationExpressionName 'new' TypeArguments Simp... | .genericsLengthStack[this.genericsLengthPtr--]; |
344,315 | public final void paint(Graphics g) {<NEW_LINE>Theme currentTheme = ThemeFactory.getCurrentTheme();<NEW_LINE>super.paint(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>if (translateForExport) {<NEW_LINE>g2.translate(Constants.EXPORT_DISPLACEMENT, Constants.EXPORT_DISPLACEMENT);<NEW_LINE>}<NEW_LINE>boolean select... | + getClass().getName(); |
689,338 | private boolean advanceRight(TInner right, TKey rightKey) {<NEW_LINE>rights.clear();<NEW_LINE>rights.add(right);<NEW_LINE>while (getRightEnumerator().moveNext()) {<NEW_LINE>right <MASK><NEW_LINE>TKey rightKey2 = innerKeySelector.apply(right);<NEW_LINE>if (rightKey2 == null) {<NEW_LINE>// mergeJoin assumes inputs sorted... | = getRightEnumerator().current(); |
760,617 | public wind.v1.XmlPullParser newPullParser() throws XmlPullParserException {<NEW_LINE>if (parserClasses == null)<NEW_LINE>throw new XmlPullParserException("Factory initialization was incomplete - has not tried " + classNamesLocation);<NEW_LINE>if (parserClasses.size() == 0)<NEW_LINE>throw new XmlPullParserException("No... | ex.toString() + "; "); |
330,264 | private void loadNode786() {<NEW_LINE>StateVariableTypeNode node = new StateVariableTypeNode(this.context, Identifiers.StateMachineType_CurrentState, new QualifiedName(0, "CurrentState"), new LocalizedText("en", "CurrentState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.N... | .expanded(), true)); |
1,313,532 | private StatementNode createDestructuringAssignment(ExpressionNode[] leftHandSides, ExpressionNode rhs) {<NEW_LINE>StatementNode[] statements = new StatementNode[leftHandSides.length];<NEW_LINE>ReadNode[] temps <MASK><NEW_LINE>int starredIndex = -1;<NEW_LINE>for (int i = 0; i < leftHandSides.length; i++) {<NEW_LINE>Rea... | = new ReadNode[leftHandSides.length]; |
1,434,938 | private void populateFromConnectionModel(ConnectionModel connectionModel) {<NEW_LINE>clientId.setText(connectionModel.getClientId());<NEW_LINE>serverHostname.setText(connectionModel.getServerHostName());<NEW_LINE>serverPort.setText(Integer.toString(connectionModel.getServerPort()));<NEW_LINE>cleanSession.setChecked(con... | setText(connectionModel.getPassword()); |
1,215,760 | private void updateAdapterList() {<NEW_LINE>// Fetch the picker's proxy.<NEW_LINE>PickerProxy pickerProxy = getPickerProxy();<NEW_LINE>if (pickerProxy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch the text field to update the drop-down list on.<NEW_LINE>AutoCompleteTextView textView = getAutoCompleteTextView... | createListFrom(pickerProxy.getFirstColumn()); |
885,103 | private void mountGlobalRestFailureHandler(Router mainRouter) {<NEW_LINE>GlobalRestFailureHandler globalRestFailureHandler = SPIServiceUtils.getPriorityHighestService(GlobalRestFailureHandler.class);<NEW_LINE>Handler<RoutingContext> failureHandler = null == globalRestFailureHandler ? ctx -> {<NEW_LINE>if (ctx.response(... | setStatusCode(exception.getStatusCode()); |
1,331,031 | static KeyStore GetPEMKeyStore(InputStream inputStream) throws Exception {<NEW_LINE>KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());<NEW_LINE>keyStore.load(null);<NEW_LINE>int index = 0;<NEW_LINE>BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));<NEW_LINE>String ... | String hexString = stringBuilder.toString(); |
1,720,324 | private static void processOutputLimitedLastAllNonBufferedCodegen(ResultSetProcessorSimpleForge forge, String methodName, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenExpressionField factory = <MASK><NEW_LINE>CodegenExpression eventTypes = classScope.addFieldUnshare... | classScope.addOrGetFieldSharable(ResultSetProcessorHelperFactoryField.INSTANCE); |
1,340,944 | public CreateAppInstanceAdminResult createAppInstanceAdmin(CreateAppInstanceAdminRequest createAppInstanceAdminRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ... | invoke(request, responseHandler, executionContext); |
439,343 | private Dialog fetchDialog() {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);<NEW_LINE>final String[] originRemotes = mRepo.getRemotes().toArray(new String[0]);<NEW_LINE>final ArrayList<String> <MASK><NEW_LINE>return builder.setTitle(R.string.dialog_fetch_title).setMultiChoiceItems(originRem... | remotes = new ArrayList<>(); |
1,430,373 | public void deleteIfExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobContainerAsyncClient.deleteIfExists<NEW_LINE>client.deleteIfExists().subscribe(deleted -> {<NEW_LINE>if (deleted) {<NEW_LINE>System.out.println("Successfully deleted.");<NEW_LINE>} else {<NEW_LINE>System.out.println("Does not exist... | System.out.println("Does not exist."); |
406,731 | protected void execute() {<NEW_LINE>List<Device> devices = getDevices(apiDeviceListUrl, credentials, appKey);<NEW_LINE>List<Plant> plants = getPlants(apiPlantListUrl, credentials, appKey);<NEW_LINE>for (KoubachiBindingProvider provider : providers) {<NEW_LINE>for (String itemName : provider.getItemNames()) {<NEW_LINE>i... | propertyName = provider.getPropertyName(itemName); |
1,695,759 | public ListEnvironmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEnvironmentsResult listEnvironmentsResult = new ListEnvironmentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
933,304 | public static GetWorkFlowResponse unmarshall(GetWorkFlowResponse getWorkFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>getWorkFlowResponse.setRequestId(_ctx.stringValue("GetWorkFlowResponse.RequestId"));<NEW_LINE>getWorkFlowResponse.setCode(_ctx.integerValue("GetWorkFlowResponse.Code"));<NEW_LINE>getWorkFlowRespons... | (_ctx.stringValue("GetWorkFlowResponse.Data.WorkFlowInfo.Status")); |
112,122 | public MCostDetail process() {<NEW_LINE>CLogger logger = CLogger.getCLogger(LastInvoiceCostingMethod.class);<NEW_LINE>boolean isReturnTrx = costDetail.getQty().signum() < 0;<NEW_LINE>int precision = accountSchema.getCostingPrecision();<NEW_LINE>BigDecimal price = costDetail.getAmt();<NEW_LINE>if (costDetail.getQty().si... | add(costDetail.getAmt()); |
1,054,532 | public BeanDefinition parse(Element elt, ParserContext pc) {<NEW_LINE>String loginUrl = null;<NEW_LINE>String defaultTargetUrl = null;<NEW_LINE>String authenticationFailureUrl = null;<NEW_LINE>String alwaysUseDefault = null;<NEW_LINE>String successHandlerRef = null;<NEW_LINE>String failureHandlerRef = null;<NEW_LINE>//... | validateHttpRedirect(defaultTargetUrl, pc, source); |
1,516,515 | public void testPurgeMaxSize_9() throws Exception {<NEW_LINE>RemoteFile binaryLogDir = null;<NEW_LINE>RemoteFile binaryTraceDir = null;<NEW_LINE>NumberFormat nf = NumberFormat.getInstance();<NEW_LINE>//<NEW_LINE>CommonTasks.addBootstrapProperty(server, "com.ibm.hpel.trace.purgeMaxSize", "91");<NEW_LINE>server.restartSe... | (MAX_DEFAULT_PURGE_SIZE * 1024 * 1024)); |
1,772,884 | public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {<NEW_LINE>String path = request.getStringValue(TLVType.TLV_TYPE_FILE_PATH);<NEW_LINE>if (path.equals("...")) {<NEW_LINE><MASK><NEW_LINE>if (length != -1) {<NEW_LINE>response.add(TLVType.TLV_TYPE_STAT_BUF, stat(0444 | 01... | long length = meterpreter.getErrorBufferLength(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.