idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,391,974 | protected void handleKeyReleased(KeyEvent e) {<NEW_LINE>super.handleKeyReleased(e);<NEW_LINE>// Custom bind support<NEW_LINE>PluginKeybinds.getInstance().getClassViewBinds().forEach((bind, action) -> {<NEW_LINE>try {<NEW_LINE>if (bind.match(e))<NEW_LINE>action.accept(this);<NEW_LINE>} catch (Throwable t) {<NEW_LINE>Log... | config.display().monoFontSize--; |
947,730 | static Shape indexToView(TextLayout textLayout, Rectangle2D textLayoutBounds, int index, Position.Bias bias, int maxIndex, Shape alloc) {<NEW_LINE>if (textLayout == null) {<NEW_LINE>// Leave given bounds<NEW_LINE>return alloc;<NEW_LINE>}<NEW_LINE>assert // NOI18N<NEW_LINE>(maxIndex <= textLayout.getCharacterCount()) : ... | startHit = TextHitInfo.leading(charIndex); |
15,533 | private Shape draw3DColumn(int x, int y, int w, int h, int index, boolean isVertical) {<NEW_LINE>Graphics2D g = e.getGraphics();<NEW_LINE>CartesianCoor cc = (CartesianCoor) getCoor();<NEW_LINE>int coorShift = cc.get3DShift();<NEW_LINE>Color c = borderColor.colorValue(index);<NEW_LINE>int style = borderStyle.intValue(in... | shapeX, shapeY, shapeX.length); |
1,194,499 | public void jsConstructor(final String type, final ScriptableObject details) {<NEW_LINE>super.jsConstructor(ScriptRuntime.toString(type), details);<NEW_LINE>if (details != null && !Undefined.isUndefined(details)) {<NEW_LINE>final Object screenX = details.get("screenX", details);<NEW_LINE>if (NOT_FOUND != screenX) {<NEW... | details.get("clientY", details); |
549,628 | public void run() {<NEW_LINE>try {<NEW_LINE>entry.incrementRunCount();<NEW_LINE>RuntimeEventLog.cron(taskClassName);<NEW_LINE>if (taskClass != null) {<NEW_LINE>Task task = (Task) taskClass.newInstance();<NEW_LINE>logger.debug("Starting task {}", taskClassName);<NEW_LINE>StructrApp.<MASK><NEW_LINE>} else {<NEW_LINE>try ... | getInstance().processTasks(task); |
726,808 | private void initDeterministicColumnIndex(ExecutionContext ec) {<NEW_LINE>if (!(RelUtils.getRelInput(this) instanceof LogicalDynamicValues)) {<NEW_LINE>literalColumnIndex = Lists.newArrayList();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Set<String> resultColumnNames = new <MASK><NEW_LINE>final String tableName = targe... | TreeSet<>(String.CASE_INSENSITIVE_ORDER); |
1,270,190 | public long remove(Nd nd, long address, int index) {<NEW_LINE>int currentSize = size(nd, address);<NEW_LINE>int lastElementIndex = currentSize - 1;<NEW_LINE>Database db = nd.getDB();<NEW_LINE>if (index > lastElementIndex || index < 0) {<NEW_LINE>IndexExceptionBuilder descriptor = nd.describeProblem().addProblemAddress(... | nd, address, currentSize - 1); |
231,911 | private boolean init() {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try {<NEW_LINE>// properties.load(new FileInputStream("StringExtract.properties"));<NEW_LINE>InputStream inputStream = StringExtract.class.getResourceAsStream(PROPERTY_FILE);<NEW_LINE>properties.load(inputStream);<NEW_LINE>String table... | char) Integer.parseInt(tok); |
1,341,027 | public void run() {<NEW_LINE>if (isStopped) {<NEW_LINE>log.info("Janitor was requested to stop");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Iterator<PaymentAttemptModelDao> iterator = getItemsForIteration().iterator();<NEW_LINE>try {<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>final <MASK><NEW_LINE>if (isStopped) {... | PaymentAttemptModelDao item = iterator.next(); |
334,212 | private void initAssets() {<NEW_LINE>ModuleEnvironment environment = context.get(ModuleManager.class).getEnvironment();<NEW_LINE>BlockFamilyLibrary library <MASK><NEW_LINE>// cast lambdas explicitly to avoid inconsistent compiler behavior wrt. type inference<NEW_LINE>assetTypeManager.createAssetType(Prefab.class, PojoP... | = new BlockFamilyLibrary(environment, context); |
1,079,232 | private void process(final JobConfiguration jobConfig, final ShardingContexts shardingContexts, final ExecutionSource executionSource) {<NEW_LINE>Collection<Integer> items = shardingContexts.getShardingItemParameters().keySet();<NEW_LINE>if (1 == items.size()) {<NEW_LINE>int item = shardingContexts.getShardingItemParam... | jobConfig, shardingContexts, each, jobExecutionEvent); |
1,603,874 | private Wo executeCommand(String ctl, String nodeName, Integer nodePort, String fileName) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>Wo wo = new Wo();<NEW_LINE>wo.setNode(nodeName);<NEW_LINE>wo.setStatus("success");<NEW_LINE>try (Socket socket = new Socket(nodeName, nodePort)) {<NEW_LINE>socket.setKeepAlive... | DataInputStream(socket.getInputStream()); |
1,844,282 | private Addon fromAddonEntry(AddonEntryDTO addonEntry) {<NEW_LINE>String fullId = ADDON_ID_PREFIX + addonEntry.id;<NEW_LINE>boolean installed = addonHandlers.stream().anyMatch(handler -> handler.supports(addonEntry.type, addonEntry.contentType) && handler.isInstalled(fullId));<NEW_LINE>Map<String, Object> properties = ... | coreVersion.inRange(addonEntry.compatibleVersions); |
1,323,567 | private void init(Context context, AttributeSet attrs) {<NEW_LINE>if (attrs != null) {<NEW_LINE>TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MockView);<NEW_LINE>final int count = a.getIndexCount();<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>int attr = a.getIndex(i);<NEW_LINE>if (attr == R.s... | a.getColor(attr, mDiagonalsColor); |
240,288 | private void loadNode742() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ProgramStateMachineType_Running_StateNumber, new QualifiedName(0, "StateNumber"), new LocalizedText("en", "StateNumber"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.... | DataValue(new Variant(o)); |
1,693,284 | public <T, R extends ApiResponse<T>> PendingResult<T> handlePost(String hostName, String url, String payload, Map<String, String> headers, Class<R> clazz, FieldNamingPolicy fieldNamingPolicy, long errorTimeout, Integer maxRetries, ExceptionsAllowedToRetry exceptionsAllowedToRetry, RequestMetrics metrics) {<NEW_LINE>Fet... | new HTTPHeader(k, v)); |
1,656,624 | static TBigInteger finalSubtraction(int[] res, TBigInteger modulus) {<NEW_LINE>// skipping leading zeros<NEW_LINE>int modulusLen = modulus.numberLength;<NEW_LINE>boolean doSub = res[modulusLen] != 0;<NEW_LINE>if (!doSub) {<NEW_LINE><MASK><NEW_LINE>doSub = true;<NEW_LINE>for (int i = modulusLen - 1; i >= 0; i--) {<NEW_L... | int[] modulusDigits = modulus.digits; |
1,140,849 | public static DescribeAlarmEventDetailResponse unmarshall(DescribeAlarmEventDetailResponse describeAlarmEventDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeAlarmEventDetailResponse.setRequestId(context.stringValue("DescribeAlarmEventDetailResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE... | = new ArrayList<ValueItem>(); |
264,636 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_slidetonavigation);<NEW_LINE>// Set a Toolbar to replace the ActionBar.<NEW_LINE>Toolbar toolbar = <MASK><NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>getSupportActionBar().setDisp... | findViewById(R.id.toolbar); |
1,277,241 | public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>int queries = Helper.getQueries(exchange);<NEW_LINE>World[] worlds = new World[queries];<NEW_LINE>try (Connection connection = ds.getConnection()) {<NEW_LINE>try (PreparedStatement statement = connection.prepareStatement("SELECT * FROM W... | (writer.toByteArray())); |
1,643,371 | private void replaceFilesSet(FilesSet oldSet, FilesSet newSet, Map<String, FilesSet.Rule> rules) {<NEW_LINE>if (oldSet != null) {<NEW_LINE>// Remove the set to be replaced from the working copy if the files<NEW_LINE>// set definitions.<NEW_LINE>this.filesSets.remove(oldSet.getName());<NEW_LINE>}<NEW_LINE>FilesSet setTo... | this.setsListModel.addElement(set); |
1,694,902 | public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException {<NEW_LINE>int index = getViewIndex(pos, b);<NEW_LINE>if (index >= 0) {<NEW_LINE>Shape ca = getChildAllocation(index, a);<NEW_LINE>// forward to the child view<NEW_LINE>ViewLayoutState child = getChild(index);<NEW_LINE><MASK><NEW_LI... | View cv = child.getView(); |
1,062,293 | final UpdateUserPoolDomainResult executeUpdateUserPoolDomain(UpdateUserPoolDomainRequest updateUserPoolDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserPoolDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,409,840 | private Mono<Response<CredentialResultsInner>> listClusterAdminCredentialsWithResponseAsync(String resourceGroupName, String resourceName, String serverFqdn, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() ... | this.client.mergeContext(context); |
1,755,319 | public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<DependencyReport>> mergedReports = new HashMap<String, List<DependencyReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<String... | mergedReports.put(domain, rs); |
1,064,307 | public static boolean runSample(AzureResourceManager azureResourceManager) {<NEW_LINE>final String docDBName = Utils.<MASK><NEW_LINE>final String rgName = Utils.randomResourceName(azureResourceManager, "rgNEMV", 24);<NEW_LINE>try {<NEW_LINE>// ============================================================<NEW_LINE>// Cre... | randomResourceName(azureResourceManager, "docDb", 10); |
979,303 | public ListProjectsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListProjectsResult listProjectsResult = new ListProjectsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | )).unmarshall(context)); |
850,625 | public void paint(Graphics g, Component c) {<NEW_LINE><MASK><NEW_LINE>int y = c.getY();<NEW_LINE>int width = c.getWidth();<NEW_LINE>int height = c.getHeight();<NEW_LINE>if (outerBorder != null) {<NEW_LINE>int ac;<NEW_LINE>if (millimeters) {<NEW_LINE>ac = Display.getInstance().convertToPixels(thickness);<NEW_LINE>} else... | int x = c.getX(); |
1,463,185 | private void loadNode533() {<NEW_LINE>ServerDiagnosticsSummaryTypeNode node = new ServerDiagnosticsSummaryTypeNode(this.context, Identifiers.ServerDiagnosticsType_ServerDiagnosticsSummary, new QualifiedName(0, "ServerDiagnosticsSummary"), new LocalizedText("en", "ServerDiagnosticsSummary"), LocalizedText.NULL_VALUE, UI... | .expanded(), true)); |
1,320,536 | public com.amazonaws.services.codepipeline.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codepipeline.model.ValidationException validationException = new com.amazonaws.services.codepipeline.model.ValidationException(null);<NEW_LINE>in... | String currentParentElement = context.getCurrentParentElement(); |
799,515 | private static AnomalyDetector buildAnomalyModel(TimeSeries ts, Properties config) {<NEW_LINE>AnomalyDetector ad = null;<NEW_LINE>try {<NEW_LINE>Long period = (long) -1;<NEW_LINE>if (config.getProperty("PERIOD") != null) {<NEW_LINE>period = new Long(config.getProperty("PERIOD"));<NEW_LINE>}<NEW_LINE>if (period == 0) {<... | tsModelClass.getConstructor(Properties.class); |
65,371 | public Source source(String filename) {<NEW_LINE>return sources.computeIfAbsent(filename, f -> {<NEW_LINE>Set<String> skip = Stream.of("target", "bin", "build", "tmp", "temp", "node_modules", "node").<MASK><NEW_LINE>try {<NEW_LINE>List<String> files = Arrays.asList(filename, filename.replace(".", File.separator) + ".ja... | collect(Collectors.toSet()); |
1,722,481 | public static void main(String[] args) throws Exception {<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>// Set rate limit to 1000 bytes per second (since parallelism is set to 2,<NEW_LINE>builder.setSpout("word", new TestWordSpout(), 2).// each instance is rate limited as 500 bps).<NEW_LINE>addConf... | conf, builder.createTopology()); |
1,834,201 | public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod methodNode = parent.makeChild(SubordTableLookupStrategyFactoryQuadTree.EPTYPE, this.getClass(), classScope);<NEW_LINE>Function<ExprForge, CodegenExpression> toExpr = forge -> Ex... | this.getClass(), classScope); |
678,322 | private void loadNode426() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_OpenWithMasks_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), Loc... | String xml = sb.toString(); |
757,205 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLOtherOutputSimpleColumn());<NEW_LINE>execs.add(new EPLOtherBatchWindow());<NEW_LINE>execs.add(new EPLOtherBatchWindowJoin());<NEW_LINE>execs.add(new EPLOtherBatchWindowInsertInt... | .add(new EPLOtherBeanEventWildcardThisProperty()); |
300,615 | private void writeNodePosition(XMLStreamWriter xmlWriter, Node node) throws Exception {<NEW_LINE>float x = node.x();<NEW_LINE>if (normalize && x != 0.0) {<NEW_LINE>x = (x - minX) / (maxX - minX);<NEW_LINE>}<NEW_LINE>float y = node.y();<NEW_LINE>if (normalize && y != 0.0) {<NEW_LINE>y = (y - <MASK><NEW_LINE>}<NEW_LINE>f... | minY) / (maxY - minY); |
1,477,285 | protected boolean checkTimeouts() {<NEW_LINE>long now = SystemTime.getCurrentTime();<NEW_LINE>List timed_out = new ArrayList();<NEW_LINE>boolean result;<NEW_LINE>try {<NEW_LINE>requests_mon.enter();<NEW_LINE>result = destroyed;<NEW_LINE>Iterator it = requests.values().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LIN... | (PRUDPPacketHandlerRequestImpl) it.next(); |
1,760,143 | public PluginConfiguration convertFromSObject(SPluginConfiguration input, PluginConfiguration result, DatabaseSession session) throws BimserverDatabaseException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (input instanceof SDeserializerPluginConfiguration) {<NEW_LINE>return convertFromS... | , OldQuery.getDefault())); |
463,345 | public static AsyncServerResponse create(Object o, @Nullable Duration timeout) {<NEW_LINE>Assert.notNull(o, "Argument to async must not be null");<NEW_LINE>if (o instanceof CompletableFuture) {<NEW_LINE>CompletableFuture<ServerResponse> futureResponse = (CompletableFuture<ServerResponse>) o;<NEW_LINE>return new Default... | getAdapter(o.getClass()); |
681,146 | private static ImmutableList<BinaryPredicateCode> makeBinaryPredicates(ClassTree classTree, MethodTree compareMethod, VisitorState state) {<NEW_LINE>Tree comparison = maybeMakeLambdaBody(compareMethod, state);<NEW_LINE>if (comparison == null) {<NEW_LINE>ClassTree enclosing = findStrictlyEnclosing(state, ClassTree.class... | state.getSourceForNode(comparison))); |
1,521,231 | public static // return : result vector<NEW_LINE>ArrayList<VectorElem<Double>> multBlockVector(byte[] block, ArrayList<VectorElem<Double>> vector, int i_block_width) {<NEW_LINE>// buffer to save output<NEW_LINE>double[] out_vals = new double[i_block_width];<NEW_LINE>short i;<NEW_LINE>for (i = 0; i < i_block_width; i++)... | VectorElem<Double>> result_vector = null; |
1,291,957 | public void processSessionEvent(@Nonnull SessionEvent event, @Nonnull XDebugSession session) {<NEW_LINE>myRefresh = event == SessionEvent.SETTINGS_CHANGED;<NEW_LINE>if (event == SessionEvent.BEFORE_RESUME) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>XExecutionStack currentExecutionStack = ((<MASK><NEW_LINE>XStackFrame curre... | XDebugSessionImpl) session).getCurrentExecutionStack(); |
610,268 | private static int hexDecode(String string, int begin, int length, String prefix, String section, String field) {<NEW_LINE>int result = 0;<NEW_LINE>for (int i = begin; i < begin + length; i++) {<NEW_LINE>if (i >= string.length()) {<NEW_LINE>throw new HumanReadableException(".buckconfig: %s:%s: " + "Input ends inside he... | (begin, i + 1)); |
273,482 | public void saveSettings(Screen screen, Settings settings) {<NEW_LINE>checkNotNullArgument(screen);<NEW_LINE>checkNotNullArgument(settings);<NEW_LINE>walkComponents(screen.getWindow(), (component, name) -> {<NEW_LINE>if (component.getId() != null && component instanceof HasSettings) {<NEW_LINE>log.trace("Saving setting... | ) component).saveSettings(e); |
224,266 | private void handleLoginModule(Node node, List<BeanDefinition> list) {<NEW_LINE>BeanDefinitionBuilder lmConfigBuilder = createBeanBuilder(LoginModuleConfig.class);<NEW_LINE>AbstractBeanDefinition beanDefinition = lmConfigBuilder.getBeanDefinition();<NEW_LINE>fillAttributeValues(node, lmConfigBuilder, "class-name", "imp... | lmConfigBuilder.addPropertyValue("className", className); |
524,731 | public ListLaunchProfileMembersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListLaunchProfileMembersResult listLaunchProfileMembersResult = new ListLaunchProfileMembersResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | int originalDepth = context.getCurrentDepth(); |
1,633,929 | private File downloadExportJson(DownloadBean downloadBean) throws IOException {<NEW_LINE>LOGGER.info("Successfully triggered an export operation on the Manager API.");<NEW_LINE>HttpUrl downloadUrl = // ID from DownloadBean is ID path segment<NEW_LINE>HttpUrl.parse(endpoint).newBuilder().addPathSegment("downloads").addP... | File.createTempFile("EnrichPre21Export", ".json"); |
1,054,373 | // ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(businessCategory);<NEW... | (dm).append(destinationIndicator); |
1,498,034 | protected ExceptionCollection scanDependencies(final Engine engine) throws MojoExecutionException {<NEW_LINE>ExceptionCollection exCol = scanArtifacts(getProject(), engine, true);<NEW_LINE>for (MavenProject childProject : getDescendants(this.getProject())) {<NEW_LINE>// TODO consider the following as to whether a child... | getLog().error(msg); |
48,795 | private boolean isPhoneSilenced() {<NEW_LINE>final boolean notificationDnd;<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>final NotificationManager notificationManager = getSystemService(NotificationManager.class);<NEW_LINE>final int filter = notificationManager == null ? NotificationManager.I... | AudioManager) getSystemService(Context.AUDIO_SERVICE); |
744,116 | public static void load(BeanDescriptor<?> desc, EntityBean bean, CachedBeanData cacheBeanData, PersistenceContext context) {<NEW_LINE>EntityBeanIntercept ebi = bean._ebean_getIntercept();<NEW_LINE>// any future lazy loading skips L2 bean cache<NEW_LINE>ebi.setLoadedFromCache(true);<NEW_LINE>BeanProperty idProperty = de... | cacheBeanData, ebi, prop, context); |
456,555 | private void createMRPPegging(String trxName) {<NEW_LINE>if (demands == null || demands.size() == 0 || supplies == null || supplies.size() == 0)<NEW_LINE>return;<NEW_LINE>Iterator<Entry<Integer, BigDecimal>> iteratorDemands = demands.entrySet().iterator();<NEW_LINE>Iterator<Entry<Integer, BigDecimal>> iteratorSupplies ... | > demand = iteratorDemands.next(); |
129,045 | MethodReference generateBeanDefinitionMethod(GenerationContext generationContext, BeanRegistrationsCode beanRegistrationsCode) {<NEW_LINE>BeanRegistrationCodeFragments codeFragments = getCodeFragments(beanRegistrationsCode);<NEW_LINE>Class<?> target = codeFragments.getTarget(this.registeredBean, this.constructorOrFacto... | ).withName(getName()); |
1,151,134 | public static WorkerReportRequest buildWorkerReportRequest(Worker worker) {<NEW_LINE>WorkerReportRequest.Builder builder = WorkerReportRequest.newBuilder();<NEW_LINE>builder.setWorkerAttemptId(worker.getWorkerAttemptIdProto());<NEW_LINE>if (!worker.isWorkerInitFinished()) {<NEW_LINE>return builder.build();<NEW_LINE>}<N... | > props = worker.getMetrics(); |
1,362,468 | private void analyzePartsRecursively(TypeMirror target, Map<String, PartKind> parts, Set<TypeMirror> usedTypes) {<NEW_LINE>String typeName = typeWithoutAnnotations(target.toString());<NEW_LINE>if (typeSupport.isSupported(typeName)) {<NEW_LINE>usedTypes.add(target);<NEW_LINE>if (isRawType(target)) {<NEW_LINE>parts.put(t... | put(rawTypeName, PartKind.OTHER); |
1,675,783 | private void processPrecompiledBinaries() {<NEW_LINE>String[] binaries = OPENCL_BINARIES.toString().split(",");<NEW_LINE>if (binaries.length == 1) {<NEW_LINE>// We try to parse a configuration file<NEW_LINE>binaries = processPrecompiledBinariesFromFile(binaries[0]);<NEW_LINE>} else if ((binaries.length % 2) != 0) {<NEW... | [1].split(":"); |
1,477,027 | // TODO: make the ByteList version public and use it, rather than copying here<NEW_LINE>static int indexOf(byte[] source, int sourceOffset, int sourceCount, byte[] target, int targetOffset, int targetCount, int fromIndex, Encoding enc) {<NEW_LINE>if (fromIndex >= sourceCount)<NEW_LINE>return (targetCount == 0 ? sourceC... | ]; j++, k++) ; |
1,237,266 | public static ItineraryGroupInfo createGroupInfo(OsmandApplication app, MapMarkersGroup group) {<NEW_LINE>ItineraryGroupInfo groupInfo = new ItineraryGroupInfo();<NEW_LINE>groupInfo.name = group.getName();<NEW_LINE>groupInfo.type = group.getType().getTypeName();<NEW_LINE>Set<String> wptCategories = group.getWptCategori... | index = path.indexOf(gpxDir); |
465,240 | public List<Service> listServices(final String layer, final String group) throws IOException {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>List<Object> condition = new ArrayList<>(5);<NEW_LINE>sql.append("select * from "<MASK><NEW_LINE>if (StringUtil.isNotEmpty(layer) || StringUtil.isNotEmpty(group)) {<N... | ).append(ServiceTraffic.INDEX_NAME); |
613,858 | public static LithoView mountComponent(LithoView lithoView, ComponentTree componentTree, int widthSpec, int heightSpec) {<NEW_LINE>final boolean addParent = lithoView.getParent() == null;<NEW_LINE>final ViewGroup parent = new ViewGroup(lithoView.getContext()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onLay... | lithoView.measure(widthSpec, heightSpec); |
1,775,484 | /*<NEW_LINE>* When unit result is about to be accepted, removed back pointers<NEW_LINE>* to compiler structures.<NEW_LINE>*/<NEW_LINE>public void cleanUp() {<NEW_LINE>if (this.types != null) {<NEW_LINE>for (int i = 0, max = this.types.length; i < max; i++) {<NEW_LINE>cleanUp<MASK><NEW_LINE>}<NEW_LINE>for (int i = 0, ma... | (this.types[i]); |
409,230 | private boolean isCandidate(String name, List<Node> refs) {<NEW_LINE>if (!OptimizeCalls.mayBeOptimizableName(compiler, name)) {<NEW_LINE><MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean seenCandidateDefiniton = false;<NEW_LINE>boolean seenUse = false;<NEW_LINE>for (Node n : refs) {<NEW_LINE>// Assume indirect ... | decisionsLog.log("%s\tnot an optimizable name", name); |
1,696,234 | private void downLines(int nLines, boolean select, boolean extendSelection) {<NEW_LINE>Text textNode = getTextNode();<NEW_LINE>Bounds caretBounds = caretPath.getLayoutBounds();<NEW_LINE>// The middle y coordinate of the the line we want to go to.<NEW_LINE>double targetLineMidY = (caretBounds.getMinY() + caretBounds.get... | addAll(textNode.getCaretShape()); |
3,519 | public static OkHttpClient.Builder newBuilder() {<NEW_LINE>Log.d(TAG, "Creating new instance of HTTP client");<NEW_LINE>System.setProperty("http.maxConnections", String.valueOf(MAX_CONNECTIONS));<NEW_LINE>OkHttpClient.Builder builder = new OkHttpClient.Builder();<NEW_LINE>builder.interceptors().add(new BasicAuthorizati... | .add(new UserAgentInterceptor()); |
770,004 | public void handleItemTooltipEvent(ItemTooltipEvent event) {<NEW_LINE>if (shouldBeDisplayed()) {<NEW_LINE>WrappedStack wrappedItemStack = WrappedStack.build(event.getItemStack());<NEW_LINE>EnergyValue energyValue = EnergyValueRegistryProxy.getEnergyValue(wrappedItemStack);<NEW_LINE>if (energyValue != null && (Blacklist... | (Messages.Tooltips.ITEM_BELONGS_TO_NO_ONE)); |
1,283,249 | protected X9ECParameters createParameters() {<NEW_LINE>byte[] S = Hex.decodeStrict("2AA058F73A0E33AB486B0F610410C53A7F132310");<NEW_LINE>ECCurve curve = getCurve();<NEW_LINE>X9ECPoint G = configureBasepoint(curve, "04" + "0303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950F4C0D293CDD711A35B67FB1499... | curve.getCofactor(), S); |
1,431,942 | public Object resolve(Injectee injectee, ServiceHandle<?> root) {<NEW_LINE>Type requiredType = injectee.getRequiredType();<NEW_LINE>boolean isHk2Factory = ReflectionHelper.isSubClassOf(requiredType, Factory.class);<NEW_LINE>Injectee newInjectee;<NEW_LINE>if (isHk2Factory) {<NEW_LINE>newInjectee = getFactoryInjectee(inj... | apply(new CacheKey(newInjectee)); |
1,140,537 | public <T> Mono<Void> singleRequestNoResponse(ClientRequestPayload<T> payload, RpcOptions options) {<NEW_LINE>try {<NEW_LINE>final String name = payload.getRequestRpcMetadata().getName();<NEW_LINE>final long start = System.nanoTime();<NEW_LINE>final InstrumentedClientRequestPayload<T> instrumentedClientRequestPayload =... | .nanoTime() - start)); |
858,668 | public void start() throws Exception {<NEW_LINE>// Kafka setup for the example<NEW_LINE>File dataDir = Testing.Files.createTestingDirectory("cluster");<NEW_LINE>dataDir.deleteOnExit();<NEW_LINE>kafkaCluster = new KafkaCluster().usingDirectory(dataDir).withPorts(2181, 9092).addBrokers(1).<MASK><NEW_LINE>// Deploy the da... | deleteDataPriorToStartup(true).startup(); |
372,691 | public static ListInboundOrdersResponse unmarshall(ListInboundOrdersResponse listInboundOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInboundOrdersResponse.setRequestId(_ctx.stringValue("ListInboundOrdersResponse.RequestId"));<NEW_LINE>listInboundOrdersResponse.setPageSize(_ctx.integerValue("ListInboundOrder... | ("ListInboundOrdersResponse.InboundOrders[" + i + "].ModifiedTime")); |
907,406 | public void binaryAccessRead(@IdParam IIdType theResourceId, @OperationParam(name = "path", min = 1, max = 1) IPrimitiveType<String> thePath, ServletRequestDetails theRequestDetails, HttpServletRequest theServletRequest, HttpServletResponse theServletResponse) throws IOException {<NEW_LINE>String path = validateResourc... | getOutputStream().write(data); |
1,763,985 | public static MWMResponse extractFromIntent(@SuppressWarnings("unused") final Context context, final Intent intent) {<NEW_LINE><MASK><NEW_LINE>// parse point<NEW_LINE>final double lat = intent.getDoubleExtra(Const.EXTRA_MWM_RESPONSE_POINT_LAT, INVALID_LL);<NEW_LINE>final double lon = intent.getDoubleExtra(Const.EXTRA_M... | final MWMResponse response = new MWMResponse(); |
1,456,802 | private static double lengthReductionToStayWithinBounds(Point2D centerPoint, double width, double height, Rectangle2D bounds) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Objects.requireNonNull(centerPoint, "The specified center point of the new rectangle must not be null.");<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Objects.requireNonNu... | ) - bounds.getMaxY()); |
775,761 | public Object unwrapJavaObject(Object object, boolean tryAssociativeArray) {<NEW_LINE>if (object == null)<NEW_LINE>return null;<NEW_LINE>String className = object.getClass().getName();<NEW_LINE>// NOI18N<NEW_LINE>boolean // NOI18N<NEW_LINE>isNativeJS = // NOI18N<NEW_LINE>className.contains(".javascript.") || // NOI18N<... | Level.WARNING, "Error unwrapping JS object", ex); |
790,451 | private void postTouchEvent(TouchState state, int eventType) {<NEW_LINE>Window window = state.getWindow(false, null);<NEW_LINE>View view = window == null ? null : window.getView();<NEW_LINE>if (view != null) {<NEW_LINE>switch(state.getPointCount()) {<NEW_LINE>case 0:<NEW_LINE>postNoPoints(view);<NEW_LINE>break;<NEW_LIN... | , state.getPoint(0)); |
1,518,361 | public Object doQuery(Object[] objs) {<NEW_LINE>try {<NEW_LINE>boolean bCursor = false;<NEW_LINE>if (m_conn.m_bClose)<NEW_LINE>return null;<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf("c") != -1) {<NEW_LINE>bCursor = true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<Integer> partitions <MASK><NEW_LINE>long timeo... | = new ArrayList<Integer>(); |
592,186 | public void enterNeighbor_block_rb_stanza(Neighbor_block_rb_stanzaContext ctx) {<NEW_LINE>_currentBlockNeighborAddressFamilies.clear();<NEW_LINE>_inBlockNeighbor = true;<NEW_LINE>// do no further processing for unsupported address families / containers<NEW_LINE>if (_currentPeerGroup == _dummyPeerGroup) {<NEW_LINE>pushP... | getIpv6PeerGroups().get(ip6); |
1,259,000 | private void extractJars(Set<File> jars) {<NEW_LINE>File jarExpandDir = getJarExpandDir();<NEW_LINE>// We need to clean up to make sure old dependencies don't linger<NEW_LINE>getProject().delete(jarExpandDir);<NEW_LINE>jars.forEach(jar -> {<NEW_LINE>FileTree jarFiles = getProject().zipTree(jar);<NEW_LINE>getProject().c... | spec.include(metaInfPrefix + "/**"); |
1,500,965 | public static DescribeReplicationsResponse unmarshall(DescribeReplicationsResponse describeReplicationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeReplicationsResponse.setRequestId(_ctx.stringValue("DescribeReplicationsResponse.RequestId"));<NEW_LINE>describeReplicationsResponse.setSuccess(_ctx.booleanValue(... | ("DescribeReplicationsResponse.Replications[" + i + "].ProtectedTime")); |
172,798 | public boolean eventOccurred(UISWTViewEvent event) {<NEW_LINE>UISWTView currentView = event.getView();<NEW_LINE>switch(event.getType()) {<NEW_LINE>case UISWTViewEvent.TYPE_CREATE:<NEW_LINE>{<NEW_LINE>SWTSkin skin = SWTSkinFactory.getNonPersistentInstance(getClass().getClassLoader(), skin_folder, skin_file);<NEW_LINE>su... | subview = subviews.get(currentView); |
1,115,995 | public void marshall(Cluster cluster, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cluster == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cluster.getBackupPolicy(), BACKUPPOLICY_BINDING);<NEW_LINE>prot... | cluster.getClusterId(), CLUSTERID_BINDING); |
773,947 | private static String extractHostFromURL(String url) {<NEW_LINE>// see RFC 1738<NEW_LINE>// remove ':' after protocol, e.g. http:<NEW_LINE>String sub = url.substring(url.indexOf(':') + 1);<NEW_LINE>// extract host from Common Internet Scheme Syntax, e.g. http://<NEW_LINE>if (sub.indexOf("//") != -1) {<NEW_LINE>sub = su... | , sub.indexOf('/')); |
563,896 | private void updateValue(String resourceUuid, String resourceType, String newValue, boolean localUpdate) {<NEW_LINE>String originValue = loadConfigValue(resourceUuid);<NEW_LINE>String oldValue = originValue == null ? globalConfig.value() : originValue;<NEW_LINE>if (localUpdate) {<NEW_LINE>globalConfig.getValidators().f... | (), oldValue, newValue)); |
1,519,849 | public void paintDynamic(Graphics g, CircuitState state) {<NEW_LINE>int x = bounds.getX() + 1;<NEW_LINE>int y <MASK><NEW_LINE>int w = bounds.getWidth() - 2;<NEW_LINE>int h = bounds.getHeight() - 2;<NEW_LINE>GraphicsUtil.switchToWidth(g, strokeWidth);<NEW_LINE>if (state == null) {<NEW_LINE>g.setColor(Color.lightGray);<N... | = bounds.getY() + 1; |
1,482,416 | public okhttp3.Call importServiceFromCatalogCall(String serviceKey, APIDTO APIDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = APIDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/import-service";<NEW_LINE>List<Pair> localVarQueryParams = new ... | HashMap<String, Object>(); |
878,119 | public ResultSet executeQuery(String sql) throws SQLException {<NEW_LINE>synchronized (this) {<NEW_LINE>if (isClosed()) {<NEW_LINE>throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_STATEMENT_CLOSED);<NEW_LINE>}<NEW_LINE>if (this.resultSet != null && !this.resultSet.isClosed())<NEW_LINE>this.resultSet.close();<N... | this.connection.getBatchFetch()); |
433,911 | protected BlockWriteRequestContext createRequestContext(alluxio.grpc.WriteRequest msg) throws Exception {<NEW_LINE>long bytesToReserve = FILE_BUFFER_SIZE;<NEW_LINE>if (msg.getCommand().hasSpaceToReserve()) {<NEW_LINE>bytesToReserve = msg.getCommand().getSpaceToReserve();<NEW_LINE>}<NEW_LINE>BlockWriteRequestContext con... | BlockWriteRequest request = context.getRequest(); |
335,562 | private void addSetter(final JCheckBox checkBox, final PropertyCharacteristicSetter setter) {<NEW_LINE>checkBox.addActionListener(e -> {<NEW_LINE>if (getProperty() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (checkBox.isSelected()) {<NEW_LINE>FreshAxiomLocationPreferences preferences = FreshAxiomLocationPreferen... | new RemoveAxiom(ont, ax)); |
1,288,411 | public Map<String, ?> convertUserAuthentication(Authentication authentication) {<NEW_LINE>LinkedHashMap<String, Object> response = new LinkedHashMap<>();<NEW_LINE>UserDO userDo = (UserDO) authentication.getPrincipal();<NEW_LINE>response.put(AuthJwtConstants.<MASK><NEW_LINE>response.put(AuthJwtConstants.JWT_USER_ID_CLAI... | JWT_LOGIN_NAME_CLAIM_KEY, userDo.getLoginName()); |
353,316 | protected int diffWildcard(JCWildcard oldT, JCWildcard newT, int[] bounds) {<NEW_LINE>int localPointer = bounds[0];<NEW_LINE>if (oldT.kind != newT.kind) {<NEW_LINE><MASK><NEW_LINE>printer.print(newT.kind.toString());<NEW_LINE>localPointer = oldT.pos + oldT.kind.toString().length();<NEW_LINE>}<NEW_LINE>JCTree oldBound =... | copyTo(localPointer, oldT.pos); |
1,445,160 | public void start(EtcdEndpoint endpoint, Consumer<ChangeEvent<EtcdEndpoint>> listener) {<NEW_LINE>if (!started.compareAndSet(false, true)) {<NEW_LINE>throw new IllegalStateException("EtcdWatcher cannot be reused for multiple sources");<NEW_LINE>}<NEW_LINE>this.endpoint = endpoint;<NEW_LINE>this.etcdClient = endpoint.ap... | createClient(endpoint.uri()); |
1,652,643 | public boolean visit(IResourceProxy proxy) throws CoreException {<NEW_LINE>if (proxy.getType() == IResource.FOLDER) {<NEW_LINE><MASK><NEW_LINE>if (prefixesOneOf(path, nestedFolders)) {<NEW_LINE>if (equalsOneOf(path, nestedFolders)) {<NEW_LINE>// nested source folder<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>// ... | IPath path = proxy.requestFullPath(); |
616,289 | private DockerClient.BuildParam[] buildParams() throws UnsupportedEncodingException, JsonProcessingException {<NEW_LINE>final List<DockerClient.BuildParam> buildParams = Lists.newArrayList();<NEW_LINE>if (pullOnBuild) {<NEW_LINE>buildParams.add(DockerClient.BuildParam.pullNewerImage());<NEW_LINE>}<NEW_LINE>if (noCache)... | .BuildParam.rm(false)); |
1,314,451 | public void train(ClassificationDataSet dataSet, boolean parallel) {<NEW_LINE>if (dataSet.getNumCategoricalVars() != 0)<NEW_LINE>throw new FailedToFitException("Classifier requires all variables be numerical");<NEW_LINE>int C = dataSet.getClassSize();<NEW_LINE>rocVecs = new ArrayList<>(C);<NEW_LINE>TrainableDistanceMet... | trainIfNeeded(dm, dataSet, parallel); |
211,231 | final DescribeConnectionLoaResult executeDescribeConnectionLoa(DescribeConnectionLoaRequest describeConnectionLoaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConnectionLoaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
515,732 | public List<TextRange> select(final PsiElement e, final CharSequence editorText, final int cursorOffset, final Editor editor) {<NEW_LINE>final VirtualFile file = e.getContainingFile().getVirtualFile();<NEW_LINE>final FileType fileType = file == null ? null : file.getFileType();<NEW_LINE>if (fileType == null)<NEW_LINE>r... | charAt(bodyStart))) bodyStart++; |
1,050,833 | static public IPath browseForModelFile(Composite parent, IPath current) {<NEW_LINE>ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(parent.getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());<NEW_LINE>dialog.setTitle("Model Selection");<NEW_LINE>dialog.setMessage("Select Mode... | IFile) r0).getFullPath(); |
115,912 | protected int reloadReplicationTokenIfExists(ReplicaId localReplicaId, List<RemoteReplicaInfo> remoteReplicaInfos) throws ReplicationException {<NEW_LINE>int tokenReloadFailureCount = 0;<NEW_LINE>List<RemoteReplicaInfo.ReplicaTokenInfo> tokenInfos = persistor.retrieve(localReplicaId.getMountPath());<NEW_LINE>if (tokenI... | setTotalBytesReadFromLocalStore(tokenInfo.getTotalBytesReadFromLocalStore()); |
1,778,628 | private void addQuantity_MoneyNormalized(String theResourceType, Set<ResourceIndexedSearchParamQuantityNormalized> theParams, RuntimeSearchParam theSearchParam, IBase theValue) {<NEW_LINE>Optional<IPrimitiveType<BigDecimal>> valueField = myMoneyValueChild.getAccessor().getFirstValueOrNull(theValue);<NEW_LINE>if (valueF... | .get().getValue(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.