idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,409,346
public static HashMap<String, RuleType> readIFWRules(@NonNull InputStream inputStream, @NonNull String packageName) {<NEW_LINE>HashMap<String, RuleType> rules = new HashMap<>();<NEW_LINE>XmlPullParser parser = Xml.newPullParser();<NEW_LINE>try {<NEW_LINE>parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false...
String name = parser.getName();
584,766
public NetworkModule createNetworkModule(URI brokerUri, MqttConnectionOptions options, String clientId) throws MqttException {<NEW_LINE><MASK><NEW_LINE>// -1 if not defined<NEW_LINE>int port = brokerUri.getPort();<NEW_LINE>if (port == -1) {<NEW_LINE>port = 1883;<NEW_LINE>}<NEW_LINE>String path = brokerUri.getPath();<NE...
String host = brokerUri.getHost();
573,135
public void alias(Append writer, String shortName) {<NEW_LINE>writer.append(" companion object {").eol();<NEW_LINE>writer.append(" /**").eol();<NEW_LINE>writer.append(" * shared 'Alias' instance used to provide").eol();<NEW_LINE>writer.append(" * properties to select and fetch clauses").eol();<NEW_LINE>writ...
append(" */").eol();
125,808
private void definePackageLevelVariables(DataInputStream dataInStream) throws IOException {<NEW_LINE>// Read and ignore the kind as it is anyway global variable<NEW_LINE>dataInStream.readByte();<NEW_LINE>String varName = getStringCPEntryValue(dataInStream);<NEW_LINE>var flags = dataInStream.readLong();<NEW_LINE>byte or...
= this.env.pkgSymbol.scope;
1,052,119
public static void convolve5(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final <MASK><NEW_LINE>final int kernelRadius = kernel.getRadius();<NEW_LINE>// CONCURRENT_BELOW BoofConcur...
int height = src.getHeight();
174,083
public static QueryAccountTransactionDetailsResponse unmarshall(QueryAccountTransactionDetailsResponse queryAccountTransactionDetailsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAccountTransactionDetailsResponse.setRequestId<MASK><NEW_LINE>queryAccountTransactionDetailsResponse.setCode(_ctx.stringValue("QueryAcc...
(_ctx.stringValue("QueryAccountTransactionDetailsResponse.RequestId"));
984,495
// SSLv3 https://tools.ietf.org/html/rfc6101#section-5.2<NEW_LINE>// TLSv1.0 https://tools.ietf.org/html/rfc2246<NEW_LINE>// TLSv1.1 https://tools.ietf.org/html/rfc4346#section-6.2<NEW_LINE>// TLSv1.2 https://tools.ietf.org/html/rfc5246#section-6.2<NEW_LINE>// TLSv1.3 https://tools.ietf.org/html/rfc8446#section-5.1<NEW...
0 && protocolBytes[2] <= 3;
803,440
public static DescribeNetworkPackagesResponse unmarshall(DescribeNetworkPackagesResponse describeNetworkPackagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNetworkPackagesResponse.setRequestId(_ctx.stringValue("DescribeNetworkPackagesResponse.RequestId"));<NEW_LINE>describeNetworkPackagesResponse.setNextToke...
(_ctx.stringValue("DescribeNetworkPackagesResponse.NextToken"));
1,176,657
void executeDeletePendingGroupMembership(ResourceContext ctx, final String domainName, final String groupName, final String normalizedMember, final String auditRef) {<NEW_LINE>// our exception handling code does the check for retry count<NEW_LINE>// and throws the exception it had received when the retry<NEW_LINE>// co...
final String principal = getPrincipalName(ctx);
1,503,318
public static StatementExecutorResponse execute(final ConfiguredStatement<ListProperties> statement, final SessionProperties sessionProperties, final KsqlExecutionContext executionContext, final ServiceContext serviceContext) {<NEW_LINE>final KsqlConfigResolver resolver = new KsqlConfigResolver();<NEW_LINE>final Map<St...
Property> mergedProperties = mergedProperties(statement);
541,210
public com.amazonaws.services.rdsdata.model.NotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.rdsdata.model.NotFoundException notFoundException = new com.amazonaws.services.rdsdata.model.NotFoundException(null);<NEW_LINE>int originalDepth = conte...
JsonToken token = context.getCurrentToken();
791,830
private void invokeConnectToBluetoothDevice() {<NEW_LINE>if (BuildConfig.BUILD_TYPE == "light") {<NEW_LINE>AlertDialog infoDialog = new AlertDialog.Builder(this).setMessage(Html.fromHtml(getResources().getString(R.string.label_upgrade_to_openScale_pro) + "<br><br> <a href=\"https://play.google.com/store/apps/details?id...
OpenScale openScale = OpenScale.getInstance();
1,035,556
public void run() {<NEW_LINE>MapPack pack = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>pack = (MapPack) tcp.getSingle(requestCmd, param);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>} finally {<NEW_LINE>TcpProxy.putTcpProxy(tcp);<NEW_LINE>}<NEW_LINE...
(keyList.get(i));
1,061,294
public final int handle(String[] args, int startIndex) {<NEW_LINE>// A command line argument corresponding to an enum option has a parameter<NEW_LINE>// (the desired value), will be at startIndex + 1.<NEW_LINE>int optionValueIndex = startIndex + 1;<NEW_LINE>if (optionValueIndex < args.length) {<NEW_LINE>String value = ...
"%s is not a valid option for %s\n", value, getTag());
495,019
public PhysicalPlan generateLoadConfigurationPlan(LoadConfigurationOperatorType type) throws QueryProcessException {<NEW_LINE>if (type == LoadConfigurationOperatorType.GLOBAL) {<NEW_LINE>Properties[] properties = new Properties[2];<NEW_LINE>properties[0] = new Properties();<NEW_LINE>URL iotdbEnginePropertiesUrl = IoTDB...
error("Fail to read iotdb-cluster config file {}", clusterPropertiesUrl, e);
30,916
public okhttp3.Call subscribeToAlertsCall(AlertsSubscriptionDTO alertsSubscriptionDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = alertsSubscriptionDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/alert-subscriptions";<NEW_LINE>List<Pair> localVa...
localVarHeaderParams.put("Accept", localVarAccept);
1,021,439
final GetOriginRequestPolicyConfigResult executeGetOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest getOriginRequestPolicyConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getOriginRequestPolicyConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
313,418
protected void executeImpl(CommandContext ctxt) throws CommandException {<NEW_LINE>if (!(getUser() instanceof AuthenticatedUser) || !getUser().isSuperuser()) {<NEW_LINE>throw new PermissionException(BundleUtil.getStringFromBundle("admin.api.auth.mustBeSuperUser"), this, Collections.singleton(Permission.EditDataset), da...
, ex.getLocalizedMessage()));
970,406
public static void checkOrCreateMetaInfo(Activity a) {<NEW_LINE>try {<NEW_LINE>String path = a.getIntent().getData().getPath();<NEW_LINE>LOG.d("checkOrCreateMetaInfo", path);<NEW_LINE>if (new File(path).isFile()) {<NEW_LINE>FileMeta fileMeta = AppDB.get().getOrCreate(path);<NEW_LINE>if (fileMeta.getState() != FileMetaC...
path, CacheDir.ZipApp, true);
341,333
private VisualCppInstall buildLegacyVisualCppInstall(String name, File vsPath, File basePath, VersionNumber version) {<NEW_LINE>List<ArchitectureDescriptorBuilder> architectureDescriptorBuilders = Lists.newArrayList();<NEW_LINE>architectureDescriptorBuilders.add(LEGACY_X86_ON_X86);<NEW_LINE>architectureDescriptorBuilde...
buildDescriptor(version, basePath, vsPath);
942,221
private int httpExecute(HttpEntityEnclosingRequestBase request, String data) throws IOException {<NEW_LINE>requestTimedout.setIsSatisfied(false);<NEW_LINE>Thread timer = new Thread(new Timer(execTimeout, requestTimedout));<NEW_LINE>timer.start();<NEW_LINE>int responseCode = 200;<NEW_LINE>for (int i = 0; i < headers.len...
InputStream stream = responseEntity.getContent();
1,822,286
private void fixLibraryItemsLocation(HashMap<String, JsonValue> libraryItems) {<NEW_LINE>if (libraryItems.size() == 0)<NEW_LINE>return;<NEW_LINE>// creating libraryArrayJsonString<NEW_LINE>String libraryArrayJsonString = "{";<NEW_LINE>for (JsonValue entry : libraryItems.values()) {<NEW_LINE>libraryArrayJsonString += "\...
length() - 2) + "}";
588,514
protected com.liferay.portal.model.Release update(com.liferay.portal.model.Release release) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>if (release.isNew() || release.isModified()) {<NEW_LINE>session = openSession();<NEW_LINE>if (release.isNew()) {<NEW_LINE>ReleaseHBM releaseHBM = ...
release.getPrimaryKey(), release);
1,028,155
private LookupValue convertRawFieldValueToLookupValue(final Object fieldValue) {<NEW_LINE>if (fieldValue == null) {<NEW_LINE>return null;<NEW_LINE>} else if (fieldValue instanceof LookupValue) {<NEW_LINE>return (LookupValue) fieldValue;<NEW_LINE>} else if (fieldValue instanceof LocalDate) {<NEW_LINE><MASK><NEW_LINE>ret...
final LocalDate date = (LocalDate) fieldValue;
507,886
private void emitQueryTimeEvent(ServiceMetricEvent event) {<NEW_LINE>Context opentelemetryContext = propagator.extract(Context.current(), event, DRUID_CONTEXT_TEXT_MAP_GETTER);<NEW_LINE>try (Scope scope = opentelemetryContext.makeCurrent()) {<NEW_LINE>DateTime endTime = event.getCreatedTime();<NEW_LINE>DateTime startTi...
span.setStatus(StatusCode.UNSET);
602,766
private void handle(final GetVmConsoleAddressFromHostMsg msg) {<NEW_LINE>final GetVmConsoleAddressFromHostReply reply = new GetVmConsoleAddressFromHostReply();<NEW_LINE>GetVncPortCmd cmd = new GetVncPortCmd();<NEW_LINE>cmd.setVmUuid(msg.getVmInstanceUuid());<NEW_LINE>new Http<>(getConsolePortPath, cmd, GetVncPortRespon...
setProtocol(ret.getProtocol());
1,626,479
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {<NEW_LINE>List<ViewManager> <MASK><NEW_LINE>// components<NEW_LINE>managers.add(new RCTMGLCameraManager(reactApplicationContext));<NEW_LINE>managers.add(new RCTMGLMapViewManager(reactApplicationContext));<NEW_LINE>managers.add...
managers = new ArrayList<>();
863,097
public static String passwordKey(String serverName, String userName) {<NEW_LINE>StringBuilder pwKey = new StringBuilder(KEYRING_NAME_SPACE.length() + KEYRING_NAME_SEPARATOR.length() + PayaraModule.PASSWORD_ATTR.length() + KEYRING_IDENT_SEPARATOR.length() + (serverName != null ? serverName.length() : 0) + KEYRING_IDENT_...
userName != null ? userName : "");
481,671
public Mono<ActionDTO> moveAction(ActionMoveDTO actionMoveDTO, String branchName) {<NEW_LINE>// As client only have default page Id it will be sent under action and not the action.defaultResources<NEW_LINE>Mono<String> toPageMono = newPageService.findByBranchNameAndDefaultPageId(branchName, actionMoveDTO.getDestination...
).map(responseUtils::updateActionDTOWithDefaultResources);
1,251,815
final StopTrainingEntityRecognizerResult executeStopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopTrainingEntityRecognizerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
724,535
public Mono<OffsetDateTime> renewMessageLock(String lockToken, String associatedLinkName) {<NEW_LINE>return isAuthorized(OPERATION_PEEK).then(createChannel.flatMap(channel -> {<NEW_LINE>final Message requestMessage = createManagementMessage(ManagementConstants.OPERATION_RENEW_LOCK, associatedLinkName);<NEW_LINE>final M...
requestBody = new HashMap<>();
1,131,589
public Set<Header> renderEventMessageHeaders(TemplateEngine engine, Set<io.github.microcks.domain.Header> headers) {<NEW_LINE>if (headers != null && !headers.isEmpty()) {<NEW_LINE>Set<Header> renderedHeaders = new HashSet<>(headers.size());<NEW_LINE>for (io.github.microcks.domain.Header header : headers) {<NEW_LINE>// ...
, firstValue.getBytes()));
1,334,647
public void start(FlinkInfo flinkInfo) throws IOException {<NEW_LINE>String jobId = flinkInfo.getJobId();<NEW_LINE>// Start a new task without savepoint<NEW_LINE>if (StringUtils.isEmpty(jobId)) {<NEW_LINE>try {<NEW_LINE>Future<?> future = TaskRunService.submit(new IntergrationTaskRunner(flinkService, flinkInfo, TaskCom...
.RESUME.getCode()));
1,566,907
public void send(HippyMap param) {<NEW_LINE>if (param == null) {<NEW_LINE>LogUtils.d(TAG, "send: ERROR: request is null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!param.containsKey(PARAM_KEY_SOCKET_ID)) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int socketId = param.getInt(PARAM_KEY_SOCKET_ID);<NEW_LINE>W...
LogUtils.d(TAG, "send: ERROR: no socket id specified");
1,302,421
public boolean isOverloaded(List<VariableReference> parameters) {<NEW_LINE>String methodName = getName();<NEW_LINE>Class<?> declaringClass = method.getDeclaringClass();<NEW_LINE>Class<?>[] parameterTypes = method.getParameterTypes();<NEW_LINE>boolean isExact = true;<NEW_LINE>Class<?>[] parameterClasses = new Class<?>[p...
parameter = parameters.get(num);
1,228,168
public void invoke(FunqyServerRequest request, FunqyServerResponse response) {<NEW_LINE>Object[] args = null;<NEW_LINE>if (parameterInjectors != null) {<NEW_LINE>args = new Object[parameterInjectors.size()];<NEW_LINE>int i = 0;<NEW_LINE>for (ValueInjector injector : parameterInjectors) {<NEW_LINE>args[i++] = injector.e...
ApplicationException(e.getCause());
1,174,646
public ORawBuffer readRecordIfVersionIsNotLatest(final long clusterPosition, final int recordVersion) throws IOException, ORecordNotFoundException {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final OAtomicOperation atomicOperation = atomi...
id + " and position " + clusterPosition + " is absent.");
1,197,179
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletResponse httpResponse = (HttpServletResponse) response;<NEW_LINE>try {<NEW_LINE>HttpSession session = ((HttpServletRequest) request).getSession(false);<NEW_LINE>Long userI...
getPermissionsManager().checkUserEnabled(userId);
1,754,898
private static void addDatasetRules(Digester digester) {<NEW_LINE>String subDatasetPattern = "jasperReport/" + JRXmlConstants.ELEMENT_subDataset;<NEW_LINE>digester.addFactoryCreate(subDatasetPattern, JRDatasetFactory.class.getName());<NEW_LINE>digester.addSetNext(subDatasetPattern, "addDataset", JRDesignDataset.class.g...
DesignReturnValue.class.getName());
618,387
public Sequence union(Expression[] exps, Context ctx) {<NEW_LINE>ListBase1 mems = this.mems;<NEW_LINE>int size = mems.size();<NEW_LINE>if (size < 1) {<NEW_LINE>return new Sequence(0);<NEW_LINE>}<NEW_LINE>Object <MASK><NEW_LINE>Sequence result;<NEW_LINE>if (obj instanceof Sequence) {<NEW_LINE>result = (Sequence) obj;<NE...
obj = mems.get(1);
1,438,804
private void initFromEquinoxAD() {<NEW_LINE>EquinoxAttributeDefinition delegate = (EquinoxAttributeDefinition) this.delegate;<NEW_LINE>Set<String> supportedExtensions = delegate.getExtensionUris();<NEW_LINE>if (supportedExtensions != null && supportedExtensions.contains(XMLConfigConstants.METATYPE_EXTENSION_URI)) {<NEW...
UI_REFERENCE).split("[, ]+"));
1,187,232
public void handleCommand(InsteonPLMBindingConfig conf, Command cmd, InsteonDevice dev) {<NEW_LINE>try {<NEW_LINE>PercentType pc = (PercentType) cmd;<NEW_LINE>double ramptime = getRampTime(conf, 0);<NEW_LINE>int level = pc.intValue();<NEW_LINE>if (level > 0) {<NEW_LINE>// make light on message with given level<NEW_LINE...
dev.enqueueMessage(m, m_feature);
1,192,837
public <A> double[] dependence(NumberArrayAdapter<?, A> adapter, List<? extends A> data) {<NEW_LINE>final int dims = data.size(), len = <MASK><NEW_LINE>double[][] dMatrix = new double[dims][];<NEW_LINE>for (int i = 0; i < dims; i++) {<NEW_LINE>dMatrix[i] = computeDistances(adapter, data.get(i));<NEW_LINE>}<NEW_LINE>dou...
Utils.size(adapter, data);
53,396
private static ValidationResult validateFormatStringParameter(ExpressionTree formatStringTree, Symbol formatStringSymbol, List<? extends ExpressionTree> args, VisitorState state) {<NEW_LINE>if (!isFormatStringParameter(formatStringSymbol, state)) {<NEW_LINE>return ValidationResult.create(null, String.format("Format str...
> ownerFormatArgTypes = ownerFormatArgTypesBuilder.build();
1,520,315
private String importAlbum(PhotoAlbum album, TokensAndUrlAuthData authData) throws IOException {<NEW_LINE>String description = album.getDescription();<NEW_LINE>Request.Builder requestBuilder = new Request.Builder().url(CREATE_ALBUM_URL);<NEW_LINE>requestBuilder.header("Authorization", "Bearer " + authData.getAccessToke...
"title", album.getName());
1,847,872
static void generateBgpCommonPeerConfig(Configuration c, FrrVendorConfiguration vc, FrrConfiguration frr, BgpNeighbor neighbor, @Nullable Long localAs, BgpVrf bgpVrf, org.batfish.datamodel.BgpProcess newProc, BgpPeerConfig.Builder<?, ?> peerConfigBuilder, Warnings w) {<NEW_LINE>// precondition<NEW_LINE><MASK><NEW_LINE>...
assert neighbor.getRemoteAs() != null;
599,156
final DBClusterParameterGroup executeCreateDBClusterParameterGroup(CreateDBClusterParameterGroupRequest createDBClusterParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDBClusterParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAw...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,844,517
private void _deleteChildrenAssetsFromFolder(Folder folder, User user, boolean respectFrontEndPermissions) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>try {<NEW_LINE>ContentletAPI capi = APILocator.getContentletAPI();<NEW_LINE>List<Contentlet> conList = capi.findContentletsByFolder(folde...
), ident.getURI());
925,595
public static void propagateError(String errorCode, ActivityExecution execution) {<NEW_LINE>while (execution != null) {<NEW_LINE>String <MASK><NEW_LINE>if (eventHandlerId != null) {<NEW_LINE>executeCatch(eventHandlerId, execution, errorCode);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>if (execution.isProcessInstanceType()) {<...
eventHandlerId = findLocalErrorEventHandler(execution, errorCode);
1,336,492
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.client.cassandra.CassandraClientBase#delete(java.lang.Object,<NEW_LINE>* java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void delete(Object entity, Object pKey) {<NEW_LINE>if (!isOpen()) {<NEW_LINE>throw new PersistenceExcept...
tableName, metadata, getConsistencyLevel());
427,088
public ExponentialHistogramAccumulation diff(ExponentialHistogramAccumulation previousCumulative, ExponentialHistogramAccumulation currentCumulative) {<NEW_LINE>double sum = currentCumulative.getSum() - previousCumulative.getSum();<NEW_LINE>long zeroCount = currentCumulative.getZeroCount() - previousCumulative.getZeroC...
), negBuckets.getScale());
1,432,148
private void addInfosAndMonitorSpan(@NonNull final String topicName, @NonNull final Event event) {<NEW_LINE>final Builder eventToSendBuilder = event.toBuilder();<NEW_LINE>final SpanMetadata request = // allow perfMonService to inject properties into the event which enable distributed tracing<NEW_LINE>SpanMetadata.build...
.build()), request);
1,420,225
public void deactivate() throws ServiceRuntimeException {<NEW_LINE>Object target = service.getTarget();<NEW_LINE>if (target == null) {<NEW_LINE>throw new ServiceRuntimeException(ErrorCode.convert("01-00000"));<NEW_LINE>}<NEW_LINE>if (service.hasBinding()) {<NEW_LINE>boolean allPassed = true;<NEW_LINE>Set<Binding> bindi...
getBindingAdapter(binding.getBindingType());
140,021
private static SessionFactory createSessionFactory() {<NEW_LINE>Map<String, String> settings = new HashMap<>();<NEW_LINE>settings.put(URL, System.getenv("DB_URL"));<NEW_LINE>settings.put(DIALECT, "org.hibernate.dialect.PostgreSQLDialect");<NEW_LINE>settings.put(DEFAULT_SCHEMA, "shipping");<NEW_LINE>settings.put(DRIVER,...
, System.getenv("DB_USER"));
1,530,762
public Optional<String> checkValue(String value) {<NEW_LINE>if (StringUtil.isBlank(value)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>String valueTrimmedAndLowerCase = value.trim().toLowerCase(Locale.ROOT);<NEW_LINE>if (valueTrimmedAndLowerCase.startsWith("and ") || valueTrimmedAndLowerCase.startsWith(",")...
(Localization.lang("should end with a name"));
1,668,052
protected void encodeLineLayout(FacesContext context, SelectOneRadio radio, List<SelectItem> selectItems) throws IOException {<NEW_LINE><MASK><NEW_LINE>Converter converter = radio.getConverter();<NEW_LINE>String name = radio.getClientId(context);<NEW_LINE>String currentValue = ComponentUtils.getValueToRender(context, r...
ResponseWriter writer = context.getResponseWriter();
1,458,770
private void fillOutContent() {<NEW_LINE>RecyclerView firstRecycleView;<NEW_LINE>RecyclerView.Adapter adapter;<NEW_LINE>TextView firstRecycleViewTitle;<NEW_LINE>LinearLayout parentView = (LinearLayout) <MASK><NEW_LINE>for (String category : MovieList.getCategories()) {<NEW_LINE>View view = getLayoutInflater().inflate(R...
findViewById(R.id.standard_view_parent);
712,876
final RetryStageExecutionResult executeRetryStageExecution(RetryStageExecutionRequest retryStageExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retryStageExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
480,777
public static <T> TableViewerColumn createLazyImageTableColumn(TableViewer viewer, String title, Function<T, String> labelProvider, Function<T, Image> imageProvider, int imageSize) {<NEW_LINE>TableViewerColumn column = createTableColumn(viewer, title);<NEW_LINE>column.setLabelProvider(new OwnerDrawLabelProvider() {<NEW...
.apply((T) element);
1,538,877
private String generateMethodSnippet(JMethod jMth) {<NEW_LINE>JavaMethod javaMethod = jMth.getJavaMethod();<NEW_LINE>MethodNode mth = javaMethod.getMethodNode();<NEW_LINE>String methodName;<NEW_LINE>String xposedMethod;<NEW_LINE>if (mth.isConstructor()) {<NEW_LINE>xposedMethod = "findAndHookConstructor";<NEW_LINE>metho...
xposedMethod, rawClassName, methodName + params);
677,827
Subject buildSubject(Jwt jwt, SignedJwt signedJwt) {<NEW_LINE>JsonWebTokenImpl principal = buildPrincipal(signedJwt);<NEW_LINE>TokenCredential.Builder builder = TokenCredential.builder();<NEW_LINE>jwt.issueTime().ifPresent(builder::issueTime);<NEW_LINE>jwt.expirationTime().ifPresent(builder::expTime);<NEW_LINE>jwt.issu...
.create(group))));
795,923
public OAuth2AccessTokenEntity createRequestingPartyToken(OAuth2Authentication o2auth, PermissionTicket ticket, Policy policy) {<NEW_LINE>OAuth2AccessTokenEntity token = new OAuth2AccessTokenEntity();<NEW_LINE>AuthenticationHolderEntity authHolder = new AuthenticationHolderEntity();<NEW_LINE>authHolder.setAuthenticatio...
config.getRqpTokenLifeTime() * 1000L);
374,504
public void run() {<NEW_LINE>Message entry;<NEW_LINE>Map<String, Logger> loggerCache = new HashMap<String, Logger>();<NEW_LINE>try {<NEW_LINE>while ((entry = logQueue.take()) != POISON_MESSAGE) {<NEW_LINE>if (entry.logger == null) {<NEW_LINE>assert entry.loggername != null;<NEW_LINE>Logger l = loggerCache.get(entry.log...
entry.level, entry.message);
1,672,797
private View initSlider(UltimateRecyclerView listview) {<NEW_LINE>final View view = LayoutInflater.from(getApplication()).inflate(R.<MASK><NEW_LINE>final ViewTreeObserver vto = listview.getViewTreeObserver();<NEW_LINE>vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {<NEW_LINE><NEW_LINE>@Targ...
layout.list_item_header, null, false);
573,106
public static DescribeDetachedBackupsResponse unmarshall(DescribeDetachedBackupsResponse describeDetachedBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDetachedBackupsResponse.setRequestId(_ctx.stringValue("DescribeDetachedBackupsResponse.RequestId"));<NEW_LINE>describeDetachedBackupsResponse.setTotalRec...
("DescribeDetachedBackupsResponse.Items[" + i + "].IsAvail"));
1,609,439
final CreateSubscriptionResult executeCreateSubscription(CreateSubscriptionRequest createSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Shield");
7,546
public void generateProjectBuildScript(String projectName, InitSettings settings, BuildScriptBuilder buildScriptBuilder) {<NEW_LINE>if (isSingleProject(settings)) {<NEW_LINE>addMavenCentral(buildScriptBuilder);<NEW_LINE>String languagePlugin = description.getPluginName();<NEW_LINE>if (languagePlugin != null) {<NEW_LINE...
buildScriptBuilder.plugin("Apply the groovy plugin to also add support for Groovy (needed for Spock)", "groovy");
387,083
private void uploadPartsInParallel(UploadPartRequestFactory requestFactory, String uploadId) {<NEW_LINE>Map<Integer, <MASK><NEW_LINE>List<Future<PartETag>> futures = new ArrayList<Future<PartETag>>();<NEW_LINE>try {<NEW_LINE>while (requestFactory.hasMoreRequests()) {<NEW_LINE>if (threadPool.isShutdown())<NEW_LINE>throw...
PartSummary> partNumbers = identifyExistingPartsForResume(uploadId);
182,862
public static void main(String[] args) {<NEW_LINE>// Generate the training data<NEW_LINE>DataSetIterator iterator = getTrainingData(batchSize, rng);<NEW_LINE>// Create the network<NEW_LINE>int numInput = 2;<NEW_LINE>int numOutputs = 1;<NEW_LINE>int nHidden = 10;<NEW_LINE>MultiLayerNetwork net = new MultiLayerNetwork(ne...
setListeners(new ScoreIterationListener(1));
1,718,866
private void addDefaultPages() {<NEW_LINE>for (Bookmark bookmark : client.getSettings().getBookmarks()) {<NEW_LINE>if (bookmark.isSeparator()) {<NEW_LINE>add(new Separator());<NEW_LINE>} else {<NEW_LINE>add(new SimpleAction(bookmark.getLabel(), a -> DesktopAPI.browse(bookmark.constructURL(client, security))));<NEW_LINE...
.getPattern()))));
1,506,241
protected Optional<String> validate(MonitoringInfo monitoringInfo) {<NEW_LINE>Optional<String> validatorResult = specValidator.validate(monitoringInfo);<NEW_LINE>if (validatorResult.isPresent()) {<NEW_LINE>return validatorResult;<NEW_LINE>}<NEW_LINE>String urn = monitoringInfo.getUrn();<NEW_LINE>if (!urn.equals(Urns.SA...
, TypeUrns.DISTRIBUTION_INT64_TYPE, type));
1,769,787
public Optional<PointOfInterest> findNearestForPortalLogic(BlockPos origin, int radius, PointOfInterestType type, PointOfInterestStorage.OccupationStatus status, Predicate<PointOfInterest> afterSortPredicate, WorldBorder worldBorder) {<NEW_LINE>// Order of the POI:<NEW_LINE>// return closest accepted POI (L2 distance)....
) && afterSortPredicate.test(poi);
1,432,511
private PutMessageResult directPutMessage(final PullLogMessage message) {<NEW_LINE>final <MASK><NEW_LINE>if (sequence < getMaxOffset()) {<NEW_LINE>return new PutMessageResult(PutMessageStatus.ALREADY_WRITTEN, null);<NEW_LINE>}<NEW_LINE>final long expectPhysicalOffset = sequence * PULL_LOG_UNIT_BYTES;<NEW_LINE>LogSegmen...
long sequence = message.getSequence();
633,783
final MergeBranchesByFastForwardResult executeMergeBranchesByFastForward(MergeBranchesByFastForwardRequest mergeBranchesByFastForwardRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(mergeBranchesByFastForwardRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
189,704
public com.amazonaws.services.servermigration.model.ReplicationJobNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.servermigration.model.ReplicationJobNotFoundException replicationJobNotFoundException = new com.amazonaws.services.servermigration...
String currentParentElement = context.getCurrentParentElement();
676,857
public static Properties serializeConfig(OpenApiConfig config, OpenAPI model) {<NEW_LINE>Properties result = new Properties();<NEW_LINE>for (ConfigField field : ConfigField.values()) {<NEW_LINE>String value = field.function.apply(config);<NEW_LINE>if (value != null) {<NEW_LINE>result.put(field.name, value);<NEW_LINE>}<...
value = config.pathServers(pathName);
327,782
protected InputStream inputStream(String name) throws java.io.FileNotFoundException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>synchronized (closeSync) {<NEW_LINE>JarFile j = reOpenJarFile();<NEW_LINE>if (j != null) {<NEW_LINE>JarEntry je = j.getJarEntry(name);<NEW_LINE>if (je != null) {<NEW_LINE>if (je....
je, (strongCache != null));
180,403
public boolean hasNext() {<NEW_LINE>if (slot != null)<NEW_LINE>return true;<NEW_LINE>if (currentPage == null)<NEW_LINE>return false;<NEW_LINE>// Set slot.<NEW_LINE>while (currentIdx >= currentPage.getCount()) {<NEW_LINE>// Move to next.<NEW_LINE>int link = currentPage.getLink();<NEW_LINE>if (link < 0) {<NEW_LINE>close(...
.getRecordBuffer().getLow();
1,323,066
public synchronized void save() throws IOException {<NEW_LINE>if (savingQueue.isEmpty())<NEW_LINE>return;<NEW_LINE>List<Product4<String, byte[], Long, Integer>> list = new ArrayList<>();<NEW_LINE>while (!savingQueue.isEmpty()) {<NEW_LINE>list.add(savingQueue.poll());<NEW_LINE>}<NEW_LINE>try (OutputStream outIndex = Fil...
channel.position(product4._3);
998,638
protected static EnumResolver _constructFor(Class<?> enumCls0, AnnotationIntrospector ai, boolean isIgnoreCase) {<NEW_LINE>final Class<Enum<?>> enumCls = _enumClass(enumCls0);<NEW_LINE>final Enum<?>[] enumConstants = _enumConstants(enumCls0);<NEW_LINE>String[] names = ai.findEnumValues(enumCls, enumConstants, new Strin...
String[names.length][];
1,699,417
private static void readBigTextStyleInformation(NotificationDetails notificationDetails, Map<String, Object> styleInformation, DefaultStyleInformation defaultStyleInformation) {<NEW_LINE>String bigText = (String) styleInformation.get(BIG_TEXT);<NEW_LINE>Boolean htmlFormatBigText = (Boolean) styleInformation.get(HTML_FO...
Boolean) styleInformation.get(HTML_FORMAT_CONTENT_TITLE);
530,931
public void showSideNavigationPrompt(View view) {<NEW_LINE>final MaterialTapTargetPrompt.Builder tapTargetPromptBuilder = new MaterialTapTargetPrompt.Builder(this).setPrimaryText(R.string.menu_prompt_title).setSecondaryText(R.string.menu_prompt_description).setContentDescription(R.string.menu_prompt_content_description...
setIcon(R.drawable.ic_menu);
1,396,546
private int rangeMinimumQueryLazy(int[] segmentTree, int[] lazy, int qlow, int qhigh, int low, int high, int pos) {<NEW_LINE>if (low > high) {<NEW_LINE>return Integer.MAX_VALUE;<NEW_LINE>}<NEW_LINE>// make sure all propagation is done at pos. If not update tree<NEW_LINE>// at pos and mark its children for lazy propagat...
, 2 * pos + 2));
78,721
public void refreshNode(Component nodeComponent) {<NEW_LINE>if (nodeComponent == null) {<NEW_LINE>throw new IllegalArgumentException("refreshNode expects a non-null argument");<NEW_LINE>}<NEW_LINE>Object node = nodeComponent.getClientProperty(KEY_OBJECT);<NEW_LINE>if (node == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
newCmp = createNode(node, depth);
1,122,575
final PutResourcePolicyResult executePutResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
1,252,581
public void logCheck(Language language, long milliseconds, int textSize, int matchCount, JLanguageTool.Mode mode) {<NEW_LINE>String langLabel = language != null ? language.getShortCode() : UNKNOWN;<NEW_LINE>String modeLabel = mode != null ? mode.name() : UNKNOWN;<NEW_LINE>checkCounter.labels(langLabel, modeLabel).inc()...
, modeLabel).observe(textSize);
1,804,771
public static void toRSS(String hostUrl, String feedLink, String title, String description, List<FeedEntryModel> entryModels, OutputStream os) throws IOException, FeedException {<NEW_LINE>SyndFeed feed = new SyndFeedImpl();<NEW_LINE>feed.setFeedType("rss_2.0");<NEW_LINE>feed.setEncoding("UTF-8");<NEW_LINE>feed.setTitle...
content.setType(entryModel.contentType);
1,368,341
public void initialize(WizardDescriptor wiz) {<NEW_LINE>this.wizardInfo = getWizardInfo(DATAFILE);<NEW_LINE>this.holder = new ResourceConfigHelperHolder();<NEW_LINE>this.helper = holder.getDataSourceHelper();<NEW_LINE>// this.wiz = wiz;<NEW_LINE>// NOI18N<NEW_LINE>wiz.putProperty("NewFileWizard_Title", NbBundle.getMess...
putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
542,808
public void parseDevices(String ipAddress, String getDevicesResponse) {<NEW_LINE>if ((getDevicesResponse == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringTokenizer st = new StringTokenizer(getDevicesResponse, "\r ,");<NEW_LINE>String configURL = ipAddress;<NEW_LINE>if (configURL == null) {<NEW_LINE>return;<NEW_LI...
String deviceType = st.nextToken();
1,247,004
public static FitData<Circle2D_F64> averageCircle_F64(List<Point2D_F64> points, @Nullable DogArray_F64 optional, @Nullable FitData<Circle2D_F64> outputStorage) {<NEW_LINE>if (outputStorage == null) {<NEW_LINE>outputStorage = new FitData<>(new Circle2D_F64());<NEW_LINE>}<NEW_LINE>if (optional == null) {<NEW_LINE>optiona...
optional.get(i) - meanR;
1,063,361
private static boolean createAndPostBlockBreakEvent(final SpongeToForgeEventData eventData) {<NEW_LINE>final ChangeBlockEvent.Pre spongeEvent = (ChangeBlockEvent.Pre) eventData.getSpongeEvent();<NEW_LINE>BlockEvent.BreakEvent forgeEvent = (BlockEvent.BreakEvent) eventData.getForgeEvent();<NEW_LINE>if (!(spongeEvent.get...
world, pos, state, player);
1,608,673
protected static String performOSAScript(File script) throws IOException {<NEW_LINE>Process osaProcess = performRuntimeExec(new String[] { "osascript", script.getPath() });<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader<MASK><NEW_LINE>String line = reader.readLine();<NEW_LINE>reader.close();<...
(osaProcess.getInputStream()));
841,194
//<NEW_LINE>// Decode 1bpp-encoded bi-color rectangle (8-bit and 24-bit versions).<NEW_LINE>//<NEW_LINE>void decodeMonoData(int x, int y, int w, int h, byte[] src, byte[] palette) {<NEW_LINE>int dx, dy, n;<NEW_LINE>int i = bitmapData.offset(x, y);<NEW_LINE>int[] pixels = bitmapData.bitmapPixels;<NEW_LINE>int rowBytes =...
src[dy * rowBytes + dx];
737,352
final AddTagsResult executeAddTags(AddTagsRequest addTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
100,797
private IndexCondition handlePointQuery(IndexCondition condition, Collection<InternalRexNode> leftMostKeyNodes, Multimap<Integer, InternalRexNode> keyOrdToNodesMap, List<RexNode> pushDownRexNodeList, List<RexNode> remainderRexNodeList) {<NEW_LINE>Optional<InternalRexNode> leftMostEqOpNode = findFirstOp(leftMostKeyNodes...
remainderRexNodeList.remove(n.node);
1,753,539
public Set<String> findClassSet(String packageName, Consumer<String> consumer) {<NEW_LINE>packageName = <MASK><NEW_LINE>try {<NEW_LINE>ClassLoader classLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>Enumeration resources = classLoader.getResources(packageName);<NEW_LINE>Set<String> result = new HashS...
packageName.replace(".", "/");
1,157,718
public CreateKeysAndCertificateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateKeysAndCertificateResult createKeysAndCertificateResult = new CreateKeysAndCertificateResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
class).unmarshall(context));
321,724
protected Object convertNumber(Number number, Class<?> valueClass) throws JRException {<NEW_LINE>Number value = null;<NEW_LINE>if (valueClass.equals(Byte.class)) {<NEW_LINE>value = number.byteValue();<NEW_LINE>} else if (valueClass.equals(Short.class)) {<NEW_LINE>value = number.shortValue();<NEW_LINE>} else if (valueCl...
valueOf(number.longValue());
924,149
private void handleShowRoutineLoad() throws AnalysisException {<NEW_LINE>ShowRoutineLoadStmt showRoutineLoadStmt = (ShowRoutineLoadStmt) stmt;<NEW_LINE>List<List<String>> rows = Lists.newArrayList();<NEW_LINE>// if job exists<NEW_LINE>List<RoutineLoadJob> routineLoadJobList;<NEW_LINE>try {<NEW_LINE>routineLoadJobList =...
AnalysisException(e.getMessage());
891,036
public void marshall(RestApi restApi, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (restApi == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(restApi.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marsh...
restApi.getCreatedDate(), CREATEDDATE_BINDING);