idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
523,798 | public IDocument createCounterDocument(final IDocument document) {<NEW_LINE>final I_C_Order order = InterfaceWrapperHelper.create(document, I_C_Order.class);<NEW_LINE>final MOrder orderPO = LegacyAdapters.convertToPO(order);<NEW_LINE>final I_C_DocType counterDocType = retrieveCounterDocTypeOrNull(document);<NEW_LINE>fi... | setDateAcct(order.getDateAcct()); |
198,393 | public void pushAndSend(String streamId, List<Object> tuple, Integer outTaskId, Collection<Tuple> anchors, Object messageId, Long rootId, ICollectorCallback callback) {<NEW_LINE>if (outTaskId != null) {<NEW_LINE>synchronized (directBatches) {<NEW_LINE>List<MsgInfo> batchTobeFlushed = addToBatches(outTaskId.toString() +... | messageId, rootId, batchSize, callback); |
644,186 | private AclRule createRule(final String type, final int index, final ACLPolicyDoc.TypeRule typeRule, final AclRuleBuilder prototype) {<NEW_LINE>AclRuleBuilder ruleBuilder = AclRuleBuilder.builder(prototype);<NEW_LINE><MASK><NEW_LINE>Object deny = typeRule.getDeny();<NEW_LINE>final Set<String> allowActions = null != typ... | Object allow = typeRule.getAllow(); |
462,545 | private boolean isInsidePath(final PsiElement psiElement, PathExpression pathExpression) {<NEW_LINE>if (psiElement == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final PsiNamedElement nextNamedParent = getNextNamedParent(psiElement);<NEW_LINE>final String unescapedTargetKeyName = <MASK><NEW_LINE>if (pathExpressi... | unescape(pathExpression.last()); |
1,140,428 | public Request<SetIdentityDkimEnabledRequest> marshall(SetIdentityDkimEnabledRequest setIdentityDkimEnabledRequest) {<NEW_LINE>if (setIdentityDkimEnabledRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(SetIdentityDkimEnabledRequest)");<NEW_LINE>}<NEW_LINE>Request<SetIdent... | request.addParameter("Action", "SetIdentityDkimEnabled"); |
1,026,967 | private int leaderReplay(final long nowNs) {<NEW_LINE>int workCount = 0;<NEW_LINE>if (null == logReplay) {<NEW_LINE>if (logPosition < appendPosition) {<NEW_LINE>logReplay = consensusModuleAgent.newLogReplay(logPosition, appendPosition);<NEW_LINE>} else {<NEW_LINE>state(LEADER_INIT, nowNs);<NEW_LINE>}<NEW_LINE>workCount... | consensusModuleAgent.quorumPosition(), nowNs); |
1,815,852 | public ListIdentityResolutionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListIdentityResolutionJobsResult listIdentityResolutionJobsResult = new ListIdentityResolutionJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte... | class).unmarshall(context)); |
445,412 | public BigInteger parseLiteral(Object input) {<NEW_LINE>if (input instanceof StringValue) {<NEW_LINE>try {<NEW_LINE>return new BigDecimal(((StringValue) input).<MASK><NEW_LINE>} catch (NumberFormatException | ArithmeticException e) {<NEW_LINE>throw new CoercingParseLiteralException("Unable to turn input into a 'BigInte... | getValue()).toBigIntegerExact(); |
994,797 | public static List<EntityDetail> findEntitiesByType(OMRSAPIHelper oMRSAPIHelper, String serverName, String userId, String type, String searchCriteria, Date asOfTime, Integer offset, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty, String methodName) throws UserNotAuthorizedException, Functi... | String entityTypeGUID = typeDef.getGUID(); |
528,831 | private static Object v1(final Environment environment, final String prefix, final boolean handlePlaceholder) {<NEW_LINE>Class<?> resolverClass = Class.forName("org.springframework.boot.bind.RelaxedPropertyResolver");<NEW_LINE>Constructor<?> resolverConstructor = resolverClass.getDeclaredConstructor(PropertyResolver.cl... | ".") ? prefix : prefix + "."; |
1,009,530 | final ListLicenseConfigurationsResult executeListLicenseConfigurations(ListLicenseConfigurationsRequest listLicenseConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLicenseConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | false), new ListLicenseConfigurationsResultJsonUnmarshaller()); |
637,509 | public void onRun() throws MigrationPendingException, RetryLaterException {<NEW_LINE>Optional<IncomingTextMessage> message = assembleMessageFragments(pdus, subscriptionId);<NEW_LINE>if (SignalStore.account().getE164() == null) {<NEW_LINE>Log.i(TAG, "Received an SMS before we're registered...");<NEW_LINE>if (message.isP... | Log.w(TAG, "Received an SMS from ourselves! Ignoring."); |
1,421,993 | public static void markRegionBorders(GrayS32 labeled, GrayU8 output) {<NEW_LINE>InputSanityCheck.checkSameShape(labeled, output);<NEW_LINE><MASK><NEW_LINE>for (int y = 0; y < output.height - 1; y++) {<NEW_LINE>int indexLabeled = labeled.startIndex + y * labeled.stride;<NEW_LINE>int indexOutput = output.startIndex + y *... | ImageMiscOps.fill(output, 0); |
1,338,931 | public void start() throws BundleException {<NEW_LINE>// Setup properties used by Stargate framework<NEW_LINE>try {<NEW_LINE>if (!nodetool) {<NEW_LINE>setStargateProperties();<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>System.err.println(e.getMessage());<NEW_LINE>System.exit(2);<NEW_LINE>}<NEW_LINE>// Initial... | (new String[0])); |
560,510 | protected Message createMessage(Object objectToConvert, MessageProperties messageProperties, @Nullable Type genericType) throws MessageConversionException {<NEW_LINE>byte[] bytes;<NEW_LINE>try {<NEW_LINE>if (this.charsetIsUtf8 && this.supportedCTCharset == null) {<NEW_LINE>bytes = this.objectMapper.writeValueAsBytes(ob... | messageProperties.setContentEncoding(getDefaultCharset()); |
1,070,474 | public static String[] split(String regex, CharSequence input) {<NEW_LINE>int index = 0;<NEW_LINE>ArrayList<String> <MASK><NEW_LINE>Matcher m = Pattern.compile(regex).matcher(input);<NEW_LINE>// Add segments before each match found<NEW_LINE>while (m.find()) {<NEW_LINE>matchList.add(input.subSequence(index, m.start()).t... | matchList = new ArrayList<>(); |
150,844 | private void buildOutputContainer() {<NEW_LINE>// Populate the list of statistics which will be output in the schema<NEW_LINE>for (VectorWrapper<?> vw : incoming) {<NEW_LINE>for (String outputStatName : functions.keySet()) {<NEW_LINE>if (functions.get(outputStatName).equals(vw.getField().getName())) {<NEW_LINE>mergedSt... | ValueExpressions.getBigInt(schema++)); |
1,274,626 | public GithubClient createClient(ProjectAlmSettingDto projectAlmSettingDto, AlmSettingDto almSettingDto) {<NEW_LINE>String apiUrl = Optional.ofNullable(almSettingDto.getUrl()).orElseThrow(() -> new InvalidConfigurationException(InvalidConfigurationException.Scope.GLOBAL, "No URL has been set for Github connections"));<... | ex.getMessage(), ex); |
391,141 | public String visitValues(ValuesRelation node, Void scope) {<NEW_LINE>StringBuilder sqlBuilder = new StringBuilder();<NEW_LINE>if (node.isNullValues()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>sqlBuilder.append("(VALUES");<NEW_LINE>List<String> values = new ArrayList<>();<NEW_LINE>for (int i = 0; i < node.getRows().... | append(node.getAlias()); |
67,014 | protected Map<UUID, FilterEntity> copyFilters(User fromUser, User toUser) {<NEW_LINE>Map<UUID, FilterEntity> filtersMap = new HashMap<>();<NEW_LINE>try (Transaction tx = persistence.createTransaction()) {<NEW_LINE>MetaClass effectiveMetaClass = metadata.getExtendedEntities().getEffectiveMetaClass(FilterEntity.class);<N... | setName(filter.getName()); |
416,455 | public ResponseEntity<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws RestClientException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
507,615 | public <K, V> void assertContainsExactly(AssertionInfo info, Map<K, V> actual, Entry<? extends K, ? extends V>[] entries) {<NEW_LINE>doCommonContainsCheck(info, actual, entries);<NEW_LINE>if (actual.isEmpty() && entries.length == 0)<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>assertHasSameSizeAs(info, actual, entries);<N... | failIfEntriesIsEmptySinceActualIsNotEmpty(info, actual, entries); |
1,525,375 | private static Class<?> toBoxedType(Class<?> type) {<NEW_LINE>assert type.isPrimitive();<NEW_LINE>// void cannot be used as a constructor argument in Java<NEW_LINE>assert type != void.class;<NEW_LINE>if (type == boolean.class) {<NEW_LINE>return Boolean.class;<NEW_LINE>} else if (type == byte.class) {<NEW_LINE>return By... | "Unknown primitive type " + type.getName()); |
1,628,429 | public static void initLocked(final ClassLoader classLoader) {<NEW_LINE>//<NEW_LINE>final String IPC = "com.qihoo360.replugin.base.IPC";<NEW_LINE>getCurrentProcessName = new MethodInvoker(classLoader, IPC, "getCurrentProcessName", new Class<?>[] {});<NEW_LINE>getCurrentProcessId = new MethodInvoker(classLoader, IPC, "g... | [] { String.class }); |
1,215,160 | public static void clearCustomMetricDescriptors(MetricServiceSettings settings, String projectId) {<NEW_LINE>try {<NEW_LINE>MetricServiceClient client = MetricServiceClient.create(settings);<NEW_LINE>Iterable<MetricServiceClient.ListMetricDescriptorsPage> listMetricDescriptorsPages = client.listMetricDescriptors(ListMe... | "deleting " + metricDescriptor.getName()); |
511,767 | protected void consumeEnterAnonymousClassBody(boolean qualified) {<NEW_LINE>// EnterAnonymousClassBody ::= $empty<NEW_LINE>TypeReference typeReference = getTypeReference(0);<NEW_LINE>TypeDeclaration anonymousType = new TypeDeclaration(this.compilationUnit.compilationResult);<NEW_LINE>anonymousType.name = CharOperation.... | .declarationSourceStart = alloc.type.sourceStart; |
1,125,317 | public GetDelegationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDelegationsResult getDelegationsResult = new GetDelegationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
1,620,344 | public ByteBuf encrypt(ByteBuf message, ByteBufAllocator allocator) throws InvalidKeyException, NoSuchPaddingException, NoSuchAlgorithmException, BadPaddingException, ShortBufferException, IllegalBlockSizeException {<NEW_LINE>Cipher cipher = Cipher.getInstance(algorithm);<NEW_LINE>cipher.init(Cipher.ENCRYPT_MODE, secre... | int blockSize = cipher.getBlockSize(); |
152,332 | public void notifyBlacklistedConnection(ConnectionDescriptor conn) {<NEW_LINE>int uid = conn.uid;<NEW_LINE>AppDescriptor app = appsResolver.get(conn.uid, 0);<NEW_LINE>assert app != null;<NEW_LINE>FilterDescriptor filter = new FilterDescriptor();<NEW_LINE>filter.onlyBlacklisted = true;<NEW_LINE>Intent intent = new Inten... | .getIntentFlags(PendingIntent.FLAG_UPDATE_CURRENT)); |
1,317,467 | private static <T> T wrap(final Object model, final Class<T> modelClass, final Boolean useOldValues) {<NEW_LINE>if (model == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (modelClass.isInstance(model) && (useOldValues == null || useOldValues == Boolean.FALSE)) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>f... | interfaceTableName = InterfaceWrapperHelper.getTableNameOrNull(modelClass); |
986,879 | static String generateAttributeForMember(Class<?> enclosingClass, Member member) {<NEW_LINE>try {<NEW_LINE>MemberType memberType = getMemberType(member);<NEW_LINE>if (getType(member).isPrimitive()) {<NEW_LINE>return generateSimpleAttribute(enclosingClass.getSimpleName(), PRIMITIVES_TO_WRAPPERS.get(getType(member)).getS... | member.getName(), memberType); |
249,147 | public PeerComponent createBrowserComponent(Object browserComponent) {<NEW_LINE>synchronized (UiApplication.getEventLock()) {<NEW_LINE>BrowserField bff = new BrowserField();<NEW_LINE>final BrowserComponent cmp = (BrowserComponent) browserComponent;<NEW_LINE>bff.addListener(new BrowserFieldListener() {<NEW_LINE><NEW_LIN... | documentCreated(browserField, scriptEngine, document); |
44,391 | public void restore(BackupInput reader) {<NEW_LINE>listeners = reader.readObject();<NEW_LINE>preparedKeys = reader.readObject();<NEW_LINE>Map<K, MapEntryValue> map = reader.readObject();<NEW_LINE>this.map = createMap();<NEW_LINE>this.map.putAll(map);<NEW_LINE>activeTransactions = reader.readObject();<NEW_LINE>currentVe... | null, toVersioned(value))); |
1,007,085 | public GetUserSettingsResponse convertSettings(String smtpAddress, List<UserSettingName> requestedSettings) {<NEW_LINE>GetUserSettingsResponse response = new GetUserSettingsResponse();<NEW_LINE>response.setSmtpAddress(smtpAddress);<NEW_LINE>if (this.getError() != null) {<NEW_LINE>response.setErrorCode(AutodiscoverError... | account.convertToUserSettings(requestedSettings, response); |
1,512,118 | public boolean apply(Game game, Ability source) {<NEW_LINE>// Exile enchanted creature and all Auras attached to it.<NEW_LINE>Permanent enchantment = game.getPermanent(source.getSourceId());<NEW_LINE>if (enchantment == null) {<NEW_LINE>enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BA... | game.addDelayedTriggeredAbility(delayedAbility, source); |
1,831,203 | public static List400PicLinkResponse unmarshall(List400PicLinkResponse list400PicLinkResponse, UnmarshallerContext context) {<NEW_LINE>list400PicLinkResponse.setRequestId(context.stringValue("List400PicLinkResponse.RequestId"));<NEW_LINE>list400PicLinkResponse.setSuccess(context.booleanValue("List400PicLinkResponse.Suc... | ("List400PicLinkResponse.Data[" + i + "].Pic")); |
1,529,703 | public void globalMutableStateLock() {<NEW_LINE>throwExceptionIfClosed();<NEW_LINE>try {<NEW_LINE>GLOBAL_MUTABLE_STATE_LOCK_ACQUISITION_STRATEGY.acquire(GLOBAL_MUTABLE_STATE_LOCK_TRY_ACQUIRE_OPERATION, GLOBAL_MUTABLE_STATE_LOCKING_STRATEGY, nativeAccess(), null, globalMutableStateAddress() + GLOBAL_MUTABLE_STATE_LOCK_O... | (globalMutableStateAddress() + GLOBAL_MUTABLE_STATE_LOCK_OFFSET)); |
751,174 | public void run(RegressionEnvironment env) {<NEW_LINE>// test when-then with condition triggered by output events<NEW_LINE>sendTimeEvent(env, 2, <MASK><NEW_LINE>String eplToDeploy = "create variable boolean varOutputTriggered = false\n;" + "@Audit @Name('s0') select * from SupportBean#lastevent output snapshot when (co... | 8, 0, 0, 0); |
573,314 | final ListRemoteAccessSessionsResult executeListRemoteAccessSessions(ListRemoteAccessSessionsRequest listRemoteAccessSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRemoteAccessSessionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,734,567 | public static void main(String[] args) throws Exception {<NEW_LINE>System.setOut(new PrintStream(System.out, true, "UTF-8"));<NEW_LINE>System.setErr(new PrintStream(System.err, true, "UTF-8"));<NEW_LINE>Properties config = StringUtils.argsToProperties(args);<NEW_LINE>checkArgs(config);<NEW_LINE><MASK><NEW_LINE>String t... | CountClosedTags cct = new CountClosedTags(config); |
1,813,318 | ComponentInfo configureProcess() throws IOException {<NEW_LINE>input.existingFiles().setVerifyJars(verifyJars);<NEW_LINE>Version min = input.getLocalRegistry().getGraalVersion();<NEW_LINE>String s = input.peekParameter();<NEW_LINE>Version v = min;<NEW_LINE>Version.Match filter = min.match(allowDistUpgrades() ? Version.... | = Version.Match.Type.EXACT; |
1,526,090 | public static GetResult extractGetResult(final UpdateRequest request, String concreteIndex, long seqNo, long primaryTerm, long version, final Map<String, Object> source, XContentType sourceContentType, @Nullable final BytesReference sourceAsBytes) {<NEW_LINE>if (request.fetchSource() == null || request.fetchSource().fe... | 1024, sourceAsBytes.length()); |
44,587 | private Mono<PagedResponse<NotebookWorkspaceInner>> listByDatabaseAccountSinglePageAsync(String resourceGroupName, String accountName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot ... | this.client.mergeContext(context); |
288,457 | Bag<LinkSite> create(ComponentType ct) {<NEW_LINE>Class<?<MASK><NEW_LINE>Field[] fields = ClassReflection.getDeclaredFields(type);<NEW_LINE>links.clear();<NEW_LINE>for (int i = 0; fields.length > i; i++) {<NEW_LINE>Field f = fields[i];<NEW_LINE>int referenceTypeId = getReferenceTypeId(f);<NEW_LINE>if (referenceTypeId !... | > type = ct.getType(); |
1,494,019 | public boolean doIWantToQuit(MissionInit missionInit) {<NEW_LINE>this.quitCode = "";<NEW_LINE>List<Entity> caughtEntities = RewardForCatchingMobImplementation.getCaughtEntities();<NEW_LINE>for (Entity ent : caughtEntities) {<NEW_LINE>// Do we care about this entity?<NEW_LINE>for (MobWithDescription mob : this.qcmparams... | .quitCode = mob.getDescription(); |
1,217,521 | public void loadDynamicClasses() {<NEW_LINE>final ArrayList<SootClass> dynamicClasses = new ArrayList<>();<NEW_LINE>final Options opts = Options.v();<NEW_LINE>final Map<String, List<String>> temp = new HashMap<>();<NEW_LINE>temp.put(<MASK><NEW_LINE>final ModulePathSourceLocator msloc = ModulePathSourceLocator.v();<NEW_... | null, opts.dynamic_class()); |
1,167,368 | public static DescribeDcdnUserResourcePackageResponse unmarshall(DescribeDcdnUserResourcePackageResponse describeDcdnUserResourcePackageResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnUserResourcePackageResponse.setRequestId(_ctx.stringValue("DescribeDcdnUserResourcePackageResponse.RequestId"));<NEW_LINE>Lis... | = new ArrayList<ResourcePackageInfo>(); |
119,494 | public boolean apply(Game game, Ability source) {<NEW_LINE>List<UUID> attackers = game.getCombat().getAttackers();<NEW_LINE>for (UUID attackerId : attackers) {<NEW_LINE>Permanent creature = game.getPermanent(attackerId);<NEW_LINE>if (creature != null) {<NEW_LINE>creature.removeFromCombat(game);<NEW_LINE>creature.untap(... | .COMBAT, null, false)); |
52,146 | public final ResultList<Location> listPrefixesAfter(Fields fields, String fqn, int limitParam, String after) throws IOException {<NEW_LINE>String service = EntityUtil.splitFQN(fqn)[0];<NEW_LINE>// forward scrolling, if after == null then first page is being asked<NEW_LINE>List<String> jsons = daoCollection.locationDAO(... | getNameColumn(), fqn, service); |
731,056 | public void onChapterLoadSuccess(List<Chapter> list) {<NEW_LINE>hideProgressBar();<NEW_LINE>if (mPresenter.getComic().getTitle() != null && mPresenter.getComic().getCover() != null) {<NEW_LINE>mDetailAdapter.clear();<NEW_LINE>mDetailAdapter.addAll(list);<NEW_LINE>mDetailAdapter.notifyDataSetChanged();<NEW_LINE>}<NEW_LI... | FirebaseAnalytics.Event.VIEW_ITEM, bundle); |
1,134,323 | private void refresh() {<NEW_LINE>if (requestProcessor == null)<NEW_LINE>requestProcessor = new RequestProcessor("SelectedNodesScheduler");<NEW_LINE>requestProcessor.post(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>final Node[] nodes = TopComponent.getRegistry().getActivatedNodes();<NEW_LINE>if (no... | FileObject fileObject = dataObject.getPrimaryFile(); |
651,767 | protected void addPatchEntry(int index, java.util.function.Consumer<Value> cb) {<NEW_LINE>assert (index > 0);<NEW_LINE>//<NEW_LINE>// Check if we have already unmarshalled the instance. If that's the case,<NEW_LINE>// just invoke the callback and we're done.<NEW_LINE>//<NEW_LINE>Value <MASK><NEW_LINE>if (obj != null) {... | obj = _unmarshaledMap.get(index); |
680,501 | public void handle(UpgradeHttpMessage message) {<NEW_LINE>HttpMessage httpMsg = (HttpMessage) message.getObjectParam("message");<NEW_LINE>// Package downloading is time-consuming task, so use 1+n queue to execute it.<NEW_LINE>I1NQueueWorker queueWorker = this.get1NQueueWorkerMgr().getQueueWorker(this.feature, UpgradeCo... | httpMsg.getParameter(UpgradeConstants.DOWNLOAD_REQUEST_PARAM_KEY); |
811,895 | public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException, NetworkRuleConflictException {<NEW_LINE>if (getAccountType() == null && getRoleId() == null) {<NEW_LINE>throw new ServerApiException(ApiErrorCode.PARAM... | users = _ldapManager.getUsers(domainId); |
1,779,519 | public static <ReturnType> ReturnType dispatchWithExceptionHandling(@Nullable final Account account, final String pluginNames, final Callable<PluginDispatcherReturnType<ReturnType>> callable, final PluginDispatcher<ReturnType> pluginDispatcher) throws PaymentApiException {<NEW_LINE>final UUID accountId = account != nul... | PaymentApiException(ErrorCode.PAYMENT_INTERNAL_ERROR, format); |
555,300 | public String decryptItem(JSONObject encryptedItem, KeyStore.SecretKeyEntry secretKeyEntry) throws GeneralSecurityException, JSONException {<NEW_LINE>String ciphertext = encryptedItem.getString(CIPHERTEXT_PROPERTY);<NEW_LINE>String ivString = encryptedItem.getString(IV_PROPERTY);<NEW_LINE>int authenticationTagLength = ... | cipher = Cipher.getInstance(AES_CIPHER); |
389,797 | private static URL extractURL(HttpServletRequest request) {<NEW_LINE>String urlString;<NEW_LINE>String <MASK><NEW_LINE>if (refererHeader != null) {<NEW_LINE>if (OpenAPIUtils.isEventEnabled(tc)) {<NEW_LINE>Tr.event(tc, "Using referer header to generate servers: " + refererHeader);<NEW_LINE>}<NEW_LINE>refererHeader = ref... | refererHeader = request.getHeader(HTTP_HEADER_REFERER); |
722,238 | public static void convertBgp(BgpProcess bgpProcess, Configuration c, Warnings w) {<NEW_LINE>long as = bgpProcess.getAsEffective();<NEW_LINE>if (as == 0L) {<NEW_LINE>// this is the standard way to disable BGP in FortiOS<NEW_LINE>return;<NEW_LINE>} else if (as == 65535L || as == 4294967295L) {<NEW_LINE>w.redFlag(String.... | getUpdateSource(neighbor, c, w); |
1,146,977 | private void placeBlockSimple(BlockPos pos) {<NEW_LINE>Direction side = null;<NEW_LINE>Direction[] sides = Direction.values();<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>Vec3d posVec = Vec3d.ofCenter(pos);<NEW_LINE>double distanceSqPosVec = eyesPos.squaredDistanceTo(posVec);<NEW_LINE>Vec3d[] hitVecs ... | = new Vec3d[sides.length]; |
1,848,397 | private int doSerialTasksWithRate() throws Exception {<NEW_LINE>initTasksArray();<NEW_LINE>long delayStep = (perMin ? 60000 : 1000) / rate;<NEW_LINE>long nextStartTime = System.currentTimeMillis();<NEW_LINE>int count = 0;<NEW_LINE>final long t0 = System.currentTimeMillis();<NEW_LINE>for (int k = 0; (repetitions == REPE... | grow(countsByTime, 1 + slot); |
1,481,111 | protected void onNewIntent(Intent intent) {<NEW_LINE>super.onNewIntent(intent);<NEW_LINE>Log_OC.d(TAG, "onNewIntent()");<NEW_LINE>if (intent.getBooleanExtra(FirstRunActivity.EXTRA_EXIT, false)) {<NEW_LINE>super.finish();<NEW_LINE>}<NEW_LINE>onlyAdd = intent.getBooleanExtra(KEY_ONLY_ADD, false) || checkIfViaSSO(intent);... | parseAndLoginFromWebView(data.toString()); |
1,593,139 | static void writeUnraisable(VirtualFrame frame, PBaseException exception, String message, Object object, @Cached PyObjectLookupAttr lookup, @Cached CallNode callNode, @Cached GetClassNode getClassNode, @Cached PythonObjectFactory factory, @Cached GetExceptionTracebackNode getExceptionTracebackNode) {<NEW_LINE>PythonCon... | exceptionType = getClassNode.execute(exception); |
1,566,755 | public void run() {<NEW_LINE>try {<NEW_LINE>NamingMetadataManager metadataManager = <MASK><NEW_LINE>Optional<ServiceMetadata> serviceMetadata = metadataManager.getServiceMetadata(service);<NEW_LINE>if (!serviceMetadata.isPresent()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServiceManager serviceManager = ApplicationUtils.... | ApplicationUtils.getBean(NamingMetadataManager.class); |
555,313 | public InstanceTagNotificationAttribute unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceTagNotificationAttribute instanceTagNotificationAttribute = new InstanceTagNotificationAttribute();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1... | new ArrayList<String>()); |
438,215 | public void fixupVariables(java.util.Vector vars, int globalsSize) {<NEW_LINE>m_fixUpWasCalled = true;<NEW_LINE>int sz = vars.size();<NEW_LINE>for (int i = vars.size() - 1; i >= 0; i--) {<NEW_LINE>QName qn = (<MASK><NEW_LINE>// System.out.println("qn: "+qn);<NEW_LINE>if (qn.equals(m_qname)) {<NEW_LINE>if (i < globalsSi... | QName) vars.elementAt(i); |
538,327 | public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>String name = method.getName();<NEW_LINE>Class<?>[] params = method.getParameterTypes();<NEW_LINE>if ("equals".equals(name) && params.length == 1 && params[0] == Object.class) {<NEW_LINE>Object o = args[0];<NEW_LINE>if (o... | logResult(method, args, result); |
1,236,558 | private static synchronized List<byte[]> splitBytes(byte[] bytes, int size) {<NEW_LINE>List<byte[]> byteList = new ArrayList<>();<NEW_LINE>double splitLength = Double.parseDouble(WeIdConstant.MAX_AUTHORITY_ISSUER_NAME_LENGTH + "");<NEW_LINE>int arrayLength = (int) Math.ceil(bytes.length / splitLength);<NEW_LINE>byte[] ... | (int) (i * splitLength); |
921,964 | public void trainModel(String[] lingFactors, String featuresFile, int numFeatures, double percentToTrain, SoP sop) throws Exception {<NEW_LINE>// desired size of the solution<NEW_LINE>int d = solutionSize;<NEW_LINE>// maximum deviation allowed with respect to d<NEW_LINE>int D = 0;<NEW_LINE>int cols = lingFactors.length... | "\nNumber points used for testing=" + (rowEndTest - rowIniTest)); |
645,325 | public void beforeIndexRemoved(IndexService indexService, IndexRemovalReason reason) {<NEW_LINE>if (shouldEvictCacheFiles(reason)) {<NEW_LINE>if (indexService.getMetadata().isSearchableSnapshot()) {<NEW_LINE>final IndexSettings indexSettings = indexService.getIndexSettings();<NEW_LINE>for (IndexShard indexShard : index... | .getSettings()), shardId); |
1,005,271 | public CharSequence toLocalizedString(@NonNull Context context) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (mSize != -1) {<NEW_LINE>sb.append(Formatter.formatFileSize(context, mSize)).append(", ");<NEW_LINE>}<NEW_LINE>switch(mArch) {<NEW_LINE>case ARCH_32BIT:<NEW_LINE>sb.append(context.getString(R.s... | so_type_shared_library)).append(", "); |
700,732 | private void startPlay(String linkStreamId) {<NEW_LINE>String userId = String.valueOf(new Random().nextInt(10000));<NEW_LINE>String playURL = URLUtils.generatePlayUrl(linkStreamId, userId, 0);<NEW_LINE>if (mLivePlayer == null) {<NEW_LINE>mLivePlayer = new V2TXLivePlayerImpl(LivePKAnchorActivity.this);<NEW_LINE>mLivePla... | d(TAG, "startPlay : " + result); |
983,318 | public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>if (keyed) {<NEW_LINE>builder.startObject("values");<NEW_LINE>for (double percent : percents) {<NEW_LINE>double value = percentile(percent);<NEW_LINE>boolean hasValue = !(Double.isInfinite(value) <MASK><NEW_LINE>... | || Double.isNaN(value)); |
1,774,743 | private static void updateCommentsData(CodeArea codeArea, Consumer<List<ICodeComment>> updater) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>JadxCodeData codeData = project.getCodeData();<NEW_LINE>if (codeData == null) {<NEW_LINE>codeData = new JadxCodeData();<NEW_LINE>}<NEW_LINE>List<ICodeComment> list = new ArrayList<>(... | JadxProject project = codeArea.getProject(); |
1,525,873 | public void exitRo_redistribute_connected(Ro_redistribute_connectedContext ctx) {<NEW_LINE>OspfProcess proc = _currentOspfProcess;<NEW_LINE>RedistributionSourceProtocol sourceProtocol = RedistributionSourceProtocol.CONNECTED;<NEW_LINE>OspfRedistributionPolicy r = new OspfRedistributionPolicy(sourceProtocol);<NEW_LINE>p... | ctx.map.getLine()); |
1,168,283 | @UiThread<NEW_LINE>private static Constructor<? extends Unbinder> findBindingConstructorForClass(Class<?> cls) {<NEW_LINE>Constructor<? extends Unbinder> bindingCtor = BINDINGS.get(cls);<NEW_LINE>if (bindingCtor != null || BINDINGS.containsKey(cls)) {<NEW_LINE>if (debug)<NEW_LINE>Log.d(TAG, "HIT: Cached in binding map.... | Log.d(TAG, "HIT: Loaded binding class and constructor."); |
246,186 | private AndroidManifest parse(File androidManifestFile, boolean libraryProject) throws AndroidManifestNotFoundException {<NEW_LINE>DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>DocumentBuilder docBuilder = docBuilderFactory.newDocumentBui... | getAttributes().getNamedItem("android:debuggable"); |
1,202,292 | private void runDocumentActionExclusively(Action<DocumentAccess> action) throws IOException {<NEW_LINE>if (readAccess != null) {<NEW_LINE>throw new IllegalStateException("Already in read access.");<NEW_LINE>}<NEW_LINE>if (writeAccess) {<NEW_LINE>throw new IllegalStateException("Reentrant write access not supported");<N... | controller = file2Controller.get(currentFile); |
127,494 | private void createDatasets(int max, boolean sameFloor) throws Exception {<NEW_LINE>this.dataset = new ArrayList<>();<NEW_LINE>// sum sources<NEW_LINE>for (int i = 1; i < source.length; i++) {<NEW_LINE>source[i] += source[i - 1];<NEW_LINE>}<NEW_LINE>// sum probabilities<NEW_LINE>for (int i = 0; i < probabilities.length... | )[stop].getFloor(); |
180,684 | private <E extends Entity> E reloadIfNeeded(E entity, CollectionContainer<E> container, EditorBuilder<E> builder) {<NEW_LINE>if (container == null || builder.getTransformation() != null) {<NEW_LINE>return entity;<NEW_LINE>}<NEW_LINE>boolean needDynamicAttributes = false;<NEW_LINE>boolean dynamicAttributesAreLoaded = tr... | CollectionLoader) loader).isLoadDynamicAttributes(); |
501,554 | public Executable configure(PrintStream out, PrintStream err, String... args) {<NEW_LINE>return () -> {<NEW_LINE>int longest = // two space padding either side<NEW_LINE>commands.stream().filter(CliCommand::isShown).map(CliCommand::getName).max(Comparator.comparingInt(String::length)).map(String::length).orElse(0) + 2;<... | String format = " %-" + longest + "s"; |
930,492 | public static String parseETagValue(String value) {<NEW_LINE>String eTagVersion;<NEW_LINE>value = value.trim();<NEW_LINE>if (value.length() > 1) {<NEW_LINE>if (value.charAt(value.length() - 1) == '"') {<NEW_LINE>if (value.charAt(0) == '"') {<NEW_LINE>eTagVersion = value.substring(1, value.length() - 1);<NEW_LINE>} else... | value.length() - 1); |
1,075,221 | final DescribeAffectedEntitiesForOrganizationResult executeDescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest describeAffectedEntitiesForOrganizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAffectedEntitiesForOrganizationRequest);<NEW_LIN... | invoke(request, responseHandler, executionContext); |
1,267,865 | public static void testSendPushWithCustomConfig() {<NEW_LINE>ClientConfig config = ClientConfig.getInstance();<NEW_LINE>// Setup the custom hostname<NEW_LINE>config.setPushHostName("https://api.jpush.cn");<NEW_LINE>JPushClient jpushClient = new JPushClient(MASTER_SECRET, APP_KEY, null, config);<NEW_LINE>// For push, al... | "Error Message: " + e.getErrorMessage()); |
972,625 | public void execute(String label, IArgConsumer args) throws CommandException {<NEW_LINE>final BetterBlockPos playerPos = baritone.getPlayerContext().playerFeet();<NEW_LINE>final int surfaceLevel = baritone.getPlayerContext().world().getSeaLevel();<NEW_LINE>final int worldHeight = baritone.getPlayerContext()<MASK><NEW_L... | .world().getActualHeight(); |
908,195 | public static void doAdd(File repository, List<File> addFiles, OutputLogger logger) throws HgException {<NEW_LINE>if (repository == null)<NEW_LINE>return;<NEW_LINE>if (addFiles.isEmpty())<NEW_LINE>return;<NEW_LINE>List<String> basicCommand = new ArrayList<String>();<NEW_LINE><MASK><NEW_LINE>basicCommand.add(HG_ADD_CMD)... | basicCommand.add(getHgCommand()); |
1,484,101 | private void fillEdges(SPTEntry currEdge, PriorityQueue<SPTEntry> prioQueue, IntObjectMap<SPTEntry> bestWeightMap, boolean reverse) {<NEW_LINE>EdgeIterator iter = edgeExplorer.setBaseNode(currEdge.adjNode);<NEW_LINE>while (iter.next()) {<NEW_LINE>if (!accept(iter, currEdge.edge))<NEW_LINE>continue;<NEW_LINE>final doubl... | entry = bestWeightMap.get(traversalId); |
1,381,795 | private static void tryAssertion13_14(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "volume", "price" };<NEW_LINE>ResultAssertTestResult ex... | ResultAssertTestResult(CATEGORY, outputLimit, fields); |
968,655 | private static void extractFrontAndRearInsertions(final SimpleInterval refSegment, final int segmentIdx, final List<String> altArrangement, final Allele anchorBaseRefAlleleFront, final Allele anchorBaseRefAlleleRear, final List<VariantContextBuilder> result) {<NEW_LINE>final List<Integer> segmentLen = Collections.singl... | ), refSegment.getEnd()); |
1,513,778 | public void logInfo() {<NEW_LINE>getProject().getLogger().warn(getName() + " is experimental, its options and output might change in future versions");<NEW_LINE>final QuarkusProject quarkusProject = getQuarkusProject(false);<NEW_LINE>final Map<String, Object> params = new HashMap<>();<NEW_LINE>params.put(UpdateCommandH... | throw new GradleException("Failed to collect Quarkus project information", e); |
819,238 | private void commandLods(Instruction instruction, int flags) {<NEW_LINE>int addressSize;<NEW_LINE>int rSI, rCX;<NEW_LINE>switch(instruction.getOp1Kind()) {<NEW_LINE>case OpKind.MEMORY_SEG_SI:<NEW_LINE>addressSize = CodeSize.CODE16;<NEW_LINE>rSI = Register.SI;<NEW_LINE>rCX = Register.CX;<NEW_LINE>break;<NEW_LINE>case Op... | : info.usedRegisters.size(); |
882,039 | public int readI32() throws TException {<NEW_LINE>readCurrentContext();<NEW_LINE>final Class<?> fieldClass = getCurrentFieldClassIfIs(TEnum.class);<NEW_LINE>if (fieldClass != null) {<NEW_LINE>// Enum fields may be set by string, even though they represent integers.<NEW_LINE>final JsonNode elem = getCurrentContext().get... | TypedParser.INTEGER.readFromJsonElement(elem); |
613,592 | static Set<String> prepareSystemProperties(@NonNull final Context context, @NonNull final Map<String, Object> properties, final boolean test) {<NEW_LINE>String prefix = test <MASK><NEW_LINE>Map<String, String> evaluated = context.getPropertyEvaluator().getProperties();<NEW_LINE>if (evaluated == null) {<NEW_LINE>return ... | ? ProjectProperties.SYSTEM_PROPERTIES_TEST_PREFIX : ProjectProperties.SYSTEM_PROPERTIES_RUN_PREFIX; |
1,273,262 | public static void wrapScalarBlock(TensorType type, List<String> dimensionOrder, String mappedDimensionLabel, List<ExpressionNode> nodes, Map<TensorAddress, ScalarFunction<Reference>> receivingMap) {<NEW_LINE>TensorType denseSubtype = new TensorType(type.valueType(), type.dimensions().stream().filter(d -> d.isIndexed()... | retainAll(denseSubtype.dimensionNames()); |
1,055,940 | public String addNzb(byte[] fileContent, String title, String category) throws DownloaderException {<NEW_LINE>// Using OKHTTP here because RestTemplate wouldn't work<NEW_LINE>logger.debug("Uploading NZB {} to sabnzbd", title);<NEW_LINE>UriComponentsBuilder urlBuilder = getBaseUrl();<NEW_LINE>title = suffixNzbToTitle(ti... | String bodyContent = body.string(); |
713,636 | public void specialOkResponse(AbstractService service) {<NEW_LINE>ShardingService shardingService = session.getShardingService();<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>errorNodeCount++;<NEW_LINE>decrementToZero((MySQLResponseService) service);<NEW_LINE>if (unResponseRrns.size() != 0 || dnSet.size() > errorNodeC... | errorPacket, AutoTxOperation.ROLLBACK, false); |
1,100,515 | public boolean updateClusterPassword(final UpdateHostPasswordCmd command) {<NEW_LINE>final boolean shouldUpdateHostPasswd = command.getUpdatePasswdOnHost();<NEW_LINE>// get agents for the cluster<NEW_LINE>final List<HostVO> hosts = listAllHostsInCluster(command.getClusterId());<NEW_LINE>for (final HostVO host : hosts) ... | doUpdateHostPassword(host.getId()); |
1,798,194 | final RestoreImageFromRecycleBinResult executeRestoreImageFromRecycleBin(RestoreImageFromRecycleBinRequest restoreImageFromRecycleBinRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreImageFromRecycleBinRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestoreImageFromRecycleBin"); |
1,090,928 | public com.amazonaws.services.cloudwatchevidently.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudwatchevidently.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.cloudwatchevidently... | JsonToken token = context.getCurrentToken(); |
265,740 | public I_S_Resource findPlantFromOrNull(final I_DD_OrderLine ddOrderLine) {<NEW_LINE>Check.assumeNotNull(ddOrderLine, LiberoException.class, "ddOrderLine not null");<NEW_LINE>//<NEW_LINE>// First, if we were asked to keep the target plant, let's do it<NEW_LINE>if (ddOrderLine.isKeepTargetPlant()) {<NEW_LINE>final I_S_R... | getWarehouseByLocatorRepoId(ddOrderLine.getM_Locator_ID()); |
705,245 | public static GetHeatMapDataResponse unmarshall(GetHeatMapDataResponse getHeatMapDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>getHeatMapDataResponse.setEMapName(_ctx.stringValue("GetHeatMapDataResponse.EMapName"));<NEW_LINE>getHeatMapDataResponse.setWidth(_ctx.floatValue("GetHeatMapDataResponse.Width"));<NEW_LINE... | = new ArrayList<HeatMapItem>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.