idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
832,950 | private void compareSchedules(Timer t) {<NEW_LINE>ScheduleExpression se = t.getSchedule();<NEW_LINE>String info = (String) t.getInfo();<NEW_LINE>Date nextTimeout = t.getNextTimeout();<NEW_LINE>Timer t1 = createCalTimerWithSE(se, info);<NEW_LINE>long timeRemaining = t.getTimeRemaining();<NEW_LINE>// 591377<NEW_LINE>long... | "Expected same timeRemaining", t1TimeRemaining - timeRemaining < 5); |
1,521,475 | public StubElement buildStubTree(@Nonnull PsiFile file) {<NEW_LINE>LighterAST tree = FORCED_AST.get();<NEW_LINE>if (tree == null) {<NEW_LINE>FileType fileType = file.getFileType();<NEW_LINE>if (!(fileType instanceof LanguageFileType)) {<NEW_LINE>LOG.error("File is not of LanguageFileType: " + file + ", " + fileType);<N... | rootStub = createStubForFile(file, tree); |
843,710 | private static void internalDeepMerge(Map left, Map right) {<NEW_LINE>for (Object key : right.keySet()) {<NEW_LINE>Object rightValue = right.get(key);<NEW_LINE>Object leftValue = left.get(key);<NEW_LINE>if (rightValue instanceof Map && leftValue instanceof Map) {<NEW_LINE>internalDeepMerge((Map) leftValue, (Map) rightV... | left.put(key, rightValue); |
1,484,478 | public com.squareup.okhttp.Call updateArticleCall(String albertaApiKey, String customerNumber, Article body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>//... | localVarHeaderParams.put("Content-Type", localVarContentType); |
276,385 | final DeletePushTemplateResult executeDeletePushTemplate(DeletePushTemplateRequest deletePushTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePushTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | invoke(request, responseHandler, executionContext); |
819,554 | public void createResizedSpriteAnimation(String animName, ResolutionEntryVO resolution) {<NEW_LINE>ProjectManager projectManager = facade.retrieveProxy(ProjectManager.NAME);<NEW_LINE>String currProjectPath = projectManager.getCurrentProjectPath();<NEW_LINE>File animAtlasFile = new File(currProjectPath + File.separator ... | File tmpFolder = new File(tmpPath); |
1,633,617 | private int onScrollPageUp(boolean isFocusDriven) {<NEW_LINE>ListCell<T<MASK><NEW_LINE>if (firstVisibleCell == null)<NEW_LINE>return -1;<NEW_LINE>final SelectionModel<T> sm = getSkinnable().getSelectionModel();<NEW_LINE>final FocusModel<T> fm = getSkinnable().getFocusModel();<NEW_LINE>if (sm == null || fm == null)<NEW_... | > firstVisibleCell = flow.getFirstVisibleCellWithinViewport(); |
218,838 | static boolean eqNotNull(Number a, Number b) {<NEW_LINE>Class clazzA = a.getClass();<NEW_LINE>boolean isIntA = isInt(clazzA);<NEW_LINE>Class clazzB = b.getClass();<NEW_LINE>boolean isIntB = isInt(clazzB);<NEW_LINE>if (a instanceof BigDecimal) {<NEW_LINE>BigDecimal decimalA = (BigDecimal) a;<NEW_LINE>if (isIntB) {<NEW_L... | () == b.longValue(); |
1,161,573 | public HollowConsumer.Blob retrieveReverseDeltaBlob(long currentVersion) {<NEW_LINE>try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(blobStorePath)) {<NEW_LINE>for (Path path : directoryStream) {<NEW_LINE>String filename = path<MASK><NEW_LINE>if (filename.startsWith("reversedelta-" + currentVersion... | .getFileName().toString(); |
470,156 | private void downloadRegion(final String regionName) {<NEW_LINE>// Define offline region parameters, including bounds,<NEW_LINE>// min/max zoom, and metadata<NEW_LINE>// Start the progressBar<NEW_LINE>startProgress();<NEW_LINE>// Create offline definition using the current<NEW_LINE>// style and boundaries of visible ma... | bounds, minZoom, maxZoom, pixelRatio); |
998,220 | public com.amazonaws.services.cloudhsmv2.model.CloudHsmInternalFailureException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudhsmv2.model.CloudHsmInternalFailureException cloudHsmInternalFailureException = new com.amazonaws.services.cloudhsmv2.model.Cloud... | JsonToken token = context.getCurrentToken(); |
959,641 | public static CockroachDBSelect generateSelect(CockroachDBGlobalState globalState, int nrColumns) {<NEW_LINE>CockroachDBTables tables = globalState.getSchema().getRandomTableNonEmptyTables();<NEW_LINE>CockroachDBExpressionGenerator gen = new CockroachDBExpressionGenerator(globalState).setColumns(tables.getColumns());<N... | .INT.get())); |
1,682,578 | public static ListTaskFlowInstanceResponse unmarshall(ListTaskFlowInstanceResponse listTaskFlowInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskFlowInstanceResponse.setRequestId(_ctx.stringValue("ListTaskFlowInstanceResponse.RequestId"));<NEW_LINE>listTaskFlowInstanceResponse.setErrorCode<MASK><NEW_LINE>l... | (_ctx.stringValue("ListTaskFlowInstanceResponse.ErrorCode")); |
1,058,270 | void constructA678() {<NEW_LINE>final int N = X1.numRows;<NEW_LINE>// Pseudo-inverse of hat(p)<NEW_LINE>computePseudo(X1, P_plus);<NEW_LINE>DMatrixRMaj PPpXP = new DMatrixRMaj(1, 1);<NEW_LINE>DMatrixRMaj PPpYP = new DMatrixRMaj(1, 1);<NEW_LINE>computePPXP(X1, P_plus, X2, 0, PPpXP);<NEW_LINE>computePPXP(X1, P_plus, X2, ... | PPpYP.data[index + 1]; |
1,513,987 | public static </*<NEW_LINE>* This method should really be annotated to accept maps with @Nullable value types. Fortunately,<NEW_LINE>* no existing Google callers appear to pass null values (much less pass null values *and* run a<NEW_LINE>* nullness checker).<NEW_LINE>*<NEW_LINE>* Still, if we decide that we want to mak... | , V> onlyOnLeft = newLinkedHashMap(); |
188,477 | private void writeLowCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, IntFunction<BytesRef> packedValues) throws IOException {<NEW_LINE>if (config.numIndexDims != 1) {<NEW_LINE>writeActualBounds(out, commonPrefixLengths, count, packedValues);<NEW_LINE>}<NEW_LINE>BytesRef value = pa... | scratch1, 0, config.packedBytesLength); |
583,956 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View rootView = inflater.inflate(R.<MASK><NEW_LINE>ButterKnife.bind(this, rootView);<NEW_LINE>hideLayouts();<NEW_LINE>// Leaderboard currently unimplemented in Beta flavor. Skip all API calls and disable menu<NE... | layout.fragment_leaderboard, container, false); |
1,712,270 | public DeleteInsertGraph visit(final ASTDeleteWhere node, final Object data) throws VisitorException {<NEW_LINE>// Collect construct triples<NEW_LINE>final GroupGraphPattern parentGP = graphPattern;<NEW_LINE>graphPattern = new GroupGraphPattern();<NEW_LINE>// inherit scope & context<NEW_LINE>graphPattern.setStatementPa... | assertNotAnonymousVariable(sp.s()); |
1,162,101 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Mapbox access token is configured here. This needs to be called either in your application<NEW_LINE>// object or in the same activity which contains the mapview.<NEW_LINE>Mapbox.getInstance(this, getString(R.st... | Toast.LENGTH_SHORT).show(); |
1,371,937 | protected StorageClient createStorageClient(final MemcachedNodesManager memcachedNodesManager, final String memcachedProtocol, final String username, final String password, final long operationTimeout, final long maxReconnectDelay, final Statistics statistics) {<NEW_LINE>try {<NEW_LINE>if (memcachedNodesManager.isRedis... | throw new RuntimeException("Could not create memcached client", e); |
1,058,916 | public void updateICFromMaterialTracking(final I_C_Invoice_Candidate ic, final Object referencedObject) {<NEW_LINE>if (referencedObject == null) {<NEW_LINE>// nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// set values from the referencedObject's material tracking<NEW_LINE>//<NEW_LINE>final IMaterialTr... | create(referencedObject, I_M_InOutLine.class); |
1,155,004 | private MHRMovement createMovementForCC(int C_BPartner_ID, I_PP_Cost_Collector cc, Map<String, Object> scriptCtx) {<NEW_LINE>// get the concept that should store the labor<NEW_LINE>MHRConcept concept = MHRConcept.forValue(getCtx(), CONCEPT_PP_COST_COLLECTOR_LABOR);<NEW_LINE>// get the attribute for specific concept<NEW... | setHR_Job_ID(employee.getHR_Job_ID()); |
157,493 | public void linkdedBySimpleValue(ODocument doc) {<NEW_LINE>ORemoteFetchListener listener = new ORemoteFetchListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void sendRecord(ORecord iLinked) {<NEW_LINE>if (!alreadySent.contains(iLinked.getIdentity())) {<NEW_LINE>alreadySent.add(iLinked.getIdentity());<NEW_LIN... | final OFetchContext context = new ORemoteFetchContext(); |
1,804,134 | protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, Params params) throws IOException {<NEW_LINE>builder.<MASK><NEW_LINE>if (includeDefaults || fieldType().boost() != 1.0f) {<NEW_LINE>builder.field("boost", fieldType().boost());<NEW_LINE>}<NEW_LINE>if (includeDefaults || mappedFieldType.isSe... | field("type", contentType()); |
955,943 | protected void fillContributionItems(final List<IContributionItem> menuItems) {<NEW_LINE>DBPDataSourceContainer dsContainer = AbstractDataSourceHandler.getDataSourceContainerFromPart(UIUtils.getActiveWorkbenchWindow().getActivePage().getActivePart());<NEW_LINE>if (dsContainer == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_... | dsContainer, preset, checked))); |
129,482 | protected Element findAndReplaceProperties(Counter counter, Element parent, String name, Map props) {<NEW_LINE>boolean shouldExist = props != null && !props.isEmpty();<NEW_LINE>Element element = updateElement(counter, parent, name, shouldExist);<NEW_LINE>if (shouldExist) {<NEW_LINE>Iterator it = props.keySet().iterator... | (Element) it.next(); |
1,339,527 | private Content createMultiDeviceMessageRequestResponseContent(MessageRequestResponseMessage message) {<NEW_LINE>Content.Builder container = Content.newBuilder();<NEW_LINE><MASK><NEW_LINE>SyncMessage.MessageRequestResponse.Builder responseMessage = SyncMessage.MessageRequestResponse.newBuilder();<NEW_LINE>if (message.g... | SyncMessage.Builder syncMessage = createSyncMessageBuilder(); |
827,297 | public void clusterChanged(ClusterChangedEvent changedEvent) {<NEW_LINE>final RestoreInProgress.Entry prevEntry = restoreInProgress(<MASK><NEW_LINE>final RestoreInProgress.Entry newEntry = restoreInProgress(changedEvent.state(), uuid);<NEW_LINE>if (prevEntry == null) {<NEW_LINE>// When there is a master failure after a... | changedEvent.previousState(), uuid); |
832,982 | public static int hash32(final byte[] data, int length) {<NEW_LINE>// 'm' and 'r' are mixing constants generated offline.<NEW_LINE>// They're not really 'magic', they just happen to work well.<NEW_LINE>final int m = 0x5bd1e995;<NEW_LINE>final int r = 24;<NEW_LINE>int h = /*seed*/<NEW_LINE>0;<NEW_LINE>int length4 = leng... | + 2] & 0xff) << 16; |
1,447,377 | public String[] orLogicalCriteria() {<NEW_LINE>final Session session = HibernateUtil.getHibernateSession();<NEW_LINE>final CriteriaBuilder cb = session.getCriteriaBuilder();<NEW_LINE>final CriteriaQuery<Item> cr = cb.createQuery(Item.class);<NEW_LINE>final Root<Item> root = cr.from(Item.class);<NEW_LINE>Predicate great... | query = session.createQuery(cr); |
662,593 | public static // }<NEW_LINE>Type fromJavaType(IJavaType javaType) {<NEW_LINE>if (javaType instanceof IPrimitiveType || javaType instanceof IVoidType) {<NEW_LINE>Type type = TYPE_FROM_SIG.get(javaType.name());<NEW_LINE>if (type != null) {<NEW_LINE>return type;<NEW_LINE>}<NEW_LINE>} else if (javaType instanceof IClassTyp... | collect(Collectors.toList()); |
1,286,705 | public java.util.List<PropertyBusinessObject> build(PropertyBusinessObject obj, int maxElements, int page) throws IOException, InstantiationException {<NEW_LINE>ArrayList<Object> params = new ArrayList<Object>();<NEW_LINE>SelectBuilder root = this;<NEW_LINE>while (root.parent.property != null) {<NEW_LINE>root = root.pa... | columnName = getColumnNameImpl(sb.property); |
1,429,143 | public int purgeOutdatedNodes(final TimeDuration maxNodeAge) throws PwmUnrecoverableException {<NEW_LINE>int nodesPurged = 0;<NEW_LINE>try {<NEW_LINE>final Map<String, StoredNodeData> nodeDatas = readStoredData();<NEW_LINE>final DatabaseAccessor databaseAccessor = getDatabaseAccessor();<NEW_LINE>for (final StoredNodeDa... | ) -> "purging outdated node reference to instanceID '" + instanceID + "'"); |
1,218,183 | public Map<String, Object> convert(Geometry geometry) {<NEW_LINE>HashMap<String, Object> builder = new HashMap<>();<NEW_LINE>if (geometry instanceof Point) {<NEW_LINE>builder.put(TYPE_FIELD, POINT);<NEW_LINE>builder.put(COORDINATES_FIELD, extract((Point) geometry));<NEW_LINE>} else if (geometry instanceof MultiPoint) {... | builder.put(TYPE_FIELD, GEOMETRY_COLLECTION); |
75,441 | public final void releaseFromWrite(final OCacheEntry cacheEntry, final OWriteCache writeCache, final boolean changed) {<NEW_LINE>final <MASK><NEW_LINE>assert cachePointer != null;<NEW_LINE>final PageKey pageKey = new PageKey(cacheEntry.getFileId(), cacheEntry.getPageIndex());<NEW_LINE>if (cacheEntry.isNewlyAllocatedPag... | OCachePointer cachePointer = cacheEntry.getCachePointer(); |
614,308 | final DescribeChannelResult executeDescribeChannel(DescribeChannelRequest describeChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeChannelRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeChannelRequest> reques... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
981,442 | private void createSubscriptionDiagnosticsNode(Subscription subscription) {<NEW_LINE>try {<NEW_LINE>int index = subscriptionDiagnosticsVariables.size();<NEW_LINE>String id = Util.buildBrowseNamePath(<MASK><NEW_LINE>NodeId elementNodeId = new NodeId(1, id);<NEW_LINE>SubscriptionDiagnosticsTypeNode elementNode = (Subscri... | node) + "[" + index + "]"; |
1,215,672 | public boolean createBranch(String branchName, boolean track, String startPoint) {<NEW_LINE>List<String> args = new ArrayList<String>();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>args.add("branch");<NEW_LINE>if (track) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>args.add("--track");<NEW_LINE>} else {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>arg... | args.size()])); |
1,264,640 | public static void printUlimits() {<NEW_LINE>Integer fileLimit = getIntFromCommand("ulimit -n");<NEW_LINE>Integer fileLimitHard = getIntFromCommand("ulimit -Hn");<NEW_LINE>Integer threadLimit = getIntFromCommand("ulimit -u");<NEW_LINE>Integer threadLimitHard = getIntFromCommand("ulimit -Hu");<NEW_LINE>StringBuilder sb ... | (threadLimitHard).append(")."); |
1,478,050 | public static int[] karatsubaMultiply(int[] a, int[] b) {<NEW_LINE>if (a.length < b.length)<NEW_LINE>a = Arrays.copyOf(a, b.length);<NEW_LINE>if (a.length > b.length)<NEW_LINE>b = Arrays.copyOf(b, a.length);<NEW_LINE>int n = a.length;<NEW_LINE>int[] res = new int[n + n];<NEW_LINE>if (n <= 10) {<NEW_LINE>for (int i = 0;... | copyOfRange(a, 0, k); |
1,065,338 | private static void populate(List<TypeAndScope> types, VariableScope scope, int resolveStrategy) {<NEW_LINE>if (resolveStrategy == Closure.DELEGATE_FIRST || resolveStrategy == Closure.DELEGATE_ONLY) {<NEW_LINE>ClassNode delegate = scope.getDelegate();<NEW_LINE>types.add(new TypeAndScope(delegate, scope));<NEW_LINE>}<NE... | ClassNode owner = scope.getOwner(); |
154,645 | public void registerNode(RegisterNodeRequest request, StreamObserver<SimpleResponse> responseObserver) {<NEW_LINE>SimpleResponse.Builder response = SimpleResponse.newBuilder();<NEW_LINE>if (checkVersionError(request.getVersion(), responseObserver)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>appMasterServer.updateRpcLastCon... | onNext(response.build()); |
1,768,721 | public boolean addLeafEntry(final int index, final byte[] serializedKey, final byte[] serializedValue) {<NEW_LINE>final int entrySize = serializedKey.length + serializedValue.length;<NEW_LINE>assert isLeaf();<NEW_LINE>final int size = getIntValue(SIZE_OFFSET);<NEW_LINE>int freePointer = getIntValue(FREE_POINTER_OFFSET)... | setIntValue(SIZE_OFFSET, size + 1); |
1,521,110 | public final VariableInitializersContext variableInitializers() throws RecognitionException {<NEW_LINE>VariableInitializersContext _localctx = new VariableInitializersContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 68, RULE_variableInitializers);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localc... | adaptivePredict(_input, 50, _ctx); |
1,455,325 | public SkyValue compute(SkyKey skyKey, Environment env) throws DirectoryListingFunctionException, InterruptedException {<NEW_LINE>RootedPath dirRootedPath = (RootedPath) skyKey.argument();<NEW_LINE>FileValue dirFileValue = (FileValue) env.getValue(FileValue.key(dirRootedPath));<NEW_LINE>if (dirFileValue == null) {<NEW_... | RootedPath realDirRootedPath = dirFileValue.realRootedPath(); |
149,637 | private Deferred<SortedMap<byte[], HistogramSpan>> findHistogramSpans() throws HBaseException {<NEW_LINE>final short metric_width = tsdb.metrics.width();<NEW_LINE>final TreeMap<byte[], HistogramSpan> histSpans = new TreeMap<byte[], HistogramSpan>(new SpanCmp(metric_width));<NEW_LINE>// Copy only the filters that should... | >(filters.size()); |
532,717 | private void superPreDestroy(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>results.addPreDestroy(CLASS_NAME, "superPreDestroy");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW_LINE>if (map.containsKey("PreDestroy")) {<N... | ResultsLocal results = ResultsLocalBean.getSFBean(); |
1,190,394 | private HttpRequest transform(HttpRequest request) {<NEW_LINE>// Strip the prefix from the existing request and forward it.<NEW_LINE>String unprefixed = hasPrefix(request) ? request.getUri().substring(prefix.length()) : request.getUri();<NEW_LINE>HttpRequest toForward = new HttpRequest(request.getMethod(), unprefixed);... | request.getAttribute(attr))); |
370,511 | public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {<NEW_LINE>if (evt instanceof ChannelSubscriberEvent) {<NEW_LINE>final State existingState = state;<NEW_LINE>state = State.ChannelSubscribed;<NEW_LINE>super.userEventTriggered(ctx, evt);<NEW_LINE>final ChannelPipeline pipeline = ctx<... | .channel().pipeline(); |
1,272,212 | private int handleGet(Request baseRequest, HttpServletResponse response) throws IOException {<NEW_LINE>String path = baseRequest.getHttpURI().getPath();<NEW_LINE>String[] pathElements = path.split("/");<NEW_LINE>if (pathElements.length != 4 || !pathElements[2].equals("key")) {<NEW_LINE>response.getWriter().write("Incor... | new RuleKey(pathElements[3]); |
1,733,650 | public BatchGetStreamKeyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchGetStreamKeyResult batchGetStreamKeyResult = new BatchGetStreamKeyResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
19,974 | protected void defaultTerminateEndEventBehaviour(DelegateExecution execution, CommandContext commandContext, ExecutionEntityManager executionEntityManager) {<NEW_LINE>ExecutionEntity scopeExecutionEntity = executionEntityManager.findFirstScope((ExecutionEntity) execution);<NEW_LINE>sendProcessInstanceCancelledEvent(sco... | (SubProcess) scopeExecutionEntity.getCurrentFlowElement(); |
154,382 | public void analyze(Analyzer analyzer) throws AnalysisException {<NEW_LINE>if (!Env.getCurrentEnv().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.OPERATOR)) {<NEW_LINE>ErrorReport.reportAnalysisException(ErrorCode.ERR_SPECIFIC_ACCESS_DENIED_ERROR, "NODE");<NEW_LINE>}<NEW_LINE>if (properties == null) {<N... | .entrySet().iterator(); |
1,355,016 | public static String patch(String source, ShaderType type, boolean hasGeometry) {<NEW_LINE>if (source.contains("iris_")) {<NEW_LINE>throw new IllegalStateException("Shader is attempting to exploit internal Iris code!");<NEW_LINE>}<NEW_LINE>StringTransformations transformations = new StringTransformations(source);<NEW_L... | transformations.replaceExact("main", "irisMain"); |
1,235,474 | public void storeNoOverwrite(String tableName, byte[] key, byte[] value, int index, int length, DatabaseSession databaseSession) throws BimserverDatabaseException, BimserverLockConflictException, BimserverConcurrentModificationDatabaseException {<NEW_LINE>DatabaseEntry dbKey = new DatabaseEntry(key);<NEW_LINE>DatabaseE... | rid = -keyBuffer.getInt(); |
1,041,216 | public ExplainedOptional<NameAndGreeting> computeBPartnerNameAndGreeting(final I_C_BPartner_QuickInput bpartner) {<NEW_LINE>if (bpartner.isCompany()) {<NEW_LINE>final String companyname = bpartner.getCompanyname();<NEW_LINE>if (companyname == null || Check.isBlank(companyname)) {<NEW_LINE>return ExplainedOptional.empty... | ))).build()); |
1,340,112 | final UnlinkIdentityResult executeUnlinkIdentity(UnlinkIdentityRequest unlinkIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unlinkIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UnlinkIdentity"); |
1,768,233 | void writeData() {<NEW_LINE>if (validData.size() == 0)<NEW_LINE>return;<NEW_LINE>CodeWriterImpl codeWriter = this.codeWriter;<NEW_LINE>int alignment = (int) (validDataAddressAligned - validDataAddress);<NEW_LINE>for (int i = 0; i < alignment; i++) codeWriter.writeByte((byte) 0xCC);<NEW_LINE>ArrayList<MASK><NEW_LINE>int... | <RelocInfo> relocInfos = this.relocInfos; |
308,500 | private BucketSearchResult splitBucket(final List<Long> path, final int keyIndex, final K keyToInsert, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final long pageIndex = path.get(path.size() - 1);<NEW_LINE>final OCacheEntry bucketEntry = loadPageForWrite(atomicOperation, fileId, pageIndex, fal... | indexToSplit, separationKey, rightEntries, atomicOperation); |
1,640,209 | private void formLogin(HttpServletRequest req, HttpServletResponse res, ReferrerURLCookieHandler referrerURLHandler) throws ServletException, IOException {<NEW_LINE>CollaboratorUtils collabUtils;<NEW_LINE>boolean compliance = webAppSecConfig.getLogoutOnHttpSessionExpire();<NEW_LINE>if (compliance && req.getRequestedSes... | authenticationService, userRegistry, ssoCookieHelper, webAppSecConfig); |
985,004 | public static String expandProperties(StringToStringMap values, String content, boolean leaveMissing) {<NEW_LINE>int ix = content.indexOf("${");<NEW_LINE>if (ix == -1) {<NEW_LINE>return content;<NEW_LINE>}<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>int lastIx = 0;<NEW_LINE>while (ix != -1) {<NEW_LINE>bu... | (content.substring(lastIx)); |
1,198,579 | private void buildArray(StringBuilder resBuf, Array type, int size) {<NEW_LINE>if (type.isZeroLength()) {<NEW_LINE>// TODO: Zero-element arrays not yet supported<NEW_LINE>buildOpaqueDataType(resBuf, type, size);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>resBuf.append("<type");<NEW_LINE>SpecXmlUtils.encodeStringAttribute(res... | ), type.getElementLength()); |
233,132 | protected boolean updateListData() {<NEW_LINE>// clearing list<NEW_LINE>removeAllItems();<NEW_LINE>setDict(null);<NEW_LINE>setDescription(null);<NEW_LINE>//<NEW_LINE>final String search = getSearchText();<NEW_LINE>Object userObject = getUserOject();<NEW_LINE>if (userObject != null && !isMatching(userObject, search)) {<... | (list.get(0)); |
127,582 | public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {<NEW_LINE>ItemStack heldItem = player.getHeldItem(hand);<NEW_LINE>if (heldItem.getItem() instanceof IToolWrench) {<NEW_LINE>if (!world.isRemote) {<NEW_L... | floodGate.sendNetworkUpdate(TileBC_Neptune.NET_RENDER_DATA); |
1,583,888 | public Step read(DataInputX in) throws IOException {<NEW_LINE>super.read(in);<NEW_LINE>this.hash = (int) in.readDecimal();<NEW_LINE>this.elapsed = (int) in.readDecimal();<NEW_LINE>this.error = (int) in.readDecimal();<NEW_LINE>this.timestamp = in.readDecimal();<NEW_LINE>this<MASK><NEW_LINE>this.localEndpointServiceName ... | .spanType = in.readByte(); |
1,380,267 | private static Result<TokenResponse> handleResponse(ContentType contentType, String responseBody) {<NEW_LINE>TokenResponse tokenResponse;<NEW_LINE>Result<TokenResponse> result;<NEW_LINE>if (logger.isTraceEnabled())<NEW_LINE>logger.trace("contentType = " + contentType + " responseBody = " + responseBody);<NEW_LINE>try {... | , e.getMessage())); |
1,851,408 | public void run() {<NEW_LINE>Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);<NEW_LINE>String hostPorts = universe.getMasterAddresses();<NEW_LINE>String certificate = universe.getCertificateNodetoNode();<NEW_LINE>int numTservers = universe.getTServers().size();<NEW_LINE>YBClient client = ybServi... | .listTabletServers().getTabletServersCount(); |
1,142,650 | protected static void javaToNativeARGB(int[] pixels, int width, int height) {<NEW_LINE>int index = 0;<NEW_LINE>int yindex = (height - 1) * width;<NEW_LINE>for (int y = 0; y < height / 2; y++) {<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>int pixy = pixels[yindex];<NEW_LINE>int pixi = pixels[index];<NEW_LINE>if ... | 24) | (pixy << 8); |
1,049,540 | private void createLoggingSelectorGroup() {<NEW_LINE>Group loggingButtonGroup = new Group(this, SWT.NONE);<NEW_LINE>loggingButtonGroup.setText(Messages.CONFIGURATION_TAB_LOGGER_GROUP_TITLE);<NEW_LINE>GridLayout groupLayout = new GridLayout(LoggingButtonData.values().length, false);<NEW_LINE>loggingButtonGroup.setLayout... | setText(data.displayText()); |
1,211,984 | public synchronized void shortcutReceived(GlobalShortcutEvent evt) {<NEW_LINE>AWTKeyStroke keystroke = evt.getKeyStroke();<NEW_LINE>GlobalKeybindingSet set = keybindingsService.getGlobalBindings();<NEW_LINE>if (keystroke == null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>for (Map.Entry<String, List<AWTKeyStroke>> entry ... | window, window.isVisible()); |
594,963 | public void start(BundleContext context) throws Exception {<NEW_LINE>super.start(context);<NEW_LINE>plugin = this;<NEW_LINE>Job job = new // $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Job(MessageFormat.format("Initializing {0} Plugin", PLUGIN_ID)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected IStatus run(IProgres... | type = manager.getType(connection); |
1,728,604 | /*<NEW_LINE>* Dont care about className and variable but the CONSTANT VALUE HAS TO BE A NEW ONE otherwise the clone of the flowset<NEW_LINE>* keeps pointing to the same bloody constant value<NEW_LINE>*/<NEW_LINE>public CPTuple clone() {<NEW_LINE>if (isTop()) {<NEW_LINE>return new CPTuple(sootClass, variable, true);<NEW... | constant).doubleValue())); |
714,204 | public void actionPerformed(ActionEvent arg0) {<NEW_LINE>if (!checkJobStopped()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!checkForModifications()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileDialog fileDialog = new FileDialog(frame);<NEW_LINE>fileDialog.setFilenameFilter(new FilenameFilter() {<NEW_LINE><NEW_LINE>@Ove... | "Job Load Error", e.getMessage()); |
1,748,508 | private DesktopStyle loadStyle(Element element) {<NEW_LINE>final String componentsSubTag = "components";<NEW_LINE>String styleName = element.attributeValue("name");<NEW_LINE>List<Class> components = null;<NEW_LINE>if (element.attributeValue("component") != null) {<NEW_LINE>String className = element.attributeValue("com... | DesktopStyle(styleName, decorators, components); |
1,746,923 | private void genLockTerm(BIRTerminator.Lock lockIns, String funcName, int localVarOffset) {<NEW_LINE>Label gotoLabel = this.labelGen.getLabel(funcName + lockIns.lockedBB.id.value);<NEW_LINE>String lockStore = "L" + LOCK_STORE + ";";<NEW_LINE>String initClassName = jvmPackageGen.lookupGlobalVarClassName(this.currentPack... | String lockName = GLOBAL_LOCK_NAME + lockIns.lockId; |
1,522,570 | public static void copyResourcesToDirectory(JarFile fromJar, String jarDir, String destDir) throws IOException {<NEW_LINE>for (Enumeration<JarEntry> entries = fromJar.entries(); entries.hasMoreElements(); ) {<NEW_LINE>JarEntry entry = entries.nextElement();<NEW_LINE>if (entry.getName().startsWith(jarDir + "/") && !entr... | File parent = dest.getParentFile(); |
1,491,206 | private static final List<I_AD_UserQuery> retrieveAD_UserQueries(final Properties ctx, final int adTabId, final int adUserId) {<NEW_LINE>final IQueryBuilder<I_AD_UserQuery> queryBuilder = //<NEW_LINE>Services.get(IQueryBL.class).createQueryBuilder(I_AD_UserQuery.class, ctx, ITrx.TRXNAME_None).addOnlyContextClientOrSyst... | I_AD_UserQuery.COLUMNNAME_Name).endOrderBy(); |
506,131 | public void randomDisplayTick(@Nonnull IBlockState state, @Nonnull World worldIn, @Nonnull BlockPos pos, @Nonnull Random rand) {<NEW_LINE>if (rand.nextFloat() < .5f) {<NEW_LINE>final EnumFacing face = NNList.FACING.get(rand.nextInt(NNList.FACING.size()));<NEW_LINE>final BlockPos <MASK><NEW_LINE>final IBlockState neighb... | neighborPos = pos.offset(face); |
87,813 | final UpdateProfileResult executeUpdateProfile(UpdateProfileRequest updateProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,098,153 | public static ExecutionOptions createFromObject(final Object obj) {<NEW_LINE>if (obj == null || !(obj instanceof Map)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, Object> optionsMap = (Map<String, Object>) obj;<NEW_LINE>final TypedMapWrapper<String, Object> wrapper = new TypedMapWrapper<>(optionsMap);... | <String>emptyList())); |
1,508,274 | private void loadCuboids() throws SQLException {<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = closer.register(conn.prepareStatement("SELECT g.min_z, g.min_y, g.min_x, " + " g.max_z, g.max_y, g.max_x, " + " r.id, r.priority, p.id AS parent " + "FROM " + config.ge... | parentSets.put(region, parentId); |
1,670,558 | protected HeronTuples.HeronDataTuple.Builder initTupleBuilder(String streamId, List<Object> tuple, Integer emitDirectTaskId) {<NEW_LINE>// Start construct the data tuple<NEW_LINE>HeronTuples.HeronDataTuple.Builder builder = HeronTuples.HeronDataTuple.newBuilder();<NEW_LINE>// set the key. This is mostly ignored<NEW_LIN... | invokeHookEmit(tuple, streamId, customGroupingTargetTaskIds); |
559,711 | synchronized void cleanUp() {<NEW_LINE>// NOI18N<NEW_LINE>StorageManager.LOG.log(Level.FINE, "Cleaning storage: {0}", storageFolder);<NEW_LINE><MASK><NEW_LINE>File[] contentFolders = storageFolder.listFiles();<NEW_LINE>if (contentFolders != null) {<NEW_LINE>for (File contentFolder : contentFolders) {<NEW_LINE>// 165<NE... | long ts = System.currentTimeMillis(); |
376,607 | public FlagDefinition removeFlagDefinition(FlagDefinition flagDefinition) {<NEW_LINE>if (_flagDefinitions.containsValue(flagDefinition)) {<NEW_LINE>// Remove from category list<NEW_LINE>Set<FlagDefinition> categoryDefinitions = _flagCategories.<MASK><NEW_LINE>categoryDefinitions.remove(flagDefinition);<NEW_LINE>// Remo... | get(flagDefinition.getCategory()); |
206,150 | private ObjectName remove(final ObjectName childObjectName) {<NEW_LINE>ObjectName removed = null;<NEW_LINE>try {<NEW_LINE>final ConfigBean childConfigBean = ConfigBeanRegistry.getInstance().getConfigBean(childObjectName);<NEW_LINE>try {<NEW_LINE>ConfigSupport.deleteChild(this.getConfigBean(), childConfigBean);<NEW_LINE... | unregisteredOK = myListener.waitForUnregister(TIMEOUT_MILLIS); |
945,372 | public int transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) throws CannotCompileException {<NEW_LINE>int index;<NEW_LINE>int c = iterator.byteAt(pos);<NEW_LINE>if (c == NEW) {<NEW_LINE>index = iterator.u16bitAt(pos + 1);<NEW_LINE>if (cp.getClassInfo(index).equals(classname)) {<NEW_LINE>if (iterato... | writeByte(NOP, pos + 1); |
960,718 | private Mono<Response<IdentityInner>> updateWithResponseAsync(String resourceGroupName, String resourceName, IdentityUpdate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,713,587 | public AsyncFuture<WriteSuggest> write(final WriteSuggest.Request request) {<NEW_LINE>final Series s = request.getSeries();<NEW_LINE>final Lock l = lock.writeLock();<NEW_LINE>l.lock();<NEW_LINE>try {<NEW_LINE>series.add(s);<NEW_LINE>keyIndex.put(s.getKey(), new KeyDocument(s.getKey(), s));<NEW_LINE>for (final String t ... | putEntry(tagKeys, t, id); |
78,663 | public String convertDataMessage(String message, DfdlDef dfdl) throws IOException {<NEW_LINE>// DFDL definition file<NEW_LINE>File schemaFile = createSchemaFile(dfdl);<NEW_LINE>// Print the content of the file for troubleshooting<NEW_LINE>System.out.println("SchemaFile Content: ");<NEW_LINE>Scanner reader = new Scanner... | processorFactory = dfdlCompiler.compileFile(schemaFile); |
1,664,775 | public static DescribeDBInstanceAccessWhiteListResponse unmarshall(DescribeDBInstanceAccessWhiteListResponse describeDBInstanceAccessWhiteListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstanceAccessWhiteListResponse.setRequestId(_ctx.stringValue("DescribeDBInstanceAccessWhiteListResponse.RequestId"));<NE... | ("DescribeDBInstanceAccessWhiteListResponse.Items[" + i + "].SecurityIps")); |
587,447 | public com.amazonaws.services.shield.model.InvalidOperationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.shield.model.InvalidOperationException invalidOperationException = new com.amazonaws.services.shield.model.InvalidOperationException(null);<NEW_L... | String currentParentElement = context.getCurrentParentElement(); |
204,960 | public Model createXYZCoordinates(float axisLength, float capLength, float stemThickness, int divisions, int primitiveType, Material material, long attributes) {<NEW_LINE>begin();<NEW_LINE>MeshPartBuilder partBuilder;<NEW_LINE>Node node = node();<NEW_LINE>partBuilder = part("xyz", primitiveType, attributes, material);<... | partBuilder.setColor(Color.BLUE); |
611,460 | private boolean removeFollowerThrottledReplicasFromTopic(Properties config, String topic, Set<String> replicas) {<NEW_LINE>String currLeaderThrottledReplicas = config.getProperty(FOLLOWER_THROTTLED_REPLICAS);<NEW_LINE>if (currLeaderThrottledReplicas != null) {<NEW_LINE>if (currLeaderThrottledReplicas.equals(WILDCARD_AS... | config.setProperty(FOLLOWER_THROTTLED_REPLICAS, newLeaderThrottledReplicas); |
707,340 | public static void main(String[] args) throws IOException {<NEW_LINE>Regions clientRegion = Regions.DEFAULT_REGION;<NEW_LINE>VERSIONED_BUCKET_NAME = "*** Bucket name ***";<NEW_LINE>try {<NEW_LINE>S3_CLIENT = AmazonS3ClientBuilder.standard().withCredentials(new ProfileCredentialsProvider()).withRegion(clientRegion).buil... | getBucketVersioningConfiguration(VERSIONED_BUCKET_NAME).getStatus(); |
232,407 | public HistoricTaskInstanceEntity recordTaskInfoChange(TaskEntity taskEntity, Date changeTime, AbstractEngineConfiguration engineConfiguration) {<NEW_LINE>HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager().findById(taskEntity.getId());<NEW_LINE>if (historicTaskInstance != null) {<N... | setAssignee(taskEntity.getAssignee()); |
1,765,342 | private void optimiseJoins(QueryModel model) throws SqlException {<NEW_LINE>ObjList<QueryModel<MASK><NEW_LINE>int n = joinModels.size();<NEW_LINE>if (n > 1) {<NEW_LINE>emittedJoinClauses = joinClausesSwap1;<NEW_LINE>emittedJoinClauses.clear();<NEW_LINE>// for sake of clarity, "model" model is the first in the list of<N... | > joinModels = model.getJoinModels(); |
1,805,747 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>MetadataAggRel aggregate = call.rel(0);<NEW_LINE>RelNode input = aggregate.getInput();<NEW_LINE>int groupByExprsSize = aggregate.getContext().groupByExpressions().size();<NEW_LINE>List<RelFieldCollation> collations = new ArrayList<>();<NEW_LINE>List<String> names = ne... | getPlannerSettings(call.getPlanner()); |
277,249 | private IndexRequest createIndexRequest(Row element) {<NEW_LINE>String idFieldStr = "";<NEW_LINE>if (null != idFieldIndexList) {<NEW_LINE>// index start at 1,<NEW_LINE>idFieldStr = idFieldIndexList.stream().filter(index -> index > 0 && index <= element.getArity()).map(index -> element.getField(index - 1).toString()).co... | , element.getField(i)); |
352,819 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>DvmClass dvmClass = classMap.get(clazz.toIntPeer());<NEW_LINE>DvmMethod dvmMethod = null;<NE... | "not static", context.getLRPointer()); |
1,538,389 | public void build(Model model, Datas datas, String id, List<Expression> exps, List<EAnnotation> annotations) {<NEW_LINE>IntVar[] decVars = exps.get(0).toIntVarArray(model);<NEW_LINE>IntVar valVar = exps.get(1).intVarValue(model);<NEW_LINE>IntVar countVar = exps.get(2).intVarValue(model);<NEW_LINE>BoolVar b = exps.get(3... | ), valVar.getUB()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.