idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,023,953
public static CreateInstanceExResponse unmarshall(CreateInstanceExResponse createInstanceExResponse, UnmarshallerContext context) {<NEW_LINE>createInstanceExResponse.setRequestId(context.stringValue("CreateInstanceExResponse.RequestId"));<NEW_LINE>createInstanceExResponse.setSuccess(context.booleanValue("CreateInstance...
(context.stringValue("CreateInstanceExResponse.Instance.InstanceName"));
479,638
final DeleteDatasetResult executeDeleteDataset(DeleteDatasetRequest deleteDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
982,265
public RulesFacts putAssetState(AssetState<?> assetState) {<NEW_LINE>if (LOG.isLoggable(Level.FINEST)) {<NEW_LINE>LOG.finest("Fact change (UPDATE): " + assetState + " - on: " + loggingContext);<NEW_LINE>}<NEW_LINE>getAssetStates().remove(assetState);<NEW_LINE>getAssetStates().add(assetState);<NEW_LINE>// Maintain index...
()).add(assetState);
120,246
public void writePraatPitchTier(String fileName) throws IOException {<NEW_LINE>// initialize times and values:<NEW_LINE>ArrayList<Double> times = new ArrayList<Double>();<NEW_LINE>ArrayList<Double> values = new ArrayList<Double>();<NEW_LINE>// cumulative time pointer:<NEW_LINE>double time = 0;<NEW_LINE>// iterate over ...
Phone phone = phoneIterator.next();
1,839,518
private void computeAndSetBackground(List<javafx.scene.paint.Stop> stops) {<NEW_LINE>if (stops.size() == 1) {<NEW_LINE>javafx.scene.paint.Color color = stops.<MASK><NEW_LINE>platformWindow.setBackground((float) color.getRed(), (float) color.getGreen(), (float) color.getBlue());<NEW_LINE>} else if (stops.size() > 1) {<N...
get(0).getColor();
68,289
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnAddActionPerformed<NEW_LINE>NewConfigurationPanel pnl = new NewConfigurationPanel();<NEW_LINE>pnl.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(Con...
setShared(pnl.isShared());
706,641
public Optional<ExpressionProjectionSegment> convertToSQLSegment(final SqlNode sqlNode) {<NEW_LINE>if (sqlNode instanceof SqlBasicCall) {<NEW_LINE>SqlBasicCall sqlBasicCall = (SqlBasicCall) sqlNode;<NEW_LINE>if (SqlKind.AS == sqlBasicCall.getOperator().getKind() && sqlBasicCall.getOperandList().get(0) instanceof SqlNum...
() : sqlNode.toString();
102,734
private MethodDependency createMethodDep(MethodReference methodRef, MethodHolder method) {<NEW_LINE>ValueType[<MASK><NEW_LINE>int paramCount = arguments.length + 1;<NEW_LINE>DependencyNode[] parameterNodes = new DependencyNode[arguments.length + 1];<NEW_LINE>parameterNodes[0] = createParameterNode(methodRef, ValueType....
] arguments = methodRef.getParameterTypes();
1,284,524
public static File normalizeFile(File file) {<NEW_LINE>Runnable off = Log.internalLog();<NEW_LINE>try {<NEW_LINE>// taken from org.openide.util.FileUtil<NEW_LINE>if (System.getProperty("os.name").startsWith("Windows")) {<NEW_LINE>// NOI18N<NEW_LINE>// On Windows, best to canonicalize.<NEW_LINE>try {<NEW_LINE>file = fil...
File(normalized).getAbsoluteFile();
122,967
public static OutputConditionPolledFactoryForge createConditionFactory(OutputLimitSpec outputLimitSpec, StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException {<NEW_LINE>if (outputLimitSpec == null) {<NEW_LINE>throw new NullPointerException("Output condition ...
.getRate().intValue();
1,270,480
public static Suggestions create(final String command, final Collection<Suggestion> suggestions) {<NEW_LINE>if (suggestions.isEmpty()) {<NEW_LINE>return EMPTY;<NEW_LINE>}<NEW_LINE>int start = Integer.MAX_VALUE;<NEW_LINE>int end = Integer.MIN_VALUE;<NEW_LINE>for (final Suggestion suggestion : suggestions) {<NEW_LINE>sta...
= new ArrayList<>(texts);
1,366,150
private static SqlIntervalQualifier convertIntervalDatepartToSqlIntervalQualifier(String datePart) {<NEW_LINE>switch(datePart) {<NEW_LINE>case "YEAR":<NEW_LINE>return new SqlIntervalQualifier(TimeUnit.YEAR, null, SqlParserPos.ZERO);<NEW_LINE>case "MONTH":<NEW_LINE>return new SqlIntervalQualifier(TimeUnit.MONTH, null, S...
HOUR, null, SqlParserPos.ZERO);
1,191,206
private void createDataSourceProxy(ConfigurableListableBeanFactory beanFactory, String beanName, BeanDefinition originDataSource, String jdbcUrl) {<NEW_LINE>// re-register origin datasource bean<NEW_LINE>BeanDefinitionRegistry beanDefinitionRegistry = (BeanDefinitionRegistry) beanFactory;<NEW_LINE>beanDefinitionRegistr...
beanDefinitionRegistry.registerBeanDefinition(beanName, proxiedBeanDefinition);
102,061
public void membersMoved(final Set<BaseType> affectedTypes) {<NEW_LINE>// Note: we need to queue modifications to the model in the dispatcher thread, otherwise we<NEW_LINE>// interfere with the not yet completed drag and drop operation.<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<N...
(baseType).getNode());
1,477,611
private IResource loadAndAddConfDstu2(HttpServletRequest theServletRequest, final HomeRequest theRequest, final ModelMap theModel) {<NEW_LINE>CaptureInterceptor interceptor = new CaptureInterceptor();<NEW_LINE>GenericClient client = theRequest.newClient(theServletRequest, getContext(theRequest), myConfig, interceptor);...
resourceCounts = new HashMap<>();
1,388,380
public void executeFix(final String endpointId) throws DotDataException, DotSecurityException {<NEW_LINE>// remove from the index all the content under each conflicted host<NEW_LINE>final DotConnect dc = new DotConnect().setSQL("SELECT remote_working_inode, local_working_inode, remote_live_inode, local_live_inode," + "...
String) result.get("local_identifier");
117,844
public static LimitOrder adaptUserTradesToOrderStatus(String orderId, PoloniexUserTrade[] poloniexUserTrades) {<NEW_LINE>if (poloniexUserTrades.length == 0)<NEW_LINE>return null;<NEW_LINE>OrderType orderType = null;<NEW_LINE>CurrencyPair currencyPair = null;<NEW_LINE>BigDecimal amount = new BigDecimal(0);<NEW_LINE>List...
weightedPrices = new ArrayList<>();
1,723,387
public void buildStages(Stage primaryStage, ResourceBundle resourceBundle) throws Exception {<NEW_LINE>int width = 800, height = 459;<NEW_LINE>window = primaryStage;<NEW_LINE>Parent root = FXMLLoader.load(getClass().getResource("/main.fxml"), resourceBundle);<NEW_LINE>window.setTitle("LibRec V2.0");<NEW_LINE>mainScene ...
Scene(root, width, height);
411,690
private Mono<Response<EventSourceListResponseInner>> listByEnvironmentWithResponseAsync(String resourceGroupName, 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 cann...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
615,034
public MultiLayerNetwork clone() {<NEW_LINE>if (!initCalled)<NEW_LINE>init();<NEW_LINE>MultiLayerConfiguration conf <MASK><NEW_LINE>MultiLayerNetwork ret = new MultiLayerNetwork(conf);<NEW_LINE>ret.init(this.params().dup(), false);<NEW_LINE>if (solver != null) {<NEW_LINE>// If solver is null: updater hasn't been initi...
= this.layerWiseConfigurations.clone();
1,444,786
static List<SpecModelValidationError> validateMountSpecModel(MountSpecModel specModel) {<NEW_LINE>List<SpecModelValidationError> validationErrors = new ArrayList<>();<NEW_LINE>validationErrors.addAll(validateMethods(specModel, DelegateMethodDescriptions.MOUNT_SPEC_DELEGATE_METHODS_MAP, DelegateMethodDescriptions.INTER_...
getMethodModelWithAnnotation(specModel, OnCreateMountContent.class);
1,538,621
public static Object fetch(String id) {<NEW_LINE>try {<NEW_LINE>checkCapabilities();<NEW_LINE>Logger.D(TAG, "fetch(id)");<NEW_LINE>ContentResolver r = getContentResolver();<NEW_LINE>Uri uri = ContentUris.withAppendedId(EVENTS_URI, Long.parseLong(id));<NEW_LINE>final Cursor eventCursor = r.query(uri, new String[] { EVEN...
Logger.E(TAG, e);
245,543
public GetServiceTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetServiceTemplateResult getServiceTemplateResult = new GetServiceTemplateResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
1,581,884
public static void drawNumbers(Graphics2D g2, List<PointIndex2D_F64> foundTarget, @Nullable Point2Transform2_F32 transform, double scale) {<NEW_LINE>Font regular = new Font("Serif", Font.PLAIN, 16);<NEW_LINE>g2.setFont(regular);<NEW_LINE>g2.setStroke(new BasicStroke(2));<NEW_LINE>FontRenderContext frc = g2.getFontRende...
g2.setColor(Color.BLACK);
1,226,370
public Request<ListSnapshotsInRecycleBinRequest> marshall(ListSnapshotsInRecycleBinRequest listSnapshotsInRecycleBinRequest) {<NEW_LINE>if (listSnapshotsInRecycleBinRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListSnapshotsInRecycleBin...
request.addParameter("Action", "ListSnapshotsInRecycleBin");
1,025,938
public int compareAngularDirection(HalfEdge e) {<NEW_LINE>double dx = directionX();<NEW_LINE>double dy = directionY();<NEW_LINE>double dx2 = e.directionX();<NEW_LINE>double dy2 = e.directionY();<NEW_LINE>// same vector<NEW_LINE>if (dx == dx2 && dy == dy2)<NEW_LINE>return 0;<NEW_LINE>int quadrant = Quadrant.quadrant(dx,...
e.orig, dir2, dir1);
252,782
protected void masterOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageFeatureResponse> listener) {<NEW_LINE>EqlStatsRequest eqlRequest = new EqlStatsRequest();<NEW_LINE>eqlRequest.includeStats(true);<NEW_LINE>eqlRequest.setParentTask(clusterService.localNode().getId(), task.g...
collect(Collectors.toList());
1,825,333
public Optional<BibEntry> performSearchById(String identifier) throws FetcherException {<NEW_LINE>if (StringUtil.isBlank(identifier)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>// remove any newlines and spaces.<NEW_LINE>identifier = NEWLINE_SPACE_PATTERN.matcher(identifier).replaceAll("");<NEW_LINE>IsbnVi...
IsbnViaOttoBibFetcher isbnViaOttoBibFetcher = new IsbnViaOttoBibFetcher(importFormatPreferences);
1,643,251
private JSONObject copy(JSONObject params) throws ServletException {<NEW_LINE>try {<NEW_LINE>JSONArray paths = ((JSONArray) params.get("items"));<NEW_LINE>Path newpath = Paths.get(REPOSITORY_BASE_PATH, params.getAsString("newPath"));<NEW_LINE>String newFileName = params.getAsString("singleFilename");<NEW_LINE>for (Obje...
e.getMessage(), e);
195,758
static void BuildLexStatesTable() {<NEW_LINE>Iterator<TokenProduction> it = rexprlist.iterator();<NEW_LINE>TokenProduction tp;<NEW_LINE>int i;<NEW_LINE>String[] tmpLexStateName = new String[lexstate_I2S.size()];<NEW_LINE>while (it.hasNext()) {<NEW_LINE>tp = it.next();<NEW_LINE>List<RegExprSpec> respecs = tp.respecs;<NE...
] = tp.lexStates[i];
343,031
public static CanaryDistributionStrategy toProperties(D2CanaryDistributionStrategy config) {<NEW_LINE>Map<String, Object> percentageStrategyProperties = new HashMap<>();<NEW_LINE>Map<String, Object> targetHostsStrategyProperties = new HashMap<>();<NEW_LINE>Map<String, Object> targetApplicationsStrategyProperties = new ...
TargetApplicationsStrategyProperties configTargetApplicationProperties = config.getTargetApplicationsStrategyProperties();
432,895
public String importDate(String inputDate) {<NEW_LINE>String patDate = "(" + dt + "|TODAY)(\\[(" + String.format(pat, 4, "y") + "?" + String.format(pat, 2, "M") + "?" + String.format(pat, 2, "d") + "?" + ")\\])?";<NEW_LINE>try {<NEW_LINE>if (!Strings.isNullOrEmpty(inputDate) && inputDate.matches(patDate)) {<NEW_LINE>Li...
localDate, matcher.group());
55,522
private PreviewPreset readXML(Document document) {<NEW_LINE>// For retrieving property class if it is not in the xml (old serialization)<NEW_LINE>DefaultPreset // For retrieving property class if it is not in the xml (old serialization)<NEW_LINE>defaultPreset = new DefaultPreset();<NEW_LINE>Element presetE = document.g...
propertiesMap.put(name, value);
713,086
public Tuple3<Params, Iterable<String>, Iterable<Row>> serializeModel(BaseVectorSummary modelData) {<NEW_LINE>double[] maxData;<NEW_LINE>double[] minData;<NEW_LINE>if (modelData.max() instanceof DenseVector) {<NEW_LINE>maxData = ((DenseVector) modelData.max()).getData();<NEW_LINE>} else {<NEW_LINE>maxData = ((SparseVec...
, new ArrayList<>());
1,506,883
private Mono<Response<JobStreamListResultInner>> listByJobWithResponseAsync(String resourceGroupName, String automationAccountName, UUID jobId, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required an...
error(new IllegalArgumentException("Parameter automationAccountName is required and cannot be null."));
1,090,821
private void rewriteMethodBody(MutableClass mutableClass, MethodNode callingMethod) {<NEW_LINE>ListIterator<AbstractInsnNode> instructions = callingMethod.instructions.iterator();<NEW_LINE>while (instructions.hasNext()) {<NEW_LINE>AbstractInsnNode node = instructions.next();<NEW_LINE>switch(node.getOpcode()) {<NEW_LINE...
interceptInvokeVirtualMethod(mutableClass, instructions, targetMethod);
695,155
public MigrationPlanDto generateMigrationPlan(MigrationPlanGenerationDto generationDto) {<NEW_LINE>RuntimeService runtimeService = processEngine.getRuntimeService();<NEW_LINE>String sourceProcessDefinitionId = generationDto.getSourceProcessDefinitionId();<NEW_LINE>String targetProcessDefinitionId = generationDto.getTar...
> variableDtos = generationDto.getVariables();
1,669,196
private void compareField(IBaseParameters theDiff, EncodeContextPath theSourceEncodePath, String theSourcePath, String theTargetPath, IBase theOldField, IBase theNewField, BaseRuntimeChildDefinition theChildDef) {<NEW_LINE>String elementName = theChildDef.getElementName();<NEW_LINE>boolean repeatable = theChildDef.getM...
targetValues, targetIndex, path, theChildDef);
909,279
public final int sendSSL(ContentFactory request, EbicsBank bank) throws AxelorException, IOException {<NEW_LINE>String url = bank.getUrl();<NEW_LINE>X509Certificate certificate = EbicsCertificateService.getBankCertificate(bank, EbicsCertificateRepository.TYPE_SSL);<NEW_LINE>DefaultHttpClient client = getSecuredHttpClie...
getEntity().getContent());
34,356
private byte[] asBytes(Object arg) {<NEW_LINE>// bytes like object -> use directly<NEW_LINE>if (arg instanceof PBytesLike) {<NEW_LINE>return toBytes((PBytesLike) arg);<NEW_LINE>}<NEW_LINE>// try calling __bytes__<NEW_LINE>Object attribute = lookupAttribute(arg, __BYTES__);<NEW_LINE>if (attribute != PNone.NO_VALUE) {<NE...
[] result = byteBufferAsBytesOrNull(arg);
777,852
private BinaryEntry readBinary(IndexInput meta) throws IOException {<NEW_LINE>final BinaryEntry entry = new BinaryEntry();<NEW_LINE>entry.dataOffset = meta.readLong();<NEW_LINE>entry<MASK><NEW_LINE>entry.docsWithFieldOffset = meta.readLong();<NEW_LINE>entry.docsWithFieldLength = meta.readLong();<NEW_LINE>entry.jumpTabl...
.dataLength = meta.readLong();
551,494
private void decodeQrCodeImage(Uri inputFile) {<NEW_LINE>Bitmap bitmap;<NEW_LINE>try {<NEW_LINE>BitmapFactory.Options bmOptions = new BitmapFactory.Options();<NEW_LINE>try (InputStream inputStream = getContentResolver().openInputStream(inputFile)) {<NEW_LINE>bitmap = BitmapFactory.decodeStream(inputStream, null, bmOpti...
parseUri(result.getText());
1,706,324
private static void mul(float[] mata, float[] matb) {<NEW_LINE>float v00 = mata[M00] * matb[M00] + mata[M01] * matb[M10] + mata[M02] * matb[M20];<NEW_LINE>float v01 = mata[M00] * matb[M01] + mata[M01] * matb[M11] + mata[M02] * matb[M21];<NEW_LINE>float v02 = mata[M00] * matb[M02] + mata[M01] * matb[M12] + mata<MASK><NE...
[M02] * matb[M22];
484,995
private DataGeneratorSpec buildDataGeneratorSpec(Schema schema, List<String> columns, HashMap<String, DataType> dataTypes, HashMap<String, FieldType> fieldTypes, HashMap<String, TimeUnit> timeUnits, HashMap<String, Integer> cardinality, HashMap<String, IntRange> range, HashMap<String, Map<String, Object>> pattern, Map<...
FileFormat.AVRO, _outDir, _overwrite);
1,334,223
public boolean isEnabled() {<NEW_LINE>Log.info(thisClass, "isEnabled", "testRunMode: " + testRunMode);<NEW_LINE>Log.info(thisClass, "isEnabled", "complexId: " + complexId);<NEW_LINE>Log.info(thisClass, <MASK><NEW_LINE>// allow if mode matches or mode not set<NEW_LINE>if (testRunMode != null && (TestModeFilter.FRAMEWORK...
"isEnabled", "Overall test mode: " + TestModeFilter.FRAMEWORK_TEST_MODE);
224,921
private void tunnelSucceeded(EndPoint endPoint) {<NEW_LINE>try {<NEW_LINE>HttpDestination destination = (HttpDestination) context.get(HttpClientTransport.HTTP_DESTINATION_CONTEXT_KEY);<NEW_LINE>ClientConnectionFactory connectionFactory = this.connectionFactory;<NEW_LINE>if (destination.isSecure()) {<NEW_LINE>// Don't w...
), destination.getPort());
439,153
public void parseLayoutFileDirect(final String fileName) {<NEW_LINE>handleAndroidResourceFiles(fileName, /* classes, */<NEW_LINE>null, new IResourceHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleResourceFile(final String fileName, Set<String> fileNameFilter, InputStream stream) {<NEW_LINE>// We onl...
.format("Skipping file %s in layout folder...", fileName));
356,289
private void appendLocationText(boolean selected, Color bgColor, boolean isProblemFile, String containerText) {<NEW_LINE>SimpleTextAttributes locationAttrs = SimpleTextAttributes.GRAYED_ATTRIBUTES;<NEW_LINE>if (isProblemFile) {<NEW_LINE>SimpleTextAttributes wavedAttributes = SimpleTextAttributes.merge(new SimpleTextAtt...
matcher = CONTAINER_PATTERN.matcher(containerText);
1,616,880
public Object generateCell(com.vaadin.v7.ui.Table source, Object itemId, Object columnId) {<NEW_LINE>Property property = source.getItem(itemId).getItemProperty(columnId);<NEW_LINE><MASK><NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String stringValue = value.toString();<NEW_LINE>if (columnId ...
Object value = property.getValue();
1,448,418
public void preprocessOpenAPI(OpenAPI openAPI) {<NEW_LINE>if (additionalProperties.containsKey(NPM_NAME)) {<NEW_LINE>// If no npmVersion is provided in additional properties, version from API specification is used.<NEW_LINE>// If none of them is provided then fallbacks to default version<NEW_LINE>if (additionalProperti...
(NPM_VERSION).toString());
1,487,275
public <A, B> double dependence(NumberArrayAdapter<?, A> adapter1, A data1, NumberArrayAdapter<?, B> adapter2, B data2) {<NEW_LINE>final int n = Utils.size(<MASK><NEW_LINE>assert (n > 4) : "Hoeffdings D needs at least 5 elements!";<NEW_LINE>if (n <= 4) {<NEW_LINE>return Double.NaN;<NEW_LINE>}<NEW_LINE>double[] r = Util...
adapter1, data1, adapter2, data2);
753,317
final DescribeBudgetActionHistoriesResult executeDescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest describeBudgetActionHistoriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBudgetActionHistoriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
343,561
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = DataBindingUtil.setContentView(<MASK><NEW_LINE>// create dummy item<NEW_LINE>NewsItem item = new NewsItem();<NEW_LINE>item.setHtml("<p>Interdum et malesuada <b>some bold text in here</b> fames ac ante ip...
this, R.layout.activity_data_binding_example);
846,823
private <T> Optional<T> internalGet(byte[] key, Function<byte[], T> trieRetriever, Function<byte[], T> cacheTransformer) {<NEW_LINE>ByteArrayWrapper wrapper = new ByteArrayWrapper(key);<NEW_LINE>ByteArrayWrapper accountWrapper = getAccountWrapper(wrapper);<NEW_LINE>Map<ByteArrayWrapper, byte[]> accountItems = cache.get...
(trieRetriever.apply(key));
957,197
public static Integer[] sequence(final Integer from, final Integer to, final Integer step) {<NEW_LINE>Validate.notNull(from, "Value to start the sequence from cannot be null");<NEW_LINE>Validate.notNull(to, "Value to generate the sequence up to cannot be null");<NEW_LINE>Validate.notNull(step, "Step to generate the seq...
(Integer.valueOf(i));
1,352,110
final ListPlatformApplicationsResult executeListPlatformApplications(ListPlatformApplicationsRequest listPlatformApplicationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPlatformApplicationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
244,205
private void adjustHeight(Vector3f loc, float radius, float height) {<NEW_LINE>// offset it by radius because in the loop we iterate through 2 radii<NEW_LINE>int radiusStepsX = (int) (radius / terrain.getLocalScale().x);<NEW_LINE>int radiusStepsZ = (int) (radius / terrain.getLocalScale().z);<NEW_LINE>float xStepAmount ...
new Vector2f(locX, locZ));
1,564,340
public ExecutableDdlJob toDdlJob(ExecutionContext ec) {<NEW_LINE>TableGroupConfig broadcastTg = OptimizerContext.getContext(schema).getTableGroupInfoManager().getBroadcastTableGroupConfig();<NEW_LINE>if (broadcastTg == null || CollectionUtils.isEmpty(broadcastTg.getPartitionGroupRecords())) {<NEW_LINE>return new Transi...
removedPgList = new ArrayList<>();
274,298
public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>final RedditAccount user = RedditAccountManager.getInstance(this).getDefaultAccount();<NEW_LINE>final SubredditSubscriptionState subredditSubscriptionState;<NEW_LINE>final RedditSubredditSubscriptionManager subredditSubscriptionManager = <MASK><NEW_LINE>if ...
RedditSubredditSubscriptionManager.getSingleton(this, user);
12,043
private void runAssertionInsertConsume(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyVDW.test:vdw() as SupportBean", path);<NEW_LINE>SupportVirtualDW window = (SupportVirtualDW) getFromContext(env, "/virtualdw/MyVDW");<NEW_LINE>Supp...
fieldsTwo = "val0".split(",");
1,162,364
private String createTopComponentPersistentID(TopComponent tc, String preferredID) throws IOException {<NEW_LINE>String compName = preferredID != null ? preferredID : null;<NEW_LINE>// be prepared for null names, empty names and convert to filesystem friendly name<NEW_LINE>if ((compName == null) || (compName.length() =...
escape(origName + "_" + i);
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...
setPort(ret.getPort());
782,249
private static void showUsage() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>String SEPARATOR = "---------------------------------------------------------------------------------------------------";<NEW_LINE>builder.append("JarScan [flags] --mode=<mode> [options] [params] <jars and class folders>")....
(" [--limit=n] Limit to top n results.").append(S_NEWLINE);
1,814,685
// invalidateIt<NEW_LINE>@Override<NEW_LINE>public String prepareIt() {<NEW_LINE>ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>MPeriod.testPeriodOpen(getCtx(), getDateAcct(), getC_DocTypeTarget_ID(), getAD_Org_ID());<NEW_LINE>// Lines<NEW_LINE>final MInvoiceLine[] lin...
PaymentRule.ofCode(getPaymentRule());
547,998
public void onFailure(okhttp3.Call call, final IOException e) {<NEW_LINE>String exceptionClass = e != null ? e.getClass().getCanonicalName() : "null";<NEW_LINE>String exceptionMessage = e != null ? e.getMessage() : "null";<NEW_LINE>AppLog.w(AppLog.T.API, "Network call failure trying to upload Gravatar!" + exceptionMess...
properties.put("network_exception_class", exceptionClass);
1,625,548
public boolean validate(Connection connection, int validateAction) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>boolean isValid = false;<NEW_LINE>String transactionName = "";<NEW_LINE>try {<NEW_LINE>PoolConfiguration poolConfig = getPoolProperties();<NEW_LINE>DataSourceIdentity dataSourceId = poolCo...
.buildPropertiesFromDataSourceId(dataSourceId), startTime);
1,039,507
private void init() {<NEW_LINE>exceptionUnmarshallers.add(new InvalidRequestExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers<MASK><NEW_LINE>exceptionUnmarshallers.add(new JobStatusExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new NoSuchPublicAccessBlockConfigurationExceptionUnmarshaller());<NEW...
.add(new InvalidNextTokenExceptionUnmarshaller());
1,403,940
public static Map<String, Port> combinePorts(List<KubernetesPortBuildItem> ports, PlatformConfiguration config) {<NEW_LINE>Map<String, Port> allPorts = new HashMap<>();<NEW_LINE>allPorts.putAll(verifyPorts(ports).entrySet().stream().map(e -> new PortBuilder().withName(e.getKey()).withContainerPort(e.getValue()).build()...
getName, p -> p)));
1,189,472
public PrimitiveVS<Machine> allocateMachine(Guard pc, Class<? extends Machine> machineType, Function<Integer, ? extends Machine> constructor) {<NEW_LINE>if (!machineCounters.containsKey(machineType)) {<NEW_LINE>machineCounters.put(machineType, new PrimitiveVS<>(0));<NEW_LINE>}<NEW_LINE>PrimitiveVS<Integer> guardedCount...
IntegerVS.add(guardedCount, 1);
1,562,796
public MapIterationEventDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MapIterationEventDetails mapIterationEventDetails = new MapIterationEventDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
479,352
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>setTheme(UserPreferences.getTheme());<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getSupportActionBar().setDisplayShowHomeEnabled(true);<NEW_LINE>setContentView(R.layout.bug_report);<NEW_LINE>String stacktrace = "No crash report recorded";<NEW_LINE...
ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
761,628
private void buildPerformanceTestTab(Tab tab, boolean customCell) {<NEW_LINE>GridPane grid = new GridPane();<NEW_LINE>grid.setPadding(new Insets(5, 5, 5, 5));<NEW_LINE>grid.setHgap(5);<NEW_LINE>grid.setVgap(5);<NEW_LINE>final ObservableList<List<Double>> bigData = FXCollections.observableArrayList();<NEW_LINE>TableView...
System.out.println("Done");
1,674,571
public void renderSidesBatched(@Nonnull ItemStack stack, EnergyCubeTier tier, @Nonnull PoseStack matrix, @Nonnull MultiBufferSource renderer, int light, int overlayLight, boolean hasEffect) {<NEW_LINE>Set<RelativeSide> enabledSides;<NEW_LINE>Set<RelativeSide> outputSides;<NEW_LINE>CompoundTag configData = ItemDataUtils...
EnumSet.noneOf(RelativeSide.class);
1,573,806
public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var registry = PluginsRegistryImpl.getInstance();<NEW_LINE>var path = exchange.getRequestPath();<NEW_LINE>var pi = registry.getPipelineInfo(path);<NEW_LINE>var srv = registry.getServices().stream().filter(s -> s.getName().equals(pi.getNa...
())).findAny();
1,287,171
void updateCounters() {<NEW_LINE>String counterPrifix = schema.toUpperCase() + "_";<NEW_LINE>long readBytes = 0;<NEW_LINE>long writeBytes = 0;<NEW_LINE>long readOps = 0;<NEW_LINE>long largeReadOps = 0;<NEW_LINE>long writeOps = 0;<NEW_LINE>for (FileSystem.Statistics stat : stats) {<NEW_LINE>readBytes = readBytes + stat....
, Long.toString(writeBytes));
1,346,112
void processBasicInfo() {<NEW_LINE>prj.name = (String) info.get("project_name");<NEW_LINE>prj.path = (<MASK><NEW_LINE>prj.status = (String) info.get("project_status");<NEW_LINE>prj.parentName = (String) info.get("project_parent_name");<NEW_LINE>prj.displayName = (String) info.get("project_display_name");<NEW_LINE>prj.d...
String) info.get("project_path");
28,105
private static void validateHaving(ExprNodePropOrStreamSet propertiesGroupedBy, ExprNode havingNode) throws ExprValidationException {<NEW_LINE>List<ExprAggregateNode> aggregateNodesHaving = new LinkedList<ExprAggregateNode>();<NEW_LINE>ExprAggregateNodeUtil.getAggregatesBottomUp(havingNode, aggregateNodesHaving);<NEW_L...
ExprNodeIdentifierAndStreamRefVisitor visitor = new ExprNodeIdentifierAndStreamRefVisitor(true);
57,684
public void invoke(@NotNull Project project, @NotNull PsiFile file, @Nullable("is null when called from inspection") Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) {<NEW_LINE>if (editor == null) {<NEW_LINE>LOG.error("Cannot run quick fix without editor: " + getClass().getSimpleName(), ...
getInstance().getTemplateById(myTemplateId);
931,912
private void openMessageStartEventSubscriptions(final ProcessMetadata processRecord, final StateWriter stateWriter) {<NEW_LINE>final long processDefinitionKey = processRecord.getKey();<NEW_LINE>final DeployedProcess <MASK><NEW_LINE>final ExecutableProcess process = processDefinition.getProcess();<NEW_LINE>final List<Ex...
processDefinition = processState.getProcessByKey(processDefinitionKey);
1,115,394
public ListDetectMitigationActionsExecutionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDetectMitigationActionsExecutionsResult listDetectMitigationActionsExecutionsResult = new ListDetectMitigationActionsExecutionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
class).unmarshall(context));
968,014
final GetLensReviewResult executeGetLensReview(GetLensReviewRequest getLensReviewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLensReviewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetLensReviewReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
621,635
protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>// First stroke<NEW_LINE>myFirstStrokePanel = new StrokePanel<MASK><NEW_LINE>panel.add(myFirstStrokePanel, new GridBagConstraints(0, 0, 2, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new I...
(KeyMapBundle.message("first.stroke.panel.title"));
1,450,878
protected void inject(Target target, InjectionNode node) {<NEW_LINE>if (!this.preInject(node)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (node.isReplaced()) {<NEW_LINE>throw new UnsupportedOperationException("Redirector target failure for " + this.info);<NEW_LINE>}<NEW_LINE>if (node.getCurrentTarget() instanceof Method...
this.injectAtInstanceOf(target, node);
1,576,632
public void onBindViewHolder(@NonNull final GroupsViewHolder holder, int position) {<NEW_LINE>if (position == items.size()) {<NEW_LINE>holder.groupButton.setOnClickListener(view -> {<NEW_LINE>FragmentManager fragmentManager = getFragmentManager();<NEW_LINE>DialogFragment dialogFragment = createAddCategoryDialog();<NEW_...
holder.groupButton.setImageDrawable(rectContourDrawable);
1,022,594
private static TaskAction createLinkAction(Context context, long id, String url, String text, PackageManager pm) {<NEW_LINE>Intent itemIntent = new Intent(Intent.ACTION_VIEW);<NEW_LINE>itemIntent.setData(Uri.parse(url));<NEW_LINE>List<ResolveInfo> resolveInfoList = pm.queryIntentActivities(itemIntent, 0);<NEW_LINE>Inte...
R.drawable.action_tel, r);
888,579
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String configStoreName, String keyValueName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot...
error(new IllegalArgumentException("Parameter keyValueName is required and cannot be null."));
1,120,205
public void writeProperties(java.util.Properties p) {<NEW_LINE>// better to version settings since initial version as advocated at<NEW_LINE>// http://wiki.apidesign.org/wiki/PropertyFiles<NEW_LINE>p.setProperty("version", "1.0");<NEW_LINE>ProbeSettings ps = new ProbeSettings();<NEW_LINE>ps.xyzXDistance = getDouble(this...
ps.zDistance = getDouble(zProbeDistance);
926,909
public static void main(String[] args) throws IOException {<NEW_LINE>int argIdx = 0;<NEW_LINE>Webpath inputPath = Webpath.get(args[argIdx++]);<NEW_LINE>outputPath = Webpath.get(args[argIdx++]);<NEW_LINE>Webpath jsPath = Webpath.<MASK><NEW_LINE>Path output = Paths.get(args[argIdx++]);<NEW_LINE>Path jsOutput = Paths.get(...
get(args[argIdx++]);
991,523
private DefinitionProtos.Body writeBody(ExpressionSerialization defSerializer, @NotNull Body body) {<NEW_LINE>DefinitionProtos.Body.Builder bodyBuilder = DefinitionProtos.Body.newBuilder();<NEW_LINE>if (body instanceof IntervalElim) {<NEW_LINE>IntervalElim intervalElim = (IntervalElim) body;<NEW_LINE>DefinitionProtos.B...
.Body.IntervalElim.newBuilder();
1,627,338
public static DescribeScheduledTasksResponse unmarshall(DescribeScheduledTasksResponse describeScheduledTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScheduledTasksResponse.setRequestId(_ctx.stringValue("DescribeScheduledTasksResponse.RequestId"));<NEW_LINE>describeScheduledTasksResponse.setTotalCount(_ct...
("DescribeScheduledTasksResponse.ScheduledTasks[" + i + "].TaskEnabled"));
642,025
private SpanEntry parseSpan(EnumConstantSource enumConstant, JavaEnumImpl myEnum) {<NEW_LINE>List<MemberSource<EnumConstantSource.Body, ?>> members = enumConstant.getBody().getMembers();<NEW_LINE>if (members.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String name = "";<NEW_LINE>String description = enumConst...
events = new TreeSet<>();
378,040
protected void doStart() throws Exception {<NEW_LINE>if (!client.isStarted()) {<NEW_LINE>HttpClient httpClient = getHttpClient();<NEW_LINE>ClientConnector clientConnector = this.client.getClientConnector();<NEW_LINE>clientConnector.setExecutor(httpClient.getExecutor());<NEW_LINE>clientConnector.setScheduler(httpClient....
setByteBufferPool(httpClient.getByteBufferPool());
789,539
public static void addResolverRequest(String host, HostNameToIPResolverListener l) {<NEW_LINE>byte[] bytes = textToNumericFormat(host);<NEW_LINE>if (bytes != null) {<NEW_LINE>try {<NEW_LINE>l.hostNameResolutionComplete(InetAddress.getByAddress(host, bytes));<NEW_LINE>return;<NEW_LINE>} catch (UnknownHostException e) {<...
getListener().hostNameResolutionComplete(addr);
487,169
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select " + ALL_FIELDS + " from " <MASK><NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>EventType eventType = statement.getEventType();<NEW_LINE>assertEquals(Long.class...
+ " sql:MyDBWithRetain ['select " + ALL_FIELDS + " from mytesttable where ${id} = mytesttable.mybigint'] as s0," + "SupportBean_S0 as s1";
557,287
private FileObject generateMavenTester(File testdir, String baseURL) throws IOException {<NEW_LINE>String[] replaceKeys1 = { "TTL_TEST_RESBEANS", "MSG_TEST_RESBEANS_INFO" };<NEW_LINE>String[] replaceKeys2 = { "MSG_TEST_RESBEANS_wadlErr", "MSG_TEST_RESBEANS_No_AJAX", "MSG_TEST_RESBEANS_Resource", "MSG_TEST_RESBEANS_See"...
MiscUtilities.copyFile(testdir, "collapse.gif");
1,103,798
private static void putBlock4x4(byte[] plane, int stride, int[] patch, int x, int y, int field, int step) {<NEW_LINE>stride >>= 1;<NEW_LINE>int dstride = step * stride;<NEW_LINE>int off = field * stride + (y >> 1) * dstride + (x >> 1);<NEW_LINE>for (int i = 0; i < 16; i += 4) {<NEW_LINE>plane[off] = (byte) (MathUtil.cl...
, 0, 255) - 128);
1,130,149
public String deserialize(String topic, byte[] buffer, boolean isKey) {<NEW_LINE>AvroTopicsMapping matchingConfig = findMatchingConfig(topic);<NEW_LINE>if (matchingConfig == null) {<NEW_LINE>log.debug("Avro deserialization config is not found for topic [{}]", topic);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (matchi...
("Avro deserialization is configured for topic [%s], " + "but schema is not specified neither for a key, nor for a value.", topic));
1,028,909
public void cancelFlow(ExecutableFlow exFlow, String userId) throws ExecutorManagerException {<NEW_LINE>synchronized (exFlow) {<NEW_LINE>final Map<Integer, Pair<ExecutionReference, ExecutableFlow>> unfinishedFlows = this.executorLoader.fetchUnfinishedFlows();<NEW_LINE>if (unfinishedFlows.containsKey(exFlow.getExecution...
logger.error("Exception while cancelling flow. ", eme);
1,543,266
private void initView() {<NEW_LINE>final TitleBar mTitleBar = findViewById(R.id.title_bar);<NEW_LINE>mTitleBar.setOnTitleBarClickListener(new TitleBar.OnTitleBarClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onLeftClick() {<NEW_LINE>getActivity().onBackPressed();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Over...
findViewById(R.id.tab_summary);
1,782,753
public static DescribeRisksResponse unmarshall(DescribeRisksResponse describeRisksResponse, UnmarshallerContext context) {<NEW_LINE>describeRisksResponse.setRequestId(context.stringValue("DescribeRisksResponse.RequestId"));<NEW_LINE>describeRisksResponse.setTotalCount(context.integerValue("DescribeRisksResponse.TotalCo...
("DescribeRisksResponse.Risks[" + i + "].RiskName"));