idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
419,840
private static byte[] rsaPrivateKeyToBlob(RSAPrivateCrtKey rsaPrivCrtKey) throws CryptoException {<NEW_LINE>try {<NEW_LINE>// 2316 sufficient for a 4096 bit RSA key<NEW_LINE>ByteBuffer bb = ByteBuffer.wrap(new byte[4096]);<NEW_LINE><MASK><NEW_LINE>// Write out the blob fields<NEW_LINE>// rsapubkey.magic<NEW_LINE>Unsign...
bb.order(ByteOrder.LITTLE_ENDIAN);
456,052
public BlazeScalaImportResult importWorkspace() {<NEW_LINE>ProjectViewTargetImportFilter importFilter = new ProjectViewTargetImportFilter(Blaze.getBuildSystemName<MASK><NEW_LINE>List<TargetKey> scalaSourceTargets = targetMap.targets().stream().filter(target -> target.getJavaIdeInfo() != null).filter(target -> target.ge...
(project), workspaceRoot, projectViewSet);
619,516
public JsonProcessCompositeResponse processShipmentSchedules(@NonNull final JsonProcessShipmentRequest request) {<NEW_LINE>final ILoggable loggable = Loggables.withLogger(logger, Level.DEBUG);<NEW_LINE>final JsonCreateShipmentRequest shipmentRequest = request.getCreateShipmentRequest();<NEW_LINE>loggable.addLog("proces...
> invoiceInfoResponseCollector = ImmutableList.builder();
81,336
private void removeFirstRecord(Node root) {<NEW_LINE><MASK><NEW_LINE>NodeList nodes = ((Element) root).getElementsByTagName("record");<NEW_LINE>Node oldestNode = null;<NEW_LINE>Date oldestTimeStamp = null;<NEW_LINE>Node node;<NEW_LINE>for (int i = 0; i < nodes.getLength(); i++) {<NEW_LINE>node = nodes.item(i);<NEW_LINE...
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
223,203
public void update(final AnActionEvent event) {<NEW_LINE>super.update(event);<NEW_LINE>try {<NEW_LINE>final Presentation presentation = event.getPresentation();<NEW_LINE>Optional<Project> projectFromEvent = project(event);<NEW_LINE>if (!projectFromEvent.isPresent()) {<NEW_LINE>presentation.setEnabled(false);<NEW_LINE>r...
LOG.warn("Project button update failed", e);
703,497
public IPackageFragmentRoot packageFragmentRoot(String resourcePathString, int jarSeparatorIndex, String jarPath) {<NEW_LINE>int index = -1;<NEW_LINE>boolean isJarFile = jarSeparatorIndex != -1;<NEW_LINE>if (isJarFile) {<NEW_LINE>// internal or external jar (case 3, 4, or 5)<NEW_LINE>String relativePath = <MASK><NEW_LI...
resourcePathString.substring(jarSeparatorIndex + 1);
456,831
public static ListenableFuture<Perfetto.Data.Builder> listThreads(Perfetto.Data.Builder data) {<NEW_LINE>return transform(data.qe.query(THREAD_QUERY), res -> {<NEW_LINE>Map<Long, ProcessInfo.Builder> procs = Maps.newHashMap();<NEW_LINE>ImmutableMap.Builder<Long, ThreadInfo> threads = ImmutableMap.builder();<NEW_LINE>re...
upid = row.getLong(3);
770,918
protected void run(Map tokens, Object data) {<NEW_LINE>GarbageCollectorVO vo = dbf.findByUuid(uuid, GarbageCollectorVO.class);<NEW_LINE>if (vo == null) {<NEW_LINE>logger.warn(String.format("[GC] cannot find a job[name:%s, id:%s], assume it's deleted", NAME, uuid));<NEW_LINE>cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
, NAME, uuid, path));
1,332,398
private void resolveForInstallationV1LookupTable(EntityV1 entity, InputEntity input, Map<String, ValueReference> parameters, Map<EntityDescriptor, Entity> entities, MutableGraph<Entity> graph) {<NEW_LINE>final Set<String> lookupTableNames = input.extractors().stream().filter(e -> e.type().asString(parameters).equals(Ex...
(EntityV1) x.getValue();
185,704
private void drawVerticalScrollbar(Canvas canvas) {<NEW_LINE>int viewWidth = mRecyclerViewWidth;<NEW_LINE>int left = viewWidth - mVerticalThumbWidth;<NEW_LINE>int top = Math.max(0, mVerticalThumbCenterY - mVerticalThumbHeight / 2);<NEW_LINE>mVerticalThumbDrawable.setBounds(0, 0, mVerticalThumbWidth, mVerticalThumbHeigh...
.scale(-1, 1);
119,485
final DeleteWorldTemplateResult executeDeleteWorldTemplate(DeleteWorldTemplateRequest deleteWorldTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWorldTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
864,490
private static void findAllComponentRefs(String listRef, int position, WXComponent component, Map<String, Object> refs) {<NEW_LINE>if (component.isWaste()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (component instanceof WXVContainer) {<NEW_LINE>WXVContainer container = (WXVContainer) component;<NEW_LINE>for (int i = 0;...
child = container.getChild(i);
1,346,711
public void init(ClassProperties properties) {<NEW_LINE>String libraryName = getClass().getSimpleName();<NEW_LINE>String moduleName = libraryName.replace("Qt5", "Qt");<NEW_LINE>log.finest("Initial properties for " + libraryName + " preset: " + properties);<NEW_LINE>// Set library name<NEW_LINE>properties.<MASK><NEW_LIN...
setProperty(LIBRARY, "jni" + libraryName);
1,159,525
protected boolean areAllModuleOptionsEqual(ClasspathLocation other) {<NEW_LINE>if (this.patchModuleName != null) {<NEW_LINE>if (other.patchModuleName == null)<NEW_LINE>return false;<NEW_LINE>if (!this.patchModuleName.equals(other.patchModuleName))<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>if (other.patchModuleN...
getList(UpdateKind.MODULE, false);
1,659,938
public void runAfterLogin(HashMap<String, Object> data) {<NEW_LINE>try {<NEW_LINE>boolean isAdmin = authResult.userAuthInfo().get().isUserAdmin();<NEW_LINE>final RegistryLock resultLock;<NEW_LINE>if (isLock) {<NEW_LINE>resultLock = domainLockUtils.verifyAndApplyLock(lockVerificationCode, isAdmin);<NEW_LINE>} else {<NEW...
(t).getMessage());
362,464
public void run() {<NEW_LINE>try {<NEW_LINE>UndoRedo.Manager urm = getUndoRedo();<NEW_LINE>if (urm instanceof UndoRedoManager) {<NEW_LINE>UndoRedoManager urManager = (UndoRedoManager) urm;<NEW_LINE>if (onSaveTasksStarted[0]) {<NEW_LINE>urManager.endOnSaveTasks();<NEW_LINE>}<NEW_LINE>urManager.markSavepoint();<NEW_LINE>...
0] = new MemoryOutputStream(byteArrayAllocSize);
282,110
final ListPartsResult executeListParts(ListPartsRequest listPartsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPartsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Glacier");
1,740,756
protected void addEdits(IDocument document, TextEdit rootEdit) throws CoreException {<NEW_LINE>try {<NEW_LINE>String lineDelimiter = TextUtilities.getDefaultLineDelimiter(document);<NEW_LINE>final ICompilationUnit unit = getCompilationUnit();<NEW_LINE>IRegion region = document.getLineInformationOfOffset(fInsertPosition...
.newErrorStatus("Invalid edit", e));
625,020
protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>byte[] contractHash = Hash.getSha256Hash(checkNotNull(trade.getContractAsJson()));<NEW_LINE>trade.setContractHash(contractHash);<NEW_LINE>List<RawTransactionInput> buyerInputs = checkNotNull(<MASK><NEW_LINE>BtcWalletService walletService = proc...
processModel.getRawTransactionInputs(), "buyerInputs must not be null");
1,630,611
public void handle(MongoRequest request, MongoResponse response) throws Exception {<NEW_LINE>DocumentContext dc = JsonPath.<MASK><NEW_LINE>JsonElement content = dc.json();<NEW_LINE>if (content == null || content.isJsonNull()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (content.isJsonArray()) {<NEW_LINE>// GET collection...
parse(response.readContent());
170,627
public static void main(String[] args) {<NEW_LINE>// Prepare Event Grid client<NEW_LINE>EventGridPublisherClient<com.azure.core.models.CloudEvent> egClient = // Event Grid topic endpoint with CloudEvent Schema<NEW_LINE>new EventGridPublisherClientBuilder().// Event Grid topic endpoint with CloudEvent Schema<NEW_LINE>en...
EventGridCloudNativeEventPublisher.sendEvents(egClient, cloudEvents);
631,535
private void updateStatus() {<NEW_LINE>String errorMsg = null;<NEW_LINE>if (eclipseProjectTextField.isEnabled()) {<NEW_LINE>if (!EclipseUtils.isRegularProject(eclipseProjectTextField.getText())) {<NEW_LINE>errorMsg = org.openide.util.NbBundle.<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (errorMsg == null && eclipseWorkspac...
getMessage(UpdateEclipseReferencePanel.class, "MSG_SelectProject");
184,133
public void marshall(CreateLicenseVersionRequest createLicenseVersionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLicenseVersionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createLicenseVersionRequest.getIssuer(), ISSUER_BINDING);
1,535,291
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create table MyTable(sortcol sorted(intPrimitive) @type('SupportBean'));\n" + "into table MyTable select sorted(*) as sortcol from SupportBean;\n";<NEW_LINE>env.compileDeploy(epl, path);<NEW_...
, path).addListener("s0");
1,685,271
public void initialize(Server server, Injector injector) {<NEW_LINE>final ServletContextHandler root = new ServletContextHandler(ServletContextHandler.SESSIONS);<NEW_LINE>root.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false");<NEW_LINE>ServletHolder holderPwd = new ServletHolder("default", Defau...
AuthenticationUtils.addNoopAuthenticationAndAuthorizationFilters(root, UNSECURED_PATHS);
1,508,362
// Unfortunately, there appears to be a bug in the IE4 classloader when you try<NEW_LINE>// to load and register the driver with Class.forName(driverName).<NEW_LINE>// The IE4 appears to retrieve the class file from the server, but the class's<NEW_LINE>// static initializer block is never executed. As the driver regist...
clsDriver = Class.forName(driverName);
309,112
protected void editItem(int modelIndex, T preset) {<NEW_LINE>if (modelIndex == -1) {<NEW_LINE>modelIndex = indexToModel(table.getSelectedRow());<NEW_LINE>if (modelIndex == -1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>setRowSelected(indexToView(modelIndex));<NEW_LINE>if (preset == null) {<NEW_LINE>preset = data...
String[] { "Don't save", "Edit again" };
1,513,364
private JComponent createSearchField() {<NEW_LINE>_searchField = new JXSearchField("Find");<NEW_LINE>_searchField.setUseNativeSearchFieldIfPossible(true);<NEW_LINE>// _searchField.setLayoutStyle(JXSearchField.LayoutStyle.MAC);<NEW_LINE>_searchField.setMinimumSize(new Dimension(220, 30));<NEW_LINE>_searchField.setPrefer...
new Dimension(220, 30));
742,398
public TableAnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) {<NEW_LINE>DifferentialReachabilityParameters <MASK><NEW_LINE>DifferentialReachabilityResult result = _batfish.bddDifferentialReachability(snapshot, reference, parameters);<NEW_LINE>Set<Flow> flows = Sets.union(result.getDecreased...
parameters = parameters(snapshot, reference);
1,518,834
private List<Pack> loadData(String tagGroup, long stime, long etime, boolean reverse, MapPack extra, MapValue filterMv) {<NEW_LINE>List<Pack> list = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE><MASK...
param.put("stime", stime);
1,705,767
public static OkHttpClient enableExternalCertificates(OkHttpClient httpClient, String filename) throws GeneralSecurityException, IOException {<NEW_LINE>Collection<? extends Certificate> certificates = null;<NEW_LINE>try (FileInputStream fis = new FileInputStream(filename)) {<NEW_LINE>certificates = CertificateFactory.g...
= Integer.toString(index++);
1,552,744
private TreeNode convertAnnotation(AnnotationTree node, TreePath parent) {<NEW_LINE>List<? extends ExpressionTree> args = node.getArguments();<NEW_LINE>String annotationName = node.getAnnotationType().toString();<NEW_LINE>AnnotationMirror annotationMirror = ((JCAnnotation) node).attribute;<NEW_LINE>boolean isPropertyAn...
assignPath = getTreePath(path, assign);
1,624,146
protected final void addConstructors(Type type) {<NEW_LINE>Class<?> clazz = TypeToken.of(type).getRawType();<NEW_LINE>for (Constructor<?> constructor : clazz.getConstructors()) {<NEW_LINE>if (constructor.isSynthetic()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (!constructor.isAnnotationPresent(ThriftConstructor.class...
"Struct class '%s' does not have a public no-arg constructor", clazz.getName());
339,945
public static void validate(Iterable<Entry<String, String>> entries) {<NEW_LINE>String instanceZkTimeoutValue = null;<NEW_LINE>for (Entry<String, String> entry : entries) {<NEW_LINE>String key = entry.getKey();<NEW_LINE><MASK><NEW_LINE>Property prop = Property.getPropertyByKey(entry.getKey());<NEW_LINE>if (prop == null...
String value = entry.getValue();
590,805
protected JSDynamicObject constructTemporalDuration(JSDynamicObject newTarget, Object yearsObj, Object monthsObj, Object weeksObj, Object daysObj, Object hoursObj, Object minutesObj, Object secondsObj, Object millisecondsObject, Object microsecondsObject, Object nanosecondsObject, @Cached("create()") JSToIntegerWithout...
seconds = toIntegerNode.executeDouble(secondsObj);
1,279,106
public void createAndPreserveRoomRescueKeyPair(CreateKeyPairRequest body, Long roomId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required para...
localVarAccept, localVarContentType, localVarAuthNames, null);
804,724
public DetailAstImpl visitBinOp(JavaLanguageParser.BinOpContext ctx) {<NEW_LINE>final DetailAstImpl bop = create(ctx.bop);<NEW_LINE>// To improve performance, we iterate through binary operations<NEW_LINE>// since they are frequently deeply nested.<NEW_LINE>final List<JavaLanguageParser.BinOpContext> binOpList = new Ar...
children.get(2)));
1,199,389
public void destroy() {<NEW_LINE>DatabaseConnector connector = connection.getConnector();<NEW_LINE>Specification spec = connector.getDatabaseSpecification();<NEW_LINE>try {<NEW_LINE>AbstractCommand command = null;<NEW_LINE>switch(getType()) {<NEW_LINE>case Function:<NEW_LINE>command = spec.createCommandDropFunction(get...
spec.createCommandDropProcedure(getName());
107,092
public boolean unplugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest) throws ConcurrentOperationException, ResourceUnavailableException {<NEW_LINE>boolean result = true;<NEW_LINE>final VMInstanceVO router = _vmDao.<MASK><NEW_LINE>if (...
findById(vm.getId());
1,507,054
public static ListNodesResponse unmarshall(ListNodesResponse listNodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodesResponse.setRequestId(_ctx.stringValue("ListNodesResponse.RequestId"));<NEW_LINE>listNodesResponse.setTotalCount(_ctx.integerValue("ListNodesResponse.TotalCount"));<NEW_LINE>listNodesResponse.se...
("ListNodesResponse.Nodes[" + i + "].CreatedByEhpc"));
883,489
// safe because it's a constructor of the typeLiteral<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>static <T> Constructor<? extends T> findThrowingConstructor(TypeLiteral<? extends T> typeLiteral, Binder binder) {<NEW_LINE>Class<?> rawType = typeLiteral.getRawType();<NEW_LINE>Errors errors = new Errors(rawType);<NE...
) cxtor).getAnnotations());
844,090
private void load(final File file) {<NEW_LINE>new Thread(() -> {<NEW_LINE>File file1 = getExternalCacheDir();<NEW_LINE>// if the db can't be read, and we have root enabled, try reading it by<NEW_LINE>// first copying it in cache dir<NEW_LINE>if (!file.canRead() && isRootExplorer()) {<NEW_LINE>try {<NEW_LINE>CopyFilesCo...
), file.getName());
551,815
public void update(List<Metric> metrics) {<NEW_LINE>Preconditions.checkNotNull(metrics, "metrics");<NEW_LINE>LOGGER.debug("received {} metrics", metrics.size());<NEW_LINE>final List<Metric> newMetrics = new ArrayList<>(metrics.size());<NEW_LINE>for (Metric m : metrics) {<NEW_LINE>if (isCounter(m)) {<NEW_LINE>final Moni...
.getTimestamp(), rate));
1,363,021
private void visit(Binding binding) {<NEW_LINE>// Getting its wsdl:operation elements<NEW_LINE>Collection<BindingOperation> ops = (Collection<BindingOperation>) binding.getBindingOperations();<NEW_LINE>// Going through the operation elements<NEW_LINE>for (BindingOperation bindingOperation : ops) {<NEW_LINE>// Getting w...
) : bindingInput.getExtensibilityElements());
1,808,320
private /*<NEW_LINE>private Map<Object, List<Conversation>> buildConnectionMap(List<Conversation> conversations) throws IOException {<NEW_LINE>Map<Object, List<Conversation>> connectionToConversationMap = new HashMap<>();<NEW_LINE>if (conversations != null) {<NEW_LINE>for (Conversation c : conversations) {<NEW_LINE>Obj...
= new LinkedList<Conversation>();
36,913
protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>// Check for all assignments that perform casts on primitive constants<NEW_LINE>for (Unit u : b.getUnits()) {<NEW_LINE>if (u instanceof AssignStmt) {<NEW_LINE>AssignStmt assign = (AssignStmt) u;<NEW_LINE>Value rightOp = a...
IntConstant) castOp).value));
1,650,600
public void createInitialLayout(IPageLayout layout) {<NEW_LINE>String editorArea = layout.getEditorArea();<NEW_LINE>layout.setEditorAreaVisible(false);<NEW_LINE>Server server = ServerManager.getInstance().getDefaultServer();<NEW_LINE>int serverId = server.getId();<NEW_LINE>;<NEW_LINE>IFolderLayout agentLayout = layout....
) + "&" + DateUtil.MILLIS_PER_TEN_MINUTE);
416,999
public boolean isValid(Resource resource) {<NEW_LINE>Validate.notNull(resource);<NEW_LINE>if (!"ASG".equals(resource.getResourceType().name())) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (instanceValidator.hasActiveInstance(resource)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String suspensionTimeStr = <MASK><NEW...
resource.getAdditionalField(ASGJanitorCrawler.ASG_FIELD_SUSPENSION_TIME);
1,574,654
protected FilterResults performFiltering(CharSequence constraint) {<NEW_LINE>FilterResults results = new FilterResults();<NEW_LINE>if (TextUtils.isEmpty(constraint)) {<NEW_LINE>final ArrayList<User> list;<NEW_LINE>synchronized (mLock) {<NEW_LINE>list = new ArrayList<>(mOriginalUsers);<NEW_LINE>}<NEW_LINE>results.values...
= new ArrayList<>(mOriginalUsers);
1,274,276
public void updateDisplay(Event event, int position) {<NEW_LINE>// need fix ?<NEW_LINE>mtime.setText(DateFormat.getDateTimeInstance().format<MASK><NEW_LINE>mLAC.setText(valueOf(event.getLocationAreaCode()));<NEW_LINE>mCID.setText(valueOf(event.getCellId()));<NEW_LINE>mPSC.setText(valueOf(event.getPrimaryScramblingCode(...
(event.getTimestamp()));
779,736
public String buildUpsertQueryStatement(final TableId table, Collection<ColumnId> keyColumns, Collection<ColumnId> nonKeyColumns) {<NEW_LINE>// https://blogs.oracle.com/cmar/entry/using_merge_to_do_an<NEW_LINE>final Transform<ColumnId> transform = (builder, col) -> {<NEW_LINE>builder.append(table).append(".").appendCol...
).of(nonKeyColumns, keyColumns);
365,133
public com.amazonaws.services.kafka.model.TooManyRequestsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kafka.model.TooManyRequestsException tooManyRequestsException = new com.amazonaws.services.kafka.model.TooManyRequestsException(null);<NEW_LINE>int...
JsonToken token = context.getCurrentToken();
1,430,224
public static CodegenExpression codegen(ExprCastNodeForge forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>if (forge.getEvaluationType() == null) {<NEW_LINE>return constantNull();<NEW_LINE>}<NEW_LINE>ExprNode child = forge.getForgeRenderabl...
, methodNode, exprSymbol, codegenClassScope));
1,235,303
public AwsRdsDbProcessorFeature unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsRdsDbProcessorFeature awsRdsDbProcessorFeature = new AwsRdsDbProcessorFeature();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
793,632
public static VolumeSnapshotTree fromInventories(List<VolumeSnapshotInventory> invs) {<NEW_LINE>VolumeSnapshotTree tree = new VolumeSnapshotTree();<NEW_LINE>Map<String, SnapshotLeaf> map = new HashMap<String, SnapshotLeaf>();<NEW_LINE>for (VolumeSnapshotInventory inv : invs) {<NEW_LINE>SnapshotLeaf leaf = map.get(inv.g...
tree.root != null, "why tree root is null???");
99,802
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {<NEW_LINE>if (this.latLongs.size() < 2 || (this.paintStroke == null && this.paintFill == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.boundingBox != null && !this.boundingBox.intersects(boundingBox)) {<N...
zoomLevel, displayModel.getTileSize());
1,037,488
private boolean onSuggestInKeyword(BallerinaCompletionContext context, LetExpressionNode node) {<NEW_LINE>SeparatedNodeList<LetVariableDeclarationNode> letVarDecls = node.letVarDeclarations();<NEW_LINE>int cursor = context.getCursorPositionInTree();<NEW_LINE>CompleteExpressionValidator validator = new CompleteExpressio...
completed = expression.apply(validator);
1,424,047
public Louvain compute(int maxLevel, int maxIterations, boolean rnd) {<NEW_LINE>// temporary graph<NEW_LINE>Graph graph = this.root;<NEW_LINE>// result arrays<NEW_LINE>dendrogram = new int[maxLevel][];<NEW_LINE>modularities = new double[maxLevel];<NEW_LINE>int nodeCount = rootNodeCount;<NEW_LINE>for (level = 0; level <...
" q: " + modularityOptimization.getModularity());
1,034,419
protected ArrayList<Term<Blk>> iterateBlocks(Term<Sub> currentSub, SimpleBlockModel simpleBM, Listing listing) {<NEW_LINE>ArrayList<Term<Blk>> blockTerms = new ArrayList<Term<Blk>>();<NEW_LINE>try {<NEW_LINE>CodeBlockIterator blockIter = simpleBM.getCodeBlocksContaining(currentSub.getTerm().getAddresses(), getMonitor()...
, null), listing, currentBlock);
1,677,533
public Pair<? extends IBakedModel, Matrix4f> handlePerspective(@Nonnull ItemCameraTransforms.TransformType cameraTransformType) {<NEW_LINE>Pair<? extends IBakedModel, Matrix4f> perspective = parent.handlePerspective(cameraTransformType);<NEW_LINE>Vector4d rot = rots.apply(cameraTransformType);<NEW_LINE>if (rot == null)...
r * rot.w)));
1,428,113
public Mono<Response<Void>> deleteWithResponseAsync(String providerNamespace, String featureName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getSu...
)).readOnly()));
262,350
public static Map<String, Map<String, String>> convertRegister(Map<String, Map<String, String>> register) {<NEW_LINE>Map<String, Map<String, String>> newRegister = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Map<String, String>> entry : register.entrySet()) {<NEW_LINE>String serviceName = entry.getKey();<NEW_LINE>...
> serviceUrls = entry.getValue();
927,049
public boolean supports(CredentialItem... items) {<NEW_LINE>List<CredentialItem> <MASK><NEW_LINE>for (CredentialItem item : items) {<NEW_LINE>if (item instanceof CredentialItem.InformationalMessage && item.getPromptText() != null && item.getPromptText().contains(JGitText.get().sslFailureTrustExplanation)) {<NEW_LINE>co...
unprocessedItems = new ArrayList<>();
1,666,172
public Command<String> monitorMaster(Sentinel sentinel, String sentinelMonitorName, HostPort master, int quorum) {<NEW_LINE>SimpleObjectPool<NettyClient> clientPool = keyedClientPool.getKeyPool(new DefaultEndPoint(sentinel.getIp(), sentinel.getPort()));<NEW_LINE>AbstractSentinelCommand.SentinelMonitor command = new Abs...
cause().getMessage());
274,131
public static Map<String, Reader> resolveTemplates(JReleaserLogger logger, String distributionType, String toolName, boolean snapshot) {<NEW_LINE>String distributionTypeName = distributionType.toLowerCase().replace('_', '-');<NEW_LINE>Map<String, Reader> templates = new LinkedHashMap<>();<NEW_LINE>logger.debug(RB.$("te...
+ (snapshot ? "-snapshot" : "");
1,472,424
public final Object[] removeAll() {<NEW_LINE>Object[] list = new Object[numEntries];<NEW_LINE>numEntries = 0;<NEW_LINE>Object[] bucketValues;<NEW_LINE>Object[] bucketKeys;<NEW_LINE>// Empty all buckets.<NEW_LINE>try {<NEW_LINE>for (int i = numBuckets, counter = 0; i > 0; ) {<NEW_LINE>for (int j = bucketSizes[--i]; j > ...
debug(this, tc, "multithreaded access of JDBC objects by the Application");
333,803
public static boolean createSharedProject(FrontEndTool frontEndTool, final String projectName) throws Exception {<NEW_LINE>// create shared project against existing repository<NEW_LINE>System.err.println("SharedProjectUtil.createSharedProject(): " + projectName);<NEW_LINE>UtilProjectListener projectListener = new UtilP...
AbstractGenericTest.pressButton(finishButton, true);
1,054,532
public BeanDefinition parse(Element elt, ParserContext pc) {<NEW_LINE>String loginUrl = null;<NEW_LINE>String defaultTargetUrl = null;<NEW_LINE>String authenticationFailureUrl = null;<NEW_LINE>String alwaysUseDefault = null;<NEW_LINE>String successHandlerRef = null;<NEW_LINE>String failureHandlerRef = null;<NEW_LINE>//...
this.loginPage, pc, source);
1,803,542
public void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui) {<NEW_LINE>ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);<NEW_LINE>provider.setEnvironment(environment);<NEW_LINE>provider.setResourceLoader(resourceLoader);<NEW_LINE>provider.addIn...
new AnnotationTypeFilter(Entity.class));
457,573
protected IMetaStoreClient newClient() {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>return GET_CLIENT.invoke(hiveConf, (HiveMetaHookLoader) tbl -> null, HiveMetaStoreThriftClient.class.getName());<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>// any MetaException would be wrapped into RuntimeException during reflection,...
(MetaException) e.getCause();
241,906
public int compareTo(Tuple15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> other) {<NEW_LINE>int result = 0;<NEW_LINE>result = Tuples.compare(v1, other.v1);<NEW_LINE>if (result != 0)<NEW_LINE>return result;<NEW_LINE>result = Tuples.compare(v2, other.v2);<NEW_LINE>if (result != 0)<NEW_LINE>return res...
compare(v6, other.v6);
1,281,158
private static Number doSign(Object operandValue, QueryDataType operandType, QueryDataType resultType) {<NEW_LINE>Converter operandConverter = operandType.getConverter();<NEW_LINE>switch(resultType.getTypeFamily()) {<NEW_LINE>case TINYINT:<NEW_LINE>return (byte) Integer.signum(operandConverter.asInt(operandValue));<NEW...
(operandConverter.asInt(operandValue));
566,998
public okhttp3.Call updateUserCall(String username, User body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>...
localVarHeaderParams.put("Content-Type", localVarContentType);
1,739,078
final RemoveResourcePermissionResult executeRemoveResourcePermission(RemoveResourcePermissionRequest removeResourcePermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeResourcePermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
190,479
public RuleResult execute(final Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========ResourcewithSeverityVulnerabilityRule started=========");<NEW_LINE>Annotation annotation = null;<NEW_LINE>String instanceId = null;<NEW_LINE>String severity = <MASK><NEW_LINE>String ca...
ruleParam.get(PacmanRuleConstants.SEVERITY);
151,878
final CreateRuleGroupsNamespaceResult executeCreateRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest createRuleGroupsNamespaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleGroupsNamespaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "amp");
780,984
private void loadWiki() {<NEW_LINE>if (isRefreshing) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>isRefreshing = true;<NEW_LINE>swipeRefreshLayout.setRefreshing(true);<NEW_LINE>Glide.with(this).clear(mFetchWikiInfoImageView);<NEW_LINE>mFetchWikiInfoLinearLayout.setVisibility(View.GONE);<NEW_LINE>retrofit.create(RedditAPI.cla...
showErrorView(R.string.error_loading_wiki);
1,768,307
public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>// Get an instance of SystemProperty with the updated values from the form<NEW_LINE>PersistencePersp...
"|" + adminInstance.getLocaleCode());
1,306,021
final SkipWaitTimeForInstanceTerminationResult executeSkipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest skipWaitTimeForInstanceTerminationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(skipWaitTimeForInstanceTerminationRequest);<NEW_LINE>AWSRequestMetrics awsRe...
endClientExecution(awsRequestMetrics, request, response);
1,839,543
private Work arrivingMergeSameJob(AeiObjects aeiObjects, Manual manual, List<String> identities) throws Exception {<NEW_LINE>if (!BooleanUtils.isTrue(manual.getManualMergeSameJobActivity())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<String> exists = this.arrivingSameJobActivityExistIdentities(aeiObjects, manual)...
aeiObjects.getWork(), other);
650,890
public static DescribeActivationsResponse unmarshall(DescribeActivationsResponse describeActivationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeActivationsResponse.setRequestId(_ctx.stringValue("DescribeActivationsResponse.RequestId"));<NEW_LINE>describeActivationsResponse.setPageSize(_ctx.longValue("Describ...
= new ArrayList<Activation>();
316,218
protected Computation<Card[]> task(@NonNull Collection col, @NonNull ProgressSenderAndCancelListener<Progress> collectionTask) {<NEW_LINE>// query cards<NEW_LINE>Card[] cards = new Card[mCardIds.size()];<NEW_LINE>for (int i = 0; i < mCardIds.size(); i++) {<NEW_LINE>cards[i] = col.getCard(mCardIds.get(i));<NEW_LINE>}<NE...
.getDatabase().setTransactionSuccessful();
1,521,880
protected StringWriter doInBackground(java.lang.Object... params) {<NEW_LINE>if (params.length != 1) {<NEW_LINE>throw new IllegalArgumentException("The parameter to " + TextLoadAsyncTask.class.getName() + " must " + "be (1) the file location");<NEW_LINE>}<NEW_LINE>final String location = (String) params[0];<NEW_LINE>Fi...
IOException exc = sc.ioException();
197,547
private void renderOn(Writer writer, Match match) throws IOException {<NEW_LINE>writer.append("Found a ").append(String.valueOf(match.getLineCount())).append(" line (").append(String.valueOf(match.getTokenCount())).append(" tokens) duplication in the following files: ").append(PMD.EOL);<NEW_LINE>for (Iterator<Mark> occ...
lines = source.split("\n");
1,427,487
final ListProjectsResult executeListProjects(ListProjectsRequest listProjectsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProjectsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
613,980
public DoubleArray evaluate(PiecewisePolynomialResult pp, double xKey) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>ArgChecker.isFalse(Double.isNaN(xKey), "xKey containing NaN");<NEW_LINE>ArgChecker.isFalse(Double.isInfinite(xKey), "xKey containing Infinity");<NEW_LINE>DoubleArray knots = pp.getKnots();<NEW_LINE>i...
- 1 ? lowerBound - 1 : lowerBound;
1,545,029
private Object evaluateModulo(Object left, Object right) {<NEW_LINE>if (left instanceof Double || right instanceof Double) {<NEW_LINE>return ((Number) left).doubleValue() % ((Number) right).doubleValue();<NEW_LINE>} else if (left instanceof Float || right instanceof Float) {<NEW_LINE>return ((Number) left).floatValue()...
Number) right).longValue();
1,604,473
public static Language verifyLanguageFallbackToBase(final Language testLang) {<NEW_LINE>Check.assumeNotNull(testLang, "Parameter testLang is not null");<NEW_LINE>final String searchAD_Language = testLang.getAD_Language();<NEW_LINE>//<NEW_LINE>// Get available languages, having BaseLanguage first and then System Languag...
AD_Language.substring(0, 2);
1,557,078
static void store(DataOutputStream dos, Dictionary<String, ?> properties, String bundleLocation, Set<ConfigID> references, Set<String> uniqueVars) throws IOException {<NEW_LINE>writeObject(dos, bundleLocation);<NEW_LINE>if (uniqueVars != null) {<NEW_LINE>dos.<MASK><NEW_LINE>for (String var : uniqueVars) {<NEW_LINE>dos....
writeInt(uniqueVars.size());
865,720
public void execute() {<NEW_LINE>ensureArgCount(3);<NEW_LINE>final String tableName = getArg(0);<NEW_LINE>final int entryCount = getIntArg(1);<NEW_LINE>final String segmentStoreHost = getArg(2);<NEW_LINE>Preconditions.checkArgument(!isStreamMetadataTableName(tableName), "The given table %s is a stream metadata table. "...
).getKey())));
579,959
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("Transactiona...
.content, PARTITION_ID_FIELD_OFFSET, -1);
1,156,184
public static GetMonitorListResponse unmarshall(GetMonitorListResponse getMonitorListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMonitorListResponse.setRequestId(_ctx.stringValue("GetMonitorListResponse.RequestId"));<NEW_LINE>getMonitorListResponse.setMessage(_ctx.stringValue("GetMonitorListResponse.Message"));<N...
("GetMonitorListResponse.Data.Records[" + i + "].TaskId"));
816,644
public static ListAppInstanceResponse unmarshall(ListAppInstanceResponse listAppInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppInstanceResponse.setRequestId(_ctx.stringValue("ListAppInstanceResponse.RequestId"));<NEW_LINE>listAppInstanceResponse.setCode(_ctx.integerValue("ListAppInstanceResponse.Code"));...
("ListAppInstanceResponse.Data[" + i + "].PodIp"));
448,809
final AssociateSkillWithSkillGroupResult executeAssociateSkillWithSkillGroup(AssociateSkillWithSkillGroupRequest associateSkillWithSkillGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateSkillWithSkillGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
244,844
public void initVariableTypes() {<NEW_LINE>if (variableTypes == null) {<NEW_LINE>variableTypes = new DefaultVariableTypes();<NEW_LINE>if (customPreVariableTypes != null) {<NEW_LINE>for (VariableType customVariableType : customPreVariableTypes) {<NEW_LINE>variableTypes.addType(customVariableType);<NEW_LINE>}<NEW_LINE>}<...
(), objectMapper, jsonVariableTypeTrackObjects));
743,163
private static void parseAndApplyStyleToParameters(@Nonnull SimpleColoredComponent component, @Nonnull String placeholder) {<NEW_LINE>int lt = StringUtil.indexOf(placeholder, "<");<NEW_LINE>if (lt == -1) {<NEW_LINE>component.append(placeholder);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int gt = StringUtil.indexOf(placehold...
indexOf(placeholder, "<", gt);
1,046,907
public Request<ListTagsForStreamRequest> marshall(ListTagsForStreamRequest listTagsForStreamRequest) {<NEW_LINE>if (listTagsForStreamRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListTagsForStreamRequest)");<NEW_LINE>}<NEW_LINE>Request<ListTagsForStreamRequest> request...
String streamName = listTagsForStreamRequest.getStreamName();
106,394
private static BiFunction<AnnotatedValueResolver, ResolverContext, Object> resolver(List<RequestObjectResolver> objectResolvers, BeanFactoryId beanFactoryId) {<NEW_LINE>return (resolver, ctx) -> {<NEW_LINE>boolean found = false;<NEW_LINE>Object value = null;<NEW_LINE>for (final RequestObjectResolver objectResolver : ob...
).getSimpleName() + '\'');
648,509
private String addRuleInstance(final MultipartFile fileToUpload, CreateUpdateRuleDetails ruleDetails, String userId) throws PacManException {<NEW_LINE>if (ruleDetails != null) {<NEW_LINE>Date currentDate = new Date();<NEW_LINE>if (!isRuleIdExits(ruleDetails.getRuleId())) {<NEW_LINE>Rule newRuleDetails = new Rule();<NEW...
buildAndGetRuleParams(ruleDetails, ruleUUID, true);
398,444
public RegionDirectories[] listRegions(SelectionData selection) {<NEW_LINE>Map<Point2i, RegionDirectories> regionDirectories = new HashMap<>();<NEW_LINE>File[] r = this.region.listFiles((d, n) -> FileHelper.MCA_FILE_PATTERN.matcher(n).matches());<NEW_LINE>if (r != null) {<NEW_LINE>for (File f : r) {<NEW_LINE>Point2i <M...
l = FileHelper.parseMCAFileName(f);