idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,075,772 | public Result search(Query query, Execution execution) {<NEW_LINE>query.trace("CacheControlSearcher: Running version $Revision$", false, 6);<NEW_LINE>Result result = execution.search(query);<NEW_LINE>query = result.getQuery();<NEW_LINE>if (result.getHeaders(true) == null) {<NEW_LINE>query.trace("CacheControlSearcher: N... | .getInteger(cachecontrolMaxage, -1); |
502,599 | public final QueryExpressionContext queryExpression() throws RecognitionException {<NEW_LINE>QueryExpressionContext _localctx = new QueryExpressionContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 222, RULE_queryExpression);<NEW_LINE>try {<NEW_LINE>setState(3420);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch... | _errHandler.reportError(this, re); |
1,855,074 | private int addPartitionSpecInternal(PartitionSpec spec) {<NEW_LINE>int newSpecId = reuseOrCreateNewSpecId(spec);<NEW_LINE>if (specsById.containsKey(newSpecId)) {<NEW_LINE>this.lastAddedSpecId = newSpecId;<NEW_LINE>return newSpecId;<NEW_LINE>}<NEW_LINE>Schema schema = schemasById.get(currentSchemaId);<NEW_LINE>Partitio... | new MetadataUpdate.AddPartitionSpec(newSpec)); |
1,364,099 | private void updateSelection() {<NEW_LINE>dataSourcesTableModel.clearTable();<NEW_LINE>if (casesTable.getSelectedRow() >= 0 && casesTable.getSelectedRow() < casesTable.getRowCount()) {<NEW_LINE>CaseDataSourcesWrapper caseWrapper = casesTableModel.getEamCase(casesTable.convertRowIndexToModel(casesTable.getSelectedRow())... | setText(caseWrapper.getNotes()); |
351,476 | public Notification buildSummaryIPC(String groupKey) {<NEW_LINE>Intent intent = new Intent(context, ManagerActivity.class);<NEW_LINE>intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);<NEW_LINE>intent.setAction(ACTION_IPC);<NEW_LINE>PendingIntent pendingIntent = PendingIntent.getActivity(context, 1, intent, PendingIntent.... | (true).setContentIntent(pendingIntent); |
1,116,757 | void signLogoutResponse(SAMLObject logoutResponse, Credential signingCredential) throws SamlException {<NEW_LINE>SsoConfig samlConfig = ssoService.getConfig();<NEW_LINE>if (logoutResponse instanceof SignableSAMLObject && signingCredential != null) {<NEW_LINE>SignableSAMLObject signableMessage = (SignableSAMLObject) log... | setSignatureAlgorithm(samlConfig.getSignatureMethodAlgorithm()); |
693,059 | public void configure(ResourceInfo resourceInfo, FeatureContext configuration) {<NEW_LINE>final <MASK><NEW_LINE>try {<NEW_LINE>// DenyAll on the method take precedence over RolesAllowed and PermitAll<NEW_LINE>if (am.isAnnotationPresent(DenyAll.class)) {<NEW_LINE>configuration.register(new RolesAllowedRequestFilter());<... | Method am = resourceInfo.getResourceMethod(); |
1,508,331 | public Boolean visitApp(AppExpression expr1, Expression expr2, Expression type) {<NEW_LINE>List<Expression> args1 = new ArrayList<>();<NEW_LINE>List<Expression> args2 = new ArrayList<>();<NEW_LINE>Expression fun1 = expr1.getArguments(args1);<NEW_LINE>Expression fun2 = expr2.getArguments(args2);<NEW_LINE>InferenceVariab... | type1.getPiParameters(params, false); |
1,398,898 | private static void movePivotToStartOfSlice(double[] array, int from, int to) {<NEW_LINE>int mid = (from + to) >>> 1;<NEW_LINE>// We want to make a swap such that either array[to] <= array[from] <= array[mid], or<NEW_LINE>// array[mid] <= array[from] <= array[to]. We know that from < to, so we know mid < to<NEW_LINE>//... | swap(array, mid, from); |
370,651 | public static BodyDTO createDTO(Body<?> body) {<NEW_LINE>BodyDTO result = null;<NEW_LINE>if (body instanceof BinaryBody) {<NEW_LINE>BinaryBody binaryBody = (BinaryBody) body;<NEW_LINE>result = new BinaryBodyDTO(binaryBody, binaryBody.getNot());<NEW_LINE>} else if (body instanceof JsonBody) {<NEW_LINE>JsonBody jsonBody ... | xmlBody, xmlBody.getNot()); |
1,195,503 | public void registerFactories() {<NEW_LINE>//<NEW_LINE>// Register payment action handlers.<NEW_LINE>final IESRImportBL esrImportBL = Services.get(IESRImportBL.class);<NEW_LINE>esrImportBL.registerActionHandler(X_ESR_ImportLine.ESR_PAYMENT_ACTION_Write_Off_Amount, new WriteoffESRActionHandler());<NEW_LINE>esrImportBL.r... | (), new QRCodeStringParser()); |
915,441 | public void findHydratedProjectsByUser(FindHydratedProjectsByUser request, StreamObserver<AdvancedQueryProjectsResponse> responseObserver) {<NEW_LINE>try {<NEW_LINE>String errorMessage = null;<NEW_LINE>if (request.getEmail().isEmpty() && request.getVertaId().isEmpty()) {<NEW_LINE>errorMessage = "Email OR vertaId not fo... | String userEmail = request.getEmail(); |
459,599 | public String searchFor(final String deviceAddress) {<NEW_LINE>final String firstBytes = deviceAddress.substring(0, 15);<NEW_LINE>// assuming that the device address is correct<NEW_LINE>final String lastByte = deviceAddress.substring(15);<NEW_LINE>final String lastByteIncremented = String.format(Locale.US, "%02X", (Int... | Thread.sleep(BootloaderScanner.TIMEOUT); |
292,731 | public void release(INDArray array) {<NEW_LINE>Preconditions.checkState(released.containsKey(array), "Attempting to release an array that was not allocated by" + <MASK><NEW_LINE>if (released.get(array)) {<NEW_LINE>// Already released<NEW_LINE>InferenceSession is = sd.getSessions().get(Thread.currentThread().getId());<N... | " this memory manager: id=%s", array.getId()); |
628,611 | private String modify(String exp) throws InvalidExpressionException {<NEW_LINE>// Normalize digit equivalents, fraction sign, decimal separators and minus sign<NEW_LINE>char[] chars = exp.toCharArray();<NEW_LINE>for (int i = 0; i < chars.length; i++) {<NEW_LINE>int value = Character.getNumericValue(chars[i]);<NEW_LINE>... | (48 + value)[0]; |
566,335 | public CombinedStatistics runReport() throws IOException {<NEW_LINE>if (!this.data.getVerbosity().showMinionOutput()) {<NEW_LINE>LOG.info("Verbose logging is disabled. If you encounter a problem, please enable it before reporting an issue.");<NEW_LINE>}<NEW_LINE>Log.setVerbose(this.data.getVerbosity());<NEW_LINE>final ... | () / MB) + " mb"); |
1,103,206 | public UpdateConnectivityInfoResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateConnectivityInfoResult updateConnectivityInfoResult = new UpdateConnectivityInfoResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1... | String currentParentElement = context.getCurrentParentElement(); |
115,517 | private static StringBuilder appendValues(String tableKey, List<SQLExpr> values, StringBuilder sb, int autoIncrement, int idxGlobal, int colSize, FrontendService service) throws SQLNonTransientException {<NEW_LINE>// check the value number & the column number is all right<NEW_LINE>int size = values.size();<NEW_LINE>int... | Date().getTime()); |
503,883 | public <T extends JpaObject> List<T> fetchAll(Class<T> clz, List<String> attributes) throws Exception {<NEW_LINE>List<T> list = new ArrayList<>();<NEW_LINE>List<String> fields = ListTools.trim(attributes, true, true, JpaObject.id_FIELDNAME);<NEW_LINE>EntityManager em = this.get(clz);<NEW_LINE>CriteriaBuilder cb = em.ge... | T t = clz.newInstance(); |
65,613 | public static void main(final String[] args) {<NEW_LINE>final int count = 1000000;<NEW_LINE>final P test = new P();<NEW_LINE>Random r = new Random(0);<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>test.<MASK><NEW_LINE>}<NEW_LINE>r = new Random(0);<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>test.add(r.nex... | add(r.nextInt()); |
1,263,602 | public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>if (skip) {<NEW_LINE>getLog().info("Skipping execution of RunMojo MOJO.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>getLog().info("Running JavaFX Application");<NEW_LINE>List<String> command = new ArrayList<>();<NEW_LINE>command.add(getEnv... | Process p = pb.start(); |
884,692 | private Map<NakadiCursor, KafkaCursor> convertToKafkaCursors(final List<NakadiCursor> cursors) throws ServiceTemporarilyUnavailableException, InvalidCursorException {<NEW_LINE>final List<Timeline> timelines = cursors.stream().map(NakadiCursor::getTimeline).distinct().collect(toList());<NEW_LINE>final List<PartitionStat... | get().getBeforeFirst()); |
1,192,036 | public TraversalControl visitArgument(Argument argument, TraverserContext<Node> context) {<NEW_LINE>QueryTraversalContext fieldCtx = <MASK><NEW_LINE>Field field = (Field) fieldCtx.getSelectionSetContainer();<NEW_LINE>QueryVisitorFieldEnvironment fieldEnv = fieldCtx.getEnvironment();<NEW_LINE>GraphQLFieldsContainer fiel... | context.getVarFromParents(QueryTraversalContext.class); |
1,667,493 | public DescribeIdentityProviderConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeIdentityProviderConfigurationResult describeIdentityProviderConfigurationResult = new DescribeIdentityProviderConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<... | String currentParentElement = context.getCurrentParentElement(); |
1,448,087 | public static DescribeAgentInstallStatusResponse unmarshall(DescribeAgentInstallStatusResponse describeAgentInstallStatusResponse, UnmarshallerContext context) {<NEW_LINE>describeAgentInstallStatusResponse.setRequestId<MASK><NEW_LINE>List<AegisClientInvokeStatusResponse> aegisClientInvokeStatusResponseList = new ArrayL... | (context.stringValue("DescribeAgentInstallStatusResponse.RequestId")); |
330,595 | private final Field<?> parseFieldJSONObjectConstructorIf() {<NEW_LINE>boolean jsonb = false;<NEW_LINE>if (parseFunctionNameIf("JSON_OBJECT", "JSON_BUILD_OBJECT") || (jsonb = parseFunctionNameIf("JSONB_BUILD_OBJECT"))) {<NEW_LINE>parse('(');<NEW_LINE>if (parseIf(')'))<NEW_LINE>return jsonb ? jsonbObject() : jsonObject()... | s2 : s2.returning(returning); |
276,289 | protected static Date safeToDate(Object obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>} else if (obj instanceof Date) {<NEW_LINE>return (Date) obj;<NEW_LINE>} else if (obj instanceof ZonedDateTime) {<NEW_LINE>ZonedDateTime zonedDateTime = ((ZonedDateTime) obj);<NEW_LINE>return Timestamp.from(zonedDa... | atZoneSameInstant(ZoneOffset.systemDefault()); |
567,414 | public int compare(PathObject o1, PathObject o2) {<NEW_LINE>PathAnnotationObject p1 = (PathAnnotationObject) o1;<NEW_LINE>PathAnnotationObject p2 = (PathAnnotationObject) o2;<NEW_LINE>int comp = 0;<NEW_LINE>if (p1.hasROI()) {<NEW_LINE>if (p2.hasROI()) {<NEW_LINE>comp = Double.compare(p1.getROI().getCentroidY(), p2.<MAS... | getROI().getCentroidY()); |
443,657 | public void handle(AnnotationValues<AllArgsConstructor> annotation, JCAnnotation ast, JavacNode annotationNode) {<NEW_LINE>handleFlagUsage(annotationNode, ConfigurationKeys.ALL_ARGS_CONSTRUCTOR_FLAG_USAGE, "@AllArgsConstructor", ConfigurationKeys.ANY_CONSTRUCTOR_FLAG_USAGE, "any @xArgsConstructor");<NEW_LINE>deleteAnno... | String staticName = ann.staticName(); |
441,651 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>super.writeTo(out);<NEW_LINE>indices.writeTo(out);<NEW_LINE>if (out.getVersion().before(LegacyESVersion.V_7_7_0)) {<NEW_LINE>out.writeBoolean(Metric.OS.containedIn(requestedMetrics));<NEW_LINE>out.writeBoolean(Metric.PROCESS.containedIn(requestedMetric... | .HTTP.containedIn(requestedMetrics)); |
591,281 | private Map<String, float[]> deprecatedGetFeatureMap() {<NEW_LINE>status = Common.initSession(flParameter.getTrainModelPath());<NEW_LINE>if (status == FLClientStatus.FAILED) {<NEW_LINE>retCode = ResponseCode.RequestError;<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>Map<String, float[]> map = new ... | (alTrainBert.getTrainSession())); |
1,094,987 | public com.amazonaws.services.config.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.config.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.config.model.ResourceNotFoundException(null);<NEW_L... | JsonToken token = context.getCurrentToken(); |
1,355,517 | protected RepositoryModel createRepository(UserModel user, String repository, String action) {<NEW_LINE>boolean isPush = !StringUtils.isEmpty(action) && GIT_RECEIVE_PACK.equals(action);<NEW_LINE>if (GIT_LFS.equals(action)) {<NEW_LINE>// Repository must already exist for any filestore actions<NEW_LINE>return null;<NEW_L... | ("Invalid character '{0}' in repository name {1}!", c, repository)); |
675,520 | private void foldElement(Element element) {<NEW_LINE>if (element != null && element.getChildNodes().getLength() > MAX_SHOW_ITEMS) {<NEW_LINE>for (int i = MAX_SHOW_ITEMS; i < element.getChildNodes().getLength(); i++) {<NEW_LINE>if (element.getChildNodes().item(i) instanceof Element) {<NEW_LINE>((Element) element.getChil... | span.setAttribute("style", FOLDER_STYLE); |
1,796,511 | public static DescribeVmBackupPlansResponse unmarshall(DescribeVmBackupPlansResponse describeVmBackupPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVmBackupPlansResponse.setRequestId(_ctx.stringValue("DescribeVmBackupPlansResponse.RequestId"));<NEW_LINE>describeVmBackupPlansResponse.setSuccess(_ctx.boolean... | ("DescribeVmBackupPlansResponse.Plans[" + i + "].CreatedTime")); |
796,277 | private static ORecordHook.RESULT executeFunction(final ODocument iDocument, final OFunction func, ODatabaseDocumentInternal database) {<NEW_LINE>if (func == null)<NEW_LINE>return ORecordHook.RESULT.RECORD_NOT_CHANGED;<NEW_LINE>final OScriptManager scriptManager = database.getSharedContext().getOrientDB().getScriptMana... | func.getName() + "' has no language"); |
932,060 | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>CoreNamespaceUtils.autoregisterBeansForNamespace(parserContext, element);<NEW_LINE>String dataSource = element.getAttribute("data-source");<NEW_LINE>String jdbcOperations = element.getAttribute("jdbc-operation... | builder.setRole(BeanDefinition.ROLE_SUPPORT); |
776,116 | private void writeAttributes(final ITreeWriter writer, final NodeModel node, final NodeStyleModel style, final boolean forceFormatting) {<NEW_LINE>final Color color = forceFormatting ? nsc.getColor(node, StyleOption.FOR_UNSELECTED_NODE) : style.getColor();<NEW_LINE>if (color != null) {<NEW_LINE>ColorUtils.addColorAttri... | , Boolean.toString(numbered)); |
570,252 | public boolean isValid() {<NEW_LINE>if (!isListenerSelected()) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>wizard.// NOI18N<NEW_LINE>putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, org.openide.util.NbBundle.getMessage(ListenerPanel.class, "MSG_noListenerSelected"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Proj... | getRootFolder(), ClassPath.COMPILE); |
361,376 | private Object tryHandleReference0(Object o, ReferenceType type) throws ReflectiveOperationException {<NEW_LINE>if (o instanceof RedissonReference) {<NEW_LINE>return fromReference((RedissonReference) o, type);<NEW_LINE>} else if (o instanceof ScoredEntry && ((ScoredEntry) o).getValue() instanceof RedissonReference) {<N... | old.getValue(), type); |
1,516,548 | static public IHAWriteMessage processNextBuffer(final RandomAccessFile raf, final IReopenChannel<FileChannel> reopener, final StoreTypeEnum storeType, final ByteBuffer clientBuffer) throws IOException {<NEW_LINE>final FileChannel channel = raf.getChannel();<NEW_LINE>final ObjectInputStream objinstr = new ObjectInputStr... | readAll(reopener, clientBuffer, pos); |
234,260 | public void convolveDerivOrder() {<NEW_LINE>T blur = GeneralizedImageOps.createSingleBand(imageType, width, height);<NEW_LINE>T blurDeriv = GeneralizedImageOps.<MASK><NEW_LINE>T deriv = GeneralizedImageOps.createSingleBand(imageType, width, height);<NEW_LINE>T derivBlur = GeneralizedImageOps.createSingleBand(imageType,... | createSingleBand(imageType, width, height); |
1,744,831 | public void listIncidentsForDetectionConfig() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorAsyncClient.listIncidentsForDetectionConfig#String-OffsetDateTime-OffsetDateTime<NEW_LINE>final String detectionConfigurationId = "c0f2539f-b804-4ab9-a70f-0da0c89c76d8";<NEW_LINE>final OffsetDateTime <MASK><NEW_... | startTime = OffsetDateTime.parse("2020-09-09T00:00:00Z"); |
506,160 | private String dumpJavaColonCompEnvMap() {<NEW_LINE>StringBuffer buffer = new StringBuffer("");<NEW_LINE>buffer.append("EJBContext.lookup data structure contents:\n");<NEW_LINE>buffer.append(" Contains **" + ivJavaColonCompEnvMap.size() + "** bindings.\n");<NEW_LINE>if (!ivJavaColonCompEnvMap.isEmpty()) {<NEW_LINE>Se... | oneEntry.getValue() + "**\n"); |
1,765,258 | private void initJs(Project p, Map<String, String> testStubsParams) throws IOException {<NEW_LINE>Map<String, String> map = new HashMap<String, String>();<NEW_LINE>map.put(RESTCLIENT_STABS_VAR, NbBundle.getMessage(ClientStubsGenerator.class, TTL_RestClient_Stubs));<NEW_LINE>map.put(README_VAR, NbBundle.getMessage(Clien... | JS_TESTSTUBS, HTML, false, testStubsParams); |
1,599,430 | public void createView(Contact contact, Channel channel, final AlMessageViewEvents listener) {<NEW_LINE>removeAllViews();<NEW_LINE>this.listener = listener;<NEW_LINE>LayoutInflater inflater = (LayoutInflater) getContext().getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>View view = in... | findViewById(R.id.attach_button); |
1,242,107 | // GEN-LAST:event_removeClasspathActionPerformed<NEW_LINE>private void addClasspathActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_addClasspathActionPerformed<NEW_LINE>FileChooser chooser = new FileChooser(this.projectFolder, null);<NEW_LINE>FileUtil.preventFileChooserSymlinkTraversal(choo... | ] files = projectFolder.listFiles(); |
1,788,555 | static ImmutableSortedMap<String, String> mergeBuildSettings(ImmutableMap<String, String> configSettings, ImmutableMap<String, String> cxxPlatformBuildSettings, ImmutableMap<String, String> overrideBuildSettings, ImmutableMap<String, String> buckXcodeBuildSettings, ImmutableMap<String, String> appendBuildSettings) {<NE... | " " + entry.getValue()); |
973,908 | //<NEW_LINE>// Gutter painting<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>public void paint(Editor editor, Graphics g, Rectangle r) {<NEW_LINE>ColorValue gutterColor = getGutterColor(myRange, editor);<NEW_LINE>ColorValue borderColor = getGutterBorderColor(editor);<NEW_LINE>Rectangle area = getMarkerArea(editor, r, myRange... | > innerRanges = myRange.getInnerRanges(); |
1,498,450 | public static GetSqlConcurrencyControlRulesHistoryResponse unmarshall(GetSqlConcurrencyControlRulesHistoryResponse getSqlConcurrencyControlRulesHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSqlConcurrencyControlRulesHistoryResponse.setRequestId(_ctx.stringValue("GetSqlConcurrencyControlRulesHistoryResponse.R... | ("GetSqlConcurrencyControlRulesHistoryResponse.Data.List[" + i + "].StartTime")); |
250,720 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "symbol", "price", "sumVol" };<NEW_LINE>String stmtText = "@name('s0') select symbol, price, sum(volume) as sumVol " + "from SupportMarketDataBean#length(5) " + "group by symbol";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0"... | (it.hasNext())); |
304,301 | public ProfilerController newController(final String pid, final ScenarioSettings settings) {<NEW_LINE>List<ProfilerController> controllers = delegates.stream().map((Profiler prof) -> prof.newController(pid, settingsFor(prof, settings))).<MASK><NEW_LINE>return new ProfilerController() {<NEW_LINE><NEW_LINE>@Override<NEW_... | collect(Collectors.toList()); |
202,493 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE><MASK><NEW_LINE>while (TC-- > 0) {<NEW_LINE>// these two values are not used<NEW_LINE>int xsize = sc.nextInt(), ysize = sc.nextInt();<NEW_LINE>int[] x = new int[11], y = new int[11];<NEW_LINE>x[0] = sc.nextInt();<NEW_LINE>y[... | int TC = sc.nextInt(); |
304,810 | // Show table statement.<NEW_LINE>private void handleShowTable() throws AnalysisException {<NEW_LINE>ShowTableStmt showTableStmt = (ShowTableStmt) stmt;<NEW_LINE>List<List<String>> rows = Lists.newArrayList();<NEW_LINE>// TODO(gaoxin): Whether to support "show tables from `ctl.db`" syntax in show statement?<NEW_LINE>St... | (tbl.getName())); |
174,318 | protected boolean addNELAT(JCas jcas, Focus focus, Collection<NamedEntity> NEs) throws AnalysisEngineProcessException {<NEW_LINE>boolean ne_found = false;<NEW_LINE>for (NamedEntity ne : NEs) {<NEW_LINE>ne_found = true;<NEW_LINE>long synset = OpenNlpNamedEntities.neValueToSynset(ne.getValue());<NEW_LINE>POS pos = null;<... | ), pos, synset, 0.0); |
1,589,208 | final ForgotPasswordResult executeForgotPassword(ForgotPasswordRequest forgotPasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(forgotPasswordRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ForgotPasswordRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,159,509 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(2);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(3);<NEW_LINE>UnidbgPointer jvalue = context.get... | dvmMethod.callBooleanMethodA(dvmObject, vaList); |
141,150 | public static void fillHeaders(Metadata metadata, HttpHeadersBuilder builder) {<NEW_LINE>if (InternalMetadata.headerCount(metadata) == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final byte[][] serializedMetadata = InternalMetadata.serialize(metadata);<NEW_LINE>assert serializedMetadata.length % 2 == 0;<NEW_LINE>for (int... | (serializedMetadata[i], false); |
1,425,250 | public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final Map<String, Object> nodeData = webSocketData.getNodeData();<NEW_LINE>final String parentId = (String) nodeData.get("parentId");<NEW_LINE>final String refId = (String) nodeData.get("refId");<NE... | ).build(), true); |
470,735 | public DataSourcesDef defineDatasources() {<NEW_LINE>if (m_def == null) {<NEW_LINE>TypedConfig<String> dataSourceConfig = TypedConfig.get("datasources.xml", new CustomParser());<NEW_LINE>String appId = Foundation<MASK><NEW_LINE>String envType = Foundation.server().getEnvFamily().getName();<NEW_LINE>if (!StringUtil.isEm... | .app().getAppId(); |
591,234 | private static RubyNumeric f_addsub(ThreadContext context, RubyClass metaClass, RubyInteger anum, RubyInteger aden, RubyInteger bnum, RubyInteger bden, final boolean plus) {<NEW_LINE>RubyInteger newNum, newDen, g, a, b;<NEW_LINE>if (anum instanceof RubyFixnum && aden instanceof RubyFixnum && bnum instanceof RubyFixnum ... | (context, bden, g)); |
348,405 | public static MusicBrainzReleasesResult findMBID(final Connection connection, final CoverArtArchiveTagInfo tagInfo) {<NEW_LINE>boolean trace = LOGGER.isTraceEnabled();<NEW_LINE>MusicBrainzReleasesResult result;<NEW_LINE>try {<NEW_LINE>String query = "SELECT MBID, MODIFIED FROM " + TABLE_NAME + constructTagWhere(tagInfo... | tagInfo, e.getMessage()); |
544,481 | final DescribePatchPropertiesResult executeDescribePatchProperties(DescribePatchPropertiesRequest describePatchPropertiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePatchPropertiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,361,349 | public void run(RegressionEnvironment env) {<NEW_LINE>List<SupportBean_ST0> list = new ArrayList<SupportBean_ST0>();<NEW_LINE>for (int i = 0; i < 10000; i++) {<NEW_LINE>list.add(new SupportBean_ST0("E1", 1000));<NEW_LINE>}<NEW_LINE>SupportBean_ST0 minEvent = new SupportBean_ST0("E2", 5);<NEW_LINE>list.add(minEvent);<NE... | >) event.get("val"); |
216,299 | private Mono<PagedResponse<PolicyAssignmentInner>> listForResourceNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>... | )).readOnly())); |
877,605 | public final void complete() {<NEW_LINE>NumberFormat nfMegabyte = NumberFormat.getInstance();<NEW_LINE>NumberFormat nfCounts = NumberFormat.getInstance();<NEW_LINE>nfCounts.setGroupingUsed(true);<NEW_LINE>nfMegabyte.setMaximumFractionDigits(2);<NEW_LINE>LOGGER.info("completing read...");<NEW_LINE>this.tileBasedGeoObjec... | this.configuration, this.tileBasedGeoObjectStore); |
611,462 | public boolean submit(DownloadType downloadType, String uuid, List<DownloadViewExecuteParam> params) {<NEW_LINE>ShareFactor shareFactor = ShareAuthAspect.SHARE_FACTOR_THREAD_LOCAL.get();<NEW_LINE>try {<NEW_LINE>List<WidgetContext> widgetList = getWidgetContexts(downloadType, shareFactor.getEntityId(), shareFactor.getUs... | .setCreateTime(new Date()); |
219,941 | protected GoVisitor buildGoVisitor(@NotNull ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new GoVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitConstDeclaration(@NotNull GoConstDeclaration o) {<NEW_LINE>if (o.getParent() instanceof GoFile) {<NEW_LINE>for (GoCon... | .WEAK_WARNING, new ExtractConstantDefinitionFix()); |
1,569,453 | public static void main(String... ignored) throws IOException, InterruptedException {<NEW_LINE>String basePath = TMP + "/1-source";<NEW_LINE>ChronicleTools.deleteOnExit(basePath);<NEW_LINE>Chronicle chronicle = new IndexedChronicle(basePath);<NEW_LINE>InProcessChronicleSource source = new InProcessChronicleSource(chron... | System.out.println("Allowing connection."); |
873,483 | public Set<Shape> compute(Model model) {<NEW_LINE>Walker shapeWalker = new Walker(NeighborProviderIndex.of(model).getProvider());<NEW_LINE>// Find all shapes connected to any service shape.<NEW_LINE>Set<Shape> <MASK><NEW_LINE>for (Shape service : model.getServiceShapes()) {<NEW_LINE>connected.addAll(shapeWalker.walkSha... | connected = new HashSet<>(); |
894,429 | public void handle(PrimaryStorageInventory inv, GetVolumeRootImageUuidFromPrimaryStorageMsg msg, final ReturnValueCompletion<GetVolumeRootImageUuidFromPrimaryStorageReply> completion) {<NEW_LINE>GetVolumeBaseImagePathCmd cmd = new GetVolumeBaseImagePathCmd();<NEW_LINE>cmd.volumeUuid = msg.getVolume().getUuid();<NEW_LIN... | "operation error, because:%s", rsp.getError()); |
1,271,484 | private void generateQuantizedVertices(DatabaseSession databaseSession, Revision revision, float[] quantizationMatrix, float multiplierToMm) {<NEW_LINE>PackageMetaData packageMetaData = getBimServer().getMetaDataManager().getPackageMetaData(revision.getProject().getSchema());<NEW_LINE>Query query = new Query(packageMet... | Include geometryDataInclude = queryPart.createInclude(); |
82,737 | final GetArtifactUrlResult executeGetArtifactUrl(GetArtifactUrlRequest getArtifactUrlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getArtifactUrlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
157,698 | public TonyApplicationData fetchData(AnalyticJob job) throws Exception {<NEW_LINE>_LOGGER.debug("Fetching data for job " + job.getAppId());<NEW_LINE>long finishTime = job.getFinishTime();<NEW_LINE>Date date = new Date(finishTime);<NEW_LINE>// TODO: We are deriving yyyy/MM/dd from the RM's application finish time, but t... | ParserUtils.getYearMonthDayDirectory(date, _zoneId); |
874,249 | private BeanDefinition parseJupiterClient(Element element, ParserContext parserContext) {<NEW_LINE>RootBeanDefinition def = new RootBeanDefinition();<NEW_LINE>def.setBeanClass(beanClass);<NEW_LINE>addProperty(def, element, "appName", false);<NEW_LINE>addProperty(def, element, "registryType", false);<NEW_LINE>addPropert... | Element) item, "registryServerAddresses", false); |
485,492 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>super.writeTo(out);<NEW_LINE>out.writeByte(searchType.id());<NEW_LINE>out.writeStringArray(indices);<NEW_LINE>out.writeOptionalString(routing);<NEW_LINE>out.writeOptionalString(preference);<NEW_LINE>out.writeOptionalWriteable(scroll);<NEW_LINE>out.writ... | out.writeStringArray(Strings.EMPTY_ARRAY); |
1,537,037 | public void read(org.apache.thrift.protocol.TProtocol prot, grayUpgrade_args struct) throws org.apache.thrift.TException {<NEW_LINE>TTupleProtocol iprot = (TTupleProtocol) prot;<NEW_LINE>BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.topologyName = iprot.readString();<NEW_LINE>st... | struct.workers.add(_elem318); |
1,031,859 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_with_toolbar_progress_and_container);<NEW_LINE>toolbar = ToolbarHelper.setUpDefaultToolbar(this, null, R.drawable.ic_clear_white_24dp);<NEW_LINE>toolbar.inflateMenu(R.menu.toolbar_... | findViewById(R.id.toolbarProgress); |
807,461 | final GetLoggerDefinitionResult executeGetLoggerDefinition(GetLoggerDefinitionRequest getLoggerDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoggerDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,092,555 | private void updateImage(BufferedImage image, boolean force) {<NEW_LINE>int width = image.getWidth();<NEW_LINE>int height = image.getHeight();<NEW_LINE>Graphics2D g = image.createGraphics();<NEW_LINE>myImageHeight = 0;<NEW_LINE>int min = myMin + myGap;<NEW_LINE>int max = height / myArraySize;<NEW_LINE>if (max < min) {<... | ErrorStripe stripe = value.get(); |
94,217 | public void loadComponent() {<NEW_LINE>super.loadComponent();<NEW_LINE>LookupPickerField lookupPickerField = (LookupPickerField) resultComponent;<NEW_LINE>String metaClass = element.attributeValue("metaClass");<NEW_LINE>if (!StringUtils.isEmpty(metaClass)) {<NEW_LINE>lookupPickerField.setMetaClass(getMetadata().getClas... | actionsByMetaAnnotations = guiActionSupport.createActionsByMetaAnnotations(lookupPickerField); |
1,539,780 | void handlePath(Path path, Consumer<Path> consumer) {<NEW_LINE>if (!inputsCache.containsKey(path)) {<NEW_LINE>ImmutableList.Builder<Path> builder = ImmutableList.builder();<NEW_LINE>if (isInRepo(path)) {<NEW_LINE>try {<NEW_LINE>if (Files.isSymbolicLink(path)) {<NEW_LINE>handlePath(path.getParent().resolve(Files.readSym... | ).forEach(consumer::accept); |
336,796 | private static List<Chainable> handleClassPrefixedNonProp(StatementSpecMapContext mapContext, List<Chainable> chain) {<NEW_LINE>int indexOfLastProp = getClassIndexOfLastProp(chain);<NEW_LINE>if (indexOfLastProp == -1 || indexOfLastProp == chain.size() - 1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int depth = indexOf... | buildClassName(chain, depth + 1); |
1,635,957 | public void testConfigWebServiceInWebXml_NoServletMapping() throws Exception {<NEW_LINE>setWebXml("noServletMapping/web.xml");<NEW_LINE>server.startServer();<NEW_LINE>// Pause for application to start successfully<NEW_LINE>server.waitForStringInLog("CWWKZ0001I.*converter");<NEW_LINE>URL url = new URL("http://" + server... | "Calling converter Application with URL=" + url.toString()); |
1,092,891 | public static void process_sub(GrayU8 orig, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final byte[] data = orig.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight() - 1;<NEW_LINE>final int str... | int endX = indexSrc + width - 2; |
912,709 | final DeleteStudioLifecycleConfigResult executeDeleteStudioLifecycleConfig(DeleteStudioLifecycleConfigRequest deleteStudioLifecycleConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStudioLifecycleConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
336,367 | public ByteBuf encodeRequest(Request request) throws Exception {<NEW_LINE>DubboHeader header = new DubboHeader();<NEW_LINE>byte flag = (byte) (FLAG_REQUEST | getContentTypeId());<NEW_LINE>if (!request.isOneWay()) {<NEW_LINE>flag |= FLAG_TWOWAY;<NEW_LINE>}<NEW_LINE>if (request.isHeartbeat()) {<NEW_LINE>flag |= FLAG_EVEN... | String) entry.getValue()); |
767,717 | protected double recompute(DBIDRef id, int mnum, double known, int snum, double sknown) {<NEW_LINE>double mindist = mnum >= 0 ? known : Double<MASK><NEW_LINE>int minIndex = mnum, minIndex2 = -1;<NEW_LINE>for (int i = 0; miter.seek(i).valid(); i++) {<NEW_LINE>if (i == mnum) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>final... | .POSITIVE_INFINITY, mindist2 = Double.POSITIVE_INFINITY; |
1,678,513 | final ReadPresetResult executeReadPreset(ReadPresetRequest readPresetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(readPresetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | false), new ReadPresetResultJsonUnmarshaller()); |
888,006 | private IBuffer mapSource(SourceMapper mapper) throws JavaModelException {<NEW_LINE>char[] contents = <MASK><NEW_LINE>if (contents != null) {<NEW_LINE>// create buffer<NEW_LINE>IBuffer buffer = BufferManager.createBuffer(this);<NEW_LINE>if (buffer == null)<NEW_LINE>return null;<NEW_LINE>BufferManager bufManager = getBu... | mapper.findSource(getModule()); |
321,777 | private void populateDialog() throws CryptoException {<NEW_LINE>KeyInfo keyInfo = KeyPairUtil.getKeyInfo(privateKey);<NEW_LINE>jtfAlgorithm.setText(keyInfo.getAlgorithm());<NEW_LINE><MASK><NEW_LINE>if (keyLength != null) {<NEW_LINE>jtfKeySize.setText(MessageFormat.format(res.getString("DViewPrivateKey.jtfKeySize.text")... | Integer keyLength = keyInfo.getSize(); |
1,537,895 | public JComponent buttonPanel(String title, JButton... buttons) {<NEW_LINE>var label = new JLabel(title, SwingConstants.CENTER);<NEW_LINE>var font = label.getFont();<NEW_LINE>label.setFont(new Font(font.getName(), Font.PLAIN, 6 * font.getSize() / 3));<NEW_LINE>var buttonPanel = new JPanel();<NEW_LINE>buttonPanel.setBac... | setBorder(BorderFactory.createEmptyBorder()); |
680,908 | public JComponent config() {<NEW_LINE>// Apply the orientation for the locale<NEW_LINE>ComponentOrientation orientation = ComponentOrientation.getOrientation(PMS.getLocale());<NEW_LINE>String colSpec = FormLayoutUtil.getColSpec(COL_SPEC, orientation);<NEW_LINE>FormLayout layout = new FormLayout(colSpec, ROW_SPEC);<NEW_... | builder.border(Borders.EMPTY); |
49,841 | public static LedgerMetadataBuilder from(LedgerMetadata other) {<NEW_LINE>LedgerMetadataBuilder builder = new LedgerMetadataBuilder();<NEW_LINE>builder.ledgerId = other.getLedgerId();<NEW_LINE>builder<MASK><NEW_LINE>builder.ensembleSize = other.getEnsembleSize();<NEW_LINE>builder.writeQuorumSize = other.getWriteQuorumS... | .metadataFormatVersion = other.getMetadataFormatVersion(); |
1,060,700 | private void addElementsByPattern(@Nonnull String pattern, @Nonnull final Set<Object> elements, @Nonnull final ProgressIndicator indicator, boolean everywhere) {<NEW_LINE><MASK><NEW_LINE>myProvider.filterElements(ChooseByNameBase.this, pattern, everywhere, indicator, o -> {<NEW_LINE>if (indicator.isCanceled())<NEW_LINE... | long start = System.currentTimeMillis(); |
702,973 | public SearchGameSessionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchGameSessionsResult searchGameSessionsResult = new SearchGameSessionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | int originalDepth = context.getCurrentDepth(); |
452,153 | public IpRangeInventory createIpRange(IpRangeInventory ipr, APICreateMessage msg) {<NEW_LINE>NormalIpRangeVO vo = new SQLBatchWithReturn<NormalIpRangeVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected NormalIpRangeVO scripts() {<NEW_LINE>NormalIpRangeVO vo = new NormalIpRangeVO();<NEW_LINE>vo.setUuid(ipr.getUuid()... | finalIpr = NormalIpRangeInventory.valueOf1(vo); |
633,250 | /*<NEW_LINE>*<NEW_LINE>* Recursively finds in-clauses and reformats them for the parser<NEW_LINE>*<NEW_LINE>* */<NEW_LINE>private String alignINClause(String in) {<NEW_LINE>String paramIn = in;<NEW_LINE>final int indexLowerIn = paramIn.indexOf(IN_LOWER);<NEW_LINE>final int indexLowerInWithParentheses = paramIn.indexOf(... | paramIn.indexOf('(', indexIn); |
960,888 | private InternalImageProcessorResult process(Renderable renderer) throws JRException {<NEW_LINE>if (renderer instanceof ResourceRenderer) {<NEW_LINE>renderer = imageRenderersCache.getLoadedRenderer((ResourceRenderer) renderer);<NEW_LINE>}<NEW_LINE>// check dimension first, to avoid caching renderers that might not be u... | dimensionRenderer = imageRenderersCache.getDimensionRenderable(renderer); |
562,385 | private void handleSegmentReferredToCountAndRententionFlags(SegmentHeader segmentHeader) throws IOException, JBIG2Exception {<NEW_LINE>short referedToSegmentCountAndRetentionFlags = reader.readByte();<NEW_LINE>// 224<NEW_LINE>int referredToSegmentCount = (referedToSegmentCountAndRetentionFlags & 224) >> 5;<NEW_LINE>// ... | (short) (referedToSegmentCountAndRetentionFlags & 31); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.