idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,210,990 | private void handleViewer(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException {<NEW_LINE>final Page page = newPage(req, resp, session, "azkaban/viewer/jobsummary/velocity/jobsummary.vm");<NEW_LINE>page.add("viewerPath", this.viewerPath);<NEW_LINE>page.add("viewer... | "projectName", project.getName()); |
309,106 | public static synchronized void addHeartbeat(ClientContext ctx, MasterInquireClient inquireClient) {<NEW_LINE>Preconditions.checkNotNull(ctx);<NEW_LINE>Preconditions.checkNotNull(inquireClient);<NEW_LINE>// Lazily initializing the executor service for first heartbeat<NEW_LINE>// Relies on the method being synchronized<... | LOG.debug("Registered metrics heartbeat with appId: {}", sAppId); |
538,962 | public void marshall(ReviewActionDetail reviewActionDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reviewActionDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(reviewActionDetail.getActionId... | e.getMessage(), e); |
1,609,295 | public void updateView() {<NEW_LINE>long connectionID = mService.getConnectionID();<NEW_LINE>VpnProfile profile = mService.getProfile();<NEW_LINE><MASK><NEW_LINE>ErrorState error = mService.getErrorState();<NEW_LINE>String name = "";<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (profile... | State state = mService.getState(); |
429,255 | public RFuture<V> putAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdleTime, TimeUnit maxIdleUnit) {<NEW_LINE>checkKey(key);<NEW_LINE>checkValue(value);<NEW_LINE>if (ttl < 0) {<NEW_LINE>throw new IllegalArgumentException("ttl can't be negative");<NEW_LINE>}<NEW_LINE>if (maxIdleTime < 0) {<NEW_LINE>throw new... | ttlTimeout, maxIdleTimeout, maxIdleDelta, ttlTimeoutDelta); |
471,171 | // GEN-LAST:event_formattersMoveDownButtonActionPerformed<NEW_LINE>private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_editButtonActionPerformed<NEW_LINE>int index = formattersList.getSelectedIndex();<NEW_LINE>if (index < 0)<NEW_LINE>return;<NEW_LINE>DefaultListModel mod... | new Dimension(w, h)); |
1,525,185 | public static ConfigDef baseConfigDef() {<NEW_LINE>return new ConfigDef().define(GENERALIZED_SUM_TYPE_SUPPORT_CONFIG, ConfigDef.Type.BOOLEAN, GENERALIZED_SUM_TYPE_SUPPORT_DEFAULT, ConfigDef.Importance.MEDIUM, GENERALIZED_SUM_TYPE_SUPPORT_DOC).define(ENHANCED_AVRO_SCHEMA_SUPPORT_CONFIG, ConfigDef.Type.BOOLEAN, ENHANCED_... | ConfigDef.Importance.LOW, DISCARD_TYPE_DOC_DEFAULT_DOC); |
842,041 | public void create() {<NEW_LINE>if (array != null) {<NEW_LINE>Object[] newArray = (Object[]) Array.newInstance(getConvertedType(), array.length + 1);<NEW_LINE>System.arraycopy(array, 0, newArray, 0, array.length);<NEW_LINE>// throw away the old array!<NEW_LINE>array = newArray;<NEW_LINE>array[array.<MASK><NEW_LINE>} el... | length - 1] = defaultValue(); |
645,390 | protected void groupElements() throws JavaModelException {<NEW_LINE>this.childrenToRemove = new HashMap(1);<NEW_LINE>int uniqueCUs = 0;<NEW_LINE>for (int i = 0, length = this.elementsToProcess.length; i < length; i++) {<NEW_LINE>IJavaElement e = this.elementsToProcess[i];<NEW_LINE>ICompilationUnit cu = getCompilationUn... | childrenToRemove.put(cu, region); |
1,629,510 | public void run() {<NEW_LINE>long bootstrapStartingMs = _time.milliseconds();<NEW_LINE>if (_clearMetrics) {<NEW_LINE>// Clear the metrics if user asked to do so.<NEW_LINE>_metricSampleAggregator.clear();<NEW_LINE>}<NEW_LINE>if (_mode == BootstrapMode.RANGE) {<NEW_LINE>LOG.info("Load monitor is bootstrapping for time ra... | warn("Bootstrap encountered error when sampling from {} to {}, skipping...", samplingPeriodStartMs, samplingPeriodEndMs); |
1,065,936 | final DeprecateThingTypeResult executeDeprecateThingType(DeprecateThingTypeRequest deprecateThingTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deprecateThingTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new DeprecateThingTypeResultJsonUnmarshaller()); |
1,791,716 | public void configure(Context context) {<NEW_LINE>logger.info("configure from context: {}", context);<NEW_LINE>configManager = ConfigManager.getInstance();<NEW_LINE>topicProperties = configManager.getTopicProperties();<NEW_LINE>masterHostAndPortLists = configManager.getMqClusterUrl2Token().keySet();<NEW_LINE>tubeConfig... | checkArgument(badEventQueueSize > 0, "badEventQueueSize must be > 0"); |
1,659,171 | public void generate(NodeLIRBuilderTool builder, ArithmeticLIRGeneratorTool lirGen) {<NEW_LINE>OCLBuiltinTool gen = ((OCLArithmeticTool) lirGen).getGen().getOCLBuiltinTool();<NEW_LINE>Value x = builder.operand(getX());<NEW_LINE>Value y = builder.operand(getY());<NEW_LINE>Value z = <MASK><NEW_LINE>LIRKind lirKind = buil... | builder.operand(getZ()); |
1,366,788 | public final And_exprContext and_expr() throws RecognitionException {<NEW_LINE>And_exprContext _localctx = new And_exprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 126, RULE_and_expr);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1173);<NEW_LINE>_localc... | .stop) : null))); |
1,050,153 | public TypeConverter<JsonArray, Iterable> arrayNodeToIterableConverter() {<NEW_LINE>return (node, targetType, context) -> {<NEW_LINE>Collection<Object> results;<NEW_LINE>if (targetType.isAssignableFrom(ArrayList.class)) {<NEW_LINE>results = new ArrayList<>();<NEW_LINE>} else if (targetType.isAssignableFrom(LinkedHashSe... | > typeVariables = context.getTypeVariables(); |
527,360 | public NodePropertyOverride unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NodePropertyOverride nodePropertyOverride = new NodePropertyOverride();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
151,492 | public void launchGame(Profile profile, Account account, AuthenticationResponse auth) {<NEW_LINE>Log.i(TAG, "launchGame: Launching in " + gameDirectory);<NEW_LINE>File nativeDirectory = new File(gameDirectory, "versions/" + profile.getVersion().getId() + "/" + profile.getVersion().getId() + "-natives-" + System.nanoTim... | getVersion().getJvmArguments()); |
926,698 | private void filterReads(final FilteringSamIterator filteringIterator) {<NEW_LINE>// get OUTPUT header from INPUT and overwrite it if necessary<NEW_LINE>final SAMFileHeader fileHeader = SamReaderFactory.makeDefault().referenceSequence(REFERENCE_SEQUENCE).getFileHeader(INPUT);<NEW_LINE>final SAMFileHeader.SortOrder inpu... | , (int) 1e6, "Written"); |
1,320,536 | public com.amazonaws.services.codepipeline.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codepipeline.model.ValidationException validationException = new com.amazonaws.services.codepipeline.model.ValidationException(null);<NEW_LINE>in... | JsonToken token = context.getCurrentToken(); |
681,700 | protected void addCompletions(@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) {<NEW_LINE>PsiElement position = parameters.getPosition();<NEW_LINE>Set<ErlangExpressionType> expectedTypes = ErlangCompletionUtil.expectedArgumentTypes(position);<NEW_LINE>if... | varType = ErlangExpressionType.create(right); |
122,813 | public static String asLink(String baseURL, String repository, String branch, String path) {<NEW_LINE>if (baseURL.length() > 0 && baseURL.charAt(baseURL.length() - 1) == '/') {<NEW_LINE>baseURL = baseURL.substring(0, baseURL.length() - 1);<NEW_LINE>}<NEW_LINE>if (repository.length() > 0 && repository.charAt(repository.... | path.replace('/', fsc); |
987,193 | public void calculateDerivedStatistics() {<NEW_LINE>this.FWD_ERROR_RATE = MIN_ERROR;<NEW_LINE>final long fwdBases = this.FWD_CXT_REF_BASES + this.FWD_CXT_ALT_BASES;<NEW_LINE>if (fwdBases > 0) {<NEW_LINE>final double fwdErr = this.FWD_CXT_ALT_BASES / (double) fwdBases;<NEW_LINE>this.FWD_ERROR_RATE = Math.max(MIN_ERROR, ... | this.FWD_ERROR_RATE - this.REV_ERROR_RATE); |
815,519 | private void summarize() {<NEW_LINE>System.out.println("\n************************************************\n");<NEW_LINE>System.out.println("\tTotal # of locales processed:\t\t" + localeHashtable.size());<NEW_LINE>System.out.println("\tTotal # of NLS Files processed:\t\t" + totalNLSFilesFound);<NEW_LINE>System.out.prin... | out.println("\tTotal # of properties files generated:\t" + totalPropertiesFilesCreated); |
140,021 | private static SessionFactory createSessionFactory() {<NEW_LINE>Map<String, String> settings = new HashMap<>();<NEW_LINE>settings.put(URL, System.getenv("DB_URL"));<NEW_LINE>settings.put(DIALECT, "org.hibernate.dialect.PostgreSQLDialect");<NEW_LINE>settings.put(DEFAULT_SCHEMA, "shipping");<NEW_LINE>settings.put(DRIVER,... | applySettings(settings).build(); |
7,102 | protected void encodeCustomLayoutHelper(FacesContext context, SelectOneRadio radio, boolean addId) throws IOException {<NEW_LINE><MASK><NEW_LINE>writer.startElement("span", radio);<NEW_LINE>if (addId) {<NEW_LINE>writer.writeAttribute("id", radio.getClientId(context), "id");<NEW_LINE>}<NEW_LINE>writer.writeAttribute("cl... | ResponseWriter writer = context.getResponseWriter(); |
1,463,379 | final DisassociateOpsItemRelatedItemResult executeDisassociateOpsItemRelatedItem(DisassociateOpsItemRelatedItemRequest disassociateOpsItemRelatedItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateOpsItemRelatedItemRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEven... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,459,119 | private static NonnullPair<Filter, Integer> convertToCnfWithLimit(Filter current, int maxCNFFilterLimit) throws CNFFilterExplosionException {<NEW_LINE>if (current instanceof NotFilter) {<NEW_LINE>NonnullPair<Filter, Integer> result = convertToCnfWithLimit(((NotFilter) current).getBaseFilter(), maxCNFFilterLimit);<NEW_L... | ) child).getFilters()); |
252,989 | private void printStatusMessages(TestSuiteChromosome suite, int coveredLines, double fitness) {<NEW_LINE>if (coveredLines > maxCoveredLines) {<NEW_LINE>maxCoveredLines = coveredLines;<NEW_LINE>logger.info("(Lines) Best individual covers " + coveredLines + "/" + this.numLines + " lines");<NEW_LINE>logger.info("Fitness: ... | "/" + this.numLines + " lines"); |
1,703,395 | public static PathIdentifier parse(ConfigNamespace root, String path) {<NEW_LINE>Preconditions.checkNotNull(root);<NEW_LINE>if (StringUtils.isBlank(path))<NEW_LINE>return new PathIdentifier(root, new String[] {}, false);<NEW_LINE>String[] components = getComponents(path);<NEW_LINE>Preconditions.checkArgument(components... | .getChild(components[i]); |
664,013 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_live_updates, container, false);<NEW_LINE>createToolbar(view.findViewById(R.id.app_bar));<NEW_LINE>listView = view.findViewById(android.R.id.list);<NEW_LIN... | setTextSecondaryColor(app, title, nightMode); |
457,601 | public static JBPopup createPopup(final List<? extends GotoRelatedItem> items, final String title) {<NEW_LINE>Object[] elements = new <MASK><NEW_LINE>// todo[nik] move presentation logic to GotoRelatedItem class<NEW_LINE>final Map<PsiElement, GotoRelatedItem> itemsMap = new HashMap<PsiElement, GotoRelatedItem>();<NEW_L... | Object[items.size()]; |
445,092 | private static void registerAlloyRecipe(Pair<Things, NNList<Things>> alloy) {<NEW_LINE>final Things result = NullHelper.notnull(alloy.getLeft(), "missing result item stack in alloy recipe");<NEW_LINE>final NNList<Things> input = alloy.getRight();<NEW_LINE>FluidStack fluidResult = getFluidForItems(result);<NEW_LINE>if (... | FluidStack[input.size()]; |
1,794,541 | private int updatingConceptProperties(List<MHRConcept> concepts, int payrollId) {<NEW_LINE><MASK><NEW_LINE>concepts.stream().filter(concept -> concept != null).forEach(concept -> {<NEW_LINE>// Update Concept properties<NEW_LINE>Optional.ofNullable(getSelectionAsString(concept.get_ID(), getPrefixAliasForTableSelection()... | AtomicInteger count = new AtomicInteger(0); |
268,928 | public void delGroup(GroupEntity groupEntity, @Suspended AsyncResponse response) throws Exception {<NEW_LINE>String id = XSSFilter(groupEntity.getId());<NEW_LINE>String groupId = XSSFilter(groupEntity.getGroupid());<NEW_LINE>String ldapKey = XSSFilter(groupEntity.getLdapkey());<NEW_LINE>String time = df.format(new Date... | cloumns.put("operationtime", time); |
91,463 | public void visit(OWLAnnotationPropertyDomainAxiom ax) {<NEW_LINE>OWLProperty prop = <MASK><NEW_LINE>IRI domain = dup(ax.getDomain());<NEW_LINE>if (prop.isObjectPropertyExpression()) {<NEW_LINE>// turn to object property domain<NEW_LINE>OWLClassExpression d = df.getOWLClass(domain);<NEW_LINE>LOGGER.warn("Annotation pro... | dup(ax.getProperty()); |
169,163 | public static void main(String[] args) {<NEW_LINE>System.out.println("#define POW5_INV_BITCOUNT " + POW5_INV_BITCOUNT);<NEW_LINE>System.out.<MASK><NEW_LINE>for (int i = 0; i < INV_TABLE_SIZE; i++) {<NEW_LINE>BigInteger pow = BigInteger.valueOf(5).pow(i);<NEW_LINE>int pow5len = pow.bitLength();<NEW_LINE>int j = pow5len ... | println("static uint64_t FLOAT_POW5_INV_SPLIT[" + INV_TABLE_SIZE + "] = {"); |
1,161,486 | private void antialias(Granule granule, float[] out) {<NEW_LINE>if (granule.windowSwitchingFlag && (granule.blockType == 2) && !granule.mixedBlockFlag)<NEW_LINE>return;<NEW_LINE>int bands = granule.windowSwitchingFlag && granule.mixedBlockFlag && (granule.<MASK><NEW_LINE>for (int band = 0, bandStart = 0; band < bands; ... | blockType == 2) ? 1 : 31; |
560,584 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String clientId = config.getValue("client.clientId", String.class);<NEW_LINE>String clientSecret = config.getValue("client.clientSecret", String.class);<NEW_LINE>// Error:<NEW_LINE>String error... | ("provider.tokenUri", String.class)); |
1,345,399 | private boolean nextLine(RowSetLoader rowWriter) {<NEW_LINE>if (rowWriter.limitReached(maxRecords)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String line;<NEW_LINE>try {<NEW_LINE>line = reader.readLine();<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw UserException.dataReadError(e).message("Error reading file").a... | logger.warn("Unmatched line: {}", line); |
1,293,840 | private void init() {<NEW_LINE>exceptionUnmarshallers.add(new UnsupportedProtocolExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new TooManyUniqueTargetGroupsPerLoadBalancerExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new AllocationIdNotFoundExceptionUnmarshaller());<NEW_LINE>exceptionUnm... | .add(new InvalidSchemeExceptionUnmarshaller()); |
413,570 | // internal method used by removeRoleAssignment and saveConfiguration<NEW_LINE>private void revokeRole(RoleAssignment ra) {<NEW_LINE>try {<NEW_LINE>commandEngine.submit(new RevokeRoleCommand(ra, dvRequestService.getDataverseRequest()));<NEW_LINE>JsfHelper.addSuccessMessage(BundleUtil.getStringFromBundle("permission.rol... | , BundleUtil.getStringFromBundle("permission.roleNotAbleToBeRemoved")); |
544,533 | public void addSign(byte[] privateKey, AccountStore accountStore) throws PermissionException, SignatureException, SignatureFormatException {<NEW_LINE>Transaction.Contract contract = this.transaction.getRawData().getContract(0);<NEW_LINE>int permissionId = contract.getPermissionId();<NEW_LINE>byte[] owner = getOwner(con... | addSignature(sig).build(); |
1,039,846 | public static BatchGetJobMetricInfoResponse unmarshall(BatchGetJobMetricInfoResponse batchGetJobMetricInfoResponse, UnmarshallerContext context) {<NEW_LINE>batchGetJobMetricInfoResponse.setRequestId(context.stringValue("BatchGetJobMetricInfoResponse.RequestId"));<NEW_LINE>batchGetJobMetricInfoResponse.setCode(context.i... | ("BatchGetJobMetricInfoResponse.Data[" + i + "].TpsIn")); |
1,768,171 | default List<Range> removeAndGetRemain(Range newRange) {<NEW_LINE>List<Range> result = new ArrayList<>();<NEW_LINE>if (newRange.start() > this.end() || newRange.end() < this.start()) {<NEW_LINE>result.add(this);<NEW_LINE>} else if (newRange.start() <= this.start() && newRange.end() >= this.end()) {<NEW_LINE>return resu... | .start() - 1)); |
358,350 | public void init(Service service) {<NEW_LINE>this.service = service;<NEW_LINE>eventCallback = new RenderingControlCallback(service) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onDisconnect(final CancelReason reason) {<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {... | RenderingControlPoint.LOGGER.info("Querying initial state of RenderingControl service"); |
1,482,436 | public void copyFromSafe(int fromIndex, int thisIndex, ValueVector from) {<NEW_LINE>Preconditions.checkArgument(this.getMinorType() == from.getMinorType());<NEW_LINE>if (from.isNull(fromIndex)) {<NEW_LINE>handleSafe(thisIndex, 0);<NEW_LINE>fillHoles(thisIndex);<NEW_LINE>BitVectorHelper.unsetBit(this.validityBuffer, thi... | + 1) * OFFSET_WIDTH, copyStart); |
1,109,941 | public static void main(String[] args) {<NEW_LINE>// Parse the arguments<NEW_LINE>Properties props = StringUtils.argsToProperties(args, new HashMap<String, Integer>() {<NEW_LINE><NEW_LINE>{<NEW_LINE>put("ignore_labels", 1);<NEW_LINE>put("remap_labels", 1);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>ArgumentParser.fillOptions(new... | RuntimeException("Tree " + treeNum + " is not properly binary"); |
1,201,815 | public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {<NEW_LINE>if (registry.containsBeanDefinition(IntegrationContextUtils.INTEGRATION_MESSAGE_HISTORY_CONFIGURER_BEAN_NAME)) {<NEW_LINE>throw new BeanDefinitionStoreException("Only one @EnableMessageHistory or <... | componentNamePatterns = annotationAttributes.get("value"); |
553,961 | final PurchaseReservedElasticsearchInstanceOfferingResult executePurchaseReservedElasticsearchInstanceOffering(PurchaseReservedElasticsearchInstanceOfferingRequest purchaseReservedElasticsearchInstanceOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseReservedElasticsearchIns... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
870,516 | public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = BoofSwingUtil.antialiasing(g);<NEW_LINE>// center the center circle<NEW_LINE><MASK><NEW_LINE>// canonical view is +z for pinhole camera<NEW_LINE>v.setTo(0, 0, 1);<NEW_LINE>GeometryMath_F32.mult(R, v, v);<NEW_LINE>distort... | FMatrixRMaj R = distorter.getRotation(); |
379,967 | public void onPresentProofClicked(View v) {<NEW_LINE>try {<NEW_LINE>int connectionHandle = ConnectionApi.connectionDeserialize(connection).get();<NEW_LINE>// Check agency for a proof request<NEW_LINE>String requests = DisclosedProofApi.proofGetRequests(connectionHandle).get();<NEW_LINE>// Create a Disclosed proof objec... | proofRetrieveCredentials(proofHandle).get(); |
352,759 | private void startLeaderElector(LeaderElectorAsyncWrapper leaderElector) {<NEW_LINE>leaderElector.run(() -> {<NEW_LINE>try {<NEW_LINE>if (leader) {<NEW_LINE>LOGGER.warn("I'm being asked to become leader. But I am already the leader. Ignored event.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>leader = true;<NEW_LINE>term++;<... | ex, "listener becomeLeader() failed. Unable to become leader").emit(); |
1,168,420 | public synchronized void put(String key, Entry entry) {<NEW_LINE>// If adding this entry would trigger a prune, but pruning would cause the new entry to be<NEW_LINE>// deleted, then skip writing the entry in the first place, as this is just churn.<NEW_LINE>// Note that we don't include the cache header overhead in this... | new BufferedOutputStream(createOutputStream(file)); |
1,710,853 | private void loadNode421() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_GetPosition_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), Localize... | .expanded(), true)); |
380,823 | public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeLong(this.id);<NEW_LINE>dest.writeString(this.url);<NEW_LINE>dest.writeString(this.body);<NEW_LINE>dest.writeString(this.title);<NEW_LINE>dest.writeInt(this.comments);<NEW_LINE>dest.writeInt(this.number);<NEW_LINE>dest.writeByte(this.locked ? (byte)... | .getTime() : -1); |
1,777,142 | final ScheduleRunResult executeScheduleRun(ScheduleRunRequest scheduleRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(scheduleRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
286,881 | public void renderJSON(PrintWriter writer, Map<String, String> params) {<NEW_LINE>JsonArray json = new JsonArray();<NEW_LINE>for (ConsumerRecord<byte[], byte[]> record : Lists.reverse(retrieveActionReportMessages())) {<NEW_LINE>try {<NEW_LINE>JsonObject jsonRecord = new JsonObject();<NEW_LINE>BinaryDecoder binaryDecode... | result.getTimestamp()))); |
102,729 | public static void main(String[] args) {<NEW_LINE>Random random = new Random();<NEW_LINE>int sampleSize = 2048;<NEW_LINE>float[<MASK><NEW_LINE>for (int x = 0; x < samples.length; x++) {<NEW_LINE>samples[x] = random.nextFloat() * 2.0f - 1.0f;<NEW_LINE>}<NEW_LINE>float[] coefficients = FilterFactory.getLowPass(1000, 250,... | ] samples = new float[sampleSize]; |
495,935 | final UpdateMetricSetResult executeUpdateMetricSet(UpdateMetricSetRequest updateMetricSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMetricSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Update... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
547,808 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B... | Toast.LENGTH_LONG).show(); |
165,325 | public String savePolicyToText() {<NEW_LINE>StringBuilder res = new StringBuilder();<NEW_LINE>if (model.containsKey("p")) {<NEW_LINE>for (Map.Entry<String, Assertion> entry : model.get("p").entrySet()) {<NEW_LINE>String key = entry.getKey();<NEW_LINE>Assertion ast = entry.getValue();<NEW_LINE>for (List<String> rule : a... | join(", ", rule))); |
213,230 | private long holesArrayImpl(JSDynamicObject object, long length, ScriptArray array, JSArrayNextElementIndexNode nextElementIndexNode, ConditionProfile isZero) {<NEW_LINE>long firstIndex = array.firstElementIndex(object);<NEW_LINE>if (isZero.profile(firstIndex == 0)) {<NEW_LINE>return firstIndex;<NEW_LINE>}<NEW_LINE>// ... | prototype = JSObject.getPrototype(prototype); |
624,343 | public static void execute(ManagerConnection c) {<NEW_LINE>ByteBufferHolder buffer = c.allocate();<NEW_LINE>IPacketOutputProxy proxy = PacketOutputProxyFactory.getInstance().createProxy(c, buffer);<NEW_LINE>proxy.packetBegin();<NEW_LINE>// write header<NEW_LINE>proxy = header.write(proxy);<NEW_LINE>// write fields<NEW_... | proxy = row.write(proxy); |
1,276,202 | private void loadNode64() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultApplicationGroup_TrustList_Open_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), ... | DataValue(new Variant(o)); |
3,942 | public void add(LatLon latLon, String title, String originObjectName, String categoryName, int categoryColor, boolean autoFill) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (latLon == null || mapActivity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>isNew = true;<NEW_LINE>if (categoryName != nul... | getFavoritesHelper().getGroup(categoryName); |
59,463 | public Description matchVariable(VariableTree tree, VisitorState state) {<NEW_LINE>Optional<Type> unboxed = unboxed(tree, state);<NEW_LINE>if (!unboxed.isPresent()) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>VarSymbol varSymbol = ASTHelpers.getSymbol(tree);<NEW_LINE>if (varSymbol == null) {<NEW_LINE>re... | get(), fixBuilder, state); |
563,857 | private static Triple<DataSource, DimFilter, List<PreJoinableClause>> flattenJoin(final JoinDataSource dataSource) {<NEW_LINE>DataSource current = dataSource;<NEW_LINE>DimFilter currentDimFilter = null;<NEW_LINE>final List<PreJoinableClause> <MASK><NEW_LINE>while (current instanceof JoinDataSource) {<NEW_LINE>final Joi... | preJoinableClauses = new ArrayList<>(); |
85,791 | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>final String createTableSql = "CREATE TABLE IF NOT EXISTS visits ( visit_id INT NOT NULL " + "AUTO_INCREMENT, user_ip VARCHAR(46) NOT NULL, timestamp DATETIME NOT NULL, " + "PRIMARY KEY (visit_id) )";<NEW... | throw new ServletException("SQL error", e); |
424,578 | protected void reply(Status status) {<NEW_LINE>String inReplyToId = status.getActionableId();<NEW_LINE>Status actionableStatus = status.getActionableStatus();<NEW_LINE>Status.Visibility replyVisibility = actionableStatus.getVisibility();<NEW_LINE>String contentWarning = actionableStatus.getSpoilerText();<NEW_LINE>List<... | getActivity().startActivity(intent); |
158,074 | public void generate(final Configuration templateConfig, final Map<String, String> dataModel, final String framework, final String feature) throws IOException, TemplateException {<NEW_LINE>GenerateUtil.generateDirs(templateConfig, dataModel, new ExampleScenarioFactory(feature, framework).getJavaClassPaths(), OUTPUT_PAT... | getResourcePaths(), OUTPUT_PATH + RESOURCES_PATH); |
1,013,275 | public List<String> checkForBadges(Profile authUser, HttpServletRequest req) {<NEW_LINE>List<String> badgelist = new ArrayList<String>();<NEW_LINE>if (authUser != null && !isAjaxRequest(req)) {<NEW_LINE>long oneYear = authUser.getTimestamp() + (365 * 24 * 60 * 60 * 1000);<NEW_LINE>addBadgeOnce(authUser, Profile.Badge.E... | ) >= CONF.geekIfHasRep()); |
27,381 | private static void addPropertiesFrom(Class<?> domainType, Class<?> returnedType, ProjectionFactory factory, Map<PropertyPath, Boolean> filteredProperties, String inputProperty, Neo4jMappingContext mappingContext) {<NEW_LINE>ProjectionInformation projectionInformation = factory.getProjectionInformation(returnedType);<N... | filteredProperties.put(propertyPath, false); |
1,533,906 | public static void reduce32(int x, int[] z) {<NEW_LINE>while (x != 0) {<NEW_LINE>long c, x4 = x & M;<NEW_LINE>c = (z[0] & M) + x4;<NEW_LINE>z[0] = (int) c;<NEW_LINE>c >>= 32;<NEW_LINE>if (c != 0) {<NEW_LINE>c += (z[1] & M);<NEW_LINE>z[1] = (int) c;<NEW_LINE>c >>= 32;<NEW_LINE>c += (z[2] & M);<NEW_LINE>z[2] = (int) c;<N... | M) + (x4 << 1); |
301,035 | public Mono<ResponseEntity<UploadResult>> uploadHandler(@RequestHeader HttpHeaders headers, @RequestBody Flux<ByteBuffer> body) {<NEW_LINE>long length = headers.getContentLength();<NEW_LINE>if (length < 0) {<NEW_LINE>throw new UploadFailedException(HttpStatus.BAD_REQUEST.value()<MASK><NEW_LINE>}<NEW_LINE>String fileKey... | , Optional.of("required header missing: Content-Length")); |
1,786,709 | private void ldcClassConstant(Class cls) {<NEW_LINE>if (OPCODES_VERSION == Opcodes.V1_4) {<NEW_LINE>assert debug("LDC \"" + cls.getName() + "\"");<NEW_LINE>mv.visitLdcInsn(cls.getName());<NEW_LINE>mv.visitMethodInsn(INVOKESTATIC, "java/lang/Class", "forName", "(Ljava/lang/String;)Ljava/lang/Class;");<NEW_LINE>Label l4 ... | INVOKESPECIAL, "java/lang/NoClassDefFoundError", "<init>", "(Ljava/lang/String;)V"); |
1,611,969 | private Builder mergeWith(final Resource.Data resourceData) {<NEW_LINE>this.resourceMethods.addAll(resourceData.resourceMethods);<NEW_LINE>this.childResources.addAll(resourceData.childResources);<NEW_LINE>if (subResourceLocator != null && resourceData.subResourceLocator != null) {<NEW_LINE>Errors.processWithException(n... | handlerClasses.addAll(resourceData.handlerClasses); |
1,710,026 | private void importItemFile(@NonNull RemoteFile remoteFile, @NonNull SettingsItem item, boolean forceReadData) {<NEW_LINE>OsmandApplication app = backupHelper.getApp();<NEW_LINE>File tempDir = FileUtils.getTempDir(app);<NEW_LINE>FileInputStream is = null;<NEW_LINE>try {<NEW_LINE>SettingsItemReader<? extends SettingsIte... | , item.getName())); |
1,825,455 | void endBlock(SegmentTermsEnumFrame frame) {<NEW_LINE>final int termCount = frame.isLeafBlock ? frame<MASK><NEW_LINE>final int subBlockCount = frame.entCount - termCount;<NEW_LINE>totalTermCount += termCount;<NEW_LINE>if (termCount != 0 && subBlockCount != 0) {<NEW_LINE>mixedBlockCount++;<NEW_LINE>} else if (termCount ... | .entCount : frame.state.termBlockOrd; |
1,845,875 | public Cursor handle(final RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>ArrayResultCursor resultCursor = buildResultCursor();<NEW_LINE>SqlShowGlobalIndex showGlobalIndex = (SqlShowGlobalIndex) ((LogicalDal) logicalPlan).getNativeSqlNode();<NEW_LINE>SqlIdentifier tableName = <MASK><NEW_LINE>String ... | (SqlIdentifier) showGlobalIndex.getTable(); |
544,801 | public SimulationEvent apply(EventLogEntry event) {<NEW_LINE>if ("PROCESSINSTANCE_START".equals(event.getType())) {<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>Map<String, Object> data;<NEW_LINE>try {<NEW_LINE>data = objectMapper.readValue(event.getData(), new TypeReference<HashMap<String, Object>... | data.get(Fields.VARIABLES); |
1,262,928 | private void retrieveAndPrintSingers() {<NEW_LINE>System.out.println("The kind for singers has been cleared and " + this.singerRepository.count() + " new singers have been inserted:");<NEW_LINE>Iterable<Singer> allSingers = this.singerRepository.findAll();<NEW_LINE>allSingers.forEach(System.out::println);<NEW_LINE>Syst... | .println("retrieved singer: " + x)); |
751,336 | private List<I_M_InOutLine> createBottomReceiptLines_PackingMaterials() {<NEW_LINE>//<NEW_LINE>// Sets M_Product_ID sort comparator to use<NEW_LINE>final I_M_InOut receipt = getCurrentReceipt(I_M_InOut.class);<NEW_LINE>final Comparator<Integer> candidatesSortComparator = Services.get(IDocLineSortDAO.class).findDocLineS... | final I_M_InOutLine packagingReceiptLine = createPackingMaterialReceiptLine(candidate); |
160,140 | int obtainSource(boolean isMusic) {<NEW_LINE>if (noDevice)<NEW_LINE>return 0;<NEW_LINE>for (int i = 0, n = idleSources.size; i < n; i++) {<NEW_LINE>int sourceId = idleSources.get(i);<NEW_LINE>int state = alGetSourcei(sourceId, AL_SOURCE_STATE);<NEW_LINE>if (state != AL_PLAYING && state != AL_PAUSED) {<NEW_LINE>Long old... | sourceId, AL10.AL_PITCH, 1); |
255,291 | // /////////////////////////////////////////////<NEW_LINE>// Themes<NEW_LINE>@Override<NEW_LINE>protected void applyThemeSettings(ITheme currentTheme) {<NEW_LINE>Font rsFont = currentTheme.getFontRegistry().get(ThemeConstants.FONT_SQL_RESULT_SET);<NEW_LINE>if (rsFont != null) {<NEW_LINE>this.spreadsheet.setFont(rsFont)... | colorRegistry.get(ThemeConstants.COLOR_SQL_RESULT_HEADER_BACKGROUND); |
1,367,048 | private ChartInfo mapInfo(final com.linkedin.chart.ChartInfo info) {<NEW_LINE>final ChartInfo result = new ChartInfo();<NEW_LINE>result.setDescription(info.getDescription());<NEW_LINE>result.setName(info.getTitle());<NEW_LINE>result.setLastRefreshed(info.getLastRefreshed());<NEW_LINE>if (info.hasInputs()) {<NEW_LINE>re... | (Collectors.toList())); |
426,572 | private void paintInstanceClassic(InstancePainter painter) {<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>final var bds = painter.getBounds();<NEW_LINE>final var state = (StateData) painter.getData();<NEW_LINE>final var widthVal = painter.getAttributeValue(StdAttr.WIDTH);<NEW_LINE>final var width = widthVal =... | RST, "0", Direction.SOUTH); |
929,281 | public ActionContext execute(String actionId, ActionContext context) {<NEW_LINE>AbstractBaseAction action = getAction(actionId);<NEW_LINE>if (action == null) {<NEW_LINE>return context;<NEW_LINE>}<NEW_LINE>String nextActionId = null;<NEW_LINE>while (action != null) {<NEW_LINE>if (stopFlag) {<NEW_LINE>if (log.isTraceEnab... | log.info(this, "Received stop command, so stop executing actions"); |
1,089,372 | public static DataObject find(FileObject fo) throws DataObjectNotFoundException {<NEW_LINE>if (fo == null)<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("Called DataObject.find on null");<NEW_LINE>try {<NEW_LINE>if (!fo.isValid()) {<NEW_LINE>FileStateInvalidException ex = new FileStateInvalidException(... | : "No DataLoaderPool found in " + Lookup.getDefault(); |
106,183 | public ValidationErrors validate(AddDefaultValueStatement addDefaultValueStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {<NEW_LINE>Object defaultValue = addDefaultValueStatement.getDefaultValue();<NEW_LINE>ValidationErrors validationErrors = new ValidationErrors();<NEW_LINE>validationErrors.checkReq... | String columnDataType = addDefaultValueStatement.getColumnDataType(); |
517,499 | private static Map<LogTag, Set<JfrLogTag>> createLogTagSets() {<NEW_LINE>Map<LogTag, Set<JfrLogTag>> result = new EnumMap<>(LogTag.class);<NEW_LINE>result.put(LogTag.JFR, EnumSet.of(JfrLogTag.JFR));<NEW_LINE>result.put(LogTag.JFR_SYSTEM, EnumSet.of(JfrLogTag.JFR, JfrLogTag.SYSTEM));<NEW_LINE>result.put(LogTag.JFR_SYSTE... | .SYSTEM, JfrLogTag.METADATA)); |
647,925 | private static Function<VariantWalkerContext, String> variantFunction(FeatureInput<VariantContext> auxiliaryVariants) {<NEW_LINE>return (Function<VariantWalkerContext, String>) context -> {<NEW_LINE>VariantContext variant = context.getVariant();<NEW_LINE>ReadsContext readsContext = context.getReadsContext();<NEW_LINE>R... | , variant1.getAlternateAlleles())); |
1,640,900 | protected void encodeSuggestionItemsAsList(FacesContext context, AutoComplete ac, Object item, Converter converter, boolean pojo, String var, String key) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>Map<String, Object> requestMap = context.getExternalContext().getRequestMa... | writeAttribute("data-item-key", key, null); |
528,109 | public void initialiseMaps() {<NEW_LINE>Numbering numbering = getJaxbElement();<NEW_LINE>// count the number of different list numbering schemes<NEW_LINE>if (numbering.getNum().size() == 0) {<NEW_LINE>log.debug("No num defined");<NEW_LINE>// Don't return; init empty lists.<NEW_LINE>}<NEW_LINE>// initialize the abstract... | getAbstractNum().size()); |
451,375 | public JsonElement serialize(VersionSetting src, Type typeOfSrc, JsonSerializationContext context) {<NEW_LINE>if (src == null)<NEW_LINE>return JsonNull.INSTANCE;<NEW_LINE>JsonObject obj = new JsonObject();<NEW_LINE>obj.addProperty("usesGlobal", src.isUsesGlobal());<NEW_LINE>obj.addProperty("javaArgs", src.getJavaArgs()... | "showLogs", src.isShowLogs()); |
1,783,828 | public SyncResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SyncResourceResult syncResourceResult = new SyncResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | class).unmarshall(context)); |
1,535,542 | public final // ) formula ;<NEW_LINE>ConditionParser.condition_return condition() throws RecognitionException {<NEW_LINE>final ConditionParser.condition_return retval = new ConditionParser.condition_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_LINE>Token set10 = null;<NEW_LINE>Condi... | .create(set10), root_0); |
617,937 | private ListenerResult executeListenerWithLog(WorkflowContext context) {<NEW_LINE>WorkflowEventLogEntity logEntity = buildEventLog(context);<NEW_LINE>ListenerResult result;<NEW_LINE>try {<NEW_LINE>result = eventListener.listen(context);<NEW_LINE>logEntity.setStatus(result.isSuccess() ? EventStatus.SUCCESS.getStatus() :... | result = ListenerResult.fail(e); |
275,307 | public void process(CommandProcess process) {<NEW_LINE>RowAffect affect = new RowAffect();<NEW_LINE>Instrumentation inst = process.session().getInstrumentation();<NEW_LINE>if (hashCode == null && classLoaderClass != null) {<NEW_LINE>List<ClassLoader> matchedClassLoaders = ClassLoaderUtils.getClassLoaderByClassName(inst... | process, affect, inst, matchedClasses); |
642,538 | private void executeCypherUnwindStatement() {<NEW_LINE>// In case of errors and no actual input read (error in mapper) we don't have input<NEW_LINE>// So we don't want to execute any cypher in this case. There's no need to generate even more<NEW_LINE>// errors<NEW_LINE>//<NEW_LINE>if (elementsInput == 0) {<NEW_LINE>re... | "Starting a write transaction for unwind statement cypher: " + cypher + ", parameters: " + parametersString); |
632,084 | protected void performRewrite(final TransformationContext ctx) throws Exception {<NEW_LINE>IfTree toRewrite = (IfTree) ctx.getPath().getLeaf();<NEW_LINE>StatementTree elseStatement = toRewrite.getElseStatement();<NEW_LINE>if (toRewrite.getCondition() == null || toRewrite.getCondition().getKind() != Tree.Kind.PARENTHESI... | , toRewrite.getThenStatement())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.