idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,794,046 | public void meetWith(LockSet other) {<NEW_LINE>for (int i = 0; i + 1 < array.length; i += 2) {<NEW_LINE>int valueNumber = array[i];<NEW_LINE>if (valueNumber < 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>int his = other.getLockCount(valueNumber);<NEW_LINE>array[i + 1] = mergeValues(mine, his);<NEW_LINE>... | mine = array[i + 1]; |
1,501,262 | void searchInScope() {<NEW_LINE>String searchText = textFind.getText();<NEW_LINE>if (searchText.length() >= 0) {<NEW_LINE>String convertedText = convertTextString(searchText);<NEW_LINE>boolean isWholeWord = getConfiguration().getWholeWord();<NEW_LINE>boolean isRegEx = getConfiguration().getRegularExpression() || Object... | isCaseSensitive, isWholeWord, isRegEx, statusLineManager); |
85,817 | private Object extractColumns(final Map<String, Object> map, final boolean includeHiddenAndDeleted, final boolean publicOnly) {<NEW_LINE>final <MASK><NEW_LINE>final NodeFactory nodeFactory = new NodeFactory(securityContext);<NEW_LINE>if (map.size() == 1) {<NEW_LINE>final Entry<String, Object> entry = map.entrySet().ite... | RelationshipFactory relFactory = new RelationshipFactory(securityContext); |
519,285 | public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>if (response.isCommitted() || baseRequest.isHandled())<NEW_LINE>return;<NEW_LINE>baseRequest.setHandled(true);<NEW_LINE>final <MASK><NEW_LINE>if (!HttpMethod.G... | String method = request.getMethod(); |
996,033 | final GetInventorySchemaResult executeGetInventorySchema(GetInventorySchemaRequest getInventorySchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInventorySchemaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetInventorySchema"); |
665,527 | private Properties defaultProperties() {<NEW_LINE>Properties felixProps = new Properties();<NEW_LINE>final String felixDirectory = getFelixBaseDirFromConfig();<NEW_LINE>Logger.info(this, () -> "Felix base dir: " + felixDirectory);<NEW_LINE>final String felixAutoDeployDirectory = Config.getStringProperty(AUTO_DEPLOY_DIR... | felixProps.put("felix.fileinstall.start.level", "1"); |
918,894 | public ResponseEntity<Object> login(@RequestBody Map<String, String> requestBody) {<NEW_LINE>if (requestBody == null || !requestBody.containsKey(APP_ID) || !requestBody.containsKey("password")) {<NEW_LINE>return ResponseEntity.badRequest().build();<NEW_LINE>}<NEW_LINE>String appId = requestBody.get("appId");<NEW_LINE>S... | > roles = account.getOwnRoles(); |
1,036,185 | public static Collection<ErrorDescription> apply(HintContext hc) {<NEW_LINE>if (hc.isCanceled() || (hc.getPath().getLeaf().getKind() != Tree.Kind.IDENTIFIER || hc.getPath().getParentPath().getLeaf().getKind() != Tree.Kind.ANNOTATION)) {<NEW_LINE>// NOI18N<NEW_LINE>// we pass only if it is an annotation<NEW_LINE>return ... | problemsFound = new ArrayList<>(); |
157,882 | final DeleteDatastoreResult executeDeleteDatastore(DeleteDatastoreRequest deleteDatastoreRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDatastoreRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
533,262 | final ListAssociatedAssetsResult executeListAssociatedAssets(ListAssociatedAssetsRequest listAssociatedAssetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssociatedAssetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | endClientExecution(awsRequestMetrics, request, response); |
1,739,832 | public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>List<SearchMatch> matches = executeSearch(commandLine);<NEW_LINE>String projectName = commandLine.getValue(Options.NAME_OPTION);<NEW_LINE>IProject project = projectName != null ? ProjectUtils.getProject(projectName) : null;<NEW_LINE>String[] sor... | positions = positionMap.get(sortKey); |
100,180 | public boolean compile(List<File> sourceFiles, List<String> classpathEntries, File outputDir, Map<String, String> environment, ILogListener logListener) throws IOException {<NEW_LINE>List<String> commands = new ArrayList<>();<NEW_LINE>commands.add(compilerPath.toString());<NEW_LINE>String outputDirPath = outputDir<MASK... | .getAbsolutePath().toString(); |
468,778 | private static boolean parse(String value) {<NEW_LINE>String[] lines = value.trim().split("\n");<NEW_LINE>String whitePlayer = "Player 1";<NEW_LINE>String blackPlayer = "Player 2";<NEW_LINE>double komi = 1.5;<NEW_LINE>int handicap = 0;<NEW_LINE>for (String line : lines) {<NEW_LINE>if (line.startsWith("\\[GAMEINFOMAIN="... | line.length() - 3); |
699,577 | protected void forceColors() {<NEW_LINE>UIUtils.runInUIThread(new Runnable() {<NEW_LINE><NEW_LINE>String greenBGString;<NEW_LINE><NEW_LINE>String redBGString;<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>RGB greenBG = GitColors.greenBG().getRGB();<NEW_LINE>greenBGString = StringConverter.asString(greenBG);<NEW_LINE>... | prefs.put("CONFLICTING_COLOR", redBGString); |
1,137,688 | public void performContextAction(final Node[] nodes) {<NEW_LINE>ProgressSupport support = new ContextAction.ProgressSupport(this, nodes) {<NEW_LINE><NEW_LINE>public void perform() {<NEW_LINE>SvnModuleConfig config = SvnModuleConfig.getDefault();<NEW_LINE>int status = getActionStatus(nodes);<NEW_LINE>List<File> files = ... | >(files.size()); |
448,025 | private // AWT task and post it for later execution.<NEW_LINE>void reindentLater(final BaseDocument doc, int start, int end) throws BadLocationException {<NEW_LINE>final Position from = doc.createPosition(Utilities.getRowStart(doc, start));<NEW_LINE>final Position to = doc.createPosition(Utilities<MASK><NEW_LINE>Runnab... | .getRowEnd(doc, end)); |
355,801 | public void processUserInfo(TLRPC.User user, TLRPC.UserFull info, boolean fromCache, boolean force, int classGuid, ArrayList<Integer> pinnedMessages, HashMap<Integer, MessageObject> pinnedMessagesMap, int totalPinnedCount, boolean pinnedEndReached) {<NEW_LINE>AndroidUtilities.runOnUIThread(() -> {<NEW_LINE>if (fromCach... | put(user.id, 1); |
1,725,440 | public RunningDevServicesDatasource startDatabase(Optional<String> username, Optional<String> password, Optional<String> datasourceName, Optional<String> imageName, Map<String, String> containerProperties, Map<String, String> additionalJdbcUrlProperties, OptionalInt fixedExposedPort, LaunchMode launchMode, Optional<Dur... | startupTimeout.ifPresent(container::withStartupTimeout); |
426,264 | public void display(final SheetStub stub, final boolean early) {<NEW_LINE>// Since we are on Swing EDT, use asynchronous processing<NEW_LINE>OmrExecutors.getCachedLowExecutor().submit(() -> {<NEW_LINE>try {<NEW_LINE>LogUtil.start(stub);<NEW_LINE>// Check whether we should run early steps on the sheet<NEW_LINE>checkStub... | .getAssembly().assemblySelected(); |
865,980 | private WeightOrDocIdSet rewrite(LeafReaderContext context) throws IOException {<NEW_LINE>final Terms terms = context.reader().terms(query.field);<NEW_LINE>if (terms == null) {<NEW_LINE>// field does not exist<NEW_LINE>return new WeightOrDocIdSet((DocIdSet) null);<NEW_LINE>}<NEW_LINE>final TermsEnum termsEnum = query.g... | WeightOrDocIdSet(builder.build()); |
1,481,855 | public void incrementTransition(Transducer.TransitionIterator ti, double count) {<NEW_LINE>int index = ti.getIndex();<NEW_LINE>CRF.State source = (CRF.State) ti.getSourceState();<NEW_LINE>int nwi = source.weightsIndices[index].length;<NEW_LINE>@Var<NEW_LINE>int weightsIndex;<NEW_LINE>for (int wi = 0; wi < nwi; wi++) {<... | .weightsIndices[index][wi]; |
1,306,519 | public void replaceDexArchiveBuilderTransform(BaseVariantOutput vod) {<NEW_LINE>List<TransformTask> list = TransformManager.findTransformTaskByTransformType(variantContext, DexArchiveBuilderTransform.class);<NEW_LINE>DefaultDexOptions dexOptions = variantContext.getAppExtension().getDexOptions();<NEW_LINE>boolean minif... | getLogger().info("generate maindexList......"); |
1,461,013 | public void clearTempDirectory() {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>File[] files = dir.listFiles();<NEW_LINE>if (files == null)<NEW_LINE>throw new IllegalStateException("Not a directory: " + tempDir);<NEW_LINE>Date currentDate = timeSource.currentTimestamp();<NEW_LINE>for (File file : files) {<NEW_LINE>Date file... | File dir = new File(tempDir); |
1,275,127 | private static String loadLibraryFromClasspath(Platform platform) {<NEW_LINE>Path tmp = null;<NEW_LINE>try {<NEW_LINE>String libName = System.mapLibraryName(LIB_NAME);<NEW_LINE>Path cacheFolder = Utils.getEngineCacheDir("mxnet");<NEW_LINE>String version = platform.getVersion();<NEW_LINE>String flavor = platform.getFlav... | .toAbsolutePath().toString(); |
1,189,800 | private static void addAFM(String fontName, String afmName) throws IOException {<NEW_LINE>STANDARD_14_NAMES.add(fontName);<NEW_LINE>STANDARD_14_MAPPING.put(fontName, afmName);<NEW_LINE>if (STANDARD14_AFM_MAP.containsKey(afmName)) {<NEW_LINE>STANDARD14_AFM_MAP.put(fontName, STANDARD14_AFM_MAP.get(afmName));<NEW_LINE>}<N... | metric = parser.parse(true); |
1,731,613 | public void leaderboardGetName(final Response.Listener<InlineResponse200> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/leaderboard/name".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW... | 0 ? contentTypes[0] : "application/json"; |
544,858 | public InstanceStateChangeReason unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceStateChangeReason instanceStateChangeReason = new InstanceStateChangeReason();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | int originalDepth = context.getCurrentDepth(); |
537,144 | public Resource<Bitmap> transform(Resource<Bitmap> resource, int outWidth, int outHeight) {<NEW_LINE><MASK><NEW_LINE>int width = source.getWidth();<NEW_LINE>int height = source.getHeight();<NEW_LINE>int scaledWidth = width / mSampling;<NEW_LINE>int scaledHeight = height / mSampling;<NEW_LINE>Bitmap bitmap = mBitmapPool... | Bitmap source = resource.get(); |
1,223,434 | protected void initialize() throws IOException {<NEW_LINE>if (generateJPA) {<NEW_LINE>// NOI18N<NEW_LINE>newClassTree = genUtils.addAnnotation(newClassTree, genUtils.createAnnotation("javax.persistence.Entity"));<NEW_LINE>if (dbMappings.getTableName() != null && !entityClassName.equalsIgnoreCase(dbMappings.getTableName... | , dbMappings.getTableName())); |
396,286 | public void run() {<NEW_LINE>try {<NEW_LINE>Map resp = (Map) handler.invoke(buildRequestMap(req));<NEW_LINE>if (resp == null) {<NEW_LINE>// handler return null<NEW_LINE>cb.run(HttpEncode(404, new HeaderMap()<MASK><NEW_LINE>eventLogger.log(eventNames.serverStatus404);<NEW_LINE>} else {<NEW_LINE>Object body = resp.get(BO... | , null, this.serverHeader)); |
892,500 | public void doSetup() {<NEW_LINE>sz = (int) Math.cbrt(size / 8) / 2;<NEW_LINE>n = sz - 2;<NEW_LINE>a0 = new float[sz * sz * sz];<NEW_LINE>a1 = new float[sz * sz * sz];<NEW_LINE>ainit = new float[sz * sz * sz];<NEW_LINE>Arrays.fill(a1, 0);<NEW_LINE>final <MASK><NEW_LINE>for (int i = 1; i < n + 1; i++) {<NEW_LINE>for (in... | Random rand = new Random(7); |
430,925 | public void handle(Promise<RowSet<Row>> promise) {<NEW_LINE>try {<NEW_LINE>PreparedStatement preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);<NEW_LINE>for (Tuple tuple : batch) {<NEW_LINE>setParams(tuple, preparedStatement);<NEW_LINE>preparedStatement.addBatch();<NEW_LINE>}<NEW_LIN... | ResultSet generatedKeys = preparedStatement.getGeneratedKeys(); |
189,690 | private static long stringToMillis(String dateTime) {<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.set(Calendar.MILLISECOND, 0);<NEW_LINE>java.util.StringTokenizer st = new java.util.StringTokenizer(dateTime, "- :");<NEW_LINE>cal.set(Calendar.YEAR, Integer.parseInt(st.nextToken()));<NEW_LINE>cal.set(Cal... | (st.nextToken())); |
1,015,314 | public static void loadRoutingFiles(@NonNull final OsmandApplication app, @Nullable final LoadRoutingFilesCallback callback) {<NEW_LINE>new AsyncTask<Void, Void, Map<String, RoutingConfiguration.Builder>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Map<String, RoutingConfiguration.Builder> doInBackground(Void..... | customConfigs.put(fileName, builder); |
1,066,874 | public ArmatureDebugger addArmatureFrom(Armature armature, Spatial forSpatial) {<NEW_LINE>ArmatureDebugger ad = armatures.get(armature);<NEW_LINE>if (ad != null) {<NEW_LINE>return ad;<NEW_LINE>}<NEW_LINE>JointInfoVisitor visitor = new JointInfoVisitor(armature);<NEW_LINE>forSpatial.depthFirstTraversal(visitor);<NEW_LIN... | ), app.getCamera()); |
1,390,752 | public Promise<OneResult<?>, OneReject<Throwable>, Void> race(Iterable<?> iterable) {<NEW_LINE>if (iterable == null) {<NEW_LINE>throw new IllegalArgumentException("Iterable is null");<NEW_LINE>}<NEW_LINE>Iterator<?> iterator = iterable.iterator();<NEW_LINE>if (!iterator.hasNext()) {<NEW_LINE>throw new IllegalArgumentEx... | = new LinkedList<Object>(); |
942,963 | private CompiledQuery sqlShowColumns(SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>CharSequence tok;<NEW_LINE>tok = SqlUtil.fetchNext(lexer);<NEW_LINE>if (null == tok || !isFromKeyword(tok)) {<NEW_LINE>throw SqlException.position(lexer.getPosition()).put("expected 'from'");<NEW_LINE>}<NEW_LINE>to... | (tableName).put("' is not a valid table"); |
870,295 | public void testClientLtpaHander_ClientNoTokenWithSSLDefault(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("hostname");<NEW_LINE>String serverPort = param.get("secport");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.de... | > completableFuture = completionStage.toCompletableFuture(); |
909,771 | void refresh() throws SQLException {<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = getPositionsStmt();<NEW_LINE>stmt.setString(1, _source);<NEW_LINE>rs = stmt.executeQuery();<NEW_LINE>if (rs.next()) {<NEW_LINE>_producelogid = rs.getInt(1);<NEW_LINE>_logrid = rs.getInt(2);<NEW_LINE>_appl... | _tabrid = rs.getInt(4); |
1,655,813 | protected EmittedArtifact emitSelectionScript(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException {<NEW_LINE>// Find the single Script result<NEW_LINE>Set<Script> results = artifacts.find(Script.class);<NEW_LINE>if (results.size() != 1) {<NEW_LINE>logger.log(TreeLogger.ERRO... | print(result.getJavaScript()); |
1,146,624 | private static void showTree(StringBuilder builder, MetaPackage mp, boolean onlyCompiled) {<NEW_LINE>List<MetaPackage> childPackages = mp.getChildPackages();<NEW_LINE>for (MetaPackage childPackage : childPackages) {<NEW_LINE>showTree(builder, childPackage, onlyCompiled);<NEW_LINE>}<NEW_LINE>List<MetaClass> packageClass... | S_HYPEN)).append(HEADLESS_SEPARATOR); |
66,627 | private List<RebalanceTask> executeTasks(final int batchId, RebalanceBatchPlanProgressBar progressBar, final ExecutorService service, List<RebalanceTaskInfo> rebalanceTaskPlanList, Map<Integer, Semaphore> donorPermits) {<NEW_LINE>List<RebalanceTask> taskList = Lists.newArrayList();<NEW_LINE>int taskId = 0;<NEW_LINE>Reb... | = new RebalanceScheduler(service, maxParallelRebalancing); |
378,015 | // TODO EmitResult should not contain compilation diagnostics.<NEW_LINE>public EmitResult emit(OutputType outputType, Path filePath) {<NEW_LINE>Path generatedArtifact = null;<NEW_LINE>if (diagnosticResult.hasErrors()) {<NEW_LINE>return new EmitResult(false, diagnosticResult, generatedArtifact);<NEW_LINE>}<NEW_LINE>swit... | throw new RuntimeException("Unexpected output type: " + outputType); |
737,155 | private void buildTablePartitionInfoAndTopology() {<NEW_LINE>CreateTablePreparedData indexTablePreparedData = gsiPreparedData.getIndexTablePreparedData();<NEW_LINE>SqlDdl sqlDdl = (SqlDdl) relDdl.sqlNode;<NEW_LINE>if (sqlDdl.getKind() == SqlKind.CREATE_TABLE || sqlDdl.getKind() == SqlKind.ALTER_TABLE) {<NEW_LINE>refres... | PartitionInfo primaryPartitionInfo = gsiPreparedData.getPrimaryPartitionInfo(); |
783,624 | private void createComponent() {<NEW_LINE>myComp = new MyComponent(myContent, this, myShadowBorderProvider != null ? null : myShowPointer ? myPosition.createBorder(this) : getPointlessBorder());<NEW_LINE>if (myActionProvider == null) {<NEW_LINE>final Consumer<MouseEvent> listener = event -> {<NEW_LINE>// noinspection S... | (6), iconWidth, iconHeight); |
773,784 | default public WebDriver restartDriver(boolean isSameDevice) {<NEW_LINE>WebDriver drv = getDriver(DEFAULT);<NEW_LINE>Device device = nullDevice;<NEW_LINE>DesiredCapabilities caps = new DesiredCapabilities();<NEW_LINE>boolean keepProxy = false;<NEW_LINE>if (isSameDevice) {<NEW_LINE>keepProxy = true;<NEW_LINE>device = ge... | device.getUdid() + " to capabilities for restartDriver on the same device."); |
1,224,762 | public AutogenPythonEnvironmentBlob generate(SourceOfRandomness r, GenerationStatus status) {<NEW_LINE>// if (r.nextBoolean())<NEW_LINE>// return null;<NEW_LINE>AutogenPythonEnvironmentBlob obj = new AutogenPythonEnvironmentBlob();<NEW_LINE>if (r.nextBoolean()) {<NEW_LINE>int size = r.nextInt(0, 10);<NEW_LINE>List<Auto... | r.nextInt(0, 10); |
410,125 | public List<Path> call() throws IOException {<NEW_LINE>// Obtain the size of each file<NEW_LINE>final int numFiles = uriToTargetMap.size();<NEW_LINE>if (numFiles < 1) {<NEW_LINE>// avoid reporting progress like "Retrieving file size 1 of 0"<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final Map<URI, Lon... | .getKey().toURL(); |
368,562 | public void addServiceService(final String objectName, final String serviceAddress, final ServiceQueue serviceQueue) {<NEW_LINE>servicesToStop.add(serviceQueue);<NEW_LINE>servicesToFlush.add(serviceQueue);<NEW_LINE>QueueDispatch dispatch = new QueueDispatch(serviceQueue);<NEW_LINE>if (serviceAddress != null && !service... | ).toLowerCase(), dispatch); |
923,500 | private void loadNode540() {<NEW_LINE>SessionSecurityDiagnosticsTypeNode node = new SessionSecurityDiagnosticsTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionSecurityDiagnostics, new QualifiedName(0, "SessionSecurityDiagnostics"), new LocalizedText("en", "SessionSecurityDiagnostics"), LocalizedTe... | .expanded(), true)); |
1,216,417 | private boolean equalContent(IParseRootNode inputParseResult, String output) {<NEW_LINE>if (output == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>output = output.trim();<NEW_LINE>IParser parser = checkoutParser();<NEW_LINE>IParseState parseState = new ParseState(output);<NEW_LINE>IParseRootNode outputParseResult... | equals = flattenOutputAST.equals(flattenInputAST); |
32,702 | public static <E> int levenshteinDistance(E[] s1, E[] s2) {<NEW_LINE>int[] costs = new int[s2.length + 1];<NEW_LINE>for (int i = 0; i <= s1.length; i++) {<NEW_LINE>int lastValue = i;<NEW_LINE>for (int j = 0; j <= s2.length; j++) {<NEW_LINE>if (i == 0)<NEW_LINE>costs[j] = j;<NEW_LINE>else {<NEW_LINE>if (j > 0) {<NEW_LIN... | costs[s2.length] = lastValue; |
1,201,310 | private void submitChange(String changeId) throws RepoException, ValidationException {<NEW_LINE>try (ProfilerTask ignore = generalOptions.profiler().start("submit_gerrit_change")) {<NEW_LINE>ChangeInfo changeInfo = findChange(changeId);<NEW_LINE>if (changeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GerritApi g... | of("Code-Review", 2))); |
773,603 | protected void parse() {<NEW_LINE>showTabNames = getBoolean(SHOW_TEXT_ICONS, true);<NEW_LINE>processImages = getInt(PROCESS_IMAGES, 0);<NEW_LINE>// No default<NEW_LINE>configLocale = getString(LOCALE, null);<NEW_LINE>locale = getString(LOCALE, DEFAULT_LOCALE);<NEW_LINE>useSystemsLocaleForFormat = getBoolean(USE_SYSTEMS... | confirmRemoveProxyExcludeRegex = getBoolean(CONFIRM_REMOVE_PROXY_EXCLUDE_REGEX_KEY, false); |
834,722 | Problem returnType(Problem p, String returnType, ExecutableElement method, TypeElement enclosingTypeElement) {<NEW_LINE>TypeMirror parseType;<NEW_LINE>if (returnType != null && returnType.length() < 1) {<NEW_LINE>// NOI18N<NEW_LINE>p = createProblem(p, true, NbBundle.getMessage(ChangeParametersPlugin<MASK><NEW_LINE>} e... | .class, "ERR_NoReturn", returnType)); |
549,442 | private void loadData(MongoClient db) {<NEW_LINE>db.dropCollection("albums", drop -> {<NEW_LINE>if (drop.failed()) {<NEW_LINE>throw new RuntimeException(drop.cause());<NEW_LINE>}<NEW_LINE>List<JsonObject> <MASK><NEW_LINE>albums.add(new JsonObject().put("artist", "The Wurzels").put("genre", "Scrumpy and Western").put("t... | albums = new LinkedList<>(); |
1,802,988 | void buildMergeHandlerWithSubQueries(List<DMLResponseHandler> subQueryEndHandlers, Set<String> queryRouteNodes) {<NEW_LINE>for (DMLResponseHandler endHandler : subQueryEndHandlers) {<NEW_LINE>// clearExplain status<NEW_LINE>SubQueryHandler subQueryHandler = (SubQueryHandler) (endHandler.getNextHandler());<NEW_LINE>if (... | > mapTableToSimple = visitor.getMapTableToSimple(); |
1,229,498 | private static ToolTipImage icon2ToolTipImage(Icon icon, URL url) {<NEW_LINE>Parameters.notNull("icon", icon);<NEW_LINE>if (icon instanceof ToolTipImage) {<NEW_LINE>return (ToolTipImage) icon;<NEW_LINE>}<NEW_LINE>ToolTipImage image = new ToolTipImage(icon, "", url, BufferedImage.TYPE_INT_ARGB);<NEW_LINE>Graphics g = im... | dummyIconComponentButton, g, 0, 0); |
884,711 | final GetUsageForecastResult executeGetUsageForecast(GetUsageForecastRequest getUsageForecastRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUsageForecastRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
410,636 | public static void main(String[] args) {<NEW_LINE>String fileName = UtilIO.pathExample("background/highway_bridge_jitter.mp4");<NEW_LINE>ImageType type = ImageType.pl(3, GrayU8.class);<NEW_LINE>// ImageType type = ImageType.single(GrayU8.class);<NEW_LINE>// ImageType type = ImageType.pl(3, GrayF32.class);<NEW_LINE>// I... | JCodecSimplified<>(fileName, type); |
495,606 | public static void main(String[] args) {<NEW_LINE>final String ilp = "vbw water_speed_longitudinal=0.07,water_speed_transveral=,water_speed_status=\"A\",ground_speed_longitudinal=0,ground_speed_transveral=0,ground_speed_status=\"A\",water_speed_stern_transversal=,water_speed_stern_transversal_status=\"V\",ground_speed_... | malloc(len, MemoryTag.NATIVE_DEFAULT); |
1,187,606 | public void write(ByteBuffer buf) {<NEW_LINE>freeze();<NEW_LINE>ResChunk_header.write(buf, (short) RES_STRING_POOL_TYPE, () -> {<NEW_LINE>// header<NEW_LINE>int startPos = buf.position();<NEW_LINE>int stringCount = strings.size();<NEW_LINE>// begin string pool...<NEW_LINE>// stringCount<NEW_LINE>buf.putInt(stringCount)... | buf.position() - startPos); |
941,036 | @ReactiveTransactional<NEW_LINE>public Uni<Response> login(@RestForm String userName, @BeanParam WebAuthnLoginResponse webAuthnResponse, RoutingContext ctx) {<NEW_LINE>// Input validation<NEW_LINE>if (userName == null || userName.isEmpty() || !webAuthnResponse.isSet() || !webAuthnResponse.isValid()) {<NEW_LINE>return U... | .ok().build(); |
927,877 | public void run() throws IOException {<NEW_LINE>verifyInput();<NEW_LINE>if (tokenStrings != null) {<NEW_LINE>numTokens = tokenStrings.size();<NEW_LINE>}<NEW_LINE>Deque<String> domainNames;<NEW_LINE>if (domainNamesFile == null) {<NEW_LINE>domainNames = null;<NEW_LINE>} else {<NEW_LINE>domainNames = newArrayDeque(Splitte... | UTF_8).read())); |
175,584 | public static void main(String[] args) {<NEW_LINE>// the original array<NEW_LINE>int[] A = new int[] { 18, 17, 13, 19, 15, 11, 20 };<NEW_LINE>SegmentTree st = new SegmentTree(A);<NEW_LINE>System.out.printf(" idx 0, 1, 2, 3, 4, 5, 6\n");<NEW_LINE>System.out.printf(" A is {18,17,13,19,15, 11... | st.update_point(5, 100); |
680,586 | public DdlCommandResult executeCreateStream(final CreateStreamCommand createStream) {<NEW_LINE>final <MASK><NEW_LINE>final DataSource dataSource = metaStore.getSource(sourceName);<NEW_LINE>if (dataSource != null && !createStream.isOrReplace()) {<NEW_LINE>final String sourceType = dataSource.getDataSourceType().getKsqlT... | SourceName sourceName = createStream.getSourceName(); |
307,551 | public void activate(final BundleContext bundleContext, final Map<String, Object> configuration) {<NEW_LINE>logger.debug("FritzBox TR064 Binding activated!");<NEW_LINE>// to override the default refresh interval one has to add a<NEW_LINE>// parameter to openhab.cfg like <bindingName>:refresh=<intervalInMs><NEW_LINE>Str... | logger.debug("Custom refresh interval set to {}", refreshInterval); |
1,816,194 | private Mono<Response<Void>> disableWithResponseAsync(String resourceGroupName, String workspaceName, String intelligencePackName, 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 n... | error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); |
1,533,798 | public Pair<Gradient, INDArray> backpropGradient(INDArray epsilon, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(true);<NEW_LINE>INDArray z = preOutput(true, workspaceMgr);<NEW_LINE>// Shape: [mb, vector, seqLength]<NEW_LINE>INDArray delta = layerConf().getActivationFn().backprop(z, epsilon).getFirst();<NEW... | ArrayType.ACTIVATIONS, input, 'f'); |
483,991 | private void relockDomain() {<NEW_LINE>RegistryLock oldLock = null;<NEW_LINE>DomainBase domain;<NEW_LINE>try {<NEW_LINE>oldLock = RegistryLockDao.getByRevisionId(oldUnlockRevisionId).orElseThrow(() -> new IllegalArgumentException(String.<MASK><NEW_LINE>domain = tm().loadByKey(VKey.create(DomainBase.class, oldLock.getRe... | format("Unknown revision ID %d", oldUnlockRevisionId))); |
973,691 | protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>if (getArguments() == null) {<NEW_LINE>throw new NullPointerException("Bundle is null, therefore, PullRequestFilesFragment can't be proceeded.");<NEW_LINE>}<NEW_LINE>setupChanges();<NEW_LINE>stateLayout.setEmptyText(R.s... | getFiles(), this, this); |
112,755 | public CreateProposalResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateProposalResult createProposalResult = new CreateProposalResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
1,571,433 | protected void editSetting(final SettingModel settingModel) {<NEW_LINE>final JTextField textField = new JTextField(settingModel.currentValue);<NEW_LINE>JPanel editPanel = new JPanel(new GridLayout(0, 1));<NEW_LINE>editPanel.add(new JLabel("New Value"));<NEW_LINE>editPanel.add(textField);<NEW_LINE>JPanel settingPanel = ... | (settingModel), BorderLayout.CENTER); |
931,807 | private Map<String, URLClassLoader> createClassLoaderMap(File dir, String[] files) throws IOException {<NEW_LINE>Map<String, URLClassLoader> m = new TreeMap<>();<NEW_LINE>for (int i = 0; i < files.length; i++) {<NEW_LINE>File moduleJar = new File<MASK><NEW_LINE>Manifest manifest;<NEW_LINE>try (JarFile jar = new JarFile... | (dir, files[i]); |
1,581,817 | public Void visitLiteral(LiteralTree node, Void p) {<NEW_LINE>int startPos = (int) info.getTrees().getSourcePositions().getStartPosition(info.getCompilationUnit(), node);<NEW_LINE>tl.moveToOffset(startPos);<NEW_LINE><MASK><NEW_LINE>if (t != null && t.id() == JavaTokenId.MULTILINE_STRING_LITERAL && t.partType() == PartT... | Token t = tl.currentToken(); |
1,318,843 | public void marshall(ReplicaSettingsUpdate replicaSettingsUpdate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replicaSettingsUpdate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>proto... | replicaSettingsUpdate.getRegionName(), REGIONNAME_BINDING); |
1,295,255 | public DescribeEntitiesDetectionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeEntitiesDetectionJobResult describeEntitiesDetectionJobResult = new DescribeEntitiesDetectionJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | JsonToken token = context.getCurrentToken(); |
1,692,090 | private FormalTypePatternContext formalTypePattern(int _p) throws RecognitionException {<NEW_LINE>ParserRuleContext _parentctx = _ctx;<NEW_LINE>int _parentState = getState();<NEW_LINE>FormalTypePatternContext _localctx = new FormalTypePatternContext(_ctx, _parentState);<NEW_LINE>FormalTypePatternContext _prevctx = _loc... | _errHandler.reportError(this, re); |
1,525,394 | public static TransactionInput fromByteReader(ByteReader reader) throws TransactionInputParsingException {<NEW_LINE>try {<NEW_LINE>Sha256Hash outPointHash = reader.getSha256Hash().reverse();<NEW_LINE><MASK><NEW_LINE>int scriptSize = (int) reader.getCompactInt();<NEW_LINE>byte[] script = reader.getBytes(scriptSize);<NEW... | int outPointIndex = reader.getIntLE(); |
338,299 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "order by price";<NEW_LINE>SymbolPr... | + "SupportMarketDataBean#time_batch(1) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "order by price, symbol"; |
1,537,336 | // This solution is generic for both BST and regular binary trees<NEW_LINE>public TreeNode convertBST(TreeNode root) {<NEW_LINE>if (root == null) {<NEW_LINE>return root;<NEW_LINE>}<NEW_LINE>List<Integer> list = new ArrayList<>();<NEW_LINE>putNodeToList(list, root);<NEW_LINE>Collections.sort(list);<NEW_LINE>int[] sums =... | size() - 1] = 0; |
725,177 | private void fillNicPrerequisites(OVFNetworkTO nic, Node parentNode) {<NEW_LINE>String addressOnParentStr = ovfParser.getChildNodeValue(parentNode, "AddressOnParent");<NEW_LINE>String automaticAllocationStr = ovfParser.getChildNodeValue(parentNode, "AutomaticAllocation");<NEW_LINE>String description = ovfParser.getChil... | ovfParser.getChildNodeValue(parentNode, "ResourceType"); |
595,767 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.navercorp.pinpoint.bootstrap.interceptor.AroundInterceptor#after(java.lang.Object, java.lang.Object[],<NEW_LINE>* java.lang.Object, java.lang.Throwable)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void after(final Object target, final Object[] args, final Ob... | th.getMessage(), th); |
733,748 | // -----------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void validate(ReadablePartial partial, int[] values) {<NEW_LINE>// check values in standard range, catching really stupid cases like -1<NEW_LINE>// this means that the second check will not hit trouble<NEW_LINE... | field = partial.getField(i); |
1,041,835 | public void writeValue(int ex) {<NEW_LINE>double x = xyGraph.primaryXAxis.getPositionValue(ex, false);<NEW_LINE>int index = (int) x;<NEW_LINE>if (index < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Sample sample = (Sample) trace.getDataProvider().getSample(index);<NEW_LINE>if (sample != null) {<NEW_LINE>double y = sample... | primaryYAxis.getValuePosition(y, false); |
1,168,260 | private Mono<PagedResponse<DdosProtectionPlanInner>> listSinglePageAsync() {<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>}<NEW_LINE>if (this.client.getSubscriptionId() == null)... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,594,250 | final DescribeRemediationConfigurationsResult executeDescribeRemediationConfigurations(DescribeRemediationConfigurationsRequest describeRemediationConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRemediationConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
931,855 | public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure structure = new StructureDataType(VdexHeader_10.class.getSimpleName() + "_" + number_of_dex_files_, 0);<NEW_LINE>structure.add(STRING, 4, "magic_", null);<NEW_LINE>structure.add(STRING, 4, "verifier_deps_version_", null);<NEW_L... | add(DWORD, "number_of_dex_files_", null); |
650,467 | public void findDatafeedIdsForJobIds(Collection<String> jobIds, ActionListener<Set<String>> listener) {<NEW_LINE>SearchSourceBuilder sourceBuilder = new SearchSourceBuilder().query(buildDatafeedJobIdsQuery(jobIds));<NEW_LINE>sourceBuilder.fetchSource(false);<NEW_LINE>sourceBuilder.<MASK><NEW_LINE>sourceBuilder.docValue... | size(jobIds.size()); |
1,620,504 | private DataPack doRefresh(@Nonnull Collection<VirtualFile> roots) {<NEW_LINE>StopWatch <MASK><NEW_LINE>PermanentGraph<Integer> permanentGraph = myCurrentDataPack.isFull() ? myCurrentDataPack.getPermanentGraph() : null;<NEW_LINE>Map<VirtualFile, CompressedRefs> currentRefs = myCurrentDataPack.getRefsModel().getAllRefsB... | sw = StopWatch.start("refresh"); |
1,528,567 | protected void handleSuccess(Response response, Request<List<ThreadChannel>> request) {<NEW_LINE>DataObject obj = response.getObject();<NEW_LINE>DataArray selfThreadMembers = obj.getArray("members");<NEW_LINE>DataArray threads = obj.getArray("threads");<NEW_LINE>List<ThreadChannel> list = new ArrayList<>(threads.length... | EntityBuilder builder = api.getEntityBuilder(); |
261,537 | public GetContentModerationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetContentModerationResult getContentModerationResult = new GetContentModerationResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_... | String name = reader.nextName(); |
1,656,876 | public static void open(URL url, BasicFrame parent) {<NEW_LINE>String displayName = null;<NEW_LINE>// First figure out the file name from the URL<NEW_LINE>// Try using URI.getPath();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>displayName = uri.getPath();<NEW_LINE>} catch (URISyntaxException ignore) {<NEW_LINE>}<NEW_LINE>/... | URI uri = url.toURI(); |
902,370 | void addGraphNode(int node, float[] value) throws IOException {<NEW_LINE>NeighborQueue candidates;<NEW_LINE>final int nodeLevel = getRandomGraphLevel(ml, random);<NEW_LINE>int curMaxLevel <MASK><NEW_LINE>int[] eps = new int[] { hnsw.entryNode() };<NEW_LINE>// if a node introduces new levels to the graph, add this new n... | = hnsw.numLevels() - 1; |
525,588 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<NEW_LI... | extends Interceptor> preparedStatementInterceptor = PreparedStatementExecuteQueryInterceptor.class; |
786,650 | final PutBackupPolicyResult executePutBackupPolicy(PutBackupPolicyRequest putBackupPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putBackupPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
323,107 | public static int cliInstaller(boolean uninstall, List<String> rawArgs) {<NEW_LINE>CmdReader<CmdArgs> reader = CmdReader.of(CmdArgs.class);<NEW_LINE>CmdArgs args;<NEW_LINE>try {<NEW_LINE>args = reader.make(rawArgs.toArray(new String[0]));<NEW_LINE>} catch (InvalidCommandLineException e) {<NEW_LINE>System.err.println(e.... | System.err.println("--------------------------"); |
717,001 | public static SubGraph from(Transaction tx, Result result, boolean addBetween) {<NEW_LINE>final CypherResultSubGraph graph = new CypherResultSubGraph();<NEW_LINE>final List<String> columns = result.columns();<NEW_LINE>for (Map<String, Object> row : loop(result)) {<NEW_LINE>for (String column : columns) {<NEW_LINE>final... | value = row.get(column); |
125,593 | private void loadNode66() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_Open, new QualifiedName(0, "Open"), new LocalizedText("en", "Open"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>node.a... | .expanded(), false)); |
1,763,825 | public void merge(final TypeDefinition type) {<NEW_LINE>if (null == clazz) {<NEW_LINE>clazz = type.getClazz();<NEW_LINE>} else if (null != type.getClazz() && !clazz.equals(type.getClazz())) {<NEW_LINE>throw new SchemaException("Unable to merge schemas. Conflict with type class, options are: " + clazz.getName() + " and ... | new ArrayList<>(newValidateFunctions)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.