idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
672,573
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtOrigText = "@name('split') @public on SupportBean as mystream " + "insert into AStream34 select mystream.theString||'_1' as theString where intPrimitive=1 " + "insert into BStream34 select mystream.theS...
assertEqualsNew("s1", "theString", "E2_2");
1,231,316
public long writeSeeds(Path sampleSeedPath) throws Exception {<NEW_LINE>int fileNo = 0;<NEW_LINE>// total number of samples<NEW_LINE>long numTotal = this.numSamples;<NEW_LINE>// number of initial centroids<NEW_LINE>int centriodNum = genParams.length;<NEW_LINE>long numPerCluster = (long) Math.ceil(numTotal / (double) ce...
long left = numPerCluster - numFiles * SAMPLES_PER_FILE;
978,556
public static boolean extract(IPath destination) {<NEW_LINE>IPath zipExecutable = getBundlePath(ZIP_EXECUTABLE);<NEW_LINE>IPath archivePath = getBundlePath(ARCHIVE_PATH);<NEW_LINE>if (zipExecutable == null || archivePath == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>PortableGitPlugin.log("Something is missing here.");<NE...
directory(destinationFile.getParentFile());
958,935
public SimpleHttpResponse sendMultipartPostRequest(String url, String body, @Nullable Map<String, String> headers) throws IOException {<NEW_LINE>HttpPost post = new HttpPost(url);<NEW_LINE>// our handlers ignore key...so we can put anything here<NEW_LINE>MultipartEntityBuilder builder = MultipartEntityBuilder.create();...
, headers.get(key));
409,484
public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver, ValueNode sa, ValueNode sp, ValueNode da, ValueNode dp, ValueNode len) {<NEW_LINE>MetaAccessProvider metaAccess = b.getMetaAccess();<NEW_LINE>int byteArrayBaseOffset = metaAccess.getArrayBaseOffset(JavaKind.Byte);<NEW_LINE>V...
, dst, len, ISO_8859_1));
1,359,485
static TSpace avgTSpace(final TSpace tS0, final TSpace tS1) {<NEW_LINE>TSpace tsRes = new TSpace();<NEW_LINE>// this if is important. Due to floating point precision<NEW_LINE>// averaging when s0 == s1 will cause a slight difference<NEW_LINE>// which results in tangent space splits later on<NEW_LINE>if (tS0.magS == tS1...
tS0.magS + tS1.magS);
1,488,590
final ImportCertificateAuthorityCertificateResult executeImportCertificateAuthorityCertificate(ImportCertificateAuthorityCertificateRequest importCertificateAuthorityCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importCertificateAuthorityCertificateRequest);<NEW_LINE>AWSReque...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,587,647
private void deleteAllScopeJobs(ExecutionEntity scopeExecution, TimerJobEntityManager timerJobEntityManager) {<NEW_LINE>Collection<TimerJobEntity> timerJobsForExecution = timerJobEntityManager.findJobsByExecutionId(scopeExecution.getId());<NEW_LINE>for (TimerJobEntity job : timerJobsForExecution) {<NEW_LINE>timerJobEnt...
findJobsByExecutionId(scopeExecution.getId());
1,828,534
public V putIfAbsent(K key, V value) {<NEW_LINE>requireNonNull(value);<NEW_LINE>// Keep in sync with BoundedVarExpiration.putIfAbsentAsync(key, value, duration, unit)<NEW_LINE>CompletableFuture<V> priorFuture = null;<NEW_LINE>for (; ; ) {<NEW_LINE>priorFuture = (priorFuture == null) ? delegate.get(key) : delegate.getIf...
getIfReady(valueFuture) == null));
564,078
protected Set<Response> read(OperationContext context) {<NEW_LINE>Set<Response> ret;<NEW_LINE>try {<NEW_LINE>PathMatchingResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();<NEW_LINE>Resource[] resources = resourceResolver.getResources("classpath*:" + <MASK><NEW_LINE>// TODO: restdocs i...
context.getName() + "*/http-response.springfox");
1,031,409
public static void untargz(Path targz, Path outputDir, boolean stripRootFolder, Path selectFolder) throws IOException {<NEW_LINE>try (TarArchiveInputStream tarArchiveInputStream = new TarArchiveInputStream(new GzipCompressorInputStream(new FileInputStream(targz.toFile())))) {<NEW_LINE>TarArchiveEntry targzEntry;<NEW_LI...
int mode = targzEntry.getMode();
1,418,826
public I_C_Contract_Change retrieveChangeConditions(final I_C_Flatrate_Term term, final int newSubscriptionId, final Timestamp changeDate) {<NEW_LINE>final String where = X_C_Contract_Change.COLUMNNAME_Action + "='" + X_C_Contract_Change.ACTION_Abowechsel + "' AND " + X_C_Contract_Change.COLUMNNAME_C_Flatrate_Transitio...
getC_Flatrate_Conditions_ID(), newSubscriptionId, changeDate);
547,548
public int LAPACKE_dggesx_work(int arg0, byte arg1, byte arg2, byte arg3, Pointer arg4, byte arg5, int arg6, DoubleBuffer arg7, int arg8, DoubleBuffer arg9, int arg10, IntBuffer arg11, DoubleBuffer arg12, DoubleBuffer arg13, DoubleBuffer arg14, DoubleBuffer arg15, int arg16, DoubleBuffer arg17, int arg18, DoubleBuffer ...
arg22, arg23, arg24, arg25);
340,898
final ModifyLoadBalancerAttributesResult executeModifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyLoadBalancerAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,383,498
public void run() {<NEW_LINE>boolean active = TimeHelper.sleepToNextMinute();<NEW_LINE>while (active) {<NEW_LINE>Transaction t = Cat.newTransaction(<MASK><NEW_LINE>long current = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>Set<String> domains = m_projectService.findAllDomains();<NEW_LINE>for (String domain : do...
"AlertHeartbeat", TimeHelper.getMinuteStr());
795,366
public void process(DMatrixRMaj K1, Se3_F64 worldToCamera1, DMatrixRMaj K2, Se3_F64 worldToCamera2) {<NEW_LINE>SimpleMatrix sK1 = SimpleMatrix.wrap(K1);<NEW_LINE>SimpleMatrix sK2 = SimpleMatrix.wrap(K2);<NEW_LINE>SimpleMatrix R1 = SimpleMatrix.wrap(worldToCamera1.getR());<NEW_LINE>SimpleMatrix R2 = SimpleMatrix.wrap(wo...
KR1 = sK1.mult(R1);
1,102,859
public static CSmartCombo<DBPConnectionType> createConnectionTypeCombo(Composite composite) {<NEW_LINE>UIUtils.createControlLabel(composite, CoreMessages.dialog_connection_wizard_final_label_connection_type);<NEW_LINE>Composite ctGroup = <MASK><NEW_LINE>CSmartCombo<DBPConnectionType> connectionTypeCombo = new CSmartCom...
UIUtils.createComposite(composite, 1);
946,714
private static void tryPattern3Stream(RegressionEnvironment env, String text, AtomicInteger milestone, Integer[] intBoxedA, Double[] doubleBoxedA, Integer[] intBoxedB, Double[] doubleBoxedB, Integer[] intBoxedC, Double[] doubleBoxedC, boolean[] expected) {<NEW_LINE>assertEquals(intBoxedA.length, doubleBoxedA.length);<N...
i], doubleBoxedA[i]);
720,345
public void buildMacro(MacroSymbol sym, ConstructTpl rtl) {<NEW_LINE>entry("buildMacro", sym, rtl);<NEW_LINE>String errstring = checkSymbols(symtab.getCurrentScope());<NEW_LINE>if (errstring.length() != 0) {<NEW_LINE>reportError(sym.getLocation(), "Error in definition of macro '" + sym.<MASK><NEW_LINE>return;<NEW_LINE>...
getName() + "': " + errstring);
989,870
public static void main(String[] args) {<NEW_LINE>final ConfigBuilder configBuilder = new ConfigBuilder();<NEW_LINE>if (args.length > 0) {<NEW_LINE>configBuilder.withMasterUrl(args[0]);<NEW_LINE>}<NEW_LINE>try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBuilder.build()).build()) {<NEW_LINE...
"GitVersion : {}", versionInfo.getGitVersion());
265,574
final CreateSafetyRuleResult executeCreateSafetyRule(CreateSafetyRuleRequest createSafetyRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSafetyRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
endClientExecution(awsRequestMetrics, request, response);
1,211,558
protected void engineSetPadding(String padding) throws NoSuchPaddingException {<NEW_LINE>String pad = Strings.toUpperCase(padding);<NEW_LINE>if (pad.equals("NOPADDING")) {<NEW_LINE>cipher = new RSABlindedEngine();<NEW_LINE>} else if (pad.equals("PKCS1PADDING")) {<NEW_LINE>cipher = new PKCS1Encoding(new RSABlindedEngine...
(), new SHA384Digest());
1,407,253
public void recordFetch(ClusterNode clusterNode, ByteArray key) {<NEW_LINE>if (lastFetchedKey.containsKey(clusterNode)) {<NEW_LINE>ByteArray <MASK><NEW_LINE>if (!key.equals(lastKey)) {<NEW_LINE>if (!fullyFetchedKeyMap.containsKey(lastKey)) {<NEW_LINE>fullyFetchedKeyMap.put(lastKey, new HashSet<ClusterNode>());<NEW_LINE...
lastKey = lastFetchedKey.get(clusterNode);
1,649,697
public DoubleMatrix[] solveWithSensitivity(double[] values, double[] intervals, double[] slopes, double[][] slopeSensitivity, DoubleArray[] firstWithSensitivity) {<NEW_LINE>int nData = values.length;<NEW_LINE>double[] first = firstWithSensitivity[0].toArray();<NEW_LINE>DoubleMatrix[] res = new DoubleMatrix[nData];<NEW_...
values, intervals, slopes, first);
1,232,947
private void pushDownPredicatesPastWindows(Analyzer analyzer, SelectStmt stmt) throws AnalysisException {<NEW_LINE>final <MASK><NEW_LINE>if (analyticInfo == null || analyticInfo.getCommonPartitionExprs().size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final List<Expr> predicates = getBoundPredicates(analyzer, analy...
AnalyticInfo analyticInfo = stmt.getAnalyticInfo();
1,484,753
public Double pay(@QueryParam("acct") String acctNumber, Payment payment) throws UnknownAccountException, InsufficientFundsException {<NEW_LINE>int myTimeout = AsyncTestServlet.TIMEOUT;<NEW_LINE>if (isAIX()) {<NEW_LINE>myTimeout = AsyncTestServlet.TIMEOUT * 2;<NEW_LINE>}<NEW_LINE>if (isZOS()) {<NEW_LINE>myTimeout = Asy...
Double paymentAmt = payment.getAmount();
1,130,543
public Object clone() {<NEW_LINE>CrosstabBaseCloneFactory factory = new CrosstabBaseCloneFactory();<NEW_LINE>JRBaseCrosstab clone = (JRBaseCrosstab) super.clone();<NEW_LINE>clone.parameters = JRCloneUtils.cloneArray(parameters);<NEW_LINE>if (variables != null) {<NEW_LINE>clone.variables = new JRVariable[variables.lengt...
JRCrosstabCell[cells.length][];
607,599
public void deleteAttachmentsByTaskId(String taskId) {<NEW_LINE>checkHistoryEnabled();<NEW_LINE>List<AttachmentEntity> attachments = findAttachmentsByTaskId(taskId);<NEW_LINE>FlowableEventDispatcher eventDispatcher = getEventDispatcher();<NEW_LINE>boolean dispatchEvents = eventDispatcher != null && eventDispatcher.isEn...
String contentId = attachment.getContentId();
1,278,931
public List<RouteSegmentResult> findRouteWithIntermediateSegments(RouteCalculationParams routeParams, RouteCalculationResult result, List<Location> gpxRouteLocations, List<Location> segmentEndpoints, int nearestGpxPointInd) {<NEW_LINE>List<RouteSegmentResult> newGpxRoute = new ArrayList<>();<NEW_LINE>int lastIndex = ne...
prevSegmentPoint, routeParams.gpxRoute.calculateOsmAndRouteParts);
1,386,544
private BuildRule createExtensionBuildRule(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, ActionGraphBuilder graphBuilder, CellPathResolver cellRoots, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, CxxPythonExtensionDescriptionArg args) {<NEW_LINE>String moduleName = args.getModuleName().<MASK><...
orElse(buildTarget.getShortName());
1,361,528
private Mono<Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String vmScaleSetName, VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpo...
), vmInstanceIDs, accept, context);
377,119
public com.amazonaws.services.memorydb.model.SubnetGroupInUseException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.memorydb.model.SubnetGroupInUseException subnetGroupInUseException = new com.amazonaws.services.memorydb.model.SubnetGroupInUseException(null);...
String currentParentElement = context.getCurrentParentElement();
1,235,765
private Handler<Promise<Object>> createBlockingHandler(RoutingContext context) {<NEW_LINE>return promise -> {<NEW_LINE>KeycloakSessionFactory sessionFactory = getSessionFactory();<NEW_LINE>KeycloakSession session = sessionFactory.create();<NEW_LINE>configureContextualData(context, createClientConnection(context<MASK><N...
.request()), session);
56,903
public static void main(String[] args) {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("JRApiWriter usage:");<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String reportCreatorClassName = args[0];<NEW_LINE>String destFileName = args[1];<NEW_LINE>try {<NEW_LINE>Class<?> reportCreatorClass = Class.fo...
System.out.println("\tjava JRApiWriter reportCreatorClassName file");
1,352,003
private void handleNextExternal(long callId, JSONObject iterable) throws Exceptions.OsoException {<NEW_LINE>if (!calls.containsKey(callId)) {<NEW_LINE>Object result = host.toJava(iterable);<NEW_LINE>Enumeration<Object> enumResult;<NEW_LINE>if (result instanceof Enumeration<?>) {<NEW_LINE>enumResult = (Enumeration<Objec...
(Collection<Object>) result);
366,221
public Request<AddTagsRequest> marshall(AddTagsRequest addTagsRequest) {<NEW_LINE>if (addTagsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<AddTagsRequest> request = new DefaultRequest<AddTagsRequest>(addTagsRequest, "AmazonElasticLoadBa...
(tagsListValue.getValue()));
1,613,191
private void populateV09AgentRollupTable() throws Exception {<NEW_LINE>Map<String, V09AgentRollup> v09AgentRollups = getV09AgentRollupsFromAgentRollupTable();<NEW_LINE>PreparedStatement insertPS = null;<NEW_LINE>for (V09AgentRollup v09AgentRollup : v09AgentRollups.values()) {<NEW_LINE>if (v09AgentRollup.agent() && v09A...
0, v09AgentRollup.agentRollupId());
1,018,497
public int read() throws IOException {<NEW_LINE>while (true) {<NEW_LINE>final int ch = input.read();<NEW_LINE>if (ch == -1) {<NEW_LINE>// reached end of the input<NEW_LINE>int ret = prevChar;<NEW_LINE>prevChar = ch;<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>inputOff++;<NEW_LINE>int ret = -1;<NEW_LINE>// if the current c...
prevChar = KANA_NORM[ch - 0xFF65];
1,722,948
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof Iterable) {<NEW_LINE>final List<String> cleanList = new LinkedList<>();<NEW_LINE>for (fi...
.toString().trim();
1,168,119
public int seek(int ts) {<NEW_LINE><MASK><NEW_LINE>if (keyFrameMeta == null) {<NEW_LINE>if (!(reader instanceof IKeyFrameDataAnalyzer)) {<NEW_LINE>// Seeking not supported<NEW_LINE>return ts;<NEW_LINE>}<NEW_LINE>keyFrameMeta = ((IKeyFrameDataAnalyzer) reader).analyzeKeyFrames();<NEW_LINE>}<NEW_LINE>if (keyFrameMeta.pos...
log.trace("Seek ts: {}", ts);
249,785
private void detectCycle() {<NEW_LINE>List<AbsolutePackPath> cycle = new ArrayList<>();<NEW_LINE>Set<AbsolutePackPath> <MASK><NEW_LINE>for (AbsolutePackPath start : nodes.keySet()) {<NEW_LINE>if (exploreForCycles(start, cycle, visited)) {<NEW_LINE>AbsolutePackPath lastFilePath = null;<NEW_LINE>StringBuilder error = new...
visited = new HashSet<>();
712,179
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) {<NEW_LINE>// most common case<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName))<NEW_LINE>return null;<NEW_LINE...
content, qualifiedBinaryFileName.toCharArray());
1,297,215
public static void renderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String targetClientId, Map<String, List<ClientBehavior>> clientBehaviors) throws IOException {<NEW_LINE>renderBehaviorizedAttribute(facesContext, writer, HTML.ONCLICK_ATTR, uiComponent, targetCl...
MOUSEMOVE, clientBehaviors, HTML.ONMOUSEMOVE_ATTR);
1,239,948
public void onConfidenceChanged(TransactionConfidence conf, ChangeReason reason) {<NEW_LINE>// The number of peers that announced this tx has gone up.<NEW_LINE>int numSeenPeers = conf.numBroadcastPeers() + rejects.size();<NEW_LINE>boolean mined <MASK><NEW_LINE>log.info("broadcastTransaction: {}: TX {} seen by {} peers...
= tx.getAppearsInHashes() != null;
436,086
private NumberFormat createCurrencyNumberFormat(final I_C_Invoice_Candidate ic) {<NEW_LINE>final IBPartnerDAO bpartnerDAO = Services.get(IBPartnerDAO.class);<NEW_LINE>final ICurrencyDAO currencyDAO = Services.get(ICurrencyDAO.class);<NEW_LINE>final I_C_BPartner_Location billBPLocation = bpartnerDAO.getBPartnerLocationB...
assumeNotNull(billBPLocation, "billBPLocation not null for {}", ic);
785,304
public okhttp3.Call applicationsApplicationIdKeysKeyTypePutCall(String applicationId, String keyType, ApplicationKeyDTO applicationKeyDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = applicationKeyDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/a...
localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
1,696,571
public boolean apply(Game game, Ability source) {<NEW_LINE>boolean result = false;<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Card card = game.getCard(source.getSourceId());<NEW_LINE>if (card != null) {<NEW_LINE>ContinuousEffect effect = new Enters...
effect.setDuration(Duration.OneUse);
715,571
public void initScene() {<NEW_LINE>mLight = new DirectionalLight();<NEW_LINE>mLight.setLookAt(1, -1, 1);<NEW_LINE>mLight.enableLookAt();<NEW_LINE>mLight.setPower(1.5f);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>getCurrentCamera().setFarPlane(50);<NEW_LINE>getCurrentCamera().setPosition(5, 15, 30);<NEW_LINE>...
getCurrentScene().addChild(cube);
320,613
public void registerFix(@Nullable IntentionAction action, @Nullable List<IntentionAction> options, @Nullable String displayName, @Nullable TextRange fixRange, @Nullable HighlightDisplayKey key) {<NEW_LINE>if (action == null)<NEW_LINE>return;<NEW_LINE>if (fixRange == null)<NEW_LINE>fixRange = new TextRange(startOffset, ...
.create(desc, fixRange));
881,741
protected // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void buildForm() {<NEW_LINE>addTitledGroupBg(root, gridRow, 2, Res.get("shared.manageAccounts"));<NEW_LINE>Tuple3<Label, ListView<PaymentAccount>, VBox> tuple = addTopLabelListView(root, gridRow, Res.get<MASK...
("account.altcoin.yourAltcoinAccounts"), Layout.FIRST_ROW_DISTANCE);
1,303,887
public int compareTo(bulkImport_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE>if (l...
this.tid, other.tid);
462,669
public IotEventsAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IotEventsAction iotEventsAction = new IotEventsAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
741,409
private JsonResponseReceiveFromManufacturingOrder processReceipt(final JsonRequestReceiveFromManufacturingOrder receipt) {<NEW_LINE><MASK><NEW_LINE>final LocatorId locatorId = getReceiveToLocatorByOrderId(orderId);<NEW_LINE>final ProductId productId = getFinishedGoodProductId(orderId);<NEW_LINE>final I_C_UOM stockingUO...
final PPOrderId orderId = extractPPOrderId(receipt);
1,589,564
final UpdateDetectorResult executeUpdateDetector(UpdateDetectorRequest updateDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
invoke(request, responseHandler, executionContext);
592,125
public static void nfsV3AccountCreate(com.azure.resourcemanager.AzureResourceManager azure) {<NEW_LINE>azure.storageAccounts().manager().serviceClient().getStorageAccounts().create("res9101", "sto4445", new StorageAccountCreateParameters().withSku(new Sku().withName(SkuName.PREMIUM_LRS)).withKind(Kind.BLOCK_BLOB_STORAG...
(true), Context.NONE);
516,928
static Request toOkHttpRequest(feign.Request input) {<NEW_LINE>Request.Builder requestBuilder = new Request.Builder();<NEW_LINE>requestBuilder.url(input.url());<NEW_LINE>MediaType mediaType = null;<NEW_LINE>boolean hasAcceptHeader = false;<NEW_LINE>for (String field : input.headers().keySet()) {<NEW_LINE>if (field.equa...
charset(input.charset());
1,427,748
private void loadMap() throws ConfigurationException {<NEW_LINE>File mapFile = new File(_segmentDirectory, V1Constants.INDEX_MAP_FILE_NAME);<NEW_LINE>PropertiesConfiguration mapConfig = CommonsConfigurationUtils.fromFile(mapFile);<NEW_LINE>for (String key : CommonsConfigurationUtils.getKeys(mapConfig)) {<NEW_LINE>// co...
"Index separator not found: " + key + " , segment: " + _segmentDirectory);
1,848,669
private Response makeExecutionLogResponse(Request request, Date resultDate, TestResultRecord testResultRecord) throws Exception {<NEW_LINE>String content = FileUtil.getFileContent(testResultRecord.getFile());<NEW_LINE>ExecutionReport <MASK><NEW_LINE>HtmlPage page = context.pageFactory.newPage();<NEW_LINE>String tags = ...
report = ExecutionReport.makeReport(content);
877,083
private ExternalDataObject constructExternalDataObjectFromSherpaJournal(SHERPAJournal sherpaJournal) {<NEW_LINE>// Set up external object<NEW_LINE>ExternalDataObject externalDataObject = new ExternalDataObject();<NEW_LINE>externalDataObject.setSource(sourceIdentifier);<NEW_LINE>// Set journal title in external object<N...
getTitles().get(0);
1,402,658
public void updateDescription(@NonNull LocalIndexInfo info) {<NEW_LINE>File f = new File(info.getPathToData());<NEW_LINE>if (info.getType() == LocalIndexType.MAP_DATA) {<NEW_LINE>Map<String, String> ifns = app.getResourceManager().getIndexFileNames();<NEW_LINE>if (ifns.containsKey(info.getFileName())) {<NEW_LINE>try {<...
(R.string.download_srtm_maps));
717,504
TimelineXYItem[] createItems(ProbeItemDescriptor[] itemDescriptors) {<NEW_LINE>int itemsCount = values == null ? 0 : values.length;<NEW_LINE>int addedItemsCount = itemDescriptors.length;<NEW_LINE>TimelineXYItem[<MASK><NEW_LINE>for (int i = 0; i < addedItemsCount; i++) {<NEW_LINE>if (itemDescriptors[i] instanceof ValueI...
] itemsArr = new TimelineXYItem[addedItemsCount];
1,259,930
final DeleteBotLocaleResult executeDeleteBotLocale(DeleteBotLocaleRequest deleteBotLocaleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBotLocaleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,001,208
public void marshall(CreateQualificationTypeRequest createQualificationTypeRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createQualificationTypeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
e.getMessage(), e);
669,229
public Optional<GroupConfigTable> readGroupConfig(final Set<String> keys) {<NEW_LINE>GroupConfigTable groupConfigTable = new GroupConfigTable();<NEW_LINE>keys.forEach(key -> {<NEW_LINE>GroupConfigTable.GroupConfigItems groupConfigItems <MASK><NEW_LINE>groupConfigTable.addGroupConfigItems(groupConfigItems);<NEW_LINE>Str...
= new GroupConfigTable.GroupConfigItems(key);
1,550,490
private boolean isServiceChangedCCCDEnabled() throws DeviceDisconnectedException, DfuException, UploadAbortedException {<NEW_LINE>if (!mConnected)<NEW_LINE>throw new DeviceDisconnectedException("Unable to read Service Changed CCCD: device disconnected");<NEW_LINE>if (mAborted)<NEW_LINE>throw new UploadAbortedException(...
descriptor = serviceChangedCharacteristic.getDescriptor(CLIENT_CHARACTERISTIC_CONFIG);
1,574,238
private static void migrateConversation(Context context, SmsMigrationProgressListener listener, ProgressDescription progress, long theirThreadId, long ourThreadId) {<NEW_LINE>MessageDatabase ourSmsDatabase = SignalDatabase.sms();<NEW_LINE>Cursor cursor = null;<NEW_LINE>SQLiteStatement statement = null;<NEW_LINE>try {<N...
Uri.parse("content://sms/conversations/" + theirThreadId);
405,220
public <T> Evaluator<T> create(QueryMetadata metadata, List<? extends Expression<?>> sources, Expression<T> projection) {<NEW_LINE>final CollQuerySerializer serializer = new CollQuerySerializer(templates);<NEW_LINE>serializer.append("return ");<NEW_LINE>if (projection instanceof FactoryExpression<?>) {<NEW_LINE>seriali...
(projection.getType()));
1,292,577
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>localeDelegate.onCreate(this);<NEW_LINE>PreferenceManager.setDefaultValues(this, R.xml.preferences, false);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<N...
Version.INSTANCE.dataVersionChange(this);
1,132,906
protected static void propagatePreviousGlbs(final Subtypes targetSubtypes, InferenceResult solution, final Map<AnnotatedTypeMirror, AnnotationMirrorSet> subtypesOfTarget) {<NEW_LINE>for (final Map.Entry<TypeVariable, AnnotationMirrorSet> subtypeTarget : targetSubtypes.targets.entrySet()) {<NEW_LINE>final InferredValue ...
addAll(subtypeTarget.getValue());
507,733
public List<T> mapRow(Result result, int rowNum) throws Exception {<NEW_LINE>if (result.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final byte[] distributedRowKey = result.getRow();<NEW_LINE>final String agentId = this.hbaseOperationFactory.getAgentId(distributedRowKey);<NEW_LINE>final lon...
), cell.getQualifierLength());
1,121,819
// --------//<NEW_LINE>// preAdd //<NEW_LINE>// --------//<NEW_LINE>@Override<NEW_LINE>public List<? extends UITask> preAdd(WrappedBoolean cancel) {<NEW_LINE>final List<UITask> tasks = new ArrayList<>();<NEW_LINE>if (model == null) {<NEW_LINE>model = buildModel();<NEW_LINE>}<NEW_LINE>if (model == null) {<NEW_LINE>cance...
.getNeededLedgerAdditions(headCenter, staff));
1,012,415
public Request<DescribeEndpointRequest> marshall(DescribeEndpointRequest describeEndpointRequest) {<NEW_LINE>if (describeEndpointRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeEndpointRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeEndpointRequest> request = new...
String endpointArn = describeEndpointRequest.getEndpointArn();
699,181
private void updateCategory() {<NEW_LINE>try {<NEW_LINE>ImageGalleryController controllerForCase = ImageGalleryController.getController(Case.getCurrentCaseThrows());<NEW_LINE>if (controllerForCase == null) {<NEW_LINE>// This can only happen during case closing, so return without generating an error.<NEW_LINE>return;<NE...
<ContentTag> contentTags = getContentTags();
745,141
// ========================================<NEW_LINE>// MouseListener methods<NEW_LINE>// ========================================<NEW_LINE>@Override<NEW_LINE>public void mouseClicked(MouseEvent e) {<NEW_LINE>TreePath clickedPath = null;<NEW_LINE>// when nothing is viewable, do nothing and return immediately<NEW_LINE>i...
)).setSelectedTab(-1);
420,456
private boolean isSyntheticConstructor(ClassNode classNode, PropertyNode constructorNode) {<NEW_LINE>// constructor may be synthetic from parser<NEW_LINE>Expression value = constructorNode.getValue();<NEW_LINE>if (!(value instanceof FunctionNode)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String keyName = constructo...
Block body = constructorFunction.getBody();
1,296,419
private void processNoMasterNoDataNode(Terminal terminal, Path[] dataPaths, Environment env) throws IOException {<NEW_LINE>NodeEnvironment.NodePath[] nodePaths = toNodePaths(dataPaths);<NEW_LINE>terminal.println(Terminal.Verbosity.VERBOSE, "Collecting shard data paths");<NEW_LINE>List<Path> shardDataPaths = NodeEnviron...
indexMetadataPaths = NodeEnvironment.collectIndexMetadataPaths(nodePaths);
1,682,101
public ImmutableImage scaleTo(int targetWidth, int targetHeight, ScaleMethod scaleMethod) {<NEW_LINE>if (targetWidth == width && targetHeight == height)<NEW_LINE>return this;<NEW_LINE>switch(scaleMethod) {<NEW_LINE>case FastScale:<NEW_LINE>if (targetWidth < width && targetHeight < height && awt().getType() == BufferedI...
(targetWidth, targetHeight), metadata);
1,724,560
public static void drawMageLightBg(Canvas canvas, RectF targetFrame, ResizingBehavior resizing) {<NEW_LINE>// Resize to Target Frame<NEW_LINE>canvas.save();<NEW_LINE>RectF resizedFrame = CacheForMageLightBg.resizedFrame;<NEW_LINE>HabiticaIcons.resizingBehaviorApply(resizing, CacheForMageLightBg.originalFrame, targetFra...
resizedFrame.height() / 32f);
295,231
public void runSupport() {<NEW_LINE>enabled_networks.clear();<NEW_LINE>enabled_sources.clear();<NEW_LINE>if (network_buttons == null || network_buttons[0].isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DownloadManagerState state = null;<NEW_LINE>String[] networks = null;<NEW_LINE>String[] sources = null;<NEW_LINE...
privacy_scale.setSelection(pl * 10);
1,776,673
private void decodeSpkac(byte[] der) throws SpkacException {<NEW_LINE>try {<NEW_LINE>ASN1Sequence signedPublicKeyAndChallenge = ASN1Sequence.getInstance(der);<NEW_LINE>ASN1Sequence publicKeyAndChallenge = (ASN1Sequence) signedPublicKeyAndChallenge.getObjectAt(0);<NEW_LINE>ASN1Sequence signatureAlgorithm = (<MASK><NEW_L...
ASN1Sequence) signedPublicKeyAndChallenge.getObjectAt(1);
1,553,692
public static void checkVersion() {<NEW_LINE>if (versionChecked) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>synchronized (versionChecked) {<NEW_LINE>if (versionChecked) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>boolean versionCheck = true;<NEW_LINE>if (System.getProperty("tddl.version.check") != null) {<NEW_LIN...
"guava", "com/google/common/collect/MapMaker.class", "15.0", false);
232,982
public void refreshFields() {<NEW_LINE>ResourceConfigData data = this.helper.getData();<NEW_LINE>for (int i = 0; i < jFields.length; i++) {<NEW_LINE>String item;<NEW_LINE>if (FieldHelper.isList(fields[i])) {<NEW_LINE>item = (String) ((JComboBox) jFields[i]).getSelectedItem();<NEW_LINE>} else {<NEW_LINE>item = (String) ...
.getDefaultValue(fields[i]);
331,728
void flush(SegmentWriteState state, Sorter.DocMap sortMap) throws IOException {<NEW_LINE>super.flush(state, sortMap);<NEW_LINE>StoredFieldsReader reader = TEMP_STORED_FIELDS_FORMAT.fieldsReader(tmpDirectory, state.segmentInfo, state.fieldInfos, IOContext.DEFAULT);<NEW_LINE>// Don't pull a merge instance, since merge in...
getTemporaryFiles().values());
1,072,846
public RouteValidationResult validate(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) {<NEW_LINE>Set<String> variables = templates.stream().flatMap(t -> t.getVariableNames().stream()).collect(Collectors.toSet());<NEW_LINE>Set<String> routeVariables = Arrays.stream(parameters).map(...
(Collectors.toSet()));
827,392
public void takeLeadership(CuratorFramework client) throws Exception {<NEW_LINE>setState(State.PRIMARY);<NEW_LINE>if (client.checkExists().forPath(mLeaderFolder + mName) != null) {<NEW_LINE>LOG.info("Deleting zk path: {}{}", mLeaderFolder, mName);<NEW_LINE>client.delete().forPath(mLeaderFolder + mName);<NEW_LINE>}<NEW_...
LOG.warn("{} relinquishing leadership.", mName);
1,405,883
private void doFetchGroupConfig(final String server, final ConfigGroupEnum... groups) {<NEW_LINE>StringBuilder params = new StringBuilder();<NEW_LINE>for (ConfigGroupEnum groupKey : groups) {<NEW_LINE>params.append("groupKeys").append("=").append(groupKey.name()).append("&");<NEW_LINE>}<NEW_LINE>String url = server + C...
token = accessToken.apply(server);
975,173
public void marshall(IosClientBrandingAttributes iosClientBrandingAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (iosClientBrandingAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(ios...
iosClientBrandingAttributes.getSupportLink(), SUPPORTLINK_BINDING);
968,082
public PagedList<CloudJobSchedule> list(final JobScheduleListOptions jobScheduleListOptions) {<NEW_LINE>ServiceResponseWithHeaders<Page<CloudJobSchedule>, JobScheduleListHeaders> response = listSinglePageAsync(jobScheduleListOptions).toBlocking().single();<NEW_LINE>return new PagedList<CloudJobSchedule>(response.body()...
withClientRequestId(jobScheduleListOptions.clientRequestId());
112,000
public static void paintCellEditorBorder(Graphics2D g2, Component c, Rectangle r, boolean hasFocus) {<NEW_LINE>g2 = (Graphics2D) g2.create();<NEW_LINE>try {<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, M...
) c).getClientProperty("JComponent.outline");
48,480
public boolean hasChanges() {<NEW_LINE>GradleSettings settings = GradleSettings.getDefault();<NEW_LINE>GradleExperimentalSettings experimental = GradleExperimentalSettings.getDefault();<NEW_LINE>boolean isChanged = !settings.getDistributionHome().equals(tfUseCustomGradle.getText());<NEW_LINE>isChanged |= settings.isWra...
(cbGradleVersion.getSelectedItem()));
1,306,665
private List<File> filterChildren(File file) {<NEW_LINE>File[<MASK><NEW_LINE>List<File> files = new ArrayList<>();<NEW_LINE>if (fileArray != null) {<NEW_LINE>for (int i = 0; i < fileArray.length; i++) {<NEW_LINE>File f = fileArray[i];<NEW_LINE>boolean filtered;<NEW_LINE>if (f.isDirectory()) {<NEW_LINE>filtered = false;...
] fileArray = file.listFiles();
328,426
public PartOfSpeechTag unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PartOfSpeechTag partOfSpeechTag = new PartOfSpeechTag();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
1,595,542
private static void printSections(PrintStream out) {<NEW_LINE>List<BaseConfigSection> configSections = ConsoleConfigSections.getInstance().getAllConfigSections(true);<NEW_LINE>out.print(String.format("%1$-" + COL_LEN_SECTION_KEY + "s", "ID"));<NEW_LINE>out.print(" \u2502 ");<NEW_LINE>out.print(String.format("%1$-" + CO...
ConfigSectionImpl.getSectionNameKey(parentSectionID)));
1,469,591
private ComponentReport parse(final JSONObject object) {<NEW_LINE>final ComponentReport componentReport = new ComponentReport();<NEW_LINE>componentReport.setCoordinates(object.optString("coordinates", null));<NEW_LINE>componentReport.setDescription(object<MASK><NEW_LINE>componentReport.setReference(object.optString("re...
.optString("description", null));
837,805
private static void scheduleReinstallHelper(Set<JSONObject> hosts, JSONObject controlInfo, final String messagePrefix, final JobCreateListener listener) {<NEW_LINE>JSONArray hostnames, profiles;<NEW_LINE>String name = "reinstall_" + hosts.iterator().next().get("hostname").isString().stringValue();<NEW_LINE>if (hosts.si...
).showMessage(messagePrefix + " scheduled for reinstall");
1,122,714
void asyncExplicitLacFlush(final long explicitLac) {<NEW_LINE>final LastAddConfirmedCallback cb = LastAddConfirmedCallback.INSTANCE;<NEW_LINE>final PendingWriteLacOp op = new PendingWriteLacOp(lh, clientCtx, lh.getCurrentEnsemble(), cb, null);<NEW_LINE>op.setLac(explicitLac);<NEW_LINE>try {<NEW_LINE>if (LOG.isDebugEnab...
computeDigestAndPackageForSendingLac(lh.getLastAddConfirmed());
1,623,518
final ListPackagesForDomainResult executeListPackagesForDomain(ListPackagesForDomainRequest listPackagesForDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPackagesForDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
301,510
public void marshall(ModelPackagingJobMetadata modelPackagingJobMetadata, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (modelPackagingJobMetadata == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NE...
modelPackagingJobMetadata.getJobName(), JOBNAME_BINDING);
1,853
private OptimizerStats execImpl(OptimizerContext optimizerCtx) {<NEW_LINE>OptimizerStats stats = new OptimizerStats(NAME);<NEW_LINE>FindStaticDispatchSitesVisitor finder = new FindStaticDispatchSitesVisitor();<NEW_LINE>Set<JMethod> modifiedMethods = optimizerCtx.getModifiedMethodsSince(optimizerCtx.getLastStepFor(NAME)...
= new CreateStaticImplsVisitor(program, optimizerCtx);
777,873
protected boolean doTokensMatchPattern(List<Token> previousTokens, Token current, Pattern regex) {<NEW_LINE>ArrayList<String> tokenStrings = new ArrayList<>();<NEW_LINE>tokenStrings.add(current.getText());<NEW_LINE>for (int i = previousTokens.size() - 1; i >= 0; i--) {<NEW_LINE>Token prevToken = previousTokens.get(i);<...
(tokenStrings.get(i));