idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,189,206 | public void check(Database database, DatabaseChangeLog changeLog, ChangeSet changeSet, ChangeExecListener changeExecListener) throws PreconditionFailedException, PreconditionErrorException {<NEW_LINE>CustomPrecondition customPrecondition;<NEW_LINE>try {<NEW_LINE>// System.out.println(classLoader.toString());<NEW_LINE>t... | "Could not open custom precondition class " + className, changeLog, this); |
184,720 | private JPanel create() {<NEW_LINE>labelNameChoices = new GhidraComboBox<>();<NEW_LINE>labelNameChoices.setName("label.name.choices");<NEW_LINE>GhidraComboBox<NamespaceWrapper> comboBox = new GhidraComboBox<>();<NEW_LINE>comboBox.setEnterKeyForwarding(true);<NEW_LINE>namespaceChoices = comboBox;<NEW_LINE>primaryCheckBo... | 5, 0, 0, 5); |
109,513 | public IRubyObject divmod(ThreadContext context, IRubyObject other) {<NEW_LINE>final BigInteger otherValue;<NEW_LINE>if (other instanceof RubyFixnum) {<NEW_LINE>otherValue = fix2big((RubyFixnum) other);<NEW_LINE>} else if (other instanceof RubyBignum) {<NEW_LINE>otherValue = ((RubyBignum) other).value;<NEW_LINE>} else ... | throw context.runtime.newZeroDivisionError(); |
1,741,851 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player you = game.getPlayer(source.getControllerId());<NEW_LINE>Player targetPlayer = game.getPlayer(source.getFirstTarget());<NEW_LINE>if (targetPlayer != null && you != null) {<NEW_LINE>FilterCard filter = new FilterCard("card from your graveyard");<NEW_LINE>... | getCard(target.getFirstTarget()); |
1,842,700 | protected void addPropertyMethod(final MethodNode method) {<NEW_LINE>classNode.addMethod(method);<NEW_LINE>markAsGenerated(classNode, method);<NEW_LINE>// GROOVY-4415 / GROOVY-4645: check that there's no abstract method which corresponds to this one<NEW_LINE>String methodName = method.getName();<NEW_LINE>Parameter[] pa... | node.getModifiers() ^ ACC_ABSTRACT); |
655,380 | protected void refreshNavigationActions() {<NEW_LINE>actionList.clear();<NEW_LINE>initializedActions.clear();<NEW_LINE>if (listComponent != null) {<NEW_LINE>MetaClass metaClass = listComponent.getDatasource().getMetaClass();<NEW_LINE>Pattern excludePattern = null;<NEW_LINE>if (excludeRegex != null) {<NEW_LINE><MASK><NE... | excludePattern = Pattern.compile(excludeRegex); |
1,381,801 | protected ItemStack insertIntoTunnel(BrassTunnelTileEntity tunnel, Direction side, ItemStack stack, boolean simulate) {<NEW_LINE>if (stack.isEmpty())<NEW_LINE>return stack;<NEW_LINE>if (!tunnel.testFlapFilter(side, stack))<NEW_LINE>return null;<NEW_LINE>BeltTileEntity below = BeltHelper.getSegmentTE(level, tunnel.world... | BeltTileEntity controllerTE = below.getControllerTE(); |
610,782 | public List<ScoredItem<Term>> rescoreStatistics(List<Histogram<Term>> histograms, List<ScoredItem<Term>> initialScores) {<NEW_LINE>int termCount = histograms.get(0).size();<NEW_LINE>// TODO: use a priority queue<NEW_LINE>List<ScoredItem<Term>> <MASK><NEW_LINE>for (ScoredItem<Term> si : initialScores) {<NEW_LINE>Term te... | scores = new ArrayList<>(); |
1,474,297 | protected void writeNodeChildren(java.io.Writer out, String nodeName, String namespace, String indent, java.util.Map namespaceMap) throws java.io.IOException {<NEW_LINE>String nextIndent = indent + " ";<NEW_LINE>if (_SchemaTypeNamespace != null) {<NEW_LINE>out.write(nextIndent);<NEW_LINE>// NOI18N<NEW_LINE>out.write("<... | writeXML(out, _SchemaTypeNamespace, false); |
500,993 | public boolean joinTable(final String sessionId, final UUID roomId, final UUID tableId, final String name, final PlayerType playerType, final int skill, final DeckCardLists deckList, final String password) throws MageException {<NEW_LINE>return executeWithResult("joinTable", sessionId, new ActionWithBooleanResult() {<N... | playerType, skill, deckList, password); |
317,729 | private static void printRawOpenOrders(MercadoBitcoinTradeServiceRaw tradeService) throws IOException, InterruptedException {<NEW_LINE>MercadoBitcoinBaseTradeApiResult<MercadoBitcoinUserOrders> openOrdersResult = tradeService.getMercadoBitcoinUserOrders("btc_brl", null, "active", null, null, null, null);<NEW_LINE><MASK... | MercadoBitcoinUserOrders openOrders = openOrdersResult.getTheReturn(); |
89,117 | public void marshall(RemoteAccessSession remoteAccessSession, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (remoteAccessSession == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(remoteAccessSession.getArn(... | remoteAccessSession.getRemoteDebugEnabled(), REMOTEDEBUGENABLED_BINDING); |
1,570,100 | private static void uncompressSlidingFlavor(final CpcSketch target, final CompressedState source) {<NEW_LINE>assert (source.cwStream != null);<NEW_LINE>uncompressTheWindow(target, source);<NEW_LINE>final int srcLgK = source.lgK;<NEW_LINE>final int numPairs = source.numCsv;<NEW_LINE>if (numPairs == 0) {<NEW_LINE>target.... | int offset = source.getWindowOffset(); |
1,550,447 | public void extractAndSetEsrReference(@NonNull final EntryTransaction2 txDtls, @NonNull final ESRTransactionBuilder trxBuilder) {<NEW_LINE>final IMsgBL msgBL = <MASK><NEW_LINE>final Optional<String> esrReferenceNumberString = extractEsrReference(txDtls);<NEW_LINE>if (esrReferenceNumberString.isPresent()) {<NEW_LINE>trx... | Services.get(IMsgBL.class); |
331,787 | public Request<UpdateUserRequest> marshall(UpdateUserRequest updateUserRequest) {<NEW_LINE>if (updateUserRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<UpdateUserRequest> request = new DefaultRequest<UpdateUserRequest>(updateUserRequest,... | request.setHttpMethod(HttpMethodName.POST); |
650,010 | public void create(ExpressionListenerStore expressions) throws ExpressionException, FormatterException {<NEW_LINE>if (expressions == null)<NEW_LINE>throw new ExpressionException(Lang.get("err_noExpressionsAvailable"));<NEW_LINE>ExpressionListener el = new ExpressionListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pub... | .modifyExpression(expression, modifier)); |
6,752 | public void pie(int sx, int sy, int ex, int ey, int sxr, int syr, int exr, int eyr) {<NEW_LINE>byte[] record = new byte[22];<NEW_LINE>int pos = 0;<NEW_LINE>pos = setUint32(record, pos, record.length / 2);<NEW_LINE>pos = setUint16(record, pos, RECORD_PIE);<NEW_LINE>pos = setInt16(record, pos, eyr);<NEW_LINE>pos = setInt... | setInt16(record, pos, syr); |
1,068,189 | // order hash is used to determine redundant order when parsing analytic function definition<NEW_LINE>private void createOrderHash(QueryModel model) {<NEW_LINE>LowerCaseCharSequenceIntHashMap hash = model.getOrderHash();<NEW_LINE>hash.clear();<NEW_LINE>final ObjList<ExpressionNode> orderBy = model.getOrderBy();<NEW_LIN... | IntList orderByDirection = model.getOrderByDirection(); |
1,540,949 | public TruffleString toDisplayStringImpl(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, int depth) {<NEW_LINE>RootNode rn = ((RootCallTarget) JSFunction.getCallTarget(obj)).getRootNode();<NEW_LINE><MASK><NEW_LINE>TruffleString source;<NEW_LINE>if (ssect == null || !ssect.isAvailable() || s... | SourceSection ssect = rn.getSourceSection(); |
849,026 | public static void main(String[] args) throws Exception {<NEW_LINE>Args myArgs = new Args();<NEW_LINE>CmdLineParser parser = new CmdLineParser(myArgs, ParserProperties.defaults().withUsageWidth(90));<NEW_LINE>try {<NEW_LINE>parser.parseArgument(args);<NEW_LINE>} catch (CmdLineException e) {<NEW_LINE>System.err.println(... | out.println("At term " + term); |
1,756,244 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>btnSendSMS = (Button) findViewById(R.id.btnSendSMS);<NEW_LINE>txtPhoneNo = (EditText) findViewById(R.id.txtPhoneNo);<NEW_LINE>txtMessage = (EditText) findViewById(R.id.txtMessage);<NEW_LINE>btnSendSMS... | setContentView(R.layout.sms); |
606,214 | private void processTaskCleanupsForRequest(String requestId, List<SingularityTaskCleanup> cleanupTasks, AtomicInteger killedTasks) {<NEW_LINE>final Multiset<SingularityDeployKey> incrementalCleaningTasks = HashMultiset.create(cleanupTasks.size());<NEW_LINE>final List<String> taskIdsForDeletedRequest = new ArrayList<>()... | deleteCleanupTask(taskId.getId()); |
1,781,189 | private Mono<Void> mapRoute(DomainsOracle domains, String appName, CFRoute route, boolean randomRoute) {<NEW_LINE>// Let the client validate if any of these combinations are correct.<NEW_LINE>// However, only set these values only if they are present as not doing so causes NPE<NEW_LINE>Mono<MapRouteRequest.Builder> _bu... | (8).toLowerCase()); |
1,031,940 | protected void aggregateCheck() throws SQLException {<NEW_LINE>PostgresAggregateFunction aggregateFunction = Randomly.fromOptions(PostgresAggregateFunction.MAX, PostgresAggregateFunction.MIN, PostgresAggregateFunction.SUM, PostgresAggregateFunction.BIT_AND, PostgresAggregateFunction.BIT_OR, PostgresAggregateFunction.BO... | PostgresAggregateFunction.BOOL_OR, PostgresAggregateFunction.COUNT); |
599,276 | public static <A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R, T> Arguments16Validator<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, List<R>> traverse16(Iterable<T> values, Function<? super T, ? extends Arguments16Validator<? super A1, ? super A2, ? super A3, ? super A... | a16, locale, constraintContext))); |
1,660,887 | private Mono<Response<AutoProvisioningSettingInner>> createWithResponseAsync(String settingName, AutoProvisioningSettingInner setting, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot ... | this.client.mergeContext(context); |
1,812,940 | private int[] computeRequiredStemIndices(PreprocessingContext context) {<NEW_LINE>final int[<MASK><NEW_LINE>final int[] wordsStemIndex = context.allWords.stemIndex;<NEW_LINE>final short[] wordsTypes = context.allWords.type;<NEW_LINE>final int[][] phrasesWordIndices = context.allPhrases.wordIndices;<NEW_LINE>final int w... | ] labelsFeatureIndex = context.allLabels.featureIndex; |
1,842,723 | private String buildColumnValue(ColumnMeta colMeta, Record record) {<NEW_LINE>Column column = record.getColumn(indexOf(colMeta.field));<NEW_LINE>TimestampPrecision timestampPrecision = schemaManager.loadDatabasePrecision();<NEW_LINE>switch(column.getType()) {<NEW_LINE>case DATE:<NEW_LINE>{<NEW_LINE><MASK><NEW_LINE>swit... | Date value = column.asDate(); |
497,182 | protected String checkUserAndPassword(String user, @Sensitive String password) throws WSSecurityException {<NEW_LINE>// System.out.println("gkuo:debug:Id:" + user + ":password:" + password );<NEW_LINE>String authnPrincipal = null;<NEW_LINE>try {<NEW_LINE>UserRegistryService userRegistryService = securityService.getUser... | UserRegistry userRegistry = userRegistryService.getUserRegistry(); |
1,486,960 | public JSONObject toJSONObject() {<NEW_LINE>final Map<String, String> clientMap = new HashMap<String, String>();<NEW_LINE>clientMap.put("app_package_name", appPackageName);<NEW_LINE>clientMap.put("app_title", appTitle);<NEW_LINE>clientMap.put("app_version_name", appVersionName);<NEW_LINE>clientMap.put("app_version_code... | analyticsServiceMap.put(APP_ID_KEY, appId); |
293,900 | private Type bracketNavigate(int offset, Type type) {<NEW_LINE>int lbrack = offset;<NEW_LINE>int rbrack = indexOf(']', lbrack);<NEW_LINE>if (rbrack < 0) {<NEW_LINE>problemCollector.accept(problem(ApplicationPropertiesProblemType.PROP_NO_MATCHING_RBRACK<MASK><NEW_LINE>} else {<NEW_LINE>String indexStr = textBetween(lbra... | , "No matching ']'", offset, 1)); |
786,262 | protected static void extractPremarkedEntityMentions(CoreMap s, List<Mention> mentions, Set<IntPair> mentionSpanSet, Set<IntPair> namedEntitySpanSet) {<NEW_LINE>List<CoreLabel> sent = s.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>SemanticGraph dependency = s.get(SemanticGraphCoreAnnotations.EnhancedDependenci... | subList(beginIndex, endIndex))); |
596,577 | public static void generateHelloWorldProject(File destDir, String groupId) throws MojoExecutionException {<NEW_LINE>InvocationRequest req = new DefaultInvocationRequest();<NEW_LINE>req.setGoals(Collections.singletonList("archetype:generate"));<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.setProperty("ar... | props.setProperty("archetypeVersion", version); |
158,264 | private static List<HistoryData> makeHistoryStatInfos(final StatisticsService statisticsManager, final int days) {<NEW_LINE>final List<HistoryData> outerOutput = new ArrayList<>(days);<NEW_LINE>DailyKey dailyKey = DailyKey.forToday();<NEW_LINE>for (int daysAgo = 0; daysAgo < days; daysAgo++) {<NEW_LINE>final Map<String... | copyOf(output.values()); |
1,303,103 | public ActorFuture<Void> transitionTo(final PartitionTransitionContext context, final long term, final Role targetRole) {<NEW_LINE>if ((context.getSnapshotDirector() == null && targetRole != Role.INACTIVE) || shouldInstallOnTransition(targetRole, context.getCurrentRole())) {<NEW_LINE>final var server = context.getRaftP... | getActorSchedulingService().submitActor(director); |
1,548,371 | private void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jMainClassList = new javax.swing.JList();<NEW_LINE>setLayout(new java.awt.GridBagLayout());<NEW_LINE>setPreferredSize(new ... | setAccessibleDescription(Bundle.AD_MainClassChooser()); |
1,097,058 | public synchronized void execute(ComplexEventChunk streamEventChunk) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Event Chunk received by " + this.duration + <MASK><NEW_LINE>}<NEW_LINE>streamEventChunk.reset();<NEW_LINE>while (streamEventChunk.hasNext()) {<NEW_LINE>StreamEvent streamEvent = (StreamEvent) ... | " incremental executor: " + streamEventChunk.toString()); |
1,005,221 | public BeamSqlTable buildBeamSqlTable(Table table) {<NEW_LINE>Schema schema = table.getSchema();<NEW_LINE>JSONObject properties = table.getProperties();<NEW_LINE>Optional<ParsedLocation<MASK><NEW_LINE>if (!Strings.isNullOrEmpty(table.getLocation())) {<NEW_LINE>parsedLocation = Optional.of(parseLocation(checkArgumentNot... | > parsedLocation = Optional.empty(); |
718,057 | private static SmartPointerElementInfo createAnchorInfo(@Nonnull PsiElement element, @Nonnull PsiFile containingFile) {<NEW_LINE>if (element instanceof StubBasedPsiElement && containingFile instanceof PsiFileImpl) {<NEW_LINE>IStubFileElementType stubType = ((PsiFileImpl) containingFile).getElementTypeForStubBuilder();<... | stubId, stubPsi.getElementType()); |
472,951 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "company,value,total".split(",");<NEW_LINE>String eplSchema = "@public @buseventtype create schema S2 ( company string, value double, total double)";<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(eplSchema, path);<... | 0].get("cnt")); |
1,096,090 | private static Optional<io.swagger.v3.oas.models.media.Schema> toSchema(ParserContext ctx, Map<String, Object> annotation) {<NEW_LINE>Map<String, List<io.swagger.v3.oas.models.media.Schema>> <MASK><NEW_LINE>schemaType(ctx, annotation, "implementation", schemaMap::put);<NEW_LINE>schemaType(ctx, annotation, "not", schema... | schemaMap = new HashMap<>(); |
806,401 | public void updatePricing(final IPMMPricingAware pricingAware) {<NEW_LINE>// Get BPartner<NEW_LINE>final I_C_BPartner bpartner = pricingAware.getC_BPartner();<NEW_LINE>if (bpartner == null || bpartner.getC_BPartner_ID() <= 0) {<NEW_LINE>throw new AdempiereException("@Missing@ @" + I_PMM_QtyReport_Event.COLUMNNAME_C_BPa... | "@Missing@ @" + I_PMM_QtyReport_Event.COLUMNNAME_C_UOM_ID + "@"); |
935,704 | public static Message.CompareType parseCompareType(Predicate predicate, BiPredicate<?, ?> biPredicate) {<NEW_LINE>if (predicate instanceof RegexPredicate) {<NEW_LINE>return Message.CompareType.REGEX;<NEW_LINE>} else if (predicate instanceof StringPredicate) {<NEW_LINE>MatchType matchType = StringPredicate.class.cast(pr... | (listMatchType.name())); |
1,845,147 | public StringBuffer printStatement(int tab, StringBuffer output) {<NEW_LINE>printIndent(tab, output);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>output.append("<CompleteOnExplicitConstructorCall:");<NEW_LINE>if (this.qualification != null)<NEW_LINE>this.qualification.printExpression(0, output).append('.');<NEW_LINE>if (this.acce... | ].printExpression(0, output); |
1,192,462 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create json schema Book(bookId string, price BigDecimal);\n", path);<NEW_LINE>env.compileDeploy("@public create json schema Shelf(shelfId string, book Book);\n", path);<NEW_LINE>env.comp... | = "{\n" + " \"libraryId\": \"L\",\n" + " \"isle\": null\n" + "}"; |
1,692,191 | public <T> JobHandle<T> submit(JobMonitoringParams jobMonitoringParams, Callable<T> job) {<NEW_LINE>Object registryKey = new Object();<NEW_LINE>AtomicBoolean running = new AtomicBoolean();<NEW_LINE>Instant submitted = clock.instant();<NEW_LINE>long jobId;<NEW_LINE>if (NOT_MONITORED == jobMonitoringParams) {<NEW_LINE>jo... | >(future, registryKey, registry); |
931,696 | final DescribeContactFlowResult executeDescribeContactFlow(DescribeContactFlowRequest describeContactFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeContactFlowRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeCo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,717,683 | private <T, T1> T lookupInAttribute(Object o, T type, Entry<String, T1> attrib, T1 value) {<NEW_LINE>if (o == null)<NEW_LINE>return null;<NEW_LINE>if (type instanceof Collection) {<NEW_LINE>final Object etype = ((Collection<?>) type).iterator().next();<NEW_LINE>final Collection<?> coll0 = (Collection<?>) o;<NEW_LINE>fi... | , attrib, value) : e); |
1,423,654 | public <T> Serializer<T> build(Class<T> baseType) {<NEW_LINE>Map<Class<?>, Serializer<?>> matches = new LinkedHashMap<Class<?>, Serializer<?>>();<NEW_LINE>for (Map.Entry<Class<?>, Serializer<?>> entry : serializerMap.entrySet()) {<NEW_LINE>if (baseType.isAssignableFrom(entry.getKey())) {<NEW_LINE>matches.put(entry.getK... | iterator().next()); |
1,803,671 | public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, boolean isDeclaration, char[] uniqueKey, int start, int end) {<NEW_LINE>if (isDeclaration) {<NEW_LINE>IType type = resolveTypeByLocation(declaringTypePackageName, declaringTypeName, NameLookup.ACCEPT_ALL, start, end);<NEW_LI... | System.out.println(")"); |
402,106 | public void run() {<NEW_LINE>try {<NEW_LINE>Document doc = Http.url(this.url).referrer(this.url).get();<NEW_LINE>Elements images = doc.select(".gbBlock img");<NEW_LINE>if (images.size() == 0) {<NEW_LINE>logger.error("Failed to find image at " + this.url);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String file = images.first(... | String.format("%03d_", index); |
1,346,589 | protected void fillCountOrLocation(final LogViewHolder holder, final LogEntry log) {<NEW_LINE>if (StringUtils.isNotBlank(log.cacheName)) {<NEW_LINE>holder.binding.gcinfo.setText(HtmlCompat.fromHtml(log.cacheName, HtmlCompat.FROM_HTML_MODE_LEGACY));<NEW_LINE>holder.binding.<MASK><NEW_LINE>final String cacheGuid = log.ca... | gcinfo.setVisibility(View.VISIBLE); |
293,872 | private void desugar(List<ClassFileResourceProvider> bootclasspathProviders, ClassFileResourceProvider classpath, Path input, Path output, Path desugaredLibConfig) throws CompilationFailedException {<NEW_LINE>checkArgument(!Files.isDirectory(input), "Input must be a jar (%s is a directory)", input);<NEW_LINE>Dependency... | output, dependencyCollector, input, EXCLUDE_PATH_ENTRIES); |
1,618,989 | public void stateChanged(ChangeEvent e) {<NEW_LINE>JViewport viewport = (JViewport) e.getSource();<NEW_LINE>int tabPlacement = tabPane.getTabPlacement();<NEW_LINE>int tabCount = tabPane.getTabCount();<NEW_LINE>Rectangle vpRect = viewport.getBounds();<NEW_LINE>Dimension viewSize = viewport.getViewSize();<NEW_LINE>Rectan... | x > 0 && leadingTabIndex > 0); |
1,328,158 | private static ProcessStatus processLoginSuccess(final PwmRequest pwmRequest, final boolean persistentLoginEnabled) throws PwmUnrecoverableException, IOException {<NEW_LINE>final ConfigManagerBean configManagerBean = pwmRequest.getPwmDomain().getSessionStateService().getBean(pwmRequest, ConfigManagerBean.class);<NEW_LI... | PwmSession pwmSession = pwmRequest.getPwmSession(); |
933,961 | public boolean apply(Game game, Ability source) {<NEW_LINE>Spell spell = game.getSpell(targetPointer.getFirst(game, source));<NEW_LINE>if (spell == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String spellName = spell.getName();<NEW_LINE>FilterPermanent filter1 = new FilterPermanent();<NEW_LINE>filter1.add(new Na... | getId(), source, game); |
1,060,816 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>MageObject mageObject = game.getPermanentEntering(source.getSourceId());<NEW_LINE>ChoiceColor choice1 = new ChoiceColor();<NEW_LINE>if (controller != null && mageObject != null && controller.choose(Outcome.Benefit, choic... | getPlayer(source.getControllerId()); |
882,553 | private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {<NEW_LINE>String s = in.readUTF();<NEW_LINE>try {<NEW_LINE>Communicator communicator = ((ObjectInputStream) in).getCommunicator();<NEW_LINE>if (communicator == null) {<NEW_LINE>throw new java.io.IOException("Cannot... | java.io.IOException("Cannot deserialize proxy: ObjectInputStream not found"); |
1,140,497 | public ServiceSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServiceSpecification serviceSpecification = new ServiceSpecification();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | int originalDepth = context.getCurrentDepth(); |
1,472,262 | public Answer execute(final OvsFetchInterfaceCommand command, final LibvirtComputingResource libvirtComputingResource) {<NEW_LINE>final String label = command.getLabel();<NEW_LINE>s_logger.debug("Will look for network with name-label:" + label);<NEW_LINE>try {<NEW_LINE>String ipadd = Script.runSimpleBashScript("ifconfi... | runSimpleBashScript("ifconfig " + label + " | grep ' inet ' | awk '{ print $4}'"); |
911,708 | private String SubstGraphs(String query, String gInsert, String gDelete) {<NEW_LINE>ArrayList<String> lst = new ArrayList<String>(16);<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>String delim = "{} \t\n\r\f";<NEW_LINE>int i = 0;<NEW_LINE>char ch;<NEW_LINE><MASK><NEW_LINE>while (i < qlen) {<NEW_LINE>ch = ... | int qlen = query.length(); |
19,526 | protected List findByCompanyId(String companyId, int begin, int end, OrderByComparator obc) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM UserTracker IN CLASS com.liferay.portal.ejb... | (UserTrackerHBMUtil.model(userTrackerHBM)); |
1,540,633 | public ConditionEvaluationResult evaluateExecutionCondition(final ExtensionContext context) {<NEW_LINE>final Optional<DisabledAroundMidnight> optional = findAnnotation(context.getElement(), DisabledAroundMidnight.class);<NEW_LINE>if (optional.isEmpty()) {<NEW_LINE>return enabled("@DisabledAroundMidnight is not present"... | .get().offsetInMinutes(); |
196,232 | public boolean visit(MethodDeclaration node) {<NEW_LINE>int lParen = this.tm.firstIndexAfter(node.getName(), TokenNameLPAREN);<NEW_LINE>int rParen = node.getBody() == null ? this.tm.lastIndexIn(node, TokenNameRPAREN) : this.tm.firstIndexBefore(node.getBody(), TokenNameRPAREN);<NEW_LINE>handleParenthesesPositions(lParen... | (0), -1)); |
514,532 | public boolean evaluate(boolean[] singleValues, DataType[] valueTypes, Object[] valueArrays, int index) {<NEW_LINE>boolean singleValue = singleValues[_expressionIndex];<NEW_LINE>DataType valueType = valueTypes[_expressionIndex];<NEW_LINE>Object valueArray = valueArrays[_expressionIndex];<NEW_LINE>if (_predicateEvaluato... | []) valueArray)[index]; |
1,324,395 | public void init(ServletConfig config) throws ServletException {<NEW_LINE>super.init(config);<NEW_LINE>try {<NEW_LINE>initLogSystem(config);<NEW_LINE>if (this.config == null) {<NEW_LINE>if (this.configFilePath == null) {<NEW_LINE>String <MASK><NEW_LINE>if (TStringUtils.isEmpty(filePath)) {<NEW_LINE>filePath = DEFAULT_C... | filePath = config.getInitParameter("configFile"); |
491,007 | public static void quadraticroots() {<NEW_LINE>// value a, b, and c<NEW_LINE>double a, b, c;<NEW_LINE>double root1, root2;<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Enter coefficients of the equation:");<NEW_LINE>System.out.print("Enter a: ");<NEW_LINE>a = sc.nextDouble();<NEW_LINE>Syst... | format("\nroot2 = %.2f-%.2fi", real, imaginary); |
1,552,115 | final CreateReplaceRootVolumeTaskResult executeCreateReplaceRootVolumeTask(CreateReplaceRootVolumeTaskRequest createReplaceRootVolumeTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReplaceRootVolumeTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,543,200 | public int calculateIndex(String columnValue) {<NEW_LINE>Integer targetPartition = -1;<NEW_LINE>try {<NEW_LINE>long targetTime = formatter.get().parse(columnValue).getTime();<NEW_LINE><MASK><NEW_LINE>long nowTime = now.getTimeInMillis();<NEW_LINE>beginDate = nowTime - sLastTime * oneDay;<NEW_LINE>long diffDays = (nowTi... | Calendar now = Calendar.getInstance(); |
69,247 | public List<ImageStoreJoinVO> searchByIds(Long... spIds) {<NEW_LINE>// set detail batch query size<NEW_LINE>int DETAILS_BATCH_SIZE = 2000;<NEW_LINE>String batchCfg = _configDao.getValue("detail.batch.query.size");<NEW_LINE>if (batchCfg != null) {<NEW_LINE>DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);<NEW_LINE>}<NEW_... | [k] = spIds[j]; |
398,219 | public void visitIfElse(final IfStatement node) {<NEW_LINE>scopes.add(new VariableScope(scopes.getLast(), node, false));<NEW_LINE>try {<NEW_LINE>// TODO: Assignment within expression may be conditional or unconditional due to short-circuit evaluation.<NEW_LINE>node.getBooleanExpression().visit(this);<NEW_LINE>Map<Strin... | getElseBlock().visit(this); |
105,693 | protected String doIt() throws Exception {<NEW_LINE>log.info("doIt - From_RfQ_ID=" + p_From_RfQ_ID + ", To_RfQ_ID=" + p_To_RfQ_ID);<NEW_LINE>//<NEW_LINE>MRfQ to = new MRfQ(getCtx(), p_To_RfQ_ID, get_TrxName());<NEW_LINE>if (to.get_ID() == 0)<NEW_LINE>throw new IllegalArgumentException("No To RfQ found");<NEW_LINE>MRfQ ... | [i].getDescription()); |
613,221 | default boolean shareCreatureTypes(Game game, MageObject otherCard) {<NEW_LINE>if (!isCreature(game) && !isTribal(game)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!otherCard.isCreature(game) && !otherCard.isTribal(game)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean isAllA = this.isAllCreatureTypes(game);... | anyMatch(SubTypeSet.CreatureType::equals); |
1,541,004 | public static ImageFrame[] loadAll(InputStream input, ImageLoadListener listener, double width, double height, boolean preserveAspectRatio, float pixelScale, boolean smooth) throws ImageStorageException {<NEW_LINE>ImageLoader loader = null;<NEW_LINE>try {<NEW_LINE>if (isIOS) {<NEW_LINE>// no extension/signature recogni... | e.getMessage(), e); |
1,430,407 | public String createAssignment(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException {<NEW_LINE>URL[] resources = ResourceGeneratorUtil.findResources(logger, context, method);<NEW_LINE>if (resources.length != 1) {<NEW_LINE>logger.log(TreeLogger.ERROR, "Exactly one resource must be... | println("return new org.rstudio.core.client.SafeUriStringImpl(" + outputUrlExpression + ");"); |
1,726,189 | private boolean evalOpOnLiteral(JUnaryOperator op, JValueLiteral exp, Context ctx) {<NEW_LINE>switch(op) {<NEW_LINE>case BIT_NOT:<NEW_LINE>{<NEW_LINE>long value = toLong(exp);<NEW_LINE>long res = ~value;<NEW_LINE>if (isTypeLong(exp)) {<NEW_LINE>ctx.replaceMe(program.getLiteralLong(res));<NEW_LINE>} else {<NEW_LINE>ctx.... | getLiteralInt((int) res)); |
1,078,604 | Map<String, Object> visit(Map<String, Object> tree, Function<Map<String, Object>, Map<String, Object>> mapper) {<NEW_LINE>Map<String, Object> result = mapper.apply(new LinkedHashMap<>(tree));<NEW_LINE>result.entrySet().forEach(e -> {<NEW_LINE>if (e.getValue() instanceof List) {<NEW_LINE>List<Object> list = (List<<MASK>... | Object>) e.getValue(); |
866,270 | protected URLConnection openConnection(URL u) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>URL orig = new URL("nbresloc", u.getHost(), u.getPort(), u.getFile());<NEW_LINE>final URLConnection connection = orig.openConnection();<NEW_LINE>if (!u.getFile().endsWith(".html")) {<NEW_LINE>return connection;<NEW_LINE>}<NEW... | len = is.read(arr); |
1,647,144 | private void removeFromTree(DefaultMutableTreeNode node) {<NEW_LINE>Preconditions.checkNotNull(node, "Error: node argument can not be null.");<NEW_LINE>Preconditions.checkArgument(!node.isRoot(), "Error: node argument can not be the root node.");<NEW_LINE>final Set<DefaultMutableTreeNode> nodesToDelete = Sets.newHashSe... | ) currentNode).getBaseType()); |
1,544,553 | public ListPolicyVersionsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListPolicyVersionsResult listPolicyVersionsResult = new ListPolicyVersionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOf... | ().unmarshall(context)); |
1,209,551 | FileObject createInterface(String name, final String annotationType, FileObject targetFolder) throws IOException {<NEW_LINE>FileObject sourceFile = GenerationUtils.createInterface(targetFolder, name, null);<NEW_LINE>JavaSource source = JavaSource.forFileObject(sourceFile);<NEW_LINE>if (source == null) {<NEW_LINE>LOGGER... | TreeMaker make = workingCopy.getTreeMaker(); |
110,010 | public void showBackReferences(IdEObject idEObject) {<NEW_LINE>System.out.println("Showing back references to: " + idEObject);<NEW_LINE>for (IdEObject object : getValues()) {<NEW_LINE>for (EReference eReference : object.eClass().getEAllReferences()) {<NEW_LINE>if (eReference.isMany()) {<NEW_LINE>List list = (List) obje... | o = object.eGet(eReference); |
1,561,358 | private void buildCharClass() {<NEW_LINE>if (!silent) {<NEW_LINE>if (getLocalFlags().isIgnoreCase()) {<NEW_LINE>List<Pair<Integer, int[]>> multiCodePointExpansions = caseClosureMultiCodePoint();<NEW_LINE>if (multiCodePointExpansions.size() > 0) {<NEW_LINE>pushGroup();<NEW_LINE>addCharClass(curCharClass.toCodePointSet()... | int from = pair.getLeft(); |
1,233,604 | public void updateValueFromChildren(TypeNodeData inData) {<NEW_LINE>TypeNodeData data = (TypeNodeData) this.getUserObject();<NEW_LINE>try {<NEW_LINE>Object structObject = data.getTypeValue();<NEW_LINE>String propType = inData.getTypeClass();<NEW_LINE>String propName = inData.getTypeName();<NEW_LINE>Object propObject = ... | getDefault().notify(cause); |
1,832,883 | public synchronized T read(@IdParam IIdType theId, RequestDetails theRequestDetails) {<NEW_LINE>TreeMap<Long, T> versions = myIdToVersionToResourceMap.get(theId.getIdPart());<NEW_LINE>if (versions == null || versions.isEmpty()) {<NEW_LINE>throw new ResourceNotFoundException(Msg.code(1981) + theId);<NEW_LINE>}<NEW_LINE>... | .code(1984) + theId); |
647,052 | public void loadFromDatabase(DatabaseProperties dbProperties) {<NEW_LINE>GetResponse response = esClient.prepareGet(PhotonIndex.NAME, PhotonIndex.TYPE, PROPERTY_DOCUMENT_ID).execute().actionGet();<NEW_LINE>// We are currently at the database version where versioning was introduced.<NEW_LINE>if (!response.isExists()) {<... | getSource().get(BASE_FIELD); |
669,688 | private Route addRoute(HttpMethod httpMethod, String path, Object controller, Class<?> controllerType, Method method) {<NEW_LINE>// [/** | /*]<NEW_LINE>path = "*".equals(path) ? "/.*" : path;<NEW_LINE>path = path.replace("/**", "/.*").replace("/*", "/.*");<NEW_LINE>String key = path + "#" + httpMethod.toString();<NEW_L... | routes.put(key, route); |
1,353,699 | private static // Again, nasty problem with mixins and for loops, hopefully I can fix this at a later date - Wala<NEW_LINE>void whBufferQuad(VertexConsumer buff, MutableQuadViewImpl quad, Matrix4f matrix, int overlay, Matrix3f normalMatrix, Vec3f normalVec, int alpha) {<NEW_LINE>final <MASK><NEW_LINE>if (useNormals) {<... | boolean useNormals = quad.hasVertexNormals(); |
1,417,796 | private Object[] generateTemplateWithOroRegex(String rawTemplate) {<NEW_LINE>List<String> pieces = new ArrayList<>();<NEW_LINE>// String or Integer<NEW_LINE>List<Object> combined = new ArrayList<>();<NEW_LINE>PatternMatcher matcher = JMeterUtils.getMatcher();<NEW_LINE>Util.split(pieces, matcher, templatePattern, rawTem... | ).group(1))); |
1,353,834 | public void write(final Writer writer, final SolrQueryRequest request, final SolrQueryResponse rsp) throws IOException {<NEW_LINE>final NamedList<?> values = rsp.getValues();<NEW_LINE>assert values.get("responseHeader") != null;<NEW_LINE>assert values.get("response") != null;<NEW_LINE>writeHtmlHead(writer, request);<NE... | CollectionSchema.id.getSolrFieldName()); |
1,358,189 | public IRubyObject op_div(ThreadContext context, IRubyObject other) {<NEW_LINE>if (other instanceof RubyRational)<NEW_LINE>return idiv(context, (RubyRational) other);<NEW_LINE>RubyBigDecimal val = <MASK><NEW_LINE>if (val == null)<NEW_LINE>return callCoerced(context, sites(context).div, other, true);<NEW_LINE>if (isNaN(... | getVpValue(context, other, false); |
616,285 | public StoreRequestEvents started() {<NEW_LINE>dispatcher.post(startedEvent);<NEW_LINE>finishedEventBuilder.getStoreBuilder().setRuleKeys(info.getRuleKeys());<NEW_LINE>finishedEventBuilder.getStoreBuilder().setArtifactSizeBytes(artifactSizeBytes).setRuleKeys(info.getRuleKeys());<NEW_LINE>return new StoreRequestEvents()... | (false).setErrorMessage(errorMessage); |
1,100,002 | // pkg-private for testing<NEW_LINE>void assertConsistent() {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>if (requiresEviction()) {<NEW_LINE>throw new AssertionError("requires evictions: size=" + mostRecentlyUsedQueries.size() + ", maxSize=" + maxSize + ", ramBytesUsed=" + ramBytesUsed() + ", maxRamBytesUsed=" + maxR... | += mostRecentlyUsedQueries.size() * QUERY_DEFAULT_RAM_BYTES_USED; |
812,307 | public static void check(String username, String password, List<String> hosts, List<Integer> ports, String connectionString, String url) {<NEW_LINE>if (Config.getConfig().getCloudSwitch() && Config.getConfig().getHookWhiteAll()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HashMap<String, Object> params = new HashMap<String,... | params.put("connectionString", connectionString); |
199,560 | // ---------------------------------------------------------------------------------------------------------------<NEW_LINE>//<NEW_LINE>// apply<NEW_LINE>//<NEW_LINE>// ---------------------------------------------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void... | (vc.getFilters())); |
891,516 | public TextFieldMapper build(MapperBuilderContext context) {<NEW_LINE>FieldType fieldType = TextParams.buildFieldType(index, store, indexOptions, norms, termVectors);<NEW_LINE>TextFieldType tft = buildFieldType(fieldType, context);<NEW_LINE>SubFieldInfo phraseFieldInfo = buildPhraseInfo(fieldType, tft);<NEW_LINE>SubFie... | mapper.name() + "]"); |
280,381 | public void bind(@NonNull CommitFileChanges commitFileChanges) {<NEW_LINE>CommitFileModel commit = commitFileChanges.getCommitFileModel();<NEW_LINE>toggle.setVisibility(commit.getPatch() == null ? View.GONE : View.VISIBLE);<NEW_LINE>name.setText(commit.getFilename());<NEW_LINE>changes.setText(SpannableBuilder.builder()... | commit.getStatus()))); |
282,805 | public BrokerCapacityInfo capacityForBroker(String rack, String host, int brokerId, long timeoutMs, boolean allowCapacityEstimation) throws BrokerCapacityResolutionException {<NEW_LINE>if (brokerId >= 0) {<NEW_LINE>BrokerCapacityInfo <MASK><NEW_LINE>if (capacity != null) {<NEW_LINE>return capacity;<NEW_LINE>} else {<NE... | capacity = capacitiesForBrokers.get(brokerId); |
1,588,163 | public void appendChildToStringBuffer(StringBuffer sb, int childIndex, int indent) {<NEW_LINE>ViewLayoutState child = getChild(childIndex);<NEW_LINE>View childView = child.getView();<NEW_LINE>Document doc = getDocument();<NEW_LINE>boolean isFly = child.isFlyweight();<NEW_LINE>boolean isEstimated = (childView instanceof... | append(childView.toString()); |
671,869 | void taskExpired(TimerPrimaryKey timerId) {<NEW_LINE>RuntimeTimerState timerState = getTimerState(timerId);<NEW_LINE>if (timerState != null) {<NEW_LINE>synchronized (timerState) {<NEW_LINE>if (timerState.isScheduled()) {<NEW_LINE>timerState.delivered();<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(... | Level.FINE, "null timer state for timer id " + timerId); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.