idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
564,737
public synchronized void start() {<NEW_LINE>if (!this.running.get()) {<NEW_LINE>this.proxyExecutor.execute(() -> {<NEW_LINE>ZMQ.Socket captureSocket = null;<NEW_LINE>if (this.exposeCaptureSocket) {<NEW_LINE>captureSocket = this.context.createSocket(SocketType.PUB);<NEW_LINE>}<NEW_LINE>try (ZMQ.Socket frontendSocket = t...
.frontendPort.get()));
694,192
private SwaggerParseResult readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options, String location) {<NEW_LINE>if (swaggerAsString == null || swaggerAsString.trim().isEmpty()) {<NEW_LINE>return SwaggerParseResult.ofError("Null or empty definition");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>f...
rootNode = mapper.readTree(swaggerAsString);
1,452,015
private ObjectMapper createMapper(JsonFactory mapping, ClassLoader classLoader) {<NEW_LINE>ObjectMapper mapper = new ObjectMapper(mapping);<NEW_LINE>mapper.addMixIn(Config.class, ConfigMixIn.class);<NEW_LINE>mapper.addMixIn(ReferenceCodecProvider.class, ClassMixIn.class);<NEW_LINE>mapper.addMixIn(AddressResolverGroupFa...
NameMapper.class, ClassMixIn.class);
1,291,055
private void open(long position) {<NEW_LINE>File file;<NEW_LINE>FileOutputStream os = null;<NEW_LINE>FileChannel fileChannel = null;<NEW_LINE>try {<NEW_LINE>file = resource.getFile();<NEW_LINE>FileUtils.setUpOutputFile(file, restarted, false, overwriteOutput);<NEW_LINE>Assert.state(resource.exists(), "Output resource m...
setProperty("com.ctc.wstx.outputValidateStructure", Boolean.FALSE);
557,517
public void addDnsARecord(String host, String address) throws IOException {<NEW_LINE>final String METHOD_NAME = "addDnsARecord";<NEW_LINE>Log.info(CAContainer.class, METHOD_NAME, "Adding DNS record for " + host + ":" + address);<NEW_LINE>try (CloseableHttpClient httpclient = HttpClients.createDefault()) {<NEW_LINE>Stri...
HttpPost(getDnsManagementAddress() + "/add-a");
1,789,329
public List<List<String>> groupAnagrams(String[] strs) {<NEW_LINE>List<List<String>> res = new ArrayList<>();<NEW_LINE>if (strs.length == 0)<NEW_LINE>return res;<NEW_LINE>Map<String, List<String>> map = new HashMap<>();<NEW_LINE>for (int i = 0; i < strs.length; i++) {<NEW_LINE>char[] strchar = strs[i].toCharArray();<NE...
, map.get(keyStr));
935,551
private // view's center and scale according to the cropping rectangle.<NEW_LINE>void centerBasedOnHighlightView(HighlightView hv) {<NEW_LINE>Rect drawRect = hv.drawRect;<NEW_LINE>float width = drawRect.width();<NEW_LINE>float height = drawRect.height();<NEW_LINE>float thisWidth = getWidth();<NEW_LINE>float thisHeight ...
getUnrotatedMatrix().mapPoints(coordinates);
1,751,986
private Pulse decodePulses(BitReader _in) {<NEW_LINE>int[] pos = new int[4];<NEW_LINE>int[] amp = new int[4];<NEW_LINE>int numPulse = (int) _in.readNBit(2) + 1;<NEW_LINE>int pulseSwb = (int) _in.readNBit(6);<NEW_LINE>if (pulseSwb >= numSwb)<NEW_LINE>throw new RuntimeException("pulseSwb >= numSwb");<NEW_LINE>pos[0] = sw...
Pulse(numPulse, pos, amp);
426,851
public Optional<RuleMatch<T>> match(Request message) throws InvalidUriException {<NEW_LINE>final String method = message.method();<NEW_LINE>final String path = getPath(message);<NEW_LINE>if (method == null) {<NEW_LINE>LOG.warn("Invalid request for {} sent without method by service {}", message.uri(), message.service()....
> pathArgs = ImmutableMap.builder();
1,703,119
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Business business = new Business(emc);<NEW_LINE>Statement statement = emc.flag(flag, Stateme...
result = new ActionResult<>();
634,940
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>Player newController = game.getPlayer(getTarget...
.getFirst(game, source));
231,185
public String sqlAD_getTranslatedColumns(String vendorName, String catalogName, String schemaName) {<NEW_LINE>// table name<NEW_LINE>String searchTableName = "AD_Column";<NEW_LINE>// column names<NEW_LINE>ArrayList<String> columnNames = new ArrayList<String>();<NEW_LINE>columnNames.add("t.ColumnName");<NEW_LINE>// alia...
= new ArrayList<String>();
1,069,549
public void write(org.apache.thrift.protocol.TProtocol prot, partition_configuration struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struc...
struct.secondaries.size());
1,002,903
public com.squareup.okhttp.Call throttlingPoliciesApplicationGetAsync(String accept, String ifNoneMatch, String ifModifiedSince, final ApiCallback<ApplicationThrottlePolicyList> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressR...
onDownloadProgress(bytesRead, contentLength, done);
356,452
public void die(Exception ex) {<NEW_LINE>close.lock();<NEW_LINE>try {<NEW_LINE>if (!close.isSet()) {<NEW_LINE>log.error("Dying because - {}", ex.getMessage(), ex);<NEW_LINE>final SSHException causeOfDeath = SSHException.chainer.chain(ex);<NEW_LINE>disconnectListener.notifyDisconnect(causeOfDeath.getDisconnectReason(), ...
boolean didNotReceiveDisconnect = msg != Message.DISCONNECT;
1,199,180
protected void init() {<NEW_LINE>codeViewerService = tool.getService(CodeViewerService.class);<NEW_LINE>goToService = tool.getService(GoToService.class);<NEW_LINE>FormatManager formatManager = codeViewerService.getFormatManager();<NEW_LINE>ServiceProvider diffServiceProvider = new DiffServiceProvider(formatManager.getS...
addOverviewProvider(markerManager.getOverviewProvider());
596,782
public Void execute(CommandContext commandContext) {<NEW_LINE>if (appDefinitionId == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("appDefinitionId is null");<NEW_LINE>}<NEW_LINE>if (variables == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("variables is null");<NEW_LINE>}<NEW_LINE>if (vari...
type = variableTypes.findVariableType(variableValue);
357,788
private ParseResult<IndexExpression> parseIndexExpressionWithLhsExpression(int startPosition, int endPosition) {<NEW_LINE>startPosition = trimLeftWhitespace(startPosition, endPosition);<NEW_LINE>endPosition = trimRightWhitespace(startPosition, endPosition);<NEW_LINE>List<Integer> bracketPositions = findCharacters(start...
leftSide = parseExpression(startPosition, bracketPosition);
1,834,238
private static void createAndPutArchiveEntry(ArchiveType archiveType, ArchiveOutputStream archiveOutputStream, Path directoryToArchive, Path filePathToArchive) throws IOException {<NEW_LINE>switch(archiveType) {<NEW_LINE>case ZIP:<NEW_LINE>{<NEW_LINE>ZipArchiveEntry entry = new ZipArchiveEntry(filePathToArchive.toFile(...
.setMode(getUnixMode(filePathToArchive));
1,230,987
public boolean next() throws IOException {<NEW_LINE>if (this.pointsInBuffer == 0) {<NEW_LINE>if (countLeft >= 0) {<NEW_LINE>if (countLeft == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (countLeft > maxPointOnHeap) {<NEW_LINE>in.readBytes(onHeapBuffer, <MASK><NEW_LINE>pointsInBuffer = ma...
0, maxPointOnHeap * config.bytesPerDoc);
460,296
private static void addAnonymousPolicies(RealmModel realm, String policyTypeKey) {<NEW_LINE>ComponentModel trustedHostModel = createModelInstance("Trusted Hosts", realm, TrustedHostClientRegistrationPolicyFactory.PROVIDER_ID, policyTypeKey);<NEW_LINE>// Not any trusted hosts by default<NEW_LINE>trustedHostModel.getConf...
realm, ConsentRequiredClientRegistrationPolicyFactory.PROVIDER_ID, policyTypeKey);
1,763,695
public synchronized void threadDump(PrintWriter out) {<NEW_LINE>try {<NEW_LINE>if (jvm == null) {<NEW_LINE>jvm = new JVM(Integer.toString(SysJMX.getProcessPID()));<NEW_LINE>jvm.connect();<NEW_LINE>}<NEW_LINE>if (jvm.isConnected() == false)<NEW_LINE>return;<NEW_LINE>HotSpotVirtualMachine vm = (HotSpotVirtualMachine) jvm...
BufferedReader(new InputStreamReader(in));
1,044,031
protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>pm.setTaskName(RefactoringCoreMessages.RenameFieldRefactoring_checking);<NEW_LINE>RefactoringStatus result = new RefactoringStatu...
pm.beginTask("", 18);
294,778
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>mButtonClicked = 0;<NEW_LINE>if (requestCode == mFileSelectCode) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>mTextFileUri = data.getData();<NEW_LINE>StringUtils.getInstance().showSnackbar(mActivity, R.string.text_file_selected)...
onActivityResult(requestCode, resultCode, data);
1,672,295
// GEN-FIRST:event_btnZoomOutActionPerformed<NEW_LINE>// GEN-FIRST:event_btnZoomOutActionPerformed<NEW_LINE>void // GEN-FIRST:event_btnZoomOutActionPerformed<NEW_LINE>btnZoomOutActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-HEADEREND:event_btnZoomOutActionPerformed<NEW_LINE>// Add your handling code ...
[index - 1] / 100f);
1,422,638
public static void checkAbbreviations() throws IOException {<NEW_LINE>LinkedHashSet<String> fromProper = new LinkedHashSet<>(TextIO.loadLinesFromResource("tr/proper-from-corpus.dict"));<NEW_LINE>LinkedHashSet<String> fromAbbrv = new LinkedHashSet<>(TextIO.loadLinesFromResource("tr/abbreviations.dict"));<NEW_LINE>Map<St...
vals.sort(Turkish.STRING_COMPARATOR_ASC);
599,687
private boolean writeUserMethod(TreeLogger logger, JMethod userMethod, SourceWriter sw, ConstantDefinitions constantDefinitions, Map<String, String> originalConstantNameMapping, Map<String, String> substitutionMap, Map<JMethod, String> methodToClassName) throws UnableToCompleteException {<NEW_LINE>String className = ge...
.getConstantDefinition(toUpperCase(methodName));
1,405,309
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(policy.getId());<NEW_LINE>builder.field(SnapshotLifecyclePolicyMetadata.VERSION.getPreferredName(), version);<NEW_LINE>builder.timeField(SnapshotLifecyclePolicyMetadata.MODIFIED_DATE_MILLIS.getPre...
startObject(POLICY_STATS.getPreferredName());
736,023
public boolean importData(TransferHandler.TransferSupport support) {<NEW_LINE>if (canImport(support)) {<NEW_LINE>try {<NEW_LINE>// Fetch the Transferable and its data<NEW_LINE>final <MASK><NEW_LINE>final Object data = trsf.getTransferData(DataFlavor.javaFileListFlavor);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>...
Transferable trsf = support.getTransferable();
939,839
public final // JPA2.g:522:1: escape_character : ( '\\'.\\'' | STRING_LITERAL );<NEW_LINE>JPA2Parser.escape_character_return escape_character() throws RecognitionException {<NEW_LINE>JPA2Parser.escape_character_return retval = new JPA2Parser.escape_character_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Objec...
= new MismatchedSetException(null, input);
851,182
public void run(Arguments arguments, Instrumentation instrumentation, Collection<AutoCloseable> objectsToCloseOnShutdown) {<NEW_LINE>if (arguments.isNoop()) {<NEW_LINE>LOGGER.info("Agent noop is true, do not run anything");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Reporter reporter = arguments.getReporter();<NEW_LINE>Strin...
appId = System.getenv(appIdVariable);
470,077
public Boolean execute(CommandContext commandContext) {<NEW_LINE>AbstractEngineConfiguration engineConfiguration = commandContext.getEngineConfigurations().get(engineType);<NEW_LINE>PropertyEntityManager propertyEntityManager = engineConfiguration.getPropertyEntityManager();<NEW_LINE>PropertyEntity property = propertyE...
String value = property.getValue();
1,835,712
public static PrivateKey loadDecryptionKey(String keyString) throws GeneralSecurityException, IOException {<NEW_LINE>if (keyString.contains(PKCS_1_PEM_HEADER)) {<NEW_LINE>// OpenSSL / PKCS#1 Base64 PEM encoded file<NEW_LINE>keyString = keyString.replace(PKCS_1_PEM_HEADER, "");<NEW_LINE>keyString = keyString.replace(PKC...
keyString.replace("\n", "");
1,832,441
public VersionInformation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VersionInformation versionInformation = new VersionInformation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
1,200,743
private HttpURLConnection redirectRetransmit(HttpURLConnection connection, Message message, CacheAndWriteOutputStream cachedStream) throws IOException {<NEW_LINE>// If we are not redirecting by policy, then we don't.<NEW_LINE>if (!getClient(message).isAutoRedirect()) {<NEW_LINE>return connection;<NEW_LINE>}<NEW_LINE>UR...
getURL(), newURL, message);
1,276,585
private Polygon bufferPolylinePath_(Polyline polyline, int ipath, boolean bfilter) {<NEW_LINE>assert (m_distance != 0);<NEW_LINE>generateCircleTemplate_();<NEW_LINE>MultiPath input_multi_path = polyline;<NEW_LINE>MultiPathImpl mp_impl = (MultiPathImpl) (input_multi_path._getImpl());<NEW_LINE>if (mp_impl.getPathSize(ipa...
(MultiPathImpl) result_polyline._getImpl();
674,018
public IHUQueryBuilder createHUsAvailableToIssueQuery(@NonNull final I_PP_Order_BOMLine ppOrderBomLine) {<NEW_LINE>final WarehouseId warehouseId = WarehouseId.ofRepoId(ppOrderBomLine.getM_Warehouse_ID());<NEW_LINE>final Set<WarehouseId> issueFromWarehouseIds = warehouseDAO.getWarehouseIdsOfSameGroup(warehouseId, Wareho...
getImmutableAttributeSetById(expectedASI).filterOnlyStorageRelevantAttributes();
255,592
static public double j1(double x) throws ArithmeticException {<NEW_LINE>double ax;<NEW_LINE>double y;<NEW_LINE>double ans1, ans2;<NEW_LINE>if ((ax = Math.abs(x)) < 8.0) {<NEW_LINE>y = x * x;<NEW_LINE>ans1 = x * (72362614232.0 + y * (-7895059235.0 + y * (242396853.1 + y * (-2972611.439 + y * (15704.48260 + y * (-30.1603...
* (-0.240337019e-6))));
192,874
// used only in flatten packages mode<NEW_LINE>@RequiredReadAction<NEW_LINE>public static void addAllSubpackages(List<AbstractTreeNode> container, PsiDirectory dir, ModuleFileIndex moduleFileIndex, ViewSettings viewSettings) {<NEW_LINE>final Project project = dir.getProject();<NEW_LINE>PsiDirectory[] subdirs = dir.getS...
container, subdir, moduleFileIndex, viewSettings);
441,141
final DeleteLFTagResult executeDeleteLFTag(DeleteLFTagRequest deleteLFTagRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLFTagRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
266,698
public <T> void visitCtFieldWrite(CtFieldWrite<T> ctFieldWrite) {<NEW_LINE>String fieldName = ctFieldWrite.getVariable().getSimpleName();<NEW_LINE>if (params.contains(fieldName) && ctFieldWrite.getTarget() == null) {<NEW_LINE>resultStack.push(new ParamNode(fieldName));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ElemNode resu...
= new ElemNode(ctFieldWrite, "id-write");
1,832,372
public JobParameter deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {<NEW_LINE>ObjectCodec oc = jsonParser.getCodec();<NEW_LINE>JsonNode node = oc.readTree(jsonParser);<NEW_LINE>final String value = node.get("value").asText();<NEW_LINE>final ...
).toDate(), identifying);
1,211,072
Future<List<Path>> safeGlobUnsorted(String pattern, Globber.Operation globberOperation) throws BadGlobException {<NEW_LINE>// Forbidden patterns:<NEW_LINE>if (pattern.indexOf('?') != -1) {<NEW_LINE>throw new BadGlobException("glob pattern '" + pattern + "' contains forbidden '?' wildcard");<NEW_LINE>}<NEW_LINE>// Patte...
setExecutor(globExecutor).globAsync();
525,508
protected static ExtractedInfo extractProvenanceInfo(Map<String, Provenance> map) {<NEW_LINE>Map<String, Provenance> configuredParameters = new HashMap<>(map);<NEW_LINE>String className = ObjectProvenance.checkAndExtractProvenance(configuredParameters, CLASS_NAME, StringProvenance.class, JsonDataSourceProvenance.class....
instanceParameters = new HashMap<>();
1,291,769
protected void initCoreTypes() {<NEW_LINE>if (JSweetDefTranslatorConfig.isJDKReplacementMode()) {<NEW_LINE>registerType("java.util.function.Function", TypeDeclaration.createExternalTypeDeclaration("Function"));<NEW_LINE>registerType("java.util.function.BiFunction", TypeDeclaration.createExternalTypeDeclaration("BiFunct...
, TypeDeclaration.createExternalTypeDeclaration("void"));
1,454,029
protected boolean processAnnotationsOnParameter(MethodMetadata data, Annotation[] annotations, int paramIndex) {<NEW_LINE>boolean isHttpAnnotation = false;<NEW_LINE>AnnotatedParameterProcessor.AnnotatedParameterContext context = new SimpleAnnotatedParameterContext(data, paramIndex);<NEW_LINE>Method method = processedMe...
typeDescriptor = createTypeDescriptor(method, paramIndex);
1,600,950
/*<NEW_LINE>* Constructs a shadow table for a data table in the information schema.<NEW_LINE>* Note: Shadow tables for interleaved tables are not interleaved to<NEW_LINE>* their shadow parent table.<NEW_LINE>*/<NEW_LINE>Table constructShadowTable(Ddl informationSchema, String dataTableName) {<NEW_LINE>// Create a new s...
collect(Collectors.toList());
1,434,047
public static void renderStars(VertexBuffer starVBO, PoseStack ms, Matrix4f projMat, float partialTicks, Runnable resetFog) {<NEW_LINE>FogRenderer.setupNoFog();<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>ShaderInstance shader = GameRenderer.getPositionShader();<NEW_LINE>float rain = 1.0F - mc.level.getRa...
.rotationDegrees(t * 3));
76,121
public List<ShowTimeSeriesResult> showTimeseries(ShowTimeSeriesPlan plan, QueryContext context) throws MetadataException {<NEW_LINE>List<ShowTimeSeriesResult> result = new LinkedList<>();<NEW_LINE>int limit = plan.getLimit();<NEW_LINE>int offset = plan.getOffset();<NEW_LINE>if (plan.isOrderByHeat() && limit != 0) {<NEW...
> stream = result.stream();
1,132,323
public void basicParameterValidation(String name, String description, String namespace) throws AnnotationValidationException {<NEW_LINE>// Check if the @Extension name is empty.<NEW_LINE>if (name.isEmpty()) {<NEW_LINE>throw new AnnotationValidationException(MessageFormat.format<MASK><NEW_LINE>}<NEW_LINE>// Check if the...
("The @Extension -> name " + " annotated in class {0} is null or empty.", extensionClassFullName));
1,328,107
void refreshGatewayBundles(ShutdownHookManager shutdownHook) {<NEW_LINE>BundleContext systemContext = featureManager.bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION).getBundleContext();<NEW_LINE>Set<Bundle> needsRefresh = new LinkedHashSet<Bundle>();<NEW_LINE>RegionDigraph digraph = featureManager.getDigraph()...
wiring.getRequiredWires(PackageNamespace.PACKAGE_NAMESPACE);
1,278,727
public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view) {<NEW_LINE>g2.setPaint(this.paint);<NEW_LINE>g2.setStroke(this.stroke);<NEW_LINE>Rectangle2D arcRect = DialPlot.rectangleByRadius(frame, <MASK><NEW_LINE>double value = plot.getValue(this.datasetIndex);<NEW_LINE>DialScale scale = plot.ge...
this.radius, this.radius);
809,858
private static void packColumn(JTable table, int columnIndex) {<NEW_LINE>TableColumn tableColumn = table.getColumnModel().getColumn(columnIndex);<NEW_LINE>Object value = tableColumn.getHeaderValue();<NEW_LINE>TableCellRenderer columnRenderer = tableColumn.getHeaderRenderer();<NEW_LINE>if (columnRenderer == null) {<NEW_...
.getPreferredSize().width + 6;
182,162
public static Stream<OrderBookUpdate> parseOrderBookUpdates(JsonNode json) {<NEW_LINE>if (!json.isArray()) {<NEW_LINE>throw new IllegalArgumentException("Array expected");<NEW_LINE>}<NEW_LINE>CurrencyPair pair = CoincheckPair.stringToPair(json.get(0).<MASK><NEW_LINE>JsonNode container = json.get(1);<NEW_LINE>if (contai...
asText()).getPair();
611,824
public RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) throws IOException {<NEW_LINE>Integer ifVersion = null;<NEW_LINE>if (restRequest.hasParam("if_version")) {<NEW_LINE>String versionString = restRequest.param("if_version");<NEW_LINE>try {<NEW_LINE>ifVersion = Integer.parseInt(versionSt...
new RestToXContentListener<>(channel));
319,925
public void testDeliveryDelayZeroAndNegativeValuesTopicClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>TopicConnection con = jmsTCFBindings.createTopicConnection();<NEW_LINE>con.start();<NEW_LINE>TopicSession sessionSender = con.creat...
rec = sessionSender.createSubscriber(jmsTopic);
1,269,711
private ListenableFuture<Void> _processTables(final DatabaseDto databaseDto, final List<QualifiedName> tableNames) {<NEW_LINE>final QualifiedName databaseName = databaseDto.getName();<NEW_LINE>final List<ListenableFuture<Optional<TableDto>>> getTableFutures = tableNames.stream().map(tableName -> service.submit(() -> {<...
collect(Collectors.toList());
1,093,609
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> executions = new ArrayList<>();<NEW_LINE>executions.add(new ExprCoreCaseSyntax1Sum());<NEW_LINE>executions.add(new ExprCoreCaseSyntax1SumOM());<NEW_LINE>executions.add(new ExprCoreCaseSyntax1SumCompile());<NEW_LINE>exec...
.add(new ExprCoreCaseSyntax2EnumResult());
993,080
public Incident execute(CommandContext commandContext) {<NEW_LINE>EnsureUtil.ensureNotNull(BadUserRequestException.class, "Execution id cannot be null", "executionId", executionId);<NEW_LINE>EnsureUtil.ensureNotNull(BadUserRequestException.class, "incidentType", incidentType);<NEW_LINE>ExecutionEntity execution = comma...
"activity", execution.getActivity());
1,842,570
default Iterator<T> dropRight(int n) {<NEW_LINE>if (n <= 0) {<NEW_LINE>return this;<NEW_LINE>} else if (!hasNext()) {<NEW_LINE>return empty();<NEW_LINE>} else {<NEW_LINE>final Iterator<T> that = this;<NEW_LINE>return new Iterator<T>() {<NEW_LINE><NEW_LINE>private io.vavr.collection.Queue<T> queue = io.vavr.collection.Q...
append(that.next());
306,105
public Object execute(CommandContext commandContext) {<NEW_LINE>if (processInstanceId == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("processInstanceId is null");<NEW_LINE>}<NEW_LINE>// Check if process instance is still running<NEW_LINE>HistoricProcessInstance instance = CommandContextUtil.getHistoricP...
(commandContext).findById(processInstanceId);
1,347,800
public static DescribeAiotVehicleTableItemsResponse unmarshall(DescribeAiotVehicleTableItemsResponse describeAiotVehicleTableItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAiotVehicleTableItemsResponse.setRequestId(_ctx.stringValue("DescribeAiotVehicleTableItemsResponse.RequestId"));<NEW_LINE>describeAiotV...
("DescribeAiotVehicleTableItemsResponse.VehicleTableItems.VehicleTableItemList[" + i + "].OwnerName"));
1,306,892
public void onConnectionStateChange(BluetoothGatt gatta, int status, int newState) {<NEW_LINE>Log.d(BleManager.LOG_TAG, "onConnectionStateChange to " + newState + " on peripheral: " + device.<MASK><NEW_LINE>gatt = gatta;<NEW_LINE>if (status != BluetoothGatt.GATT_SUCCESS) {<NEW_LINE>gatt.close();<NEW_LINE>// change the ...
getAddress() + " with status " + status);
1,275,586
public void deleteEventHubConsumerGroupById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path s...
format("The resource ID '%s' is not valid. Missing path segment 'ConsumerGroups'.", id)));
1,247,258
static String responseToXml(String endpointName, ApiResponse response) throws ApiException {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder docBuilder = docFactory.newDocumentBuilder();<NEW_LINE>Document doc = docBuilder.newDocument();<NEW_LINE...
TransformerFactory transformerFactory = TransformerFactory.newInstance();
1,149,609
private void updateLoadingStatus(BrokerLoadingTaskAttachment attachment) {<NEW_LINE>loadingStatus.replaceCounter(DPP_ABNORMAL_ALL, increaseCounter(DPP_ABNORMAL_ALL, attachment.getCounter(DPP_ABNORMAL_ALL)));<NEW_LINE>loadingStatus.replaceCounter(DPP_NORMAL_ALL, increaseCounter(DPP_NORMAL_ALL, attachment.getCounter(DPP_...
addAll(attachment.getErrorTabletInfos());
999,024
public void forAllInRange(char startValue, char endValue, final RelativeRangeConsumer rrc) {<NEW_LINE>if (endValue <= startValue) {<NEW_LINE>throw new IllegalArgumentException("startValue (" + startValue + ") must be less than endValue (" + endValue + ")");<NEW_LINE>}<NEW_LINE>int startOffset = startValue;<NEW_LINE>int...
content, 0, cardinality, startValue);
603,575
public void write(final java.nio.ByteBuffer buf) {<NEW_LINE>try {<NEW_LINE>int startPositionMark = buf.position();<NEW_LINE>buf.position(<MASK><NEW_LINE>int unknownsCounter = 0;<NEW_LINE>if (unknownFields == null)<NEW_LINE>unknownsCounter = Integer.MAX_VALUE;<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putVIn...
buf.position() + 1);
1,536,810
protected synchronized BeanFactory initFactory(Locale locale) throws BeansException {<NEW_LINE>// Try to find cached factory for Locale:<NEW_LINE>// Have we already encountered that Locale before?<NEW_LINE>if (isCache()) {<NEW_LINE>BeanFactory cachedFactory = this.localeCache.get(locale);<NEW_LINE>if (cachedFactory != ...
factory.setParent(getApplicationContext());
94,017
public DeleteResult delete() throws IOException {<NEW_LINE><MASK><NEW_LINE>final AtomicLong deletedBytes = new AtomicLong();<NEW_LINE>try (AmazonS3Reference clientReference = blobStore.clientReference()) {<NEW_LINE>ObjectListing prevListing = null;<NEW_LINE>while (true) {<NEW_LINE>ObjectListing list;<NEW_LINE>if (prevL...
final AtomicLong deletedBlobs = new AtomicLong();
1,508,318
private void checkImplementableStatically(Member member, String messagePrefix) {<NEW_LINE>MemberDescriptor memberDescriptor = member.getDescriptor();<NEW_LINE>if (member.isMethod()) {<NEW_LINE>Method method = (Method) member;<NEW_LINE>boolean hasNonJsFunctionOverride = method.getDescriptor().getJavaOverriddenMethodDesc...
messagePrefix, method.getReadableDescription());
736,558
public void readFields(DataInput in) throws IOException {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>PrimitiveType type = PrimitiveType.valueOf(Text.readString(in));<NEW_LINE>types.add(type);<NEW_LINE>LiteralExpr literal = null;<NEW_LINE>boolean isMax = in.readBoolean();<NEW_LINE>if (isMax) {<N...
int count = in.readInt();
1,581,572
public void openLog(TargetModuleID module) {<NEW_LINE>TomcatModule tomcatModule = null;<NEW_LINE>if (module instanceof TomcatModule) {<NEW_LINE>tomcatModule = (TomcatModule) module;<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>TargetModuleID[] tomMod = getRunningModules(ModuleType.WAR, new Target[] { module.getTarget() })...
Level.INFO, null, te);
230,415
private void dispatchSplitsUseLocation(List<org.apache.hadoop.mapreduce.InputSplit> splitsNewAPI, int groupNumber, int groupItemNumber) throws IOException, InterruptedException {<NEW_LINE>splitNum = splitsNewAPI.size();<NEW_LINE>// Since the actual split size is sometimes not exactly equal to the expected split size, w...
get(base).getLocations();
1,208,378
private void init(Hashtable toCopy) {<NEW_LINE>type = (String) toCopy.get("type");<NEW_LINE>attribution = (String) toCopy.get("attribution");<NEW_LINE>message = (String) toCopy.get("message");<NEW_LINE>linkUrl = (String) toCopy.get("link");<NEW_LINE>linkDescription = (String) toCopy.get("description");<NEW_LINE>Hashtab...
Hashtable) toCopy.get("comments");
1,699,579
public static void horizontal(GrayF32 src, GrayF32 dst) {<NEW_LINE>if (src.width < dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must be >= dst width");<NEW_LINE>if (src.height != dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must equal dst height");<NEW_LINE>float scale = src....
src.getIndex(isrcX0, y);
643,717
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId<MASK><NEW_LINE>SlowLogRecords slowLogRecords = new SlowLogRecords();<NEW_LINE>slowLogRecords.setRows(_ctx.stringValue("D...
(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));
47,150
public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>String channel = wrapper.<MASK><NEW_LINE>if (channel.equals("minecraft:trader_list") || channel.equals("trader_list")) {<NEW_LINE>// Passthrough Window ID<NEW_LINE>wrapper.passthrough(Type.INT);<NEW_LINE>int size = wrapper.passthrough(Type.UNSIGNED_B...
get(Type.STRING, 0);
658,746
public void uploadRangeWithResponse() {<NEW_LINE>ShareFileClient shareFileClient = createClientWithSASToken();<NEW_LINE>byte[] data = "default".getBytes(StandardCharsets.UTF_8);<NEW_LINE>// BEGIN: com.azure.storage.file.share.ShareFileClient.uploadRangeWithResponse#ShareFileUploadRangeOptions-Duration-Context<NEW_LINE>...
"Completed uploading the data with response %d%n.", response.getStatusCode());
416,972
void endNetworkRequestInternal(String networkTraceKey, String uniqueId, int responseCode, int requestPayloadSize, int responsePayloadSize) {<NEW_LINE>// end time counting as fast as possible<NEW_LINE>long currentTimestamp = UtilsTime.currentTimestampMs();<NEW_LINE>L.<MASK><NEW_LINE>if (networkTraceKey == null || networ...
d("[ModuleAPM] Calling 'endNetworkRequestInternal' with key:[" + networkTraceKey + "]");
362,984
private static <T extends PipelineStageBase<?>> List<T> postOrderUnPackWithoutModelData(StageNode[] stages) {<NEW_LINE>if (stages == null || stages.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>LinkedList<Integer> stack = new LinkedList<>();<NEW_LINE>stack.push(0);<NEW_LINE>long id = stages.length - 1;<NEW_L...
<?>[0]));
1,486,723
public void doSetType(ActionEvent ae) {<NEW_LINE>Debug.log(3, "doSetType: selected");<NEW_LINE>String error = "";<NEW_LINE>EditorPane editorPane = SikulixIDE.get().getCurrentCodePane();<NEW_LINE>String editorPaneText = editorPane.getText();<NEW_LINE>if (!editorPaneText.trim().isEmpty()) {<NEW_LINE>// TODO Changing Tab ...
.replaceFirst(".*?\\/", ""));
1,717,375
public void accumulateFrom(EBPFProfilingStack stack) {<NEW_LINE>List<EBPFProfilingStack.Symbol> stackList = stack.getSymbols();<NEW_LINE>if (codeSignature == null) {<NEW_LINE>codeSignature = stackList.get(0);<NEW_LINE>}<NEW_LINE>// add detected stack<NEW_LINE>this.detectedBy(stack);<NEW_LINE>// handle stack children<NE...
elementCodeSignature = stackList.get(depth);
876,595
public IndexMetadata toIndexMetadata(String indexTableName) {<NEW_LINE>com.palantir.logsafe.Preconditions.<MASK><NEW_LINE>com.palantir.logsafe.Preconditions.checkState(!rowComponents.isEmpty(), "No row components specified.");<NEW_LINE>if (explicitCompressionRequested && explicitCompressionBlockSizeKb == 0) {<NEW_LINE>...
checkState(indexTableName != null, "No index table name specified.");
1,548,432
public static boolean dynamicIndexedPropertyExists(DynamicPropertyDescriptorByMethod descriptor, Object underlying, int index) {<NEW_LINE>try {<NEW_LINE>if (descriptor.isHasParameters()) {<NEW_LINE>return true;<NEW_LINE>} else {<NEW_LINE>Object array = descriptor.getMethod().invoke(underlying, null);<NEW_LINE>if (array...
descriptor.getMethod(), e);
1,528,847
public void addRateLimiter(LimitedRateGroup group, boolean upload) {<NEW_LINE>List<PEPeerTransport> transports;<NEW_LINE>try {<NEW_LINE>peer_transports_mon.enter();<NEW_LINE>ArrayList<Object[]> new_limiters = new ArrayList<>(external_rate_limiters_cow == null ? 1 : external_rate_limiters_cow.size() + 1);<NEW_LINE>if (e...
Boolean.valueOf(upload) });
849,145
public void execute(final String[] args) {<NEW_LINE>boolean success = true;<NEW_LINE>Opts opts = new Opts();<NEW_LINE>opts.parseArgs("accumulo init", args);<NEW_LINE>var siteConfig = SiteConfiguration.auto();<NEW_LINE>ZooReaderWriter zoo = new ZooReaderWriter(siteConfig);<NEW_LINE>SecurityUtil.serverLogin(siteConfig);<...
SingletonManager.setMode(Mode.CLOSED);
1,771,858
public static DescribeDeletedInstancesResponse unmarshall(DescribeDeletedInstancesResponse describeDeletedInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDeletedInstancesResponse.setRequestId(_ctx.stringValue("DescribeDeletedInstancesResponse.RequestId"));<NEW_LINE>describeDeletedInstancesResponse.setTo...
("DescribeDeletedInstancesResponse.Instances[" + i + "].ClusterType"));
123,893
private FLClientStatus judgeStartFLJob(StartFLJob startFLJob, ResponseFLJob responseDataBuf) {<NEW_LINE>iteration = responseDataBuf.iteration();<NEW_LINE>FLClientStatus response = startFLJob.doResponse(responseDataBuf);<NEW_LINE>retCode = startFLJob.getRetCode();<NEW_LINE>status = response;<NEW_LINE>switch(response) {<...
setUpdateFeatureName(startFLJob.getUpdateFeatureName());
794,441
public void logMutations(DataOutput out) {<NEW_LINE>VariableLong.writePositive(<MASK><NEW_LINE>for (Map.Entry<String, Map<String, IndexMutation>> store : mutations.entrySet()) {<NEW_LINE>out.writeObjectNotNull(store.getKey());<NEW_LINE>VariableLong.writePositive(out, store.getValue().size());<NEW_LINE>for (Map.Entry<St...
out, mutations.size());
439,813
private static // a Frequentist confidence interval based on the tails of the Binomial distribution.<NEW_LINE>double computeApproxBinoUB(final long numSamplesI, final double theta, final int numSDev) {<NEW_LINE>if (theta == 1.0) {<NEW_LINE>return (numSamplesI);<NEW_LINE>} else if (numSamplesI == 0) {<NEW_LINE>final dou...
specialNPrimeF(numSamplesI, theta, delta);
1,712,768
private static String fallbackThreadDump(String dumpName) {<NEW_LINE>StringBuilder dump = new StringBuilder();<NEW_LINE>dump.append(dumpName);<NEW_LINE>ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();<NEW_LINE>for (ThreadInfo info : threadMXBean.getThreadInfo(threadMXBean.getAllThreadIds(), 500)) {<NEW_...
append(info.getThreadState());
180,162
private JsonProduct toJsonProduct(final I_M_Product productRecord) {<NEW_LINE>final IModelTranslationMap trls = InterfaceWrapperHelper.getModelTranslationMap(productRecord);<NEW_LINE>final ProductId productId = ProductId.<MASK><NEW_LINE>final UomId uomId = UomId.ofRepoId(productRecord.getC_UOM_ID());<NEW_LINE>return Js...
ofRepoId(productRecord.getM_Product_ID());
1,119,461
public static DescribeDatabaseBackupResponse unmarshall(DescribeDatabaseBackupResponse describeDatabaseBackupResponse, UnmarshallerContext context) {<NEW_LINE>describeDatabaseBackupResponse.setRequestId(context.stringValue("DescribeDatabaseBackupResponse.RequestId"));<NEW_LINE>describeDatabaseBackupResponse.setInstance...
("DescribeDatabaseBackupResponse.BackupItems[" + i + "].BackupSize"));
806,880
public void marshall(Authorizer authorizer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (authorizer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(authorizer.getAuthorizerCredentialsArn(), AUTHORIZERCR...
authorizer.getIdentityValidationExpression(), IDENTITYVALIDATIONEXPRESSION_BINDING);
330,463
private void addCrusherTravertineRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Polished Travertine -> Travertine<NEW_LINE>crushing(consumer, BYGBlocks.POLISHED_TRAVERTINE, BYGBlocks.TRAVERTINE, basePath + "from_polished");<NEW_LINE>crushing(consumer, BYGBlocks.POLISHED_TRAVERTINE_SLAB, <MASK...
BYGBlocks.TRAVERTINE_SLAB, basePath + "polished_slabs_to_slabs");
1,441,885
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
427,081
private void initializeClient() {<NEW_LINE>if (mConfiguration.getClientId() != null) {<NEW_LINE>Log.i(TAG, "Using static client ID: " + mConfiguration.getClientId());<NEW_LINE>// use a statically configured client ID<NEW_LINE>mClientId.set(mConfiguration.getClientId());<NEW_LINE>runOnUiThread(this::initializeAuthReques...
performRegistrationRequest(registrationRequest, this::handleRegistrationResponse);
1,822,148
public void onEntityTarget(final EntityTargetEvent event) {<NEW_LINE>if (!(event.getTarget() instanceof Player)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final User user = ess.getUser((<MASK><NEW_LINE>if ((event.getReason() == TargetReason.CLOSEST_PLAYER || event.getReason() == TargetReason.TARGET_ATTACKED_ENTITY || even...
Player) event.getTarget());
1,598,498
private void emitOptionalSequence(TypeSpec.Builder intentBuilderTypeBuilder, List<ExtraInjection> optionalInjections) {<NEW_LINE>// find type<NEW_LINE>final ClassName optionalSequence = get(target.classPackage, builderClassName(), OPTIONAL_SEQUENCE_CLASS);<NEW_LINE>final ParameterizedTypeName parameterizedOptionalSeque...
superClass = get(AllRequiredSetState.class);