idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
765,512 | // Verify that connections are/are not castable to OracleConnection based on whether enableConnectionCasting=true/false.<NEW_LINE>@Test<NEW_LINE>public void testConnectionCasting() throws Exception {<NEW_LINE>OracleConnection ocon = (OracleConnection) ds_casting.getConnection();<NEW_LINE>try {<NEW_LINE>assertTrue(ocon.... | DATABASE_OK, ocon.pingDatabase()); |
1,454,155 | private void visitSetConstVar(Node node, Node child, boolean needValue) {<NEW_LINE>if (!hasVarsInRegs)<NEW_LINE>Kit.codeBug();<NEW_LINE>int varIndex = fnCurrent.getVarIndex(node);<NEW_LINE>generateExpression(child.getNext(), node);<NEW_LINE>boolean isNumber = (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1);<NEW_LINE>sh... | cfw.addILoad(reg + 1); |
900,410 | public void draw() {<NEW_LINE>boolean checked = parent.parent instanceof Button && ((Button) parent.parent).isOver();<NEW_LINE>boolean wasSet = set;<NEW_LINE>if (!set) {<NEW_LINE>Core.app.post(this::setPreview);<NEW_LINE>set = true;<NEW_LINE>} else if (lastTexture != null && lastTexture.isDisposed()) {<NEW_LINE>set = w... | region = Draw.wrap(background); |
576,678 | final CancelCapacityReservationResult executeCancelCapacityReservation(CancelCapacityReservationRequest cancelCapacityReservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelCapacityReservationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
971,346 | final AssociateServiceQuotaTemplateResult executeAssociateServiceQuotaTemplate(AssociateServiceQuotaTemplateRequest associateServiceQuotaTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateServiceQuotaTemplateRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
436,194 | public void handleEvent(Event event) {<NEW_LINE>String name = existing_removal_templates.get(tag);<NEW_LINE>TrackersUtil tut = TrackersUtil.getInstance();<NEW_LINE>List<List<String>> existing_trackers = tut.getMultiTrackers().get(name);<NEW_LINE>List<List<String>> new_trackers = new ArrayList<>();<NEW_LINE>for (AllTrac... | l = new ArrayList<>(); |
981,939 | protected void initCalculatedAttrsAndOptionsFieldGroup() {<NEW_LINE>recalculationScript.setHeight(themeConstants.get("cuba.gui.AttributeEditor.recalculationGroovyScriptField.height"));<NEW_LINE>recalculationScript.setContextHelpIconClickHandler(e -> showMessageDialog(getMessage("recalculationScript"), getMessage("recal... | new DatasourceValueSource(configurationDs, "dependsOnAttributes")); |
1,250,950 | private void printTheRest() {<NEW_LINE>String sumToFloat = image.getNumBits() == 64 ? "(float)" : "";<NEW_LINE>out.print("\t@Override\n" + "\tpublic void setImage(" + image.getInterleavedName() + " image) {\n" + "\t\tsuper.setImage(image);\n" + "\t\tint N = image.getImageType().getNumBands();\n" + "\t\tif( pixel.length... | "();\n" + "\t\tout.setBorder(border);\n" + "\t\treturn out;\n" + "\t}\n"); |
261,969 | private void demoIndexByTableWithElementsAsMapOfEntries(Connection conn) throws SQLException {<NEW_LINE>// Initialize the map. The indices of Associative Array can be sparse and negative.<NEW_LINE>final Map<Integer, String> map = new HashMap<>();<NEW_LINE>map.put(-10, "str1");<NEW_LINE>map.put(20, "str2");<NEW_LINE>map... | .put(-20, null); |
1,515,317 | final DeleteAppResult executeDeleteApp(DeleteAppRequest deleteAppRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | invoke(request, responseHandler, executionContext); |
1,250,568 | public boolean shouldRun() {<NEW_LINE>total = 0;<NEW_LINE>badDataCount.clear();<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>List<Map<String, String>> result;<NEW_LINE>Logger.debug(MaintenanceUtil.class, "Task 20: Checking for orphan entries");<NEW_LINE>for (String asset : assetNames) {<NEW_LINE>Inode.Type asset... | ).get("count"))); |
1,845,257 | protected WebContainer addingWebContainerCallback(ServiceReference webContainerServiceReference) {<NEW_LINE>WebContainer service = (WebContainer) bundleContext.getService(webContainerServiceReference);<NEW_LINE>if (httpContext == null) {<NEW_LINE>httpContext = service.createDefaultHttpContext();<NEW_LINE>}<NEW_LINE>add... | "does-not-matter", null, null, httpContext); |
467,870 | private void primaryKeyColumns(Connection conn, Table table, ProgressMeasure progress) {<NEW_LINE>requireNonNulls(conn, table, progress);<NEW_LINE>final SqlSupplier<ResultSet> supplier = () -> conn.getMetaData().getPrimaryKeys(null, null, table.getId());<NEW_LINE>final TableChildMutator<PrimaryKeyColumn> mutator = (pkc... | columnName = rs.getString(COLUMN_NAME); |
1,345,524 | public void testStartingAStartedServer() {<NEW_LINE>warmStartServer();<NEW_LINE>verifyServerEvent("\"STARTING\" ServerEvent should have fired", startingEventOccurred);<NEW_LINE>verifyServerEvent("\"STARTED\" ServerEvent should have fired", startedEventOccurred);<NEW_LINE>// Start the started server<NEW_LINE>Future<Resu... | "Starting a started server should not be successful", result.successful()); |
141,116 | public static TaskProvider<Test> addTestSourceSet(Project project, String sourceSetName) {<NEW_LINE>project.getPluginManager(<MASK><NEW_LINE>// create our test source set and task<NEW_LINE>SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);<NEW_LINE>SourceSet testSourceSet = sou... | ).apply(JavaPlugin.class); |
865,197 | private void initialize() {<NEW_LINE>this.setLayout(new GridBagLayout());<NEW_LINE>this.add(new JLabel(HOSTNAME_LABEL), LayoutHelper.getGBC(0, 0, 1, 0.0d));<NEW_LINE>this.hostnameField = new ZapTextField();<NEW_LINE>this.add(this.hostnameField, LayoutHelper.getGBC(1, 0, 1, 1.0d, new Insets(0, 0, 0, 10)));<NEW_LINE>this... | , 0, 1, 0.0d)); |
68,155 | public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {<NEW_LINE>final Type outerClass = Type.getType(fd.entityLinkMutator.getDeclaringClass());<NEW_LINE>final String originalOuter = outerClass.getInternalName();<NEW_LINE>if (desc.contains(originalOuter)) {<NEW_LI... | meta.type.getInternalName()); |
96,892 | public Void visit(ConstructorDeclaration decl, AElement elem) {<NEW_LINE>List<Parameter> params = decl.getParameters();<NEW_LINE>List<AnnotationExpr> rcvrAnnos = decl.getAnnotations();<NEW_LINE>BlockStmt body = decl.getBody();<NEW_LINE>StringBuilder sb = new StringBuilder("<init>(");<NEW_LINE>AClass clazz = (AClass) el... | getType(), field.type); |
333,929 | /*<NEW_LINE>* Ideally, this would not use HTML to make the table, but the other methods tried were far uglier / not useful.<NEW_LINE>*/<NEW_LINE>private JScrollPane createSyscallsHelpPane() {<NEW_LINE>ArrayList<AbstractSyscall> list = SyscallLoader.getSyscallList();<NEW_LINE>String[] columnNames = { "Name", "Number", "... | 4] = syscall.getOutputs(); |
568,610 | public final <B, S> Stream<B> collectLazy(final Lazy<S> initState, final Lambda2<A, S, Tuple2<B, S>> f) {<NEW_LINE>return Transaction.<Stream<B>>run(new Lambda0<Stream<B>>() {<NEW_LINE><NEW_LINE>public Stream<B> apply() {<NEW_LINE>final Stream<A> ea = Stream.this;<NEW_LINE>StreamLoop<S> es <MASK><NEW_LINE>Cell<S> s = e... | = new StreamLoop<S>(); |
1,335,082 | public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>if (args.length == 0) {<NEW_LINE>printHelp(out);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long address = CommandUtils.parsePointer(args[0], J9BuildFlags.env_data64);<NEW_LINE>VoidPointer ptr = V... | Long.toHexString(tokenValue))); |
398,590 | public void recordResponse(RxDocumentServiceRequest request, StoreResult storeResult, GlobalEndpointManager globalEndpointManager) {<NEW_LINE>Objects.requireNonNull(request, "request is required and cannot be null.");<NEW_LINE>Instant responseTime = Instant.now();<NEW_LINE>StoreResponseStatistics storeResponseStatistic... | .requestOperationType = request.getOperationType(); |
886,447 | static BillingEvent parseFromRecord(SchemaAndRecord schemaAndRecord) {<NEW_LINE>checkFieldsNotNull(FIELD_NAMES, schemaAndRecord);<NEW_LINE>GenericRecord record = schemaAndRecord.getRecord();<NEW_LINE>String flags = extractField(record, "flags");<NEW_LINE>double amount = getDiscountedAmount(Double.parseDouble(extractFie... | , "currency"), amount, flags); |
1,401,376 | protected void convertToNode(CC conversionContext, Object unmarshalledNode, String modelId, Document document, Node parentNode) throws DOMException {<NEW_LINE>// To use our existing model, first we need childResults.<NEW_LINE>// We get these using a new Generator object.<NEW_LINE>log.debug(modelId);<NEW_LINE>DocumentFr... | createInstance(conversionContext, document, childResults); |
137,972 | public static ListMcubeNebulaAppsResponse unmarshall(ListMcubeNebulaAppsResponse listMcubeNebulaAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMcubeNebulaAppsResponse.setRequestId(_ctx.stringValue("ListMcubeNebulaAppsResponse.RequestId"));<NEW_LINE>listMcubeNebulaAppsResponse.setResultMessage(_ctx.stringValue("... | (_ctx.stringValue("ListMcubeNebulaAppsResponse.ListMcubeNebulaAppsResult.ResultMsg")); |
1,017,151 | public static Shape createLineRegion(Line2D line, float width) {<NEW_LINE>Args.nullNotPermitted(line, "line");<NEW_LINE>final GeneralPath result = new GeneralPath();<NEW_LINE>final float x1 = (float) line.getX1();<NEW_LINE>final float x2 = (float) line.getX2();<NEW_LINE>final float y1 = (float) line.getY1();<NEW_LINE>f... | Math.cos(theta) * width; |
113,906 | public static void main(String[] args) throws IOException {<NEW_LINE>SentimentClassifier experiment = new SentimentClassifier();<NEW_LINE>morphology = TurkishMorphology.builder().setLexicon(RootLexicon.getDefault()).build();<NEW_LINE>Path dataRoot = Paths.get("/home/aaa/zemberek-data");<NEW_LINE>normalizer = new Turkis... | testRawLines = TextIO.loadLines(testRaw); |
550,778 | public BalloonHandler notifyByBalloon(MessageType type, String htmlBody, @Nullable Image icon, @Nullable HyperlinkListener listener) {<NEW_LINE>final Balloon balloon = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(htmlBody.replace("\n", "<br>"), icon != null ? icon : type.getDefaultIcon(), type.getPopupBack... | comp.getHeight() - offset); |
946,121 | private void parseGroupByTimeClause(IoTDBSqlParser.GroupByTimeClauseContext ctx) {<NEW_LINE>GroupByTimeComponent groupByTimeComponent = new GroupByTimeComponent();<NEW_LINE>// parse time range<NEW_LINE>parseTimeRange(ctx.timeRange(), groupByTimeComponent);<NEW_LINE>groupByTimeComponent.setLeftCRightO(ctx.timeRange().LS... | ) queryStatement).setGroupByLevelComponent(groupByLevelComponent); |
1,582,599 | final UpdateActionTargetResult executeUpdateActionTarget(UpdateActionTargetRequest updateActionTargetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateActionTargetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,670,597 | // Visitor methods<NEW_LINE>@Override<NEW_LINE>public void visit(BLangPackage pkgNode) {<NEW_LINE>if (pkgNode.completedPhases.contains(CompilerPhase.DEFINE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create PackageSymbol<NEW_LINE>BPackageSymbol pkgSymbol;<NEW_LINE>if (Symbols.isFlagOn(Flags.asMask(pkgNode.flagSet), Fla... | importedPackages.add(pkgNode.packageID); |
1,683,940 | private CharSequence generateCompositeDisplay(final List<Token> tokens) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>appendToString(sb, TWO_INDENT);<NEW_LINE>sb.append('\n');<NEW_LINE><MASK><NEW_LINE>append(sb, TWO_INDENT, "{");<NEW_LINE>append(sb, TWO_INDENT, " if (_buffer == null)");<NEW_LINE>... | append(sb, TWO_INDENT, "internal void BuildString(StringBuilder builder)"); |
506,471 | public static boolean openWebBrowser(final AppCompatActivity activity, final Uri uri, final boolean fromExternalIntent) {<NEW_LINE>if (!fromExternalIntent) {<NEW_LINE>try {<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_VIEW);<NEW_LINE>intent.setData(uri);<NEW_LINE>activity.startActivity(intent);<NEW_LINE>retu... | targetIntents = new ArrayList<>(); |
872,980 | final ProvisionIpamPoolCidrResult executeProvisionIpamPoolCidr(ProvisionIpamPoolCidrRequest provisionIpamPoolCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(provisionIpamPoolCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
197,641 | void computeCurrentVelocity(int units, float maxVelocity) {<NEW_LINE>final float[] pastX = mPastX;<NEW_LINE>final float[] pastY = mPastY;<NEW_LINE>final long[] pastTime = mPastTime;<NEW_LINE>final float oldestX = pastX[0];<NEW_LINE>final float oldestY = pastY[0];<NEW_LINE>final long oldestTime = pastTime[0];<NEW_LINE>f... | Math.min(accumX, maxVelocity); |
637,650 | // ///////////////////////////////////////////////////////////<NEW_LINE>// Initialization<NEW_LINE>@Override<NEW_LINE>public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException {<NEW_LINE><MASK><NEW_LINE>updateResultSetOrientation();<NEW_LINE>SQLScriptContext parentContext = null;<NEW_LINE>{<... | super.init(site, editorInput); |
576,252 | public String decodePredictions(INDArray predictions) {<NEW_LINE>Preconditions.checkState(predictions.size(1) == predictionLabels.size(), "Invalid input array:" + " expected array with size(1) equal to numLabels (%s), got array with shape %s", predictionLabels.size(), predictions.shape());<NEW_LINE>String predictionDes... | ] top5Prob = new float[5]; |
344,443 | public void start(final boolean exitOnOSGiShutDown) throws InstantiationException, IllegalAccessException, ClassNotFoundException, BundleException, IOException, InterruptedException {<NEW_LINE>printBanner();<NEW_LINE>logger.info("----------------- Initialising and Starting the OSGi Framework -----------------");<NEW_LI... | BundleContext context = framework.getBundleContext(); |
817,781 | private void startRequests(SellerTrade trade) {<NEW_LINE>XmrTxProofRequestsPerTrade service = new XmrTxProofRequestsPerTrade(socks5ProxyProvider, trade, autoConfirmSettings, mediationManager, filterManager, refundManager);<NEW_LINE>servicesByTradeId.put(<MASK><NEW_LINE>service.requestFromAllServices(assetTxProofResult ... | trade.getId(), service); |
1,558,494 | static byte[] subBytes(byte[] s) {<NEW_LINE>byte[] out = new byte[s.length];<NEW_LINE>out[0] = sBox(s[0]);<NEW_LINE>out[1] = sBox(s[1]);<NEW_LINE>out[2] = sBox(s[2]);<NEW_LINE>out[3] = sBox(s[3]);<NEW_LINE>out[4] <MASK><NEW_LINE>out[5] = sBox(s[5]);<NEW_LINE>out[6] = sBox(s[6]);<NEW_LINE>out[7] = sBox(s[7]);<NEW_LINE>o... | = sBox(s[4]); |
292,083 | private // }<NEW_LINE>List<Object> processOpenDopeRepeat(Object sdt, Map<String, CustomXmlPart> customXmlDataStorageParts) {<NEW_LINE>Tag tag = getSdtPr(sdt).getTag();<NEW_LINE>HashMap<String, String> map = QueryString.parseQueryString(tag.getVal(), true);<NEW_LINE>String <MASK><NEW_LINE>// Check, whether we are in an ... | repeatId = map.get(BINDING_ROLE_REPEAT); |
1,325,196 | public static void hystrixPrepareInvoked(Object hystrixCommand) {<NEW_LINE>TraceContext ctx = TraceContextManager.getContext(true);<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>if (TransferMap.get(System.identityHashCode(hystrixCommand)) != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> clazz = hystrixCom... | getCommandGroup = REFLECT_METHODS.get(getCommandGroupHashKey); |
607,079 | private void updatePartPruneSteps(Map<String, PartitionPruneStep> allPartPruneStepMap) {<NEW_LINE>List<String> logTbNameList = tableScan.getTableNames();<NEW_LINE>List<PartitionPruneStep> allPartPruneSteps = new ArrayList<>();<NEW_LINE>for (int i = 0; i < logTbNameList.size(); i++) {<NEW_LINE>String tbName = logTbNameL... | getSchemaName(), tbName, ec); |
746,732 | DependencyLockingProvider createDependencyLockingProvider(FileResolver fileResolver, StartParameter startParameter, DomainObjectContext context, GlobalDependencyResolutionRules globalDependencyResolutionRules, ListenerManager listenerManager, PropertyFactory propertyFactory, FilePropertyFactory filePropertyFactory) {<N... | .getBroadcaster(FileResourceListener.class)); |
290,666 | private void tryToCreateInstances(Properties properties, Set<Class<?>> allInjectableTypes, Map<Class<?>, Object> instanceMap, Set<Injectable<?>> injectablesLeft) throws InstantiationException {<NEW_LINE>int injectablesLeftSize = injectablesLeft.size();<NEW_LINE>final Iterator<Injectable<?>> it = injectablesLeft.iterato... | > clazz = injectable.get(); |
102,118 | public long refreshRecursively(File dir, long lastTimeStamp, List<? super File> children) {<NEW_LINE>for (Iterator<BaseAnnotationProvider> it = annotationProviders.iterator(); it.hasNext(); ) {<NEW_LINE>BaseAnnotationProvider provider = it.next();<NEW_LINE>final InterceptionListener iListener = (provider != null) ? pro... | .size() : "When returning -1 from refreshRecursively, you cannot modify children: " + pe; |
1,218,498 | // End of variables declaration//GEN-END:variables<NEW_LINE>private void postInitComponents() {<NEW_LINE>Containers.initNotify();<NEW_LINE>updateTable = createTabForModel(new UpdateTableModel(units));<NEW_LINE>availableTable = createTabForModel(new AvailableTableModel(units));<NEW_LINE>final LocalDownloadSupport localD... | INDEX_OF_SETTINGS_TAB, tab.getDisplayName()); |
1,072,951 | private static void logSettingsDirectoryInformation(ProxyFile settingsFile) {<NEW_LINE>ProxyFile parent = settingsFile.getParentFile();<NEW_LINE>Log.i(LOG_TAG, "directory info for directory/file " + settingsFile + " with stacktrace ", new Exception());<NEW_LINE>ProxyFile ancestorDir = parent;<NEW_LINE>while (ancestorDi... | LOG_TAG, "ancestor directory " + ancestorDir + " exists"); |
373,551 | public // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void initWithData(Offer offer) {<NEW_LINE>model.initWithData(offer);<NEW_LINE>if (model.dataModel.isSellOffer()) {<NEW_LINE>actionButton.setId("buy-button-big");<NEW_LINE>actionButton.updateText(Res.get("takeOff... | priceTextField.setText(model.price); |
1,573,867 | private static RefactorWorkspaceEdit moveInstanceMethod(CodeActionParams params, LspVariableBinding destination, IProgressMonitor monitor) {<NEW_LINE>final ICompilationUnit unit = JDTUtils.resolveCompilationUnit(params.getTextDocument().getUri());<NEW_LINE>if (unit == null) {<NEW_LINE>return new RefactorWorkspaceEdit("... | getTextDocument().getUri()); |
1,232,070 | protected Face[] quadToTriangle(Face f) {<NEW_LINE>assert f.verticies.length == 4;<NEW_LINE>Face[] t = new Face[] { new Face(), new Face() };<NEW_LINE>t[0].verticies = new Vertex[3];<NEW_LINE>t[1].verticies = new Vertex[3];<NEW_LINE>Vertex v0 = f.verticies[0];<NEW_LINE>Vertex v1 = f.verticies[1];<NEW_LINE>Vertex v2 = f... | ].verticies[0] = v0; |
1,379,633 | public void startElement(String namespaceUri, String localName, String qName, Attributes attributes) throws SAXException {<NEW_LINE>if ("import-control".equals(qName)) {<NEW_LINE>final String pkg = safeGet(attributes, PKG_ATTRIBUTE_NAME);<NEW_LINE>final MismatchStrategy strategyOnMismatch = getStrategyForImportControl(... | parentImportControl, name, regex, strategyOnMismatch); |
45,775 | private void writeTaskProperties(TransformerHandler handler, CustomPropertyManager customPropertyManager) throws SAXException {<NEW_LINE>writeTaskProperty(handler, "tpd0", "type", "default", "icon");<NEW_LINE>writeTaskProperty(handler, "tpd1", "priority", "default", "icon");<NEW_LINE>writeTaskProperty(handler, "tpd2", ... | Object defVal = cc.getDefaultValue(); |
1,294,083 | public void ejbTimeout(Timer t) {<NEW_LINE>svLogger.info("--> Entered SLTimedObjectBean.ejbTimeout()");<NEW_LINE>try {<NEW_LINE>svLogger.info("--> Timer t = " + t);<NEW_LINE>String infoKey = (String) t.getInfo();<NEW_LINE>svLogger.info("--> infoKey = " + infoKey);<NEW_LINE>TimerData td = TimerData.svIntEventMap.get(inf... | info("--> svIntEventMap = " + TimerData.svIntEventMap); |
1,165,485 | private boolean storeField(final FieldNode field, final PropertyExpression expressionToStoreOn, final ClassNode receiver, final ClassCodeVisitorSupport visitor, final String delegationData, final boolean lhsOfAssignment) {<NEW_LINE>if (visitor != null)<NEW_LINE>visitor.visitField(field);<NEW_LINE>checkOrMarkPrivateAcce... | expressionToStoreOn.putNodeMetaData(IMPLICIT_RECEIVER, delegationData); |
921,173 | private ElementName storeElement(final String elementName) {<NEW_LINE>int index = binarySearch(this.templateMode.isCaseSensitive(), this.repositoryNames, elementName);<NEW_LINE>if (index >= 0) {<NEW_LINE>// It was already added while we were waiting for the lock!<NEW_LINE>return this.repository.get(index);<NEW_LINE>}<N... | String[] completeElementNames = name.completeElementNames; |
943,839 | public synchronized void startScanning() {<NEW_LINE>ClientLog.d(LOG_TAG, "ScanManager::startScanning");<NEW_LINE>if (!isStopped()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>broadcastScanState(ScannerState.STARTED);<NEW_LINE>if (mLocationChangeSensor == null) {<NEW_LINE>mLocationChangeSensor = new LocationChangeSensor(mApp... | = new BatteryCheckReceiver(mAppContext, mBatteryCheckCallback); |
1,037,272 | public static void batchIncrementForCompleteStatusWithRetry(BatchedJobConfig config, FileSystem fileSystem, RetryPolicy retryPolicy) {<NEW_LINE>String jobType = config.getJobType();<NEW_LINE>// count of files<NEW_LINE>long count = config.getJobConfigs().size();<NEW_LINE>switch(jobType) {<NEW_LINE>case LoadConfig.NAME:<... | getFileSize(filePath, fileSystem, retryPolicy); |
105,192 | private JSDynamicObject createIntlObject() {<NEW_LINE>JSObject intlObject = JSIntl.create(this);<NEW_LINE>JSFunctionObject collatorFn = getCollatorConstructor();<NEW_LINE>JSFunctionObject numberFormatFn = getNumberFormatConstructor();<NEW_LINE>JSFunctionObject dateTimeFormatFn = getDateTimeFormatConstructor();<NEW_LINE... | pluralRulesFn, JSAttributes.getDefaultNotEnumerable()); |
1,251,722 | public Request<DescribeDominantLanguageDetectionJobRequest> marshall(DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest) {<NEW_LINE>if (describeDominantLanguageDetectionJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeDomina... | String jobId = describeDominantLanguageDetectionJobRequest.getJobId(); |
915,916 | void createOAuth2LoginFilter(BeanReference sessionStrategy, BeanReference authManager, BeanReference authenticationFilterSecurityContextRepositoryRef) {<NEW_LINE>Element oauth2LoginElt = DomUtils.getChildElementByTagName(this.httpElt, Elements.OAUTH2_LOGIN);<NEW_LINE>if (oauth2LoginElt == null) {<NEW_LINE>return;<NEW_L... | .oauth2LoginLinks = parser.getOAuth2LoginLinks(); |
1,130,494 | public static ExecutionPlanDescription.ProfilerStatistics fromMapValue(MapValue mapValue) {<NEW_LINE>long dbHits = 0, rows = 0, pageCacheHits = 0, pageCacheMisses = 0, time = 0;<NEW_LINE>double pageCacheRatio = 0;<NEW_LINE>if (mapValue.containsKey("dbHits")) {<NEW_LINE>dbHits = ((LongValue) mapValue.get("dbHits")).valu... | ("pageCacheRatio")).value(); |
881,889 | public PluginBundle loadFromPluginDir(PluginBundleVersionIdentifier pluginBundleVersionIdentifier, SPluginBundleVersion pluginBundleVersion, List<SPluginInformation> plugins, boolean strictDependencyChecking) throws Exception {<NEW_LINE>Path target = pluginsDir.resolve(pluginBundleVersionIdentifier.getFileName());<NEW_... | model = mavenreader.read(inputStream); |
1,306,501 | private void readElement(XMLStreamReader reader, EntryType et, LooseArchive la) {<NEW_LINE>int attributes = reader.getAttributeCount();<NEW_LINE>String target = null;<NEW_LINE>String source = null;<NEW_LINE>String excludes = null;<NEW_LINE>for (int i = 0; i < attributes && (target == null || source == null || excludes ... | name = reader.getAttributeLocalName(i); |
1,085,094 | private void sendTextToSpeech() {<NEW_LINE>// we lock new TTS until we have dispatched everything<NEW_LINE>Lock lock = Objects.requireNonNull(locks.computeIfAbsent(TimerType.TTS, <MASK><NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>Iterator<TextToSpeech> iterator = textToSpeeches.values().iterator();<NEW_LINE>while (it... | k -> new ReentrantLock())); |
1,758,254 | public IRubyObject op_cmp(ThreadContext context, IRubyObject other) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>switch(other.getMetaClass().getClassIndex()) {<NEW_LINE>case INTEGER:<NEW_LINE>if (Double.isInfinite(value)) {<NEW_LINE>return value > 0.0 ? RubyFixnum.one(runtime) : RubyFixnum.minus_one(runtim... | RubyNumeric) other).getDoubleValue(); |
432,407 | protected void okPressed() {<NEW_LINE>// Set props<NEW_LINE>driver.setName(driverNameText.getText());<NEW_LINE>driver.setDescription(CommonUtils.notEmpty(driverDescText.getText()));<NEW_LINE>driver.setDriverClassName(driverClassText.getText());<NEW_LINE>driver.setSampleURL(driverURLText.getText());<NEW_LINE>driver.setD... | .getRegistry().saveDrivers(); |
74,398 | private static void buildUIList(CommandLine commands) {<NEW_LINE>if (UIConst.UIS == null) {<NEW_LINE>UIConst.UIS = new LinkedHashMap<>();<NEW_LINE>}<NEW_LINE>if (commands == null) {<NEW_LINE>UIConst.UIS.put(DEFAULT_UI, UserInterfaceFactory.getUI(DEFAULT_UI));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (commands.hasOption(... | String uin = stok.nextToken(); |
1,139,920 | public DeleteLinkResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteLinkResult deleteLinkResult = new DeleteLinkResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT... | String currentParentElement = context.getCurrentParentElement(); |
186,439 | private okhttp3.Call addAPIClientCertificateValidateBeforeCall(String apiId, File certificate, String alias, String tier, final ApiCallback _callback) throws ApiException {<NEW_LINE>// verify the required parameter 'apiId' is set<NEW_LINE>if (apiId == null) {<NEW_LINE>throw new ApiException("Missing the required parame... | certificate, alias, tier, _callback); |
184,289 | public ApiResponse<Long> backupGetBackupSizeWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling backupGetBackupSize")... | ] localVarAccepts = { "application/json", "text/json" }; |
373,523 | private boolean isMatch(String str, int i, String pattern, int j, Map<Character, String> map, Set<String> set) {<NEW_LINE>// base case<NEW_LINE>if (i == str.length() && j == pattern.length()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (i == str.length() || j == pattern.length()) {<NEW_LINE>return false;<NEW_LINE>}<... | map.put(c, p); |
549,364 | public void handleMessage(Message outMessage) throws Fault {<NEW_LINE>ClientProviderFactory pf = ClientProviderFactory.getInstance(outMessage);<NEW_LINE>if (pf == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Liberty change start<NEW_LINE>// create an empty proxy output stream that the filter can interact with<NEW_LI... | ).get(Response.class); |
1,093,570 | public void exportAllScreenshots(PageDump pageDump, Browser browser, File reportFolder) throws IOException {<NEW_LINE>File screenshotOriginalFile = browser.getPage().getScreenshotFile();<NEW_LINE>FileUtils.copyFile(screenshotOriginalFile, new File(reportFolder.getAbsolutePath() + File.separator + "page.png"));<NEW_LINE... | ] area = element.getArea(); |
811,653 | public void serviceRemoved(ServiceEvent serviceEvent) {<NEW_LINE>for (MDNSDiscoveryParticipant participant : participants) {<NEW_LINE>if (participant.getServiceType().equals(serviceEvent.getType())) {<NEW_LINE>try {<NEW_LINE>ThingUID thingUID = participant.getThingUID(serviceEvent.getInfo());<NEW_LINE>if (thingUID != n... | getThingUID(serviceEvent.getInfo()); |
1,130,627 | public static int wrapPosition(@NonNull AdapterPath path, @Nullable RecyclerView.Adapter originAdapter, @Nullable RecyclerView.Adapter targetAdapter, int position) {<NEW_LINE>final List<AdapterPathSegment> segments = path.segments();<NEW_LINE>final int nSegments = segments.size();<NEW_LINE>int originSegmentIndex = (ori... | path, originSegmentIndex, targetSegmentIndex, position); |
631,376 | private Row[] generateRows(List<Object[]> batchCache, int size) {<NEW_LINE>Row[] rows = new Row[size];<NEW_LINE>Map<String, Object[]> inNameToObjs = new HashMap<>(inRowFieldNames.length);<NEW_LINE>for (int i = 0; i < inRowFieldNames.length; i++) {<NEW_LINE>inNameToObjs.put(inRowFieldNames[i], extractCols(batchCache, i,... | .get(inRowFieldNames[i]); |
549,798 | public void onDraw(Canvas canvas, RotatedTileBox tb, DrawSettings settings) {<NEW_LINE>if (isDrawingEnabled()) {<NEW_LINE>lineAttrs.updatePaints(view.getApplication(), settings, tb);<NEW_LINE>if (!editingCtx.isInApproximationMode()) {<NEW_LINE>drawBeforeAfterPath(canvas, tb);<NEW_LINE>}<NEW_LINE>if (editingCtx.getSelec... | , centerLatLon.getLongitude())); |
1,288,159 | public void initialize(String rootDirName) throws RuntimeException, IOException {<NEW_LINE>String jFluidNativeLibFullName = Platform.getAgentNativeLibFullName(rootDirName<MASK><NEW_LINE>// NOI18N<NEW_LINE>String jFluidNativeLibDirName = jFluidNativeLibFullName.substring(0, jFluidNativeLibFullName.lastIndexOf('/'));<NEW... | , false, null, -1); |
212,214 | protected static GenericsType fullyResolve(GenericsType gt, Map<GenericsTypeName, GenericsType> placeholders) {<NEW_LINE>GenericsType fromMap = placeholders.get(new GenericsTypeName(gt.getName()));<NEW_LINE>if (gt.isPlaceholder() && fromMap != null) {<NEW_LINE>gt = fromMap;<NEW_LINE>}<NEW_LINE>ClassNode type = fullyRes... | ] upperBounds = gt.getUpperBounds(); |
1,535,542 | public final // ) formula ;<NEW_LINE>ConditionParser.condition_return condition() throws RecognitionException {<NEW_LINE>final ConditionParser.condition_return retval = new ConditionParser.condition_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_LINE>Token set10 = null;<NEW_LINE>Condi... | root_0, formula9.getTree()); |
693,621 | public static ListProjectRolesResponse unmarshall(ListProjectRolesResponse listProjectRolesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProjectRolesResponse.setRequestId(_ctx.stringValue("ListProjectRolesResponse.RequestId"));<NEW_LINE>List<Role> projectRoleList = new ArrayList<Role>();<NEW_LINE>for (int i = 0; i... | ("ListProjectRolesResponse.ProjectRoleList[" + i + "].ProjectRoleCode")); |
1,215,148 | final GetBlockPublicAccessConfigurationResult executeGetBlockPublicAccessConfiguration(GetBlockPublicAccessConfigurationRequest getBlockPublicAccessConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBlockPublicAccessConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,609,732 | public Mono<Response<Flux<ByteBuffer>>> whatIfAtManagementGroupScopeWithResponseAsync(String groupId, String deploymentName, ScopedDeploymentWhatIf parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and... | error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null.")); |
1,426,421 | // Show databases statement<NEW_LINE>private void handleShowDb() throws AnalysisException {<NEW_LINE>ShowDbStmt showDbStmt = (ShowDbStmt) stmt;<NEW_LINE>List<List<String>> rows = Lists.newArrayList();<NEW_LINE>List<String> dbNames = ctx.getCatalog().getClusterDbNames(ctx.getClusterName());<NEW_LINE>PatternMatcher match... | > dbNameSet = Sets.newTreeSet(); |
1,671,032 | public void configure(Parameterization config) {<NEW_LINE>//<NEW_LINE>//<NEW_LINE>new IntParameter(KCOMP_ID).//<NEW_LINE>addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT).grab(<MASK><NEW_LINE>//<NEW_LINE>new ObjectParameter<Distance<O>>(COMPARISON_DISTANCE_FUNCTION_ID, Distance.class, EuclideanDistance.class).grab... | config, x -> kcomp = x); |
394,222 | public void load(final String name, final OType[] keyTypes, final boolean nullKeyIsSupported, final OEncryption encryption, final OHashFunction<K> keyHashFunction, final OBinarySerializer<K> keySerializer, final OBinarySerializer<V> valueSerializer) {<NEW_LINE>acquireExclusiveLock();<NEW_LINE>try {<NEW_LINE>this.keyHas... | openFile(atomicOperation, name + metadataConfigurationFileExtension); |
1,836,572 | public OtaPackage saveOtaPackage(OtaPackage otaPackage) {<NEW_LINE>log.trace("Executing saveOtaPackage [{}]", otaPackage);<NEW_LINE>otaPackageValidator.<MASK><NEW_LINE>try {<NEW_LINE>OtaPackageId otaPackageId = otaPackage.getId();<NEW_LINE>if (otaPackageId != null) {<NEW_LINE>Cache cache = cacheManager.getCache(OTA_PAC... | validate(otaPackage, OtaPackageInfo::getTenantId); |
933,610 | private Map<ConfigDataResolutionResult, ConfigData> load(ConfigDataLoaderContext loaderContext, List<ConfigDataResolutionResult> candidates) throws IOException {<NEW_LINE>Map<ConfigDataResolutionResult, ConfigData> <MASK><NEW_LINE>for (int i = candidates.size() - 1; i >= 0; i--) {<NEW_LINE>ConfigDataResolutionResult ca... | result = new LinkedHashMap<>(); |
767,149 | public void close() throws IOException {<NEW_LINE>ParallelIndexIOConfig ioConfig = parallelIndexIOConfig();<NEW_LINE>ParallelIndexTuningConfig tuningConfig = tuningConfig();<NEW_LINE>ParallelIndexSupervisorTask indexTask = parallelIndexSupervisorTask(ioConfig, tuningConfig);<NEW_LINE>ObjectMapper mapper = new ObjectMap... | input, 0, input.length); |
673,526 | public boolean process() {<NEW_LINE>int numViews = depths.numRows;<NEW_LINE>int numFeatures = depths.numCols;<NEW_LINE>P.<MASK><NEW_LINE>X.reshape(4, numFeatures);<NEW_LINE>A.reshape(numViews * 3, numFeatures);<NEW_LINE>B.reshape(numViews * 3, numFeatures);<NEW_LINE>// Scale depths so that they are close to unity<NEW_L... | reshape(3 * numViews, 4); |
242,740 | private void validateFixedPartitioningScheme(final ClusterCfg cluster, final ExperimentalCfg experimental) {<NEW_LINE>final var partitioning = experimental.getPartitioning();<NEW_LINE>final var partitions = partitioning.getFixed();<NEW_LINE>final var replicationFactor = cluster.getReplicationFactor();<NEW_LINE>final va... | .size(), members)); |
1,285,370 | public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeLong(fileId);<NEW_LINE>dest.writeLong(parentId);<NEW_LINE>dest.writeLong(fileLength);<NEW_LINE>dest.writeLong(creationTimestamp);<NEW_LINE>dest.writeLong(modificationTimestamp);<NEW_LINE>dest.writeLong(modificationTimestampAtLastSyncForData);<NEW_LI... | .getValue() : -1); |
911,494 | public void validate() throws InvalidPropertyException {<NEW_LINE>PrintStream out = DebugTracer.getPrintStream();<NEW_LINE>boolean good = false;<NEW_LINE>boolean debug = DebugTracer.isDebugActivationSpec();<NEW_LINE>if (debug) {<NEW_LINE>out.println("ActivationAnn6a.validate(): Current contents of Prop1: " + prop1);<NE... | getClass().getName()); |
715,913 | public boolean isSameObject(DatabaseObject object1, DatabaseObject object2, CompareControl.SchemaComparison[] schemaComparisons, Database accordingTo) {<NEW_LINE>if ((object1 == null) && (object2 == null)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ((object1 instanceof Schema) || (object2 instanceof Schema)) {<NEW_... | getClass(), schemaComparisons, accordingTo); |
1,448,199 | public Request<DescribeUserPoolRequest> marshall(DescribeUserPoolRequest describeUserPoolRequest) {<NEW_LINE>if (describeUserPoolRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeUserPoolRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeUserPoolRequest> request = new... | request.addHeader("X-Amz-Target", target); |
186,011 | protected String doIt() throws java.lang.Exception {<NEW_LINE>StringBuffer sql = new StringBuffer(// #1<NEW_LINE>"SELECT * FROM S_TimeExpenseLine el " + // Business Partner && to be invoiced<NEW_LINE>"WHERE el.AD_Client_ID=?" + // not invoiced yet<NEW_LINE>" AND el.C_BPartner_ID>0 AND el.IsInvoiced='Y'" + // processed ... | getS_TimeExpense_ID(), get_TrxName()); |
649,547 | // reorderStep<NEW_LINE>@PUT<NEW_LINE>@Path("/steps/{stepId}")<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response updateStep(@Context final HttpServletRequest request, @Context final HttpServletResponse response, @NotNull @PathPa... | debug(this, "updating step for scheme with stepId: " + stepId); |
1,702,689 | public Object attachVirtualMachine() throws ProcessingException {<NEW_LINE>if (options.getPid() == null && options.getProcessPattern() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Class<?> vmClass = lookupVirtualMachineClass();<NEW_LINE>String pid = null;<NEW_LINE>try {<NEW_LINE>Method method = vmClass.getMetho... | PlatformUtils.getProcessId(this, options); |
1,727,042 | private static ByteBuf encodePubReplyMessage(ChannelHandlerContext ctx, MqttMessage message) {<NEW_LINE>if (message.variableHeader() instanceof MqttPubReplyMessageVariableHeader) {<NEW_LINE>MqttFixedHeader mqttFixedHeader = message.fixedHeader();<NEW_LINE>MqttPubReplyMessageVariableHeader variableHeader = (MqttPubReply... | ), variableHeader.properties()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.