idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,063,266 | public Mono<Void> writeTo(ClientHttpRequest request, ExchangeStrategies strategies) {<NEW_LINE>HttpHeaders requestHeaders = request.getHeaders();<NEW_LINE>if (!this.headers.isEmpty()) {<NEW_LINE>this.headers.entrySet().stream().filter(entry -> !requestHeaders.containsKey(entry.getKey())).forEach(entry -> requestHeaders... | this.httpRequestConsumer.accept(request); |
1,423,221 | IKeyframes<Double, Vector3[]> parseNormalKeyframes(@NotNull String DEF) throws XPathExpressionException {<NEW_LINE>Node tag;<NEW_LINE>Node node;<NEW_LINE>NodeList nodes;<NEW_LINE>XPathExpression expr;<NEW_LINE>XPath xpath = xPathfactory.newXPath();<NEW_LINE>Element scene = (Element) mDoc.getDocumentElement().getElement... | = i * framelength + j * 3; |
600,672 | public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Location s3Location = new S3Location();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MA... | JsonToken token = context.getCurrentToken(); |
1,707,472 | public void handle(ResteasyReactiveRequestContext requestContext) throws Exception {<NEW_LINE>ServerHttpResponse response = requestContext.serverResponse();<NEW_LINE>String contentEncoding = response.getResponseHeader(HttpHeaders.CONTENT_ENCODING);<NEW_LINE>if (contentEncoding != null && io.vertx.core.http.HttpHeaders.... | (MediaType.valueOf(produces)); |
1,618,263 | // internal async trace.<NEW_LINE>@Override<NEW_LINE>public Trace continueAsyncContextTraceObject(TraceRoot traceRoot, LocalAsyncId localAsyncId, boolean canSampled) {<NEW_LINE>if (canSampled) {<NEW_LINE>final SpanChunkFactory spanChunkFactory = new AsyncSpanChunkFactory(traceRoot, localAsyncId);<NEW_LINE>final Storage... | > callStack = callStackFactory.newCallStack(); |
1,545,290 | public static QueryAuthResponse unmarshall(QueryAuthResponse queryAuthResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAuthResponse.setRequestId<MASK><NEW_LINE>queryAuthResponse.setCode(_ctx.integerValue("QueryAuthResponse.Code"));<NEW_LINE>queryAuthResponse.setSuccess(_ctx.booleanValue("QueryAuthResponse.Success"))... | (_ctx.stringValue("QueryAuthResponse.RequestId")); |
87,980 | final DeleteWorkflowResult executeDeleteWorkflow(DeleteWorkflowRequest deleteWorkflowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWorkflowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
550,240 | public void onCraftMatrixChanged() {<NEW_LINE>if (contentHolder.getBlueprintWorld().isClientSide)<NEW_LINE>return;<NEW_LINE>ServerPlayer serverplayerentity = (ServerPlayer) player;<NEW_LINE>CraftingContainer craftingInventory = new BlueprintCraftingInventory(this, ghostInventory);<NEW_LINE>Optional<CraftingRecipe> opti... | ItemStack toSend = itemstack.copy(); |
364,382 | protected void executeParse(BpmnParse bpmnParse, StartEvent element) {<NEW_LINE>if (element.getSubProcess() != null && element.getSubProcess() instanceof EventSubProcess) {<NEW_LINE>if (CollectionUtil.isNotEmpty(element.getEventDefinitions())) {<NEW_LINE>EventDefinition eventDefinition = element.getEventDefinitions().g... | ().createEventSubProcessErrorStartEventActivityBehavior(element)); |
1,576,246 | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>// parse attributes (but replace the value assignment with references)<NEW_LINE>NamedNodeMap attributes = element.getAttributes();<NEW_LINE>for (int x = 0; x < attributes.getLength(); x++) {<NEW_LINE>Attr attr... | Attr) attributes.item(x); |
1,145,101 | public void saveScreenshot() {<NEW_LINE>// Since ScreenGrabber is initialized before DisplayResolutionDependentFbo (because the latter contains a reference to the former)<NEW_LINE>// on first call on saveScreenshot() displayResolutionDependentFBOs will be null.<NEW_LINE>if (displayResolutionDependentFBOs == null) {<NEW... | CoreRegistry.get(DisplayResolutionDependentFbo.class); |
145,222 | private Iterable<CacheEntryEvent<? extends K, ? extends V>> createCacheEntryEvent(Collection<CacheEventData> keys) {<NEW_LINE>HashSet<CacheEntryEvent<? extends K, ? extends V>> evt = new HashSet<CacheEntryEvent<? extends K, ? extends V>>();<NEW_LINE>for (CacheEventData cacheEventData : keys) {<NEW_LINE>EventType eventT... | toObject(cacheEventData.getDataKey()); |
1,843,368 | private void drawOneHexa(UGraphic ug, String colorName, int i, int j, UPolygon hexa) {<NEW_LINE>final HColorSimple color = (<MASK><NEW_LINE>ug = applyColor(ug, color);<NEW_LINE>ug = ug.apply(new UTranslate(centerHexa(i, j)));<NEW_LINE>ug.draw(hexa);<NEW_LINE>final UFont font = UFont.sansSerif(14).bold();<NEW_LINE>TextB... | HColorSimple) colors.getColorOrWhite(colorName); |
300,953 | public DateList transform(DateList dates) {<NEW_LINE>if (dayList.isEmpty()) {<NEW_LINE>return dates;<NEW_LINE>}<NEW_LINE>final DateList weekDayDates = Dates.getDateListInstance(dates);<NEW_LINE>Function<Date, List<Date>> transformer = null;<NEW_LINE>switch(getFrequency()) {<NEW_LINE>case WEEKLY:<NEW_LINE>transformer = ... | MonthlyExpansionFilter(dates.getType()); |
1,800,140 | protected void validateValue(FacesContext context, Object value) {<NEW_LINE><MASK><NEW_LINE>String match = getMatch();<NEW_LINE>Object submittedValue = getSubmittedValue();<NEW_LINE>if (isValid() && LangUtils.isNotBlank(match)) {<NEW_LINE>Password matchWith = (Password) SearchExpressionFacade.resolveComponent(context, ... | super.validateValue(context, value); |
1,788,346 | public MethodDeclaration createGetter(TypeDeclaration parent, EclipseNode fieldNode, String name, int modifier, ASTNode source, boolean lazy, List<Annotation> onMethod) {<NEW_LINE>// Remember the type; lazy will change it;<NEW_LINE>TypeReference returnType = copyType(((FieldDeclaration) fieldNode.get<MASK><NEW_LINE>Sta... | ()).type, source); |
32,935 | // @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })<NEW_LINE>@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })<NEW_LINE>public Response update(@HeaderParam(Constants.SESSION_TOKEN_HEADER_NAME) String sessionToken, @PathParam("entityClass") String entityClassName, String input, @Co... | toObject(input, entityClass, mediaType); |
86,649 | public void handleEvent(Event event) {<NEW_LINE>Shell shell = (Shell) event.widget;<NEW_LINE>if (shell.getData(SHELL_METRICS_DISABLED_KEY) != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>currentState = calcState(shell);<NEW_LINE>if (event.type != SWT.Dispose && currentState == SWT.NONE) {<NEW_LINE>currentBounds = shell... | 0, 0, 0, 0); |
721,987 | int[] prune(int[] idx) {<NEW_LINE>IntVector words = new IntVector();<NEW_LINE>IntVector ngrams = new IntVector();<NEW_LINE>for (int i : idx) {<NEW_LINE>if (i < nwords_) {<NEW_LINE>words.add(i);<NEW_LINE>} else {<NEW_LINE>ngrams.add(i);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>words.sort();<NEW_LINE>IntVector newIndexes = new <MA... | IntVector(words.copyOf()); |
1,232,070 | protected Face[] quadToTriangle(Face f) {<NEW_LINE>assert f.verticies.length == 4;<NEW_LINE>Face[] t = new Face[] { new Face(), new Face() };<NEW_LINE>t[0].verticies = new Vertex[3];<NEW_LINE>t[1].verticies = new Vertex[3];<NEW_LINE>Vertex v0 = f.verticies[0];<NEW_LINE>Vertex v1 = f.verticies[1];<NEW_LINE>Vertex v2 = f... | ].verticies[2] = v2; |
1,710,791 | public static Triple<Double, Double, Double> printResults(Counter<String> entityTP, Counter<String> entityFP, Counter<String> entityFN) {<NEW_LINE>Set<String> entities = new TreeSet<>();<NEW_LINE>entities.addAll(entityTP.keySet());<NEW_LINE>entities.addAll(entityFP.keySet());<NEW_LINE>entities.addAll(entityFN.keySet())... | double fp = entityFP.totalCount(); |
772,456 | public void project(double camX, double camY, double camZ, Point2D_F64 output) {<NEW_LINE>// angle between incoming ray and principle axis<NEW_LINE>// Principle Axis = (0,0,z)<NEW_LINE>// Incoming Ray = (x,y,z)<NEW_LINE>// uses dot product<NEW_LINE>double theta = Math.acos(camZ / UtilPoint3D_F64.norm(camX, camY, camZ... | disRad) * cosphi - disTan * sinphi; |
1,364,838 | protected MultiGetResult<K, V> do_GET_ALL(Set<? extends K> keys) {<NEW_LINE>RedisConnection con = null;<NEW_LINE>try {<NEW_LINE>con = connectionFactory.getConnection();<NEW_LINE>ArrayList<K> keyList = new ArrayList<>(keys);<NEW_LINE>byte[][] newKeys = keyList.stream().map((k) -> buildKey(k)).toArray(byte[][]::new);<NEW... | resultMap.put(key, r); |
396,019 | private boolean updateCircumcircle(List<double[]> points) {<NEW_LINE>double[] pa = points.get(a), pb = points.get(b), pc = points.get(c);<NEW_LINE>// Compute vectors from A: AB, AC:<NEW_LINE>final double abx = pb[0] - pa[0], aby = pb[1] - pa[1];<NEW_LINE>final double bcx = pc[0] - pb[0], bcy = pc[1] - pb[1];<NEW_LINE>/... | (mbcy - maby)) / D; |
1,186,147 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>getManagerStats_result result = new getManagerStats_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityExce... | _LOGGER.error("Exception inside handler", e); |
973,228 | public BytecodeRecorderConstantDefinitionBuildItem pregenProxies(JpaModelBuildItem jpaModel, JpaModelIndexBuildItem indexBuildItem, TransformedClassesBuildItem transformedClassesBuildItem, List<PersistenceUnitDescriptorBuildItem> persistenceUnitDescriptorBuildItems, BuildProducer<GeneratedClassBuildItem> generatedClass... | BytecodeRecorderConstantDefinitionBuildItem(PreGeneratedProxies.class, proxyDefinitions); |
1,797,286 | protected Component createWindowButtons() {<NEW_LINE>vBox = Box.createVerticalBox();<NEW_LINE>vBox.setOpaque(true);<NEW_LINE>vBox.setBackground(ColorResource.getTitleColor());<NEW_LINE>Box hBox = Box.createHorizontalBox();<NEW_LINE>hBox.setBackground(ColorResource.getTitleColor());<NEW_LINE>// if (menuBox) {<NEW_LINE>/... | getScaledInt(30)), actClose); |
890,893 | public void update(NQueensBoard board) {<NEW_LINE>int size = board.getSize();<NEW_LINE>if (queens.length != size * size) {<NEW_LINE>gridPane.getChildren().clear();<NEW_LINE>gridPane.getColumnConstraints().clear();<NEW_LINE>gridPane.getRowConstraints().clear();<NEW_LINE>queens = new Polygon[size * size];<NEW_LINE>RowCon... | i % size, i / size); |
1,557,754 | public void run() {<NEW_LINE>String dn;<NEW_LINE>File f = new File((String) o);<NEW_LINE>if (f.exists()) {<NEW_LINE>FileObject fo = FileUtil.toFileObject(f);<NEW_LINE>Project p = FileOwnerQuery.getOwner(fo);<NEW_LINE>if (p != null) {<NEW_LINE>ProjectInformation pi = (ProjectInformation) ProjectUtils.getInformation(p);<... | "CTL_SourcesModel_Column_Name_LibrarySources", f.getPath()); |
525,818 | private int compareCRC(VirtualFileSyncPair item) throws CoreException {<NEW_LINE>InputStream clientStream = item.getSourceInputStream();<NEW_LINE><MASK><NEW_LINE>int result;<NEW_LINE>if (clientStream != null && serverStream != null) {<NEW_LINE>// get individual CRC's<NEW_LINE>long clientCRC = getCRC(clientStream);<NEW_... | InputStream serverStream = item.getDestinationInputStream(); |
922,398 | private void mouse_clicked(MouseEvent e, boolean rightClick) {<NEW_LINE>Point point = e.getPoint();<NEW_LINE>log.info("Right=" + rightClick + " - " + point.toString());<NEW_LINE>if (rightClick) {<NEW_LINE>m_ddQ = m_viewPanel.getDrillDown(point);<NEW_LINE>m_daQ = m_viewPanel.getDrillAcross(point);<NEW_LINE>m_ddM = null;... | + query.getWhereClause(true)); |
1,847,690 | protected void addProfilesList(Profiles profiles, String text, String tableSummary, Content body) {<NEW_LINE>Content heading = HtmlTree.HEADING(HtmlConstants.PROFILE_HEADING, true, profilesLabel);<NEW_LINE>Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading);<NEW_LINE>HtmlTree ul = new HtmlTree(HtmlTag.UL);<NE... | .lookup(i)).name; |
1,693,635 | // validate the path, path must be an absolute path<NEW_LINE>public static List<String> buildSourceTargets(List<String> directories) {<NEW_LINE>Map<String, Boolean> isRegexPath = new HashMap<>();<NEW_LINE>Map<String, Pattern> patterns = new HashMap<>();<NEW_LINE>// for each path<NEW_LINE>Set<String> toBeReadFiles = new... | isRegexPath.put(eachPath, false); |
1,168,943 | public void refresh(final ShardingSphereMetaData schemaMetaData, final FederationDatabaseMetaData database, final Map<String, OptimizerPlannerContext> optimizerPlanners, final Collection<String> logicDataSourceNames, final RenameTableStatement sqlStatement, final ConfigurationProperties props) throws SQLException {<NEW... | ().get(renameTable)); |
1,424,110 | public void run() {<NEW_LINE>if (command == null || command.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] cmd = split(command);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>Process p = rt.exec(cmd);<NEW_LINE>this.process = p;<NEW_LINE>LOGGER.info(String.format("[%s] Process %s started. [%s][%s]", label, id(), c... | Runtime rt = Runtime.getRuntime(); |
409,925 | public static ListNamespacesResponse unmarshall(ListNamespacesResponse listNamespacesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNamespacesResponse.setRequestId(_ctx.stringValue("ListNamespacesResponse.RequestId"));<NEW_LINE>List<Namespace> namespaces = new ArrayList<Namespace>();<NEW_LINE>for (int i = 0; i < _c... | ("ListNamespacesResponse.Namespaces[" + i + "].AuthType")); |
882,146 | public static void log(Object... args) {<NEW_LINE>// --Argument Check<NEW_LINE>if (args.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isClosed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// --Create Record<NEW_LINE>final Object content = args[args.length - 1];<NEW_LINE>final Object[] tags = new Object[args.length... | !isThreaded || control.isHeldByCurrentThread(); |
1,176,129 | public static String[][] parseFromLines(String[] lines, int minimumItemsInOneLine, int startLine, int endLine) {<NEW_LINE>String[][] labels = null;<NEW_LINE>String[][] labelsRet = null;<NEW_LINE>if (startLine <= endLine) {<NEW_LINE>int i, j;<NEW_LINE>int count = 0;<NEW_LINE>for (i = startLine; i <= endLine; i++) {<NEW_... | tmpCount] = new String[minimumItemsInOneLine]; |
501,510 | public boolean isReachable(boolean chatty) {<NEW_LINE>WebTarget webTarget = getTarget("");<NEW_LINE>try (Response response = webTarget.request().get()) {<NEW_LINE>_logger.info(response.getStatus() + " " + response.getStatusInfo() + " " + response + "\n");<NEW_LINE>if (response.getStatusInfo().getFamily() != Status.Fami... | "SSL and using keys that you trust?): %s\n", e.getMessage()); |
320,268 | // 3 9hm902ya6q6bq246ewuh67h38<NEW_LINE>// void reverse_edge(edge_t * e)<NEW_LINE>@Unused<NEW_LINE>@Original(version = "2.38.0", path = "lib/dotgen/acyclic.c", name = "reverse_edge", key = "9hm902ya6q6bq246ewuh67h38", definition = "void reverse_edge(edge_t * e)")<NEW_LINE>public static void reverse_edge(ST_Agedge_s e) ... | , agtail(e), e); |
313,347 | public static ListStrategiesResponse unmarshall(ListStrategiesResponse listStrategiesResponse, UnmarshallerContext context) {<NEW_LINE>listStrategiesResponse.setRequestId(context.stringValue("ListStrategiesResponse.RequestId"));<NEW_LINE>listStrategiesResponse.setSuccess(context.booleanValue("ListStrategiesResponse.Suc... | ("ListStrategiesResponse.Strategies[" + i + "].FollowUpStrategy")); |
1,027,065 | private void updateCustomWidthSlider() {<NEW_LINE>if (selectedMode == WidthMode.CUSTOM) {<NEW_LINE>Slider slider = view.findViewById(R.id.width_slider);<NEW_LINE>final TextView tvCustomWidth = view.findViewById(R.id.width_value_tv);<NEW_LINE>slider.setValueTo(CUSTOM_WIDTH_MAX);<NEW_LINE>slider.setValueFrom(CUSTOM_WIDTH... | onVerticalScrollNeeded(sliderContainer.getBottom()); |
641,299 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanent(source.getSourceId());<NEW_LINE>// If the permanent leaves the battlefield before the ability resolves, artifacts won't be exiled.<NEW_LINE>if (perman... | ), permanent.getIdName()); |
217,727 | private void loadNode97() {<NEW_LINE>UaObjectTypeNode node = new UaObjectTypeNode(this.context, Identifiers.LimitAlarmType, new QualifiedName(0, "LimitAlarmType"), new LocalizedText("en", "LimitAlarmType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), false);<NEW_LINE>node.addReference(new Refere... | .expanded(), true)); |
1,154,285 | public boolean onTouch(View v, MotionEvent event) {<NEW_LINE>postAction();<NEW_LINE>if (event.getAction() == MotionEvent.ACTION_DOWN && popupView.getLayoutParams() != null) {<NEW_LINE>x = event.getRawX();<NEW_LINE>y = event.getRawY();<NEW_LINE>w = popupView.getLayoutParams().width;<NEW_LINE>h = popupView.getLayoutParam... | .getLayoutParams().height = nHeight; |
293,863 | public void marshall(DiskSnapshot diskSnapshot, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (diskSnapshot == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(diskSnapshot.getName(), NAME_BINDING);<NEW_LINE>... | diskSnapshot.getLocation(), LOCATION_BINDING); |
630,239 | public static LZ4FFrameInfo LZ4F_INIT_FRAMEINFO(LZ4FFrameInfo info) {<NEW_LINE>info.blockSizeID(org.bytedeco.lz4.global.lz4.LZ4F_default);<NEW_LINE>info.blockMode(org.bytedeco.lz4.global.lz4.LZ4F_blockLinked);<NEW_LINE>info.blockMode(org.bytedeco.lz4.global.lz4.LZ4F_blockLinked);<NEW_LINE>info.contentChecksumFlag(org.b... | lz4.global.lz4.LZ4F_frame); |
375,488 | private String classToInventoryPythonClass(Class<?> clazz) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>boolean hasParent = (clazz.getSuperclass() != Object.class);<NEW_LINE>if (hasParent && !isPythonClassGenerated(clazz.getSuperclass())) {<NEW_LINE>sb.append(classToInventoryPythonClass(clazz.getSupercla... | , clazz.getSimpleName())); |
610,771 | private void checkNullSafety(HashMap<String, ColumnState.EventField> eventFields, PrimaryKey pk, Schema.Field field, String databaseFieldName, ReplicationBitSetterStaticConfig replicationBitConfig) throws DatabusException {<NEW_LINE>if (eventFields.get(databaseFieldName) == null) {<NEW_LINE>LOG.error(<MASK><NEW_LINE>if... | "Missing field " + databaseFieldName + " in event from the xml trail for table " + _currentTable); |
1,370,065 | public List<Article> mergeResults(List<Article> fuzzyResult, List<Article> cwResult, Logger logger) {<NEW_LINE>if (fuzzyResult.isEmpty())<NEW_LINE>return cwResult;<NEW_LINE>if (cwResult.isEmpty())<NEW_LINE>return fuzzyResult;<NEW_LINE>Map<String, Article> cwArticles = new HashMap<>();<NEW_LINE>for (Article a : cwResult... | "merge: fuzzyResult+cwResult {}", a.getName()); |
516,801 | protected Map<ServerFormDetails, FormDownloadException> doInBackground(ArrayList<ServerFormDetails>... values) {<NEW_LINE>HashMap<ServerFormDetails, FormDownloadException> results = new HashMap<>();<NEW_LINE>int index = 1;<NEW_LINE>for (ServerFormDetails serverFormDetails : values[0]) {<NEW_LINE>try {<NEW_LINE>String c... | ().size())); |
1,685,827 | public void onCreateOptionsMenu(Menu onCreate, MenuInflater inflater) {<NEW_LINE>OsmandApplication app = (OsmandApplication) getActivity().getApplication();<NEW_LINE>boolean light = app.getSettings().isLightActionBar();<NEW_LINE>Menu menu = onCreate;<NEW_LINE>if (getActivity() instanceof SearchActivity) {<NEW_LINE>((Se... | ()).getClearToolbar(false); |
1,071,902 | private ResponseSpec createUserRequestCreation(User user) throws WebClientResponseException {<NEW_LINE>Object postBody = user;<NEW_LINE>// verify the required parameter 'user' is set<NEW_LINE>if (user == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'user' when calling createUser... | LinkedMultiValueMap<String, Object>(); |
1,671,952 | private smile.data.vector.BaseVector readByteArrayField(FieldVector fieldVector) {<NEW_LINE>int count = fieldVector.getValueCount();<NEW_LINE>byte[][] a = new byte[count][];<NEW_LINE>if (fieldVector instanceof VarBinaryVector) {<NEW_LINE>VarBinaryVector vector = (VarBinaryVector) fieldVector;<NEW_LINE>for (int i = 0; i... | ] = vector.get(i); |
424,302 | public NdbOpenJPAResult lookup(OpenJPAStateManager sm, NdbOpenJPADomainTypeHandlerImpl<?> domainTypeHandler, List<NdbOpenJPADomainFieldHandlerImpl> fieldHandlers) {<NEW_LINE>com.mysql.clusterj.core.store.Table storeTable = domainTypeHandler.getStoreTable();<NEW_LINE>session.startAutoTransaction();<NEW_LINE>try {<NEW_LI... | ] keyFields = domainTypeHandler.getKeyFieldNumbers(); |
412,218 | protected void doTransactionScan(final DB db, Object threadstate) {<NEW_LINE>final ThreadState state = (ThreadState) threadstate;<NEW_LINE>final Random random = ThreadLocalRandom.current();<NEW_LINE>final String keyname = keys[random<MASK><NEW_LINE>// choose a random scan length<NEW_LINE>int len = scanlength.nextValue(... | .nextInt(keys.length)]; |
156,470 | public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>getMenuInflater().inflate(R.menu.main, menu);<NEW_LINE>popularItemDispay(menu.findItem(R.id.by_popular));<NEW_LINE>showLanguageIcon(menu.findItem(R.id.only_language));<NEW_LINE>menu.findItem(R.id.only_language).<MASK><NEW_LINE>menu.findItem(R.id.random_favorite).... | setVisible(modeType == ModeType.NORMAL); |
1,791,716 | public void configure(Context context) {<NEW_LINE>logger.info("configure from context: {}", context);<NEW_LINE>configManager = ConfigManager.getInstance();<NEW_LINE>topicProperties = configManager.getTopicProperties();<NEW_LINE>masterHostAndPortLists = configManager.getMqClusterUrl2Token().keySet();<NEW_LINE>tubeConfig... | logger.warn("invalid {}", survivedSize); |
1,433,879 | public void verifyLock(long curTimeInMicros) throws Exception, BusyLockException, StaleLockException {<NEW_LINE>if (getLockColumn() == null)<NEW_LINE>throw new IllegalStateException("verifyLock() called without attempting to take the lock");<NEW_LINE>// Read back all columns. There should be only 1 if we got the lock<N... | Long> lockResult = readLockColumns(readDataColumns); |
1,809,821 | protected void exportGenericElement(JRGenericPrintElement element) throws IOException {<NEW_LINE>GenericElementXmlHandler handler = (GenericElementXmlHandler) GenericElementHandlerEnviroment.getInstance(jasperReportsContext).getElementHandler(element.getGenericType(), getExporterKey());<NEW_LINE>if (handler != null) {<... | builtinSerialization = JRValueStringUtils.hasSerializer(valueClass); |
163,748 | protected void updateSelection(Mode mode, int begin, int end) {<NEW_LINE>DoubleDBIDList[] values = silhouette.getSilhouetteValues();<NEW_LINE>if (begin < 0 || begin > end || end >= plotSize) {<NEW_LINE>LOG.warning("Invalid range in updateSelection: " + begin + " .. " + end);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><... | DBIDSelection selContext = context.getSelection(); |
698,364 | @Override<NEW_LINE>public Component createUIComponentImpl(@Nonnull Disposable parentUIDisposable) {<NEW_LINE>ModuleCompilerPathsManager moduleCompilerPathsManager = ModuleCompilerPathsManager.getInstance(getModule());<NEW_LINE>myInheritCompilerOutput = RadioButton.create(ProjectLocalize.projectInheritCompileOutputPath(... | boolean outputPathInherited = moduleCompilerPathsManager.isInheritedCompilerOutput(); |
1,373,381 | public void applyChanges() {<NEW_LINE>boolean fire;<NEW_LINE>synchronized (this) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.fine("applyChanges");<NEW_LINE>pf.applyChanges();<NEW_LINE>// Make sure that completions settings that are only accessible for<NEW_LINE>// 'all languages' are not overriden by particular languages (mime ty... | ).lookup(Preferences.class); |
1,678,564 | protected void componentShowing() {<NEW_LINE>// NOI18N<NEW_LINE>Log.getLogger().entering("QueryBuilder", "componentShowing");<NEW_LINE>String command = getSqlCommand();<NEW_LINE>if (_queryModel == null)<NEW_LINE>_queryModel = new QueryModel(quoter);<NEW_LINE>Log.getLogger().finest(" * command=" + command);<NEW_LINE>//... | getMessage(QueryBuilder.class, "EMPTY_QUERY_ADD_TABLE"); |
1,096,690 | public static DescribeVsStorageTrafficUsageDataResponse unmarshall(DescribeVsStorageTrafficUsageDataResponse describeVsStorageTrafficUsageDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVsStorageTrafficUsageDataResponse.setRequestId(_ctx.stringValue("DescribeVsStorageTrafficUsageDataResponse.RequestId"));<NE... | ("DescribeVsStorageTrafficUsageDataResponse.TrafficUsage[" + i + "].WanBandwidthOutDataValue")); |
249,808 | private OHashTable.BucketPath nextLevelUp(final OHashTable.BucketPath bucketPath, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>if (bucketPath.parent == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int nodeLocalDepth = bucketPath.nodeLocalDepth;<NEW_LINE>assert directory.getNodeLocalD... | parent.nodeLocalDepth, parent.nodeGlobalDepth); |
1,455,190 | private Predicate toFilterPredicate(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Draft.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Draft> cq = cb.createQuery(Draft.class);<NEW_LIN... | (wi.getApplicationList())); |
415,013 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.history);<NEW_LINE>ListView listView = findViewById(R.id.history_list);<NEW_LINE>fab = findViewById(R.id.history_add);<NEW_LINE>fab.setOnClickListener(v -> {<NEW_LINE>Intent i = new Intent(His... | ActivityCleaner().conditionalRecompute(mDB); |
932,535 | private Object copyingObjects(Object object, boolean copyCacheFields) {<NEW_LINE>if (object instanceof Number) {<NEW_LINE>return (Number) object;<NEW_LINE>} else if (object instanceof String) {<NEW_LINE>return (String) object;<NEW_LINE>} else if (object instanceof Boolean) {<NEW_LINE>return (Boolean) object;<NEW_LINE>}... | copy = new ArrayList<>(); |
768,717 | private EntityDef addExecutionPointDefinitionEntity() {<NEW_LINE>final String guid = "d7f8d1d2-8cec-4fd2-b9fd-c8307cad750d";<NEW_LINE>final String name = "ExecutionPointDefinition";<NEW_LINE>final String description = "A description of an activity that supports the implementation of a governance requirement.";<NEW_LINE... | (superTypeName), description, descriptionGUID); |
1,792,302 | public static DescribeFlowJobResponse unmarshall(DescribeFlowJobResponse describeFlowJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFlowJobResponse.setRequestId(_ctx.stringValue("DescribeFlowJobResponse.RequestId"));<NEW_LINE>describeFlowJobResponse.setAdhoc(_ctx.stringValue("DescribeFlowJobResponse.Adhoc"))... | (_ctx.integerValue("DescribeFlowJobResponse.MaxRetry")); |
1,037,689 | private void initSuperUsersAndGroupMapping(String authorizerName, Map<String, BasicAuthorizerUser> userMap, Map<String, BasicAuthorizerRole> roleMap, Map<String, BasicAuthorizerGroupMapping> groupMappingMap, String initialAdminUser, String initialAdminRole, String initialAdminGroupMapping) {<NEW_LINE>if (!roleMap.conta... | createUserInternal(authorizerName, BasicAuthUtils.ADMIN_NAME); |
764,930 | private static XMSSMTPrivateKey xmssmtCreateKeyStructure(XMSSMTPrivateKeyParameters keyParams) throws IOException {<NEW_LINE>byte[<MASK><NEW_LINE>int n = keyParams.getParameters().getTreeDigestSize();<NEW_LINE>int totalHeight = keyParams.getParameters().getHeight();<NEW_LINE>int indexSize = (totalHeight + 7) / 8;<NEW_L... | ] keyData = keyParams.getEncoded(); |
801,450 | private boolean onPaste(boolean isPastedAsPlainText) {<NEW_LINE>ClipboardManager clipboardManager = (ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE);<NEW_LINE>StringBuilder text = new StringBuilder();<NEW_LINE>StringBuilder html = new StringBuilder();<NEW_LINE>if (clipboardManager != null && ... | .coerceToText(getContext())); |
1,101,541 | public Object visit(ASTJoinClause node, Object data) {<NEW_LINE>// first child is the table reference<NEW_LINE>Node tableReference = node.getChild(0);<NEW_LINE>// remaining children are joins<NEW_LINE>int lineNumber = tableReference.getBeginLine();<NEW_LINE>for (int i = 1; i < node.getNumChildren(); i++) {<NEW_LINE>lin... | getImage() + "\" should be on line " + lineNumber); |
1,790,814 | public Object call(Object who, Method method, Object... args) throws Throwable {<NEW_LINE>IInterface appThread = (IInterface) args[0];<NEW_LINE>Intent service = (Intent) args[1];<NEW_LINE>String resolvedType = (String) args[2];<NEW_LINE>if (service.getComponent() != null && getHostPkg().equals(service.getComponent().ge... | appThread, service, resolvedType, userId); |
163,755 | private void init(Context context, AttributeSet attrs) {<NEW_LINE>TypedArray ta = getContext().obtainStyledAttributes(attrs, R.styleable.SmoothCheckBox);<NEW_LINE>int tickColor = ThemeStore.accentColor(context);<NEW_LINE>mCheckedColor = context.getResources().getColor(R.color.background_card);<NEW_LINE>mUnCheckedColor ... | = new Paint(Paint.ANTI_ALIAS_FLAG); |
1,112,737 | final UpdateGroupResult executeUpdateGroup(UpdateGroupRequest updateGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateGroupRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,692,011 | private TargetWindowT loadIfNeeded(BoundedWindow mainWindow) {<NEW_LINE>try {<NEW_LINE>String processRequestInstructionId = idGenerator.getId();<NEW_LINE>InstructionRequest processRequest = InstructionRequest.newBuilder().setInstructionId(processRequestInstructionId).setProcessBundle(ProcessBundleRequest.newBuilder().s... | processResponse = instructionRequestHandler.handle(processRequest); |
1,138,641 | static Pair<Map<String, Set<String>>, Set<Project>> computeModulesAndPackages(final CompilationInfo info, Result tags) {<NEW_LINE>Map<String, Set<String>> module2UsedUnexportedPackages = new HashMap<>();<NEW_LINE>Set<TypeElement> seenClasses = new HashSet<>();<NEW_LINE>Set<Project> seenProjects = new HashSet<>();<NEW_L... | getName2Tag().get("build"); |
1,632,570 | public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummaries_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.... | struct.success.read(iprot); |
26,984 | private BInvokableSymbol createReturnTrueStatement(Location pos, BLangFunction function, BLangBlockFunctionBody functionBlock) {<NEW_LINE>BLangReturn trueReturnStmt = ASTBuilderUtil.createReturnStmt(pos, functionBlock);<NEW_LINE>trueReturnStmt.expr = ASTBuilderUtil.createLiteral(pos, symTable.booleanType, true);<NEW_LI... | env.enclPkg.addFunction(function); |
940,016 | final SynthesizeSpeechResult executeSynthesizeSpeech(SynthesizeSpeechRequest synthesizeSpeechRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(synthesizeSpeechRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Polly"); |
1,231,593 | public static Builder newBuilder(WorkflowSettings copy) {<NEW_LINE>Builder builder = newBuilder();<NEW_LINE>builder.inputSpec = copy.getInputSpec();<NEW_LINE>builder.outputDir = copy.getOutputDir();<NEW_LINE>builder<MASK><NEW_LINE>builder.skipOverwrite = copy.isSkipOverwrite();<NEW_LINE>builder.removeOperationIdPrefix ... | .verbose = copy.isVerbose(); |
538,174 | public Callable<ResponseEntity<String>> elidePatch(@RequestHeader HttpHeaders requestHeaders, @RequestParam MultiValueMap<String, String> allRequestParams, @RequestBody String body, HttpServletRequest request, Authentication authentication) {<NEW_LINE>final String apiVersion = HeaderUtils.resolveApiVersion(requestHeade... | getJsonApi().getPath()); |
1,478,448 | public int remove(final int key) {<NEW_LINE>if (key == FREE_KEY) {<NEW_LINE>if (!m_hasFreeKey)<NEW_LINE>return m_noValueMarker;<NEW_LINE>m_hasFreeKey = false;<NEW_LINE>--m_size;<NEW_LINE>// value is not cleaned<NEW_LINE>return m_freeValue;<NEW_LINE>}<NEW_LINE>int ptr = (Tools.phiMix(key) & m_mask) << 1;<NEW_LINE>int k ... | = (ptr + 2) & m_mask2; |
1,678,483 | private void handleSingleResultsetEndPacket(int serverStatusFlags, long affectedRows, long lastInsertId) {<NEW_LINE>this.result = (serverStatusFlags & ServerStatusFlags.SERVER_STATUS_LAST_ROW_SENT) == 0;<NEW_LINE>T result;<NEW_LINE>Throwable failure;<NEW_LINE>int size;<NEW_LINE>RowDesc rowDesc;<NEW_LINE>if (decoder != ... | size, rowDesc, result, failure); |
1,761,611 | protected void saveContentletVersionInfo(ContentletVersionInfo cvInfo, boolean updateVersionTS) throws DotDataException, DotStateException {<NEW_LINE>boolean isNew = true;<NEW_LINE>if (UtilMethods.isSet(cvInfo.getIdentifier())) {<NEW_LINE>try {<NEW_LINE>final Optional<ContentletVersionInfo> fromDB = findContentletVersi... | addParam(cvInfo.getLockedOn()); |
160,973 | public Cache consistentHashForCoverageZone(final String ip, final String deliveryServiceId, final HTTPRequest request, final boolean useDeep) {<NEW_LINE>final DeliveryService deliveryService = cacheRegister.getDeliveryService(deliveryServiceId);<NEW_LINE>if (deliveryService == null) {<NEW_LINE>LOGGER.error("Failed gett... | pathToHash = buildPatternBasedHashString(deliveryService, request); |
1,238,859 | public Map<String, INDArray> init(NeuralNetConfiguration conf, INDArray paramsView, boolean initializeParams) {<NEW_LINE>Map<String, INDArray> params = super.init(conf, paramsView, initializeParams);<NEW_LINE>FeedForwardLayer layerConf = (FeedForwardLayer) conf.getLayer();<NEW_LINE>int nIn = layerConf.getNIn();<NEW_LIN... | , nWeightParams + nOut + nUserWeightParams)); |
1,717,552 | private DWARFDataType makeDataTypeForEnum(DIEAggregate diea) {<NEW_LINE>DWARFNameInfo dni = prog.getName(diea);<NEW_LINE>int enumSize = (int) diea.getUnsignedLong(DWARFAttribute.DW_AT_byte_size, -1);<NEW_LINE>if (enumSize == 0) {<NEW_LINE>Msg.warn(this, "Enum " + dni.getNamespacePath() + "[DWARF DIE " + diea.getHexOffs... | diea.getHexOffset() + "] does not have a size specified, forcing to 1"); |
1,019,876 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Acti... | result = new ActionResult<>(); |
1,321,331 | protected void scoreCensus(int disparityRange, final boolean leftToRight) {<NEW_LINE>final int[<MASK><NEW_LINE>final long[] dataLeft = censusLeft.data;<NEW_LINE>final long[] dataRight = censusRight.data;<NEW_LINE>for (int d = 0; d < disparityRange; d++) {<NEW_LINE>int total = 0;<NEW_LINE>for (int y = 0; y < blockHeight... | ] scores = leftToRight ? scoreLtoR : scoreRtoL; |
1,741,283 | public static DescribeDcdnDomainUvDataResponse unmarshall(DescribeDcdnDomainUvDataResponse describeDcdnDomainUvDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainUvDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainUvDataResponse.RequestId"));<NEW_LINE>describeDcdnDomainUvDataResponse.setDo... | (_ctx.stringValue("DescribeDcdnDomainUvDataResponse.DomainName")); |
963,252 | final CreateBusinessReportScheduleResult executeCreateBusinessReportSchedule(CreateBusinessReportScheduleRequest createBusinessReportScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBusinessReportScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,133,501 | private void layoutStackedChildrenAt(Point linePoint, ConnectionWidgetLayoutAlignment adjustedAlignment, ConnectionWidget connectionWidget, ArrayList<Widget> children) {<NEW_LINE>int areaWidth = 0, areaHeight = 0;<NEW_LINE>if (adjustedAlignment != ConnectionWidgetLayoutAlignment.NONE) {<NEW_LINE>for (Widget childWidget... | areaWidth - preferredBounds.width) / 2; |
1,255,752 | public static void validate(List<Symbol> outputSymbols, List<Symbol> groupBy) throws IllegalArgumentException {<NEW_LINE>boolean containsAggregations = SymbolVisitors.any(x -> x instanceof Function && ((Function) x).type() == FunctionType.AGGREGATE, outputSymbols);<NEW_LINE>if (!containsAggregations && groupBy.isEmpty(... | groupBy.forEach(GroupAndAggregateSemantics::ensureTypedGroupKey); |
509,057 | public static void main(final String[] a) {<NEW_LINE>final long n = Long.parseLong(a[0]);<NEW_LINE>final long incr = Long.MAX_VALUE / (n / 2);<NEW_LINE>long start, elapsed;<NEW_LINE>for (int k = 10; k-- != 0; ) {<NEW_LINE>System.out.print("Broadword msb: ");<NEW_LINE>start = System.currentTimeMillis();<NEW_LINE>for (lo... | * elapsed / n) + " ns/call"); |
344,725 | public static String forXmlTag(String intag) {<NEW_LINE>if (XMLChar.isValidName(intag) || LangUtils.isEmpty(intag)) {<NEW_LINE>return intag;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder(intag.length());<NEW_LINE>sb.append(intag);<NEW_LINE>char c;<NEW_LINE>for (int i = sb.length() - 1; i >= 0; i--) {<NEW_LIN... | insert(i + 1, '.'); |
1,823,688 | public void onFocusOutMinAmountTextField(boolean oldValue, boolean newValue) {<NEW_LINE>if (oldValue && !newValue) {<NEW_LINE>InputValidator.ValidationResult result = isBtcInputValid(minAmount.get());<NEW_LINE>minAmountValidationResult.set(result);<NEW_LINE>if (result.isValid) {<NEW_LINE>Coin minAmountAsCoin = dataMode... | ().get())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.