idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
597,222 | private void updateBreakpointWarningBar() {<NEW_LINE>// check to see if there are any inactive breakpoints in this file<NEW_LINE>boolean hasInactiveBreakpoints = false;<NEW_LINE>boolean hasDebugPendingBreakpoints = false;<NEW_LINE>boolean hasPackagePendingBreakpoints = false;<NEW_LINE>String pendingPackageName = "";<NE... | boolean showWarning = hasDebugPendingBreakpoints || hasInactiveBreakpoints || hasPackagePendingBreakpoints; |
135,951 | private void addPreferenceFromJSON(JSONObject obj) {<NEW_LINE>String type = obj.optString("type", null);<NEW_LINE>String key = obj.optString("key", null);<NEW_LINE>String title = obj.optString("title", null);<NEW_LINE>if (type == null || key == null || title == null)<NEW_LINE>return;<NEW_LINE>Preference pref = null;<NE... | getPreferenceScreen().addPreference(pref); |
1,299,804 | private <T extends PsiModifierListOwner & PsiNamedElement> PsiMethod generateDelegateMethod(@NotNull PsiClass psiClass, @NotNull T psiElement, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiMethod psiMethod, @NotNull PsiSubstitutor psiSubstitutor) {<NEW_LINE>final PsiType returnType = psiSubstitutor.substitute(psiMe... | methodBuilder.withParameter(generatedParameterName, psiParameterType); |
1,129,297 | public static void drawPolygon(Polygon2D_F64 polygon, Graphics2D g2, double scale) {<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>Line2D.Double l = new Line2D.... | polygon.get(i + 1); |
1,218,257 | protected // the current container to a bitset<NEW_LINE>void naivelazyor(final ImmutableRoaringBitmap x2) {<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>int length1 = highLowContainer.size();<NEW_LINE>final int length2 = x2.highLowContainer.size();<NEW_LINE>main: if (pos1 < length1 && pos2 < length2) {<NEW_LINE>char s1 = ... | x2.highLowContainer, pos2, length2); |
457,823 | private static void create_via_rule(Collection<String> p_use_via, app.freerouting.rules.NetClass p_net_class, app.freerouting.board.BasicBoard p_board, boolean p_attach_allowed) {<NEW_LINE>app.freerouting.rules.ViaRule new_via_rule = new app.freerouting.rules.<MASK><NEW_LINE>int default_via_cl_class = p_net_class.defau... | ViaRule(p_net_class.get_name()); |
1,113,777 | public static ListClassesResponse unmarshall(ListClassesResponse listClassesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClassesResponse.setRequestId(_ctx.stringValue("ListClassesResponse.RequestId"));<NEW_LINE>listClassesResponse.setRegionId(_ctx.stringValue("ListClassesResponse.RegionId"));<NEW_LINE>List<ClassL... | = new ArrayList<ClassList>(); |
1,759,917 | public void init(Properties properties) {<NEW_LINE>RabbitMQProducerConfig rabbitMQProperties = new RabbitMQProducerConfig();<NEW_LINE>this.mqProperties = rabbitMQProperties;<NEW_LINE>super.init(properties);<NEW_LINE>loadRabbitMQProperties(properties);<NEW_LINE>ConnectionFactory factory = new ConnectionFactory();<NEW_LI... | throw new CanalException("Start RabbitMQ producer error", ex); |
595,209 | private TaskProvider<ResolveMainClassName> configureResolveMainClassNameTask(Project project) {<NEW_LINE>return project.getTasks().register(SpringBootPlugin.RESOLVE_MAIN_CLASS_NAME_TASK_NAME, ResolveMainClassName.class, (resolveMainClassName) -> {<NEW_LINE>ExtensionContainer extensions = project.getExtensions();<NEW_LI... | ).findByType(SpringBootExtension.class); |
1,753,584 | public boolean format() throws Exception {<NEW_LINE>// Clear underreplicated ledgers<NEW_LINE>try {<NEW_LINE>ZKUtil.deleteRecursive(zk, ZkLedgerUnderreplicationManager.getBasePath<MASK><NEW_LINE>} catch (KeeperException.NoNodeException e) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("underreplicated ledger... | (ledgersRootPath) + BookKeeperConstants.DEFAULT_ZK_LEDGERS_ROOT_PATH); |
66,667 | private void drawFace(GL2 gl, float faceSize, float[] color, float[] border, String text) {<NEW_LINE>float halfFaceSize = faceSize / 2;<NEW_LINE>float borderSize = halfFaceSize * 0.8f;<NEW_LINE>float layer2 = halfFaceSize + 0.001f;<NEW_LINE>// Face is centered around the local coordinate system's z axis,<NEW_LINE>// at... | glVertex3f(halfFaceSize, halfFaceSize, halfFaceSize); |
1,346,125 | protected Element generateQueryElement(final OSQuery query) {<NEW_LINE>final Element qElement = new Element("Query", OS_NS);<NEW_LINE>if (query.getRole() != null) {<NEW_LINE>final Attribute roleAttribute = new Attribute("role", query.getRole());<NEW_LINE>qElement.setAttribute(roleAttribute);<NEW_LINE>} else {<NEW_LINE>... | , query.getTitle())); |
1,748,824 | private String readString() throws IOException {<NEW_LINE>int marker = readInt();<NEW_LINE>if (marker == 0 || marker == 1) {<NEW_LINE>int length = readInt();<NEW_LINE>if (charBuffer.length < length) {<NEW_LINE>int len = charBuffer.length;<NEW_LINE>while (len < length) {<NEW_LINE>len *= 2;<NEW_LINE>}<NEW_LINE>charBuffer... | String(chars, 0, length); |
1,646,672 | public com.amazonaws.services.iottwinmaker.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iottwinmaker.model.ConflictException conflictException = new com.amazonaws.services.iottwinmaker.model.ConflictException(null);<NEW_LINE><MASK><NEW... | int originalDepth = context.getCurrentDepth(); |
775,198 | protected void initMetaClass(Entity entity) {<NEW_LINE>if (entity == null) {<NEW_LINE>category = null;<NEW_LINE>valid();<NEW_LINE>initializedBefore = true;<NEW_LINE>fireItemChanged(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!(entity instanceof BaseGenericIdEntity)) {<NEW_LINE>throw new IllegalStateException("This ... | (new HashMap<>()); |
1,746,376 | public Boolean propagateAgentEvent(final long agentId, final Event event) throws AgentUnavailableException {<NEW_LINE>final String msPeer = getPeerName(agentId);<NEW_LINE>if (msPeer == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug("Propagating agent change re... | .toJson(cmds), true); |
1,639,635 | public BackendEntry writeEdgeProperty(HugeEdgeProperty<?> prop) {<NEW_LINE>HugeEdge edge = prop.element();<NEW_LINE>EdgeId id = edge.idWithDirection();<NEW_LINE>TableBackendEntry.Row row = new TableBackendEntry.Row(edge.type(), id);<NEW_LINE>if (edge.hasTtl()) {<NEW_LINE>row.ttl(edge.ttl());<NEW_LINE>row.column(HugeKey... | (prop.key())); |
43,731 | public void validate(Body body, List<ValidationException> exceptions) {<NEW_LINE>final SootMethod method = body.getMethod();<NEW_LINE>// Checks that this Body actually contains a throw or return statement, and<NEW_LINE>// that the return statement is of the appropriate type (i.e. void/non-void)<NEW_LINE>for (Unit u : b... | .getUnits().getLast(); |
854,364 | public static void main(String[] args) {<NEW_LINE>SplayTree<Integer> splayTree = new SplayTree<>();<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>int[] data = { 2, 29, 26, -1, 10, 0, 2, 11 };<NEW_LINE>int c = 0;<NEW_LINE>for (int i : data) {<NEW_LINE>splayTree.insert(i);<NEW_LINE>}<NEW_LINE>while (c != 7) {<NE... | search(sc.nextInt()); |
309,813 | public final Object read(final InputStream is) {<NEW_LINE>int states = 0;<NEW_LINE>int[] items;<NEW_LINE>double[] pi = null;<NEW_LINE>Matrix transitionProbability = null;<NEW_LINE>Map<String, String> properties = null;<NEW_LINE>List<StateDistribution> distributions = new ArrayList<StateDistribution>();<NEW_LINE>final E... | > params = section.parseParams(); |
94,427 | // ============================================================<NEW_LINE>// Main entry point<NEW_LINE>// ============================================================<NEW_LINE>@Override<NEW_LINE>public void infer() {<NEW_LINE>LogInfo.begin_track_printAll("FloatingParser.infer()");<NEW_LINE>ruleTime = new HashMap<>();<NE... | (Execution.getFile("canonical_utterances")); |
808,304 | public static ListAppsResponse unmarshall(ListAppsResponse listAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppsResponse.setRequestId(_ctx.stringValue("ListAppsResponse.RequestId"));<NEW_LINE>listAppsResponse.setTotal(_ctx.integerValue("ListAppsResponse.Total"));<NEW_LINE>listAppsResponse.setUbsmsStatus<MASK>... | (_ctx.stringValue("ListAppsResponse.UbsmsStatus")); |
144,384 | public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE>AccountStore account... | ExchangeStore exchangeStore = chainBaseManager.getExchangeStore(); |
1,362,346 | protected void copyToDestination(IJavaElement element, CompilationUnitRewrite targetRewriter, CompilationUnit sourceCuNode, CompilationUnit targetCuNode) throws CoreException {<NEW_LINE>final ASTRewrite rewrite = targetRewriter.getASTRewrite();<NEW_LINE>switch(element.getElementType()) {<NEW_LINE>case IJavaElement.FIEL... | element, rewrite, sourceCuNode, targetCuNode); |
544,634 | public static String qualifyType(VisitorState state, SuggestedFix.Builder fix, Symbol sym) {<NEW_LINE>if (sym.getKind() == ElementKind.TYPE_PARAMETER) {<NEW_LINE>return sym.getSimpleName().toString();<NEW_LINE>}<NEW_LINE>if (sym.getKind() == ElementKind.CLASS) {<NEW_LINE>if (ASTHelpers.isLocal(sym)) {<NEW_LINE>if (!sym... | .getSimpleName().toString(); |
1,496,682 | private void tick(Level level, BlockPos pos, BlockState state) {<NEW_LINE>if (!isFormed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(tick) {<NEW_LINE>// tick 0: find fuel<NEW_LINE>case 0 -><NEW_LINE>{<NEW_LINE>alloyTank.setTemperature(fuelModule.findFuel(false));<NEW_LINE>if (!fuelModule.hasFuel() && alloyingModule... | BlockPos down = pos.below(); |
1,066,436 | protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Find " + Hexa32.toString32(gxid), IProgressMonitor.UNKNOWN);<NEW_LINE>final LongKeyLinkedMap<Object> xlogMap = new LongKeyLinkedMap<Object>();<NEW_LINE>Iterator<Integer> itr = ServerManager.getInstance().getOpenServerList().iterator();<NEW_LI... | putFirst(xlog.txid, d); |
14,959 | final RegisterTransitGatewayMulticastGroupMembersResult executeRegisterTransitGatewayMulticastGroupMembers(RegisterTransitGatewayMulticastGroupMembersRequest registerTransitGatewayMulticastGroupMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerTransitGatewayMulticastGroupMemb... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterTransitGatewayMulticastGroupMembers"); |
1,064,899 | private void append4Update(ESMapping mapping, Object pkVal, Map<String, Object> esFieldData) {<NEW_LINE>if (mapping.get_id() != null) {<NEW_LINE>String parentVal = (<MASK><NEW_LINE>if (mapping.isUpsert()) {<NEW_LINE>ESUpdateRequest esUpdateRequest = this.esConnection.new ES7xUpdateRequest(mapping.get_index(), pkVal.toS... | String) esFieldData.remove("$parent_routing"); |
9,037 | public static TypeReference typeReference(Class<?> type) {<NEW_LINE>if (type == void.class) {<NEW_LINE>return VOID;<NEW_LINE>}<NEW_LINE>if (type == Object.class) {<NEW_LINE>return OBJECT;<NEW_LINE>}<NEW_LINE>Class<?> innerType = type;<NEW_LINE>int arrayDepth = 0;<NEW_LINE>while (innerType.isArray()) {<NEW_LINE>innerTyp... | > declaringClass = innerType.getDeclaringClass(); |
146,484 | private MethodTree createHashCodeMethod(WorkingCopy wc, DeclaredType type) {<NEW_LINE>TreeMaker make = wc.getTreeMaker();<NEW_LINE>Set<Modifier> mods = EnumSet.of(Modifier.PUBLIC);<NEW_LINE>// Used in test code<NEW_LINE>Integer number = refactoring.getContext().lookup(Integer.class);<NEW_LINE>int startNumber;<NEW_LINE>... | wc, mods, make, true); |
395,636 | protected void commonAssignmentCheck(AnnotatedTypeMirror varType, AnnotatedTypeMirror valueType, Tree valueTree, @CompilerMessageKey String errorKey, Object... extraArgs) {<NEW_LINE>commonAssignmentCheckStartDiagnostic(varType, valueType, valueTree);<NEW_LINE>AnnotatedTypeMirror widenedValueType = atypeFactory.getWiden... | ).isSubtype(widenedValueType, varType); |
1,315,510 | public void readFieldValue(JSONReader jsonReader, T object) {<NEW_LINE>ObjectReader objectReader;<NEW_LINE>if (this.fieldObjectReader != null) {<NEW_LINE>objectReader = this.fieldObjectReader;<NEW_LINE>} else {<NEW_LINE>ObjectReader formattedObjectReader = FieldReaderObject.createFormattedObjectReader(<MASK><NEW_LINE>i... | fieldType, fieldClass, format, locale); |
991,131 | private PaymentAllocationId saveCandidate_InboundPaymentToOutboundPayment(AllocationLineCandidate candidate) {<NEW_LINE>final Money payAmt = candidate.getAmounts().getPayAmt();<NEW_LINE>Check.assumeEquals(candidate.getAmounts(), AllocationAmounts.builder().payAmt<MASK><NEW_LINE>final C_AllocationHdr_Builder allocationB... | (payAmt).build()); |
1,141,973 | private <T> CommandResult<T> tryConsumeLocally(RemoteCommand<T> command) {<NEW_LINE>long currentTimeNanos = timeMeter.currentTimeNanos();<NEW_LINE>if (isNeedToExecuteRemoteImmediately(command, currentTimeNanos)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long predictedConsumptionSinceLastSync = sampling.predictedConsu... | Arrays.asList(consumeByPredictionCommand, command); |
1,691,254 | public static DescribeVsStreamsOnlineListResponse unmarshall(DescribeVsStreamsOnlineListResponse describeVsStreamsOnlineListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVsStreamsOnlineListResponse.setRequestId(_ctx.stringValue("DescribeVsStreamsOnlineListResponse.RequestId"));<NEW_LINE>describeVsStreamsOnline... | (_ctx.integerValue("DescribeVsStreamsOnlineListResponse.PageSize")); |
191,086 | private void validate(APIUpdateAccountMsg msg) {<NEW_LINE>AccountVO a = dbf.findByUuid(msg.getSession().getAccountUuid(), AccountVO.class);<NEW_LINE>if (msg.getName() != null) {<NEW_LINE>SimpleQuery<AccountVO> q = dbf.createQuery(AccountVO.class);<NEW_LINE>q.add(AccountVO_.name, Op.EQ, msg.getName());<NEW_LINE>if (q.is... | new OperationFailureException(operr("the name of admin account cannot be updated")); |
750,539 | private static FusekiServer buildServer(FusekiServer.Builder builder, ServerConfig serverConfig) {<NEW_LINE>if (serverConfig.jettyConfigFile != null)<NEW_LINE>builder.jettyServerConfig(serverConfig.jettyConfigFile);<NEW_LINE>builder.port(serverConfig.port);<NEW_LINE>builder.loopback(serverConfig.loopback);<NEW_LINE>bui... | builder.staticFileBase(serverConfig.contentDirectory); |
698,868 | public String update(HttpServletRequest request) throws Exception {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>String serviceName = WebUtils.<MASK><NEW_LINE>String clusterName = WebUtils.optional(request, CommonParams.CLUSTER_NAME, Utils... | required(request, CommonParams.SERVICE_NAME); |
636,383 | public static boolean isWildFlyServlet(File serverPath) {<NEW_LINE>// NOI18N<NEW_LINE>assert serverPath != null : "Can't determine version with null server path";<NEW_LINE>String productConf = getProductConf(serverPath);<NEW_LINE>if (productConf != null) {<NEW_LINE>File productConfFile = new File(productConf);<NEW_LINE... | || productName.contains("WildFly Servlet")); |
1,305,247 | public boolean read_scope(ReadScopeParameter p_par) {<NEW_LINE>boolean flip_style_rotate_first = false;<NEW_LINE>Object next_token = null;<NEW_LINE>for (; ; ) {<NEW_LINE>Object prev_token = next_token;<NEW_LINE>try {<NEW_LINE>next_token = p_par.scanner.next_token();<NEW_LINE>} catch (java.io.IOException e) {<NEW_LINE>F... | ).components.set_flip_style_rotate_first(true); |
86,782 | public void process(JCas jcas) throws AnalysisEngineProcessException {<NEW_LINE>JCas questionView, resultView, passagesView;<NEW_LINE>try {<NEW_LINE>questionView = jcas.getView("Question");<NEW_LINE>resultView = jcas.getView("Result");<NEW_LINE>passagesView = jcas.getView("Passages");<NEW_LINE>} catch (CASException e) ... | Annotation) copier.copyFs(a); |
974,442 | public <S, D> D map(MappingContext<S, D> context) {<NEW_LINE>MappingContextImpl<S, D> contextImpl = (MappingContextImpl<S, D>) context;<NEW_LINE>Class<D> destinationType = context.getDestinationType();<NEW_LINE>// Resolve some circular dependencies<NEW_LINE>if (!Iterables.isIterable(destinationType)) {<NEW_LINE>D circu... | context.getTypeMapName(), this); |
409,155 | public void process(Element element, HasKeyEventCallbackMethods holder) throws Exception {<NEW_LINE>String methodName = element<MASK><NEW_LINE>ExecutableElement executableElement = (ExecutableElement) element;<NEW_LINE>TypeMirror returnType = executableElement.getReturnType();<NEW_LINE>boolean returnMethodResult = retu... | .getSimpleName().toString(); |
1,263,743 | public void testAssumptionFailure(TestIdentifier testIdentifier, String trace) {<NEW_LINE>if (takeScreenshotOnFailure) {<NEW_LINE>String suffix = "_failure";<NEW_LINE>String filepath = testIdentifier.getTestName() + suffix + SCREENSHOT_SUFFIX;<NEW_LINE>executeOnAdbShell("screencap -p " + screenshotsPathOnDevice + "/" +... | INDENT + INDENT + filepath + " saved."); |
666,367 | public static void tackle(long a, long b) {<NEW_LINE>if (a == 0) {<NEW_LINE>System.out.print(0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean isMinus = a > 0 ? false : true;<NEW_LINE>if (isMinus) {<NEW_LINE>System.out.print("(-");<NEW_LINE>a = -a;<NEW_LINE>}<NEW_LINE>long gcd = getGcd(a, b);<NEW_LINE>a = a / gcd;<NEW_L... | System.out.print(")"); |
1,790,360 | public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart part, @Named(IServiceConstants.ACTIVE_SHELL) Shell shell) throws IOException {<NEW_LINE>FileDialog fileDialog = new FileDialog(shell, SWT.OPEN | SWT.SINGLE);<NEW_LINE>fileDialog.setText(Messages.PDFImportDebugTextExtraction);<NEW_LINE>fileDialog.setFilterN... | PDFInputFile inputFile = new PDFInputFile(file); |
992,058 | public void marshall(CreateTableRequest createTableRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTableRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createTableRequest.getKeyspace... | createTableRequest.getComment(), COMMENT_BINDING); |
438,330 | private static Vector combineServerLongFloatRowSplits(List<ServerRow> rowSplits, MatrixMeta matrixMeta, int rowIndex) {<NEW_LINE>long colNum = matrixMeta.getColNum();<NEW_LINE>int elemNum = 0;<NEW_LINE>int size = rowSplits.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>elemNum += rowSplits.<MASK><NEW_LINE>}... | get(i).size(); |
1,068,621 | final ListWorkteamsResult executeListWorkteams(ListWorkteamsRequest listWorkteamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listWorkteamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | invoke(request, responseHandler, executionContext); |
1,680,707 | public void renderSummaryTo(ClassDoc classDoc, Element parent) {<NEW_LINE>Document document = parent.getOwnerDocument();<NEW_LINE>Element summarySection = document.createElement("section");<NEW_LINE>parent.appendChild(summarySection);<NEW_LINE>Element title = document.createElement("title");<NEW_LINE>summarySection.app... | (document.createTextNode("Methods")); |
1,747,138 | private List<Compatibility<springfox.documentation.service.Parameter, RequestParameter>> readParameters(OperationContext context) {<NEW_LINE>List<ResolvedMethodParameter> methodParameters = context.getParameters();<NEW_LINE>List<Compatibility<springfox.documentation.service.Parameter, RequestParameter>> parameters = ne... | (pluginsManager.parameter(parameterContext)); |
1,489,792 | private I_MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel createVerfuegbarkeitsanfrageEinzelne_Artikel(@NonNull final StockAvailabilityQueryItem singleArticle, @NonNull final ImmutableMap<StockAvailabilityQueryItem, MSV3ArtikelContextInfo> immutableMap) {<NEW_LINE>final I_MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel article... | setAD_Org_ID(orgId.getRepoId()); |
335,047 | private void handle(String key) throws Exception {<NEW_LINE>String table = key.substring(0, key.indexOf(KEY_MIN_NAME));<NEW_LINE>InterProcessSemaphoreMutex interProcessSemaphoreMutex = interProcessSemaphoreMutexThreadLocal.get();<NEW_LINE>if (interProcessSemaphoreMutex == null) {<NEW_LINE>interProcessSemaphoreMutex = n... | SEQ, val.getBytes()); |
1,317,200 | private static void redefineEdition(Instrumentation instrumentation, String targetClassName, Redefiner redefiner) throws ClassNotFoundException, UnmodifiableClassException {<NEW_LINE>instrumentation.addTransformer(new ClassFileTransformer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public byte[] transform(ClassLoader loa... | ClassPool cp = ClassPool.getDefault(); |
329,856 | public void print(String s) {<NEW_LINE>// If we just printed a newline, print an indent.<NEW_LINE>//<NEW_LINE>if (atStart) {<NEW_LINE>for (int j = 0; j < indent; ++j) {<NEW_LINE>writeString(" ");<NEW_LINE>}<NEW_LINE>if (inComment) {<NEW_LINE>writeString(" * ");<NEW_LINE>}<NEW_LINE>atStart = false;<NEW_LINE>}<NEW_LINE>... | substring(0, i + 1); |
812,944 | private void checkMapToDownload(RotatedTileBox tileBox, List<BinaryMapDataObject> currentObjects) {<NEW_LINE><MASK><NEW_LINE>int cx = tileBox.getCenter31X();<NEW_LINE>int cy = tileBox.getCenter31Y();<NEW_LINE>if (lastCheckMapCx == cx && lastCheckMapCy == cy && lastCheckMapZoom == zoom) {<NEW_LINE>return;<NEW_LINE>}<NEW... | int zoom = tileBox.getZoom(); |
266,915 | protected void discover(final Class clazz, final String property) {<NEW_LINE>try {<NEW_LINE>Object[] params = {};<NEW_LINE>StringBuilder sb = new StringBuilder("is");<NEW_LINE>sb.append(property);<NEW_LINE>setMethod(getIntrospector().getMethod(clazz, sb.toString(), params));<NEW_LINE>if (!isAlive()) {<NEW_LINE>char c =... | , Character.toUpperCase(c)); |
336,474 | private void oopsCodeBlobDo(AddressVisitor oopVisitor, RegisterMap regMap) {<NEW_LINE>CodeBlob cb = VM.getVM().getCodeCache().findBlob(getPC());<NEW_LINE>if (Assert.ASSERTS_ENABLED) {<NEW_LINE>Assert.that(cb != null, "sanity check");<NEW_LINE>}<NEW_LINE>if (cb.getOopMaps() != null) {<NEW_LINE>OopMapSet.oopsDo(this, cb,... | getVM().isDebugging()); |
870,273 | private boolean isResourceCachingEnabled() {<NEW_LINE>if (_resourceCacheEnabled == null) {<NEW_LINE>FacesContext facesContext = FacesContext.getCurrentInstance();<NEW_LINE>// first, check to make sure that ProjectStage is production, if not, skip caching<NEW_LINE>if (!facesContext.isProjectStage(ProjectStage.Production... | ResourceHandlerCache.RESOURCE_HANDLER_CACHE_ENABLED_ATTRIBUTE, ResourceHandlerCache.RESOURCE_HANDLER_CACHE_ENABLED_DEFAULT); |
1,007,874 | private Mono<Response<ClusterInner>> updateWithResponseAsync(String resourceGroupName, String clusterName, ClusterPatch 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 be ... | error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); |
803,304 | private List<ManagedSeriesReader> initMultSeriesReader(QueryContext context) throws StorageEngineException, IOException, EmptyIntervalException, QueryProcessException {<NEW_LINE>Filter timeFilter = null;<NEW_LINE>if (queryPlan.getExpression() != null) {<NEW_LINE>timeFilter = ((GlobalTimeExpression) queryPlan.getExpress... | > readersOfSelectedSeries = Lists.newArrayList(); |
1,063,744 | // ========================================= Model Elements ======================================<NEW_LINE>Element writeModelElements(Element rootElement) {<NEW_LINE>Element elementsElement = new Element(ELEMENT_ELEMENTS, ARCHIMATE3_NAMESPACE);<NEW_LINE>writeModelElementsFolder(fModel.getFolder(FolderType.STRATEGY), e... | (FolderType.BUSINESS), elementsElement); |
1,494,556 | private static StreamRDFCounting executeData(LoaderPlan loaderPlan, DatasetGraphTDB dsgtdb, Map<String, TupleIndex> indexMap, List<BulkStartFinish> dataProcess, MonitorOutput output) {<NEW_LINE>StoragePrefixesTDB dps = (StoragePrefixesTDB) dsgtdb.getStoragePrefixes();<NEW_LINE>PrefixHandlerBulk prefixHandler = new Pref... | loaderPlan.primaryLoad4(), indexMap); |
490,106 | public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod methodNode = parent.makeChild(SubordTableLookupStrategyFactory.EPTYPE, this.getClass(), classScope);<NEW_LINE>if (isStrictKeys) {<NEW_LINE>int[] keyStreamNums = IntArrayUtil.cop... | keyStreamTypes = EventTypeUtility.shiftRight(outerStreamTypesZeroIndexed); |
16,786 | void checkAgainstNullAnnotation(BlockScope scope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>int nullStatus = this.<MASK><NEW_LINE>long tagBits;<NEW_LINE>MethodBinding methodBinding = null;<NEW_LINE>boolean useTypeAnnotations = scope.environment().usesNullTypeAnnotations();<NEW_LINE>try {<NEW_LINE>methodBin... | expression.nullStatus(flowInfo, flowContext); |
882,119 | public static QueryTransferInListResponse unmarshall(QueryTransferInListResponse queryTransferInListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTransferInListResponse.setRequestId(_ctx.stringValue("QueryTransferInListResponse.RequestId"));<NEW_LINE>queryTransferInListResponse.setTotalItemNum(_ctx.integerValue("... | (_ctx.booleanValue("QueryTransferInListResponse.PrePage")); |
259,100 | private void loadNode1067() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NamespacesType_AddressSpaceFile_Open_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueO... | setInput(new StringReader(xml)); |
1,167,720 | public ApiResponse<MediaShare> mediaSharesGetByIdWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling mediaSharesGetBy... | = new ArrayList<Pair>(); |
1,461,030 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>// Hack for STR Rx, =0xSOMEADDR<NEW_LINE>IO... | : (variableOperand1.getValue()); |
1,711,693 | protected Class<? extends T>[] expand(final Class<? extends T>[] actionWrappers) {<NEW_LINE>if (actionWrappers == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Class<? extends T>> list = new ArrayList<>(actionWrappers.length);<NEW_LINE>list.addAll(Arrays.asList(actionWrappers));<NEW_LINE>int i = 0;<NEW_LINE>wh... | , Arrays.asList(stackWrappers)); |
1,139,432 | public void transformAttribute(@NotNull DBCSession session, @NotNull DBDAttributeBinding attribute, @NotNull List<Object[]> rows, @NotNull Map<String, Object> options) throws DBException {<NEW_LINE>int radix = 16;<NEW_LINE>int bits = 32;<NEW_LINE>boolean showPrefix = false;<NEW_LINE>boolean unsigned = false;<NEW_LINE>i... | .get(PROP_BITS), bits); |
1,777,829 | final CreateHsmResult executeCreateHsm(CreateHsmRequest createHsmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createHsmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
212,665 | GF256Poly[] divide(GF256Poly other) {<NEW_LINE>if (!field.equals(other.field)) {<NEW_LINE>throw new IllegalArgumentException("GF256Polys do not have same GF256 field");<NEW_LINE>}<NEW_LINE>if (other.isZero()) {<NEW_LINE>throw new IllegalArgumentException("Divide by 0");<NEW_LINE>}<NEW_LINE>GF256Poly quotient = field.ge... | other.multiplyByMonomial(degreeDifference, scale); |
1,245,129 | public Builder mergeFrom(io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetStatus other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetStatus.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasObservedGeneration()) {<NEW_LINE>setObservedGeneration(other.getObservedGe... | bitField0_ = (bitField0_ & ~0x00000040); |
1,595,683 | private String CYPHER_MIN_CARDINALITY1_V_SUFF() {<NEW_LINE>return "NOT %s ( size((focus)-[:`%s`]->()) + size([] + coalesce(focus.`%s`, [])) ) RETURN " + (nodesAreUriIdentified() ? " focus.uri " : " id(focus) ") + " as nodeId, " + (shallIShorten() ? "n10s.rdf.fullUriFromShortForm('%s')" : " '%s' ") + " as nodeType, '%... | "n10s.rdf.fullUriFromShortForm('%s')" : " '%s' ") + " as propertyName, '%s' as severity, " + "null as offendingValue "; |
922,070 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>beanClassTextField = new javax.swing.JTextField();<NEW_LINE>spacerLabel = new ... | = java.awt.GridBagConstraints.WEST; |
845,914 | public static String checksum(Algorithm algorithm, byte[] data) throws IOException {<NEW_LINE>switch(algorithm) {<NEW_LINE>case MD2:<NEW_LINE>return DigestUtils.md2Hex(data);<NEW_LINE>case MD5:<NEW_LINE>return DigestUtils.md5Hex(data);<NEW_LINE>case RMD160:<NEW_LINE>RIPEMD160Digest digest = new RIPEMD160Digest();<NEW_L... | digest.doFinal(output, 0); |
1,564,424 | // Cleanup: private<NEW_LINE>public String postJsonToServer(String stringUrl, String data, String userId) throws Exception {<NEW_LINE>Utils.printLog(context, TAG, "Calling url (POST) with exception: " + stringUrl);<NEW_LINE>Utils.printLog(context, TAG, "(POST) Json: " + data);<NEW_LINE>Utils.printLog(<MASK><NEW_LINE>Ht... | context, TAG, "(POST) User Id: " + userId); |
1,576,949 | final GetCachePolicyResult executeGetCachePolicy(GetCachePolicyRequest getCachePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCachePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetCachePolicy"); |
1,274,787 | public static ClientMessage encodeRequest(long jobId, int terminateMode, @Nullable java.util.UUID lightJobCoordinator) {<NEW_LINE><MASK><NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("Jet.TerminateJob");<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(new byte[R... | ClientMessage clientMessage = ClientMessage.createForEncode(); |
947,080 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeOptionalString(docId);<NEW_LINE>out.writeString(name);<NEW_LINE>out.writeString(entityId);<NEW_LINE>out.writeString(acs);<NEW_LINE>out.writeBoolean(enabled);<NEW_LINE>out.writeInstant(created);<NEW_LINE>out.writeInstant(lastModified);<NEW_LINE... | out.writeOptionalString(attributeNames.roles); |
103,887 | protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) throws IOException {<NEW_LINE>String jobId = restRequest.param(Job.ID.getPreferredName());<NEW_LINE>String snapshotId = restRequest.param(SNAPSHOT_ID.getPreferredName());<NEW_LINE>RevertModelSnapshotAction.Request request;<NEW_LINE... | new RestStatusToXContentListener<>(channel)); |
581,273 | public boolean exists() {<NEW_LINE>try {<NEW_LINE>final String protocol = url.getProtocol();<NEW_LINE>if (StringUtils.isNotEmpty(protocol) && ("file".equalsIgnoreCase(protocol) || protocol.startsWith("vfs"))) {<NEW_LINE>try {<NEW_LINE>return new File(url.toURI().getSchemeSpecificPart()).exists();<NEW_LINE>} catch (URIS... | getFile()).exists(); |
306,155 | public okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace... | String[] localVarAccepts = { "*/*" }; |
1,568,409 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Target target1 = new TargetControlledCreaturePermanent(1, 1, new FilterControlledCreaturePermanent(), true);<NEW_LINE>Target target2 = new TargetOpponent(t... | new FixedTarget(permanent, game)); |
1,164,388 | IndexedDigest H_msg(byte[] prf, byte[] pkSeed, byte[] pkRoot, byte[] message) {<NEW_LINE>int forsMsgBytes = ((A <MASK><NEW_LINE>int leafBits = H / D;<NEW_LINE>int treeBits = H - leafBits;<NEW_LINE>int leafBytes = (leafBits + 7) / 8;<NEW_LINE>int treeBytes = (treeBits + 7) / 8;<NEW_LINE>int m = forsMsgBytes + leafBytes ... | * K) + 7) / 8; |
1,186,140 | static boolean performAction(ActionEvent e) {<NEW_LINE>ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID<MASK><NEW_LINE>GuiPackage guiPackage = GuiPackage.getInstance();<NEW_LINE>if (guiPackage.isDirty()) {<NEW_LINE>int response;<NEW_LINE>if ((response = // $NON-NLS-1$<NEW_LINE>JOptionPane./... | (), ActionNames.CHECK_DIRTY)); |
1,528,264 | private void handleStrimziOAuth(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {<NEW_LINE>if (!QuarkusClassLoader.isClassPresentAtRuntime("io.strimzi.kafka.oauth.client.JaasClientOauthLoginCallbackHandler")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>reflectiveClass.produce(new ReflectiveClassBuildItem(true<MASK>... | , true, true, "io.strimzi.kafka.oauth.client.JaasClientOauthLoginCallbackHandler")); |
1,499,639 | public void serialize(InfoflowResults results, String fileName) throws XMLStreamException, IOException {<NEW_LINE>this.startTime = System.currentTimeMillis();<NEW_LINE>try (OutputStream out = new FileOutputStream(fileName)) {<NEW_LINE>XMLOutputFactory factory = XMLOutputFactory.newInstance();<NEW_LINE>XMLStreamWriter w... | writeStartElement(XmlConstants.Tags.performanceData); |
677,901 | public boolean extractFrom(@Nonnull AdvancedGasConduit advancedGasConduit, @Nonnull EnumFacing dir, int maxExtractPerTick) {<NEW_LINE>if (tank.isFull()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IGasHandler extTank = getTankContainer(advancedGasConduit, dir);<NEW_LINE>if (extTank != null) {<NEW_LINE>int maxExtract =... | GasStack couldDrain = gasType.copy(); |
1,421,014 | public static DescribeLifecycleHooksResponse unmarshall(DescribeLifecycleHooksResponse describeLifecycleHooksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLifecycleHooksResponse.setRequestId<MASK><NEW_LINE>describeLifecycleHooksResponse.setTotalCount(_ctx.integerValue("DescribeLifecycleHooksResponse.TotalCount... | (_ctx.stringValue("DescribeLifecycleHooksResponse.RequestId")); |
845,303 | public PutDestinationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutDestinationResult putDestinationResult = new PutDestinationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
1,363,865 | protected void onInit(JsObject value) {<NEW_LINE>if (value != null) {<NEW_LINE>BreakpointState state = value.cast();<NEW_LINE>// restore all of the breakpoints<NEW_LINE>JsArray<Breakpoint> breakpoints = state.getPersistedBreakpoints();<NEW_LINE>for (int idx = 0; idx < breakpoints.length(); idx++) {<NEW_LINE>Breakpoint ... | new BreakpointsSavedEvent(breakpoints_, true)); |
36,728 | public static void main(String[] args) throws InterruptedException {<NEW_LINE>PolicyUpdaterConfiguration configuration = null;<NEW_LINE>try {<NEW_LINE>configuration = new PolicyUpdaterConfiguration();<NEW_LINE>} catch (Exception ex) {<NEW_LINE>LOG.error("Unable to create configuration object: {}", ex.getMessage());<NEW... | "PolicyUpdater: Exiting upon error: {}", exc.getMessage()); |
1,558,033 | // searches subdirectories under the given directory for plugin directories<NEW_LINE>private static Set<Bundle> findBundles(final Path directory, String type) throws IOException {<NEW_LINE>final Set<Bundle> bundles = new HashSet<>();<NEW_LINE>for (final Path plugin : findPluginDirs(directory)) {<NEW_LINE>final Bundle <... | bundle = readPluginBundle(plugin, type); |
794,137 | public void build(ChartBuilder chartBuilder) throws JAXBException, AxelorException {<NEW_LINE>if (chartBuilder.getName().contains(" ")) {<NEW_LINE>throw new AxelorException(TraceBackRepository.CATEGORY_MISSING_FIELD, I18n.get(IExceptionMessage.CHART_BUILDER_1));<NEW_LINE>}<NEW_LINE>searchFields = new ArrayList<String>(... | chartView = XMLViews.fromXML(xml); |
248,575 | public void uploadProject(final Project project, final int version, final File localFile, final File startupDependencies, final User uploader, final String uploaderIPAddr) {<NEW_LINE>byte[] md5 = null;<NEW_LINE>if (!(this.storage instanceof DatabaseStorage)) {<NEW_LINE>md5 = computeHash(localFile);<NEW_LINE>}<NEW_LINE>... | , requireNonNull(resourceId), uploaderIPAddr); |
1,392,807 | private void loadNode9() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_SemanticChangeStructureDataType, new QualifiedName(0, "SemanticChangeStructureDataType"), new LocalizedText("en", "SemanticChangeStructureD... | DataValue(new Variant(o)); |
984,975 | protected Object singleByteOptimizable(Rope stringRope, Rope patternRope, int offset, @Cached @Shared("stringBytesNode") BytesNode stringBytesNode, @Cached @Shared("patternBytesNode") BytesNode patternBytesNode, @Cached LoopConditionProfile loopProfile) {<NEW_LINE>assert offset >= 0;<NEW_LINE>assert offset + patternRop... | patternBytes = patternBytesNode.execute(patternRope); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.