idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
937,384 | public Comment comment(String text) {<NEW_LINE>comment = new Comment(text);<NEW_LINE>comment.id = TicketModel.getSHA1(date.toString() + author + text);<NEW_LINE>// parse comment looking for ref #n<NEW_LINE>// TODO: Ideally set via settings<NEW_LINE>String x = "(?:ref|task|issue|bug)?[\\s-]*#(\\d+)";<NEW_LINE>try {<NEW_... | val = m.group(1); |
1,641,898 | public static IntLongVector mergeSparseLongVector(IndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>int dim = (int) PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(param.getMatrixId()).getColNum();<NEW_LINE>IntLongVector vector = VFactory.sparseLongVector(dim, param.size());<NEW_LINE>for (... | setRowId(param.getRowId()); |
1,520,431 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>botaoAbrir = new com.alee.laf.button.WebButton();<NEW_LINE>botaoNovoArquivo = new com.alee.laf.button.WebButton();<NEW_LINE... | , 4, 0, 4)); |
309,910 | public void deleteTopics(final Collection<String> topicsToDelete) {<NEW_LINE>if (topicsToDelete.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final DeleteTopicsResult deleteTopicsResult = adminClient.get().deleteTopics(topicsToDelete);<NEW_LINE>final Map<String, KafkaFuture<Void>> results = deleteTopicsResult.topic... | rootCause = ExceptionUtils.getRootCause(e); |
1,005,079 | private List<NameValueCountPair> groupByStartTimeMonth(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer(<MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root<ReadCo... | ).get(ReadCompleted.class); |
669,991 | public HashMap parse_vorbis_comment(RandomAccessFile fh, PageInfo.PageParser pp, long offset, long payload_len) throws IOException {<NEW_LINE>HashMap tags = new HashMap();<NEW_LINE>long last_byte = offset + payload_len;<NEW_LINE>// skip vendor string in format: [LEN][VENDOR_STRING] -> 4 = LEN = 32bit int<NEW_LINE>offse... | tag_raw.split("=", 2); |
1,399,167 | private void addDataToTable(Packet packet, int networkType, RowSetLoader rowWriter) {<NEW_LINE>rowWriter.start();<NEW_LINE>typeWriter.setString(packet.getPacketType());<NEW_LINE>timestampWriter.setTimestamp(Instant.ofEpochMilli(packet.getTimestamp()));<NEW_LINE>timestampMicroWriter.setLong(packet.getTimestampMicro());<... | setInt(packet.getSrc_port()); |
1,096,359 | public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException, IOException, ServletException {<NEW_LINE>String username = StringUtils.trimToNull(request.getParameter("u"));<NEW_LINE>String password = decrypt(StringUtils.trimToNull(request.getParamet... | (username == null || !passwordOrTokenPresent); |
1,085,761 | public void turnSwitch(OnOffValue state) {<NEW_LINE>logger.debug("setSwitchState called on: {}", MDualRelayImpl.class);<NEW_LINE>try {<NEW_LINE>if (state == OnOffValue.OFF) {<NEW_LINE>logger.debug("setSwitchState off");<NEW_LINE>getMbrick().getTinkerforgeDevice().setSelectedState(relayNum, false);<NEW_LINE>} else if (s... | this, TinkerforgeErrorHandler.TF_NOT_CONNECTION_EXCEPTION, e); |
247,736 | public TrackSourceSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrackSourceSettings trackSourceSettings = new TrackSourceSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context... | String currentParentElement = context.getCurrentParentElement(); |
690,541 | protected ShardStats shardOperation(IndicesStatsRequest request, ShardRouting shardRouting) {<NEW_LINE>IndexService indexService = indicesService.indexServiceSafe(shardRouting.shardId().getIndex());<NEW_LINE>IndexShard indexShard = indexService.getShard(shardRouting.shardId().id());<NEW_LINE>// if we don't have the rou... | set(CommonStatsFlags.Flag.Docs); |
34,662 | public Request<DetectKeyPhrasesRequest> marshall(DetectKeyPhrasesRequest detectKeyPhrasesRequest) {<NEW_LINE>if (detectKeyPhrasesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DetectKeyPhrasesRequest)");<NEW_LINE>}<NEW_LINE>Request<DetectKeyPhrasesRequest> request = new... | setContent(new StringInputStream(snippet)); |
1,511,019 | public void connectionClose(@NotNull AbstractService service, String reason) {<NEW_LINE>pauseTime((MySQLResponseService) service);<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.serviceTrace(service, "get-connection-closed");<NEW_LINE>TraceManager.finishSpan(service, traceObject);<NEW_LINE>if (checkClosed... | "backend connect " + reason + ", conn info:" + service); |
781,293 | public Bitmap transform(Bitmap source) {<NEW_LINE>int size = Math.min(source.getWidth(), source.getHeight());<NEW_LINE>int x = (source.getWidth() - size) / 2;<NEW_LINE>int y = (source.getHeight() - size) / 2;<NEW_LINE>Bitmap squaredBitmap = Bitmap.createBitmap(source, <MASK><NEW_LINE>if (!squaredBitmap.equals(source)) ... | x, y, size, size); |
1,299,026 | private Identity checkIdentity(Business business, PullResult result, Person person, Unit unit, User user) throws Exception {<NEW_LINE><MASK><NEW_LINE>EntityManager em = emc.get(Identity.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Identity> cq = cb.createQuery(Identity.class);<N... | EntityManagerContainer emc = business.entityManagerContainer(); |
862,135 | public RecommendedList[] joinTransform(RecommendedList thatList, int topN) {<NEW_LINE>int contextIdx = 0;<NEW_LINE>this.elementData.parallelStream().forEach(keyValue -> keyValue = null);<NEW_LINE>thatList.elementData.parallelStream().forEach(keyValue -> keyValue = null);<NEW_LINE>for (Integer key : contextMultimap.keyS... | RecommendedList[] { this, thatList }; |
1,212,613 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, 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.... | setId(view.getId()); |
1,820,756 | public void finishDelete(ConnectorSession session, ConnectorTableHandle tableHandle, Collection<Slice> fragments) {<NEW_LINE>HiveTableHandle handle = (HiveTableHandle) tableHandle;<NEW_LINE>checkArgument(handle.isAcidDelete(), "handle should be a delete handle, but is %s", handle);<NEW_LINE>requireNonNull(fragments, "f... | writeInfo.getWritePath(), partitionAndStatementIds); |
1,477,270 | public static com.liferay.portal.model.User updateUser(java.lang.String userId, java.lang.String password, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.String nickName, boolean male, java.util.Date birthday, java.lang.String emailAddress, java.lang.String smsId, java.lan... | liferay.portal.SystemException(e); |
206,977 | public String uploadRecordsToStage(final JdbcDatabase database, final SerializableBuffer recordsData, final String namespace, final String stageName, final String stagingPath) throws IOException {<NEW_LINE>AirbyteSentry.executeWithTracing("UploadRecordsToStage", () -> {<NEW_LINE>final List<Exception> exceptionsThrown =... | join(exceptionsThrown, "\n"))); |
1,189,724 | // Not set as Trivial: We want to trace intern calls.<NEW_LINE>@Override<NEW_LINE>public String intern(String value, boolean doForce) {<NEW_LINE>if (value == null) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>if (checkValues) {<NEW_LINE>String vMsgId = validate(value, valueType);<NEW_LINE>if (vMsgId != null) {<NEW_LINE... | internMap.put(value, value); |
1,838,042 | private void writeRelationshipGroupExtendedRecord(WritableChannel channel, RelationshipGroupRecord record) throws IOException {<NEW_LINE>byte flags = bitFlags(bitFlag(record.inUse(), Record.IN_USE.byteValue()), bitFlag(record.requiresSecondaryUnit(), Record.REQUIRE_SECONDARY_UNIT), bitFlag(record.hasSecondaryUnitId(), ... | putLong(record.getFirstOut()); |
992,748 | private Violation isFieldImmutable(Optional<Tree> tree, ImmutableSet<String> immutableTyParams, ClassSymbol classSym, ClassType classType, VarSymbol var, ViolationReporter reporter) {<NEW_LINE>if (bugChecker.isSuppressed(var)) {<NEW_LINE>return Violation.absent();<NEW_LINE>}<NEW_LINE>if (!var.getModifiers().contains(Mo... | state, Modifier.FINAL))); |
662,540 | private // lowestAsciiValue]<NEW_LINE>void buildText() {<NEW_LINE>verifyMinAndMaxAsciiValues();<NEW_LINE>text = new int[textLength];<NEW_LINE>int sentinel = 0;<NEW_LINE>// Construct the new text with the shifted values and the sentinels<NEW_LINE>for (int i = 0, k = 0; i < strings.length; i++) {<NEW_LINE>String str = st... | 1], 0, numSentinels)); |
963,457 | public static int run(String[] args) {<NEW_LINE>Args parameters = new Args();<NEW_LINE>JCommander jc = JCommander.newBuilder().addObject(parameters).build();<NEW_LINE>jc.parse(args);<NEW_LINE>if (parameters.help) {<NEW_LINE>jc.usage();<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>File dbDirectory = new File(parameters.databa... | res = new ArrayList<>(); |
802,839 | public static Expression expandAssignmentExpression(BinaryExpression binaryExpression) {<NEW_LINE>checkArgument(binaryExpression.getOperator() == BinaryOperator.ASSIGN);<NEW_LINE>List<VariableDeclarationFragment> temporaryVariables = new ArrayList<>();<NEW_LINE>Expression newLhs = decomposeLhs(binaryExpression.getLeftO... | ), returnedVariable.createReference()); |
1,788,513 | public PolicyExecutor maxQueueSize(int max) {<NEW_LINE>if (max == -1)<NEW_LINE>max = Integer.MAX_VALUE;<NEW_LINE>else if (max < 1)<NEW_LINE>throw new IllegalArgumentException(Integer.toString(max));<NEW_LINE>int increase;<NEW_LINE>synchronized (configLock) {<NEW_LINE>if (state.get() != State.ACTIVE)<NEW_LINE>throw new ... | globalExecutor.submit(callback.runnable); |
1,843,105 | private void validateProperKeyArgument(Object data, ASTPrimaryPrefix firstArgumentExpression) {<NEW_LINE>if (firstArgumentExpression == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// named variable<NEW_LINE>ASTName namedVar = firstArgumentExpression.getFirstDescendantOfType(ASTName.class);<NEW_LINE>// find where it's ... | ).getFirstDescendantOfType(ASTVariableInitializer.class); |
450,818 | public ActionResult changeSecret(@PathVariable String client_id, @RequestBody SecretChangeRequest change) {<NEW_LINE>ClientDetails clientDetails;<NEW_LINE>try {<NEW_LINE>clientDetails = clientDetailsService.retrieve(client_id, IdentityZoneHolder.get().getId());<NEW_LINE>} catch (InvalidClientException e) {<NEW_LINE>thr... | get().getId()); |
1,524,780 | private static boolean isConvertibleToMapType(Object sourceValue, BMapType targetType, List<TypeValuePair> unresolvedValues, String varName, List<String> errors, boolean allowAmbiguity) {<NEW_LINE>if (!(sourceValue instanceof MapValueImpl)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean returnVal = true;<NEW_LINE... | int initialErrorCount = errors.size(); |
996,145 | void loadProject() throws IOException {<NEW_LINE>File fileProject = getFile();<NEW_LINE>try (BufferedReader fileReader = Files.newBufferedReader(fileProject.toPath(), StandardCharsets.UTF_8)) {<NEW_LINE>Gson gson = GsonTools.getInstance();<NEW_LINE>JsonObject element = gson.fromJson(fileReader, JsonObject.class);<NEW_L... | get("version").getAsString(); |
1,674,594 | private Operation completeFileUploadOperation(final FileUploadToken token, final boolean commit) {<NEW_LINE>return new Operation() {<NEW_LINE><NEW_LINE>public void execute() {<NEW_LINE>String msg = constants_.fileUploadMessage((commit ? constants_.completingLabel() : constants_.cancellingLabel()));<NEW_LINE>final Comma... | ), error.getUserMessage()); |
1,501,481 | public void update(Command command) throws IllegalArgumentException {<NEW_LINE>BigDecimal newValue = null;<NEW_LINE>if (command instanceof DecimalType) {<NEW_LINE>newValue = ((<MASK><NEW_LINE>} else if (command instanceof IncreaseDecreaseType || command instanceof UpDownType) {<NEW_LINE>BigDecimal oldValue = getOldValu... | DecimalType) command).toBigDecimal(); |
1,552,875 | public static int pickBestTransparency(Image image) {<NEW_LINE>// Take a shortcut if possible<NEW_LINE>if (image instanceof BufferedImage) {<NEW_LINE>return pickBestTransparency((BufferedImage) image);<NEW_LINE>}<NEW_LINE>// Legacy method<NEW_LINE>// NOTE: This is a horrible memory hog<NEW_LINE>int width = image.getWid... | height = image.getHeight(null); |
1,656,945 | public synchronized void drawGlyphVector(SunGraphics2D sg2d, GlyphVector glyphVector, float x, float y) {<NEW_LINE>OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData();<NEW_LINE>Shape shape = glyphVector.getOutline(x, y);<NEW_LINE>// get final destination compositing bounds (after all transformations if ... | setStroke(sg2d.getStroke()); |
240,670 | private void handleTagChange(Content content, BlackboardArtifact bbArtifact) {<NEW_LINE>Case openCase;<NEW_LINE>try {<NEW_LINE>openCase = Case.getCurrentCaseThrows();<NEW_LINE>} catch (NoCurrentCaseException ex) {<NEW_LINE>LOGGER.log(Level.SEVERE, "Exception while getting open case.", ex);<NEW_LINE>return;<NEW_LINE>}<N... | bbArtifact, TskData.FileKnown.BAD); |
1,240,356 | public VirtualMachineTO implement(VirtualMachineProfile vm) {<NEW_LINE>BootloaderType bt = BootloaderType.PyGrub;<NEW_LINE>if (vm.getBootLoaderType() == BootloaderType.CD) {<NEW_LINE>bt = vm.getBootLoaderType();<NEW_LINE>}<NEW_LINE>VirtualMachineTO to = toVirtualMachineTO(vm);<NEW_LINE>UserVmVO userVmVO = userVmDao.fin... | getCpuSockets)).orElse(null); |
188,989 | static String removePadding(String encodedValue, Type parameter) {<NEW_LINE>if (parameter instanceof NumericType) {<NEW_LINE>if (parameter instanceof Ufixed || parameter instanceof Fixed) {<NEW_LINE>return encodedValue;<NEW_LINE>}<NEW_LINE>return encodedValue.substring(64 - ((NumericType) parameter).<MASK><NEW_LINE>} e... | getBitSize() / 4, 64); |
1,109,469 | public Collection<Object> convert(MappingContext<Object, Collection<Object>> context) {<NEW_LINE>Object source = context.getSource();<NEW_LINE>if (source == null)<NEW_LINE>return null;<NEW_LINE>Collection<Object> originalDestination = context.getDestination();<NEW_LINE>Collection<Object> destination = MappingContextHel... | Object sourceElement = iterator.next(); |
62,257 | private Request prepareRequest(CoapClient client, long c) {<NEW_LINE>if (!config.multipleObserveRequests && overallRequestsDownCounter.get() <= 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>countDown(overallRequestsDownCounter);<NEW_LINE>Request request;<NEW_LINE>int accept = TEXT_PLAIN;<NEW_LINE>byte[] payload = conf... | setConfirmable(config.messageType.con); |
1,655,360 | public void generate(final Module module, final Element element) {<NEW_LINE>if (!(module instanceof SimpleListExtension)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final SimpleListExtension sle = (SimpleListExtension) module;<NEW_LINE>addNotNullElement(element, <MASK><NEW_LINE>final Group[] groups = sle.getGroupFields();<... | "treatAs", sle.getTreatAs()); |
645,658 | private boolean execute(WorkItem wItem, @Nullable FileWriter outWriter) {<NEW_LINE>_logger.infof("work-id is %s\n", wItem.getId());<NEW_LINE>wItem.addRequestParam(BfConsts.ARG_LOG_LEVEL, _settings.getBatfishLogLevel());<NEW_LINE>wItem.addRequestParam(BfConsts.ARG_ALWAYS_INCLUDE_ANSWER_IN_WORK_JSON_LOG, "true");<NEW_LIN... | _logger.infof("Queuing result: %s\n", queueWorkResult); |
499,989 | private void sendRequest(Request request, RequestContext requestContext, Map<String, String> wireAttrs, TransportCallback<StreamResponse> callback) {<NEW_LINE>final TransportCallback<StreamResponse> decoratedCallback = decorateUserCallback(request, callback);<NEW_LINE>final NettyClientState state = _state.get();<NEW_LI... | MessageType.Type.REST, wireAttrs); |
587,424 | public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, "MysqlTableScan");<NEW_LINE>pw.item("name", getTable().getQualifiedName());<NEW_LINE>if (!filters.isEmpty()) {<NEW_LINE>RexExplainVisitor visitor <MASK><NEW_LINE>filters.get(0).accept(visitor);<NEW_LINE>pw.item("filter", vi... | = new RexExplainVisitor(getNodeForMetaQuery()); |
1,481,090 | public static QueryCrackEventResponse unmarshall(QueryCrackEventResponse queryCrackEventResponse, UnmarshallerContext context) {<NEW_LINE>queryCrackEventResponse.setRequestId(context.stringValue("QueryCrackEventResponse.requestId"));<NEW_LINE>queryCrackEventResponse.setCode(context.stringValue("QueryCrackEventResponse.... | ("QueryCrackEventResponse.Data.List[" + i + "].InstanceId")); |
512,050 | private Table buildTable(RestRequest request, ClusterStateResponse clusterStateResponse, String patternString) {<NEW_LINE>Table table = getTableWithHeader(request);<NEW_LINE>Metadata metadata = clusterStateResponse.getState().metadata();<NEW_LINE>for (ObjectObjectCursor<String, IndexTemplateMetadata> entry : metadata.t... | ComposableIndexTemplate template = entry.getValue(); |
363,163 | public void updateFlatrateTermBillBPartner(@NonNull final FlatrateTermBillPartnerRequest request) {<NEW_LINE>final I_C_Flatrate_Term term = flatrateDAO.getById(request.getFlatrateTermId());<NEW_LINE>final int bPartnerId = request.getBillBPartnerId().getRepoId();<NEW_LINE>term.setBill_BPartner_ID(bPartnerId);<NEW_LINE>t... | (bPartnerDAO.getById(bPartnerId)); |
197,430 | private void generateRelayConfig(String schemaRegistryLocation, String dbName, String uri, String outputDir) throws Exception {<NEW_LINE>List<String> srcs = _manager.getManagedSourcesForDB(dbName.trim().toLowerCase(Locale.ENGLISH));<NEW_LINE>if (null == srcs) {<NEW_LINE>String error = "No Sources found for database (" ... | uri, outputDir, addSrcs, _manager); |
1,205,410 | public void execute() {<NEW_LINE>EntityPlayer player <MASK><NEW_LINE>if (DarkSteelController.isNightVisionUpgradeEquipped(player)) {<NEW_LINE>boolean isActive = !StateController.isActive(player, NightVisionUpgrade.INSTANCE);<NEW_LINE>if (isActive) {<NEW_LINE>SoundHelper.playSound(player.world, player, SoundRegistry.NIG... | = Minecraft.getMinecraft().player; |
17,702 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// Views<NEW_LINE>mStatusTextView = findViewById(R.id.status);<NEW_LINE>// Button listeners<NEW_LINE>findViewById(R.id.sign_in_button).setOnClickListener(this);<NEW... | signInButton.setSize(SignInButton.SIZE_STANDARD); |
1,084,874 | @Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Set the specified service metadata. Caller must have update privileges on the sys.auth domain.")<NEW_LINE>public void putServiceIdentitySystemMeta(@Parameter(description = "name of the domain", requir... | "." + domain + "", null); |
642,101 | public static MDLocalVariable create38(long[] args, MetadataValueList md) {<NEW_LINE>// this apparently exists for historical reasons...<NEW_LINE>final int argOffset = (args.length > OFFSET_INDICATOR && ((args[ARGINDEX_38_TAG_ALIGNMENT] & ALIGNMENT_INDICATOR) <MASK><NEW_LINE>final long line = args[ARGINDEX_38_LINE + ar... | == 0)) ? 1 : 0; |
816,528 | private static boolean isImmutableType(CompilationInfo info, TypeMirror m, Preferences p) {<NEW_LINE>if (m == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (m.getKind().isPrimitive() || !isValidType(m)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (Utilities.isPrimitiveWrapperType(m)) {<NEW_LINE>return true;<... | DeclaredType) m).asElement(); |
1,734,906 | // End of variables declaration//GEN-END:variables<NEW_LINE>private void initAccesibility() {<NEW_LINE>addFriendButton.getAccessibleContext().setAccessibleDescription(getMessage("ACSD_AddFriendButton"));<NEW_LINE>removeFriendButton.getAccessibleContext().setAccessibleDescription(getMessage("ACSD_RemoveFriendButton"));<... | .setAccessibleDescription(getMessage("ACSD_EagerMod")); |
793,668 | final DescribePartnerEventSourceResult executeDescribePartnerEventSource(DescribePartnerEventSourceRequest describePartnerEventSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePartnerEventSourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecut... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
520,842 | public void applyEnterCodegen(CodegenMethod method, CodegenClassScope classScope, CodegenNamedMethods namedMethods, AggregationClassNames classNames) {<NEW_LINE>method.getBlock().apply(instblock(classScope, "qAggregationGroupedApplyEnterLeave", constantTrue(), constant(aggGroupByDesc.getNumMethods()), constant(aggGroup... | MEMBER_AGGREGATORSPERGROUP, "get", REF_GROUPKEY))); |
696,550 | public boolean checkAndApply(SameDiff sd, OptimizationHelper helper, SameDiffOp op, ArrayHolder constantArrays, ArrayHolder variablesArrays) {<NEW_LINE>if (!(op.getOp() instanceof Permute))<NEW_LINE>return false;<NEW_LINE>List<String> inputs = op.getInputsToOp();<NEW_LINE>String input = inputs.get(0);<NEW_LINE>List<Str... | toFuse = new ArrayList<>(); |
63,945 | private boolean addWayTag(OSMTag osmTag, String[] equivalentValues) {<NEW_LINE>if (this.stringToWayTag.containsKey(osmTag.tagKey())) {<NEW_LINE>LOGGER.warning("duplicate osm-tag found in tag-mapping configuration (ignoring): " + osmTag);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>LOGGER.finest("adding way: " + osmTag);... | osmTag.tagKey(), osmTag); |
253,831 | static Stream<Edge> generateRules_PreOutVrf_PreOutInterfaceDisposition(Predicate<String> includedNode, Map<String, Map<String, Map<String, BDD>>> dispositionBddMap, StateExprConstructor2 preOutVrfConstructor, StateExprConstructor2 preOutInterfaceDispositionConstructor, BiFunction<String, String, BDD> interfaceOutConstr... | preOutVrfConstructor.apply(hostname, vrfName); |
939,448 | private String refreshAccessToken(Account account) {<NEW_LINE>String refreshToken = mRedditDataRoomDatabase.accountDao().getCurrentAccount().getRefreshToken();<NEW_LINE>RedditAPI api = mRetrofit.create(RedditAPI.class);<NEW_LINE>Map<String, String> params = new HashMap<>();<NEW_LINE>params.put(APIUtils.GRANT_TYPE_KEY, ... | account.getAccountName(), newAccessToken); |
665,400 | public S3LogsConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3LogsConfiguration s3LogsConfiguration = new S3LogsConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
421,550 | public void testQueueNameQUEUE_B(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE><MASK><NEW_LINE>Queue queue = jmsContext.createQueue("QUEUE/queue");<NEW_LINE>JMSProducer jmsProducer = jmsContext.createProducer();<NEW_LINE>String text = "testQueueNameQUEUE_B";<NEW_LINE>jmsProducer.... | JMSContext jmsContext = jmsQCFBindings.createContext(); |
1,437,928 | private void onClickList(View v) {<NEW_LINE>final String[] files = getFileList();<NEW_LINE>if (files == null || files.length < 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mIsRunning) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mIsRunning = true;<NEW_LINE>setButtonsEnabledState();<NEW_LINE>final AlertDialog.Builder builder... | setTitle(R.string.select_file); |
566,859 | public LineWrapper append(CharSequence cs) {<NEW_LINE>Mode mode = Mode.INIT;<NEW_LINE>int b = 0;<NEW_LINE>for (int f = 0; f < cs.length(); f++) {<NEW_LINE>char c = cs.charAt(f);<NEW_LINE>if (c == '\n') {<NEW_LINE>if (mode == Mode.SPACE) {<NEW_LINE>appendSpace(cs.subSequence(b, f));<NEW_LINE>} else if (mode == Mode.WORD... | .subSequence(b, f)); |
589,760 | public void printSum(ImageType.Family family) {<NEW_LINE>String bitWise = input.getBitWise();<NEW_LINE>String columns = family == ImageType.Family.INTERLEAVED ? "*img.numBands" : "";<NEW_LINE><MASK><NEW_LINE>String numTo = input.getSumNumberToType();<NEW_LINE>out.print("\tpublic static " + sumType + " sum( " + input.ge... | String sumType = input.getSumType(); |
468,465 | private List<Cctop119V> createCctop119VList(final List<EDICctop119VType> xmlCctop119VList, final DecimalFormat decimalFormat) {<NEW_LINE>final List<Cctop119V> cctop119VList = new ArrayList<>();<NEW_LINE>for (final EDICctop119VType xmlCctop119V : xmlCctop119VList) {<NEW_LINE>if (isEmpty(xmlCctop119V.getGLN())) {<NEW_LIN... | setGln(xmlCctop119V.getGLN()); |
1,729,663 | void fcfs(int[] arr, int head, int size) {<NEW_LINE>int seek_count = 0;<NEW_LINE>int distance, cur_track;<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>cur_track = arr[i];<NEW_LINE>// calculate absolute distance<NEW_LINE>distance = Math.abs(cur_track - head);<NEW_LINE>System.out.println("Head movement: " + cur_tra... | System.out.println(" "); |
553,222 | public void draw(GenericCrafterBuild build) {<NEW_LINE>Draw.rect(build.block.region, <MASK><NEW_LINE>Drawf.liquid(middle, build.x, build.y, build.warmup, plantColor);<NEW_LINE>Draw.color(bottomColor, plantColorLight, build.warmup);<NEW_LINE>rand.setSeed(build.pos());<NEW_LINE>for (int i = 0; i < bubbles; i++) {<NEW_LIN... | build.x, build.y); |
718,749 | private void updateStats() {<NEW_LINE>final Runtime runtime = Runtime.getRuntime();<NEW_LINE>final long heapMemory = runtime.totalMemory() - runtime.freeMemory();<NEW_LINE>final StringBuilder sb = new StringBuilder(DEFAULT_MESSAGE_SIZE);<NEW_LINE>// When changing format of output below, make sure to sync "run_compariso... | mPerfListener.getCancelledRequests(), " cncld\n"); |
1,352,491 | public com.amazonaws.services.costexplorer.model.UnresolvableUsageUnitException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.costexplorer.model.UnresolvableUsageUnitException unresolvableUsageUnitException = new com.amazonaws.services.costexplorer.model.Unres... | String currentParentElement = context.getCurrentParentElement(); |
1,587,832 | public ApplicationLayerAutomaticResponseConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApplicationLayerAutomaticResponseConfiguration applicationLayerAutomaticResponseConfiguration = new ApplicationLayerAutomaticResponseConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParen... | int originalDepth = context.getCurrentDepth(); |
1,039,416 | public static void decompress(DataInput in, byte[] out, int len) throws IOException {<NEW_LINE>final int saved = len >>> 2;<NEW_LINE>int compressedLen = len - saved;<NEW_LINE>// 1. Copy the packed bytes<NEW_LINE>in.<MASK><NEW_LINE>// 2. Restore the leading 2 bits of each packed byte into whole bytes<NEW_LINE>for (int i... | readBytes(out, 0, compressedLen); |
1,189,069 | private void resizeChildOfContent() {<NEW_LINE>int newHeight = calculateUsedHeight();<NEW_LINE>if (newHeight != oldHeight && mChild != null && frameLayoutParams != null) {<NEW_LINE>int sipHeight = mChild.getRootView().getHeight();<NEW_LINE>int heightDiff = sipHeight - newHeight;<NEW_LINE>if (heightDiff > (sipHeight / 4... | .height = frameLayoutParams.height + notificationBarHeight; |
154,018 | private String applySubstitutions(String originalValue, Iterable<Substitution> substitutions, Object[] methodArguments) {<NEW_LINE>String result = originalValue;<NEW_LINE>if (methodArguments == null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>for (Substitution substitution : substitutions) {<NEW_LINE>final int subst... | UrlEscapers.PATH_ESCAPER.escape(substitutionValue); |
626,034 | public GetAnomalyMonitorsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAnomalyMonitorsResult getAnomalyMonitorsResult = new GetAnomalyMonitorsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | )).unmarshall(context)); |
1,359,579 | private List<ReplicaId> createNewInstance(DataNodeConfig dataNodeConfig) throws Exception {<NEW_LINE>String instanceName = dataNodeConfig.getInstanceName();<NEW_LINE>logger.<MASK><NEW_LINE>AmbryDataNode datanode = new AmbryServerDataNode(dataNodeConfig.getDatacenterName(), clusterMapConfig, dataNodeConfig.getHostName()... | info("Adding node {} and its disks and replicas in {}", instanceName, dcName); |
685,775 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>mRootView = inflater.inflate(R.layout.fragment_main, container, false);<NEW_LINE>mRootView.findViewById(R.id.btnScanQRCode).setOnClickListener(new OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public... | .getQueryEntryIntent(null), 124); |
1,111,034 | public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception {<NEW_LINE>// Input validation<NEW_LINE>if (remoteRepo != null && toMavenCentral) {<NEW_LINE>throw new CommandLineException("please specify only a single remote repository to publish to.\n" + "Use " + REMOTE_REPO_LONG_ARG + " <URL> or " + TO_MA... | ExitCode exitCode = buildRunResult.getExitCode(); |
486,243 | private int fillMetaDbDataSourceInfo(ArrayResultCursor result, int index) {<NEW_LINE>DataSource dataSource = MetaDbDataSource.getInstance().getDataSource();<NEW_LINE>if (dataSource instanceof MetaDbDataSource.MetaDbDataSourceHaWrapper) {<NEW_LINE>MetaDbDataSource.MetaDbDataSourceHaWrapper dsHaWrapper = (MetaDbDataSourc... | XConnectionManager m = XConnectionManager.getInstance(); |
1,443,690 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetOutputFirstWhenThen());<NEW_LINE>execs.add(new ResultSet1NoneNoHavingNoJoin());<NEW_LINE>execs.add(new ResultSet2NoneNoHavingJoin());<NEW_LINE>execs<MASK><NEW_L... | .add(new ResultSet3NoneHavingNoJoin()); |
58,978 | public Processor asSetPropertiesToExchangeProcessor() {<NEW_LINE>return new Processor() {<NEW_LINE><NEW_LINE>private final HeaderExpression headerFileName = new HeaderExpression(Exchange.FILE_NAME);<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void process(Exchange exchange) throws Exception {<NEW_LINE>// NOTE: use the... | exchange.setProperty(CONTEXT_DELIVERY_VIA_RULE, DeliveryViaRule); |
1,112,186 | private void prepareDatabase() throws ClassNotFoundException, SQLException, UnknownPoiCategoryException {<NEW_LINE>Class.forName("org.sqlite.JDBC");<NEW_LINE>this.conn = DriverManager.getConnection("jdbc:sqlite:" + this.configuration.<MASK><NEW_LINE>this.conn.setAutoCommit(false);<NEW_LINE>Statement stmt = this.conn.cr... | getOutputFile().getAbsolutePath()); |
940,225 | protected void sync() {<NEW_LINE>inSync = true;<NEW_LINE>WSDLComponent secBinding = null;<NEW_LINE>WSDLComponent topSecBinding = SecurityPolicyModelHelper.getSecurityBindingTypeElement(comp);<NEW_LINE>WSDLComponent protTokenKind = SecurityTokensModelHelper.getTokenElement(topSecBinding, ProtectionToken.class);<NEW_LINE... | , SecurityTokensModelHelper.getIssuedKeyType(token)); |
1,275,359 | public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsResponse.RequestId"));<NEW_LINE>describeSnapshotsResponse.setTotalCount<MASK><NEW_LINE>describeSnapshotsR... | (_ctx.integerValue("DescribeSnapshotsResponse.TotalCount")); |
862,384 | private Point parseTag(String[] text, int lineNo, final int nLines, Point position) {<NEW_LINE>// find end of tag<NEW_LINE>final Point endTag = findChar(text, '>', position);<NEW_LINE>final boolean incompleteTag = endTag.getLineNo() >= nLines;<NEW_LINE>// get tag id (one word)<NEW_LINE>final String tagId;<NEW_LINE>if (... | getColumnNo() - 1) == '/'; |
1,271,844 | private void initDispatchTable() {<NEW_LINE>assert (dispatchTable == null);<NEW_LINE>// we don't do super.getDispatchTable() because we are not<NEW_LINE>// interested in any of super classes' disptcah table entries.<NEW_LINE>Map<String, String> table = new HashMap<>();<NEW_LINE>// the values being put into the map repr... | put(PersistenceTagNames.MAPPING_FILE, "addMappingFile"); |
1,008,412 | private void resumeAllRegistrations(DatabusRequest request) throws IOException {<NEW_LINE>LOG.info("REST call to resume all registrations");<NEW_LINE>Collection<DatabusRegistration> regs = _client.getAllRegistrations();<NEW_LINE>if (null != regs) {<NEW_LINE>for (DatabusRegistration r : regs) {<NEW_LINE>if (r.getState()... | writeJsonObjectToResponse(getAllTopLevelRegStates(), request); |
1,548,076 | private void findOtherStuff() {<NEW_LINE>try {<NEW_LINE>// find the domain name and/or clusters, if it is there<NEW_LINE>// If we bump into the domain end tag first -- no sweat<NEW_LINE>//<NEW_LINE>// notice how everything is MUCH more difficult to understand because<NEW_LINE>// we are going through domain.xml in one l... | String name = parser.getLocalName(); |
1,727,937 | public double bearingTo(final IGeoPoint other) {<NEW_LINE>final double lat1 = Math.toRadians(this.mLatitude);<NEW_LINE>final double long1 = Math.toRadians(this.mLongitude);<NEW_LINE>final double lat2 = Math.toRadians(other.getLatitude());<NEW_LINE>final double long2 = Math.toRadians(other.getLongitude());<NEW_LINE>fina... | ) * Math.cos(delta_long); |
405 | private void loadNode1197() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ConditionType_ConditionRefresh_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), ... | this.nodeManager.addNode(node); |
1,577,855 | private void renderMemoryInfo() {<NEW_LINE>final MemoryUsage heapusage = ManagementFactory<MASK><NEW_LINE>final MemoryUsage offheapusage = ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage();<NEW_LINE>final float pctmemory = (float) heapusage.getUsed() / heapusage.getMax();<NEW_LINE>String memory = String.forma... | .getMemoryMXBean().getHeapMemoryUsage(); |
1,143,235 | protected Street readIntersectedStreet(City c, int street24X, int street24Y, List<String> additionalTagsTable) throws IOException {<NEW_LINE>int x = 0;<NEW_LINE>int y = 0;<NEW_LINE>Street s = new Street(c);<NEW_LINE>LinkedList<String> additionalTags = null;<NEW_LINE>while (true) {<NEW_LINE>int t = codedIS.readTag();<NE... | setEnName(codedIS.readString()); |
1,465,069 | public com.amazonaws.services.dynamodbv2.model.InvalidExportTimeException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dynamodbv2.model.InvalidExportTimeException invalidExportTimeException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = cont... | dynamodbv2.model.InvalidExportTimeException(null); |
1,165,964 | protected int runWithJob(final Namespace options, final HeliosClient client, final PrintStream out, final boolean json, final Job job, final BufferedReader stdin) throws ExecutionException, InterruptedException, IOException {<NEW_LINE>final JobId jobId = job.getId();<NEW_LINE>final boolean all = options.getBoolean(allA... | resolver = HostResolver.create(client); |
1,271,256 | public int onStartCommand(Intent intent, int flags, final int startId) {<NEW_LINE>Bundle b = new Bundle();<NEW_LINE>isRootExplorer = <MASK><NEW_LINE>ArrayList<HybridFileParcelable> files = intent.getParcelableArrayListExtra(TAG_COPY_SOURCES);<NEW_LINE>String targetPath = intent.getStringExtra(TAG_COPY_TARGET);<NEW_LINE... | intent.getBooleanExtra(TAG_IS_ROOT_EXPLORER, false); |
979,938 | public static void reportDurations(Event currentRecord, boolean result, long sendTime, Map<String, String> dimensions, long msgTime, SortMetricItemSet metricItemSet) {<NEW_LINE>SortMetricItem metricItem = metricItemSet.findMetricItem(dimensions);<NEW_LINE>if (result) {<NEW_LINE>metricItem.sendSuccessCount.incrementAndG... | metricItem.sinkDuration.addAndGet(sinkDuration); |
1,435,985 | private boolean processMetadataFilters() {<NEW_LINE>if (_cmd.hasOption(KEYS_OPT_NAME)) {<NEW_LINE>String keysOpt = _cmd.getOptionValue(KEYS_OPT_NAME);<NEW_LINE>String[] optParts = keysOpt.split(",");<NEW_LINE>if (optParts.length > 2) {<NEW_LINE>printError("invalid key range specifier:" + keysOpt, true);<NEW_LINE>return... | printError("invalid SCN range specifier:" + scnsOpt, true); |
35,438 | public synchronized boolean loadBitmapAsync(final Context context, Runnable after) {<NEW_LINE>if (getBitmap() != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>waitingForLoad.add(after);<NEW_LINE>if (loadStarted)<NEW_LINE>return true;<NEW_LINE>loadStarted = true;<NEW_LINE>if (getDescriptor() != null) {<NEW_LINE>new... | "BitmapDescriptor", "Start loading " + getDescriptor()); |
860,040 | private static ElementAccessor createVisibleAccessor(ModeStructureSnapshot.ElementSnapshot snapshot) {<NEW_LINE>if (snapshot == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (snapshot instanceof ModeStructureSnapshot.EditorSnapshot) {<NEW_LINE>// Is always visible.<NEW_LINE>ModeStructureSnapshot.EditorSnapshot e... | splitSnapshot = (ModeStructureSnapshot.SplitSnapshot) snapshot; |
825,264 | private Operand buildOpElementAsgnWith(OpElementAsgnNode opElementAsgnNode, Boolean truthy) {<NEW_LINE>Node receiver = opElementAsgnNode.getReceiverNode();<NEW_LINE>CallType callType = receiver instanceof SelfNode ? FUNCTIONAL : CallType.NORMAL;<NEW_LINE>Operand array = buildWithOrder(receiver, opElementAsgnNode.contai... | , array, argList, block)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.