idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
921,845 | public static DescribeClientVersionResponse unmarshall(DescribeClientVersionResponse describeClientVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClientVersionResponse.setRequestId(_ctx.stringValue("DescribeClientVersionResponse.RequestId"));<NEW_LINE>describeClientVersionResponse.setSuccess<MASK><NEW_LI... | (_ctx.booleanValue("DescribeClientVersionResponse.Success")); |
1,786,183 | public Decision canAllocate(final ShardRouting shardRouting, final RoutingAllocation allocation) {<NEW_LINE>final RecoverySource recoverySource = shardRouting.recoverySource();<NEW_LINE>if (recoverySource == null || recoverySource.getType() != RecoverySource.Type.SNAPSHOT) {<NEW_LINE>return allocation.decision(Decision... | allocation.custom(RestoreInProgress.TYPE); |
177,587 | public void uploadExecutableFlow(final ExecutableFlow flow) throws ExecutorManagerException {<NEW_LINE>final String useExecutorParam = flow.getExecutionOptions().getFlowParameters().get(ExecutionOptions.USE_EXECUTOR);<NEW_LINE>final String executorId = StringUtils.isNotEmpty(useExecutorParam) ? useExecutorParam : null;... | executionSource, dispatchMethod.getNumVal()); |
847,185 | public Set<String> doGetExpired(long timeLimit) {<NEW_LINE>// now ask mongo to find sessions for this context, last managed by any<NEW_LINE>// node, that expired before timeLimit<NEW_LINE>Set<String> <MASK><NEW_LINE>BasicDBObject query = new BasicDBObject();<NEW_LINE>BasicDBObject gt = new BasicDBObject(__EXPIRY, new B... | expiredSessions = new HashSet<>(); |
695,955 | private void jbInit() throws Exception {<NEW_LINE>CompiereColor.setBackground(panel);<NEW_LINE>newBorder = new TitledBorder("");<NEW_LINE>accountBorder = new TitledBorder("");<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>newPanel.setBorder(newBorder);<NEW_LINE>newPanel.setLayout(newLayout);<NEW_LINE>newBorder.set... | 5), 0, 0)); |
1,738,957 | public static Kernel makeKernel(final float radius) {<NEW_LINE>final int r = (int) Math.ceil(radius);<NEW_LINE>final int rows = r * 2 + 1;<NEW_LINE>final float[<MASK><NEW_LINE>final float sigma = radius / 3;<NEW_LINE>final float sigma22 = 2 * sigma * sigma;<NEW_LINE>final float sigmaPi2 = 2 * ImageMath.PI * sigma;<NEW_... | ] matrix = new float[rows]; |
1,731,915 | public IdToken create(ClientDetails clientDetails, UaaUser uaaUser, UserAuthenticationData userAuthenticationData) throws IdTokenCreationException {<NEW_LINE>Date expiryDate = tokenValidityResolver.<MASK><NEW_LINE>Date issuedAt = timeService.getCurrentDate();<NEW_LINE>String givenName = getIfScopeContainsProfile(uaaUse... | resolve(clientDetails.getClientId()); |
1,350,828 | public void run() {<NEW_LINE>try {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {<NEW_LINE>WindowInsetsController controller = getActivity()<MASK><NEW_LINE>if (controller != null) {<NEW_LINE>controller.hide(WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars());<NEW_LINE>controller.setSyst... | .getWindow().getInsetsController(); |
146,563 | public AuthOutcome authenticate(HttpFacade exchange) {<NEW_LINE>List<String> authHeaders = exchange.getRequest().getHeaders("Authorization");<NEW_LINE>if (authHeaders == null || authHeaders.isEmpty()) {<NEW_LINE>challenge = challengeResponse(exchange, OIDCAuthenticationError.Reason.NO_BEARER_TOKEN, null, null);<NEW_LIN... | Integer) authHeaders.size()); |
636,863 | public NetworkACLItemResponse createNetworkACLItemResponse(NetworkACLItem aclItem) {<NEW_LINE>NetworkACLItemResponse response = new NetworkACLItemResponse();<NEW_LINE>response.setId(aclItem.getUuid());<NEW_LINE>response.setProtocol(aclItem.getProtocol());<NEW_LINE>if (aclItem.getSourcePortStart() != null) {<NEW_LINE>re... | setNumber(aclItem.getNumber()); |
1,021,102 | public static void datasetHtmlDDI(InputStream datafile, OutputStream outputStream) throws XMLStreamException {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>try {<NEW_LINE>Document document;<NEW_LINE>InputStream styleSheetInput = DdiExportUtil.class.getClassLoader().getResourc... | "SAX error " + sxe.getMessage()); |
1,099,759 | public com.amazonaws.services.lakeformation.model.ResourceNumberLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lakeformation.model.ResourceNumberLimitExceededException resourceNumberLimitExceededException = new com.amazonaws.services.lake... | int originalDepth = context.getCurrentDepth(); |
716,078 | public void run(Object[] objects, ZContext zContext, Socket socket) {<NEW_LINE>File file = new File("testdata");<NEW_LINE>FileInputStream fr;<NEW_LINE>try {<NEW_LINE>fr = new FileInputStream(file);<NEW_LINE>} catch (FileNotFoundException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Socket rou... | < 0 ? 0 : size)); |
1,188,429 | public RoutineLoadJob checkPrivAndGetJob(String dbName, String jobName) throws MetaNotFoundException, DdlException, AnalysisException {<NEW_LINE>RoutineLoadJob routineLoadJob = getJob(dbName, jobName);<NEW_LINE>if (routineLoadJob == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// check auth<NEW_LINE>String dbFullName;<N... | throw new DdlException("There is not operable routine load job with name " + jobName); |
484,784 | public static void onHarvest(@Nonnull BlockEvent.HarvestDropsEvent event) {<NEW_LINE>final World world = event.getWorld();<NEW_LINE>if (world == null || world.isRemote || event.getHarvester() == null || event.isSilkTouching() || !isEquipped(event.getHarvester())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IBlockState... | list = new NNList<>(); |
1,776,295 | private void loadFile(File file) throws SAXException, IOException {<NEW_LINE>if (!file.exists())<NEW_LINE>return;<NEW_LINE>if (!file.getName().endsWith(".xml"))<NEW_LINE>return;<NEW_LINE>if (file.getName().equals("build.xml"))<NEW_LINE>return;<NEW_LINE>log.log(Level.CONFIG, "Loading file: " + file);<NEW_LINE>Document d... | toString() + " failed.", e); |
850,563 | protected List<MetadataValueDTO> collection2Metadata(Collection collection) {<NEW_LINE>List<MetadataValueDTO> metadata = new ArrayList<>();<NEW_LINE>String description = collectionService.getMetadataFirstValue(collection, CollectionService.MD_INTRODUCTORY_TEXT, Item.ANY);<NEW_LINE>String description_abstract = collecti... | ("rights.license", null, rights_license)); |
705,480 | private void writeSetUpdateToXml(EwsServiceXmlWriter writer, PropertyDefinition propertyDefinition) throws Exception {<NEW_LINE>// The following test should not be necessary since the property bag<NEW_LINE>// prevents<NEW_LINE>// property to be updated if they don't have the CanUpdate flag, but<NEW_LINE>// it<NEW_LINE>... | getOwner().getSetFieldXmlElementName()); |
701,275 | public List<OpenLineage.OutputDataset> apply(AlterTable alterTable) {<NEW_LINE>TableCatalog tableCatalog = alterTable.catalog();<NEW_LINE>Table table;<NEW_LINE>try {<NEW_LINE>table = alterTable.catalog().<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>Optional<Datase... | loadTable(alterTable.ident()); |
1,420,335 | private void sendErrorResponse(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException {<NEW_LINE>OAuth2AuthorizationCodeRequestAuthenticationException authorizationCodeRequestAuthenticationException = (OAuth2AuthorizationCodeRequestAuthenticationException) except... | ERROR_DESCRIPTION, error.getDescription()); |
1,492,675 | public static FSDerivedValue newDerivedValue(CalculatedStyle style, CSSName cssName, PropertyValue value) {<NEW_LINE>if (value.getCssValueType() == CSSValue.CSS_INHERIT) {<NEW_LINE>return style.getParent().valueByName(cssName);<NEW_LINE>}<NEW_LINE>switch(value.getPropertyValueType()) {<NEW_LINE>case PropertyValue.VALUE... | return new FunctionValue(cssName, value); |
670,178 | private void buildWhere(JoinNode planNode, MysqlVisitor leftVisitor, MysqlVisitor rightVisitor) {<NEW_LINE>if (!visited)<NEW_LINE>replaceableSqlBuilder.getCurrentElement().setRepString(replaceableWhere);<NEW_LINE>StringBuilder whereBuilder = new StringBuilder();<NEW_LINE>Item filter = planNode.getWhereFilter();<NEW_LIN... | pdName = visitUnSelPushDownName(filter, false); |
339,862 | IterableSet patch_PackageContext(IterableSet currentContext) {<NEW_LINE>IterableSet newContext = new IterableSet();<NEW_LINE><MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>String currentPackage = (String) it.next(), newPackage = null;<NEW_LINE>StringTokenizer st = new StringTokenizer(currentPackage, ".");<NEW_LINE>if ... | Iterator it = currentContext.iterator(); |
1,085,813 | public boolean prompt(final Host bookmark, final String message, final LoginCallback prompt, final LoginOptions options) throws LoginCanceledException {<NEW_LINE>final Credentials credentials = bookmark.getCredentials();<NEW_LINE>if (options.password) {<NEW_LINE>final Credentials input = prompt.prompt(bookmark, credent... | setToken(input.getPassword()); |
89,257 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>currentFilterOptions = getArguments().getParcelable(BundleConstant.ITEM);<NEW_LINE>if (currentFilterOptions == null)<NEW_LINE>return;<NEW_LINE>ArrayAdapter<String> typesA... | simple_list_item_1, currentFilterOptions.getSortDirectionList()); |
51,216 | public static ByteBuffer[] collectv(EObject io_list) {<NEW_LINE>final List<ByteBuffer> list = new ArrayList<ByteBuffer>();<NEW_LINE>final IO.BARR[] barr = new IO.BARR[1];<NEW_LINE>io_list.visitIOList(new EIOListVisitor() {<NEW_LINE><NEW_LINE>private void flush() {<NEW_LINE>if (barr[0] != null) {<NEW_LINE>list.add(barr[... | [0].wrap()); |
1,499,779 | public DoubleMatrix apply(DoubleArray x) {<NEW_LINE>SabrParametersIborCapletFloorletVolatilities volsNew = updateParameters(volatilities, nExpiries, timeIndex, betaFixed, x);<NEW_LINE>double[][] jacobian = new double[nCaplets][4];<NEW_LINE>for (int i = 0; i < nCaplets; ++i) {<NEW_LINE>PointSensitivities point = capList... | [i][2] = 0d; |
1,078,366 | private JComponent createGainPanel() {<NEW_LINE>final JSlider gainSlider;<NEW_LINE>gainSlider = new JSlider(0, 200);<NEW_LINE>gainSlider.setValue(100);<NEW_LINE>gainSlider.setPaintLabels(true);<NEW_LINE>gainSlider.setPaintTicks(true);<NEW_LINE>final JLabel label = new JLabel("Gain: 100%");<NEW_LINE>gainSlider.addChange... | new JPanel(new BorderLayout()); |
1,596,129 | public com.squareup.okhttp.Call statsHistoryUSDAsync(final ApiCallback<List<StatsUSD>> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW_LINE>if (callback != null) {<NEW_LINE>pr... | executeAsync(call, localVarReturnType, callback); |
461,338 | public Dataset createOrUpdateDataset(Dataset dataset, String workspaceName, boolean create, UserInfo userInfo) throws ModelDBException, NoSuchAlgorithmException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var repositoryIdBuilder = RepositoryIdentification.newBuilder(... | (dataset.getId())); |
330,704 | public void onUsingTick(ItemStack stack, LivingEntity user, int count) {<NEW_LINE>int inUse = this.getUseDuration(stack) - count;<NEW_LINE>if (inUse > getChargeTime(stack) && inUse % 20 == user.getRandom().nextInt(20)) {<NEW_LINE>user.level.playSound(null, user.getX(), user.getY(), user.getZ(), IESounds.spark, SoundSou... | shader = ShaderRegistry.getStoredShaderAndCase(stack); |
1,161,492 | public static void vertical(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int offset = UtilDownConvolve.... | * input.stride]) * w; |
577,400 | private static ClassNode findGenericsTypeHolderForClass(ClassNode source, ClassNode type) {<NEW_LINE>if (isPrimitiveType(source))<NEW_LINE>source = getWrapper(source);<NEW_LINE>if (source.equals(type))<NEW_LINE>return source;<NEW_LINE>if (type.isInterface()) {<NEW_LINE>for (ClassNode interfaceNode : source.getAllInterf... | ] = genericsTypeMap.get(gtn); |
1,173,850 | public void toEPL(StringWriter writer) {<NEW_LINE>writer.write(" match_recognize (");<NEW_LINE>if (partitionExpressions.size() > 0) {<NEW_LINE>String delimiter = "";<NEW_LINE>writer.write(" partition by ");<NEW_LINE>for (Expression part : partitionExpressions) {<NEW_LINE>writer.write(delimiter);<NEW_LINE>part.toEPL(wri... | toEPL(writer, ExpressionPrecedenceEnum.MINIMUM); |
1,162,199 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>Preconditions.checkNotNull(environment, "Error: Argument environment can't be null");<NEW_LINE>Preconditions.checkNotNull(instruction,... | environment, offset, operand, true); |
1,042,085 | private static ServerBuilder configureService(ServerBuilder sb, HttpHandler httpHandler, DataBufferFactoryWrapper<?> factoryWrapper, @Nullable String serverHeader) {<NEW_LINE>final ArmeriaHttpHandlerAdapter handler = new ArmeriaHttpHandlerAdapter(httpHandler, factoryWrapper);<NEW_LINE>return sb.route().addRoute(Route.o... | future, serverHeader).subscribe(); |
1,444,024 | protected AppDefinitionRepresentation createRepresentation(AppDefinition appDefinition, BaseAppModel baseAppModel) {<NEW_LINE>AppDefinitionRepresentation resultAppDef = new AppDefinitionRepresentation();<NEW_LINE>resultAppDef.setAppDefinitionId(appDefinition.getId());<NEW_LINE>resultAppDef.setAppDefinitionKey(appDefini... | setIcon(baseAppModel.getIcon()); |
1,726,510 | private String fixQuery(boolean isSPARUL, String query, Dataset dataset, boolean includeInferred, BindingSet bindings, List<Value> pstmtParams, String baseURI) throws RepositoryException {<NEW_LINE>boolean added_def_graph = false;<NEW_LINE>Set<URI> list;<NEW_LINE>String removeGraph = null;<NEW_LINE>String insertGraph =... | append(" BASE <" + baseURI + "> \n"); |
1,588,792 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.<MASK><NEW_LINE>if (player == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterCard filter = new FilterCreatureCard("creature card with th... | getPermanent(source.getFirstTarget()); |
968,781 | public void transform(Row row, PointCollector collector) throws IOException, UDFInputSeriesDataTypeNotValidException {<NEW_LINE>boolean needAddNewRecord;<NEW_LINE>switch(dataType) {<NEW_LINE>case INT32:<NEW_LINE>needAddNewRecord = transformInt(row.getTime(), row.getInt(0));<NEW_LINE>break;<NEW_LINE>case INT64:<NEW_LINE... | , row.getLong(0)); |
252,513 | public void marshall(GlacierJobDescription glacierJobDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (glacierJobDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(glacierJobDescription... | glacierJobDescription.getCreationDate(), CREATIONDATE_BINDING); |
1,119,808 | public void marshall(TransferDomainRequest transferDomainRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transferDomainRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>proto... | transferDomainRequest.getDomainName(), DOMAINNAME_BINDING); |
1,620,197 | private void updateSeparateViews(ModeAccessor[] separateModeAccessors) {<NEW_LINE>Map<ModeView, ModeAccessor> newViews = new HashMap<ModeView, ModeAccessor>();<NEW_LINE>for (int i = 0; i < separateModeAccessors.length; i++) {<NEW_LINE>ModeAccessor ma = separateModeAccessors[i];<NEW_LINE>ModeView mv = (ModeView) updateV... | Window) comp).dispose(); |
768,190 | private void processType(ResolvableType type, InspectionCache cache, Consumer<TypeModel> callback) {<NEW_LINE>if (ResolvableType.NONE.equals(type) || cache.contains(type.toClass()) || !typeFilter.test(type.toClass())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TypeModel result = new TypeModel(type.toClass());<NEW_LINE>cach... | (visitConstructorsOfType(type, result)); |
506,847 | public void visit(AssignmentStatement statement) {<NEW_LINE>pushLocation(statement.getLocation());<NEW_LINE>if (statement.getLeftValue() != null) {<NEW_LINE>if (statement.getLeftValue() instanceof QualificationExpr) {<NEW_LINE>QualificationExpr qualification = (QualificationExpr) statement.getLeftValue();<NEW_LINE>Fiel... | .forMemberField(field) + ") = TEAVM_PACK_MONITOR("); |
1,816,848 | private List<EdgeWeightedDigraphInterface> generateDigraphsWithNotManyNegativeCycles(int digraphsOfEachConfiguration) {<NEW_LINE>int[] verticesCount = { 10, 20, 50, 100 };<NEW_LINE>// E = V * edgesMultiplier[i]<NEW_LINE>double[] edgesMultiplier = { 1, 1.5, 1.7 };<NEW_LINE>int largePercentageOfNegativeWeights = 60;<NEW_... | randomEdgeWeightedDigraph = randomEdgeWeightedDigraphs.get(0); |
547,355 | public boolean solvePositionConstraints(SolverData data) {<NEW_LINE>Vec2 cA = <MASK><NEW_LINE>float aA = data.positions[m_indexA].a;<NEW_LINE>Vec2 cB = data.positions[m_indexB].c;<NEW_LINE>float aB = data.positions[m_indexB].a;<NEW_LINE>final Rot qA = pool.popRot();<NEW_LINE>final Rot qB = pool.popRot();<NEW_LINE>final... | data.positions[m_indexA].c; |
385,499 | public com.amazonaws.services.resiliencehub.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.resiliencehub.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.resiliencehub.model.ResourceNotFoundE... | JsonToken token = context.getCurrentToken(); |
319,962 | public static String constructNewName(FileObject javaFile, RenameRefactoring rename) {<NEW_LINE>final String fqn = JavaIdentifiers.getQualifiedName(javaFile);<NEW_LINE>if (isPackage(rename)) {<NEW_LINE>return rename.getNewName() + "." + JavaIdentifiers.unqualify(fqn);<NEW_LINE>}<NEW_LINE>final FileObject folder = renam... | root = classPath.findOwnerRoot(folder); |
1,121,783 | protected void processNodePaths(Terminal terminal, Path[] dataPaths, OptionSet options, Environment env) throws IOException, UserException {<NEW_LINE>final List<String> customsToRemove = arguments.values(options);<NEW_LINE>if (customsToRemove.isEmpty()) {<NEW_LINE>throw new UserException(ExitCodes.USAGE, "Must supply a... | USAGE, "No custom metadata matching [" + customToRemove + "] were found on this node"); |
1,370,361 | public static void main(String[] args) throws InterruptedException {<NEW_LINE>// getInstance().retry("test", k -> {<NEW_LINE>// System.out.println("Requesting "+k);<NEW_LINE>// if (ThreadLocalRandom.current().nextBoolean()) {<NEW_LINE>// System.out.println("Error");<NEW_LINE>// getInstance().setError(k);<NEW_LINE>// }<... | ).manager.debug()); |
1,146,024 | private boolean nonScalarMappingEntryExists(Yaml.Mapping.Document document, Yaml.Mapping.Entry entry, String property, P p) {<NEW_LINE>AtomicBoolean exists = new AtomicBoolean(false);<NEW_LINE>String propertyToCheck = Boolean.TRUE.equals(relaxedBinding) ? NameCaseConvention.format(NameCaseConvention.LOWER_CAMEL, proper... | }.visitDocument(document, p); |
470,234 | private void insideAnnotationAttribute(Env env, TreePath annotationPath, Name attributeName) throws IOException {<NEW_LINE>CompilationController controller = env.getController();<NEW_LINE>controller.toPhase(Phase.ELEMENTS_RESOLVED);<NEW_LINE>Trees trees = controller.getTrees();<NEW_LINE>AnnotationTree at = (AnnotationT... | , at.getAnnotationType())); |
382,008 | private ContentValues mapStory(Map<String, Object> map, Story.FILTER filter, Integer rank) {<NEW_LINE>ContentValues storyValues = new ContentValues();<NEW_LINE>try {<NEW_LINE>String by = (String) map.get("by");<NEW_LINE>Long id = (Long) map.get("id");<NEW_LINE>String type = (String) map.get("type");<NEW_LINE>Long time ... | HNewsContract.StoryEntry.COMMENTS, descendants); |
820,586 | private void refreshDetails(@NonNull MapObject mapObject) {<NEW_LINE>refreshLatLon(mapObject);<NEW_LINE>if (mSponsored == null || mSponsored.getType() != Sponsored.TYPE_BOOKING) {<NEW_LINE>String website = mapObject.getMetadata(Metadata.MetadataType.FMD_WEBSITE);<NEW_LINE>String url = mapObject.getMetadata(Metadata.Met... | Editor.nativeShouldShowEditPlace(), mEditPlace); |
637,814 | default CompletableFuture<Void> writeVariable(TraceThread thread, int frameLevel, Address address, byte[] data) {<NEW_LINE>if (address.isMemoryAddress()) {<NEW_LINE>return writeMemory(address, data);<NEW_LINE>}<NEW_LINE>if (address.isRegisterAddress()) {<NEW_LINE>Language lang = getTrace().getBaseLanguage();<NEW_LINE>R... | throw new IllegalArgumentException("Cannot identify the (single) register to write: " + address); |
562,147 | public String importWkfModels(MetaFile metaFile, boolean isTranslate, String sourceLanguage, String targetLanguage) throws AxelorException {<NEW_LINE>if (metaFile == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String extension = Files.getFileExtension(metaFile.getFileName());<NEW_LINE>if (extension == null || !ex... | Beans.get(MetaFileRepository.class); |
1,818,366 | public RuntimeHintDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RuntimeHintDetails runtimeHintDetails = new RuntimeHintDetails();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t... | int originalDepth = context.getCurrentDepth(); |
1,574,078 | public <M extends JbootModel> M joinMany(M model, ObjectFunc<M> modelValueGetter, String targetColumnName, String joinName, String[] attrs) {<NEW_LINE>if (model == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Object value = modelValueGetter != null ? modelValueGetter.get(<MASK><NEW_LINE>if (value == null) {<NEW_LI... | model) : model._getIdValue(); |
396,194 | public MaterialCockpitRow createIncludedRow(@NonNull final MainRowWithSubRows mainRowBucket) {<NEW_LINE>final MainRowBucketId productIdAndDate = assumeNotNull(mainRowBucket.getProductIdAndDate(), "productIdAndDate may not be null; mainRowBucket={}", mainRowBucket);<NEW_LINE>return MaterialCockpitRow.attributeSubRowBuil... | allIncludedStockRecordIds(stockRecordIds).build(); |
1,001,653 | public boolean performFinish() {<NEW_LINE>final IGithubManager ghManager = GitPlugin<MASK><NEW_LINE>final String owner = cloneSource.getOwner();<NEW_LINE>final String repoName = cloneSource.getRepoName();<NEW_LINE>// TODO Allow selecting a destination org to fork to!<NEW_LINE>// cloneSource.getOrganization();<NEW_LINE>... | .getDefault().getGithubManager(); |
1,297,975 | public static void locateFiles(final DownloadManager[] dms, final DiskManagerFileInfo[][] dm_files, Shell shell) {<NEW_LINE>if (!Utils.isSWTThread()) {<NEW_LINE>Utils.execSWTThread(() -> {<NEW_LINE>locateFiles(dms, dm_files, shell);<NEW_LINE>});<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean all_bad = true;<NEW_LINE>bool... | , MessageText.getString("dlg.finddatafiles.dms.all.bad")); |
993,529 | final ForkJoinTask<?>[] growArray() {<NEW_LINE>ForkJoinTask<?>[] oldA = array;<NEW_LINE>int size = oldA != null <MASK><NEW_LINE>if (size > MAXIMUM_QUEUE_CAPACITY)<NEW_LINE>throw new RejectedExecutionException("Queue capacity exceeded");<NEW_LINE>int oldMask, t, b;<NEW_LINE>ForkJoinTask<?>[] a = array = new ForkJoinTask... | ? oldA.length << 1 : INITIAL_QUEUE_CAPACITY; |
1,787,989 | public static String formatDelay(Number data) {<NEW_LINE>if (data == null) {<NEW_LINE>return StringUtils.EMPTY;<NEW_LINE>}<NEW_LINE>long t = data.longValue();<NEW_LINE>if (t < 0) {<NEW_LINE>return String.valueOf(t);<NEW_LINE>}<NEW_LINE>int hour = 0;<NEW_LINE>int minute = 0;<NEW_LINE>while (t >= 60 * 60 * 1000) {<NEW_LI... | result.add(minute + " m"); |
781,424 | public BDDBitVector divmod(long c, boolean which) {<NEW_LINE>if (c <= 0L) {<NEW_LINE>throw new BDDException();<NEW_LINE>}<NEW_LINE>BDDFactory bdd = getFactory();<NEW_LINE>BDDBitVector divisor = bdd.<MASK><NEW_LINE>BDDBitVector tmp = bdd.buildVector(bitvec.length, false);<NEW_LINE>BDDBitVector tmpremainder = tmp.shl(1, ... | constantVector(bitvec.length, c); |
1,576,810 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>String url = getIntent().getStringExtra(EXTRA_URL);<NEW_LINE>if (TextUtils.isEmpty(url)) {<NEW_LINE>finish();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setTitle(url);<NEW_LINE>setContentView(R.layout.activity_offline_w... | findViewById(R.id.progress); |
81,773 | public Texture validateMaskTexture(MaskData maskData, boolean canScale) {<NEW_LINE>int pad = canScale ? 1 : 0;<NEW_LINE>int needW = maskData.getWidth() + pad + pad;<NEW_LINE>int needH = maskData.getHeight() + pad + pad;<NEW_LINE>int texW = 0, texH = 0;<NEW_LINE>if (maskTex != null) {<NEW_LINE>maskTex.lock();<NEW_LINE>i... | .max(needH, texH)); |
542,052 | public CloseResponseM2C consumerCloseClientC2M(CloseRequestC2M request, final String rmtAddress, boolean overtls) throws Exception {<NEW_LINE>StringBuilder strBuffer = new StringBuilder(512);<NEW_LINE>CloseResponseM2C.Builder builder = CloseResponseM2C.newBuilder();<NEW_LINE>builder.setSuccess(false);<NEW_LINE>Certifie... | request.getAuthInfo(), false); |
1,748,123 | public void onViewClick(View v, FileInfo fileInfo) {<NEW_LINE>if (fileInfo.file.isFile()) {<NEW_LINE>Bundle bundle = new Bundle();<NEW_LINE>bundle.putSerializable(BundleKey.FILE_KEY, fileInfo.file);<NEW_LINE>if (DoKitFileUtil.isImage(fileInfo.file)) {<NEW_LINE><MASK><NEW_LINE>} else if (DoKitFileUtil.isDB(fileInfo.file... | showContent(ImageDetailFragment.class, bundle); |
1,516,692 | public DataSet next(int num) {<NEW_LINE>if (exampleStartOffsets.size() == 0)<NEW_LINE>throw new NoSuchElementException();<NEW_LINE>int currMinibatchSize = Math.min(<MASK><NEW_LINE>// Allocate space:<NEW_LINE>// Note the order here:<NEW_LINE>// dimension 0 = number of examples in minibatch<NEW_LINE>// dimension 1 = size... | num, exampleStartOffsets.size()); |
1,535,554 | protected ClusterState.Builder becomeMasterAndTrimConflictingNodes(ClusterState currentState, List<Task> joiningNodes) {<NEW_LINE>assert currentState.nodes().getMasterNodeId() == null : currentState;<NEW_LINE>DiscoveryNodes currentNodes = currentState.nodes();<NEW_LINE>DiscoveryNodes.Builder nodesBuilder = DiscoveryNod... | (tmpState, false, "removed dead nodes on election")); |
1,320,890 | public static Object dialogSelectFiles(String fileExts, String currentDirectory, String buttonText, Object oldFiles, boolean multiSelect, String dialogTitle, Component parent) {<NEW_LINE>if (currentDirectory == null) {<NEW_LINE>currentDirectory = ConfigOptions.sLastDirectory;<NEW_LINE>}<NEW_LINE>fileExts = fileExts.toL... | dot = fileExt.indexOf("."); |
1,473,171 | private boolean pingLDAP(StringBuilder sb) {<NEW_LINE>Properties env = new Properties();<NEW_LINE>env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");<NEW_LINE>env.<MASK><NEW_LINE>if (url != null && url.startsWith(LDAPS_URL)) {<NEW_LINE>env.put(LDAP_SOCKET_FACTORY, DEFAULT_SSL_LDAP_SOCKET_FACTO... | put(Context.PROVIDER_URL, url); |
764,280 | public void rmspropUpdate(NDList inputs, NDList weights, float learningRate, float weightDecay, float rescaleGrad, float clipGrad, float gamma1, float gamma2, float epsilon, boolean centered) {<NEW_LINE>MxOpParams params = new MxOpParams();<NEW_LINE>params.addParam("lr", learningRate);<NEW_LINE>params.addParam("wd", we... | params.addParam("gamma1", gamma1); |
1,334,989 | private void calcMainUnknownWordToSearch() {<NEW_LINE>if (mainUnknownWordToSearch != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> unknownSearchWords = otherUnknownWords;<NEW_LINE>mainUnknownWordToSearch = firstUnknownSearchWord;<NEW_LINE>mainUnknownSearchWordComplete = lastUnknownSearchWordComplete;<NEW_LI... | Collections.sort(searchWords, commonWordsComparator); |
1,527,205 | // rb_reg_initialize<NEW_LINE>public final RubyRegexp regexpInitialize(ByteList bytes, Encoding enc, RegexpOptions options) {<NEW_LINE>Ruby runtime = metaClass.runtime;<NEW_LINE>this.options = options;<NEW_LINE>checkFrozen();<NEW_LINE>// FIXME: Something unsets this bit, but we aren't...be more permissive until we figu... | runtime, unescaped, enc, options); |
974,606 | public String sqlAction_checkDependencyExists(String vendorName, String catalogName, String schemaName, String localTableName, String localColumnName, String checkColumnName, String checkCondition, String foreignTableName, String foreignColumnName) {<NEW_LINE>// SELECT COUNT(foreignColumnName) FROM foreignTableName frn... | = new ArrayList<String>(); |
672,969 | public Request<GetUserEndpointsRequest> marshall(GetUserEndpointsRequest getUserEndpointsRequest) {<NEW_LINE>if (getUserEndpointsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetUserEndpointsRequest)");<NEW_LINE>}<NEW_LINE>Request<GetUserEndpointsRequest> request = new... | (getUserEndpointsRequest.getUserId())); |
1,703,743 | public <A extends Annotation> ExpressionResult checkPermission(Class<A> annotationClass, PersistentResource resource, Set<String> requestedFields) {<NEW_LINE>Supplier<Expression> expressionSupplier = () -> {<NEW_LINE>if (NonTransferable.class == annotationClass) {<NEW_LINE>if (requestScope.getDictionary().isTransferabl... | annotationClass, requestedFields, expressionSupplier, expressionExecutor); |
284,343 | // --- end defect #217279<NEW_LINE>static KeyStroke[] showDialog() {<NEW_LINE>Object[] buttons = new Object[] { DialogDescriptor.OK_OPTION, DialogDescriptor.CANCEL_OPTION };<NEW_LINE>final ShortcutEnterPanel sepPanel = new ShortcutEnterPanel();<NEW_LINE>DialogDescriptor descriptor = new DialogDescriptor(sepPanel, sepPa... | .OK_OPTION, DialogDescriptor.CANCEL_OPTION }); |
959,301 | public static TotalPhysicalMemoryNotificationInfo from(CompositeData cd) {<NEW_LINE>TotalPhysicalMemoryNotificationInfo result = null;<NEW_LINE>if (cd != null) {<NEW_LINE>// Does cd meet the necessary criteria to create a new<NEW_LINE>// TotalPhysicalMemoryNotificationInfo ? If not then one of the<NEW_LINE>// following... | ManagementUtils.verifyFieldNames(cd, attributeNames); |
794,049 | public Long addNewComplexTaskOutline(ComplexTaskOutlineRecord complexTaskOutlineRecord) {<NEW_LINE>try {<NEW_LINE>List<Map<Integer, ParameterContext>> paramsBatch = new ArrayList<>();<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>();<NEW_LINE>int index = 1;<NEW_LINE>MetaDbUtil.setParameter(index++, para... | INSERT_COMPLEXTASK_OUTLINE, paramsBatch, this.connection); |
1,543,289 | private void generateNewInstance(GeneratorContext context, SourceWriter writer) throws IOException {<NEW_LINE>String cls = context.getParameterName(1);<NEW_LINE>writer.append("if").ws().append("($rt_resuming())").ws().append("{").indent().softNewLine();<NEW_LINE>writer.append("var $r = $rt_nativeThread().pop();").softN... | append("return $r;").softNewLine(); |
378,414 | void renderDetails(Node node) {<NEW_LINE>String name = node.getNodeName();<NEW_LINE>if (name.equals("parameters")) {<NEW_LINE>assembly.append('\n').append(indentation(this.indentLevel)).append("Parameters:\n");<NEW_LINE>indentLevel += 4;<NEW_LINE>DomUtilities.traverseChildren(node, this::renderParameter, Node.ELEMENT_N... | this::renderThrow, Node.ELEMENT_NODE); |
1,432,821 | private Mono<PagedResponse<AnomalyIncident>> listIncidentsForAlertSinglePageAsync(String alertConfigurationId, String alertId, ListIncidentsAlertedOptions options, Context context) {<NEW_LINE><MASK><NEW_LINE>Objects.requireNonNull(alertId, "'alertId' is required.");<NEW_LINE>final Context withTracing = context.addData(... | Objects.requireNonNull(alertConfigurationId, "'alertConfigurationId' is required."); |
1,541,917 | protected Map<String, Object> buildCustomHeaders(ServiceBusReceivedMessage message) {<NEW_LINE>Map<String, Object> headers = new HashMap<>();<NEW_LINE>// Spring MessageHeaders<NEW_LINE>setValueIfHasText(headers, MessageHeaders.ID, message.getMessageId());<NEW_LINE>setValueIfHasText(headers, MessageHeaders.CONTENT_TYPE,... | SESSION_ID, message.getSessionId()); |
11,979 | private Versioned<Object> convertStringToObject(String key, Versioned<String> value) {<NEW_LINE>Object valueObject = null;<NEW_LINE>if (CLUSTER_KEY.equals(key)) {<NEW_LINE>valueObject = clusterMapper.readCluster(new StringReader(value.getValue()));<NEW_LINE>} else if (STORES_KEY.equals(key)) {<NEW_LINE>valueObject = st... | (value.getValue())); |
1,034,921 | final ExecuteTransactionResult executeExecuteTransaction(ExecuteTransactionRequest executeTransactionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(executeTransactionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "DynamoDB"); |
764,475 | private static WFActivity toWFActivity(final ManufacturingJobActivity jobActivity) {<NEW_LINE>final WFActivity.WFActivityBuilder builder = WFActivity.builder().id(WFActivityId.ofId(jobActivity.getId())).caption(TranslatableStrings.anyLanguage(jobActivity.getName())).status(jobActivity.getStatus());<NEW_LINE>switch(jobA... | RawMaterialsIssueActivityHandler.HANDLED_ACTIVITY_TYPE).build(); |
627,607 | final UpdateThemePermissionsResult executeUpdateThemePermissions(UpdateThemePermissionsRequest updateThemePermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThemePermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
219,280 | private void init() {<NEW_LINE>facade = Overlap2DFacade.getInstance();<NEW_LINE>projectManager = facade.retrieveProxy(ProjectManager.NAME);<NEW_LINE>resourceManager = facade.retrieveProxy(ResourceManager.NAME);<NEW_LINE>UIStageMediator uiStageMediator = facade.retrieveMediator(UIStageMediator.NAME);<NEW_LINE>uiStage = ... | .getSystem(PhysicsSystem.class)); |
261,128 | protected void send(final JsonArray reqInvocations, final JsonObject extraJson) {<NEW_LINE>startRequest();<NEW_LINE><MASK><NEW_LINE>String csrfToken = getMessageHandler().getCsrfToken();<NEW_LINE>if (!csrfToken.equals(ApplicationConstants.CSRF_TOKEN_DEFAULT_VALUE)) {<NEW_LINE>payload.put(ApplicationConstants.CSRF_TOKEN... | JsonObject payload = Json.createObject(); |
1,619,531 | protected RecoveryResponse newResponse(RecoveryRequest request, int totalShards, int successfulShards, int failedShards, List<RecoveryState> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState) {<NEW_LINE>Map<String, List<RecoveryState>> shardResponses = new HashMap<>();<NEW_L... | successfulShards, failedShards, shardResponses, shardFailures); |
727,611 | private form createPageFind(HttpServletRequest request, HttpServletResponse response, WWindowStatus ws) throws ServletException, IOException {<NEW_LINE>boolean hasValue = false;<NEW_LINE>boolean hasName = false;<NEW_LINE>boolean hasDocNo = false;<NEW_LINE>boolean hasDescription = false;<NEW_LINE>if (ws.curTab == null)<... | "FIND").setID("txtSQL")); |
834,706 | static byte[] decode_base64(String s, int maxolen) throws IllegalArgumentException {<NEW_LINE>StringBuilder rs = new StringBuilder();<NEW_LINE>int off = 0, slen = s.length(), olen = 0;<NEW_LINE>byte[] ret;<NEW_LINE>byte c1, c2, c3, c4, o;<NEW_LINE>if (maxolen <= 0)<NEW_LINE>throw new IllegalArgumentException("Invalid m... | (c2 & 0x30) >> 4; |
621,441 | public void write(org.apache.thrift.protocol.TProtocol prot, create_app_options 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 (struct.isS... | oprot.writeBool(struct.is_stateful); |
1,547,342 | private void loadNode1176() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ProgramStateMachineType_ProgramDiagnostics_CreateClientName, new QualifiedName(0, "CreateClientName"), new LocalizedText("en", "CreateClientName"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueO... | (1), 0.0, false); |
1,237,677 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context MyContext initiated by SupportBean_S0 as s0 terminated by SupportBean_S1(id=s0.id)", path);<NEW_LINE>String eplOnInit = "@name('s0') context MyContext select context.s0 as... | = new SupportBean_S0(20, "B"); |
1,776,913 | private void selectFile() {<NEW_LINE>JFileChooser chooser = // NOI18N<NEW_LINE>new FileChooserBuilder(Presenter.class).setFileFilter(new HtmlOrDirFilter()).// NOI18N<NEW_LINE>setAccessibleDescription(NbBundle.getMessage(ExportHtmlAction.class, "ACD_Browse_Dialog")).setTitle(// NOI18N<NEW_LINE>NbBundle.getMessage(Export... | .fileName.getText())); |
455,176 | void registerFeature(BuildProducer<FeatureBuildItem> feature, Capabilities capabilities) {<NEW_LINE>boolean isResteasyClassicAvailable = <MASK><NEW_LINE>boolean isResteasyReactiveAvailable = capabilities.isPresent(Capability.RESTEASY_REACTIVE_JSON_JACKSON);<NEW_LINE>if (!isResteasyClassicAvailable && !isResteasyReactiv... | capabilities.isPresent(Capability.RESTEASY_JSON_JACKSON); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.