idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
932,510 | void addLocalNotification(JSONArray data, CallbackContext callbackContext) throws JSONException {<NEW_LINE>int builderId = data.getInt(0);<NEW_LINE>String content = data.getString(1);<NEW_LINE>String title = data.getString(2);<NEW_LINE>int notificationID = data.getInt(3);<NEW_LINE>int broadcastTime = data.getInt(4);<NE... | setExtras(extras.toString()); |
436,273 | public boolean process(@Nonnull VirtualFile file, IntList list) {<NEW_LINE>for (int i = 0, len = list.size(); i < len; i += 2) {<NEW_LINE>ProgressManager.checkCanceled();<NEW_LINE>if (list.get(i + 1) != myHash2)<NEW_LINE>continue;<NEW_LINE>int offset = list.get(i);<NEW_LINE>if (myFileIndex.isInSourceContent(virtualFile... | reportedPsi.put(fragmentStartOffsetInteger, target); |
569,575 | public void init(PinotConfiguration serverConf) throws Exception {<NEW_LINE>// Make a clone so that changes to the config won't propagate to the caller<NEW_LINE>_serverConf = serverConf.clone();<NEW_LINE>_zkAddress = _serverConf.getProperty(CommonConstants.Helix.CONFIG_OF_ZOOKEEPR_SERVER);<NEW_LINE>_helixClusterName = ... | .CONFIG_OF_CURRENT_DATA_TABLE_VERSION, Server.DEFAULT_CURRENT_DATA_TABLE_VERSION)); |
1,094,115 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response updateFieldVariableByFieldVar(@PathParam("typeId") final String typeId, @PathParam("fieldVar") final String fieldVar, @PathParam("fieldVarId") fin... | field.id() + "'"); |
1,605,364 | private static TrustManager[] buildSecureTrustManager(String trustCertPath) throws SSLException {<NEW_LINE>TrustManagerFactory selfTmf;<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>String algorithm = TrustManagerFactory.getDefaultAlgorithm();<NEW_LINE><MASK><NEW_LINE>KeyStore trustKeyStore = KeyStore.getInst... | selfTmf = TrustManagerFactory.getInstance(algorithm); |
598,418 | final SendBounceResult executeSendBounce(SendBounceRequest sendBounceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendBounceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,334,117 | private void processCodeItem(DexHeader header, ClassDefItem item, EncodedMethod method, MethodIDItem methodID) throws DuplicateNameException, IOException, Exception {<NEW_LINE>if (method.getCodeOffset() > 0) {<NEW_LINE>Address codeAddress = baseAddress.add(DexUtil.adjustOffset(method.getCodeOffset(), header));<NEW_LINE... | .getTriesSize()) + "\n"); |
1,325,599 | public RoaringBitmap compare(BitmapSliceIndex.Operation operation, int startOrValue, int end, RoaringBitmap foundSet) {<NEW_LINE>// todo whether we need this or not?<NEW_LINE>if (startOrValue > this.maxValue || (end > 0 && end < this.minValue)) {<NEW_LINE>return new RoaringBitmap();<NEW_LINE>}<NEW_LINE>startOrValue = s... | Operation.EQ, startOrValue, foundSet); |
290,309 | private void openReadOnlyFile(TaskMonitor monitor) {<NEW_LINE>String fileDescr = ((version != DomainFile.DEFAULT_VERSION) ? "version " + version + " of " : "") + domainFile.getName();<NEW_LINE>String contentType = null;<NEW_LINE>try {<NEW_LINE>monitor.setMessage("Opening " + fileDescr);<NEW_LINE>contentType = domainFil... | "Project Archive Open Error", "Error occurred while opening " + fileDescr, e); |
1,654,161 | public CheckResult apply(RoutingContext routingContext, SecurityIdentity identity) {<NEW_LINE>if (identity.isAnonymous()) {<NEW_LINE>PathConfig pathConfig = resolver.getPolicyEnforcer(null).getPathMatcher().matches(routingContext.request().path());<NEW_LINE>if (pathConfig != null && pathConfig.getEnforcementMode() == E... | result = adapterPolicyEnforcer.authorize(httpFacade); |
224,257 | public boolean previewSql(EditingTarget editingTarget) {<NEW_LINE>TextEditingTargetCommentHeaderHelper previewSource = new TextEditingTargetCommentHeaderHelper(docDisplay_.<MASK><NEW_LINE>if (!previewSource.hasCommentHeader())<NEW_LINE>return false;<NEW_LINE>if (previewSource.getFunction().length() == 0) {<NEW_LINE>pre... | getCode(), "preview", "--"); |
1,168,963 | private static Map<Entry<Integer, Integer>, Icon> populateInstances() {<NEW_LINE>// The string keys of these maps aren't currently used, but are useful for debugging.<NEW_LINE>Map<String, Integer> buttonIDs = new LinkedHashMap<String, Integer>();<NEW_LINE>// ViewTabDisplayerUI<NEW_LINE>buttonIDs.put("close", TabControl... | put("restore_group", TabControlButton.ID_RESTORE_GROUP_BUTTON); |
1,056,308 | public final PropertyLineContext propertyLine() throws RecognitionException {<NEW_LINE>PropertyLineContext _localctx = new PropertyLineContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(38);<NEW_LINE>_errHandler.sync(this);<NEW_... | enterRule(_localctx, 4, RULE_propertyLine); |
275,190 | public static <R> Task<R> flatten(final String desc, final Task<Task<R>> task) {<NEW_LINE>ArgumentUtil.requireNotNull(task, "task");<NEW_LINE>Task<R> flattenTask = async(desc, context -> {<NEW_LINE>final SettablePromise<R> result = Promises.settable();<NEW_LINE>context.after(task).run(() -> {<NEW_LINE>try {<NEW_LINE>if... | fail(task.getError()); |
492,854 | private PrivateKey loadPrivateKey(String keyFile) throws IOException, GeneralSecurityException {<NEW_LINE>KeyFactory keyFactory = KeyFactory.getInstance("RSA");<NEW_LINE>try (InputStream is = new FileInputStream(keyFile)) {<NEW_LINE>String content = IOUtils.toString(is, StandardCharsets.UTF_8);<NEW_LINE>content = conte... | getMimeDecoder().decode(content); |
1,221,521 | public static boolean addNumberedRegValue(HKEY root, String key, Object data) {<NEW_LINE>try {<NEW_LINE>// Recursively create keys as needed<NEW_LINE>String partialKey = "";<NEW_LINE>for (String section : key.split("\\\\")) {<NEW_LINE>if (partialKey.isEmpty()) {<NEW_LINE>partialKey += section;<NEW_LINE>} else {<NEW_LIN... | data.getClass() + " aren't supported"); |
884,588 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("workday" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size != 2 && size != 3) {<NEW_LINE>MessageManager mm ... | Calendar calendar = Calendar.getInstance(); |
204,784 | private void processHandle(EPStatementAgentInstanceHandle handle, List<NamedWindowConsumerView> value, EventBean[] newData, EventBean[] oldData) {<NEW_LINE>if (InstrumentationHelper.ENABLED) {<NEW_LINE>InstrumentationHelper.get().qNamedWindowCPSingle(exceptionHandlingService.getRuntimeURI(), value.size(), newData, oldD... | .get().aNamedWindowCPSingle(); |
804,183 | private void showMappingDialog(int canvasKey) {<NEW_LINE>int id = androidToSymbian.indexOfValue(canvasKey);<NEW_LINE>String keyName = "";<NEW_LINE>if (id >= 0) {<NEW_LINE>keyName = KeyEvent.keyCodeToString<MASK><NEW_LINE>}<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(requireContext()).setTitle(R.strin... | (androidToSymbian.keyAt(id)); |
1,779,704 | protected Object parseResponse(String result, int subModel) {<NEW_LINE>if (result.length() > 1024 * 1024) {<NEW_LINE>String ss = result.substring(0, 100);<NEW_LINE>ss = ss.substring(0, ss.indexOf("item"));<NEW_LINE>boolean bResult = (ss.indexOf("\"errors\":false")) > 0;<NEW_LINE>return bResult;<NEW_LINE>} else if (ImUt... | Iterator itr = jobs.keys(); |
1,072,431 | public boolean execute(long timeout) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>JobManager jobManager = ApplicationDependencies.getJobManager();<NEW_LINE>QueueFindingJobListener queueListener = new QueueFindingJobListener();<NEW_LINE>try (IncomingMessageProcessor.Processor processor = ApplicationD... | > iter = processQueues.iterator(); |
1,667,891 | public void build(final String tokenizerName, final TokenizerFactory tokenizerFactory, final Map<String, CharFilterFactory> charFilters, final Map<String, TokenFilterFactory> tokenFilters) {<NEW_LINE>if (analyzerSettings.get("tokenizer") != null) {<NEW_LINE>throw new IllegalArgumentException(<MASK><NEW_LINE>}<NEW_LINE>... | "Custom normalizer [" + name() + "] cannot configure a tokenizer"); |
901,895 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>if (className.equals(CLASS_PREPARED_STATEMENT)) {<NEW_LINE>if (instrumentor.exist(loader, CLASS_PREP... | , va(maxBindValueSize), ORACLE_SCOPE); |
125,826 | private void drawMask(Bitmap image, Mask mask) {<NEW_LINE>float r = RandomUtils.nextFloat();<NEW_LINE>float g = RandomUtils.nextFloat();<NEW_LINE>float b = RandomUtils.nextFloat();<NEW_LINE>int imageWidth = image.getWidth();<NEW_LINE>int imageHeight = image.getHeight();<NEW_LINE>int x = (int) (mask.getX() * imageWidth)... | = probDist[xCor][yCor]; |
768,071 | private void correct(char[] argument) {<NEW_LINE>try {<NEW_LINE>String source = this.compilationUnit.getSource();<NEW_LINE>Map<String, String> currentProjectOptions = this.compilationUnit.getJavaProject().getOptions(true);<NEW_LINE>long sourceLevel = CompilerOptions.versionToJdkLevel(currentProjectOptions.get(JavaCore.... | get(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES))); |
1,713,670 | final DescribeVpcsResult executeDescribeVpcs(DescribeVpcsRequest describeVpcsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeVpcs"); |
1,849,861 | public String probeContentType(Path path) throws IOException {<NEW_LINE>final Path fileNamePath = path.getFileName();<NEW_LINE>if (fileNamePath == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final String lowerCaseFileName = fileName.toLowerCase(Locale.ROOT);<NEW_LINE>for (String candidate : ... | String fileName = fileNamePath.toString(); |
257,250 | // GEN-LAST:event_createNewPlatform<NEW_LINE>private void librariesBrowseActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_librariesBrowseActionPerformed<NEW_LINE>if (!isSharable) {<NEW_LINE>boolean result = makeSharable(uiProperties);<NEW_LINE>if (result) {<NEW_LINE>isSharable = true;<NEW_L... | uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel()); |
454,081 | protected void appendMemberDeclarationContents(CharArrayBuffer buffer) {<NEW_LINE>if (isConstructor()) {<NEW_LINE>buffer.append(getConstructorName()).append(this.fDocument, this.fNameRange[1] + 1, this.fParameterRange[0] - this.fNameRange[1] - 1);<NEW_LINE>} else {<NEW_LINE>buffer.append(getReturnTypeContents());<NEW_L... | this.fParameterRange[1] + 1; |
33,628 | private void appendMethodHandleInfo(StringBuffer sb, AbstractConstantPoolInfoJava[] constantPool, int argIndex) {<NEW_LINE>ConstantPoolMethodHandleInfo methodHandle = (ConstantPoolMethodHandleInfo) constantPool[argIndex];<NEW_LINE>AbstractConstantPoolInfoJava handleRef = constantPool[methodHandle.getReferenceIndex()];<... | constantPool[methodRef.getClassIndex()]; |
136,242 | public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>final String[] indices = Strings.splitStringByCommaToArray(request.param("index"));<NEW_LINE>final String[] types = request.paramAsStringArrayOrEmptyIfAll("type");<NEW_LINE>final String[] fields =... | request.paramAsBoolean(INCLUDE_TYPE_NAME_PARAMETER, DEFAULT_INCLUDE_TYPE_NAME_POLICY); |
1,714,698 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String jsonSchemas = "@public @buseventtype create json schema S0_JSON(id String, p00 int);\n" + "@public @buseventtype create json schema S1_JSON(id String, p00 int);\n" + "@public @buseventtype @JsonSchema(class... | = "S0_" + rep.getName(); |
1,267,982 | public static <T extends CameraModel> void save(T parameters, Writer outputWriter) {<NEW_LINE>PrintWriter out = new PrintWriter(outputWriter);<NEW_LINE>Yaml yaml = createYmlObject();<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>if (parameters instanceof CameraPinholeBrown) {<NEW_LINE>out.println("# Pinhole camera model... | data = new HashMap<>(); |
330,246 | protected void activate() {<NEW_LINE>filterBox.activate();<NEW_LINE>sortedList.comparatorProperty().bind(tableView.comparatorProperty());<NEW_LINE>tableView.setItems(sortedList);<NEW_LINE>updateList();<NEW_LINE>reset();<NEW_LINE>amountTextField.<MASK><NEW_LINE>amountTextField.focusedProperty().addListener(amountFocusLi... | textProperty().addListener(amountListener); |
724,671 | public void update(ViewerCell cell) {<NEW_LINE>Object element = cell.getElement();<NEW_LINE>// image<NEW_LINE>cell.setImage<MASK><NEW_LINE>// styled label<NEW_LINE>String label = baseLabels.getText(element);<NEW_LINE>StyledString styledLabel = new StyledString(label);<NEW_LINE>if (filter.accept(label)) {<NEW_LINE>Style... | (baseLabels.getImage(element)); |
228,931 | void update(java.util.Map<String, TemplateDescriptor> descriptors, String[] removeTemplates) throws UpdateFailedException {<NEW_LINE>//<NEW_LINE>// Note: _descriptors is updated by Application<NEW_LINE>//<NEW_LINE>//<NEW_LINE>// One big set of removes<NEW_LINE>//<NEW_LINE>removeChildren(removeTemplates);<NEW_LINE>//<NE... | TemplateDescriptor templateDescriptor = p.getValue(); |
244,812 | public I_S_Resource findPlant(final int orgRepoId, final I_M_Warehouse warehouse, final int productRepoId, final int attributeSetInstanceRepoId) {<NEW_LINE>//<NEW_LINE>// First: get the plant directly from Warehouse<NEW_LINE>if (warehouse != null) {<NEW_LINE>final ResourceId plantId = ResourceId.ofRepoIdOrNull(warehous... | productId = ProductId.ofRepoId(productRepoId); |
261,283 | private boolean isCertificateTrusted(final X509Certificate signerCertificate, final CMSSignedData cmsSignedData) {<NEW_LINE>LOGGER.trace("Starting CMS certificate validation");<NEW_LINE>try {<NEW_LINE>final CertPathBuilder cpb = CertPathBuilder.getInstance("PKIX");<NEW_LINE>// Define CMS signer certificate as the start... | .of(Option.PREFER_CRLS)); |
412,675 | public ListEndpointsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEndpointsResult listEndpointsResult = new ListEndpointsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context... | String currentParentElement = context.getCurrentParentElement(); |
213,344 | public void showError(String title, String message, Throwable ex) {<NEW_LINE>final Alert alert = new Alert(Alert.AlertType.ERROR);<NEW_LINE>final Scene scene = alert.getDialogPane().getScene();<NEW_LINE>BrandUtil.applyBrand(injector, stage, scene);<NEW_LINE>alert.setHeaderText(title);<NEW_LINE>alert.setContentText(mess... | expContent.setMaxWidth(Double.MAX_VALUE); |
1,026,491 | public boolean isAuthorizedForRequest(SingularityRequest request, SingularityUser user, SingularityAuthorizationScope scope, Optional<SingularityUserFacingAction> action) {<NEW_LINE>if (!authEnabled) {<NEW_LINE>// no auth == no rules!<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!user.isAuthenticated()) {<NEW_LINE>ret... | ) && groupsIntersect(userGroups, adminGroups); |
1,154,478 | public Client filter(Client client) {<NEW_LINE>ReadOnlyClient pseudoClient = new ReadOnlyClient(client);<NEW_LINE>Map<Account, ReadOnlyAccount> <MASK><NEW_LINE>Map<Portfolio, ReadOnlyPortfolio> portfolio2readonly = new HashMap<>();<NEW_LINE>Function<Account, ReadOnlyAccount> transformAccount = a -> account2readonly.com... | account2readonly = new HashMap<>(); |
217,034 | public String resolve(IFile file, String baseLocation, String publicId, String systemId) {<NEW_LINE>// systemId is already resolved; so don't touch<NEW_LINE>if (systemId != null && systemId.startsWith("jar:")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// identify the correct project<NEW_LINE>IProject project = null;<... | , nameAndLocation.indexOf('/')); |
1,685,348 | protected void startPersistThread() {<NEW_LINE>final Granularity segmentGranularity = schema<MASK><NEW_LINE>final Period windowPeriod = config.getWindowPeriod();<NEW_LINE>final DateTime truncatedNow = segmentGranularity.bucketStart(DateTimes.nowUtc());<NEW_LINE>final long windowMillis = windowPeriod.toStandardDuration(... | .getGranularitySpec().getSegmentGranularity(); |
483,084 | public TaskExecutionInformation findTaskExecutionInformation(String taskName, Map<String, String> taskDeploymentProperties, boolean addDatabaseCredentials, Map<String, String> previousTaskDeploymentProperties) {<NEW_LINE>Assert.hasText(taskName, "The provided taskName must not be null or empty.");<NEW_LINE>Assert.notNu... | taskConfigurationProperties, this.composedTaskRunnerConfigurationProperties))); |
1,297,895 | public void marshall(AthenaDatasetDefinition athenaDatasetDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (athenaDatasetDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(athenaDatasetDe... | athenaDatasetDefinition.getDatabase(), DATABASE_BINDING); |
755,684 | public static void main(String[] args) {<NEW_LINE>// macOS<NEW_LINE>if (SystemInfo.isMacOS) {<NEW_LINE>// enable screen menu bar<NEW_LINE>// (moves menu bar from JFrame window to top of screen)<NEW_LINE>System.setProperty("apple.laf.useScreenMenuBar", "true");<NEW_LINE>// application name used in screen menu bar<NEW_LI... | new Dimension(1660, 880)); |
290,991 | private ConcurrentHashMap<String, Boolean> initDbLockStatus(DataSource dataSource) throws SQLException, TddlNestableRuntimeException {<NEW_LINE>Connection connection = null;<NEW_LINE>Statement statement = null;<NEW_LINE>List<Triple> expiredLocks = new ArrayList();<NEW_LINE>ConcurrentHashMap<String, Boolean> tmpReadOnly... | database, table, status != 0); |
1,477,980 | public ProcessInstanceDto startProcessInstance(UriInfo context, StartProcessInstanceDto parameters) {<NEW_LINE>ProcessInstanceWithVariables instance = null;<NEW_LINE>try {<NEW_LINE>instance = startProcessInstanceAtActivities(parameters);<NEW_LINE>} catch (AuthorizationException e) {<NEW_LINE>throw e;<NEW_LINE>} catch (... | getId()).build(); |
382,694 | public static DWARFCompileUnit read(DIEAggregate diea) throws IOException, DWARFException {<NEW_LINE>if (diea.getTag() != DWARFTag.DW_TAG_compile_unit) {<NEW_LINE>throw new IOException("Expecting a DW_TAG_compile_unit DIE, found " + diea.getTag());<NEW_LINE>}<NEW_LINE>String name = diea.getString(DWARFAttribute.DW_AT_n... | line = DWARFLine.read(diea); |
1,401,088 | private <T> Sequence<Object[]> execute(Query<T> query, final List<String> newFields, final List<SqlTypeName> newTypes) {<NEW_LINE>Hook.QUERY_PLAN.run(query);<NEW_LINE>if (query.getId() == null) {<NEW_LINE>final String queryId = UUID.randomUUID().toString();<NEW_LINE>plannerContext.addNativeQueryId(queryId);<NEW_LINE>qu... | resultArrays, resultArrayFields, newFields, newTypes); |
1,205,403 | public static <T> Query applyAndBind(String queryString, Iterable<T> entities, EntityManager entityManager) {<NEW_LINE>Assert.notNull(queryString, "Querystring must not be null!");<NEW_LINE><MASK><NEW_LINE>Assert.notNull(entityManager, "EntityManager must not be null!");<NEW_LINE>Iterator<T> iterator = entities.iterato... | Assert.notNull(entities, "Iterable of entities must not be null!"); |
1,376,526 | public void loseFocus() {<NEW_LINE>logger.fine("loseFocus");<NEW_LINE>if (app != null) {<NEW_LINE>app.loseFocus();<NEW_LINE>}<NEW_LINE>if (view != null) {<NEW_LINE>view.onPause();<NEW_LINE>}<NEW_LINE>if (app != null) {<NEW_LINE>// pause the audio<NEW_LINE><MASK><NEW_LINE>if (audioRenderer != null) {<NEW_LINE>audioRende... | AudioRenderer audioRenderer = app.getAudioRenderer(); |
924,365 | public void visit(BLangFunctionTypeNode functionTypeNode, AnalyzerData data) {<NEW_LINE>SymbolEnv currentEnv = data.env;<NEW_LINE>boolean isLambda = false;<NEW_LINE>if (currentEnv.node.getKind() == FUNCTION) {<NEW_LINE>BLangFunction function = (BLangFunction) currentEnv.node;<NEW_LINE>isLambda = function.flagSet.contai... | analyzeDef(param.typeNode, data); |
1,224,227 | protected void readRepo() throws XmlPullParserException, IOException {<NEW_LINE>parser.require(XmlPullParser.START_TAG, NS, "repository");<NEW_LINE>Repository repository = new Repository();<NEW_LINE>repository.isPartial = "true".equals(parser.getAttributeValue(NS, "partial"));<NEW_LINE>repository.partialUrl = parser.ge... | String tagName = parser.getName(); |
159,477 | // implement RexToSqlNodeConverter<NEW_LINE>public SqlNode convertLiteral(RexLiteral literal) {<NEW_LINE>// Numeric<NEW_LINE>if (SqlTypeFamily.EXACT_NUMERIC.getTypeNames().contains(literal.getTypeName())) {<NEW_LINE>return SqlLiteral.createExactNumeric(literal.getValue().toString(), SqlParserPos.ZERO);<NEW_LINE>}<NEW_L... | ), 0, SqlParserPos.ZERO); |
1,711,835 | public Iterator<E> iterator() {<NEW_LINE>final LinkedList<E> list = elements;<NEW_LINE>return new Iterator<E>() {<NEW_LINE><NEW_LINE>ListIterator<E> i = list.listIterator(0);<NEW_LINE><NEW_LINE>public boolean hasNext() {<NEW_LINE>return i.hasNext();<NEW_LINE>}<NEW_LINE><NEW_LINE>public E next() {<NEW_LINE>if (which != ... | SecurityManager sm = System.getSecurityManager(); |
378,043 | final ListStreamsResult executeListStreams(ListStreamsRequest listStreamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStreamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | false), new ListStreamsResultJsonUnmarshaller()); |
1,034,497 | public void init() throws StoreInitializationException {<NEW_LINE>if (initialized.get()) {<NEW_LINE>throw new StoreInitializationException("Illegal state while initializing store. Store was already initialized");<NEW_LINE>}<NEW_LINE>localStore.init();<NEW_LINE>createOrVerifySchemaTopic();<NEW_LINE>// set the producer p... | (kafkaTopicReader.checkpoints())); |
7,121 | protected Object doWork() {<NEW_LINE>inputReports.stream().map(GATKPath::toPath).forEach(IOUtil::assertFileIsReadable);<NEW_LINE>try (final PrintStream tranchesStream = new PrintStream(outputReport.getOutputStream())) {<NEW_LINE>// use a data structure to hold the tranches from each scatter shard in a format that's eas... | scatteredTranches = new TreeMap<>(); |
672,113 | public Document toXml(XmlWriterContext ctx) {<NEW_LINE>String self = ctx.pipelineXmlLink(instance.getName(), instance.getCounter());<NEW_LINE>DocumentBuilder builder = DocumentBuilder.withRoot("pipeline").attr("name", instance.getName()).attr("counter", instance.getCounter()).link(self, "self").cdataNode("id", instance... | populateMaterials(materialBuilder, revision, ctx); |
742,053 | public VoidResponse updateGlossary(String serverName, String userId, String glossaryGUID, GlossaryRequestBody requestBody) {<NEW_LINE>final String methodName = "updateGlossary";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);<NEW_LINE>VoidResponse response = new VoidResponse()... | getAuditLog(userId, serverName, methodName); |
718,328 | private ModeImpl unSlide(TopComponent tc, ModeImpl source) {<NEW_LINE>String tcID = WindowManagerImpl.getInstance().findTopComponentID(tc);<NEW_LINE>ModeImpl targetMode = model.getModeTopComponentPreviousMode(source, tcID);<NEW_LINE>int targetIndex = model.getModeTopComponentPreviousIndex(source, tcID);<NEW_LINE>if ((t... | PROP_ACTIVE_MODE, null, getActiveMode()); |
1,425,472 | public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>if (args.length != 2 && args.length != 3) {<NEW_LINE>throw new QueryException(new QNm("No valid arguments specified!"));<NEW_LINE>}<NEW_LINE>final JsonDBItem doc = (JsonDBItem) args[0];<NEW_LINE>final JsonNodeReadOnlyTrx rtx = doc... | .getMessage()), e); |
65,956 | public void read(Kryo kryo, Input input) {<NEW_LINE><MASK><NEW_LINE>int methodClassID = input.readInt(true);<NEW_LINE>Class methodClass = kryo.getRegistration(methodClassID).getType();<NEW_LINE>byte methodIndex = input.readByte();<NEW_LINE>try {<NEW_LINE>cachedMethod = getMethods(kryo, methodClass)[methodIndex];<NEW_LI... | objectID = input.readInt(true); |
1,431,344 | public void createTranslation(Properties ctx, TransformerHandler document, PO entity) throws SAXException {<NEW_LINE>if (!MSysConfig.getBooleanValue(HANDLE_TRANSLATION_FLAG, false)) {<NEW_LINE>// translation import option is disabled<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Validate table<NEW_LINE>String tableName = ent... | translation, false, null, true); |
963,283 | public void actionPerformed(ActionEvent e) {<NEW_LINE>if (0 == getModel().getRowCount())<NEW_LINE>return;<NEW_LINE>int currentRow = getSelectedRow();<NEW_LINE>if (currentRow < 0) {<NEW_LINE>currentRow = 0;<NEW_LINE>} else if (!(isFoldingModel() && getFoldingModel().isGroupRow(currentRow))) {<NEW_LINE>currentRow += (nav... | (navigateToNextTask ? 1 : -1); |
1,027,055 | protected SettableBeanProperty _resolveInnerClassValuedProperty(DeserializationContext ctxt, SettableBeanProperty prop) {<NEW_LINE>JsonDeserializer<Object> deser = prop.getValueDeserializer();<NEW_LINE>// ideally wouldn't rely on it being BeanDeserializerBase; but for now it'll have to do<NEW_LINE>if (deser instanceof ... | ] paramTypes = ctor.getParameterTypes(); |
1,717,223 | static int writeInt(byte[] bytes, int off, int i) {<NEW_LINE>if (i >= BC_INT32_NUM_MIN && i <= BC_INT32_NUM_MAX) {<NEW_LINE>bytes[off++] = (byte) i;<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>if (i >= INT32_BYTE_MIN && i <= INT32_BYTE_MAX) {<NEW_LINE>bytes[off++] = (byte) (BC_INT32_BYTE_ZERO + (i >> 8));<NEW_LINE>bytes[off... | off++] = (byte) i; |
1,472,506 | private void processModule(String module, Map<String, Map<String, String>> file2LicenseHeaders) throws IOException {<NEW_LINE>File d = new File(new File(getProject().getProperty("nb_all"), module), "external");<NEW_LINE>Set<String> hgFiles = VerifyLibsAndLicenses.findHgControlledFiles(d);<NEW_LINE>Map<String, Map<Strin... | headers = binary2License.get(n); |
1,739,563 | public void alarm(Object alarmContext) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "alarm", alarmContext);<NEW_LINE>boolean alarmValid = false;<NEW_LINE>boolean presentInConnectionList = false;<NEW_LINE>Object[] listEntry = null;<NEW_LINE>// Take the pools ... | = (LinkedList) contextArray[0]; |
1,208,389 | private // ==================================================================================================<NEW_LINE>void runDecompilerAnalysis(Program program, AddressSetView functionEntries, TaskMonitor monitor) throws InterruptedException, Exception {<NEW_LINE>CachingPool<DecompInterface> decompilerPool = new Cach... | = new ParallelDecompilerCallback(decompilerPool, program); |
1,621,165 | public DataFlowOpForgeInitializeResult initializeForge(DataFlowOpForgeInitializeContext context) throws ExprValidationException {<NEW_LINE>if (context.getOutputPorts().size() != 1) {<NEW_LINE>throw new IllegalArgumentException("EventBusSource operator requires one output stream but produces " + context.getOutputPorts()... | > filters = Collections.emptyList(); |
551,099 | final DescribeQuerySuggestionsBlockListResult executeDescribeQuerySuggestionsBlockList(DescribeQuerySuggestionsBlockListRequest describeQuerySuggestionsBlockListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeQuerySuggestionsBlockListRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | (super.beforeMarshalling(describeQuerySuggestionsBlockListRequest)); |
1,155,156 | private void _startNewLocalityGroup(String name, Set<ByteSequence> columnFamilies) throws IOException {<NEW_LINE>if (dataClosed) {<NEW_LINE>throw new IllegalStateException("data closed");<NEW_LINE>}<NEW_LINE>if (startedDefaultLocalityGroup) {<NEW_LINE>throw new IllegalStateException("Can not start anymore new locality ... | blockSize, maxBlockSize, currentLocalityGroup, sampleWriter); |
406,181 | public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {<NEW_LINE>FontRenderer fr = minecraft.fontRenderer;<NEW_LINE>String txt = Lang.GUI_COMBGEN_OUTPUT.get("");<NEW_LINE>int sw = fr.getStringWidth(txt);<NEW_LINE>fr.drawStringWithShadow(txt, 89 - sw / 2 - xOff, 0 ... | sw = fr.getStringWidth(txt); |
378,799 | public static ListOTAModuleByProductResponse unmarshall(ListOTAModuleByProductResponse listOTAModuleByProductResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAModuleByProductResponse.setRequestId(_ctx.stringValue("ListOTAModuleByProductResponse.RequestId"));<NEW_LINE>listOTAModuleByProductResponse.setSuccess(_ctx.b... | ("ListOTAModuleByProductResponse.Data[" + i + "].AliasName")); |
520,049 | public BuildCause onModifications(MaterialRevisions originalMaterialRevisions, boolean materialConfigurationChanged, MaterialRevisions previousMaterialRevisions) {<NEW_LINE>if (originalMaterialRevisions == null || originalMaterialRevisions.isEmpty()) {<NEW_LINE>throw new RuntimeException("Cannot find modifications, ple... | recomputedBasedOnDependencies = fanInOffTriangleDependency(originalMaterialRevisions, cruiseConfig); |
967,051 | private boolean updateExperimentStatus(String resourceId, Map<String, Object> updateObject) {<NEW_LINE>ExperimentEntity experimentEntity = experimentService.select(resourceId);<NEW_LINE>if (experimentEntity == null) {<NEW_LINE>throw new SubmarineRuntimeException(Status.NOT_FOUND.getStatusCode(), String.format("cannot f... | ()).toDate()); |
38,044 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player targetPlayer = game.getPlayer(this.getTargetPointer()<MASK><NEW_LINE>Spell spell = game.getStack().getSpell(source.getSourceId());<NEW_LINE>if (controller != null && spell != null && ... | .getFirst(game, source)); |
1,739,434 | public void contextInitialized(ServletContextEvent event) {<NEW_LINE>ServletContext servletContext = event.getServletContext();<NEW_LINE>String contextName = servletContext.getContextPath().replaceAll("/", "");<NEW_LINE>if ("".equals(contextName)) {<NEW_LINE>contextName = "root";<NEW_LINE>}<NEW_LINE>System.out.printf("... | getLogger(Logger.ROOT_LOGGER_NAME, contextName); |
1,495,553 | private boolean saveVideoWatchStatus(String videoId, long position, boolean watched) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(PlaybackStatusTable.COL_YOUTUBE_VIDEO_ID, videoId);<NEW_LINE>values.put(PlaybackStatusTable.COL_YOUTUBE_VIDEO_POSITION, (int) position);<NEW_LINE>values.put(Pla... | status = playbackHistoryMap.get(videoId); |
1,404,496 | protected void subscribeCommand(final URL url, final CommandListener commandListener) {<NEW_LINE>try {<NEW_LINE>clientLock.lock();<NEW_LINE>ConcurrentHashMap<CommandListener, IZkDataListener> dataChangeListeners = commandListeners.get(url);<NEW_LINE>if (dataChangeListeners == null) {<NEW_LINE>commandListeners.putIfAbse... | <CommandListener, IZkDataListener>()); |
1,829,488 | private void forEachReplicatedRecord(List keyRecordExpiry, MapContainer mapContainer, RecordStore recordStore, boolean populateIndexes, long nowInMillis) {<NEW_LINE>long ownedEntryCountOnThisNode = entryCountOnThisNode(mapContainer);<NEW_LINE>EvictionConfig evictionConfig = mapContainer.getMapConfig().getEvictionConfig... | Data) keyRecordExpiry.get(i); |
585,630 | public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(MultiInstanceLoopCharacteristics.class, BPMN_ELEMENT_MULTI_INSTANCE_LOOP_CHARACTERISTICS).namespaceUri(BPMN20_NS).extendsType(LoopCharacteristics.class).instanceProvider(new ModelTypeInsta... | OutputDataItem.class).build(); |
916,895 | private void computeLineBufferCurve(Coordinate[] inputPts, OffsetSegmentGenerator segGen) {<NEW_LINE>double distTol = simplifyTolerance(distance);<NEW_LINE>// --------- compute points for left side of line<NEW_LINE>// Simplify the appropriate side of the line before generating<NEW_LINE>Coordinate[] simp1 = BufferInputL... | 1], simp2[0]); |
735,617 | public void init() {<NEW_LINE>model = new DefaultDiagramModel();<NEW_LINE>model.setMaxConnections(-1);<NEW_LINE>StateMachineConnector connector = new StateMachineConnector();<NEW_LINE>connector.setOrientation(StateMachineConnector.Orientation.ANTICLOCKWISE);<NEW_LINE>connector.setPaintStyle("{stroke:'#7D7463',strokeWid... | new BlankEndPoint(EndPointAnchor.RIGHT)); |
572,470 | private static void init() {<NEW_LINE>getConnection(true);<NEW_LINE>if (jadb == null) {<NEW_LINE>try {<NEW_LINE>new AdbServerLauncher().launch();<NEW_LINE><MASK><NEW_LINE>getConnection(false);<NEW_LINE>if (jadb != null) {<NEW_LINE>shouldStopServer = true;<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>// Cannot r... | Debug.log(3, "ADBClient: ADBServer started"); |
1,244,773 | public static Optional<MachoSymTabCommand> read(MappedByteBuffer machoFileBuffer) {<NEW_LINE>machoFileBuffer.rewind();<NEW_LINE>try {<NEW_LINE>MachoHeader header = Machos.getHeader(machoFileBuffer);<NEW_LINE>int commandsCount = header.getCommandsCount();<NEW_LINE>for (int i = 0; i < commandsCount; i++) {<NEW_LINE>int c... | symoff = ObjectFileScrubbers.getLittleEndianInt(machoFileBuffer); |
1,146,187 | public void initRuntimeLibraryTypedAsts(Optional<ColorPool.Builder> colorPoolBuilder) {<NEW_LINE><MASK><NEW_LINE>String path = String.join("", "/runtime_libs.typedast");<NEW_LINE>TypedAstDeserializer.DeserializedAst astData = TypedAstDeserializer.deserializeRuntimeLibraries(this, SYNTHETIC_EXTERNS_FILE, colorPoolBuilde... | checkState(this.runtimeLibraryTypedAsts == null); |
482,224 | protected JavascriptException toJsException(ExceptionThrown event) {<NEW_LINE>ExceptionDetails details = event.getExceptionDetails();<NEW_LINE>Optional<StackTrace> maybeTrace = details.getStackTrace();<NEW_LINE>Optional<org.openqa.selenium.devtools.v100.runtime.model.RemoteObject> maybeException = details.getException(... | JavascriptException exception = new JavascriptException(message); |
281,912 | StoreScan createStoreScan(PageCacheTracer cacheTracer) {<NEW_LINE>int[] entityTokenIds = entityTokenIds();<NEW_LINE>int[] propertyKeyIds = propertyKeyIds();<NEW_LINE>IntPredicate propertyKeyIdFilter = propertyKeyId -> contains(propertyKeyIds, propertyKeyId);<NEW_LINE>if (type == EntityType.RELATIONSHIP) {<NEW_LINE>Stor... | false, true, cacheTracer, memoryTracker); |
874,350 | public static KeyValuePart[] splitIntIntVector(MatrixMeta matrixMeta, IntIntVector vector) {<NEW_LINE>IntIntVectorStorage storage = vector.getStorage();<NEW_LINE>if (storage.isSparse()) {<NEW_LINE>// Get keys and values<NEW_LINE>IntIntSparseVectorStorage sparseStorage = (IntIntSparseVectorStorage) storage;<NEW_LINE>int... | ] values = denseStorage.getValues(); |
1,656,601 | final GetRelationalDatabaseBlueprintsResult executeGetRelationalDatabaseBlueprints(GetRelationalDatabaseBlueprintsRequest getRelationalDatabaseBlueprintsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRelationalDatabaseBlueprintsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | invoke(request, responseHandler, executionContext); |
520,973 | public static void applyFieldDeclaration(FieldDeclaration declaration, Object target) {<NEW_LINE>Method setterMethod = ReflectUtil.getSetter(declaration.getName(), target.getClass(), declaration.getValue().getClass());<NEW_LINE>if (setterMethod != null) {<NEW_LINE>try {<NEW_LINE>setterMethod.invoke(target, declaration.... | declaration.getName(), target); |
1,318,573 | public static RADComponent createQueryBean(FormModel model, RADComponent entityManager, String entityName) throws Exception {<NEW_LINE>RADComponent query = new RADComponent();<NEW_LINE>FileObject formFile = FormEditor.getFormDataObject(model).getFormFile();<NEW_LINE>// NOI18N<NEW_LINE>Class<?> queryClass = ClassPathUti... | toLowerCase().charAt(0); |
192,465 | final DescribeDBClusterParametersResult executeDescribeDBClusterParameters(DescribeDBClusterParametersRequest describeDBClusterParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBClusterParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,783,880 | static Writer writeValue(Writer writer, Object value) throws JSONException, IOException {<NEW_LINE>if (value == null) {<NEW_LINE>writer.write("null");<NEW_LINE>} else if (value instanceof JSONObject) {<NEW_LINE>((JSONObject) value).write(writer);<NEW_LINE>} else if (value instanceof JSONArray) {<NEW_LINE>((JSONArray) v... | write(value.toString()); |
416,781 | public boolean onSingleTapConfirmed(MotionEvent motionEvent) {<NEW_LINE>// get the point that was clicked and convert it to a point in the map<NEW_LINE>android.graphics.Point clickLocation = new android.graphics.Point(Math.round(motionEvent.getX()), Math.round(motionEvent.getY()));<NEW_LINE>Point mapPoint = mMapView.sc... | pathGeometry, mUnitOfMeasurement, GeodeticCurveType.GEODESIC); |
972,608 | public String encode() throws IOException {<NEW_LINE>try (FastStringWriter fsw = new FastStringWriter()) {<NEW_LINE>fsw.write("{");<NEW_LINE>ChartUtils.writeDataValue(fsw, "type", <MASK><NEW_LINE>ChartUtils.writeDataValue(fsw, "data", this.data, true);<NEW_LINE>ChartUtils.writeDataValue(fsw, "hidden", this.isHidden(), ... | this.getType(), false); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.