idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
308,540 | public void startMonitoring() {<NEW_LINE>Path fileName = pathOfFileToWatch.getFileName();<NEW_LINE><MASK><NEW_LINE>if (fileName == null) {<NEW_LINE>throw new IllegalStateException("fileName is 'null'");<NEW_LINE>}<NEW_LINE>Path dirPath = pathOfFileToWatch.getParent();<NEW_LINE>log.debug("dirPath is [{}]", dirPath);<NEW... | log.debug("File name obtained from pathOfFileToWatch is [{}]", fileName); |
1,337,041 | private void populatePkcs10CsrDetails() throws CryptoException {<NEW_LINE>jtfCsrFormat.setText(res.getString("DSignCsr.jtfCsrFormat.Pkcs10.text"));<NEW_LINE>jtfCsrFormat.setCaretPosition(0);<NEW_LINE>jdnCsrSubject.setDistinguishedName(pkcs10Csr.getSubject());<NEW_LINE>try {<NEW_LINE>csrPublicKey = new JcaPKCS10Certific... | setText(sigAlg.friendly()); |
1,662,434 | public String addScheduledOnceJob(Date date, IScheduledJob job) {<NEW_LINE>String name = getJobName();<NEW_LINE>// Store reference to applications job and service<NEW_LINE>JobDataMap jobData = new JobDataMap();<NEW_LINE>jobData.put(QuartzSchedulingServiceJob.SCHEDULING_SERVICE, this);<NEW_LINE>jobData.put(QuartzSchedul... | JobKey jKey = trigger.getJobKey(); |
1,174,947 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.ssize_t, NativeType.SLONG); |
1,820,680 | private Position decodeQze(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_QZE, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());<NEW_L... | setCourse(parser.nextInt()); |
808,233 | private static JFileChooser createFileChooser() {<NEW_LINE>JFileChooser chooser = new JFileChooser() {<NEW_LINE><NEW_LINE>public void approveSelection() {<NEW_LINE>File file = getSelectedFile();<NEW_LINE>Filter filter = (Filter) getFileFilter();<NEW_LINE>if (!file.getName().endsWith(filter.getExt())) {<NEW_LINE>file = ... | desc.setMessageType(NotifyDescriptor.QUESTION_MESSAGE); |
1,701,627 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (StringUtils.isEmpty(System.getenv("OCAML_POST_PROCESS_FILE"))) {<NEW_LINE>LOGGER.info("Hint: Environment variable 'OCAML_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export OCAML_POST_PROCESS_FILE=\"ocamlfor... | put(CodegenConstants.PACKAGE_VERSION, packageVersion); |
524,925 | public DeleteTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteTemplateResult deleteTemplateResult = new DeleteTemplateResult();<NEW_LINE>deleteTemplateResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.g... | int originalDepth = context.getCurrentDepth(); |
368,524 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>String idString = request.getParameter("taskid");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>try {<NEW_LINE>out.println(getCl... | x.printStackTrace(System.out); |
200,098 | private org.hl7.fhir.r5.model.ValueSet expandValueSetR5(ValidationSupportContext theValidationSupportContext, org.hl7.fhir.r5.model.ValueSet theInput, @Nullable String theWantSystemUrlAndVersion, @Nullable String theWantCode) throws ExpansionCouldNotBeCompletedInternallyException {<NEW_LINE>Set<FhirVersionIndependentCo... | .r5.model.ValueSet(); |
852,125 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String methodName = "doGet";<NEW_LINE>PrintWriter responseWriter = response.getWriter();<NEW_LINE>responseWriter.println(CLASS_NAME + "." + methodName + ": ENTER");<NEW_LINE>Enumeration<URL> re... | resourceUrl.getPath() + " ]"); |
783,066 | public final PathExpressionContext pathExpression() throws RecognitionException {<NEW_LINE>PathExpressionContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 238, RULE_pathExpression);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1437);<NEW_LINE>_errHandle... | PathExpressionContext(_ctx, getState()); |
1,842,471 | public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException {<NEW_LINE>Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();<NEW_LINE>Persistence... | properties.put(SAVED_PAYMENT_INFO, savedPaymentInfo); |
1,030,923 | static private <T> long cityHashLen33To64(Access<T> access, T in, long off, long len) {<NEW_LINE>long mul = mul(len);<NEW_LINE>long a = access.i64(in, off) * K2;<NEW_LINE>long b = access.i64(in, off + 8L);<NEW_LINE>long c = access.i64(in, off + len - 24L);<NEW_LINE>long d = access.i64(in, off + len - 32L);<NEW_LINE>lon... | off + len - 16L) * mul; |
1,771,375 | public com.amazonaws.services.codedeploy.model.DeploymentConfigNameRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.DeploymentConfigNameRequiredException deploymentConfigNameRequiredException = new com.amazonaws.services.codedep... | String currentParentElement = context.getCurrentParentElement(); |
1,540,031 | public static SubordinateWMatchExprQueryPlanResult planOnExpression(ExprNode joinExpr, EventType filterEventType, IndexHint optionalIndexHint, boolean isIndexShare, int subqueryNumber, ExcludePlanHint excludePlanHint, boolean isVirtualDataWindow, EventTableIndexMetadata indexMetadata, EventType eventTypeIndexed, Set<St... | .getStateMgmtSettingsProvider().newCharge(); |
1,231,379 | public void execute() {<NEW_LINE>try {<NEW_LINE>RegisteredMicroserviceInstanceResponse instance = serviceCenterClient.registerMicroserviceInstance(microserviceInstance);<NEW_LINE>if (instance == null) {<NEW_LINE>LOGGER.error("register microservice instance failed, and will try again.");<NEW_LINE>eventBus.post(new Micro... | RegisterMicroserviceInstanceTask(failedCount + 1))); |
1,607,590 | public static GetPhotosByMd5sResponse unmarshall(GetPhotosByMd5sResponse getPhotosByMd5sResponse, UnmarshallerContext context) {<NEW_LINE>getPhotosByMd5sResponse.setRequestId(context.stringValue("GetPhotosByMd5sResponse.RequestId"));<NEW_LINE>getPhotosByMd5sResponse.setCode(context.stringValue("GetPhotosByMd5sResponse.... | ("GetPhotosByMd5sResponse.Photos[" + i + "].Remark")); |
1,231,479 | public void init() {<NEW_LINE>BlueprintCraftingRecipe.addRecipe("specialBullet", BulletHandler.getBulletStack("terrasteel"), new ItemStack(IEContent.itemBullet, 1, 0), Items.GUNPOWDER, "nuggetTerrasteel", "nuggetTerrasteel");<NEW_LINE>try {<NEW_LINE>Class c_BotaniaAPI = Class.forName("vazkii.botania.api.BotaniaAPI");<N... | , 0, .9375, 1)); |
219,631 | public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>setContentView(R.layout.act_hostlist);<NEW_LINE>setTitle(R.string.title_hosts_list);<NEW_LINE>mListView = findViewById(R.id.list);<NEW_LINE>mListView.setHasFixedSize(true);<NEW_LINE>mListView.setLayoutManager(new LinearLayoutManager(this));... | findViewById(R.id.add_host_button); |
1,437,100 | // =========================<NEW_LINE>// syev EigenValue/Vectors<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>public int ssyev(char jobz, char uplo, int N, INDArray A, INDArray R) {<NEW_LINE>FloatPointer fp = new FloatPointer(1);<NEW_LINE>int status = Nd4j.getBlasLapackDelegator().LAPACKE_ssyev_work(getColumnOrder(A), (byte... | interval(0, N))); |
1,041,485 | private Map<String, Object> _buildMap(boolean isComplete) {<NEW_LINE>int size = <MASK><NEW_LINE>if (isComplete) {<NEW_LINE>// when complete, optimize to smallest size<NEW_LINE>if (size <= 3) {<NEW_LINE>// 3 or fewer entries, hash table of 4<NEW_LINE>size = 4;<NEW_LINE>} else if (size <= 40) {<NEW_LINE>size += (size >> ... | (tail - start) >> 1; |
1,468,864 | protected StringBuilder expandTargetUrlTemplate(String targetUrl, Map<String, Object> model, Map<String, String> uriVariables) {<NEW_LINE>Matcher matcher = URI_TEMPLATE_VARIABLE_PATTERN.matcher(targetUrl);<NEW_LINE>boolean found = matcher.find();<NEW_LINE>if (!found) {<NEW_LINE>return new StringBuilder(targetUrl);<NEW_... | : uriVariables.get(name)); |
1,423,656 | /*<NEW_LINE>* Create copies of connections that have been selected (if source and target also have been selected/mapped)<NEW_LINE>*/<NEW_LINE>private void createSnapshotConnectionsForSelectedComponents(List<IDiagramModelComponent> selected) {<NEW_LINE>// Create new connection copies for all selected connections, but do... | (IDiagramModelConnection) entry.getKey(); |
219,996 | public static void saveTextToFile(final Context context, final String label, final String filePath, final String text, final boolean showToast, final int storagePermissionRequestCode) {<NEW_LINE>if (context == null || filePath == null || filePath.isEmpty() || text == null)<NEW_LINE>return;<NEW_LINE>// If path is under ... | LOG_TAG, error.toString()); |
676,683 | private static Lookup[] delegates(Lookup prevFolderLkp, String path) {<NEW_LINE>ClassLoader loader = Lookup.getDefault().lookup(ClassLoader.class);<NEW_LINE>LOG.log(Level.FINEST, "lkp loader: {0}", loader);<NEW_LINE>if (loader == null) {<NEW_LINE>loader = Thread.currentThread().getContextClassLoader();<NEW_LINE>LOG.log... | ), s).getLookup(); |
347,732 | private void _buildSQL(String fileName) throws IOException {<NEW_LINE>File file = new File("../sql/" + fileName + ".sql");<NEW_LINE>if (!file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Template<NEW_LINE>String template = FileUtil.read(file);<NEW_LINE>// DB2<NEW_LINE>String db2 = StringUtil.replace(template, _T... | replace(template, _TEMPLATE, _ORACLE); |
1,241,149 | public static ListOTAJobByFirmwareResponse unmarshall(ListOTAJobByFirmwareResponse listOTAJobByFirmwareResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAJobByFirmwareResponse.setRequestId(_ctx.stringValue("ListOTAJobByFirmwareResponse.RequestId"));<NEW_LINE>listOTAJobByFirmwareResponse.setSuccess(_ctx.booleanValue(... | (_ctx.integerValue("ListOTAJobByFirmwareResponse.Total")); |
47,255 | protected Object doInBackground() throws Exception {<NEW_LINE>// NON-NLS<NEW_LINE>logger.<MASK><NEW_LINE>// Setup progress bar<NEW_LINE>final String displayName = NbBundle.getMessage(this.getClass(), "HashDbSearchThread.name.searching");<NEW_LINE>progress = ProgressHandle.createHandle(displayName, new Cancellable() {<N... | log(Level.INFO, "Starting background processing for file search by MD5 hash."); |
873,124 | public String debugLocksState() {<NEW_LINE>String s = (this) + ": ";<NEW_LINE>if (!(this.usedInit())) {<NEW_LINE>s += "unused";<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>s += "used, ";<NEW_LINE>if (!(segmentIndexInit())) {<NEW_LINE>s += "segment uninitialized";<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>s += ("segment " + (se... | rootContextLockedOnThisSegment().totalWriteLockCount()); |
94,269 | public final void compute() {<NEW_LINE>final BiFunction<? super K, ? super K, ? extends K> reducer;<NEW_LINE>if ((reducer = this.reducer) != null) {<NEW_LINE>for (int i = baseIndex, f, h; batch > 0 && (h = ((f = baseLimit) + i) >>> 1) > i; ) {<NEW_LINE>addToPendingCount(1);<NEW_LINE>(rights = new ReduceKeysTask<K, V>(t... | = t.rights = s.nextRight; |
1,224,676 | public static void main(String[] args) throws Exception {<NEW_LINE>LOGGER.info("\n=========================================================" + "\n " + "\n Welcome to Spring Integration! " + "\n ... | session = mock(Session.class); |
929,071 | // GROOVY end<NEW_LINE>private void updatePackageStatement(CompilationUnit astCU, String[] pkgName, ASTRewrite rewriter, ICompilationUnit cu) throws JavaModelException {<NEW_LINE>boolean defaultPackage = pkgName.length == 0;<NEW_LINE><MASK><NEW_LINE>if (defaultPackage) {<NEW_LINE>// remove existing package statement<NE... | AST ast = astCU.getAST(); |
1,109,934 | private static File findPath() {<NEW_LINE>String classResourcePath = WorkPath.class.getName().replaceAll("\\.", "/") + ".class";<NEW_LINE>URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath);<NEW_LINE>if (resource != null) {<NEW_LINE>String urlString = resource.toString();<NEW_LINE>LOGGER.de... | ) - classResourcePath.length()); |
1,770,116 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// As we have stated in the readme, we have used three different approach to implement the<NEW_LINE>// dependency injection on the app level. For LiveDataDetailViewWithVideoBackgroundFragment<NEW_LINE>// .java, we us... | ).getParcelableExtra(LiveDataDetailActivity.CACHED_CONTENT); |
189,436 | public void run() {<NEW_LINE>final ProgressHandle[<MASK><NEW_LINE>final Timer[] timer = new Timer[1];<NEW_LINE>timer[0] = new Timer(800, new ActionListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>if (repositories == null) {<NEW_LINE>timer[0].stop();<NEW_LINE>ph[0]... | ] ph = new ProgressHandle[1]; |
97,080 | public int trap(int[] height) {<NEW_LINE>if (height == null || height.length == 0)<NEW_LINE>return 0;<NEW_LINE>int n = height.length;<NEW_LINE>int[<MASK><NEW_LINE>int[] right_max = new int[n];<NEW_LINE>left_max[0] = height[0];<NEW_LINE>int res = 0;<NEW_LINE>right_max[n - 1] = height[n - 1];<NEW_LINE>for (int i = 1; i <... | ] left_max = new int[n]; |
1,205,057 | protected IMenuManager contributeToEditMenu(IMenuManager menuManager) {<NEW_LINE>IMenuManager editMenu = (IMenuManager) menuManager.find(IWorkbenchActionConstants.M_EDIT);<NEW_LINE>editMenu.insertAfter(ArchiActionFactory.RENAME.getId(), new Separator(GROUP_EDIT_MENU));<NEW_LINE>// Copy as Image to Clipboard<NEW_LINE>ed... | = new MenuManager(Messages.AbstractDiagramEditorActionBarContributor_8); |
483,335 | private void processCreateRequest(@NonNull final Exchange exchange) {<NEW_LINE>final Object request = exchange.getIn().getBody();<NEW_LINE>if (!(request instanceof ExternalStatusCreateCamelRequest)) {<NEW_LINE>throw new RuntimeCamelException("The route " + ExternalSystemCamelConstants.MF_CREATE_EXTERNAL_SYSTEM_STATUS_V... | HEADER_EXTERNAL_SYSTEM_CONFIG_TYPE, externalStatusRequest.getExternalSystemConfigType()); |
947,305 | private Object xfer(Object e, int mode, long nanos) {<NEW_LINE>boolean isData = e != null;<NEW_LINE>QNode s = null;<NEW_LINE>final PaddedAtomicReference<QNode> head = this.head;<NEW_LINE>final PaddedAtomicReference<QNode> tail = this.tail;<NEW_LINE>for (; ; ) {<NEW_LINE>QNode t = tail.get();<NEW_LINE>QNode h = head.get... | tail.compareAndSet(t, s); |
157,296 | private boolean completeSatisfiedVersionDependentTasks() {<NEW_LINE>int publishedVersion = systemStateBroadcaster.lastClusterStateVersionInSync();<NEW_LINE>long queueSizeBefore = taskCompletionQueue.size();<NEW_LINE>// Note: although version monotonicity of tasks in queue always should hold,<NEW_LINE>// deadline monoto... | taskCompletionQueue.size() != queueSizeBefore); |
1,364,618 | public void visitIfElse(final IfStatement ifElse) {<NEW_LINE>Map<VariableExpression, List<ClassNode>> oldTracker = pushAssignmentTracking();<NEW_LINE>try {<NEW_LINE>// create a new temporary element in the if-then-else type info<NEW_LINE>typeCheckingContext.pushTemporaryTypeInfo();<NEW_LINE>visitStatement(ifElse);<NEW_... | getElseBlock().visit(this); |
1,627,139 | public static final <T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> Collector<T, ?, Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>[]> toRowArray(Function<? super T, ? extends Field<T1>> f1, Function<? super T, ? extends Field<T2>> f2... | (new Row19[0])); |
1,252,139 | private boolean configureHotspotBeforeNougat(WifiManager wifiManager) {<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>if (wifiManager != null) {<NEW_LINE>Method wifiApConfigurationMethod = wifiManager.getClass().getMethod("getWifiApConfiguration");<NEW_LINE>WifiConfiguration netConfig = (WifiConfiguration) w... | ) + e.getCause()); |
269,015 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@Name('context') @public create context SegmentedByString partition by theString from SupportBean", path);<NEW_LINE>String[] <MASK><NEW_LINE>env.compileDeploy("@Name('s0') context SegmentedByStr... | fieldsOne = "intPrimitive,col1,col2,col3".split(","); |
1,285,908 | public static void populateListMultipartUploadsRequestParameters(ListMultipartUploadsRequest request, Map<String, String> params) {<NEW_LINE>if (request.getDelimiter() != null) {<NEW_LINE>params.put(<MASK><NEW_LINE>}<NEW_LINE>if (request.getMaxUploads() != null) {<NEW_LINE>params.put(MAX_UPLOADS, Integer.toString(reque... | DELIMITER, request.getDelimiter()); |
1,767,163 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int totalHeight;<NEW_LINE>if (getLayoutParams().height > 0) {<NEW_LINE>totalHeight = getLayoutParams().height;<NEW_LINE>} else {<NEW_LINE>totalHeight = MeasureSpec.getSize(heightMeasureSpec);<NEW_LINE>}<NEW_LINE>if (Build.VERSION.SDK_INT >... | getSize(widthMeasureSpec) - backgroundPaddingLeft * 2; |
1,367,418 | public ListUsersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListUsersResult listUsersResult = new ListUsersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | JsonToken token = context.getCurrentToken(); |
1,168,939 | // //////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Build an Intent to start this activity from the Notification<NEW_LINE>Intent notifierIntent = new Intent(ObbDownload... | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); |
149,124 | public Response load(Uri uri, int networkPolicy) throws IOException {<NEW_LINE>CacheControl cacheControl = null;<NEW_LINE>if (networkPolicy != 0) {<NEW_LINE>if (NetworkPolicy.isOfflineOnly(networkPolicy)) {<NEW_LINE>cacheControl = CacheControl.FORCE_CACHE;<NEW_LINE>} else {<NEW_LINE>CacheControl.Builder builder = new C... | message(), networkPolicy, responseCode); |
864,968 | public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>// DEBUG ONLY<NEW_LINE>// System.err.println("closing MotorMount element: "+ element);<NEW_LINE>if (element.equals("motor")) {<NEW_LINE>FlightConfigurationId fcid = new Flight... | (Warning.fromString("Illegal ignition delay specified, ignoring.")); |
81,255 | static // [START securitycenter_group_all_findings]<NEW_LINE>ImmutableList<GroupResult> groupFindings(OrganizationName organizationName) {<NEW_LINE>try (SecurityCenterClient client = SecurityCenterClient.create()) {<NEW_LINE>// OrganizationName organizationName = OrganizationName.of("123234324");<NEW_LINE>SourceName so... | System.out.println("Findings:"); |
703,731 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | false), new UntagResourceResultJsonUnmarshaller()); |
1,653,707 | private HintResponse hintFieldName(String lastWord, String input, int caretPosition, Set<InferredType> expectedTypes) {<NEW_LINE>QueryTree queryTree;<NEW_LINE>try {<NEW_LINE>queryTree = new QueryTree(model, input, false);<NEW_LINE>} catch (JPA2RecognitionException e) {<NEW_LINE>List<String> errorMessages = new ArrayLis... | String> errorMessages = prepareErrorMessages(errorRecs); |
343,214 | void serializeMessageInfoAndMetadataList(ByteBuf outputBuf) {<NEW_LINE>if (version >= VERSION_5) {<NEW_LINE>outputBuf.writeShort(version);<NEW_LINE>}<NEW_LINE>outputBuf.writeInt(messageInfoList == null ? 0 : messageInfoList.size());<NEW_LINE>if (messageInfoList != null) {<NEW_LINE>ListIterator<MessageInfo> infoListIter... | writeLong(messageInfo.getOperationTimeMs()); |
1,489,405 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String accountName = Utils.getValueFromIdByName(id,... | format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); |
177,306 | public static PyTorchJobSpec parsePyTorchJobSpec(ExperimentSpec experimentSpec) throws InvalidSpecException {<NEW_LINE>PyTorchJobSpec pyTorchJobSpec = new PyTorchJobSpec();<NEW_LINE>Map<PyTorchJobReplicaType, MLJobReplicaSpec> replicaSpecMap = new HashMap<>();<NEW_LINE>for (Map.Entry<String, ExperimentTaskSpec> entry :... | setReplicas(taskSpec.getReplicas()); |
1,735,678 | public Builder addEntryRecursive(Path sourceFile, AbsoluteUnixPath pathInContainer, FilePermissionsProvider filePermissionProvider, ModificationTimeProvider modificationTimeProvider, OwnershipProvider ownershipProvider) throws IOException {<NEW_LINE>FilePermissions permissions = filePermissionProvider.get(sourceFile, p... | ), filePermissionProvider, modificationTimeProvider, ownershipProvider); |
1,402,274 | public static void submitTopology(String name, Config heronConfig, HeronTopology topology) throws AlreadyAliveException, InvalidTopologyException {<NEW_LINE>Map<String, String> heronCmdOptions = getHeronCmdOptions();<NEW_LINE>// We would read the topology initial state from arguments from heron-cli<NEW_LINE>TopologyAPI... | role = heronCmdOptions.get(CMD_TOPOLOGY_ROLE); |
759,808 | protected BlobServiceAsyncClient createBlobStorageAsyncClient() {<NEW_LINE>validateABSAuthConfigs(azureCloudConfig);<NEW_LINE>Configuration storageConfiguration = new Configuration();<NEW_LINE>// Check for network proxy<NEW_LINE>ProxyOptions proxyOptions = (cloudConfig.vcrProxyHost == null) ? null : new ProxyOptions(Pr... | "Error building ABS blob service client: {}", ex.getMessage()); |
239,820 | public Optional<AggregationProjectionSegment> convertToSQLSegment(final SqlBasicCall sqlBasicCall) {<NEW_LINE>if (null == sqlBasicCall) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (isAsOperatorAggregationType(sqlBasicCall)) {<NEW_LINE>SqlBasicCall subSqlBasicCall = (SqlBasicCall) sqlBasicCall.getOperandL... | names.get(0))); |
1,093,814 | public Object calculate(Context ctx) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>if (param == null || param.isLeaf() || param.getSubSize() < 4) {<NEW_LINE>throw new RQException("Fduration:" <MASK><NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>Object[] result = new Object[size];<NEW_LINE>f... | + mm.getMessage("function.missingParam")); |
784,224 | protected static ArrayList<SubtitleItem> findSubtitlesByName(DLNAResource resource, String languageCodes, FileNamePrettifier prettifier) {<NEW_LINE>if (resource == null) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>String fileName = null;<NEW_LINE>if (resource instanceof RealFile) {<NEW_LINE>File file = ((R... | , prettifier.getName())); |
1,273,611 | public void dbGroupResponseEvent(HaInfo info, String dbGroupName) throws Exception {<NEW_LINE>// dbGroup_locks events,we only try to response to the DISABLE,ignore others<NEW_LINE>if (info.getLockType() == HaInfo.HaType.DISABLE && !info.getStartId().equals(SystemConfig.getInstance().getInstanceName()) && info.getStatus... | HaStage.RESPONSE_NOTIFY.toString()); |
1,782,684 | public void appendObjectGeneric(PList list, Object value, @Cached SequenceStorageNodes.AppendNode appendNode, @Cached(value = "getUpdateStoreProfile()", uncached = "getUpdateStoreProfileUncached()", dimensions = 1) BranchProfile[] updateStoreProfile) {<NEW_LINE>if (updateStoreProfile[0] == null) {<NEW_LINE>// Executed ... | ), value, ListGeneralizationNode.SUPPLIER); |
998,510 | private void parseFrameOptionsElement(boolean addIfNotPresent, Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(XFrameOptionsHeaderWriter.class);<NEW_LINE>Element frameElement = (element != null) ? DomUtils.getChildElementByTagName(elem... | parseAllowFromFrameOptionsElement(parserContext, builder, frameElement); |
1,360,418 | public V load(K key, String version) throws BackingStoreException {<NEW_LINE>String fileName = key.toString();<NEW_LINE>if (logger.isLoggable(TRACE_LEVEL)) {<NEW_LINE>logger.log(TRACE_LEVEL, debugStr + "Entered load(" + <MASK><NEW_LINE>}<NEW_LINE>V value = null;<NEW_LINE>byte[] data = readFromfile(fileName);<NEW_LINE>i... | key + ", " + version + ")"); |
93,351 | public void writeString(String str) throws IOException {<NEW_LINE>if (str == null) {<NEW_LINE>write(NULL);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int strlen = str.length();<NEW_LINE>if (strlen == 0) {<NEW_LINE>write(STRING4);<NEW_LINE>return;<NEW_LINE>} else if (strlen == 1) {<NEW_LINE>char c = str.charAt(0);<NEW_LINE>if... | ] charr = new char[strlen]; |
1,569,024 | private void attachSetupResultActivityListener(final Promise promise) {<NEW_LINE>ActivityEventListener ael = new BaseActivityEventListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onActivityResult(Activity a, int requestCode, int resultCode, Intent data) {<NEW_LINE>final ActivityEventListener ael = this;<N... | getReactApplicationContext().removeActivityEventListener(ael); |
1,177,461 | protected int expandCluster(int clusterid, WritableIntegerDataStore clusterids, KNNSearcher<DBIDRef> knnq, DBIDs neighbors, double maxkdist, FiniteProgress progress) {<NEW_LINE>// initial seed!<NEW_LINE>int clustersize = 1;<NEW_LINE>final ArrayModifiableDBIDs activeSet = DBIDUtil.newArray();<NEW_LINE>activeSet.addDBIDs... | .putInt(id, -clusterid); |
182,053 | public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>ServletContext context = this.getServletConfig().getServletContext();<NEW_LINE>File reportFile = new File(context.getRealPath("/reports/WebappReport.jasper"));<NEW_LINE>if (!reportFile.exists())... | ServletOutputStream outputStream = response.getOutputStream(); |
270,325 | public void onMetaDataChanged(final List<MetaData> changed, final DataEventTypeEnum eventType) {<NEW_LINE>updateMetaDataMap(getConfig(ConsulConstants.META_DATA));<NEW_LINE>switch(eventType) {<NEW_LINE>case DELETE:<NEW_LINE>changed.forEach(meta -> META_DATA.remove(meta.getPath()));<NEW_LINE>break;<NEW_LINE>case REFRESH:... | publishConfig(ConsulConstants.META_DATA, META_DATA); |
690,136 | public BuildOptions acceptTheirs(BuildOptions theirOptions) {<NEW_LINE>BuildOptionsBuilder buildOptionsBuilder = new BuildOptionsBuilder();<NEW_LINE>if (theirOptions.skipTests != null) {<NEW_LINE>buildOptionsBuilder.setSkipTests(theirOptions.skipTests);<NEW_LINE>} else {<NEW_LINE>buildOptionsBuilder.setSkipTests(this.s... | buildOptionsBuilder.setExportOpenAPI(compilationOptions.exportOpenAPI); |
815,630 | public boolean execute(Object result) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) result;<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... | setStatus(fee, code.FAILED); |
632,679 | public void read(InputStream in) throws IOException {<NEW_LINE>String reqLine = NetUtils.readLine(in);<NEW_LINE>// System.out.println(reqLine);<NEW_LINE>if (reqLine == null || reqLine.length() < 1) {<NEW_LINE>throw new IOException("Invalid request line: " + reqLine);<NEW_LINE>}<NEW_LINE>String[] arr = reqLine.split(" "... | header = headers.getValue("Content-Length"); |
655,074 | private static boolean checkStrValueNorms(WebFieldDef fieldDef, String paramVal, StringBuilder sBuffer, ProcessResult result) {<NEW_LINE>paramVal = paramVal.trim();<NEW_LINE>if (TStringUtils.isBlank(paramVal)) {<NEW_LINE>result.setSuccResult(null);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// check value's max length<N... | 0, sBuffer.length()); |
743,457 | private Exception tryFail(Requests requestedTopology, ConnectionTracker tracker, Iterable<RedisURI> seed) {<NEW_LINE>Map<RedisURI, String> failures = new LinkedHashMap<>();<NEW_LINE>CannotRetrieveClusterPartitions exception = new CannotRetrieveClusterPartitions(seed, failures);<NEW_LINE>for (RedisURI node : requestedTo... | (), getExceptionDetail(cause)); |
1,635,597 | public void init(Integer groupId) throws BrokerException {<NEW_LINE>log.info("WeEvent support solidity version, now: {} support: {}", SupportedVersion.nowVersion, SupportedVersion.history);<NEW_LINE>this.client = Web3SDKConnector.initClient(this.sdk, groupId, this.fiscoConfig);<NEW_LINE>if (this.topicController == null... | intValue(), this.timeout); |
996,960 | public static ListShadowSchemaDeviceModelsResponse unmarshall(ListShadowSchemaDeviceModelsResponse listShadowSchemaDeviceModelsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listShadowSchemaDeviceModelsResponse.setRequestId(_ctx.stringValue("ListShadowSchemaDeviceModelsResponse.RequestId"));<NEW_LINE>List<Result> model... | ("ListShadowSchemaDeviceModelsResponse.ModelList[" + i + "].CanCreateDeviceId")); |
451,777 | private void addListener(MessageListener listener, Collection<? extends Topic> topics) {<NEW_LINE><MASK><NEW_LINE>Assert.notEmpty(topics, "at least one topic is required");<NEW_LINE>List<byte[]> channels = new ArrayList<>(topics.size());<NEW_LINE>List<byte[]> patterns = new ArrayList<>(topics.size());<NEW_LINE>boolean ... | Assert.notNull(listener, "a valid listener is required"); |
1,192,595 | private Statement rewriteStaticMethodCondition(StaticMethodCallExpression condition, Expression message, boolean explicit) {<NEW_LINE>StaticMethodCallExpression rewritten;<NEW_LINE>int lastVariableNum;<NEW_LINE>final Expression converted = convert(condition);<NEW_LINE>rewritten = (StaticMethodCallExpression) unrecord(c... | (rewritten.getMethod())); |
886,311 | public boolean isMethodPureOnObject(SootMethod sm) {<NEW_LINE>if (// NOT A COMPLETE SOLUTION (ignores subclassing)<NEW_LINE>!cachedClasses.contains(sm.getDeclaringClass()) && sm.isConcrete()) {<NEW_LINE>SootMethod initMethod = null;<NEW_LINE>Collection methods = sm.getDeclaringClass().getMethods();<NEW_LINE>Iterator me... | (ExceptionalUnitGraphFactory.createExceptionalUnitGraph(b)); |
471,184 | public boolean tryOnNext(T t) {<NEW_LINE>if (sourceMode != NONE) {<NEW_LINE>return downstream.tryOnNext(null);<NEW_LINE>}<NEW_LINE>boolean b;<NEW_LINE>try {<NEW_LINE>consumer.accept(t, this);<NEW_LINE>} catch (Throwable ex) {<NEW_LINE>Exceptions.throwIfFatal(ex);<NEW_LINE>upstream.cancel();<NEW_LINE>Throwable e = outEr... | new CompositeException(e, ex)); |
1,402,321 | public static List<Element> findSubElements(Element parent) throws IllegalArgumentException {<NEW_LINE>NodeList l = parent.getChildNodes();<NEW_LINE>List<Element> elements = new ArrayList<Element>(l.getLength());<NEW_LINE>for (int i = 0; i < l.getLength(); i++) {<NEW_LINE>Node n = l.item(i);<NEW_LINE>if (n.getNodeType(... | Text) n).getNodeValue(); |
800,071 | private Token call() {<NEW_LINE>Call tok;<NEW_LINE>Matcher matcher = scanner.getMatcherForPattern("^\\+(\\s*)(([-\\w]+)|(#\\{))");<NEW_LINE>if (matcher.find(0) && matcher.groupCount() > 3) {<NEW_LINE>// try to consume simple or interpolated call<NEW_LINE>if (matcher.group(3) != null) {<NEW_LINE>// simple call<NEW_LINE>... | ).length() - 1); |
1,734,633 | protected Status validateSynch(final Connection connection, final String defaultSchema) {<NEW_LINE>logger.debug("Validating if database is updated");<NEW_LINE>ThreadLocalSessionContext.setCurrentSession(session);<NEW_LINE>try {<NEW_LINE>// Validate with keycloak master changelog first<NEW_LINE>Liquibase liquibase = get... | session.getAllProviders(JpaEntityProvider.class); |
727,366 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent fromPermanent = game.getPermanent(source.getFirstTarget());<NEW_LINE>Permanent toPermanent = game.getPermanent(source.getTargets().get<MASK><NEW_LINE>if (fromPermanent == null || t... | (1).getFirstTarget()); |
679,496 | private void checkDiscoverTypeAndHeartbeat(final AlterDatabaseDiscoveryRuleStatement sqlStatement, final DatabaseDiscoveryRuleConfiguration currentRuleConfig) throws DistSQLException {<NEW_LINE>Map<String, List<AbstractDatabaseDiscoverySegment>> segmentMap = sqlStatement.getRules().stream().collect(Collectors.groupingB... | new InvalidAlgorithmConfigurationException("database discovery", invalidInput)); |
199,767 | public static void main(String[] args) {<NEW_LINE>String url;<NEW_LINE>if (args.length == 0)<NEW_LINE>url = "jdbc:virtuoso://localhost:1111";<NEW_LINE>else<NEW_LINE>url = args[0];<NEW_LINE>Node foo1 = Node.createURI("http://example.org/#foo1");<NEW_LINE>Node bar1 = Node.createURI("http://example.org/#bar1");<NEW_LINE>N... | "Example7", url, "dba", "dba"); |
311,140 | public void loadData() {<NEW_LINE>if (!isAdded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mService = PublicizeTable.getService(mServiceId);<NEW_LINE>if (mService == null) {<NEW_LINE>ToastUtils.showToast(getActivity(), R.string.error_generic);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setTitle(mService.getLabel());<NEW_LINE>/... | getSiteId(), mService, currentUserId); |
1,381,494 | public void start(MissionInit missionInit, IVideoProducer videoProducer, VideoProducedObserver observer, MalmoEnvServer envServer) {<NEW_LINE>if (videoProducer == null) {<NEW_LINE>// Don't start up if there is nothing to provide the video.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>videoProducer.prepare(missionInit);<NEW_LIN... | out.println("Failed to register video hook: " + e); |
1,244,945 | private void convertExternalStorageSource2ExternalStorageSources() throws Exception, IOException {<NEW_LINE>File file_externalStorageSource = new File(FileTools.parent(FileTools.parent(new File("./"))), "configSample/externalStorageSource.json");<NEW_LINE>File file_externalStorageSources = new File(FileTools.parent(Fil... | map = new LinkedHashMap<>(); |
516,429 | public static HeapDumpSummary createNew() {<NEW_LINE>String rawOutput;<NEW_LINE>try {<NEW_LINE>rawOutput = getRawHeapData();<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException("Unable to get heap dump", e);<NEW_LINE>}<NEW_LINE>return new HeapDumpSummary(Arrays.stream(rawOutput.split("\n")).map(line ->... | matcher = OUTPUT_FORMAT.matcher(line); |
874,073 | public void rip() throws IOException {<NEW_LINE>logger.info(" Retrieving " + this.url.toExternalForm());<NEW_LINE>Document doc = Http.url(this.url).get();<NEW_LINE>String html = doc.body().html();<NEW_LINE>Pattern p = Pattern.compile("^.*flashvars_[0-9]+ = (.+});.*$", Pattern.DOTALL);<NEW_LINE>Matcher m = p.matcher(... | "Failed to download " + this.url + " : could not find 'flashvars'"); |
1,851,244 | private void addDisplayLabel(Symbol symbol, int nameLength, int typeLength, int sourceLength) {<NEW_LINE>String name = "";<NEW_LINE>String type = "";<NEW_LINE>String primary = getSpaces(7);<NEW_LINE>String source = "";<NEW_LINE>String namespace = "";<NEW_LINE>String yes = getSpaces(2) + "yes" + getSpaces(2);<NEW_LINE>S... | : parentNS.getName(true)); |
1,842,117 | private void initialize() {<NEW_LINE>viewModel = new KeyBindingsTabViewModel(keyBindingRepository, dialogService, preferencesService);<NEW_LINE>keyBindingsTable.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);<NEW_LINE>viewModel.selectedKeyBindingProperty().bind(EasyBind.wrapNullable(keyBindingsTable.selecti... | .mapObservable(TreeItem::valueProperty)); |
1,819,733 | public TreeMap<Long, Map<String, Set<UUID>>> toActivityDataMap(long date, long msThreshold) {<NEW_LINE>TreeMap<Long, Map<String, Set<UUID>>> <MASK><NEW_LINE>for (long time = date; time >= date - TimeAmount.MONTH.toMillis(2L); time -= TimeAmount.WEEK.toMillis(1L)) {<NEW_LINE>Map<String, Set<UUID>> map = activityData.com... | activityData = new TreeMap<>(); |
214,652 | public static ListAssistHistoriesResponse unmarshall(ListAssistHistoriesResponse listAssistHistoriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAssistHistoriesResponse.setRequestId(_ctx.stringValue("ListAssistHistoriesResponse.RequestId"));<NEW_LINE>listAssistHistoriesResponse.setPageIndex(_ctx.integerValue("Lis... | = new ArrayList<HistoriesItem>(); |
506,219 | public boolean insertTenantCapacity(final TenantCapacity tenantCapacity) {<NEW_LINE>final String sql = "INSERT INTO tenant_capacity (tenant_id, quota, `usage`, `max_size`, max_aggr_count, max_aggr_size, " + "gmt_create, gmt_modified) SELECT ?, ?, count(*), ?, ?, ?, ?, ? FROM config_info WHERE tenant_id=?;";<NEW_LINE>tr... | 3, tenantCapacity.getMaxSize()); |
1,521,288 | public PlanningStatistics unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PlanningStatistics planningStatistics = new PlanningStatistics();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | class).unmarshall(context)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.