idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,311,582 | @Path("{name}")<NEW_LINE>@POST<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>public Response createOrUpdateSecret(@Auth AutomationClient automationClient, @PathParam("name") String name, @Valid CreateOrUpdateSecretRequestV2 request) {<NEW_LINE>SecretBuilder builder = secretController.builder(name, request.content(), au... | (), name, extraInfo)); |
53,324 | private int topoOperationPolylinePolylineOrPolygon_(int geometry_dominant) {<NEW_LINE>EditShape shape = m_topo_graph.getShape();<NEW_LINE>int newGeometry = shape.createGeometry(Geometry.Type.Polyline);<NEW_LINE>int visitedEdges = m_topo_graph.createUserIndexForHalfEdges();<NEW_LINE>for (int cluster = m_topo_graph.getFi... | m_topo_graph.getHalfEdgeUserIndex(clusterHalfEdge, visitedEdges); |
1,098,145 | public static QueryDeviceGroupListResponse unmarshall(QueryDeviceGroupListResponse queryDeviceGroupListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceGroupListResponse.setRequestId(_ctx.stringValue("QueryDeviceGroupListResponse.RequestId"));<NEW_LINE>queryDeviceGroupListResponse.setSuccess(_ctx.booleanValue(... | ("QueryDeviceGroupListResponse.Data[" + i + "].UtcCreate")); |
1,154,807 | public static void triggerRebirth(Context context) {<NEW_LINE>sp = PreferenceManager.getDefaultSharedPreferences(context);<NEW_LINE>sp.edit().putInt("restart_changed", 0).apply();<NEW_LINE>sp.edit().putBoolean("restoreOnRestart", true).apply();<NEW_LINE>MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilde... | ComponentName componentName = intent.getComponent(); |
418,152 | public void postInitialize(Python3Core core) {<NEW_LINE>super.postInitialize(core);<NEW_LINE>PythonObjectFactory factory = core.factory();<NEW_LINE>PythonModule <MASK><NEW_LINE>ctypesModule.setAttribute("_string_at_addr", factory.createNativeVoidPtr(StringAtFunction.create()));<NEW_LINE>ctypesModule.setAttribute("_cast... | ctypesModule = core.lookupBuiltinModule("_ctypes"); |
8,488 | public void generateIndexForJar(String pathToJar, String pathToIndexFile) throws IOException {<NEW_LINE><MASK><NEW_LINE>if (!f.exists()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw new FileNotFoundException(pathToJar + " not found");<NEW_LINE>}<NEW_LINE>IndexLocation indexLocation = new FileIndexLocation(new File(pathToIn... | File f = new File(pathToJar); |
238,802 | private AnchorPane createBisqDAOContent() {<NEW_LINE>AnchorPane anchorPane = new AnchorPane();<NEW_LINE>anchorPane.setMinWidth(373);<NEW_LINE>GridPane bisqDAOPane = new GridPane();<NEW_LINE><MASK><NEW_LINE>bisqDAOPane.setVgap(5);<NEW_LINE>bisqDAOPane.setMaxWidth(373);<NEW_LINE>int rowIndex = 0;<NEW_LINE>TitledGroupBg t... | AnchorPane.setTopAnchor(bisqDAOPane, 0d); |
73,974 | public KafkaStreamsBinderConfigurationProperties binderConfigurationProperties(KafkaProperties kafkaProperties, ConfigurableEnvironment environment, BindingServiceProperties properties, ConfigurableApplicationContext context) throws Exception {<NEW_LINE>final Map<String, BinderConfiguration> binderConfigurations = getB... | BinderConfiguration binderConfiguration = entry.getValue(); |
1,356,603 | static List<String> createRenameIndexSql(DriverTypeEnum.ConnectionProperties theConnectionProperties, String theTableName, String theOldIndexName, String theNewIndexName, DriverTypeEnum theDriverType) throws SQLException {<NEW_LINE>Validate.notBlank(theOldIndexName, "theOldIndexName must not be blank");<NEW_LINE>Valida... | theOldIndexName + "` to `" + theNewIndexName + "`"); |
847,848 | private void createTree(TreeNode root) throws MissingResourceException {<NEW_LINE>if (tree == null) {<NEW_LINE>// add panel with appropriate content<NEW_LINE>tree = new JTree(root);<NEW_LINE>if ("Aqua".equals(UIManager.getLookAndFeel().getID())) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>tree.setBackground<MASK><... | (UIManager.getColor("NbExplorerView.background")); |
552,235 | public void menuShown(MenuEvent e) {<NEW_LINE>Utils.clearMenu(friends_menu);<NEW_LINE>boolean enabled = plugin.isClassicEnabled();<NEW_LINE>if (enabled) {<NEW_LINE>MenuItem mi = new MenuItem(friends_menu, SWT.PUSH);<NEW_LINE>mi.setText(MessageText.getString("azbuddy.insert.friend.key"));<NEW_LINE>mi.addSelectionListene... | MenuItem(friends_menu, SWT.PUSH); |
1,300,293 | private Optional<ResolvedField> resolveField(Expression node, QualifiedName name, boolean local) {<NEW_LINE>List<Field> matches = relation.resolveFields(name);<NEW_LINE>if (matches.size() > 1) {<NEW_LINE>throw ambiguousAttributeException(node, name);<NEW_LINE>} else if (matches.size() == 1) {<NEW_LINE>int parentFieldCo... | resolveField(node, name, local); |
1,608,952 | private static double apply(CompLongFloatVector v1, LongFloatVector v2) {<NEW_LINE>double dotValue = 0.0;<NEW_LINE>if (v2.isSparse() && v1.size() > v2.size()) {<NEW_LINE>ObjectIterator<Long2FloatMap.Entry> iter = v2.getStorage().entryIterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Long2FloatMap.Entry entry = ite... | idx) * entry.getFloatValue(); |
888,312 | private void migrateImage() {<NEW_LINE>addLog("@AD_Image_ID@");<NEW_LINE>KeyNamePair[] imageArray = DB.getKeyNamePairs("SELECT AD_Image_ID, Name " + "FROM AD_Image " + "WHERE AD_Client_ID = ? " + "AND NOT EXISTS(SELECT 1 FROM AD_AttachmentReference ar WHERE ar.AD_Image_ID = AD_Image.AD_Image_ID AND ar.FileHandler_ID = ... | ": " + e.getLocalizedMessage()); |
1,368,948 | public List<VolumeJoinVO> searchByIds(Long... volIds) {<NEW_LINE>// set detail batch query size<NEW_LINE>int DETAILS_BATCH_SIZE = 2000;<NEW_LINE>String batchCfg = _configDao.getValue("detail.batch.query.size");<NEW_LINE>if (batchCfg != null) {<NEW_LINE>DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);<NEW_LINE>}<NEW_LIN... | > sc = volSearch.create(); |
1,694,175 | public R invoke(Object... arguments) {<NEW_LINE>ConversionService<?> conversionService = this.conversionService;<NEW_LINE>Argument[] targetArguments = getArguments();<NEW_LINE>if (targetArguments.length == 0) {<NEW_LINE>return executableMethod.invoke();<NEW_LINE>} else {<NEW_LINE>List<Object> argumentList = new ArrayLi... | IllegalArgumentException("Wrong argument types to method: " + executableMethod))); |
462,623 | public String[] xmlBeansFoldersToScan() {<NEW_LINE>String foldersStr = settings.getString("boot-java", "support-spring-xml-config", "scan-folders");<NEW_LINE>if (foldersStr != null) {<NEW_LINE>foldersStr = foldersStr.trim();<NEW_LINE>}<NEW_LINE>String[] folders = foldersStr == null || foldersStr.isEmpty() ? new String[... | += File.separator.length(); |
928,792 | private void notifySensorStatusListeners(final FullSensor fullSensor, final String type) {<NEW_LINE>if (sensorStatusListeners.isEmpty()) {<NEW_LINE>logger.debug("No sensor status listeners to notify of sensor change for sensor '{}'", fullSensor.getId());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (SensorStatusListener se... | "Sending sensorStateChanged for sensor '{}'", fullSensor.getId()); |
439,087 | private static void highlightRefIfNeeded(@NotNull GoReferenceExpressionBase o, @Nullable PsiElement resolve, @NotNull AnnotationHolder holder) {<NEW_LINE>if (resolve instanceof GoTypeSpec) {<NEW_LINE>TextAttributesKey key = GoPsiImplUtil.builtin(resolve) ? BUILTIN_TYPE_REFERENCE : getColor((GoTypeSpec) resolve);<NEW_LI... | : getColor((GoConstDefinition) resolve); |
1,445,856 | private Object JSONMerge(List<Object> parameters) throws ParserException {<NEW_LINE>Object json = asJSON(parameters.get<MASK><NEW_LINE>if (json instanceof JSONArray) {<NEW_LINE>// Create a new JSON Array to preserve immutability for the macro script.<NEW_LINE>JSONArray jarr = JSONArray.fromObject(json);<NEW_LINE>for (i... | (0).toString()); |
344,726 | protected FormInstanceInfo resolveFormInstanceModel(FormDefinitionCacheEntry formCacheEntry, FormInstance formInstance, CommandContext commandContext) {<NEW_LINE>FormDefinitionEntity formDefinitionEntity = formCacheEntry.getFormDefinitionEntity();<NEW_LINE>FormJsonConverter formJsonConverter = CommandContextUtil.getFor... | setScopeId(formInstance.getScopeId()); |
936,992 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<... | target.getDeclaredMethod("connect", "java.util.function.Consumer"); |
556,210 | private void calculateVisibleArea(PlayerView view) {<NEW_LINE>if (visibleAreaMap.get(view) != null && visibleAreaMap.get(view).visibleArea.getBounds().getCenterX() != 0.0d) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Cache it<NEW_LINE>VisibleAreaMeta meta = new VisibleAreaMeta();<NEW_LINE>meta.visibleArea = new Area();<N... | boolean isGMview = view.isGMView(); |
711,387 | public static ErrorDescription nestedSynchronized(HintContext ctx) {<NEW_LINE>class Found extends Error {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public synchronized Throwable fillInStackTrace() {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>TreePath up = ctx.getPath().getParentPath();<NEW_LINE>while (up != null ... | getMessage(Tiny.class, "ERR_NestedSynchronized"); |
682,361 | public String intToRoman(int num) {<NEW_LINE>Map<Integer, String> map = new HashMap();<NEW_LINE>map.put(1, "I");<NEW_LINE>map.put(5, "V");<NEW_LINE>map.put(10, "X");<NEW_LINE>map.put(50, "L");<NEW_LINE>map.put(100, "C");<NEW_LINE>map.put(500, "D");<NEW_LINE>map.put(1000, "M");<NEW_LINE><MASK><NEW_LINE>map.put(9, "IX");... | map.put(4, "IV"); |
579,108 | public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {<NEW_LINE>super.readExternal(in);<NEW_LINE>final <MASK><NEW_LINE>final String namespace;<NEW_LINE>final String valueFactoryClass;<NEW_LINE>switch(version) {<NEW_LINE>case VERSION0:<NEW_LINE>namespace = in.readUTF();<NEW_LINE>valu... | byte version = in.readByte(); |
220,966 | private void insertBreakInMLC(ActionEvent e, RSyntaxTextArea textArea, int line) {<NEW_LINE>Matcher m;<NEW_LINE>int start;<NEW_LINE>int end;<NEW_LINE>String text;<NEW_LINE>try {<NEW_LINE>start = textArea.getLineStartOffset(line);<NEW_LINE>end = textArea.getLineEndOffset(line);<NEW_LINE>text = textArea.getText(start, en... | leadingWS.length() + 2); |
476,451 | Iterator<Entry<Cut<C>, Range<C>>> descendingEntryIterator() {<NEW_LINE>if (restriction.isEmpty()) {<NEW_LINE>return Iterators.emptyIterator();<NEW_LINE>}<NEW_LINE>Cut<Cut<C>> upperBoundOnLowerBounds = Ordering.natural().min(lowerBoundWindow.upperBound, Cut.belowValue(restriction.upperBound));<NEW_LINE>Iterator<Range<C>... | .values().iterator(); |
1,357,049 | public void start(Stage mainStage) {<NEW_LINE>try {<NEW_LINE>FallbackExceptionHandler.installExceptionHandler();<NEW_LINE>// Init preferences<NEW_LINE>final JabRefPreferences preferences = JabRefPreferences.getInstance();<NEW_LINE>Globals.prefs = preferences;<NEW_LINE>// Perform migrations<NEW_LINE>PreferencesMigration... | configureProxy(preferences.getProxyPreferences()); |
143,401 | protected void pushOnElementStack(int kind, int info, Object objectInfo) {<NEW_LINE>if (this.elementPtr < -1)<NEW_LINE>return;<NEW_LINE>this.previousKind = 0;<NEW_LINE>this.previousInfo = 0;<NEW_LINE>this.previousObjectInfo = null;<NEW_LINE>int stackLength = this.elementKindStack.length;<NEW_LINE>if (++this.elementPtr ... | elementKindStack[this.elementPtr] = kind; |
1,757,924 | public void uploadFromFileCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.uploadFromFile#String<NEW_LINE>client.uploadFromFile(filePath).doOnError(throwable -> System.err.printf("Failed to upload from file %s%n", throwable.getMessage())).subscribe(completion -> System.out.pri... | ().minusDays(3)); |
480,387 | final DescribeModelPackageResult executeDescribeModelPackage(DescribeModelPackageRequest describeModelPackageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeModelPackageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,505,472 | public boolean union(RWSet other) {<NEW_LINE>if (other == null || isFull) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean ret = false;<NEW_LINE>if (other instanceof MethodRWSet) {<NEW_LINE>MethodRWSet o = (MethodRWSet) other;<NEW_LINE>if (o.getCallsNative()) {<NEW_LINE>ret = !getCallsNative() | ret;<NEW_LINE>setCa... | "attempt to add full set " + o + " into " + this); |
1,171,195 | public void start() {<NEW_LINE>int localPort = getLocalPort();<NEW_LINE>listenerCallBack = new SoapMonitorListenerCallBack() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void fireAddMessageExchange(WsdlMonitorMessageExchange messageExchange) {<NEW_LINE>addMessageExchange(messageExchange);<NEW_LINE>}<NEW_LINE>};<NEW_L... | , String.valueOf(localPort)); |
580,423 | private static void pointAddPrecomp(PointPrecomp p, PointExt r) {<NEW_LINE>int[] b = F.create();<NEW_LINE>int[] c = F.create();<NEW_LINE>int[] d = F.create();<NEW_LINE>int[] e = F.create();<NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = F.create();<NEW_LINE>F.sqr(r.z, b);<NEW_LINE>F.mu... | e, r.z, e); |
1,824,432 | public static IPartitionList createFilter(AEKeyFilter filter, Collection<ItemStack> list) {<NEW_LINE>IPartitionList myPartitionList = null;<NEW_LINE>final MergedPriorityList myMergedList = new MergedPriorityList();<NEW_LINE>for (var currentViewCell : list) {<NEW_LINE>if (currentViewCell == null) {<NEW_LINE>continue;<NE... | upgrades.isInstalled(AEItems.INVERTER_CARD); |
4,389 | public Composite createControl(Composite parent, DashboardResources resources) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>container.setBackground(parent.getBackground());<NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(1).margins(5, 5).applyTo(container);<NEW_LINE>title = new Label(... | ()).getEnd()); |
1,362,152 | public <T> CompletionStage<ReadResultSet<T>> readFromEventJournal(long startSequence, int minSize, int maxSize, int partitionId, java.util.function.Predicate<? super EventJournalMapEvent<K, V>> predicate, java.util.function.Function<? super EventJournalMapEvent<K, V>, ? extends T> projection) {<NEW_LINE>if (maxSize < m... | >) context.initialize(predicate); |
1,350,020 | public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {<NEW_LINE>FieldsType ft = cit.getFields();<NEW_LINE>if (ft == null) {<NEW_LINE>ft = new FieldsType();<NEW_LINE>cit.setFields(ft);<NEW_LINE>}<NEW_LINE>final List<FieldInfoType> fieldList = ft.getField();<NEW_LINE><MASK>... | final FieldInfoType fit = new FieldInfoType(); |
1,246,140 | public void executeStreamQuery(final ServerWebSocket webSocket, final MultiMap requestParams, final KsqlSecurityContext ksqlSecurityContext, final Context context) {<NEW_LINE>try {<NEW_LINE>final long startTimeNanos = Time.SYSTEM.nanoseconds();<NEW_LINE>activenessRegistrar.updateLastRequestTime();<NEW_LINE>validateVers... | .getMetaStore(), statement)); |
1,325,806 | private <T> T doSaveVersioned(AdaptibleEntity<T> source, String collectionName) {<NEW_LINE>if (source.isNew()) {<NEW_LINE>return (T) doInsert(collectionName, source.getBean(), this.mongoConverter);<NEW_LINE>}<NEW_LINE>// Create query for entity with the id and old version<NEW_LINE>Query query = source.getQueryForVersio... | .getDocument(), collectionName)); |
677,808 | private void writeChart(JRChart chart, String chartName) {<NEW_LINE>if (chart != null) {<NEW_LINE>write(chartName + ".setShowLegend({0});\n", getBooleanText(chart.getShowLegend()));<NEW_LINE>write(chartName + ".setEvaluationTime({0});\n", chart.getEvaluationTimeValue(), EvaluationTimeEnum.NOW);<NEW_LINE>write(chartName... | getSubtitleFont(), chartName + ".getSubtitleFont()"); |
912,697 | default String[][] toStrings(final int numRows, final boolean truncate) {<NEW_LINE>String[] names = names();<NEW_LINE>int numCols = names.length;<NEW_LINE>int maxColWidth = numCols == 1 ? 78 : (numCols == 2 ? 38 : 20);<NEW_LINE>// For array values, replace Seq and Array with square brackets<NEW_LINE>// For cells that a... | String[][]::new); |
1,502,570 | final CreateServiceLinkedRoleResult executeCreateServiceLinkedRole(CreateServiceLinkedRoleRequest createServiceLinkedRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createServiceLinkedRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(createServiceLinkedRoleRequest)); |
49,789 | private static void assertPrevCount(RegressionEnvironment env) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>sendMarketEvent(env, "IBM", 75);<NEW_LINE>assertCountAndPrice(env, 1L, 75D);<NEW_LINE>sendMarketEvent(env, "IBM", 76);<NEW_LINE>assertCountAndPrice(env, 2L, 75D);<NEW_LINE>sendTimer(env, 10000);<NEW_LINE>sendMarketEven... | assertCountAndPrice(env, 3L, 75D); |
301,244 | protected void doWriteSymbolMap(TreeLogger logger, CompilationResult result, PrintWriter pw) throws UnableToCompleteException {<NEW_LINE>pw.println("# { " + result.getPermutationId() + " }");<NEW_LINE>for (SortedMap<SelectionProperty, String> map : result.getPropertyMap()) {<NEW_LINE>pw.print("# { ");<NEW_LINE>printPro... | write(buf, 0, sbLen); |
293,712 | private void loadNode367() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupType_TrustList_GetPosition_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), LocalizedText.NULL_VALUE, UIntege... | .expanded(), true)); |
236,737 | public void modifyTestElement(TestElement extractor) {<NEW_LINE>super.configureTestElement(extractor);<NEW_LINE>if (extractor instanceof HtmlExtractor) {<NEW_LINE>HtmlExtractor htmlExtractor = (HtmlExtractor) extractor;<NEW_LINE>saveScopeSettings(htmlExtractor);<NEW_LINE>htmlExtractor.setRefName(refNameField.getText())... | setExpression(expressionField.getText()); |
850,755 | private void addButton(Cocos2dxActivity context, RelativeLayout layout) {<NEW_LINE>mButton = new Button(context);<NEW_LINE>mButtonParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);<NEW_LINE><MASK><NEW_LINE>mButton.setBackground(getRoundRectShape());<NEW_L... | mButton.setTextColor(Color.WHITE); |
428,862 | public static void generateStoplist(SimpleTokenizer prunedTokenizer) throws IOException {<NEW_LINE>CsvIterator reader = new CsvIterator(new FileReader(inputFile.value), lineRegex.value, dataGroup.value, labelGroup.value, nameGroup.value);<NEW_LINE>ArrayList<Pipe> pipes = new ArrayList<Pipe>();<NEW_LINE>Alphabet alphabe... | StringList2FeatureSequence sl2fs = new StringList2FeatureSequence(alphabet); |
1,266,877 | public ReportItem validate(ValidationContext vCxt, Node n) {<NEW_LINE>if (n.isLiteral() && dtURI.equals(n.getLiteralDatatypeURI())) {<NEW_LINE>// Must be valid for the type<NEW_LINE>if (!rdfDatatype.isValid(n.getLiteralLexicalForm())) {<NEW_LINE>String errMsg = toString() + " : Not valid value : Node " + displayStr(n);... | return new ReportItem(errMsg, n); |
1,243,334 | public void visitListener(WebAppContext context, Descriptor descriptor, XmlParser.Node node) {<NEW_LINE>String className = node.getString("listener-class", false, true);<NEW_LINE>try {<NEW_LINE>if (className != null && className.length() > 0) {<NEW_LINE>// Servlet Spec 3.0 p 74<NEW_LINE>// Duplicate listener declaratio... | ) descriptor).addClassName(className); |
449,190 | public static IRubyObject load(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>IRubyObject in = args[0];<NEW_LINE>boolean freeze = false;<NEW_LINE>IRubyObject proc = null;<NEW_LINE>if (args.length > 1) {<NEW_LINE>RubyHash kwargs = ArgsU... | [args.length - 1]); |
101,616 | private static PartialCopyStats copyInternal(final Transaction transaction, final TableReference srcTable, final TableReference dstTable, RangeRequest request, final MutableRange range) {<NEW_LINE>final PartialCopyStats stats = new PartialCopyStats();<NEW_LINE>boolean isEmpty = transaction.getRange(srcTable, request).b... | ) - 1).getRowName(); |
1,764,989 | public static <ENTITY> List<FieldPredicate<?>> andPredicates(FilterAction<ENTITY> action) {<NEW_LINE>requireNonNull(action);<NEW_LINE>final List<FieldPredicate<?>> <MASK><NEW_LINE>final Predicate<? super ENTITY> predicate = action.getPredicate();<NEW_LINE>final Optional<FieldPredicate> oPredicateBuilder = Cast.cast(pre... | andPredicateBuilders = new ArrayList<>(); |
563,529 | public Files postFilesContent(FilescontentAttributes attributes, File file, String contentMd5, List<String> fields) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/files/content";<NEW_LINE>// query params<NEW_LINE>List<Pair> local... | localVarAuthNames = new String[] {}; |
289,336 | public void exitDoubleArray(ExprParser.DoubleArrayContext ctx) {<NEW_LINE>Object[] values = new Object[ctx.numericElement().size()];<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (ctx.numericElement(i).NULL() != null) {<NEW_LINE>values[i] = null;<NEW_LINE>} else if (ctx.numericElement(i).LONG() != null... | DOUBLE().getText()); |
761,708 | static void handleOptions(HttpServletResponse response, KafkaCruiseControlConfig config) {<NEW_LINE>response.setStatus(SC_OK);<NEW_LINE>if (config.getBoolean(WebServerConfig.WEBSERVER_HTTP_CORS_ENABLED_CONFIG)) {<NEW_LINE>response.setHeader(ACCESS_CONTROL_ALLOW_ORIGIN, config.getString(WebServerConfig.WEBSERVER_HTTP_CO... | response.setHeader(ACCESS_CONTROL_ALLOW_CREDENTIALS, "true"); |
1,265,900 | // F49213<NEW_LINE>@Override<NEW_LINE>public void formatTo(IncidentStream is) {<NEW_LINE>// -----------------------------------------------------------------------<NEW_LINE>// Indicate the start of the dump, and include the identity<NEW_LINE>// of InjectionBinding, so this can easily be matched to a trace.<NEW_LINE>// ... | writeLine("", "Annotation = " + ivAnnotation); |
975,251 | private void loadNode116() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.HistoryEventFieldList_Encoding_DefaultBinary, new QualifiedName(0, "Default Binary"), new LocalizedText("en", "Default Binary"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0)... | , UByte.valueOf(0)); |
1,539,052 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>ChooseFriendsAndFoes choice = new ChooseFriendsAndFoes();<NEW_LINE>if (controller != null && !choice.chooseFriendOrFoe(controller, source, game)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE... | permanent = game.getPermanent(permID); |
896,915 | protected void processPreterminal(Tree node) {<NEW_LINE>String rawTag = node.value();<NEW_LINE>if (rawTag.equals("-NONE-"))<NEW_LINE>return;<NEW_LINE>String rawWord = node.firstChild().value().trim();<NEW_LINE>Matcher left = leftClitic.matcher(rawWord);<NEW_LINE>boolean hasLeft = left.find();<NEW_LINE>Matcher right = r... | firstChild().setValue("SEGC"); |
1,493,474 | public CreateAppResult createApp(CreateAppRequest createAppRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
871,418 | public Object translateQueryParametersIntoServerArgument(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws InternalErrorException, InvalidRequestException {<NEW_LINE>String ctValue = defaultString(theRequest.getHeader(Constants.HEADER_CONTENT_TYPE));<NEW_LINE>Reader requestReader = createRequestR... | ctValue.substring(0, semicolonIdx); |
369,016 | // TODO [wait should be stored separately in future versions]<NEW_LINE>protected void addFlatProfTimeForNode(int dataOfs) {<NEW_LINE>int methodId = getMethodIdForNodeOfs(dataOfs);<NEW_LINE>Integer methodIdInt = methodId;<NEW_LINE>boolean isRecursiveCall = methodsOnStack.contains(methodIdInt);<NEW_LINE>if (methodId >= i... | [methodId] += getTotalTime1ForNodeOfs(dataOfs); |
450,444 | final DescribeImagesResult executeDescribeImages(DescribeImagesRequest describeImagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | invoke(request, responseHandler, executionContext); |
1,146,156 | public void open() {<NEW_LINE>if (disposed.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.<MASK><NEW_LINE>if (size == null) {<NEW_LINE>size = getResolutions()[0];<NEW_LINE>}<NEW_LINE>if (size == null) {<NEW_LINE>throw new RuntimeException("The resolution size cannot be null");<NEW_LINE>}<NEW_LINE>LOG.debug("Webcam d... | debug("Opening webcam device {}", getName()); |
982,160 | public void valid(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>try {<NEW_LINE>Timesheet timesheet = request.getContext().asType(Timesheet.class);<NEW_LINE>timesheet = Beans.get(TimesheetRepository.class).find(timesheet.getId());<NEW_LINE>TimesheetService timesheetService = Beans.get... | ), timesheet.getFromDate()); |
271,473 | public static String createCriticalNotificationJSON(String caption, String message, String details, String url) {<NEW_LINE>String returnString = "";<NEW_LINE>try {<NEW_LINE>JsonObject appError = Json.createObject();<NEW_LINE>putValueOrJsonNull(appError, "caption", caption);<NEW_LINE>putValueOrJsonNull(appError, "url", ... | (ApplicationConstants.SERVER_SYNC_ID, -1); |
1,777,109 | public static HashMap<Integer, ArrayList<IComment>> loadMultipleCommentsById(final SQLProvider provider, final Collection<Integer> commentIds) throws CouldntLoadDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00480: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(commentIds, "I... | parentId = resultSet.getInt("parent_id"); |
660,463 | protected TransactionReceipt waitForTx(byte[] txHash) throws InterruptedException {<NEW_LINE>ByteArrayWrapper txHashW = new ByteArrayWrapper(txHash);<NEW_LINE>txWaiters.put(txHashW, null);<NEW_LINE>long startBlock = ethereum.getBlockchain().getBestBlock().getNumber();<NEW_LINE>while (true) {<NEW_LINE>TransactionReceipt... | .getBestBlock().getNumber(); |
959,406 | public ExportEBSVolumeRecommendationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportEBSVolumeRecommendationsResult exportEBSVolumeRecommendationsResult = new ExportEBSVolumeRecommendationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int... | String currentParentElement = context.getCurrentParentElement(); |
1,460,786 | public ImageData create(int height, HSB backgroundColor, boolean embossed, boolean rotated) {<NEW_LINE>ImageData source = null;<NEW_LINE>if (embossed) {<NEW_LINE>if (rotated) {<NEW_LINE>source = CoreImages.getImageDescriptor(CoreImages.HANDLE_EMBOSSED_ROTATED).getImageData();<NEW_LINE>} else {<NEW_LINE>source = CoreIma... | = new ArrayList<RGB>(); |
1,011,797 | public void displayProcessOutputs(final Process child, String displayName, String initialMessage) throws IOException, InterruptedException {<NEW_LINE>// Get a tab on the output window. If this client has been<NEW_LINE>// executed before, the same tab will be returned.<NEW_LINE>InputOutput io = org.openide.windows.IOPr... | copyMakers[2].interrupt(); |
1,170,476 | private String commonPrepareSubscription(Participant participant, String senderPublicId, boolean reconnect, WebrtcDebugEventOperation operation) {<NEW_LINE>String sdpOffer = null;<NEW_LINE>Session session = null;<NEW_LINE>log.debug("Request [SUBSCRIBE] remoteParticipant={} sdpOffer={} ({})", senderPublicId, sdpOffer, p... | subscriberEndpointName = kParticipant.calculateSubscriberEndpointName(senderParticipant); |
488,583 | public static void generate(final MLDataSet training, final long seed, final int count, final double min, final double max) {<NEW_LINE>LinearCongruentialRandom rand = new LinearCongruentialRandom(seed);<NEW_LINE>int inputCount = training.getInputSize();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LIN... | int idealCount = training.getIdealSize(); |
826,104 | private synchronized void bgOngoingNotification(final BgGraphBuilder bgGraphBuilder) {<NEW_LINE>try {<NEW_LINE>mHandler.post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>NotificationManagerCompat.from(mContext).notify(ongoingNotificationId<MASK><NEW_LINE>if (iconBit... | , createOngoingNotification(bgGraphBuilder, mContext)); |
1,169,027 | public void onResponse(final JSONObject response) {<NEW_LINE>List<Note> notes;<NEW_LINE>if (response == null) {<NEW_LINE>// Not sure this could ever happen, but make sure we're catching all response types<NEW_LINE>AppLog.w(AppLog.T.NOTIFS, "Success, but did not receive any notes");<NEW_LINE>EventBus.getDefault().post(n... | NotificationsTable.saveNotes(notes, true); |
1,004,910 | protected void applyLoadPlan(ArrayList<Task> tasks) {<NEW_LINE>// When quick-switching on 3p-launcher, we add a "stub" tile corresponding to Launcher<NEW_LINE>// as well. This tile is never shown as we have setCurrentTaskHidden, but allows use to<NEW_LINE>// track the index of the next task appropriately, as if we are ... | mHomeTaskInfo), mHomeTaskInfo, false)); |
630,050 | public Flux<CommandResponse<ZRangeCommand, Flux<Tuple>>> zRange(Publisher<ZRangeCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(command.getRange(), "Range must not be null!");<NEW_LINE>byte[] keyBuf = toByteA... | <>(command, flux)); |
1,438,711 | final CreateRealtimeLogConfigResult executeCreateRealtimeLogConfig(CreateRealtimeLogConfigRequest createRealtimeLogConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRealtimeLogConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | endClientExecution(awsRequestMetrics, request, response); |
1,741,793 | public void renderParticle(@Nonnull BufferBuilder worldRendererIn, @Nonnull Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ) {<NEW_LINE>GlStateManager.pushMatrix();<NEW_LINE>GlStateManager.enableLighting();<NEW_LINE>GlStateManager.disableLighti... | posX - entityIn.lastTickPosX) * partialTicks; |
988 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean canGetSyntheticAttribute(com.sun.jdi.VirtualMachine a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debu... | jpda.JDIExceptionReporter.report(ex); |
750,785 | // endregion<NEW_LINE>// region AutoCloseable Implementation<NEW_LINE>@Override<NEW_LINE>public void close() {<NEW_LINE>CompletableReadResultEntry lastEntry = null;<NEW_LINE>synchronized (this) {<NEW_LINE>if (!this.closed) {<NEW_LINE>this.closed = true;<NEW_LINE>lastEntry = this.lastEntry;<NEW_LINE>this.lastEntry = nul... | "ReadResult[%s] closed.", this.traceObjectId))); |
1,729,465 | public void registerCachedFile(String factoryIdentifier, ClassLoader classLoader, String dirName) {<NEW_LINE>Set<URL> urlSet = PluginUtil.getJarFileDirPath(factoryIdentifier, this.localPluginPath, this.remotePluginPath, dirName);<NEW_LINE>try {<NEW_LINE>Method add = URLClassLoader.class.getDeclaredMethod("addURL", URL.... | getPath(), classFileName, true); |
1,628,114 | protected void performRewrite(TransformationContext tc) throws Exception {<NEW_LINE>WorkingCopy wc = tc.getWorkingCopy();<NEW_LINE>CompilationUnitTree cut = wc.getCompilationUnit();<NEW_LINE>TreePath statementPath = tc.getPath();<NEW_LINE>TreeMaker make = wc.getTreeMaker();<NEW_LINE>if (statementPath.getLeaf().getKind(... | .Type(elfTreeVariable), null); |
500,317 | public static void drawOutlinedBox(Box bb, BufferBuilder bufferBuilder) {<NEW_LINE>bufferBuilder.vertex(bb.minX, bb.minY, bb.minZ).next();<NEW_LINE>bufferBuilder.vertex(bb.maxX, bb.minY, bb.minZ).next();<NEW_LINE>bufferBuilder.vertex(bb.maxX, bb.minY, bb.minZ).next();<NEW_LINE>bufferBuilder.vertex(bb.maxX, bb.minY, bb.... | bb.minZ).next(); |
1,476,300 | public VirtualRouterOfferingInventory selectVirtualRouterOffering(L3NetworkInventory l3, List<VirtualRouterOfferingInventory> candidates) {<NEW_LINE>Map<String, List<String>> tags = VirtualRouterSystemTags.VYOS_OFFERING.getTags(candidates.stream().map(VirtualRouterOfferingInventory::getUuid).collect<MASK><NEW_LINE>if (... | (Collectors.toList())); |
813,344 | final EnableSecurityHubResult executeEnableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableSecurityHubRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new EnableSecurityHubResultJsonUnmarshaller()); |
1,475,666 | public void init(final FilterConfig filterConfig) throws ServletException {<NEW_LINE>final ServletContext servletContext = filterConfig.getServletContext();<NEW_LINE>madvoc = Madvoc.get(servletContext);<NEW_LINE>if (madvoc != null) {<NEW_LINE>log = LoggerFactory.getLogger(this.getClass());<NEW_LINE>madvocController = m... | webApp = WebApp.get(servletContext); |
1,097,615 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalTableLookup logicalTableLookup = call.rel(0);<NEW_LINE>RelNode right = logicalTableLookup.getJoin().getRight();<NEW_LINE>HepProgramBuilder builder = new HepProgramBuilder();<NEW_LINE>builder.addGroupBegin();<NEW_LINE>// push filter<NEW_LINE>builder.addRuleInsta... | RelNode newRight = hepPlanner.findBestExp(); |
279,099 | public void applyTo(CompilationUnit compilationUnit) {<NEW_LINE>compilationUnit.accept(new AbstractVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void exitIfStatement(IfStatement ifStatement) {<NEW_LINE>Expression conditionExpression = ifStatement.getConditionExpression();<NEW_LINE>if (!(conditionExpression i... | Statement thenStatement = ifStatement.getThenStatement(); |
1,595,741 | // snippet-start:[iam.java2.list_access_keys.main]<NEW_LINE>public static void listKeys(IamClient iam, String userName) {<NEW_LINE>try {<NEW_LINE>boolean done = false;<NEW_LINE>String newMarker = null;<NEW_LINE>while (!done) {<NEW_LINE>ListAccessKeysResponse response;<NEW_LINE>if (newMarker == null) {<NEW_LINE>ListAcce... | response = iam.listAccessKeys(request); |
1,381,853 | public OutputSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OutputSettings outputSettings = new OutputSettings();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g... | int originalDepth = context.getCurrentDepth(); |
6,881 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(untagResourceRequest)); |
921,326 | public static void startService(Context context, String noteId) {<NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {<NEW_LINE>Intent intent = new Intent(context, NotificationsUpdateService.class);<NEW_LINE>if (noteId != null) {<NEW_LINE>intent.putEx... | resultCode = jobScheduler.schedule(jobInfo); |
790,606 | public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (cause instanceof TooLongFrameException) {<NEW_LINE>sendError(ctx, HttpResponseStatus.BAD_REQUEST);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (cause != null) {<NEW_LINE>if (cause.getClass().equals(IOExc... | Throwable cause = e.getCause(); |
1,154,991 | public void eSet(int featureID, Object newValue) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_DUAL_BUTTON__LOGGER:<NEW_LINE>setLogger((Logger) newValue);<NEW_LINE>return;<NEW_LINE>case ModelPackage.MBRICKLET_DUAL_BUTTON__UID:<NEW_LINE>setUid((String) newValue);<NEW_LINE>return;<NEW_LINE>case Mode... | <? extends DualButtonDevice>) newValue); |
861,571 | public static CodegenExpression codegen(ExprDotNodeForgeVariable forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope classScope) {<NEW_LINE>CodegenExpressionField variableReader = classScope.addOrGetFieldSharable(new VariableReaderCodegenFieldSharable(forge.getVariable()))... | getChainForge().length))); |
1,750,851 | public void readConfig(final RunConfig config) {<NEW_LINE><MASK><NEW_LINE>if (prj != null) {<NEW_LINE>project = prj.getLookup().lookup(NbMavenProjectImpl.class);<NEW_LINE>}<NEW_LINE>historyMappings.clear();<NEW_LINE>btnNext.setVisible(false);<NEW_LINE>btnPrev.setVisible(false);<NEW_LINE>txtGoals.setText(createSpaceSepa... | Project prj = config.getProject(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.