idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,284,641 | protected AnalyzedRelation visitTable(Table<?> node, StatementAnalysisContext context) {<NEW_LINE>QualifiedName tableQualifiedName = node.getName();<NEW_LINE>SearchPath searchPath = context<MASK><NEW_LINE>AnalyzedRelation relation;<NEW_LINE>TableInfo tableInfo;<NEW_LINE>try {<NEW_LINE>tableInfo = schemas.resolveTableIn... | .sessionContext().searchPath(); |
401,098 | public void stopListening(Project project, J2eeModuleProvider j2eeProvider) {<NEW_LINE>synchronized (this) {<NEW_LINE>CompileOnSaveListener removed = compileListeners.remove(j2eeProvider);<NEW_LINE>if (removed == null) {<NEW_LINE>LOGGER.log(Level.FINE, "Not compile-listening on {0}", j2eeProvider);<NEW_LINE>} else {<NE... | copyRemoved = copyListeners.remove(j2eeProvider); |
1,282,241 | public static ListSubAccountResponse unmarshall(ListSubAccountResponse listSubAccountResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSubAccountResponse.setRequestId(_ctx.stringValue("ListSubAccountResponse.RequestId"));<NEW_LINE>listSubAccountResponse.setCode(_ctx.integerValue("ListSubAccountResponse.Code"));<NEW_LI... | ("ListSubAccountResponse.SubAccountList[" + i + "].AdminUserId")); |
972,196 | public DetectStackResourceDriftResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DetectStackResourceDriftResult detectStackResourceDriftResult = new DetectStackResourceDriftResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI... | ().unmarshall(context)); |
1,250,407 | public InferenceResult ask(FOLKnowledgeBase kb, Sentence query) {<NEW_LINE>Literal l = new Literal(((AtomicSentence) query));<NEW_LINE>List<HashMap<Variable, Term>> substitutes = this.folBcAsk(kb, l);<NEW_LINE>this.finalList = substitutes;<NEW_LINE>if (l.getAtomicSentence().getArgs().get(0) instanceof Variable) {<NEW_L... | bcaskHandler.proofs.add(proof); |
298,489 | public static int insertIntoTable(RelNode logicalInsert, SqlInsert sqlInsert, TableMeta tableMeta, String targetGroup, String schemaName, ExecutionContext executionContext, BiFunction<List<RelNode>, ExecutionContext, List<Cursor>> executeFunc, boolean mayInsertDuplicate, boolean mayForGsi) {<NEW_LINE>// shard to get va... | groupNames = HintUtil.allGroup(schemaName); |
1,489,519 | public Path downloadWallet(OCIItem dbInstance, String password, String parentPath) throws FileNotFoundException, IOException {<NEW_LINE>DatabaseClient client = new DatabaseClient(configProvider);<NEW_LINE>GenerateAutonomousDatabaseWalletDetails details = GenerateAutonomousDatabaseWalletDetails.builder().<MASK><NEW_LINE... | password(password).build(); |
1,025,224 | private PlanPhasePriceOverride[] createOverrides(final Plan defaultPlan, final List<CatalogOverridePhaseDefinitionModelDao> phaseDefs, final InternalTenantContext context) {<NEW_LINE>final PlanPhasePriceOverride[] result = new PlanPhasePriceOverride[defaultPlan.getAllPhases().length];<NEW_LINE>for (int i = 0; i < defau... | getUsagePriceOverrides(curPhase, overriddenPhase, context); |
1,526,178 | private void openText() {<NEW_LINE>new MaterialDialog.Builder(mActivity).title(R.string.creating_txt).content(R.string.enter_file_name).input(getString(R.string.example), null, (dialog, input) -> {<NEW_LINE>if (StringUtils.getInstance().isEmpty(input)) {<NEW_LINE>StringUtils.getInstance().showSnackbar(mActivity, R.stri... | openExtractText()).show(); |
819,193 | protected void writeDestructor() {<NEW_LINE>if (entity.methodDestruct != null) {<NEW_LINE>MethodNode destructor = new MethodNodeImpl();<NEW_LINE>destructor.name = "finalize";<NEW_LINE>destructor.access = ACC_PUBLIC;<NEW_LINE>destructor.desc = Type.getMethodDescriptor(Type.getType(void.class));<NEW_LINE>MethodStmtCompil... | addLocalVariable(LocalVariable.THIS, l0); |
883,966 | private void parseFilter(ColumnTableMetaData table, Expression exp, Context ctx) {<NEW_LINE>Object obj = parseFilter(table, exp.getHome(), ctx);<NEW_LINE>Expression unknownFilter = null;<NEW_LINE>if (obj instanceof IFilter) {<NEW_LINE>filters = new IFilter<MASK><NEW_LINE>} else if (obj instanceof ArrayList) {<NEW_LINE>... | [] { (IFilter) obj }; |
1,179,861 | public void newEvent(ClientEvent event) {<NEW_LINE>ClientEvent.ClientEventContext ctx = event.getContext();<NEW_LINE>ClientEvent.EventType eventType = ctx.getEventType();<NEW_LINE>if (!schedulerState.isStarted() || schedulerState.isShuttingDown()) {<NEW_LINE>LOG.debug("Will not act on scheduling event for execution (ta... | getTaskInstanceId().getId()); |
706,308 | public static void translateCxxPlatformFlags(CxxPlatform.Builder cxxPlatformBuilder, CxxPlatform cxxPlatform, ImmutableMap<String, Arg> flagMacros) {<NEW_LINE>Function<Arg, Arg> translateFunction = new CxxFlags.TranslateMacrosArgsFunction(ImmutableSortedMap.copyOf(flagMacros));<NEW_LINE>Function<ImmutableList<Arg>, Imm... | collect(ImmutableList.toImmutableList()); |
1,609,615 | private void commonCtor(String title, String[] items, FragmentActivity activity, final MultipleChoiceDialogListener listener) {<NEW_LINE>ListView mList = new ListView(activity);<NEW_LINE>mList.setAdapter(new ArrayAdapter<String>(activity, android.R<MASK><NEW_LINE>checkList = new boolean[items.length];<NEW_LINE>mList.se... | .layout.simple_list_item_multiple_choice, items)); |
1,290,095 | public void showDialog(final String title, final String message, final String button1Text, final String button2Text, final Callback successCallback, Callback errorCallback) {<NEW_LINE>Activity currentActivity = getCurrentActivity();<NEW_LINE>if (currentActivity == null || currentActivity.isFinishing()) {<NEW_LINE>// If... | button1Text, button2Text, successCallback, currentActivity); |
1,766,480 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.MessageEventListener#messageEventOccurred(int, com.ibm.ws.sib.processor.impl.interfaces.SIMPMessage,<NEW_LINE>* com.ibm.ws.sib.msgstore.Transaction)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void messageEventOccurred(in... | tc, "messageEventOccurred", "SIResourceException " + e); |
72,677 | private static FunctionEvaluator buildFunctionEvaluator(final String rhs, final Map<String, Function> functionsMap) {<NEW_LINE>final FunctionEvaluator functionEvaluator;<NEW_LINE>// "key": "@0" --- evaluate expression then set<NEW_LINE>if (!rhs.startsWith(TemplatrSpecBuilder.FUNCTION)) {<NEW_LINE>return FunctionEvaluat... | functionName = fnArgs.remove(0); |
874,729 | public URI toURI() {<NEW_LINE>validateHostnameCompliant(outpostId, "outpostId", "outpost ARN");<NEW_LINE>validateHostnameCompliant(accountId, "accountId", "outpost ARN");<NEW_LINE>validateHostnameCompliant(accessPointName, "accessPointName", "outpost ARN");<NEW_LINE>String uriString;<NEW_LINE>if (endpointOverride == nu... | accountId, outpostId, region, domain); |
1,590,674 | public com.amazonaws.services.cognitoidp.model.DuplicateProviderException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitoidp.model.DuplicateProviderException duplicateProviderException = new com.amazonaws.services.cognitoidp.model.DuplicateProviderExcept... | JsonToken token = context.getCurrentToken(); |
629,139 | void rfftf(final double[] a, final int offa) {<NEW_LINE>if (n == 1)<NEW_LINE>return;<NEW_LINE>int l1, l2, na, kh, nf, ip, iw, ido, idl1;<NEW_LINE>final int twon = 2 * n;<NEW_LINE>nf = (int) wtable_r[1 + twon];<NEW_LINE>na = 1;<NEW_LINE>l2 = n;<NEW_LINE>iw = twon - 1;<NEW_LINE>for (int k1 = 1; k1 <= nf; ++k1) {<NEW_LINE... | offa, ch, 0, iw); |
957,631 | public static <T> void quickSort(int[] ids, T[] values, int low, int high) {<NEW_LINE>if (low < high) {<NEW_LINE>int mid = (low + high) / 2;<NEW_LINE>int tmp = ids[mid];<NEW_LINE>T tmpValue = values[mid];<NEW_LINE>ids[mid] = ids[low];<NEW_LINE>values[mid] = values[low];<NEW_LINE>ids[low] = tmp;<NEW_LINE>values[low] = t... | [ii] = values[jj]; |
1,708,096 | public void reopen(FileInputSplit split, Long state) throws IOException {<NEW_LINE>Preconditions.checkNotNull(split, "reopen() cannot be called on a null split.");<NEW_LINE><MASK><NEW_LINE>Preconditions.checkArgument(state == -1 || state >= split.getStart(), " Illegal offset " + state + ", smaller than the splits start... | Preconditions.checkNotNull(state, "reopen() cannot be called with a null initial state."); |
1,718,903 | private JField resolveClassLiteralField(JType type) {<NEW_LINE>type = type.isJsNative() || type.isJsFunction() || type.isJsFunctionImplementation() ? program.getJavaScriptObject() : program.normalizeJsoType(type);<NEW_LINE>JField field = classLiteralFields.get(type);<NEW_LINE>if (field == null) {<NEW_LINE>// Create the... | ), true, Disposition.FINAL); |
761,761 | public void onRenderTooltip(RenderTooltipEvent.PostText event) {<NEW_LINE>ItemStack stack = event.getStack();<NEW_LINE>if (stack.getItem() instanceof IBulletContainer) {<NEW_LINE>NonNullList<ItemStack> bullets = ((IBulletContainer) stack.getItem()).getBullets(stack);<NEW_LINE>if (bullets != null) {<NEW_LINE>int bulletA... | collect(Collectors.toList()); |
1,781,481 | public void addRecipes(Consumer<FinishedRecipe> consumer) {<NEW_LINE>String basePath = "energy_cube/";<NEW_LINE>addTieredEnergyCube(consumer, basePath, MekanismBlocks.BASIC_ENERGY_CUBE, MekanismBlocks.STEEL_CASING, Tags.Items.INGOTS_IRON, MekanismTags.Items.ALLOYS_BASIC);<NEW_LINE>addTieredEnergyCube(consumer, basePath... | GEMS_DIAMOND, MekanismTags.Items.ALLOYS_ATOMIC); |
1,180,806 | public void validate(Object object) throws ContractValidateException {<NEW_LINE>TransactionContext context = (TransactionContext) object;<NEW_LINE>if (Objects.isNull(context)) {<NEW_LINE>throw new RuntimeException("TransactionContext is null");<NEW_LINE>}<NEW_LINE>// Load Config<NEW_LINE>ConfigLoader.load(context.getSt... | createRoot(context.getStoreFactory()); |
509,229 | public boolean update(Function<T, Supplier<T>> updaterSupplier) {<NEW_LINE>Ref<T> ref = getWithWait();<NEW_LINE>// check what update is needed<NEW_LINE>Supplier<T> neededUpdate = updaterSupplier.apply(ref.get());<NEW_LINE>// early return: no update was needed<NEW_LINE>if (null == neededUpdate)<NEW_LINE>return false;<NE... | tranRef = new TransitionalRef<>(); |
1,840,055 | final PutCommentReactionResult executePutCommentReaction(PutCommentReactionRequest putCommentReactionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putCommentReactionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,556,886 | public JComponent createComponent() {<NEW_LINE>pathToTranslationRootTextField.addBrowseFolderListener(createBrowseFolderListener(pathToTranslationRootTextField.getTextField(), FileChooserDescriptorFactory.createSingleFolderDescriptor()));<NEW_LINE>pathToTranslationRootTextFieldReset.addMouseListener(createResetPathButt... | (WebDeploymentUtil.isEnabled(project)); |
935,912 | void disconnect(JShellConnection c, boolean remote) {<NEW_LINE>LOG.log(Level.FINE, "Connection closing: {0}, remove = {1}", new Object[] { c, remote });<NEW_LINE>synchronized (this) {<NEW_LINE>if (c == null || !connections.contains(c)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.connections.remove(c);<NEW_LINE>}<NEW_LI... | -> l.connectionClosed(ev)); |
78,050 | static Mono<ReactionAddEvent> messageReactionAdd(DispatchContext<MessageReactionAdd, Void> context) {<NEW_LINE>GatewayDiscordClient gateway = context.getGateway();<NEW_LINE>long userId = Snowflake.asLong(context.getDispatch().userId());<NEW_LINE>long channelId = Snowflake.asLong(context.getDispatch().channelId());<NEW_... | ::asLong).orElse(null); |
1,518,810 | public void execute(ExecutionInfo theExecutionInfo, List<QueryInfo> theQueryInfoList) {<NEW_LINE>final Queue<SqlQuery> queryList = provideQueryList();<NEW_LINE>if (queryList == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (QueryInfo next : theQueryInfoList) {<NEW_LINE>String sql = trim(next.getQuery());<NEW_LINE>Li... | .getParametersList().size(); |
874,894 | private JButton createHeaderPopupCornerButton(final JPopupMenu headerPopup) {<NEW_LINE>final JButton cornerButton = new JButton(Icons.getIcon(GeneralIcons.HIDE_COLUMN));<NEW_LINE>cornerButton.setToolTipText(Bundle.InstancesListControllerUI_ShowHideColumnsString());<NEW_LINE>cornerButton.setDefaultCapable(false);<NEW_LI... | getModel().setArmed(false); |
485,512 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_Container");<NEW_LINE>builder.expression(fields[0], "beans.sumOf(x => intBoxed)");<NEW_LINE>builder.expression<MASK><NEW_LINE>builder.expression(fie... | (fields[1], "beans.sumOf( (x, i) => intBoxed + i*10)"); |
1,146,951 | private void readChild(Spatial parent, JsonElement nodeIndex) throws IOException {<NEW_LINE>Object loaded = readNode(nodeIndex.getAsInt());<NEW_LINE>if (loaded instanceof Spatial) {<NEW_LINE>Spatial spatial = ((Spatial) loaded);<NEW_LINE>((Node<MASK><NEW_LINE>JsonObject nodeElem = nodes.get(nodeIndex.getAsInt()).getAsJ... | ) parent).attachChild(spatial); |
601,558 | private void recordFragments(JProgram jprogram) throws IOException, JSONException {<NEW_LINE>JSONObject jsonPoints = new JSONObject();<NEW_LINE>// adding runAsyncs, if any<NEW_LINE><MASK><NEW_LINE>// a FragmentPartitioningResult' instance exist if and only if there are runAyncs nodes<NEW_LINE>if (partitionResult != nul... | FragmentPartitioningResult partitionResult = jprogram.getFragmentPartitioningResult(); |
434,385 | private Pair<KeyspaceMetadata, UserType> createOrUpdateUserType(KeyspaceMetadata ksm, String typeName, Map<String, CQL3Type.Raw> fields, final Collection<Mutation> mutations, final Collection<Event.SchemaChange> events) {<NEW_LINE>ColumnIdentifier ci = new ColumnIdentifier(typeName, true);<NEW_LINE>Optional<UserType> u... | getValue().prepare(ksmOut); |
292,337 | public Object evaluateWithAttrs(AttrDictionary attrs) {<NEW_LINE>Object leftObject = leftExpression.evaluateWithAttrs(attrs);<NEW_LINE>Object rightObject = rightExpression.evaluateWithAttrs(attrs);<NEW_LINE>if (!(leftObject instanceof Number) || !(rightObject instanceof Number))<NEW_LINE>return null;<NEW_LINE>Number le... | ) * rightNumber.doubleValue()); |
1,518,131 | public void loadAll(Set<? extends K> keys, boolean replaceExistingValues, CompletionListener completionListener) {<NEW_LINE>requireNotClosed();<NEW_LINE>keys.forEach(Objects::requireNonNull);<NEW_LINE>CompletionListener listener = (completionListener == null) ? NullCompletionListener.INSTANCE : completionListener;<NEW_... | orElseThrow().loadAll(keys); |
114,289 | public void LAPACK_dgeevx(String arg0, String arg1, String arg2, String arg3, int[] arg4, double[] arg5, int[] arg6, double[] arg7, double[] arg8, double[] arg9, int[] arg10, double[] arg11, int[] arg12, int[] arg13, int[] arg14, double[] arg15, double[] arg16, double[] arg17, double[] arg18, double[] arg19, int[] arg2... | arg19, arg20, arg21, arg22); |
1,315,750 | final DescribeFleetMetricResult executeDescribeFleetMetric(DescribeFleetMetricRequest describeFleetMetricRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
556,079 | public QueryResult<Rows<K, N, V>> execute() {<NEW_LINE>Assert.notNull(columnFamilyName, "columnFamilyName can't be null");<NEW_LINE>Assert.notNull(keys, "keys can't be null");<NEW_LINE>return new QueryResultImpl<Rows<K, N, V>>(keyspace.doExecute(new KeyspaceOperationCallback<Rows<K, N, V>>() {<NEW_LINE><NEW_LINE>@Overr... | >(thriftRet, columnNameSerializer, valueSerializer); |
1,044,042 | /* ========== decoding ========== */<NEW_LINE>public void decode(BitReader _in, AACDecoderConfig conf, boolean commonWindow) throws AACException {<NEW_LINE>final SampleFrequency sf = conf.getSampleFrequency();<NEW_LINE>if (sf.equals(SampleFrequency.SAMPLE_FREQUENCY_NONE))<NEW_LINE>throw new AACException("invalid sample... | (_in.readNBit(2)); |
1,634,276 | public EPUBVersion retrieveOpfVersion(InputStream inputStream) throws InvalidVersionException {<NEW_LINE>SAXParserFactory factory = SAXParserFactory.newInstance();<NEW_LINE>factory.setNamespaceAware(true);<NEW_LINE>factory.setValidating(false);<NEW_LINE>try {<NEW_LINE>factory.setFeature("http://xml.org/sax/features/val... | throw new InvalidVersionException(InvalidVersionException.UNSUPPORTED_VERSION); |
1,082,775 | final ListServiceQuotaIncreaseRequestsInTemplateResult executeListServiceQuotaIncreaseRequestsInTemplate(ListServiceQuotaIncreaseRequestsInTemplateRequest listServiceQuotaIncreaseRequestsInTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceQuotaIncreaseRequestsInTemplateRe... | false), new ListServiceQuotaIncreaseRequestsInTemplateResultJsonUnmarshaller()); |
763,251 | private void handleFace(HttpServletResponse response, String uri) throws IOException, ServletException {<NEW_LINE>String[] suri = uri.split("[/\\.]");<NEW_LINE>if (suri.length < 3) {<NEW_LINE>// 3 parts : face ID, player name, png<NEW_LINE>response.sendError(HttpStatus.NOT_FOUND_404);<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | (suri[1], ft); |
193,203 | private void initialise() {<NEW_LINE>if (getBean() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> beanClass = getBean().getClass();<NEW_LINE>try {<NEW_LINE>// BeanInfo beanInfo = Introspector.getBeanInfo( bean, null );<NEW_LINE>BeanInfo beanInfo = Introspector.getBeanInfo(beanClass);<NEW_LINE>PropertyDescript... | String name = propertyDescriptor.getName(); |
264,294 | public void channelRead(ChannelHandlerContext ctx, Object msg) {<NEW_LINE>if (msg instanceof HttpResponse) {<NEW_LINE>HttpResponse resp = (HttpResponse) msg;<NEW_LINE>response = new DefaultFullHttpResponse(resp.protocolVersion(), resp.status());<NEW_LINE>response.headers().add(resp.headers());<NEW_LINE>}<NEW_LINE>if (m... | pipeline.get(HttpContentDecompressor.class); |
1,066,569 | protected Program doOpenProgram(URL ghidraURL, int openState) {<NEW_LINE>if (!GhidraURL.isServerRepositoryURL(ghidraURL)) {<NEW_LINE>Msg.showError(this, null, "Invalid Ghidra URL", "Ghidra URL does not reference a Ghidra Program: " + ghidraURL);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Program openProgram = programMgr... | content = wrappedContent.getContent(this); |
1,760,247 | public CacheableCommand prepareForCacheAccess(Serializable inputObject, DCache cache, EntryInfo ei) {<NEW_LINE>if (inputObject == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(inputObject instanceof byte[])) {<NEW_LINE>throw new IllegalStateException("inputObject is of type: " + inputObject.getClass());<NEW_L... | "deserialized object is of type " + outputObject.getClass()); |
288,870 | RaftPartitionGroup buildRaftPartitionGroup(final BrokerCfg configuration, final ReceivableSnapshotStoreFactory snapshotStoreFactory) {<NEW_LINE>final DataCfg dataConfiguration = configuration.getData();<NEW_LINE>final String rootDirectory = dataConfiguration.getDirectory();<NEW_LINE>final var rootPath = Paths.get(rootD... | getExperimental().getPartitioning()); |
650,267 | public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>Log.d(TAG, "OnCreateOptionsMenu called");<NEW_LINE>try {<NEW_LINE>getMenuInflater().inflate(R.menu.vnccanvasactivitymenu, menu);<NEW_LINE>Menu inputMenu = menu.findItem(R.id.itemInputMode).getSubMenu();<NEW_LINE>inputModeMenuItems = new MenuItem[inputModeIds.leng... | ImageButton moveButton = new ImageButton(this); |
1,624,664 | // Write input addresses, output addresses and sizes contiguously into a DeviceMemoryBuffer.<NEW_LINE>private DeviceMemoryBuffer putAddrsAndSizesOnDevice(long[] inputAddrs, long[] inputSizes, long[] outputAddrs, Cuda.Stream stream) {<NEW_LINE>// space for input, output, and size arrays<NEW_LINE>final long totalSize = i... | inputAddrs, 0, inputAddrs.length); |
1,619,496 | /*<NEW_LINE>public void paint(Graphics g){<NEW_LINE>Graphics2D g2d = (Graphics2D)g;<NEW_LINE>super.paint(g);<NEW_LINE><NEW_LINE>g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>drawRayPolygon(g, current, target.getRect());<NEW_LINE>}<NEW_LINE>*/<NEW_LINE>public void dra... | n) / (b * m); |
1,202,246 | private boolean showDiffInOrigin(O rev, @Nullable O lastRev, Console processConsole) throws RepoException, ValidationException {<NEW_LINE>if (!workflow.getWorkflowOptions().diffInOrigin || workflow.getMode() == WorkflowMode.CHANGE_REQUEST || workflow.getMode() == WorkflowMode.CHANGE_REQUEST_FROM_SOT || lastRev == null)... | (AnsiColor.GREEN, line)); |
1,039,183 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Player opponent = game.getPlayer(source.getFirstTarget());<NEW_LINE>if (player == null || opponent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(opponent.getL... | target.getFirstTarget(), game); |
1,338,830 | private void handleTransformationEnded(@Nullable TransformationException exception) {<NEW_LINE>@Nullable<NEW_LINE>TransformationException resourceReleaseException = null;<NEW_LINE>try {<NEW_LINE>releaseResources(/* forCancellation= */<NEW_LINE>false);<NEW_LINE>} catch (TransformationException e) {<NEW_LINE>resourceRele... | -> listener.onTransformationCompleted(mediaItem)); |
427,259 | protected void performContextAction(Node[] nodes) {<NEW_LINE>final VCSContext context = HgUtils.getCurrentContext(nodes);<NEW_LINE>final Set<File> repositoryRoots = HgUtils.getRepositoryRoots(context);<NEW_LINE>// run the whole bulk operation in background<NEW_LINE>Mercurial.getInstance().getRequestProcessor().post(new... | (branch)).waitFinished(); |
1,131,638 | // This method is copied from the superclass but its parts are swapped<NEW_LINE>@Override<NEW_LINE>public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event) {<NEW_LINE>for (ComponentConnector child : event.getOldChildren()) {<NEW_LINE>if (child.getParent() == this) {<NEW_LINE>// Skip current children<... | get(child.getConnectorId()); |
1,505,564 | public static void horizontal7(Kernel1D_S32 kernel, GrayU8 image, GrayI8 dest, int divisor) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final byte[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int ... | k5 = kernel.data[4]; |
643,661 | static void determinize(Automaton a, Set<State> initialset) {<NEW_LINE>char[] points = a.getStartPoints();<NEW_LINE>// subset construction<NEW_LINE>LinkedList<Set<State>> worklist = new LinkedList<MASK><NEW_LINE>Map<Set<State>, State> newstate = new HashMap<Set<State>, State>();<NEW_LINE>worklist.add(initialset);<NEW_L... | <Set<State>>(); |
1,682,292 | private void updateUserFromAuthData(FirebaseUser authData) {<NEW_LINE>Logger.debug("updateUserFromAuthData");<NEW_LINE>model.setEntityID(authData.getUid());<NEW_LINE>String name = authData.getDisplayName();<NEW_LINE>String email = authData.getEmail();<NEW_LINE>String phoneNumber = authData.getPhoneNumber();<NEW_LINE>//... | model.setAvailability(Availability.Available); |
1,572,490 | public Notebook deleteNotebook(NotebookSpec spec, String notebookId) throws SubmarineRuntimeException {<NEW_LINE>Notebook notebook = null;<NEW_LINE>final String name = spec.getMeta().getName();<NEW_LINE>String namespace = getServerNamespace();<NEW_LINE>NotebookCR notebookCR = NotebookSpecParser.parseNotebook(spec, null... | ), CustomResourceType.Notebook, notebookId); |
915,306 | public static String evaluate(@Nullable PsiFile file, @Nullable Project project, @Nullable Module module, @Nonnull String template) throws Exception {<NEW_LINE>VelocityEngine engine = getEngine();<NEW_LINE>VelocityContext vc = new VelocityContext();<NEW_LINE>vc.put<MASK><NEW_LINE>if (file != null)<NEW_LINE>vc.put("file... | ("today", new DateInfo()); |
1,430,841 | final UpdateStackInstancesResult executeUpdateStackInstances(UpdateStackInstancesRequest updateStackInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStackInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | UpdateStackInstancesResult>(new UpdateStackInstancesResultStaxUnmarshaller()); |
799,073 | private static Pair<List<Geocache>, Boolean> parseCaches(final ObjectNode response) {<NEW_LINE>try {<NEW_LINE>final JsonNode moreNode = response.path("more");<NEW_LINE>final boolean more = moreNode != null && moreNode.isBoolean() && moreNode.asBoolean();<NEW_LINE>// Check for empty result<NEW_LINE>final JsonNode result... | Collections.emptyList(), more); |
1,016,938 | public ImportDeclaration convertImport(org.eclipse.jdt.internal.compiler.ast.ImportReference importReference) {<NEW_LINE>final ImportDeclaration importDeclaration = new ImportDeclaration(this.ast);<NEW_LINE>Name name = getImportName(importReference);<NEW_LINE>importDeclaration.setName(name);<NEW_LINE>final boolean onDe... | ast.ASTNode.OnDemand) != 0; |
340,901 | public static ListFunctionsResponse unmarshall(ListFunctionsResponse listFunctionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionsResponse.setRequestId(_ctx.stringValue("ListFunctionsResponse.RequestId"));<NEW_LINE>listFunctionsResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionsResponse.HttpStatusCod... | (_ctx.stringValue("ListFunctionsResponse.Code")); |
1,794,928 | public void addField(Class<?> accessorClass) throws InstrumentException {<NEW_LINE>Objects.requireNonNull(accessorClass, "accessorClass");<NEW_LINE>try {<NEW_LINE>final AccessorAnalyzer accessorAnalyzer = new AccessorAnalyzer();<NEW_LINE>final AccessorAnalyzer.AccessorDetails accessorDetails = accessorAnalyzer.analyze(... | ).getName(), fieldNode); |
367,240 | void show(Root root) {<NEW_LINE>detectUpdates(false);<NEW_LINE>_target = root;<NEW_LINE>Utils.Resolver resolver = getDetailResolver();<NEW_LINE>boolean isEditable = (resolver == null);<NEW_LINE>ApplicationDescriptor descriptor = (ApplicationDescriptor) root.getDescriptor();<NEW_LINE>_name.setText(descriptor.name);<NEW_... | (descriptor.description, resolver)); |
1,097,590 | public OutlierResult run(Relation<? extends NumberVector> relation) {<NEW_LINE>final DBIDs ids = relation.getDBIDs();<NEW_LINE>WritableDoubleDataStore ranks = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_STATIC);<NEW_LINE>DoubleMinMax minmax = new DoubleMinMax();<NEW_LINE>KernelDensityEstimator kernel <MA... | = new KernelDensityEstimator(relation, eps); |
1,441,754 | private static List<Project> loadProjectList() {<NEW_LINE>assert MUTEX.isReadAccess() || MUTEX.isWriteAccess();<NEW_LINE>List<URL> URLs = OpenProjectListSettings.getInstance().getOpenProjectsURLs();<NEW_LINE>List<String> names = OpenProjectListSettings.getInstance().getOpenProjectsDisplayNames();<NEW_LINE>List<ExtIcon>... | , iconIt.next())); |
342,237 | public // called when string_literal and regexp_literal.<NEW_LINE>void readUTFEscapeRegexpLiteral(ByteList buffer) throws IOException {<NEW_LINE>buffer.append('\\');<NEW_LINE>buffer.append('u');<NEW_LINE>if (peek('{')) {<NEW_LINE>// handle \\u{...}<NEW_LINE>do {<NEW_LINE><MASK><NEW_LINE>if (scanHexLiteral(buffer, 6, fa... | buffer.append(nextc()); |
1,787,010 | public void onActivityResult(int requestCode, int resultCode, Intent intent) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>if (xmppConnectionServiceBound) {<NEW_LINE>this.mPostponedActivityResult = null;<NEW_LINE>if (requestCode == REQUEST_CREATE_CONFERENCE) {<NEW_LINE>Account account = extractAccount(intent);<NEW... | Pair<>(requestCode, intent); |
1,733,206 | public static void horizontal9(Kernel1D_S32 kernel, GrayU8 image, GrayI8 dest, int divisor) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final byte[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int ... | indexSrc++] & 0xFF) * k3; |
314,001 | public CommonDDBean addRow(Object[] values) {<NEW_LINE>try {<NEW_LINE>Object parent = getParent();<NEW_LINE>InitParam param = null;<NEW_LINE>if (parent instanceof Servlet) {<NEW_LINE>// NOI18N<NEW_LINE>param = (InitParam) ((Servlet) parent).createBean("InitParam");<NEW_LINE>} else if (parent instanceof Filter) {<NEW_LI... | (String) values[0]); |
1,116,584 | public void smpError(SessionID sessionID, int tlvType, boolean cheated) throws OtrException {<NEW_LINE>OtrContact otrContact = getOtrContact(sessionID);<NEW_LINE>if (otrContact == null)<NEW_LINE>return;<NEW_LINE>Contact contact = otrContact.contact;<NEW_LINE>logger.debug("SMP error occurred" + ". Contact: " + contact.g... | progressDialogMap.put(otrContact, progressDialog); |
1,729,006 | private void sendLog(ConsoleCommunication consoleCommunication, String testId) {<NEW_LINE>File logFolder = new File(agentConfig.getHome().getLogDirectory(), testId);<NEW_LINE>if (!logFolder.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File[] logFiles = logFolder.listFiles((dir, name) -> (name.endsWith(".log")));<NE... | [] { logFiles[0] }; |
601,607 | 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... | NettyConstants.SCOPE, ExecutionPolicy.BOUNDARY); |
823,875 | public Optional<PollWithOptions> updatePoll(String eventName, PollModification form) {<NEW_LINE>Validate.isTrue<MASK><NEW_LINE>return eventRepository.findOptionalEventAndOrganizationIdByShortName(eventName).flatMap(event -> {<NEW_LINE>var pollId = form.getId();<NEW_LINE>var existingPollWithOptions = getSingleForEvent(p... | (form.isValid(true)); |
53,214 | private JComponent createRevisionsSide(Dimension prefToolBarSize) {<NEW_LINE>ActionGroup actions = createRevisionsActions();<NEW_LINE>myToolBar = createRevisionsToolbar(actions);<NEW_LINE>myRevisionsList = new RevisionsList(new RevisionsList.SelectionListener() {<NEW_LINE><NEW_LINE>public void revisionsSelected(final i... | createScrollPane(myRevisionsList.getComponent()); |
1,075,221 | final DescribeAffectedEntitiesForOrganizationResult executeDescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest describeAffectedEntitiesForOrganizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAffectedEntitiesForOrganizationRequest);<NEW_LIN... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,700,023 | public TypeDeserializer findPropertyTypeDeserializer(DeserializationConfig config, JavaType baseType, AnnotatedMember annotated) throws JsonMappingException {<NEW_LINE>AnnotationIntrospector ai = config.getAnnotationIntrospector();<NEW_LINE>TypeResolverBuilder<?> b = ai.findPropertyTypeResolver(config, annotated, baseT... | , baseType).withCause(e0); |
287,111 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW... | ExceptionAliasExist(reveal.getAlias()); |
443,800 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "To run this example, supply an alarm name and instance id\n" + "Ex: DeleteAlarm <alarm-name> <instance-id>\n";<NEW_LINE>if (args.length != 2) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>String alarmName = args... | AmazonCloudWatch cw = AmazonCloudWatchClientBuilder.defaultClient(); |
1,304,172 | public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missin... | Utils.getValueFromIdByName(id, "clusters"); |
405,151 | final void stopIfStartedByIde(long timeout) {<NEW_LINE>if (commonSupport.isStartedByIde()) {<NEW_LINE>ServerState state = commonSupport.getServerState();<NEW_LINE>if (state == ServerState.STARTING || (state == ServerState.RUNNING && GlassFishState.isOnline(this))) {<NEW_LINE>try {<NEW_LINE>Future<TaskState> stopServerT... | ("glassfish").info("Stop server failed..."); |
760,605 | public static Instruction createDeclareByte(int b0, int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8, int b9, int b10) {<NEW_LINE>Instruction instruction = new Instruction();<NEW_LINE>instruction.setCode(Code.DECLAREBYTE);<NEW_LINE>instruction.setDeclareDataCount(11);<NEW_LINE>instruction.setDeclareByteVa... | (5, toByte(b5)); |
283,309 | private static void pushTasks(Collection<? extends IndexResult> results, Callback callback) {<NEW_LINE>Map<FileObject, List<Task>> tasks = new HashMap<FileObject, List<Task>>();<NEW_LINE>for (IndexResult result : results) {<NEW_LINE>FileObject f = result.getFile();<NEW_LINE>if (f == null || !f.isValid()) {<NEW_LINE>con... | callback.setTasks(f, l); |
1,334,449 | public <T extends OBinaryResponse> T networkOperationRetryTimeout(final OBinaryRequest<T> request, final String errorMessage, int retry, int timeout) {<NEW_LINE>return baseNetworkOperation((network, session) -> {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>network.beginRequest(request.getCommand(), session);<NEW_LINE>reques... | warn(this, "Error Writing request on the network", e); |
1,135,335 | private void initSourcesConn(DatabusSourcesConnection sourcesConn) {<NEW_LINE>if (null != sourcesConn) {<NEW_LINE>RelayPullThread rp = sourcesConn.getRelayPullThread();<NEW_LINE>BootstrapPullThread bp = sourcesConn.getBootstrapPullThread();<NEW_LINE>GenericDispatcher<DatabusCombinedConsumer> rd = sourcesConn.getRelayDi... | setCurrentRelay(rp.getCurentServer()); |
606,036 | public Builder mergeFrom(com.alibaba.alink.operator.batch.dl.ctr.protos.Esmm.ESMM other) {<NEW_LINE>if (other == com.alibaba.alink.operator.batch.dl.ctr.protos.Esmm.ESMM.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (groupsBuilder_ == null) {<NEW_LINE>if (!other.groups_.isEmpty()) {<NEW_LINE>if (groups_.isEmp... | setL2Regularization(other.getL2Regularization()); |
1,716,057 | public double absMedian(double c) {<NEW_LINE>double median = this.median();<NEW_LINE>int minHeapLength = minHeap.size();<NEW_LINE>int maxHeapLength = maxHeap.size();<NEW_LINE>double[] dataArray = new double[minHeapLength + maxHeapLength];<NEW_LINE>int maxCount = maxHeapLength - 1;<NEW_LINE>Iterator<Double> maxIter = ma... | > minIter = minHeap.iterator(); |
57,937 | public static AnalysisLimits validateAndSetDefaults(@Nullable AnalysisLimits source, @Nullable ByteSizeValue maxModelMemoryLimit, long defaultModelMemoryLimit) {<NEW_LINE>boolean maxModelMemoryIsSet = maxModelMemoryLimit != null && maxModelMemoryLimit.getMb() > 0;<NEW_LINE>long modelMemoryLimit = defaultModelMemoryLimi... | ofMb(modelMemoryLimit), maxModelMemoryLimit)); |
273,295 | public void complexForward(final float[] a) {<NEW_LINE>// handle special case<NEW_LINE>if (rows == 1 || columns == 1) {<NEW_LINE>if (rows > 1)<NEW_LINE>fftRows.complexForward(a);<NEW_LINE>else<NEW_LINE>fftColumns.complexForward(a);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isPowerOfTwo) {<NEW_LINE>int oldn2 = columns;<N... | ] = a[idx2 + 1]; |
1,029,247 | static void parseResources(Document doc, String fileName) {<NEW_LINE>logger.debug("Parsing resources from project file...");<NEW_LINE>String val = "";<NEW_LINE>val += nodeListToString(doc.getElementsByTagName("dataline_input"), "dataline_input");<NEW_LINE>val += nodeListToString(doc.getElementsByTagName("dataline_outpu... | .getElementsByTagName("resource_flag"), "resource_flag"); |
812,387 | private StackdriverLogEntry buildLogEntry(final LogEvent event) {<NEW_LINE>final var builder = StackdriverLogEntry.builder().withLevel(event.getLevel()).withMessage(event.getMessage().getFormattedMessage()).withTime(event.getInstant()).withDiagnosticContext(event.getContextData()).withThreadId(event.getThreadId()).with... | var source = event.getSource(); |
91,165 | private void buildFlattenedMap(final Map<String, Object> result, final Map<String, Object> source, final String path) {<NEW_LINE>source.forEach((key, value) -> {<NEW_LINE>if (StringUtils.isNotBlank(path)) {<NEW_LINE>if (key.startsWith("[")) {<NEW_LINE>key = path + key;<NEW_LINE>} else {<NEW_LINE>key = path + '.' + key;... | result.put(key, ""); |
931,887 | void build(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {<NEW_LINE>// This is to match the Oracle metadata (which we excluded so that we can apply fixes):<NEW_LINE>reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, false, "oracle.jdbc.internal.ACProxyable"));<NEW_LINE>reflectiveClass.produce(n... | , false, true, "oracle.sql.TypeDescriptor")); |
810,968 | private static double calculateResourceFitness(TaskRequest request, VirtualMachineCurrentState targetVM, TaskTrackerState taskTrackerState, Func1<TaskRequest, Double> taskResourceGetter, Func1<VirtualMachineLease, Double> leaseResourceGetter) {<NEW_LINE>double totalRes = leaseResourceGetter.call(targetVM.getCurrAvailab... | .getTasksCurrentlyAssigned().iterator(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.