idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,756,014 | private void showComparisonPanelWithinProvider(boolean show) {<NEW_LINE>boolean contains = mainPanel.isAncestorOf(comparisonSplitPane);<NEW_LINE>if (show) {<NEW_LINE>if (!contains) {<NEW_LINE>// Remove the src/dest functions table panel.<NEW_LINE>mainPanel.remove(dualTablePanel);<NEW_LINE>// Show the split pane with th... | add(dualTablePanel, BorderLayout.CENTER); |
1,282,960 | public void becomeDelegateFor(BranchLabel otherLabel) {<NEW_LINE>// other label is delegating to receiver from now on<NEW_LINE>otherLabel.delegate = this;<NEW_LINE>// all existing forward refs to other label are inlined into current label<NEW_LINE>final int otherCount = otherLabel.forwardReferenceCount;<NEW_LINE>if (ot... | int[this.forwardReferenceCount + otherCount]; |
949,460 | private PersistentCache doOpen(File cacheDir, String displayName, Map<String, ?> properties, CacheBuilder.LockTarget lockTarget, LockOptions lockOptions, @Nullable Action<? super PersistentCache> initializer, @Nullable CleanupAction cleanup) {<NEW_LINE>File canonicalDir = FileUtils.canonicalize(cacheDir);<NEW_LINE>DirC... | .format("Cache '%s' is already open with different lock options.", cacheDir)); |
1,177,340 | static String calc(Class<?> cls, String name) {<NEW_LINE>List<ParamInfo> paramList = ParamUtil.getParametersByOperator(cls).stream().filter(d -> !d.getName().startsWith("lazyPrint")).collect(Collectors.toList());<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String basePyCls = calcPyBaseCls(cls);<NEW_LINE>L... | (", self).__init__(*args, **kwargs)").append("\n"); |
461,095 | private long restartInternal(long oldExecutionId, Properties restartParameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException {<NEW_LINE>if (authService != null) {<NEW_LINE>authService.authorizedJobRestartByExecuti... | ), restartParameters).getKey(); |
447,627 | protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>myRoot = buildNodes();<NEW_LINE>final Tree tree = new Tree(myRoot);<NEW_LINE>final MyTreeCellRenderer cellRenderer = new MyTreeCellRenderer();<NEW_LINE>tree.setCellRenderer(cellRenderer);<NEW_LINE>tree.setRootVis... | scrollPane = ScrollPaneFactory.createScrollPane(tree); |
1,641,156 | public boolean process(Point2D_F64 obs1, Point2D_F64 obs2, Point2D_F64 obs3, double length23, double length13, double length12) {<NEW_LINE>double cos12 = computeCosine(obs1, obs2);<NEW_LINE>double cos13 = computeCosine(obs1, obs3);<NEW_LINE>double cos23 = computeCosine(obs2, obs3);<NEW_LINE>double a = length23, b = len... | PointDistance3 s = solutions.grow(); |
891,604 | public List<JPACompletionItem> doCompletion(CompletionContext context) {<NEW_LINE>List<JPACompletionItem> results = new ArrayList<JPACompletionItem>();<NEW_LINE>int caretOffset = context.getCaretOffset();<NEW_LINE>String typedChars = context.getTypedPrefix();<NEW_LINE>HashSet<String> providers = new HashSet<String>();<... | typedChars.length(), cl); |
981,232 | // this is an example, no need to make IP addresses configurable<NEW_LINE>@SuppressWarnings("squid:S1313")<NEW_LINE>public static void main(String[] args) throws Exception {<NEW_LINE>printer.prettyPrint(new JmxProcess(Server.builder().setHost("w2").setPort("1099").setAlias("fooalias").addQuery(Query.builder().setObj("j... | )).build())); |
1,180,351 | final StartSessionResult executeStartSession(StartSessionRequest startSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM"); |
1,469,142 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean isPrepared0(com.sun.jdi.ReferenceType a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.ReferenceType", "i... | jpda.JDIExceptionReporter.report(ex); |
1,819,942 | public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>logDebug("onOptionsItemSelected");<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case android.R.id.home:<NEW_LINE>{<NEW_LINE>finish();<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case R.id.cab_menu_new_chat:<NEW_LINE>{<NEW_LINE>if (megaApi != null && megaApi.getRoot... | (R.string.no_contacts_invite)); |
1,595,043 | public static LogicalSchema buildSchema(final LogicalSchema inputSchema, final List<FunctionCall> tableFunctions, final FunctionRegistry functionRegistry) {<NEW_LINE>final LogicalSchema.Builder schemaBuilder = LogicalSchema.builder();<NEW_LINE>final List<Column> cols = inputSchema.value();<NEW_LINE>// We copy all the o... | fieldType = expressionTypeManager.getExpressionSqlType(functionCall); |
1,145,780 | public InteractionResult place(BlockPlaceContext context) {<NEW_LINE>Direction face = context.getClickedFace();<NEW_LINE>BlockPos placedOnPos = context.getClickedPos().relative(face.getOpposite());<NEW_LINE>Level world = context.getLevel();<NEW_LINE>BlockState placedOnState = world.getBlockState(placedOnPos);<NEW_LINE>... | .getClickedPos().above(); |
1,347,564 | public ListManagedPoliciesInPermissionSetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListManagedPoliciesInPermissionSetResult listManagedPoliciesInPermissionSetResult = new ListManagedPoliciesInPermissionSetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>Str... | )).unmarshall(context)); |
1,754,095 | private Mono<Response<Flux<ByteBuffer>>> deleteStaticSiteBuildWithResponseAsync(String resourceGroupName, String name, String environmentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
995,753 | boolean onRetValue(TDSReader tdsReader) throws SQLServerException {<NEW_LINE>// If no prepared statement handle is expected at this time<NEW_LINE>// then don't consume this OUT parameter as it does not contain<NEW_LINE>// a prepared statement handle.<NEW_LINE>if (!expectPrepStmtHandle)<NEW_LINE>return super.onRetValue(... | .getInt(tdsReader, statement)); |
1,744,550 | public void savePreference() {<NEW_LINE>if (m_AD_User_ID > 0) {<NEW_LINE>Query query = new Query(Env.getCtx(), I_AD_Preference.Table_Name, "AD_User_ID = ? AND Attribute = ? AND AD_Window_ID Is NULL", null);<NEW_LINE>for (int i = 0; i < PROPERTIES.length; i++) {<NEW_LINE>String attribute = PROPERTIES[i];<NEW_LINE>if (at... | getCtx(), 0, null); |
1,157,596 | static public void main(String[] args) throws MPIException {<NEW_LINE>MPI.Init(args);<NEW_LINE>// Rank of sender<NEW_LINE>int source;<NEW_LINE>// Rank of receiver<NEW_LINE>int dest;<NEW_LINE>// Tag for messages<NEW_LINE>int tag = 50;<NEW_LINE>int next;<NEW_LINE>int prev;<NEW_LINE>int[] message = new int[1];<NEW_LINE>in... | MPI.INT, prev, tag); |
1,837,620 | ScalarOperator equivalenceDeriveOnPredicate(ScalarOperator on, OptExpression joinOpt, LogicalJoinOperator join) {<NEW_LINE>// For SQl: select * from t1 left join t2 on t1.id = t2.id and t1.id > 1<NEW_LINE>// Infer t2.id > 1 and Push down it to right child<NEW_LINE>if (!join.getJoinType().isInnerJoin() && !join.getJoinT... | get(1).getOutputColumns(); |
569,187 | public ApiResponse<MediaFolder> mediaPutWithHttpInfo(String id, UpdateMediaFolderRequest updateMediaFolderRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = updateMediaFolderRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Mis... | HashMap<String, String>(); |
1,288,028 | protected boolean moveSegment(final BalancerSegmentHolder segment, final ImmutableDruidServer toServer, final DruidCoordinatorRuntimeParams params) {<NEW_LINE>final LoadQueuePeon toPeon = params.getLoadManagementPeons().get(toServer.getName());<NEW_LINE>final ImmutableDruidServer fromServer = segment.getFromServer();<N... | ) -> movingSegments.remove(segmentId); |
252,404 | private void replace(final HolderAccessor holderAccessor, boolean selectedOnly) {<NEW_LINE>final String searchString = (String) mFilterTextSearchField.getSelectedItem();<NEW_LINE>if (searchString == null)<NEW_LINE>return;<NEW_LINE>final String replaceString = (String) mFilterTextReplaceField.getSelectedItem();<NEW_LINE... | mFilterTextReplaceField.getSelectedItem(), 0); |
1,703,571 | public static CodegenMethod from(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, EPTypeClass expectedUnderlyingType, EventPropertyGetterSPI innerGetter, AccessType accessType, Class generator) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(accessType == AccessType.EXISTS ... | "bean"), codegenMethodScope, codegenClassScope)); |
213,186 | public SoundCloudAudioSourceManager build() {<NEW_LINE>SoundCloudDataReader usedDataReader = dataReader;<NEW_LINE>if (usedDataReader == null) {<NEW_LINE>usedDataReader = new DefaultSoundCloudDataReader();<NEW_LINE>}<NEW_LINE>SoundCloudHtmlDataLoader usedHtmlDataLoader = htmlDataLoader;<NEW_LINE>if (usedHtmlDataLoader =... | usedDataReader, usedHtmlDataLoader, usedFormatHandler, usedPlaylistLoader); |
1,778,002 | public void execute(LuckPermsPlugin plugin, Sender sender, ArgumentList args, String label) {<NEW_LINE>if (args.isEmpty()) {<NEW_LINE>sendUsage(sender, label);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String trackName = args.get(0).toLowerCase(Locale.ROOT);<NEW_LINE>if (!DataConstraints.TRACK_NAME_TEST.test(trackName)) {<N... | , Component.text(trackName)); |
1,412,329 | protected ActionReportResult buildActionReportResult(boolean showEntityValues) {<NEW_LINE>RestActionReporter ar = new RestActionReporter();<NEW_LINE>ar.setExtraProperties(new Properties());<NEW_LINE>ConfigBean entity = (ConfigBean) getEntity();<NEW_LINE>if (childID != null) {<NEW_LINE>ar.setActionDescription(childID);<... | ActionReportResult(ar, entity, optionsResult); |
1,847,712 | protected static void buildArgumentWithGenerics(GeneratorAdapter generatorAdapter, Type type, AnnotationMetadataReference annotationMetadata, ClassElement[] generics) {<NEW_LINE>// 1st argument: the type<NEW_LINE>generatorAdapter.push(type);<NEW_LINE>// 2nd argument: the annotation metadata<NEW_LINE>AnnotationMetadataW... | Class.class, generics.length); |
1,136,640 | public static boolean canAddNewData(ColumnMemoryUsageInfo columnMemoryUsage, long newBitsMemory, long newOffsetsMemory, long newDataMemory) {<NEW_LINE>// First we need to update the vector memory usage<NEW_LINE>final VectorMemoryUsageInfo vectorMemoryUsage = columnMemoryUsage.vectorMemoryUsage;<NEW_LINE>getMemoryUsage(... | offsetsBytesUsed, newOffsetsMemory, vectorMemoryUsage.offsetsByteCapacity); |
1,443,704 | public void marshall(UpdateEncryption updateEncryption, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateEncryption == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateEncryption.getAlgorithm(), ALG... | updateEncryption.getUrl(), URL_BINDING); |
897,013 | public Optional<Layout> resolveLayout(final HttpServletRequest request) {<NEW_LINE>Layout layout = Try.of(() -> loadLayout(request.getParameter(<MASK><NEW_LINE>if (layout == null || UtilMethods.isNotSet(layout.getId())) {<NEW_LINE>final String referer = request.getHeader("referer");<NEW_LINE>if (referer != null && refe... | "p_l_id"))).getOrNull(); |
1,749,541 | private Mono<Response<MaintenanceConfigurationInner>> updateWithResponseAsync(String resourceGroupName, String resourceName, MaintenanceConfigurationInner configuration, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.ge... | this.client.mergeContext(context); |
1,261,311 | private Class<T> createProxyClass(Class<?> originalClass, String proxyClassName) throws Exception {<NEW_LINE>Set<Class<?>> specialInterfaces = Sets.newHashSet(LifecycleMixin.class, <MASK><NEW_LINE>addAdditionalInterfaces(specialInterfaces);<NEW_LINE>// Remove special interfaces from main set (deserialization scenario)<... | TargetInstanceProxy.class, ProxyObject.class); |
1,490,381 | private FutureCommandResult doExecute(final InputSource stdinInput, final KillableObserver observer, final Consumers.OutErrConsumers outErrConsumers, final boolean killSubprocessOnInterrupt, final boolean closeOutputStreams) throws ExecFailedException {<NEW_LINE>logCommand();<NEW_LINE>final Subprocess process = startPr... | processKillable = observeProcess(process, observer); |
1,209,118 | public void startElement(XMLElement element, Attributes attributes) {<NEW_LINE>CacheMapping descriptor = getDescriptor();<NEW_LINE>if (element.getQName().equals(RuntimeTagNames.TIMEOUT)) {<NEW_LINE>for (int i = 0; i < attributes.getLength(); i++) {<NEW_LINE>if (RuntimeTagNames.NAME.equals(attributes.getQName(i))) {<NEW... | super.startElement(element, attributes); |
1,522,168 | private void openLastEditedDatabases() {<NEW_LINE>List<String> lastFiles = preferencesService.getGuiPreferences().getLastFilesOpened();<NEW_LINE>if (lastFiles.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String fileName : lastFiles) {<NEW_LINE>Path <MASK><NEW_LINE>// Already parsed via command line parameter,... | dbFile = Path.of(fileName); |
1,761,662 | private MetaDataContexts buildChangedMetaDataContextWithChangedDataSource(final ShardingSphereMetaData originalMetaData, final Map<String, DataSourceProperties> newDataSourceProps) throws SQLException {<NEW_LINE>Collection<String> deletedDataSources = getDeletedDataSources(originalMetaData, newDataSourceProps).keySet()... | originalMetaData.getName()))); |
270,203 | public void run(Host host, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback) {<NEW_LINE>deviceId = UUID.randomUUID().toString();<NEW_LINE>drivePath = configPanel.getContentPath();<NEW_LINE>sectorSize = configPanel.getSectorSize();<NEW_LINE>timeZone = configPanel.getTimeZone();<NE... | null, deviceId, this.host); |
1,808,619 | void save(IGanttProject project, TransformerHandler handler) throws SAXException {<NEW_LINE>AttributesImpl attrs = new AttributesImpl();<NEW_LINE>addAttribute("base-id", project.getActiveCalendar().getBaseCalendarID(), attrs);<NEW_LINE>startElement("calendars", attrs, handler);<NEW_LINE>startElement("day-types", attrs,... | emptyElement("default-week", attrs, handler); |
229,412 | public static MessagePayload fromProtoMessageContent(WFCMessage.MessageContent protoContent) {<NEW_LINE>if (protoContent == null)<NEW_LINE>return null;<NEW_LINE>MessagePayload payload = new MessagePayload();<NEW_LINE>payload.type = protoContent.getType();<NEW_LINE>payload.searchableContent = protoContent.getSearchableC... | .content = protoContent.getContent(); |
1,019,959 | public SubjectAreaOMASAPIResponse<PreferredTerm> updatePreferredTerm(String serverName, String userId, String guid, PreferredTerm preferredTerm, boolean isReplace) {<NEW_LINE>String restAPIName = "updatePreferredTerm";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, restAPIName);<NEW_LINE>... | updatePreferredTermRelationship(userId, guid, preferredTerm); |
1,691,791 | public static Item parseCreativeItem(JsonObject json, boolean ignoreUnknown) {<NEW_LINE>String identifier = json.get("id").getAsString();<NEW_LINE>LegacyEntry legacyEntry = itemPalette.fromIdentifier(identifier);<NEW_LINE>if (legacyEntry == null) {<NEW_LINE>if (!ignoreUnknown) {<NEW_LINE>throw new IllegalStateException... | log.debug("Can not find legacyEntry for " + identifier); |
35,167 | public void onDrawFrame(GL10 glUnused) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (updateSurface) {<NEW_LINE>mSurface.updateTexImage();<NEW_LINE>mSurface.getTransformMatrix(mSTMatrix);<NEW_LINE>updateSurface = false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Ignore the passed-in GL10 interface, and use the GLES20<NEW_LINE>//... | GLES20.GL_TRIANGLE_STRIP, 0, 4); |
1,562,123 | public void encode(ByteBuffer buffer, int base) {<NEW_LINE>// TODO: this is 0x10 bit, when should this be set?<NEW_LINE>byte allowIntermediary = 0x00;<NEW_LINE>String name = getName();<NEW_LINE>String value = getValue();<NEW_LINE>// Encode the prefix code and the name.<NEW_LINE>if (_huffman) {<NEW_LINE>buffer.put((byte... | HuffmanEncoder.encode(buffer, value); |
1,346,592 | private Optional<RelationType> analyzeBaseTableForRefreshMaterializedView(Table baseTable, Optional<Scope> scope) {<NEW_LINE>checkState(analysis.getStatement() instanceof RefreshMaterializedView, "Not analyzing RefreshMaterializedView statement");<NEW_LINE>RefreshMaterializedView refreshMaterializedView = (RefreshMater... | .getTableName(), null)); |
1,614,892 | final UpdateEndpointWeightsAndCapacitiesResult executeUpdateEndpointWeightsAndCapacities(UpdateEndpointWeightsAndCapacitiesRequest updateEndpointWeightsAndCapacitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEndpointWeightsAndCapacitiesRequest);<NEW_LINE>AWSRequestMetrics awsRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
70,683 | private static Arguments parse(final String[] args) {<NEW_LINE>boolean help = false;<NEW_LINE>int port = -1;<NEW_LINE>for (final String arg : args) {<NEW_LINE>if ("help".equals(arg)) {<NEW_LINE>help = true;<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>final String[] splitOnEquals = arg.split("=");<NEW_LINE>if (splitOnEquals.... | port = Integer.decode(argValue); |
217,590 | public MegaOffline findbyPathAndName(String path, String name) {<NEW_LINE>String selectQuery = "SELECT * FROM " + TABLE_OFFLINE + " WHERE " + KEY_OFF_PATH + " = '" + encrypt(path) + "'" + "AND " + KEY_OFF_NAME + " = '" + encrypt(name) + "'";<NEW_LINE>MegaOffline mOffline = null;<NEW_LINE>try (Cursor cursor = db.rawQuer... | _parent = cursor.getInt(4); |
624,050 | private List<WFActivityPendingInfo> retrievePendingActivitiesOverEndWaitTime(final int remindDays, final int adWorkflowProcessorId) {<NEW_LINE>String sql = // suspended<NEW_LINE>"SELECT * " + "FROM AD_WF_Activity a " + "WHERE Processed='N' AND WFState='OS'" + " AND EndWaitTime > now()" + " AND (DateLastAlert IS NULL";<... | sqlParams = Collections.singletonList(adWorkflowProcessorId); |
76,693 | private void doSendInvocationsToServer() {<NEW_LINE>ServerRpcQueue serverRpcQueue = getServerRpcQueue();<NEW_LINE>if (serverRpcQueue.isEmpty() && !resynchronizeRequested) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (ApplicationConfiguration.isDebugMode()) {<NEW_LINE>Util.logMethodInvocations(connection, serverRpcQueue.ge... | put(ApplicationConstants.RESYNCHRONIZE_ID, true); |
1,276,373 | public void io() throws IOException {<NEW_LINE>if (sDebugMode) {<NEW_LINE>mBuf.flip();<NEW_LINE>LOG.info(FormatUtils.byteBufferToString(mBuf));<NEW_LINE>}<NEW_LINE>mBuf.flip();<NEW_LINE>long sum = 0;<NEW_LINE>String str = "th " + mMsg + " @ Worker ";<NEW_LINE>if (mWrite) {<NEW_LINE>for (int times = mLeft; times < mRigh... | write(mBuf.array()); |
1,102,209 | protected void doIt(EditorAdaptor editorAdaptor, int count, TextRange range, ContentType contentType) {<NEW_LINE>if (count == Command.NO_COUNT_GIVEN)<NEW_LINE>count = 1;<NEW_LINE>RegisterContent registerContent = editorAdaptor.getRegisterManager().getActiveRegister().getContent();<NEW_LINE>String text = StringUtils.mul... | registerContent.getText(), count); |
1,484,936 | public static long timeStringAs(String str, TimeUnit unit) {<NEW_LINE>String lower = str.toLowerCase().trim();<NEW_LINE>try {<NEW_LINE>Matcher m = Pattern.compile("(-?[0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new NumberFormatException("Failed to parse time string: " + str);<NEW_LINE... | NumberFormatException("Invalid suffix: \"" + suffix + "\""); |
1,478,708 | private boolean isLocationBlocked(final Geolocation clientLocation) {<NEW_LINE>if (geoEnabled == null || geoEnabled.size() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Map<String, String> locData = clientLocation.getProperties();<NEW_LINE>for (final JsonNode constraint : geoEnabled) {<NEW_LINE>boolean match... | String t = keyIter.next(); |
1,496,715 | public double updateWeightMinus(final double[] gradients, final double[] lastGradient, final int index) {<NEW_LINE>// multiply the current and previous gradient, and take the<NEW_LINE>// sign. We want to see if the gradient has changed its sign.<NEW_LINE>final int change = EncogMath.sign(gradients[index] * lastGradient... | lastDelta[index] * RPROPConst.NEGATIVE_ETA; |
332,446 | public String uploadCertificate(final UploadCustomCertificateCmd cmd) {<NEW_LINE>if (cmd.getPrivateKey() != null && cmd.getAlias() != null) {<NEW_LINE>throw new InvalidParameterValueException("Can't change the alias for private key certification");<NEW_LINE>}<NEW_LINE>if (cmd.getPrivateKey() == null) {<NEW_LINE>if (cmd... | ), cmd.getDomainSuffix()); |
447,551 | public void tickFlower() {<NEW_LINE>super.tickFlower();<NEW_LINE>if (getLevel().isClientSide) {<NEW_LINE>double particleChance = 1F - (double) getMana() / (double) getMaxMana() / 3.5F;<NEW_LINE>int color = getColor();<NEW_LINE>float red = (color >> 16 & 0xFF) / 255F;<NEW_LINE>float green = (color <MASK><NEW_LINE>float ... | >> 8 & 0xFF) / 255F; |
260,620 | private ModuleRepositoryCaches prepareReadOnlyModuleRepositoryCaches(ArtifactCacheMetadata artifactCacheMetadata, ArtifactCacheLockingManager artifactCacheLockingManager, BuildCommencedTimeProvider timeProvider, ImmutableModuleIdentifierFactory moduleIdentifierFactory, AttributeContainerSerializer attributeContainerSer... | getCacheDir().toPath()); |
1,175,790 | private void createFile() throws IOException {<NEW_LINE>String newName = name;<NEW_LINE>int index = newName.indexOf(':');<NEW_LINE>String scheme = newName.substring(0, index);<NEW_LINE>if (!FileCounter.getInstance().increment() && "nioMapped".equals(scheme)) {<NEW_LINE>newName = "nio:Disk";<NEW_LINE>}<NEW_LINE>try {<NE... | ).createTempFile(SUFFIX_TEMP_FILE, true); |
192,272 | final UpdateQueueResult executeUpdateQueue(UpdateQueueRequest updateQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateQueueRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateQueueRequest> request = null;<NEW_LINE>Respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
902,384 | final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DescribeEve... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,146,037 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>boolean isWin32 = "win32".equals(SWT.getPlatform());<NEW_LINE>GridLayoutFactory.fillDefaults().extendedMargins(isWin32 ? 0 : 3, 3, 2, 2).applyTo(composite);<... | .apply((T) element); |
1,334,588 | protected void doAssemble(Map<String, Object> props) throws AssemblerProcessingException {<NEW_LINE>// verify graal<NEW_LINE>Path graalPath = assembler.getGraal().getEffectivePath(context, assembler);<NEW_LINE>SemVer javaVersion = SemVer.of(readJavaVersion(graalPath));<NEW_LINE>SemVer graalVersion = SemVer.of(readGraal... | toAbsolutePath().toString()); |
714,285 | public TaskStatus runTask(TaskToolbox toolbox) throws Exception {<NEW_LINE>DataSchema dataSchema = ingestionSchema.getDataSchema();<NEW_LINE>GranularitySpec granularitySpec = dataSchema.getGranularitySpec();<NEW_LINE>ParallelIndexTuningConfig tuningConfig = ingestionSchema.getTuningConfig();<NEW_LINE>HashedPartitionsSp... | .getRowIngestionMetersFactory().createRowIngestionMeters(); |
1,152,145 | public void run() {<NEW_LINE>FileWriter fw = null;<NEW_LINE>try {<NEW_LINE>File file = new File(mFilePath);<NEW_LINE>if (!file.exists() || file.length() > MAX_SIZE) {<NEW_LINE>fw = new FileWriter(file, false);<NEW_LINE>writeSystemInformation(mApplication, fw);<NEW_LINE>} else {<NEW_LINE>fw = new FileWriter(mFilePath, t... | TAG, "Failed to write the string: " + mData, e); |
38,530 | protected void asyncReadEntry(ReadHandle ledger, long firstEntry, long lastEntry, boolean isSlowestReader, OpReadEntry opReadEntry, Object ctx) {<NEW_LINE>if (config.getReadEntryTimeoutSeconds() > 0) {<NEW_LINE>// set readOpCount to uniquely validate if ReadEntryCallbackWrapper is already recycled<NEW_LINE>long readOpC... | long createdTime = System.nanoTime(); |
68,954 | protected void initScene() {<NEW_LINE>// set the direction<NEW_LINE>mLight = new DirectionalLight(1f, 0.2f, -1.0f);<NEW_LINE>mLight.setColor(1.0f, 1.0f, 1.0f);<NEW_LINE>mLight.setPower(2);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>try {<NEW_LINE>Material material = new Material();<NEW_LINE>material.addTextu... | setRepeatMode(Animation.RepeatMode.INFINITE); |
1,720,132 | public void showPurchaseOrder(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>String fileLink;<NEW_LINE>String title;<NEW_LINE>PurchaseOrderPrintService purchaseOrderPrintService = Beans.get(PurchaseOrderPrintService.class);<NEW_LINE>try {<NEW_LINE>if (!Object... | .get(IExceptionMessage.NO_PURCHASE_ORDER_SELECTED_FOR_PRINTING)); |
1,211,462 | public void read(org.apache.thrift.protocol.TProtocol prot, drainReplicationTable_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incomin... | thrift.protocol.TType.STRING); |
130,076 | private static <T> Tuple2<Node<T>, Boolean> unbalancedLeft(Color color, int blackHeight, RedBlackTree<T> left, T value, RedBlackTree<T> right, Empty<T> empty) {<NEW_LINE>if (!left.isEmpty()) {<NEW_LINE>final Node<T> ln = (Node<T>) left;<NEW_LINE>if (ln.color == BLACK) {<NEW_LINE>final Node<T> newNode = Node.balanceLeft... | Node<T>) ln.right; |
692,745 | public void parseStatementNode() {<NEW_LINE>String id = context.getStringAttribute("id");<NEW_LINE>String databaseId = context.getStringAttribute("databaseId");<NEW_LINE>if (!databaseIdMatchesCurrent(id, databaseId, this.requiredDatabaseId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String nodeName = context.getNode().get... | processSelectKeyNodes(id, parameterTypeClass, langDriver); |
1,176,934 | private void createTrafficChannels(Channel parentChannel) {<NEW_LINE>DecodeConfiguration decodeConfiguration = parentChannel.getDecodeConfiguration();<NEW_LINE>List<Channel> trafficChannelList = new ArrayList<>();<NEW_LINE>if (decodeConfiguration instanceof DecodeConfigMPT1327) {<NEW_LINE>DecodeConfigMPT1327 decodeConf... | mManagedTrafficChannels = Collections.unmodifiableList(trafficChannelList); |
410,112 | protected void appendProperties(DefaultFormBuilder builder) {<NEW_LINE>builder.append("Replica Group ID");<NEW_LINE>builder.append(_id, 3);<NEW_LINE>builder.nextLine();<NEW_LINE>builder.append("Description");<NEW_LINE>builder.nextLine();<NEW_LINE>builder.append("");<NEW_LINE>builder.nextRow(-2);<NEW_LINE>CellConstraint... | builder.append(_filter, 3); |
1,747,906 | private void addSootBasicClasses() {<NEW_LINE>basicclasses[SootClass.HIERARCHY] = new HashSet<String>();<NEW_LINE>basicclasses[SootClass.SIGNATURES] = new HashSet<String>();<NEW_LINE>basicclasses[SootClass.BODIES] = new HashSet<String>();<NEW_LINE>addBasicClass("java.lang.Object");<NEW_LINE>addBasicClass("java.lang.Cla... | addBasicClass("java.lang.Integer", SootClass.SIGNATURES); |
866,180 | public void actionPerformed(ActionEvent ae) {<NEW_LINE>LanguageVersion languageVersion = getLanguageVersion();<NEW_LINE>DFAGraphRule dfaGraphRule = languageVersion.getLanguageVersionHandler().getDFAGraphRule();<NEW_LINE>if (dfaGraphRule != null) {<NEW_LINE>final RuleSet rs = RuleSet.forSingleRule(dfaGraphRule);<NEW_LIN... | new RuleSets(rs), ctx); |
521,456 | public static void main(String[] args) {<NEW_LINE>BufferedImage image = UtilImageIO.loadImageNotNull(UtilIO.pathExample("simple_objects.jpg"));<NEW_LINE>GrayU8 gray = ConvertBufferedImage.convertFrom(image, (GrayU8) null);<NEW_LINE>GrayU8 edgeImage = gray.createSameShape();<NEW_LINE>// Create a canny edge detector whic... | showWindow(panel, "Canny Edge", true); |
1,013,409 | private void configureJackson(ObjectMapper objectMapper, Config config) {<NEW_LINE>Stream.of(DeserializationFeature.values()).forEach(df -> config.get(configName(df.name())).asBoolean().ifPresent(val -> objectMapper.configure(df, val)));<NEW_LINE>Stream.of(SerializationFeature.values()).forEach(sf -> config.get(configN... | configure(mf, val))); |
1,272,882 | protected void ownThreadJob(Object... objects) {<NEW_LINE>MySQLResponseService sqlResponseService = (MySQLResponseService) objects[0];<NEW_LINE>recordElapsedTime("local group by thread is start:");<NEW_LINE>try {<NEW_LINE>int eofCount = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>RowDataPacket row = outQueue.take();<NEW_LINE>if ... | String msg = e.getLocalizedMessage(); |
711,051 | private void modifyTopology() {<NEW_LINE>List<StoreDefinition> newStoreDefinitions = this.newAdminClient.metadataMgmtOps.getRemoteStoreDefList().getValue();<NEW_LINE>String updatedClusterXML = updateClusterXML();<NEW_LINE>String storesXML = new StoreDefinitionsMapper().writeStoreList(storeDefinitions);<NEW_LINE>List<In... | storeMgmtOps.addStore(def, newNodeIdAsList); |
733,142 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite parentComposite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite composite = new Composite(parentComposite, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginHeight = 10;<NEW_LINE>layout.marginWidth =... | Button(actionsComposite, SWT.PUSH); |
939,436 | final ListProvisioningArtifactsForServiceActionResult executeListProvisioningArtifactsForServiceAction(ListProvisioningArtifactsForServiceActionRequest listProvisioningArtifactsForServiceActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProvisioningArtifactsForServiceActionRequest... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
269,745 | protected static Request toNettyRequest(URI baseUrl, int readTimeout, int requestTimeout, Credentials credentials, HttpRequest request) {<NEW_LINE>String rawUrl = getRawUrl(<MASK><NEW_LINE>RequestBuilder builder = request(request.getMethod().toString(), rawUrl).setReadTimeout(readTimeout).setRequestTimeout(requestTimeo... | baseUrl, request.getUri()); |
1,459,608 | public static Path switchVolume(String path, FileType ft, List<Pair<Path, Path>> replacements) {<NEW_LINE>if (replacements.isEmpty()) {<NEW_LINE>log.trace("Not switching volume because there are no replacements");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Path p = new Path(path);<NEW_LINE>// removing slash because new ... | removeTrailingSlash(pair.getFirst()); |
1,453,344 | public void got(final JSONValue json) {<NEW_LINE>final JSONObject bd = json.isObject();<NEW_LINE>final JSONString shortrev = bd.get("short_revision").isString();<NEW_LINE>final JSONString status = bd.get("repo_status").isString();<NEW_LINE>final JSONString stamp = bd.get("timestamp").isString();<NEW_LINE>final JSONStri... | get("user").isString(); |
576,910 | public void encodeMarkup(FacesContext context, Ring ring) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE><MASK><NEW_LINE>String styleClass = ring.getStyleClass();<NEW_LINE>styleClass = styleClass == null ? Ring.STYLE_CLASS : Ring.STYLE_CLASS + " " + ring.getStyleClass();<NEW... | String style = ring.getStyle(); |
1,633,609 | public Pair<Double, Double> calculateContaminationFromHoms(final List<PileupSummary> tumorSites) {<NEW_LINE>for (double minMaf = INITIAL_MAF_THRESHOLD; minMaf >= 0; minMaf -= MAF_STEP_SIZE) {<NEW_LINE>final Pair<Double, Double> result;<NEW_LINE>if (minMaf > MAF_TO_SWITCH_TO_HOM_REF) {<NEW_LINE>result = calculateContami... | Strategy.UNSCRUPULOUS_HOM_REF, tumorSites, 0); |
1,499,374 | Properties adminClientProperties() {<NEW_LINE>Properties kafkaClientProps = new Properties();<NEW_LINE>kafkaClientProps.setProperty(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, config.get(Config.KAFKA_BOOTSTRAP_SERVERS));<NEW_LINE>kafkaClientProps.setProperty(StreamsConfig.APPLICATION_ID_CONFIG, config.get(Config.APPLIC... | .get(Config.TLS_TRUSTSTORE_PASSWORD)); |
1,844,018 | public void classConstant(VariableReader receiver, ValueType cst) {<NEW_LINE>DependencyNode node = getNode(receiver);<NEW_LINE>if (node != null) {<NEW_LINE>node.propagate(getAnalyzer().getType("java.lang.Class"));<NEW_LINE>if (!(cst instanceof ValueType.Primitive)) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW... | (sb.toString())); |
396,214 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Project project = call.rel(0);<NEW_LINE>final Join topJoin = call.rel(1);<NEW_LINE>final Join bottomJoin = call.rel(2);<NEW_LINE>int leftBottomChildSize = bottomJoin.getLeft().getRowType().getFieldCount();<NEW_LINE>// Check whether the project uses columns in th... | collect(Collectors.toList()); |
1,734,919 | protected void initialize() {<NEW_LINE>this.acceptLanguage = "en-US";<NEW_LINE>this.longRunningOperationRetryTimeout = 30;<NEW_LINE>this.generateClientRequestId = true;<NEW_LINE>this.features = new FeaturesImpl(restClient().retrofit(), this);<NEW_LINE>this.examples = new ExamplesImpl(restClient().retrofit(), this);<NEW... | ).retrofit(), this); |
101,013 | public void decode(BitReader _in, ICSInfo info, Profile profile) throws AACException {<NEW_LINE>lag = 0;<NEW_LINE>if (profile.equals(Profile.AAC_LD)) {<NEW_LINE>lagUpdate = _in.readBool();<NEW_LINE>if (lagUpdate)<NEW_LINE>lag = _in.readNBit(10);<NEW_LINE>} else<NEW_LINE>lag = _in.readNBit(11);<NEW_LINE>if (lag > (frame... | int windowCount = info.getWindowCount(); |
287,954 | public com.amazonaws.services.codedeploy.model.IamArnRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.IamArnRequiredException iamArnRequiredException = new com.amazonaws.services.codedeploy.model.IamArnRequiredException(null);<N... | JsonToken token = context.getCurrentToken(); |
272,355 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Intent intent = getIntent();<NEW_LINE>String action = intent.getAction();<NEW_LINE>Log.<MASK><NEW_LINE>if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {<NEW_LINE>Log.d(TAG, "NDEF discovered");<NEW_LINE>Parcelab... | d(TAG, "onCreate: action=" + action); |
893,850 | protected void presentClickableLabel(ToolWindow toolWindow, List<LabelInput> labels) {<NEW_LINE>final JPanel panel = new JPanel(new GridLayout(0, 1));<NEW_LINE>for (LabelInput input : labels) {<NEW_LINE>if (input.listener == null) {<NEW_LINE>final JLabel descriptionLabel = new JLabel(<MASK><NEW_LINE>descriptionLabel.se... | "<html>" + input.text + "</html>"); |
507,030 | public void onError(Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE><MASK><NEW_LINE>killTopologyWithOpts_result result = new killTopologyWithOpts_result();<NEW_LINE>if (e instanceof NotAliveException) {<NEW_LINE>result.e = (NotAliveException) e;<NEW_LINE>result.set_e_isSet... | org.apache.thrift.TBase msg; |
670,236 | public UiFsModel resourceResourceIdGet(String resourceId, String cookie, String ifNoneMatch, String downloadURIValidity, String fields, Integer length, Integer offset, List<String> option, String sort) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'resourceId' ... | String[] localVarAccepts = { "application/json;charset=utf-8" }; |
1,333,339 | private void resetURL(boolean isSource, String newURL) {<NEW_LINE>String vendor = null;<NEW_LINE>String host = null;<NEW_LINE>String port = null;<NEW_LINE>String name = null;<NEW_LINE>String result = null;<NEW_LINE>if (isSource) {<NEW_LINE>// set source url<NEW_LINE>if (newURL == null) {<NEW_LINE>// use parameter value... | .getSelectedItem().toString(); |
1,496,833 | protected void performAction(Node[] activatedNodes) {<NEW_LINE>for (Node activatedNode : activatedNodes) {<NEW_LINE>Object node = activatedNode.getLookup().lookup(WildflyManagerNode.class);<NEW_LINE>if (!(node instanceof WildflyManagerNode)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>WildflyDeploymentManager dm = ((<MASK... | WildflyManagerNode) node).getDeploymentManager(); |
598,528 | public DataPoint transform(DataPoint dp) {<NEW_LINE>Vec x = dp.getNumericalValues();<NEW_LINE>int[] setTo = new int[x.length()];<NEW_LINE>// TODO compute final size directly isntead of doing a pre loop<NEW_LINE>int finalSize = 0;<NEW_LINE>int curCount = increment(setTo, degree, 0);<NEW_LINE>do {<NEW_LINE>finalSize++;<N... | Arrays.fill(setTo, 0); |
1,006,629 | public boolean showDialog() {<NEW_LINE>String id = panel.getId();<NEW_LINE><MASK><NEW_LINE>if (className != null) {<NEW_LINE>classNameTextField.setEditable(false);<NEW_LINE>} else {<NEW_LINE>// NOI18N<NEW_LINE>className = "";<NEW_LINE>}<NEW_LINE>idTextField.setText(id);<NEW_LINE>classNameTextField.setText(className);<N... | String className = panel.getClassName(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.