idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,116,857 | public Future<DataEmitter> load(final Ion ion, final AsyncHttpRequest request, final FutureCallback<LoaderEmitter> callback) {<NEW_LINE>if (request.getUri().getScheme() == null || !request.getUri().toString().startsWith("file:///android_asset/"))<NEW_LINE>return null;<NEW_LINE>final InputStreamDataEmitterFuture ret = n... | callback.onCompleted(e, null); |
1,004,271 | private void visitFieldAccess(ExpressionTree tree, AnnotatedTypeMirror type) {<NEW_LINE>if (!TreeUtils.isFieldAccess(tree) || !handledByValueChecker(type)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>VariableElement fieldElement = (VariableElement) TreeUtils.elementFromTree(tree);<NEW_LINE><MASK><NEW_LINE>if (value != null)... | Object value = fieldElement.getConstantValue(); |
1,658,972 | public PsiMethod createBuildMethod(@NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass parentClass, @Nullable PsiMethod psiMethod, @NotNull PsiClass builderClass, @NotNull String buildMethodName, List<BuilderInfo> builderInfos) {<NEW_LINE>final PsiType <MASK><NEW_LINE>final PsiSubstitutor builderSubstitutor = getBu... | builderType = getReturnTypeOfBuildMethod(parentClass, psiMethod); |
786,637 | public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaExecutionListener.class, CAMUNDA_ELEMENT_EXECUTION_LISTENER).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProvider<CamundaExecutionListener>() {<NEW_LINE><NEW_LINE... | namespace(CAMUNDA_NS).build(); |
1,307,041 | public static void encode(ClientMessage clientMessage, com.hazelcast.client.impl.protocol.codec.holder.CacheConfigHolder cacheConfigHolder) {<NEW_LINE>clientMessage.add(BEGIN_FRAME.copy());<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(new byte[INITIAL_FRAME_SIZE]);<NEW_LINE>encodeInt(initialFrame... | clientMessage, cacheConfigHolder.getExpiryPolicyFactory()); |
1,369,847 | public static ErrorDescription run(HintContext ctx) {<NEW_LINE>TreePath p = ctx.getPath();<NEW_LINE>// NOI18N<NEW_LINE>TypeMirror paramType = ctx.getInfo().getTrees().getTypeMirror(ctx.getVariables().get("$x"));<NEW_LINE>if (paramType.getKind() != TypeKind.CHAR) {<NEW_LINE>if (paramType.getKind() != TypeKind.DECLARED) ... | getTrees().getTypeMirror(p); |
179,609 | protected Class generate(ClassLoaderData data) {<NEW_LINE>Class gen;<NEW_LINE>Object save = CURRENT.get();<NEW_LINE>CURRENT.set(this);<NEW_LINE>try {<NEW_LINE>ClassLoader classLoader = data.getClassLoader();<NEW_LINE>if (classLoader == null) {<NEW_LINE>throw new IllegalStateException("ClassLoader is null while trying t... | className, b, classLoader, protectionDomain); |
834,496 | private void removeValuesContainer() {<NEW_LINE>if (valueContainerAlgorithm.equals(ODefaultIndexFactory.SBTREE_BONSAI_VALUE_CONTAINER)) {<NEW_LINE>final OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();<NEW_LINE>final OReadCache readCache = storage.getReadCache();<NEW_LINE>final OWriteCa... | error(this, "Cannot delete file for value containers", e); |
206,132 | private Mono<PagedResponse<AvailabilitySetInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<... | .nextLink(), null)); |
123,460 | public void train(RegressionDataSet dataSet, boolean parallel) {<NEW_LINE>final int models = baseRegressors.size();<NEW_LINE>weightsPerModel = 1;<NEW_LINE>RegressionDataSet metaSet = new RegressionDataSet(models, new CategoricalData[0]);<NEW_LINE>List<RegressionDataSet> dataFolds = dataSet.cvSet(folds);<NEW_LINE>// ite... | , rds.getTargetValue(i)); |
1,186,252 | boolean match(char patternTypeSuffix, char[] patternPkg, int matchRulePkg, char[] patternTypeName, int matchRuleType, int typeKind, char[] pkg, char[] typeName) {<NEW_LINE>switch(patternTypeSuffix) {<NEW_LINE>case IIndexConstants.CLASS_SUFFIX:<NEW_LINE>if (typeKind != TypeDeclaration.CLASS_DECL)<NEW_LINE>return false;<... | matchRuleType & SearchPattern.R_CASE_SENSITIVE) != 0; |
1,804,771 | public static void toRSS(String hostUrl, String feedLink, String title, String description, List<FeedEntryModel> entryModels, OutputStream os) throws IOException, FeedException {<NEW_LINE>SyndFeed feed = new SyndFeedImpl();<NEW_LINE>feed.setFeedType("rss_2.0");<NEW_LINE>feed.setEncoding("UTF-8");<NEW_LINE>feed.setTitle... | image.setTitle(Constants.NAME); |
548,405 | private static void addClassProxyEqualsMethod(ClassWriter cw, String implClassName) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, INDENT + "adding method : equals (Ljava/lang/Object;)Z");<NEW_LINE>// --------------------------------------------------------------------... | mv.visitVarInsn(ALOAD, 0); |
809,715 | public DatabaseInfo executeQuery(DatabaseConfiguration dbConfig, String query) throws DatabaseServiceException {<NEW_LINE>try {<NEW_LINE>Connection connection = SQLiteConnectionManager.getInstance().getConnection(dbConfig);<NEW_LINE>Statement statement = connection.createStatement();<NEW_LINE>ResultSet queryResult = st... | , metadata.getColumnDisplaySize(i)); |
978,497 | private void writeDecompilationSummary(StringEscapeUtils.Builder builder) {<NEW_LINE>builder.append("<h2>Decompilation</h2>");<NEW_LINE>JadxDecompiler jadx = mainWindow.getWrapper().getDecompiler();<NEW_LINE>List<ClassNode> classes = jadx.getRoot().getClasses(false);<NEW_LINE>int classesCount = classes.size();<NEW_LINE... | addAll(counter.getErrorNodes()); |
688,566 | private void prepareIncrement(PDDocument doc) {<NEW_LINE>try {<NEW_LINE>if (doc != null) {<NEW_LINE>COSDocument cosDoc = doc.getDocument();<NEW_LINE>Map<COSObjectKey, Long> xrefTable = cosDoc.getXrefTable();<NEW_LINE>Set<COSObjectKey> keySet = xrefTable.keySet();<NEW_LINE>long highestNumber = doc.getDocument().getHighe... | getObjectFromPool(cosObjectKey).getObject(); |
1,176,721 | public static long extractSInt64(byte[] bytes, int index) {<NEW_LINE>assertIndexAndType(bytes, index, ValueType.INT64);<NEW_LINE>byte hi1 = (byte) (bytes[index + 0] & 0xff);<NEW_LINE>byte lo1 = (byte) (bytes[index + 1] & 0xff);<NEW_LINE>byte hi2 = (byte) (bytes[index + 2] & 0xff);<NEW_LINE>byte lo2 = (byte) (bytes[inde... | [index + 4] & 0xff); |
801,661 | public static void init() {<NEW_LINE>BotaniaAPI.instance().registerPaintableBlock(Blocks.GLASS, ColorHelper.STAINED_GLASS_MAP);<NEW_LINE>for (DyeColor color : DyeColor.values()) {<NEW_LINE>BotaniaAPI.instance().registerPaintableBlock(ColorHelper.STAINED_GLASS_MAP.apply(color), ColorHelper.STAINED_GLASS_MAP);<NEW_LINE>}... | (color), ColorHelper.STAINED_GLASS_PANE_MAP); |
684,910 | protected void updateOffset() {<NEW_LINE>logger.debug("OffsetMonitor updates offset with leaders=" + partitionLeader);<NEW_LINE>offsetMonitorFailureCount.set(0);<NEW_LINE>for (Map.Entry<TopicAndPartition, BrokerEndPoint> entry : partitionLeader.entrySet()) {<NEW_LINE>String leaderBroker = getHostPort(entry.getValue());... | logger.warn("{} does not have leader partition", tp); |
1,619,497 | public static String shortenText(String text, int width) {<NEW_LINE>GC gc = new GC(UIUtils.getDisplay());<NEW_LINE>// chop string in half and drop a few characters<NEW_LINE>int middle = text.length() / 2;<NEW_LINE>String beginning = text.substring(0, middle - 1);<NEW_LINE>String end = text.substring(middle + 2, text.le... | end = end.substring(1); |
453,525 | final CreateAutoMLJobResult executeCreateAutoMLJob(CreateAutoMLJobRequest createAutoMLJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAutoMLJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
595,880 | public WritableRaster filter(final Raster src, WritableRaster dest) {<NEW_LINE>Validate.notNull(src, "src may not be null");<NEW_LINE>Validate.isTrue(src != dest, "src and dest raster may not be same");<NEW_LINE>Validate.isTrue(src.getNumDataElements() >= 3, src.getNumDataElements(), "luminance raster must have at leas... | : new int[] { 0 }; |
267,720 | public static ListAppVersionsResponse unmarshall(ListAppVersionsResponse listAppVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppVersionsResponse.setRequestId(_ctx.stringValue("ListAppVersionsResponse.RequestId"));<NEW_LINE>listAppVersionsResponse.setCode(_ctx.stringValue("ListAppVersionsResponse.Code"));<... | (_ctx.booleanValue("ListAppVersionsResponse.Success")); |
1,069,693 | private static int asmVersion() {<NEW_LINE>// Find the highest available ASM version on the runtime/classpath, because<NEW_LINE>// if we run with a lower than available ASM version, against a class with<NEW_LINE>// new language features we'll get an UnsupportedOperationException, even if<NEW_LINE>// the ASM version sup... | class.getName(), fieldName); |
1,720,422 | public void marshall(ListObjectParentsRequest listObjectParentsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listObjectParentsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listObjectPa... | listObjectParentsRequest.getMaxResults(), MAXRESULTS_BINDING); |
1,397,217 | public void onOpen(final jakarta.websocket.Session session, EndpointConfig config) {<NEW_LINE>this.wsSession.initializeNativeSession(session);<NEW_LINE>// The following inner classes need to remain since lambdas would not retain their<NEW_LINE>// declared generic types (which need to be seen by the underlying WebSocket... | this.wsSession, ex, logger); |
590,216 | private void populateType(TypeNode node, String className, int arrayDimens) {<NEW_LINE>String qualifiedName = className;<NEW_LINE>Class<?> myType = PRIMITIVE_TYPES.get(className);<NEW_LINE>if (myType == null && importedClasses != null) {<NEW_LINE>if (importedClasses.containsKey(className)) {<NEW_LINE>qualifiedName = im... | def = JavaTypeDefinition.forClass(myType); |
631,183 | public void deserialize(ByteBuf buf) {<NEW_LINE>super.deserialize(buf);<NEW_LINE>int elemNum = buf.readInt();<NEW_LINE>if (rowType == RowType.T_FLOAT_DENSE_COMPONENT) {<NEW_LINE>float[] values = new float[elemNum];<NEW_LINE>for (int i = 0; i < elemNum; i++) {<NEW_LINE>values[i] = buf.readFloat();<NEW_LINE>}<NEW_LINE><M... | vector = VFactory.denseFloatVector(values); |
710,896 | final DeleteTableResult executeDeleteTable(DeleteTableRequest deleteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,248,107 | // ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(available);<NEW_LINE>s... | (dm).append(description); |
143,762 | private void switchView(final String name) {<NEW_LINE>if (this.currentView != null && this.currentView.getCaptionName().equals(name)) {<NEW_LINE>currentView.setSelected(true);<NEW_LINE>if (owner != null) {<NEW_LINE>owner.fireMessageViewChangedEvent(currentView, currentView);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_L... | owner.fireMessageViewChangedEvent(previousView, currentView); |
1,050,175 | public void onResponse(ProbeConnectionResult connectResult) {<NEW_LINE>assert holdsLock() == false : "PeerFinder mutex is held in error";<NEW_LINE>final DiscoveryNode remoteNode = connectResult.getDiscoveryNode();<NEW_LINE>assert remoteNode.isMasterNode() : remoteNode + " is not master-eligible";<NEW_LINE>assert remote... | : "connection result unexpectedly already set to " + probeConnectionResult.get(); |
1,851,836 | public void LAPACK_zggsvp3(String arg0, String arg1, String arg2, IntPointer arg3, IntPointer arg4, IntPointer arg5, DoublePointer arg6, IntPointer arg7, DoublePointer arg8, IntPointer arg9, DoublePointer arg10, DoublePointer arg11, IntPointer arg12, IntPointer arg13, DoublePointer arg14, IntPointer arg15, DoublePointe... | arg22, arg23, arg24, arg25); |
129,311 | public static void main(final String[] args) {<NEW_LINE>final Array<Integer> a = array(97, 44, 67, 3, 22, 90, 1, 77, 98, 1078, 6, 64, 6, 79, 42);<NEW_LINE>final int b = a.foldLeft(add, 0);<NEW_LINE>// WARNING: In JDK 8, update 20 and 25 (current version) the following code triggers an internal JDK compiler error, likel... | = i -> j -> i + j; |
1,078,133 | public static void print(NetworkSecurityGroup resource) {<NEW_LINE>StringBuilder info = new StringBuilder();<NEW_LINE>info.append("NSG: ").append(resource.id()).append("Name: ").append(resource.name()).append("\n\tResource group: ").append(resource.resourceGroupName()).append("\n\tRegion: ").append(resource.region()).a... | append(rule.priority()); |
1,488,485 | public int compareValues(List<T> o1, List<T> o2) {<NEW_LINE>int length1 = o1 == null ? 0 : o1.size();<NEW_LINE>int length2 = o2 == null <MASK><NEW_LINE>// An empty list is before any filled list.<NEW_LINE>if (length1 == 0 && length2 == 0)<NEW_LINE>return 0;<NEW_LINE>if (length1 == 0)<NEW_LINE>return -1;<NEW_LINE>if (le... | ? 0 : o2.size(); |
1,091,241 | public static DescribeSynchronizationObjectModifyStatusResponse unmarshall(DescribeSynchronizationObjectModifyStatusResponse describeSynchronizationObjectModifyStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSynchronizationObjectModifyStatusResponse.setRequestId(_ctx.stringValue("DescribeSynchronizationObj... | (_ctx.stringValue("DescribeSynchronizationObjectModifyStatusResponse.DataSynchronizationStatus.Delay")); |
1,162,625 | public List<Writable> transformRawStringsToInputList(List<String> values) {<NEW_LINE>List<Writable> ret = new ArrayList<>();<NEW_LINE>if (values.size() != initialSchema.numColumns())<NEW_LINE>throw new IllegalArgumentException(String.format("Number of values %d does not match the number of input columns %d for schema",... | .get(i)))); |
438,806 | public void deleteEntry(final int index, final long hashCode, final byte[] key, final byte[] value) {<NEW_LINE>final int size = size();<NEW_LINE>if (index < 0 || index >= size) {<NEW_LINE>throw new IllegalStateException("Can not delete entry outside of border of the bucket");<NEW_LINE>}<NEW_LINE>final int freePointer =... | setIntValue(currentPositionOffset, currentEntryPosition + entrySize); |
938,104 | protected List<Element> expandTimeHM(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>Matcher reMatcher = reHourMinute.matcher(s);<NEW_LINE>reMatcher.find();<NEW_LINE>String hour = reMatcher.group(1);<NEW_LINE>if (hour.equals... | (number.expandInteger(hour)); |
660,781 | public static QuerySmsTemplateListResponse unmarshall(QuerySmsTemplateListResponse querySmsTemplateListResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySmsTemplateListResponse.setRequestId(_ctx.stringValue("QuerySmsTemplateListResponse.RequestId"));<NEW_LINE>querySmsTemplateListResponse.setCode(_ctx.stringValue("Que... | ("QuerySmsTemplateListResponse.SmsTemplateList[" + i + "].TemplateContent")); |
1,219,372 | public void encode(Buffer valueBuffer) {<NEW_LINE>StrategyAnalyzer<Long> collectIntervalStrategyAnalyzer = collectIntervalAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> sampledNewCountStrategyAnalyzer = sampledNewCountAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> sampledContinuationCountStrategyAna... | getBestStrategy().getCode()); |
1,718,427 | public double compare(String s1, String s2) {<NEW_LINE>int len = Math.min(s1.length(), s2.length());<NEW_LINE>// we know that if the outcome here is 0.5 or lower, then the<NEW_LINE>// property will return the lower probability. so the moment we<NEW_LINE>// learn that probability is 0.5 or lower we can return 0.0 and<NE... | ), s2.length()); |
74,868 | public void refresh(final ShardingSphereMetaData schemaMetaData, final FederationDatabaseMetaData database, final Map<String, OptimizerPlannerContext> optimizerPlanners, final Collection<String> logicDataSourceNames, final CreateIndexStatement sqlStatement, final ConfigurationProperties props) throws SQLException {<NEW... | indexName, new IndexMetaData(indexName)); |
1,770,297 | private ObjectNode mergeObjectNodes(ObjectNode targetNode, ObjectNode updateNode) {<NEW_LINE>Iterator<String<MASK><NEW_LINE>while (fieldNames.hasNext()) {<NEW_LINE>String fieldName = fieldNames.next();<NEW_LINE>JsonNode targetValue = targetNode.get(fieldName);<NEW_LINE>JsonNode updateValue = updateNode.get(fieldName);<... | > fieldNames = updateNode.fieldNames(); |
446,453 | public void visitInsn(final int opcode) {<NEW_LINE>// adds the instruction to the bytecode of the method<NEW_LINE><MASK><NEW_LINE>// update currentBlock<NEW_LINE>// Label currentBlock = this.currentBlock;<NEW_LINE>if (this.currentBlock != null) {<NEW_LINE>if (this.compute == FRAMES) {<NEW_LINE>this.currentBlock.frame.e... | this.code.putByte(opcode); |
1,031,771 | private static void mainGenerate(String[] args) throws Exception {<NEW_LINE>ShellParams shellParams = new ShellParams(boolKeys, keys, args);<NEW_LINE>String javaFile = shellParams.getValue(IN_PATH);<NEW_LINE>String outPath = shellParams.getValue(OUT_PATH);<NEW_LINE>String fileName = shellParams.getValue(OUT_NAME);<NEW_... | , shellParams.getValue(CLASS_NAME)); |
1,380,022 | public UploadChangesResponse uploadSubscriptionChanges(List<String> added, List<String> removed) throws GpodnetServiceException {<NEW_LINE>requireLoggedIn();<NEW_LINE>try {<NEW_LINE>URL url = new URI(baseScheme, null, baseHost, basePort, String.format("/api/2/subscriptions/%s/%s.json", username, deviceId), null, null).... | final JSONObject requestObject = new JSONObject(); |
784,914 | void sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) {<NEW_LINE>Map<String, BaseRuntimeElementDefinition<?>> <MASK><NEW_LINE>myDatatypeToAttributeName = new HashMap<>();<NEW_LINE>myDatatypeToDefinition = new HashMap<>();<NEW_LINE>for (... | datatypeAttributeNameToDefinition = new HashMap<>(); |
1,515,448 | void updateFont() {<NEW_LINE>int fontSize = ((Integer) fontSizeSpinner.getValue()).intValue();<NEW_LINE>File file = null;<NEW_LINE>if (fontFileRadio.isSelected()) {<NEW_LINE>file = new File(fontFileText.getText());<NEW_LINE>if (!file.exists() || !file.isFile())<NEW_LINE>file = null;<NEW_LINE>}<NEW_LINE>boolean isFreeTy... | ()).intValue()); |
1,295,355 | public DescribeChannelResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeChannelResult describeChannelResult = new DescribeChannelResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
876,165 | public UpdateByQueryRequest updateByQueryRequest(UpdateQuery query, IndexCoordinates index) {<NEW_LINE>String indexName = index.getIndexName();<NEW_LINE>final UpdateByQueryRequest updateByQueryRequest = new UpdateByQueryRequest(indexName);<NEW_LINE>updateByQueryRequest<MASK><NEW_LINE>if (query.getAbortOnVersionConflict... | .setScript(getScript(query)); |
1,670,996 | public Map tasks(@PathVariable String clusterName, @PathVariable String topology, @PathVariable Integer taskId, @RequestParam(value = "window", required = false) String window) {<NEW_LINE>Map<String, Object> ret = new HashMap<>();<NEW_LINE>int win = UIUtils.parseWindow(window);<NEW_LINE>NimbusClient client = null;<NEW_... | ret.put("topologyId", topology); |
1,197,713 | public static void fill(Pointer to, UnsignedWord size, byte value) {<NEW_LINE>long v = value & 0xffL;<NEW_LINE>v = (v << 8) | v;<NEW_LINE>v = (v << 16) | v;<NEW_LINE>v = (v << 32) | v;<NEW_LINE>UnsignedWord alignMask = WordFactory.unsigned(0x7);<NEW_LINE>UnsignedWord lowerSize = WordFactory.unsigned(0x8).subtract(to).a... | fillUnalignedLower(to, v, lowerSize); |
1,394,281 | public LogicalInsert visit(LogicalInsert logicalInsert) {<NEW_LINE>RelNode input = logicalInsert.getInput();<NEW_LINE>// Batch insert won't include RexCalls, so skip it.<NEW_LINE>if (input != null && logicalInsert.getBatchSize() == 0) {<NEW_LINE>// VALUES clause<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>List<RexNode> duplica... | input = input.accept(this); |
756,794 | private static PsiElement findTargetElementImpl(@Nonnull Editor editor, @Nonnull Set<String> flags, int offset) {<NEW_LINE><MASK><NEW_LINE>if (project == null)<NEW_LINE>return null;<NEW_LINE>if (flags.contains(TargetElementUtilEx.LOOKUP_ITEM_ACCEPTED)) {<NEW_LINE>PsiElement element = getTargetElementFromLookup(project)... | Project project = editor.getProject(); |
513,850 | final ListEventActionsResult executeListEventActions(ListEventActionsRequest listEventActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
236,974 | protected List findByUserId(String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM UserTracker IN CLASS com.liferay.portal.ejb.UserTrackerHBM WHERE ");<NEW_LINE>query.append("... | (UserTrackerHBMUtil.model(userTrackerHBM)); |
844,728 | @ResponseBody<NEW_LINE>@ApiImplicitParams({ @ApiImplicitParam(name = "store", dataType = "String", defaultValue = "DEFAULT"), @ApiImplicitParam(name = "lang", dataType = "String", defaultValue = "en") })<NEW_LINE>public PersistableProductReview update(@PathVariable final Long id, @PathVariable final Long reviewId, @Val... | "Error while saving product review" + e.getMessage()); |
405,249 | public static String humanDuration(final Duration dur) {<NEW_LINE>final Period p = dur<MASK><NEW_LINE>if (dur.getStandardSeconds() == 0) {<NEW_LINE>return "0 seconds";<NEW_LINE>} else if (dur.getStandardSeconds() < 60) {<NEW_LINE>return format("%d second%s", p.getSeconds(), p.getSeconds() > 1 ? "s" : "");<NEW_LINE>} el... | .toPeriod().normalizedStandard(); |
1,715,352 | public void visit(BIRBasicBlock birBasicBlock) {<NEW_LINE>// Name of the basic block<NEW_LINE>addCpAndWriteString(birBasicBlock.id.value);<NEW_LINE>// Number of instructions<NEW_LINE>// Adding the terminator instruction as well.<NEW_LINE>buf.writeInt(birBasicBlock.instructions.size() + 1);<NEW_LINE>birBasicBlock.instru... | BLangCompilerException("Basic block without a terminator : " + birBasicBlock.id); |
1,646,778 | final UpdatePatchBaselineResult executeUpdatePatchBaseline(UpdatePatchBaselineRequest updatePatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePatchBaselineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
884,197 | public static void patchBundledServerXml(File serverXml) {<NEW_LINE>try {<NEW_LINE>Server server = Server.createGraph(serverXml);<NEW_LINE>setServerAttributeValue(server, ATTR_PORT, String.valueOf(TomcatProperties.DEF_VALUE_BUNDLED_SHUTDOWN_PORT));<NEW_LINE>setHttpConnectorAttributeValue(server, ATTR_PORT, String<MASK>... | .valueOf(TomcatProperties.DEF_VALUE_BUNDLED_SERVER_PORT)); |
491,722 | private void applyWithConfig(String[] row, int line, List<FileField> fileFieldList, List<Integer> ignoreFields, FileTab fileTab, Boolean isTabConfig, int tabConfigRowCount) throws AxelorException, ClassNotFoundException {<NEW_LINE>Mapper mapper = getMapper(fileTab.getMetaModel().getFullName());<NEW_LINE>FileField fileF... | setSampleLines(line, value, fileField); |
963,432 | static TBigInteger multiplyPAP(TBigInteger a, TBigInteger b) {<NEW_LINE>// PRE: a >= b<NEW_LINE>int aLen = a.numberLength;<NEW_LINE>int bLen = b.numberLength;<NEW_LINE>int resLength = aLen + bLen;<NEW_LINE>int resSign = (a.sign != b.sign) ? -1 : 1;<NEW_LINE>// A special case when both numbers don't exceed int<NEW_LINE>... | int[] aDigits = a.digits; |
1,131,818 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>@Path("/segments")<NEW_LINE>@Authenticate(AccessType.CREATE)<NEW_LINE>@ApiOperation(value = "Upload a segment", notes = "Upload a segment as binary")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 200, message = "Succ... | , request, true, allowRefresh)); |
210,945 | private synchronized void deleteComment(final CommentingStrategy strategy, final IComment comment) throws CouldntDeleteException {<NEW_LINE>Preconditions.checkNotNull(comment, "IE02541: comment argument can not be null");<NEW_LINE>Preconditions.checkArgument(CUserManager.get(provider).isOwner(comment), "Error: a commen... | getUser().getUserId()); |
1,123,034 | public StateId createStateId(String name) {<NEW_LINE>if (createdStateIds.containsKey(name))<NEW_LINE>return createdStateIds.get(name);<NEW_LINE>if (stateIndexCounter >= activityStates[0].length) {<NEW_LINE>activityStates = new Object[nuActivities][stateIndexCounter + 1];<NEW_LINE>vehicleDependentActivityStates = new Ob... | [nuVehicleTypeKeys][stateIndexCounter + 1]; |
310,444 | public static DynamicConfigAddQueueConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<N... | name = StringCodec.decode(iterator); |
1,060,483 | public static ArrowRecordBatch deserializeRecordBatch(RecordBatch recordBatchFB, ArrowBuf body) throws IOException {<NEW_LINE>// Now read the body<NEW_LINE>int nodesLength = recordBatchFB.nodesLength();<NEW_LINE>List<ArrowFieldNode> nodes = new ArrayList<>();<NEW_LINE>for (int i = 0; i < nodesLength; ++i) {<NEW_LINE>Fi... | compression().method()); |
1,397,708 | private long[] _decode(String hash, String alphabet) {<NEW_LINE>final ArrayList<Long> ret = new ArrayList<>();<NEW_LINE>String shuffle = alphabet;<NEW_LINE>int i = 0;<NEW_LINE>final String regexp = "[" + this.guards + "]";<NEW_LINE>String hashBreakdown = hash.replaceAll(regexp, " ");<NEW_LINE>String[] <MASK><NEW_LINE>i... | hashArray = hashBreakdown.split(" "); |
192,293 | public void dragGestureRecognized(final DragGestureEvent e) {<NEW_LINE>final MainView mainView = <MASK><NEW_LINE>final NodeView nodeView = mainView.getNodeView();<NEW_LINE>final MapView mapView = nodeView.getMap();<NEW_LINE>mapView.select();<NEW_LINE>if (!nodeView.isSelected()) {<NEW_LINE>nodeView.getMap().getModeContr... | (MainView) e.getComponent(); |
566,977 | public static <EdgeType extends ZyGraphEdge<?, ?, ?>> void handleEdgeClicks(final AbstractZyGraph<?, ?> graph, final EdgeType edge, final MouseEvent event) {<NEW_LINE>Preconditions.checkNotNull(graph, "Error: Graph argument can not be null");<NEW_LINE><MASK><NEW_LINE>Preconditions.checkNotNull(event, "Error: Event argu... | Preconditions.checkNotNull(edge, "Error: Edge argument can not be null"); |
899,732 | public static void addCounter(HashTree tree, List<ScenarioVariable> variables, boolean isInternal) {<NEW_LINE>if (CollectionUtils.isNotEmpty(variables)) {<NEW_LINE>List<ScenarioVariable> list = variables.stream().filter(ScenarioVariable::isCounterValid).collect(Collectors.toList());<NEW_LINE>if (CollectionUtils.isNotEm... | "" : item.getDescription()); |
1,290,960 | public void actionPerformed(ActionEvent evt) {<NEW_LINE>if (evt.getSource() instanceof JButton) {<NEW_LINE>if (evt.getActionCommand() == ADD) {<NEW_LINE>FilterMappingData fmd = new FilterMappingData(deployData.getName());<NEW_LINE>MappingEditor editor = new MappingEditor(fmd, deployData.getServletNames());<NEW_LINE>edi... | table.addRow(0, fmd); |
1,201,102 | final GetEC2RecommendationProjectedMetricsResult executeGetEC2RecommendationProjectedMetrics(GetEC2RecommendationProjectedMetricsRequest getEC2RecommendationProjectedMetricsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEC2RecommendationProjectedMetricsRequest);<NEW_LINE><MASK><NEW_LI... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
778,748 | public Xml preVisit(Xml tree, P p) {<NEW_LINE>Xml x = super.preVisit(tree, p);<NEW_LINE>if (x != null) {<NEW_LINE>String prefix = x.getPrefix();<NEW_LINE>if (prefix.contains("\n")) {<NEW_LINE>int indentMultiple = (int) getCursor().getPathAsStream().filter(Xml.Tag.class::<MASK><NEW_LINE>if (getCursor().getValue() instan... | isInstance).count() - 1; |
1,508,548 | protected void extractRow() throws Exception {<NEW_LINE>Resource _graph = null;<NEW_LINE>Resource _subject = subject;<NEW_LINE>URI _predicate = predicate;<NEW_LINE>Value _object = object;<NEW_LINE>Object val = null;<NEW_LINE>try {<NEW_LINE>if (col_g != -1) {<NEW_LINE>val = v_rs.getObject(col_g);<NEW_LINE>_graph = (Reso... | _subject, _predicate, _object, _graph); |
1,205,233 | private void defineOriginalSymbol(BLangExpression lhsExpr, BVarSymbol varSymbol, SymbolEnv env, AnalyzerData data) {<NEW_LINE>BSymbol foundSym = symResolver.lookupSymbolInMainSpace(env, varSymbol.name);<NEW_LINE>// Terminate if we reach the env where the original symbol is available.<NEW_LINE>if (foundSym == varSymbol)... | SymbolEnv.createTypeNarrowedEnv(lhsExpr, env); |
1,813,322 | public static void main(String[] args) throws Exception {<NEW_LINE>if (Kilim.trampoline(false, args))<NEW_LINE>return;<NEW_LINE>Demo demo = new Demo();<NEW_LINE>cycle(demo);<NEW_LINE>cycle((Fork) demo.body2);<NEW_LINE>Fork fork = demo.body3;<NEW_LINE>Field[] fields = fork.getClass().getDeclaredFields();<NEW_LINE>Object... | field.set(fork, null); |
1,323,192 | public void multiply(Vec b, double z, Vec c) {<NEW_LINE>if (this.cols() != b.length())<NEW_LINE>throw new ArithmeticException("Matrix dimensions do not agree, [" + rows() + "," + cols() + "] x [" + b.length() + ",1]");<NEW_LINE>if (this.rows() != c.length())<NEW_LINE>throw new ArithmeticException("Target vector dimensi... | increment(i, dot * z); |
1,043,969 | private Trace populateTraceId(scala.Option context) {<NEW_LINE>scala.collection.Map traceContextMap = (scala.collection.Map) context.get();<NEW_LINE>Map map = JavaConversions.mapAsJavaMap(traceContextMap);<NEW_LINE>String transactionId = (<MASK><NEW_LINE>String spanId = (String) map.get("spanId");<NEW_LINE>String paren... | String) map.get("transactionId"); |
1,034,891 | public void onSkuDetailsResponse(BillingResult billingResult, List<SkuDetails> skuDetailsList) {<NEW_LINE>try {<NEW_LINE>int responseCode = billingResult.getResponseCode();<NEW_LINE>if (responseCode == BillingResponseCode.OK) {<NEW_LINE>JSONArray products = new JSONArray();<NEW_LINE>Log.d("IAP", "Got " + skuDetailsList... | "title", skuDetails.getTitle()); |
1,810,621 | public void createVirtualMachine(VMInstanceVO dbVm, StringBuffer syncLogMesg) throws IOException {<NEW_LINE>syncLogMesg.append("VM# DB: " + dbVm.getInstanceName() + "/" + <MASK><NEW_LINE>VirtualMachineModel vmModel = new VirtualMachineModel(dbVm, dbVm.getUuid());<NEW_LINE>vmModel.build(_manager.getModelController(), db... | dbVm.getUuid() + "; VNC: none; action: create\n"); |
1,669,196 | private void compareField(IBaseParameters theDiff, EncodeContextPath theSourceEncodePath, String theSourcePath, String theTargetPath, IBase theOldField, IBase theNewField, BaseRuntimeChildDefinition theChildDef) {<NEW_LINE>String elementName = theChildDef.getElementName();<NEW_LINE>boolean repeatable = theChildDef.getM... | getElementDefinition(sourceChildField.getClass()); |
343,495 | private Index createIndex(Table t, IndexColumn[] cols, boolean unique) {<NEW_LINE>int indexId = session.getDatabase().allocateObjectId();<NEW_LINE>IndexType indexType;<NEW_LINE>if (unique) {<NEW_LINE>// for unique constraints<NEW_LINE>indexType = IndexType.createUnique(t.isPersistIndexes(), false);<NEW_LINE>} else {<NE... | getSchema().freeUniqueName(indexName); |
1,157,856 | public boolean onKeyDown(int keyCode, KeyEvent event) {<NEW_LINE>switch(event.getKeyCode()) {<NEW_LINE>case KeyEvent.KEYCODE_VOLUME_DOWN:<NEW_LINE>case KeyEvent.KEYCODE_VOLUME_UP:<NEW_LINE>case KeyEvent.KEYCODE_VOLUME_MUTE:<NEW_LINE>if (JoH.quietratelimit("button-press", 5)) {<NEW_LINE>if (Pref.getBooleanDefaultFalse("... | Log.d(TAG, "no active alert to snooze"); |
398,281 | public static ExpandableComposite createExpandibleComposite(Composite parent, String label, int nColumns, boolean expanded) {<NEW_LINE>ExpandableComposite excomposite = new ExpandableComposite(parent, SWT.NONE, ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT);<NEW_LINE>excomposite.setText(label);<NEW_LI... | Control) e.getSource()); |
185,594 | boolean visit(JsonCustomSchema schema) {<NEW_LINE>Map<String, Map<String, String>> tableNames = new HashMap<>();<NEW_LINE>List<JsonTable> tables = schema.tables;<NEW_LINE>for (JsonTable table : tables) {<NEW_LINE>Map<String, Object> map = ((JsonCustomTable) table).operand;<NEW_LINE>Map<String, String> operand = map.ent... | () == names.size(); |
1,027,957 | public void parse(String mappingStr) {<NEW_LINE>StringTokenizer tokenizer <MASK><NEW_LINE>while (tokenizer.hasMoreElements()) {<NEW_LINE>String mapping = tokenizer.nextToken();<NEW_LINE>String[] mappingGroups = mapping.split(",");<NEW_LINE>String mappedGroup = null;<NEW_LINE>int indexOfArrow = mapping.indexOf("->");<NE... | = new StringTokenizer(mappingStr, ";"); |
1,398,861 | private void loadWordList(final DefaultListModel data) {<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>if (provider != null) {<NEW_LINE>final String userWords = provider.getUserWords(SpellChecker.getCurrentLocale());<NEW_LINE>if (userWords != null) {<NEW_LINE>final BufferedReader input = new BufferedReader(new StringRe... | UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider(); |
1,304,528 | protected void moveAbsoluteImmediate(Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) {<NEW_LINE>boundingBox.setMiddleX(position.getX());<NEW_LINE>boundingBox.setMiddleY(position.getY() + boundingBox.getSizeY() / 2);<NEW_LINE>boundingBox.setMiddleZ(position.getZ());<NEW_... | = iter.getY() + 1; |
1,511,891 | private static TableMetadata commit(TableOperations ops, UpdateTableRequest request) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>Tasks.foreach(ops).retry(COMMIT_NUM_RETRIES_DEFAULT).exponentialBackoff(COMMIT_MIN_RETRY_WAIT_MS_DEFAULT, COMMIT_MAX_RETRY_WAIT_MS_DEFAULT, COMMIT_TOTAL_RETRY_TIME_MS_DEFAULT, 2.0).onlyRetryOn(... | AtomicBoolean isRetry = new AtomicBoolean(false); |
1,595,915 | protected BarChart<String, Number> createChart() {<NEW_LINE>final String[] years = { "2007", "2008", "2009" };<NEW_LINE>final CategoryAxis xAxis = new CategoryAxis();<NEW_LINE>final NumberAxis yAxis = new NumberAxis();<NEW_LINE>yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, "$", null));<NEW_LINE>fin... | Series<String, Number>(); |
470,392 | public static <A, B> ImmutableList<B> transform(Collection<A> items, int maxThreadCount, final Function<A, B> funk) {<NEW_LINE>checkNotNull(funk);<NEW_LINE>checkNotNull(items);<NEW_LINE>int threadCount = max(1, min(items<MASK><NEW_LINE>ThreadFactory threadFactory = threadCount > 1 ? currentRequestThreadFactory() : null... | .size(), maxThreadCount)); |
841,672 | protected void publish(String topic, Object mqttMessage, Message<?> message) {<NEW_LINE>Assert.isInstanceOf(MqttMessage.class, mqttMessage, "The 'mqttMessage' must be an instance of 'MqttMessage'");<NEW_LINE>try {<NEW_LINE>IMqttDeliveryToken token = checkConnection().publish<MASK><NEW_LINE>ApplicationEventPublisher app... | (topic, (MqttMessage) mqttMessage); |
1,716,796 | private void produceInTrx() {<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>final I_C_Order order = ordersRepo.getById(orderId);<NEW_LINE>final ImmutableMap<OrderLineId, I_C_OrderLine> existingOrderLines = Maps.uniqueIndex(ordersRepo.retrieveOrderLines(orderId, I_C_OrderLine.class), orderLineRecord -> OrderLin... | updateOrderLine(order, existingOrderLine, row); |
23,704 | private void updateState(List components) {<NEW_LINE>if ((components == null) || (components.size() < 1)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FormModel formModel = ((RADComponent) components.get(0)).getFormModel();<NEW_LINE>LayoutModel layoutModel = formModel.getLayoutModel();<NEW_LINE>FormDesigner formDesigner = Fo... | String id = radC.getId(); |
594,374 | SelectedConfig select(InetSocketAddress localAddr, InetSocketAddress remoteAddr) {<NEW_LINE>Collection<FilterChain> filterChains = routingConfigs.keySet();<NEW_LINE>filterChains = filterOnDestinationPort(filterChains);<NEW_LINE>filterChains = filterOnIpAddress(filterChains, localAddr.getAddress(), true);<NEW_LINE>filte... | ), localAddr.getAddress()); |
1,778,421 | final DescribeUserPoolResult executeDescribeUserPool(DescribeUserPoolRequest describeUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeUserPool"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.