idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,392,386 | public static Slice serialize(Model model) {<NEW_LINE>requireNonNull(model, "model is null");<NEW_LINE>Integer id = MODEL_SERIALIZATION_IDS.get(model.getClass());<NEW_LINE>requireNonNull(id, "id is null");<NEW_LINE>int size = HYPERPARAMETERS_OFFSET;<NEW_LINE>// hyperparameters aren't implemented yet<NEW_LINE>byte[] hyp... | setLong(dataLengthOffset, data.length); |
1,074,921 | public void estimateElimCount() {<NEW_LINE>// long ts = System.currentTimeMillis();<NEW_LINE>// the function is applied to both columns<NEW_LINE>// if hash is equal, they are not going to be eliminated<NEW_LINE>// filter on hash equal and count<NEW_LINE>LOG.debug("Applying " + function.getName());<NEW_LINE>dupeRemainin... | LOG.debug("hash2 " + hash2); |
318,130 | private void generateMetaFile(final String keyspace, final String columnFamily, final File backupDir) throws Exception {<NEW_LINE>File snapshotDir = getValidSnapshot(backupDir, snapshotName);<NEW_LINE>// Process this snapshot folder for the given columnFamily<NEW_LINE>if (snapshotDir == null) {<NEW_LINE>logger.warn("{}... | , AbstractBackupPath.BackupFileType.SST_V2)); |
1,800,504 | private void updateCategory(TicketCategoryModification tc, boolean freeOfCharge, ZoneId zoneId, Event event, boolean resetTicketsToFree) {<NEW_LINE>int eventId = event.getId();<NEW_LINE>final int price = evaluatePrice(tc.getPrice(), freeOfCharge, event.getCurrency());<NEW_LINE>TicketCategory original = ticketCategoryRe... | event, tc.getId()); |
330,486 | private Mono<PagedResponse<DeploymentOperationInner>> listAtManagementGroupScopeSinglePageAsync(String groupId, String deploymentName, Integer top, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require... | error(new IllegalArgumentException("Parameter groupId is required and cannot be null.")); |
1,035,875 | final UpdateWebhookResult executeUpdateWebhook(UpdateWebhookRequest updateWebhookRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWebhookRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateWebhook"); |
1,141,436 | public ImmutableMap<Integer, ImmutableIntList> addOnJoinFieldRefCounts(List<RelNode> multiJoinInputs, int nTotalFields, RexNode joinCondition, List<int[]> origJoinFieldRefCounts) {<NEW_LINE>// count the input references in the join condition<NEW_LINE>int[] joinCondRefCounts = new int[nTotalFields];<NEW_LINE>joinConditi... | > refCountsMap = Maps.newHashMap(); |
1,236,112 | private List<String> determineCandidateResourceTypesForChain(String theResourceName, String theParamName, ReferenceParam theReferenceParam) {<NEW_LINE>final List<Class<? extends IBaseResource>> resourceTypes;<NEW_LINE>if (!theReferenceParam.hasResourceType()) {<NEW_LINE>resourceTypes = determineResourceTypes(Collection... | paramPath.indexOf(')', startIdx); |
412,595 | public void marshall(ImportComponentRequest importComponentRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (importComponentRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(importComponentReq... | importComponentRequest.getData(), DATA_BINDING); |
727,248 | private BoundTransportAddress createBoundTransportAddress(ProfileSettings profileSettings, List<InetSocketAddress> boundAddresses) {<NEW_LINE>String[] boundAddressesHostStrings = new String[boundAddresses.size()];<NEW_LINE>TransportAddress[] transportBoundAddresses = new TransportAddress[boundAddresses.size()];<NEW_LIN... | resolvePublishPort(profileSettings, boundAddresses, publishInetAddress); |
1,269,439 | public ApplySchemaResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApplySchemaResult applySchemaResult = new ApplySchemaResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
679,755 | public static void main(String[] args) {<NEW_LINE>NameRange nameRange = NameRange.loadInput("032-063");<NEW_LINE>System.out.println("Range: " + nameRange);<NEW_LINE>System.out.println(" contains 037: " + nameRange.contains("037"));<NEW_LINE>System.out.println(" contains 121: " <MASK><NEW_LINE>System.out.println(" co... | + nameRange.contains("121")); |
1,698,692 | public Object anonymizeValue(Object object, Property property, boolean useFakeData, FakerApiField fakerApiField) throws AxelorException {<NEW_LINE>if (useFakeData) {<NEW_LINE>return fakerService.generateFakeData(fakerApiField);<NEW_LINE>}<NEW_LINE>switch(property.getType()) {<NEW_LINE>case TEXT:<NEW_LINE>case STRING:<N... | int) property.getMaxSize()); |
1,697,648 | private Prediction<Label> generatePrediction(FloatNdArray predictions, ImmutableOutputInfo<Label> outputIDInfo, int numUsed, Example<Label> example) {<NEW_LINE>long[] shape = predictions<MASK><NEW_LINE>if (shape.length != 1) {<NEW_LINE>throw new IllegalArgumentException("Failed to get scalar predictions. Found " + Arra... | .shape().asArray(); |
438,164 | public void show() {<NEW_LINE>wizard.setTitle<MASK><NEW_LINE>Composite rootPanel = wizard.getPanel();<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = 1;<NEW_LINE>rootPanel.setLayout(layout);<NEW_LINE>Composite panel = new Composite(rootPanel, SWT.NULL);<NEW_LINE>GridData gridData = new GridD... | (MessageText.getString("exportTorrentWizard.torrentfile.title")); |
1,490,252 | private static void generateShadowsToXML2(LayersBridge layersBridge, StringBuffer sb, Map<String, ShortcutAction> shortcutToAction, String indentation) {<NEW_LINE>Iterator<String> it = shortcutToAction.keySet().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String key = it.next();<NEW_LINE>ShortcutAction value = ... | Attribs attribs2 = new Attribs(true); |
1,491,676 | void configAndStart() throws Exception {<NEW_LINE>try (Config config = new Config()) {<NEW_LINE>boolean defaultConfig = true;<NEW_LINE>if (mLoadConfig) {<NEW_LINE>if (configStream(config) > 0)<NEW_LINE>defaultConfig = false;<NEW_LINE>}<NEW_LINE>if (mListener != null)<NEW_LINE>mListener.config(config);<NEW_LINE>// try s... | sharedPref, device, sp, true); |
1,642,071 | private void updateInternal(Context context, boolean force) {<NEW_LINE>if (force) {<NEW_LINE>// trigger db update<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {<NEW_LINE>context.getContentResolver().<MASK><NEW_LINE>} else {<NEW_LINE>context.getContent... | update(uri, values, null); |
128,200 | int run(final Namespace options, final HeliosClient client, final PrintStream out, final boolean json, final BufferedReader stdin) throws ExecutionException, InterruptedException {<NEW_LINE>final String jobIdString = options.getString(jobArg.getDest());<NEW_LINE>final String hostPattern = options.getString(hostArg.getD... | .get().keySet(); |
1,689,527 | private void transformObjCProperty(AnnotationTag annotation, String javaAnnotation, SootClass sootClass, SootMethod method, Set<String> selectors, Set<String> overridables, boolean extensions) {<NEW_LINE>int getterParamCount = extensions ? 1 : 0;<NEW_LINE>int setterParamCount = extensions ? 2 : 1;<NEW_LINE>if (method.g... | readBooleanElem(annotation, "strongRef", false); |
789,121 | public void finish() throws IOException {<NEW_LINE>if (finished) {<NEW_LINE>throw new IOException("This archive has already been finished");<NEW_LINE>}<NEW_LINE>finished = true;<NEW_LINE>final long headerPosition = channel.getFilePointer();<NEW_LINE>final ByteArrayOutputStream headerBaos = new ByteArrayOutputStream();<... | int) crc32.getValue()); |
1,730,955 | public void read(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.... | struct.success.add(_elem84); |
1,097,986 | public JobExecutionEntity createJobExecution(final long jobInstanceId, Properties jobParameters, Date createTime) {<NEW_LINE>final JobExecutionEntity jobExecution;<NEW_LINE>if (executionVersion >= 3) {<NEW_LINE>jobExecution = new JobExecutionEntityV3();<NEW_LINE>} else if (executionVersion == 2) {<NEW_LINE>jobExecution... | jobInstance.setNumberOfExecutions(currentNumExecutionsPreviously + 1); |
420,130 | private static long computeFlags(PythonClass clazz) {<NEW_LINE>// according to 'type_new' in 'typeobject.c', all have DEFAULT, HEAPTYPE, and BASETYPE.<NEW_LINE>// The HAVE_GC is inherited. But we do not mimic this behavior in every detail, so it<NEW_LINE>// should be fine to just set it.<NEW_LINE>long result = DEFAULT ... | |= doBuiltinClass((PythonBuiltinClass) mroEntry); |
1,436,955 | public static DescribeEventsResponse unmarshall(DescribeEventsResponse describeEventsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeEventsResponse.setRequestId(_ctx.stringValue("DescribeEventsResponse.RequestId"));<NEW_LINE>describeEventsResponse.setPageSize(_ctx.integerValue("DescribeEventsResponse.PageSize"))... | ("DescribeEventsResponse.Items[" + i + "].TargetProductCode")); |
1,376,424 | protected File[] listRepositoryFiles() {<NEW_LINE>// return AccessHelper.listFiles(repositoryLocation, filter);<NEW_LINE>File[] directories = listRepositoryDirs();<NEW_LINE>ArrayList<File> allFilesArray = new ArrayList<File>();<NEW_LINE>File[] allFiles = new File[allFilesArray.size()];<NEW_LINE>// get all the files in ... | (Arrays.asList(subFiles)); |
232,046 | protected int bind_ipv4(Pointer addr, int addrlen) {<NEW_LINE>int <MASK><NEW_LINE>if (sa_family != AF_INET) {<NEW_LINE>throw new AbstractMethodError("sa_family=" + sa_family);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int port = Short.reverseBytes(addr.getShort(2)) & 0xffff;<NEW_LINE>InetSocketAddress address = new InetSocket... | sa_family = addr.getShort(0); |
1,352,101 | public void init(org.apache.accumulo.core.client.admin.compaction.CompactionConfigurer.InitParameters iparams) {<NEW_LINE>Set<Entry<String, String>> es = iparams.getOptions().entrySet();<NEW_LINE>for (Entry<String, String> entry : es) {<NEW_LINE>switch(CompactionSettings.valueOf(entry.getKey())) {<NEW_LINE>case OUTPUT_... | ), entry.getValue()); |
1,390,844 | //<NEW_LINE>// Def<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>public boolean resolve(Grammar grammar) throws ResolutionException {<NEW_LINE>Pattern pattern;<NEW_LINE>try {<NEW_LINE>// pattern = Pattern.compile( this.pattern, Pattern.MULTILINE | Pattern.DOTALL );<NEW_LINE>pattern = Pattern.compile(this.pattern, flags);<NEW... | state = grammar.getState(stateName); |
1,701,413 | private void buildDynData(String type, Map<String, Map> resData, Map<String, Map> instsTags, String[] instTypeInfo, String meKey, String putKey) {<NEW_LINE>Map<String, Object> metricPoints = new <MASK><NEW_LINE>Map tags = instsTags.get(instTypeInfo[0]);<NEW_LINE>Map ntags = new LinkedHashMap();<NEW_LINE>if (tags == nul... | LinkedHashMap<String, Object>(); |
852,522 | protected UOWScope uowBegin(int uowType) throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "uowBegin", Integer.valueOf(uowType));<NEW_LINE>switch(uowType) {<NEW_LINE>case UOWSynchronizationRegistry.UOW_TYPE_GLOBAL_TRANSACTION:<NEW_LINE>UserTransactionImpl... | getUOWCurrent().getUOWCoord()); |
368,456 | public Tuple2<Double, Double> calcObjValue(Iterable<Tuple3<Double, Double, Vector>> labelVectors, DenseVector coefVector) {<NEW_LINE>double weightSum = 0.0;<NEW_LINE>double fVal = 0.0;<NEW_LINE>double loss;<NEW_LINE>for (Tuple3<Double, Double, Vector> labelVector : labelVectors) {<NEW_LINE><MASK><NEW_LINE>fVal += loss;... | loss = calcLoss(labelVector, coefVector); |
1,536,938 | private void checkStcukService(TraceContext ctx, PrintWriter out, StringBuilder msg) {<NEW_LINE>// TODO reactive support<NEW_LINE>if (conf.autodump_stuck_thread_ms <= 0)<NEW_LINE>return;<NEW_LINE>long etime = System.currentTimeMillis() - ctx.startTime;<NEW_LINE>if (etime > conf.autodump_stuck_thread_ms) {<NEW_LINE>try ... | ).name() + ":"); |
1,233,321 | protected void encodeMarkup(FacesContext context, Splitter splitter) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String layout = splitter.getLayout();<NEW_LINE>String styleClass = getStyleClassBuilder(context).add(Splitter.STYLE_CLASS).add(splitter.getStyleClass()).add("v... | writer.startElement("div", splitter); |
462,559 | public SuiteLauncherDiscoveryRequestBuilder suite(Class<?> suiteClass) {<NEW_LINE>Preconditions.notNull(suiteClass, "Suite class must not be null");<NEW_LINE>// Annotations in alphabetical order (except @SelectClasses)<NEW_LINE>// @formatter:off<NEW_LINE>findRepeatableAnnotations(suiteClass, ConfigurationParameter.clas... | ).ifPresent(this::filters); |
866,849 | private List<String> listFromApplication(Business business, EffectivePerson effectivePerson, List<String> roles, List<String> identities, List<String> units) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Application.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NE... | get(Application_.controllerList))); |
12,288 | public Iterable<Crumb> computeCrumbs(@Nonnull VirtualFile file, @Nonnull Document document, int offset, Boolean forcedShown) {<NEW_LINE>BreadcrumbsProvider defaultInfoProvider = findProvider(file, myProject, forcedShown);<NEW_LINE>Collection<Pair<PsiElement, BreadcrumbsProvider>> pairs = getLineElements(document, offse... | file, myProject, defaultInfoProvider, true); |
1,805,594 | protected boolean isRemoteConfigValid() {<NEW_LINE>if (!isEnabled(false)) {<NEW_LINE>LOGGER.log(Level.FINE, "REMOTE copying not enabled for project {0}", project.getName());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (isInvalid()) {<NEW_LINE>LOGGER.log(Level.FINE, "REMOTE copying invalid for project {0}", project.ge... | (RunConfigRemote.forProject(project)); |
481,971 | public static Path createAndGetHomeReposPath() {<NEW_LINE>Path homeRepoPath;<NEW_LINE>String homeRepoDir = System.getenv(ProjectDirConstants.HOME_REPO_ENV_KEY);<NEW_LINE>if (homeRepoDir == null || homeRepoDir.isEmpty()) {<NEW_LINE>String userHomeDir = System.getProperty(USER_HOME);<NEW_LINE>if (userHomeDir == null || u... | "Home repository is not a directory: " + homeRepoPath.toString()); |
728,213 | public void serialize(TDigestAndPercentileArrayState state, BlockBuilder out) {<NEW_LINE>if (state.getDigest() == null) {<NEW_LINE>out.appendNull();<NEW_LINE>} else {<NEW_LINE>Slice digest = state<MASK><NEW_LINE>SliceOutput output = // number of percentiles<NEW_LINE>Slices.// number of percentiles<NEW_LINE>allocate(// ... | .getDigest().serialize(); |
18,248 | CodeBlock writeFieldInjection(Field injectionPoint, boolean required) {<NEW_LINE>CodeBlock.Builder code = CodeBlock.builder();<NEW_LINE>code.add("instanceContext.field($S, $T.class", injectionPoint.getName(), injectionPoint.getType());<NEW_LINE>code.add(")\n").indent().indent();<NEW_LINE>if (required) {<NEW_LINE>code.a... | " bean.$L = attributes.get(0)", injectionPoint.getName()); |
1,825,688 | public void invoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>if (getNext() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check if we already filtered/processed this request<NEW_LINE>if (request.getNote(ALREADY_FILTERED_NOTE) == null) {<NEW_LINE>request.setNote(ALREADY_FILT... | session = request.getSession(false); |
762,294 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>mExecutor = Executors.newSingleThreadExecutor();<NEW_LINE>mConfiguration = Configuration.getInstance(this);<NEW_LINE>Configuration config = Configuration.getInstance(this);<NEW_LINE>if (config.hasC... | mStateManager = AuthStateManager.getInstance(this); |
1,090,441 | private void loadFrom(DeviceInfo deviceInfo, Attributes attrs) throws NamingException {<NEW_LINE>deviceInfo.setDeviceName(LdapUtils.stringValue(attrs.get("dicomDeviceName"), null));<NEW_LINE>deviceInfo.setDescription(LdapUtils.stringValue(attrs.get("dicomDescription"), null));<NEW_LINE>deviceInfo.setManufacturer(LdapUt... | attrs.get("dicomSoftwareVersion"))); |
797,045 | public void publish(LogRecord rec) {<NEW_LINE>String message = rec.getMessage();<NEW_LINE>if (rec.getResourceBundle() != null) {<NEW_LINE>try {<NEW_LINE>message = rec.getResourceBundle().getString(rec.getMessage());<NEW_LINE>if (rec.getParameters() != null) {<NEW_LINE>message = MessageFormat.format(message, rec.getPara... | ] args = rec.getParameters(); |
1,530,722 | public static APIGetCandidatePrimaryStoragesForCreatingVmReply __example__() {<NEW_LINE>APIGetCandidatePrimaryStoragesForCreatingVmReply reply = new APIGetCandidatePrimaryStoragesForCreatingVmReply();<NEW_LINE>PrimaryStorageInventory lsInv = new PrimaryStorageInventory();<NEW_LINE>lsInv.setName("example");<NEW_LINE>lsI... | PrimaryStorageState.Enabled.toString()); |
1,013,593 | CommandWithArgs parseCommand(ImmutableMap<String, ? extends CopybaraCmd> commands, CopybaraCmd defaultCmd) throws CommandLineException {<NEW_LINE>if (unnamed.isEmpty()) {<NEW_LINE>return new CommandWithArgs(defaultCmd, ImmutableList.of());<NEW_LINE>}<NEW_LINE>String firstArg = unnamed.get(0);<NEW_LINE>// Default comman... | , ImmutableList.copyOf(unnamed)); |
343,191 | public T read(TProtocol protocol) throws Exception {<NEW_LINE>TProtocolReader reader = new TProtocolReader(protocol);<NEW_LINE>reader.readStructBegin();<NEW_LINE>Map<Short, Object> data = new HashMap<>(metadata.getFields().size());<NEW_LINE>while (reader.nextField()) {<NEW_LINE>short fieldId = reader.getFieldId();<NEW_... | field = metadata.getField(fieldId); |
1,572,896 | private Mono<Response<CheckNameResultInner>> checkNameAvailabilityWithResponseAsync(String location, CheckNameRequest digitalTwinsInstanceCheckName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LIN... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,688,137 | public Void run() throws RecoveryFailedException {<NEW_LINE>// If we're not unit testing, set a ThreadContextClassLoader on the recovery thread so SSL classes can be loaded<NEW_LINE>ConfigurationProvider cp = ConfigurationProviderManager.getConfigurationProvider();<NEW_LINE>if (cp == null) {<NEW_LINE>if (tc.isEntryEnab... | .getId()) + ")"); |
1,548,358 | public void visit(InvocationExpr expr) {<NEW_LINE>ClassReader cls = context.getClassSource().get(expr.getMethod().getClassName());<NEW_LINE>if (cls != null) {<NEW_LINE>InteropUtil.processInclude(cls.getAnnotations(), includes);<NEW_LINE>MethodReader method = cls.getMethod(expr.getMethod().getDescriptor());<NEW_LINE>if ... | getIntrinsic(expr.getMethod()); |
606,463 | public void loadData(Collection<RoomUsersView> roomUserInfoList) throws MageRemoteException {<NEW_LINE>RoomUsersView roomUserInfo = roomUserInfoList<MASK><NEW_LINE>this.players = roomUserInfo.getUsersView().toArray(new UsersView[0]);<NEW_LINE>JTableHeader th = jTablePlayers.getTableHeader();<NEW_LINE>TableColumnModel t... | .iterator().next(); |
586,842 | private Mono<Response<Void>> enableRemoteManagementWithResponseAsync(String resourceGroup, String registrationName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,452,512 | static DataType fromString(String typeName) {<NEW_LINE>if (typeName.equals("BOOL")) {<NEW_LINE>return new DataType(rpc_data_type.RPC_BOOL, 1);<NEW_LINE>} else if (typeName.equals("CHAR")) {<NEW_LINE>return new DataType(rpc_data_type.RPC_CHAR, 1);<NEW_LINE>} else if (typeName.equals("UCHAR")) {<NEW_LINE>return new DataT... | DataType(rpc_data_type.RPC_ULONG, 8); |
1,314,319 | public static long search(@NotNull SingleChronicleQueue q, @NotNull Wire key, @NotNull Comparator<Wire> c) throws ParseException {<NEW_LINE>final long readPosition = key.bytes().readPosition();<NEW_LINE>try (final ExcerptTailer tailer = q.createTailer()) {<NEW_LINE>final long start = tailer.toStart().index();<NEW_LINE>... | RollCycle rollCycle = q.rollCycle(); |
1,488,195 | public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();<N... | )[0]), primaryKey); |
758,566 | public void run(CommandLine theCommandLine) throws ParseException, ExecutionException {<NEW_LINE>parseFhirContext(theCommandLine);<NEW_LINE>myPackageName = theCommandLine.getOptionValue(NAME_OPT);<NEW_LINE>if (isBlank(myPackageName)) {<NEW_LINE>throw new ParseException(Msg.code(1546) + "No package name supplied (--" + ... | nextDependencyString.substring(0, colonIdx); |
911,015 | public Object apply(final String inputXml, final Options options) throws IOException {<NEW_LINE>if (inputXml == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if (options.param(0, null) == null) {<NEW_LINE>return handleError("The XPath expression cannot be empty");<NEW_LINE>}<NEW_LINE>final String xPathInput = options... | xmlDocument = getXmlDocument(inputXml, options); |
275,709 | public void fill() {<NEW_LINE>if (virtualizationPageElementSize > 0 && deepSize > virtualizationPageElementSize) {<NEW_LINE>PrintElementId frameID = PrintElementId.forElement(frame);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("creating virtualized list for frame " + frame.getUUID() + " (" + frameID + ")");... | = new VirtualizableElementList(framesContext, page); |
155,657 | public static void threadDump(final Appendable w) {<NEW_LINE>try {<NEW_LINE>final DateFormat df = DateFormat.getDateTimeInstance();<NEW_LINE>final Date date = new <MASK><NEW_LINE>w.append(Banner.getBanner());<NEW_LINE>w.append("Thread dump. Date:" + df.format(date));<NEW_LINE>w.append("\n\n");<NEW_LINE>// Setup an orde... | Date(System.currentTimeMillis()); |
1,223,160 | public static DynamicConfigAddListConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<NE... | decodeInt(initialFrame.content, REQUEST_MERGE_BATCH_SIZE_FIELD_OFFSET); |
567,179 | public XmlObject generateWadl() {<NEW_LINE>ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();<NEW_LINE>Application application = applicationDocument.addNewApplication();<NEW_LINE>createDoc(application.addNewDoc(), restService);<NEW_LINE><MASK><NEW_LINE>// use first endpoint for now -> ... | Resources resources = application.addNewResources(); |
290,824 | /*<NEW_LINE>public void release() {<NEW_LINE>dict.clear();<NEW_LINE>}<NEW_LINE><NEW_LINE>public void addVPTaking(String verb, String tag, String partWord) {<NEW_LINE>int h = verb.hashCode();<NEW_LINE>Integer <MASK><NEW_LINE>if (tag.startsWith("RP")) {<NEW_LINE>if (this.partTakingVerbs.containsKey(i)) {<NEW_LINE>this.pa... | i = Integer.valueOf(h); |
1,398,538 | // GEN-LAST:event_bnCancelActionPerformed<NEW_LINE>@Messages({ "AddNewOrganizationDialog.bnOk.addFailed.text=Failed to add new organization." })<NEW_LINE>private void bnOKActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnOKActionPerformed<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (organiz... | CentralRepository dbManager = CentralRepository.getInstance(); |
1,202,773 | private static byte[] verifyMac(byte[] macSalt, int iterations, byte[] encryptedAndMacdData, String passphrase) throws InvalidPassphraseException, GeneralSecurityException, IOException {<NEW_LINE>Mac hmac = getMacForPassphrase(passphrase, macSalt, iterations);<NEW_LINE>byte[] encryptedData = new byte[encryptedAndMacdDa... | byte[hmac.getMacLength()]; |
156,351 | public void delete() {<NEW_LINE>try {<NEW_LINE>class_mon.enter();<NEW_LINE><MASK><NEW_LINE>state_map.remove(wrapper);<NEW_LINE>TorrentUtils.delete(torrent);<NEW_LINE>String hash_str = ByteFormatter.encodeString(wrapper.getBytes());<NEW_LINE>String state_file = hash_str + ".dat";<NEW_LINE>File target_state_file = FileUt... | HashWrapper wrapper = torrent.getHashWrapper(); |
1,700,262 | public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {<NEW_LINE>if (msg instanceof SendGrpcFrameCommand) {<NEW_LINE>sendGrpcFrame(ctx, (SendGrpcFrameCommand) msg, promise);<NEW_LINE>} else if (msg instanceof SendResponseHeadersCommand) {<NEW_LINE>sendResponseHeaders(ctx<MASK... | , (SendResponseHeadersCommand) msg, promise); |
1,505,978 | public Volume recoverVolume(long volumeId) {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>final Long userId = caller.getAccountId();<NEW_LINE>// Verify input parameters<NEW_LINE>final VolumeVO volume = _volsDao.findById(volumeId);<NEW_LINE>if (volume == null) {<NEW_LINE>throw new Invali... | volume.getId(), e); |
177,587 | public void uploadExecutableFlow(final ExecutableFlow flow) throws ExecutorManagerException {<NEW_LINE>final String useExecutorParam = flow.getExecutionOptions().getFlowParameters().get(ExecutionOptions.USE_EXECUTOR);<NEW_LINE>final String executorId = StringUtils.<MASK><NEW_LINE>final String flowPriorityParam = flow.g... | isNotEmpty(useExecutorParam) ? useExecutorParam : null; |
1,077,625 | private void sharpen4(AutoTypeImage image) {<NEW_LINE>String name = image.getSingleBandName();<NEW_LINE><MASK><NEW_LINE>String cast = image.getTypeCastFromSum();<NEW_LINE>String sumtype = image.getSumType();<NEW_LINE>out.print("\tpublic static void sharpenInner4( " + name + " input , " + name + " output , " + sumtype +... | String bitwise = image.getBitWise(); |
1,068,798 | public ObjectMatrix2D viewSelection(int[] rowIndexes, int[] columnIndexes) {<NEW_LINE>// check for "all"<NEW_LINE>if (rowIndexes == null) {<NEW_LINE>rowIndexes = new int[rows];<NEW_LINE>for (int i = rows; --i >= 0; ) rowIndexes[i] = i;<NEW_LINE>}<NEW_LINE>if (columnIndexes == null) {<NEW_LINE>columnIndexes = new int[co... | ; ) columnIndexes[i] = i; |
766,859 | private void updateVolumePathsAfterMigration(Map<VolumeInfo, DataStore> volumeToPool, List<VolumeObjectTO> volumeTos, Host srcHost) {<NEW_LINE>for (Map.Entry<VolumeInfo, DataStore> entry : volumeToPool.entrySet()) {<NEW_LINE>VolumeInfo volumeInfo = entry.getKey();<NEW_LINE>StoragePool storagePool = (StoragePool) entry.... | setPath(volumeTo.getPath()); |
1,508,288 | private static final String escapeSpecialChars(final String text) {<NEW_LINE>StringBuilder buf = new StringBuilder(text.length() + 16);<NEW_LINE>boolean isInitialWhitespace = true;<NEW_LINE>final int length = text.length();<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>char c = text.charAt(i);<NEW_LINE>boolean e... | '\n') || (c == '\f'); |
981,096 | protected HeifHandler<?> processBox(@NotNull Box box, @NotNull byte[] payload) throws IOException {<NEW_LINE>SequentialReader reader = new SequentialByteArrayReader(payload);<NEW_LINE>if (box.type.equals(HeifBoxTypes.BOX_ITEM_PROTECTION)) {<NEW_LINE>itemProtectionBox = new ItemProtectionBox(reader, box);<NEW_LINE>} els... | ColourInformationBox(reader, box, metadata); |
1,707,263 | private final Object vanillaDeserialize(JsonParser p, DeserializationContext ctxt, JsonToken t) throws IOException {<NEW_LINE>final Object bean = _valueInstantiator.createUsingDefault(ctxt);<NEW_LINE>// [databind#631]: Assign current value, to be accessible by custom serializers<NEW_LINE>p.setCurrentValue(bean);<NEW_LI... | e, bean, propName, ctxt); |
250,099 | public DimFilter toDruidFilter(final PlannerContext plannerContext, RowSignature rowSignature, @Nullable VirtualColumnRegistry virtualColumnRegistry, final RexNode rexNode) {<NEW_LINE>final List<RexNode> operands = ((RexCall) rexNode).getOperands();<NEW_LINE>final List<DruidExpression> druidExpressions = Expressions.to... | collect(Collectors.toList()); |
1,202,395 | public void findBlobsByTag() {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobServiceClient.findBlobsByTag#String<NEW_LINE>client.findBlobsByTags("where=tag=value").forEach(blob -> System.out.printf("Name: %s%n", blob.getName()));<NEW_LINE>// END: com.azure.storage.blob.BlobServiceClient.findBlobsByTag#String<NEW_LINE>/... | , blob.getName())); |
720,449 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> executions = new ArrayList<>();<NEW_LINE>executions.add(new ExprFilterConstant());<NEW_LINE>executions.add(new ExprFilterRelationalOpRange());<NEW_LINE>executions.add(new ExprFilterMathExpression());<NEW_LINE>executions... | .add(new ExprFilterExprReversed()); |
1,638,211 | private void postInitComponents() {<NEW_LINE>for (int i = 1; ; i++) {<NEW_LINE>// NOI18N<NEW_LINE>displayName.setText("Remote Platform " + i);<NEW_LINE>String antName = PropertyUtils.getUsablePropertyName(displayName.getText());<NEW_LINE>if (RemotePlatformProvider.isValidPlatformAntName(antName)) {<NEW_LINE>break;<NEW_... | getDocument().addDocumentListener(docListener); |
1,271,218 | public static void main(String[] args) {<NEW_LINE>No Arvore = new No(45);<NEW_LINE>insereArvore(Arvore, 56);<NEW_LINE>insereArvore(Arvore, 67);<NEW_LINE>insereArvore(Arvore, 24);<NEW_LINE>insereArvore(Arvore, 61);<NEW_LINE>insereArvore(Arvore, 52);<NEW_LINE>System.out.print("Pre : ");<NEW_LINE>preOrdem(Arvore);<NEW_LIN... | ("Altura da arvore : " + alturaArvore(Arvore)); |
1,056,118 | public Request<DescribeSpotInstanceRequestsRequest> marshall(DescribeSpotInstanceRequestsRequest describeSpotInstanceRequestsRequest) {<NEW_LINE>if (describeSpotInstanceRequestsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeSp... | > filtersList = describeSpotInstanceRequestsRequest.getFilters(); |
1,426,209 | private DomainSearchResponse searchByDomainNameByTld(String tld) {<NEW_LINE>// Even though we are not searching on fullyQualifiedDomainName, we want the results to come<NEW_LINE>// back ordered by name, so we are still in the same boat as<NEW_LINE>// searchByDomainNameWithInitialString, unable to perform an inequality ... | getMatchingResources(query, true, querySizeLimit); |
566,564 | static org.batfish.datamodel.ospf.OspfNetworkType toOspfNetworkType(@Nullable OspfNetworkType type, Warnings warnings) {<NEW_LINE>if (type == null) {<NEW_LINE>// default is broadcast for all Ethernet interfaces<NEW_LINE>// (https://learningnetwork.cisco.com/thread/66827)<NEW_LINE>return org.batfish.datamodel.ospf.OspfN... | .datamodel.ospf.OspfNetworkType.NON_BROADCAST_MULTI_ACCESS; |
1,568,693 | public void merge(final KllDoublesSketch other) {<NEW_LINE>if (other == null || other.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (m_ != other.m_) {<NEW_LINE>throw new SketchesArgumentException("incompatible M: " + m_ + " and " + other.m_);<NEW_LINE>}<NEW_LINE>final long finalN = n_ + other.n_;<NEW_LINE>// upd... | sumTheSampleWeights(numLevels_, levels_) == n_; |
1,556,412 | void drawBitmap(Bitmap maskBitmap, boolean needFlipX, long detectTime) {<NEW_LINE>Canvas canvas = null;<NEW_LINE>try {<NEW_LINE>canvas = mDrawSurfaceHolder.lockCanvas();<NEW_LINE>if (canvas == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float scaleWidth = (float) canvas.getWidth() / (float) netOutputWidth;<NEW_LINE>fl... | netOutputWidth, netOutputHeight, bitmapMatrix, true); |
669,126 | public Size apply(MethodVisitor methodVisitor, Context implementationContext, MethodDescription instrumentedMethod) {<NEW_LINE>if (instrumentedMethod.isStatic()) {<NEW_LINE>throw new IllegalStateException("Hash code method must not be static: " + instrumentedMethod);<NEW_LINE>} else if (!instrumentedMethod.getReturnTyp... | stackManipulations.add(MethodReturn.INTEGER); |
1,072,025 | private void replaceTableInternal(Database db, OlapTable origTable, OlapTable newTbl, boolean swapTable, boolean isReplay) throws DdlException {<NEW_LINE>String oldTblName = origTable.getName();<NEW_LINE>String newTblName = newTbl.getName();<NEW_LINE>// drop origin table and new table<NEW_LINE>db.dropTable(oldTblName);... | newTbl.checkAndSetName(oldTblName, false); |
325,599 | public BuiltInScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, FunctionAndTypeManager functionAndTypeManager) {<NEW_LINE>Type keyType = boundVariables.getTypeVariable("K");<NEW_LINE>Type valueType = boundVariables.getTypeVariable("V");<NEW_LINE>MethodHandle keyNativeHashCode = functionA... | keyType))).getMethodHandle(); |
638,699 | public static void main(String[] args) throws IOException {<NEW_LINE>// Parse the arguments<NEW_LINE>Properties props = StringUtils.argsToProperties(args);<NEW_LINE>ArgumentParser.fillOptions(new Class[] { ArgumentParser.class, SplitTrainingSet.class }, props);<NEW_LINE>if (SPLIT_NAMES.length != SPLIT_WEIGHTS.length) {... | splitWeights.add(weight / totalWeight); |
101,564 | public void marshall(Vp9Settings vp9Settings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vp9Settings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vp9Settings.getBitrate(), BITRATE_BINDING);<NEW_LIN... | e.getMessage(), e); |
1,626,755 | public static QueryEndPointListResponse unmarshall(QueryEndPointListResponse queryEndPointListResponse, UnmarshallerContext context) {<NEW_LINE>queryEndPointListResponse.setRequestId(context.stringValue("QueryEndPointListResponse.RequestId"));<NEW_LINE>queryEndPointListResponse.setRegionId(context.stringValue("QueryEnd... | ("QueryEndPointListResponse.EndPointList[" + i + "].cloudInstanceID")); |
219,917 | public Call<Map<String, Long>> map(List<String> serviceNames) {<NEW_LINE>List<Call<Map<String, Long>>> bucketedTraceIdCalls = new ArrayList<>();<NEW_LINE>for (String service : serviceNames) {<NEW_LINE>// fan out every input for each service name<NEW_LINE>List<SelectTraceIdsFromServiceSpan.Input> scopedInputs = new Arra... | (input.withService(service)); |
1,335,623 | public <T extends Annotation> List<T> findInheritedAnnotations(Class<T> annotation, Class<?> type) {<NEW_LINE>notNull(type, "type cannot be null");<NEW_LINE>notNull(annotation, "annotationClass cannot be null");<NEW_LINE>List<T> annotations = new ArrayList<>();<NEW_LINE>T t = type.getAnnotation(annotation);<NEW_LINE>if... | ann = anInterface.getAnnotation(annotation); |
330,057 | void write(MethodWriter writer, Globals globals) {<NEW_LINE>writer.writeDebugInfo(location);<NEW_LINE>if (initialize) {<NEW_LINE>writer.push(arguments.size());<NEW_LINE>writer.newArray(MethodWriter.getType(actual.getComponentType()));<NEW_LINE>for (int index = 0; index < arguments.size(); ++index) {<NEW_LINE>AExpressio... | argument.write(writer, globals); |
809,421 | public void authorizeSubscriptions(@NotNull final ChannelHandlerContext ctx, @NotNull final SUBSCRIBE msg) {<NEW_LINE>final String clientId = ctx.channel().attr(ChannelAttributes.CLIENT_CONNECTION).get().getClientId();<NEW_LINE>if (clientId == null || !ctx.channel().isActive()) {<NEW_LINE>// no more processing needed<N... | listenableFutures = new ArrayList<>(); |
1,074,895 | /* post process for DAVA */<NEW_LINE>private void postProcessDAVA() {<NEW_LINE>final boolean transformations = PhaseOptions.getBoolean(PhaseOptions.v().getPhaseOptions("db.transformations"), "enabled");<NEW_LINE>for (SootClass s : Scene.v().getApplicationClasses()) {<NEW_LINE>DavaStaticBlockCleaner.v().staticBlockInlin... | (DavaBody) m.getActiveBody(); |
1,019,607 | protected boolean queueWork(Path path, ReplicationTarget target) {<NEW_LINE>String queueKey = DistributedWorkQueueWorkAssignerHelper.getQueueKey(path.getName(), target);<NEW_LINE>Map<TableId, String> workForPeer = this.queuedWorkByPeerName.computeIfAbsent(target.getPeerName(), k -> new HashMap<>());<NEW_LINE>String que... | "Could not queue work for {} to {}", path, target, e); |
204,988 | private void addAmountColumn() {<NEW_LINE>TableColumn<BsqTxListItem, BsqTxListItem> column = new AutoTooltipTableColumn<>(Res.get("shared.amountWithCur", "BSQ"));<NEW_LINE>column.setMinWidth(120);<NEW_LINE>column.setMaxWidth(column.getMinWidth());<NEW_LINE>column.setCellValueFactory((item) -> new ReadOnlyObjectWrapper<... | TxType txType = item.getTxType(); |
119,012 | public void onItemClick(int position, View v, TimelineModel timelineModel) {<NEW_LINE>if (getView() != null) {<NEW_LINE>Comment item = timelineModel.getComment();<NEW_LINE>if (v.getId() == R.id.commentMenu) {<NEW_LINE>PopupMenu popupMenu = new PopupMenu(v.getContext(), v);<NEW_LINE>popupMenu.inflate(R.menu.comments_men... | ).getLogin()) || isCollaborator; |
877,872 | public boolean shouldOverrideUrlLoading(WebView view, String url) {<NEW_LINE>final RNCWebView rncWebView = (RNCWebView) view;<NEW_LINE>final boolean isJsDebugging = ((ReactContext) view.getContext()).getJavaScriptContextHolder().get() == 0;<NEW_LINE>if (!isJsDebugging && rncWebView.mCatalystInstance != null) {<NEW_LINE... | event.putInt("lockIdentifier", lockIdentifier); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.