idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,598,661 | private void importEPF(File file) {<NEW_LINE>try {<NEW_LINE>String name = file.getName().replaceFirst("[.][^.]+$", "");<NEW_LINE>IInputValidator nameValidator = JTPUtil.getPresetNameValidator();<NEW_LINE>String error = nameValidator.isValid(name);<NEW_LINE>if (error != null) {<NEW_LINE>String initialInput;<NEW_LINE>int... | .isValid(initialInput) != null); |
742,224 | public void checkForStalledTaskLaunches() {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>taskManager.getLaunchingTasks().stream().filter(t -> {<NEW_LINE>if (t.getStartedAt() < now - configuration.getReconcileLaunchAfterMillis()) {<NEW_LINE>Long maybeLastReconcileTime = requestedReconciles.get(t);<NEW_LINE>/... | LOG.warn("Could not find full content for task {}", taskId); |
612,341 | public void onClick(View view) {<NEW_LINE>switch(view.getId()) {<NEW_LINE>case R.id.newWriterFAB:<NEW_LINE>case R.id.writerLayout:<NEW_LINE>createNewFileInputDialog(getString(R.string.new_textdocument) + FileUtilities.DEFAULT_WRITER_EXTENSION, "application/vnd.oasis.opendocument.text", CREATE_DOCUMENT_REQUEST_CODE);<NE... | FileUtilities.DEFAULT_IMPRESS_EXTENSION, "application/vnd.oasis.opendocument.presentation", CREATE_PRESENTATION_REQUEST_CODE); |
1,753,768 | private <K, V, S> ConnectionFuture<S> connectStatefulAsync(StatefulRedisConnectionImpl<K, V> connection, Endpoint endpoint, RedisURI redisURI, Supplier<CommandHandler> commandHandlerSupplier) {<NEW_LINE>ConnectionBuilder connectionBuilder;<NEW_LINE>if (redisURI.isSsl()) {<NEW_LINE>SslConnectionBuilder sslConnectionBuil... | (commandHandlerSupplier).endpoint(endpoint); |
1,681,019 | private void createPickFromAlternative(@NonNull final PickFromAlternativeCreateRequest from) {<NEW_LINE>final I_M_Picking_Job_HUAlternative record = InterfaceWrapperHelper.newInstance(I_M_Picking_Job_HUAlternative.class);<NEW_LINE>record.setM_Picking_Job_ID(from.getPickingJobId().getRepoId());<NEW_LINE>record.setAD_Org... | getPickFromLocatorId().getRepoId()); |
266,706 | Object advise(ProceedingJoinPoint joinPoint, TccStart tccStart) throws Throwable {<NEW_LINE>initializeOmegaContext();<NEW_LINE>Method method = ((MethodSignature) joinPoint.getSignature()).getMethod();<NEW_LINE>tccStartAnnotationProcessor.preIntercept(context.globalTxId(), method.toString(), tccStart.timeout());<NEW_LIN... | "Transaction {} failed.", context.globalTxId()); |
183,200 | public final void deserializeProperties(List<NodeProperty> serializedNodeBooleanPropertyList) {<NEW_LINE>if (this.isRoot()) {<NEW_LINE>checkState(this.propListHead == null, this.propListHead);<NEW_LINE>} else {<NEW_LINE>checkState(this.propListHead.propType == Prop.SOURCE_FILE.ordinal(), this.propListHead);<NEW_LINE>}<... | ), newConstantVarFlags, this.propListHead); |
947,817 | void handlePatterns() {<NEW_LINE>// TODO handle the character which has special meanings in regexp<NEW_LINE>// init patterns<NEW_LINE>iHttps = 0;<NEW_LINE>iSubOidcOauth = 0;<NEW_LINE>iIndepends = 0;<NEW_LINE>handlePattern(authorizationFormTemplate);<NEW_LINE>handlePattern(authorizationErrorTemplate);<NEW_LINE>handlePat... | .append(subOidcOauth[iI]); |
1,186,989 | public static SystemTable<ShardSegment> create(Supplier<DiscoveryNode> localNode) {<NEW_LINE>return SystemTable.<ShardSegment>builder(IDENT).add("table_schema", STRING, r -> r.getIndexParts().getSchema()).add("table_name", STRING, r -> r.getIndexParts().getTable()).add("partition_ident", STRING, r -> r.getIndexParts().... | ())).build(); |
436,238 | final GetFieldLevelEncryptionResult executeGetFieldLevelEncryption(GetFieldLevelEncryptionRequest getFieldLevelEncryptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFieldLevelEncryptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | endClientExecution(awsRequestMetrics, request, response); |
54,392 | protected String buildSolrFacetQuery(String fieldName, SearchFacetRange range, Boolean addExParam, String param) {<NEW_LINE>Assert.notNull(fieldName, "FieldName cannot be null");<NEW_LINE>Assert.notNull(range, "Range cannot be null");<NEW_LINE>if (StringUtils.isBlank(param)) {<NEW_LINE>param = "key";<NEW_LINE>}<NEW_LIN... | ().toPlainString() : "*"; |
1,246,778 | protected void configureGeneratedSourcesAndJavadoc(Project project) {<NEW_LINE>_generateJavadocTask = project.getTasks().create("generateJavadoc", Javadoc.class);<NEW_LINE>if (_generateSourcesJarTask == null) {<NEW_LINE>//<NEW_LINE>// configuration for publishing jars containing sources for generated classes<NEW_LINE>/... | jarTask.setGroup(JavaBasePlugin.DOCUMENTATION_GROUP); |
1,168,212 | public void send(Event event, EntityRef target) {<NEW_LINE>try {<NEW_LINE>BlockComponent blockComp = target.getComponent(BlockComponent.class);<NEW_LINE>if (blockComp != null) {<NEW_LINE>if (relevantChunks.contains(Chunks.toChunkPos(blockComp.getPosition(), new Vector3i()))) {<NEW_LINE>queuedOutgoingEvents.add(NetData.... | logger.error("Failed to serialize event", e); |
574,425 | public static boolean evaluateAsBoolean(final Object condition) {<NEW_LINE>boolean result = true;<NEW_LINE>if (condition == null) {<NEW_LINE>result = false;<NEW_LINE>} else {<NEW_LINE>if (condition instanceof Boolean) {<NEW_LINE>result = ((Boolean) condition).booleanValue();<NEW_LINE>} else if (condition instanceof Num... | condition).doubleValue() != 0.0; |
1,473,852 | void parseStatusParameters() {<NEW_LINE>mStatusCode = mParameters[0];<NEW_LINE>mStatusCodeName = getStatusCodeName(mStatusCode);<NEW_LINE>final int dst = MeshParserUtils.unsignedBytesToInt(mParameters[1], mParameters[2]);<NEW_LINE>final int countLog = MeshParserUtils.unsignedByteToInt(mParameters[3]);<NEW_LINE>final in... | "Heartbeat publication: " + heartbeatPublication.toString()); |
674,775 | public static ListEventAlgorithmDetailsResponse unmarshall(ListEventAlgorithmDetailsResponse listEventAlgorithmDetailsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEventAlgorithmDetailsResponse.setRequestId<MASK><NEW_LINE>listEventAlgorithmDetailsResponse.setTotalCount(_ctx.integerValue("ListEventAlgorithmDetailsR... | (_ctx.stringValue("ListEventAlgorithmDetailsResponse.RequestId")); |
1,055,011 | public PackageObject unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PackageObject packageObject = new PackageObject();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | class).unmarshall(context)); |
1,409,542 | public static void main(String[] args) {<NEW_LINE>DetectSingleFiducialCalibration detector;<NEW_LINE>List<String> images;<NEW_LINE>// Regular Circle Example<NEW_LINE>// detector = FactoryFiducialCalibration.circleRegularGrid(null, new ConfigGridDimen(/*numRows*/ 8, /*numCols*/ 10, 1.5, 2.5));<NEW_LINE>// images = UtilI... | CalibrationIO.save(intrinsic, "intrinsic.yaml"); |
1,353,834 | public void write(final Writer writer, final SolrQueryRequest request, final SolrQueryResponse rsp) throws IOException {<NEW_LINE>final NamedList<?> values = rsp.getValues();<NEW_LINE>assert values.get("responseHeader") != null;<NEW_LINE>assert <MASK><NEW_LINE>writeHtmlHead(writer, request);<NEW_LINE>writer.write("<bod... | values.get("response") != null; |
1,535,090 | public Problem fastCheckParameters() {<NEW_LINE>String builderName = refactoring.getBuilderName();<NEW_LINE>String buildMethodName = refactoring.getBuildMethodName();<NEW_LINE>if (builderName == null || builderName.length() == 0) {<NEW_LINE>return new Problem(true, NbBundle.getMessage(ReplaceConstructorWithBuilderPlugi... | resource = classPath.findResource(name); |
972,800 | public void sendEventGridEvents() {<NEW_LINE>// BEGIN: com.azure.messaging.eventgrid.EventGridPublisherClient#CreateEventGridEventClient<NEW_LINE>// Create a client to send events of EventGridEvent schema<NEW_LINE>EventGridPublisherClient<EventGridEvent> eventGridEventPublisherClient = // make sure it accepts EventGrid... | .fromObject(user), "0.1"); |
1,550,172 | public UserEntity postGroupsGroupIdUsers(Integer groupId, GroupIdUsersBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'groupId' is set<NEW_LINE>if (groupId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'groupId' when c... | HashMap<String, String>(); |
1,338,045 | private ModelCreateResult createAndValidateModel(ModelFactory modelFactory, ApplicationId applicationId, Version modelVersion, ModelContext modelContext) {<NEW_LINE>log.log(properties.zone().system().isCd() ? Level.INFO : Level.FINE, () -> "Create and validate model " + modelVersion + " for " + applicationId + ", previ... | "Done building model " + modelVersion + " for " + applicationId); |
820,765 | private boolean findUsageInFile(@Nonnull FileEditor editor, @Nonnull FileSearchScope direction) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>if (myLastSearchInFileData == null)<NEW_LINE>return false;<NEW_LINE>PsiElement[] primaryElements = myLastSearchInFileData.getPrimaryElements()... | direction, myLastSearchInFileData.myOptions, textEditor); |
591,281 | private Map<String, float[]> deprecatedGetFeatureMap() {<NEW_LINE>status = Common.initSession(flParameter.getTrainModelPath());<NEW_LINE>if (status == FLClientStatus.FAILED) {<NEW_LINE>retCode = ResponseCode.RequestError;<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>Map<String, float[]> map = new ... | AlTrainBert alTrainBert = AlTrainBert.getInstance(); |
1,329,651 | String[] list(@Nonnull VirtualFile file) {<NEW_LINE>String path = file.getPath();<NEW_LINE>FileInfo[] fileInfo = myKernel.listChildren(path);<NEW_LINE>if (fileInfo == null || fileInfo.length == 0) {<NEW_LINE>return ArrayUtil.EMPTY_STRING_ARRAY;<NEW_LINE>}<NEW_LINE>String[] names = new String[fileInfo.length];<NEW_LINE>... | FileAttributes>> map = getMap(); |
1,674,607 | public List<PartitionInfo> filterOutInReassignmentUrps(List<PartitionInfo> urps, Map<String, Integer> replicationFactors) {<NEW_LINE>List<PartitionInfo> result = new ArrayList<>();<NEW_LINE>for (PartitionInfo urp : urps) {<NEW_LINE>if (urp.replicas().length <= replicationFactors.get(urp.topic())) {<NEW_LINE>// # of rep... | add(node.id()); |
1,378,488 | private HeapHisto collectYoung() throws InterruptedException {<NEW_LINE>// Force full GC<NEW_LINE>long ygc = 0;<NEW_LINE>LongCounter youngGcCnt = null;<NEW_LINE>try {<NEW_LINE>JStatData jsd = JStatData.connect(pid);<NEW_LINE>youngGcCnt = (LongCounter) jsd.getAllCounters().get("sun.gc.collector.0.invocations");<NEW_LINE... | System.out.println("Warning: one or more young collections have occured during sampling."); |
1,351,936 | private void doRegister(CreateTriggerPlan plan, IMeasurementMNode measurementMNode) throws TriggerManagementException, TriggerExecutionException {<NEW_LINE>TriggerRegistrationInformation information = new TriggerRegistrationInformation(plan);<NEW_LINE>TriggerClassLoader classLoader = TriggerClassLoaderManager.getInstan... | e.getMessage(), e); |
824,139 | public static List<RegressionExecution> executions() {<NEW_LINE>InputStream xmlStreamOne = EPLContainedEventExample.class.getClassLoader().getResourceAsStream("regression/mediaOrderOne.xml");<NEW_LINE>Document <MASK><NEW_LINE>InputStream xmlStreamTwo = EPLContainedEventExample.class.getClassLoader().getResourceAsStream... | eventDocOne = SupportXML.getDocument(xmlStreamOne); |
1,049,153 | public DataSet<Row> buildIndex(BatchOperator in, Params params) {<NEW_LINE>Preconditions.checkArgument(params.get(VectorApproxNearestNeighborTrainParams.METRIC).equals(VectorApproxNearestNeighborTrainParams.Metric.EUCLIDEAN), "KDTree solver only supports Euclidean distance!");<NEW_LINE>EuclideanDistance distance = new ... | toArray(new FastDistanceVectorData[0]); |
116,630 | public Result findPetsByTags(Http.Request request) throws Exception {<NEW_LINE>String[] tagsArray = request.queryString().get("tags");<NEW_LINE>if (tagsArray == null) {<NEW_LINE>throw new IllegalArgumentException("'tags' parameter is required");<NEW_LINE>}<NEW_LINE>List<String> tagsList = OpenAPIUtils.parametersToList(... | tags = new ArrayList<>(); |
728,854 | public List<EventBean> convert(Object invocationResult, MethodTargetStrategy origin, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>Collection collection = (Collection) invocationResult;<NEW_LINE>int length = collection.size();<NEW_LINE>if (length == 0) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_L... | event = getEventBean(value, exprEvaluatorContext); |
623,881 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>final Context ctx = getContext();<NEW_LINE>String text = null;<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>String folderPath = savedInstanceState.getString(NEW_PATH);<NEW_LINE>if (folderPath != null) {<NEW_LINE>currentPath = folderPath;<NEW_LINE>... | btnTitle = savedInstanceState.getString(BTN_TITLE); |
1,390,183 | private org.opendope.xpaths.Xpaths.Xpath createNewXPathObject(String newPath, org.opendope.xpaths.Xpaths.Xpath xpathObj, int index) {<NEW_LINE>// org.opendope.xpaths.Xpaths.Xpath newXPathObj = XmlUtils<NEW_LINE>// .deepCopy(xpathObj);<NEW_LINE>org.opendope.xpaths.Xpaths.Xpath newXPathObj = new org.opendope.xpaths.Xpath... | log.debug("New xpath entry overwrites existing identical xpath " + newXPathId); |
1,730,807 | public boolean visit(ConditionalExpression node) {<NEW_LINE>boolean chainsMatter = (this.options.alignment_for_conditional_expression_chain & Alignment.SPLIT_MASK) != Alignment.M_NO_ALIGNMENT;<NEW_LINE>boolean isNextInChain = node.getParent() instanceof ConditionalExpression && node == ((ConditionalExpression) node.get... | .getThenExpression(), TokenNameCOLON)); |
1,215,597 | @Produces(MediaType.APPLICATION_FORM_URLENCODED)<NEW_LINE>@TokenResource<NEW_LINE>public Response postAccessTokenRequest(@Context ContainerRequestContext requestContext, @Context Request req) {<NEW_LINE>boolean sigIsOk = false;<NEW_LINE>OAuthServerRequest request = new OAuthServerRequest(requestContext);<NEW_LINE>OAuth... | putAll(at.getAttributes()); |
950,071 | public void show() {<NEW_LINE>if (manager == null || styleResId == null) {<NEW_LINE>Log.e("NumberPickerBuilder", "setFragmentManager() and setStyleResId() must be called.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FragmentTransaction ft = manager.beginTransaction();<NEW_LINE>final Fragment <MASK><NEW_LINE>if (prev != null... | prev = manager.findFragmentByTag("number_dialog"); |
575,502 | protected Object onFilterDataList(DataList data, int start, int count, Object operation) {<NEW_LINE>if (operation == FilterConstants.NEGATIVE) {<NEW_LINE>data.clear();<NEW_LINE>} else {<NEW_LINE>if (count < data.size() - start) {<NEW_LINE>data.removeRange(start + count, data.size());<NEW_LINE>}<NEW_LINE>if (start > 0) ... | ).getName(), value); |
601,953 | private static String[] inferDestroyMethodsIfNecessary(Object bean, RootBeanDefinition beanDefinition) {<NEW_LINE>String[<MASK><NEW_LINE>if (destroyMethodNames != null && destroyMethodNames.length > 1) {<NEW_LINE>return destroyMethodNames;<NEW_LINE>}<NEW_LINE>String destroyMethodName = beanDefinition.resolvedDestroyMet... | ] destroyMethodNames = beanDefinition.getDestroyMethodNames(); |
881,587 | private static void readCommitted(final OptimisticTransactionDB txnDb, final WriteOptions writeOptions, final ReadOptions readOptions) throws RocksDBException {<NEW_LINE>final byte[] key1 = "abc".getBytes(UTF_8);<NEW_LINE>final byte[] value1 = "def".getBytes(UTF_8);<NEW_LINE>final byte[] key2 = "xyz".getBytes(UTF_8);<N... | put(writeOptions, key2, value2); |
1,003,522 | void preAllocateMountContent(boolean shouldPreallocatePerMountSpec) {<NEW_LINE>final boolean isTracing = ComponentsSystrace.isTracing();<NEW_LINE>if (isTracing) {<NEW_LINE>ComponentsSystrace.beginSection("preAllocateMountContent:" + mComponent.getSimpleName());<NEW_LINE>}<NEW_LINE>if (!mMountableOutputs.isEmpty()) {<NE... | output = LayoutOutput.getLayoutOutput(treeNode); |
439,222 | public void endTransfer() {<NEW_LINE>pgl.deleteSync(fences[tail]);<NEW_LINE>pgl.bindBuffer(PGL.PIXEL_PACK_BUFFER, pbos[tail]);<NEW_LINE>ByteBuffer readBuffer = pgl.mapBuffer(PGL.PIXEL_PACK_BUFFER, PGL.READ_ONLY);<NEW_LINE>if (readBuffer != null) {<NEW_LINE>int format = primaryGraphics ? OPENGL_NATIVE_OPAQUE : OPENGL_NA... | , heights[tail], format); |
1,569,729 | public void execute(Action<VagrantExecSpec> action) {<NEW_LINE>VagrantExecSpec vagrantSpec = new VagrantExecSpec();<NEW_LINE>action.execute(vagrantSpec);<NEW_LINE>Objects.requireNonNull(vagrantSpec.command);<NEW_LINE>LoggedExec.exec(project, execSpec -> {<NEW_LINE>execSpec.setExecutable("vagrant");<NEW_LINE>File vagran... | .asList(vagrantSpec.args)); |
1,179,798 | public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Rbac.ClusterRoleBindingList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Rbac.ClusterRoleBindingList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_... | this.mergeUnknownFields(other.unknownFields); |
1,843,158 | public void publish(Api api) throws PublishingException, GatewayAuthenticationException {<NEW_LINE>try {<NEW_LINE>URI uri = new URI(this.endpoint + APIs);<NEW_LINE><MASK><NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>put.setHeader("Content-Type", "application/json; charset=utf-8");<NEW_LINE>String jsonPayload = mapper... | HttpPut put = new HttpPut(uri); |
610,262 | public Void run() {<NEW_LINE>Class<?> cls = null;<NEW_LINE>String nm = System.getProperty("awt.toolkit");<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>ClassLoader cl = ClassLoader.getSystemClassLoader();<NEW_LINE>if (cl != null) {<NEW_LINE>try {<NEW_LINE>cls = cl.loadClass(nm);<... | cls = Class.forName(nm); |
1,582,203 | public static <T> T asType(Mat mat, Class<T> cls) {<NEW_LINE>if (Mat.class.isAssignableFrom(cls))<NEW_LINE>return (T) mat;<NEW_LINE>if (BufferedImage.class.isAssignableFrom(cls))<NEW_LINE>return (T) OpenCVTools.matToBufferedImage(mat);<NEW_LINE>if (ImageProcessor.class.isAssignableFrom(cls)) {<NEW_LINE>if (mat.channels... | OpenCVTools.matToImagePlus(mat, null); |
1,749,312 | private void initComponentTabChangeListener() {<NEW_LINE>// init component SelectedTabChangeListener only when needed, making sure it is<NEW_LINE>// after all lazy tabs listeners<NEW_LINE>if (!componentTabChangeListenerInitialized) {<NEW_LINE>component.addSelectedTabChangeListener(event -> {<NEW_LINE>if (context instan... | getFrameOwner()).getDsContext(); |
945,957 | public static TimeInterpolator parse(JSONObject json) {<NEW_LINE>JSONObject interpolation = json.optJSONObject("interpolation");<NEW_LINE>String type = interpolation == null ? "linear" : interpolation.optString("type", "linear");<NEW_LINE>switch(type) {<NEW_LINE>case "decelerate":<NEW_LINE>{<NEW_LINE>float factor = (fl... | new OvershootInterpolator((float) tension); |
1,854,343 | public PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE>ArgChecker.notNull(yValues, "yValues");<NEW_LINE>ArgChecker.isTrue(xValues.length == yValues.length | xValues.length + 2 == yValues.length, "(xValues length = yValues ... | Arrays.copyOf(xValues, nDataPts); |
1,401,820 | public static String relativePathOf(File target, File base) {<NEW_LINE><MASK><NEW_LINE>List<String> basePath = splitAbsolutePathOf(base, separatorChars);<NEW_LINE>List<String> targetPath = new ArrayList<String>(splitAbsolutePathOf(target, separatorChars));<NEW_LINE>// Find and remove common prefix<NEW_LINE>int maxDepth... | String separatorChars = "/" + File.separator; |
588,567 | private static void initKnownStyles() {<NEW_LINE>// Throwable t = new Throwable();<NEW_LINE>// t.printStackTrace();<NEW_LINE>java.io.InputStream is = null;<NEW_LINE>try {<NEW_LINE>is = ResourceUtils.getResourceViaProperty("docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart.KnownStyles", "org/docx4j/openpa... | Styles) u.unmarshal(is); |
1,771,002 | public UpdateProjectResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateProjectResult updateProjectResult = new UpdateProjectResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | int originalDepth = context.getCurrentDepth(); |
337,926 | private final String buildSQL(StringBuffer selectClause, boolean useOrderByClause) {<NEW_LINE>if (selectClause == null) {<NEW_LINE>POInfo info = POInfo.getPOInfo(this.ctx, table.getAD_Table_ID(), trxName);<NEW_LINE>if (info == null) {<NEW_LINE>throw new IllegalStateException("No POInfo found for AD_Table_ID=" + table.g... | getDefault(this.ctx, false); |
278,038 | /*<NEW_LINE>* assigns author-related info to the passed post from the passed JSON "author" object<NEW_LINE>*/<NEW_LINE>private static void assignAuthorFromJson(ReaderPost post, JSONObject jsonAuthor) {<NEW_LINE>if (jsonAuthor == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>post.mAuthorName = <MASK><NEW_LINE>post.mAutho... | JSONUtils.getStringDecoded(jsonAuthor, "name"); |
732,142 | private void processClass(ClassNode cls) {<NEW_LINE>if (isR(cls.getParentClass())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ClassInfo clsInfo = cls.getClassInfo();<NEW_LINE>DeobfClsInfo <MASK><NEW_LINE>if (deobfClsInfo != null) {<NEW_LINE>clsInfo.changeShortName(deobfClsInfo.getAlias());<NEW_LINE>PackageNode pkgNode = de... | deobfClsInfo = clsMap.get(clsInfo); |
946,839 | public Object initContext() {<NEW_LINE>List<String> sessionUrls;<NEW_LINE>boolean isNewSession = false;<NEW_LINE>SessionUrlsHolder sessionUrlsHolder = getSessionUrlsHolder();<NEW_LINE>if (sessionUrlsHolder == null) {<NEW_LINE>sessionUrls = sortUrls();<NEW_LINE>lastNoSessionUrls.set(sessionUrls);<NEW_LINE>} else {<NEW_L... | ctx.urls.addAll(sessionUrls); |
701,925 | private long[] mergeLongValue(String to, String from) {<NEW_LINE>try {<NEW_LINE>long[] result = new long[0];<NEW_LINE>long[] source = new long[0];<NEW_LINE>if (StringUtils.isNotEmpty(from)) {<NEW_LINE>source = strToLongValue(StringUtils.split(from, GraphTrendUtil.GRAPH_CHAR_SPLITTER));<NEW_LINE>}<NEW_LINE>if (StringUti... | = new long[source.length]; |
1,433,071 | private void registerAllAssignableTypesOf(NativeConfigurationRegistry registry, Class<?> anyClass) {<NEW_LINE>ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);<NEW_LINE>provider.<MASK><NEW_LINE>Set<BeanDefinition> candidateComponents = provider.findCandidateC... | addIncludeFilter(new AssignableTypeFilter(anyClass)); |
112,459 | public void load(ByteProvider provider, LoadSpec loadSpec, List<Option> options, Program program, TaskMonitor monitor, MessageLog log) throws IOException {<NEW_LINE>try {<NEW_LINE>FileBytes fileBytes = MemoryBlockUtils.createFileBytes(program, provider, monitor);<NEW_LINE>if (MachoPrelinkUtils.hasChainedLoadCommand(pro... | (options), log, monitor); |
1,528,982 | public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>PathConstraint constraint = skeleton.pathConstraints.get(pathConstraintIndex);<NEW_LINE>if (!constraint.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.fram... | x - data.mixX) * alpha; |
468,000 | public XmlValue slice(long startIndex, long endIndex) {<NEW_LINE>if (startIndex > this.children.size() || endIndex > this.children.size() || startIndex < -1 || endIndex < -1) {<NEW_LINE>throw ErrorCreator.createError(StringUtils.fromString(("index out of range: [" + startIndex + "," + endIndex + "]")));<NEW_LINE>}<NEW_... | , children.get(i)); |
434,266 | public Role createRole(GuildImpl guild, DataObject roleJson, long guildId) {<NEW_LINE>boolean playbackCache = false;<NEW_LINE>final long id = roleJson.getLong("id");<NEW_LINE>if (guild == null)<NEW_LINE>guild = (GuildImpl) getJDA().getGuildsView().get(guildId);<NEW_LINE>RoleImpl role = (RoleImpl) guild.getRolesView().g... | (iconId, emoji, id)); |
817,731 | private void extractParamNamesWithIndexes() {<NEW_LINE>List<String> nameList = new ArrayList<String>();<NEW_LINE>List<Integer> idxList = new ArrayList<Integer>();<NEW_LINE>Annotation[][] params = method.getParameterAnnotations();<NEW_LINE>for (int i = 0; i < params.length; i++) {<NEW_LINE>for (Annotation a : params[i])... | Var) a).value(); |
1,749,965 | public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>Long id = handler.getLong("id");<NEW_LINE>SysSite site = getSite(handler);<NEW_LINE>if (CommonUtils.notEmpty(id)) {<NEW_LINE>TradeOrderHistory entity = service.getEntity(id);<NEW_LINE>if (null != entity && site.getId() == entity.getSite... | "map", map).render(); |
263,321 | public MergeResultMessage convert2Model(MergedResultMessageProto mergedResultMessageProto) {<NEW_LINE>MergeResultMessage result = new MergeResultMessage();<NEW_LINE>List<Any> anys = mergedResultMessageProto.getMsgsList();<NEW_LINE>List<AbstractResultMessage> temp = new ArrayList<>();<NEW_LINE>for (Any any : anys) {<NEW... | (any.getTypeUrl())); |
1,764,338 | public void runRat() {<NEW_LINE>ReportConfiguration reportConfiguration = new ReportConfiguration();<NEW_LINE>reportConfiguration.setAddingLicenses(true);<NEW_LINE>List<IHeaderMatcher> matchers = new ArrayList<>();<NEW_LINE>matchers.add(Defaults.createDefaultMatcher());<NEW_LINE>// BSD 4-clause stuff (is disallowed bel... | = stats.getNumUnApproved() > 0; |
761,536 | protected void writeLine() throws IOException {<NEW_LINE>switch(getMessageState()) {<NEW_LINE>case START:<NEW_LINE>if (getHelper().getLogger().isLoggable(Level.FINE)) {<NEW_LINE>getHelper().getLogger().log(Level.FINE, "Writing message to " + getConnection().getSocketAddress());<NEW_LINE>}<NEW_LINE>writeStartLine();<NEW... | append(header.getName()); |
473,553 | public IRubyObject in_context(ThreadContext context, IRubyObject str, IRubyObject options) {<NEW_LINE>RubyClass klass;<NEW_LINE>XmlDomParserContext ctx;<NEW_LINE>InputStream istream;<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>XmlDocument document = document(runtime);<NEW_LINE>if (document == null) {<NEW_LI... | ?> documentErrors = getErrors(document); |
627,017 | private void scriptComplete(PlannedPlacement plannedPlacement, Location placementLocation) throws JobProcessorException {<NEW_LINE>final Nozzle nozzle = plannedPlacement.nozzle;<NEW_LINE>final JobPlacement jobPlacement = plannedPlacement.jobPlacement;<NEW_LINE>final Placement placement = jobPlacement.getPlacement();<NE... | params.put("placementLocation", placementLocationPart); |
1,160,643 | public void end() throws IOException {<NEW_LINE>try {<NEW_LINE>// errors<NEW_LINE>for (Report.ProcessingError pe : errors) {<NEW_LINE>writeNewLine();<NEW_LINE>xmlWriter.writeStartElement("error");<NEW_LINE>xmlWriter.writeAttribute("filename", determineFileName(pe.getFile()));<NEW_LINE>xmlWriter.writeAttribute("msg", pe... | ().getFilename())); |
782,457 | public void refresh(TableCell cell) {<NEW_LINE>String sText = "";<NEW_LINE>DownloadManager dm = (DownloadManager) cell.getDataSource();<NEW_LINE>if (dm == null)<NEW_LINE>return;<NEW_LINE>PEPeerManager pm = dm.getPeerManager();<NEW_LINE>if (pm != null) {<NEW_LINE>float f = pm.getAvgAvail();<NEW_LINE>if (!cell.setSortVal... | int) (f * iTimesBy)); |
549,101 | public static <T extends @Nullable Object> ImmutableList<ListenableFuture<T>> inCompletionOrder(Iterable<? extends ListenableFuture<? extends T>> futures) {<NEW_LINE>ListenableFuture<? extends T>[] copy = gwtCompatibleToArray(futures);<NEW_LINE>final InCompletionOrderState<T> state = new InCompletionOrderState<>(copy);... | state.recordInputCompletion(delegates, localI); |
1,768,563 | private void statInit() throws Exception {<NEW_LINE>final int p_WindowNo = getWindowNo();<NEW_LINE>lDocumentNo.setLabelFor(fDocumentNo);<NEW_LINE>fDocumentNo.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fDocumentNo.addActionListener(this);<NEW_LINE>lDescription.setLabelFor(fDescription);<NEW_LINE>fDescrip... | parameterPanel.add(lAmtFrom, null); |
595,464 | private void computeCellInfos(XWPFTableRow row) {<NEW_LINE>if (nbColumns == null) {<NEW_LINE>nbColumns = XWPFTableUtil.computeColWidths(row.getTable()).length;<NEW_LINE>}<NEW_LINE>int rowIndex = table.getRows().indexOf(row);<NEW_LINE>boolean firstRow = rowIndex == 0;<NEW_LINE>boolean lastRow = rowIndex == (table.getRow... | CTRow ctRow = row.getCtRow(); |
756,852 | protected void done() {<NEW_LINE>try {<NEW_LINE>Object result = get();<NEW_LINE>// sends result notification to upper level if<NEW_LINE>// there is a return value<NEW_LINE>if (entryIf.getReturnType() != null && !entryIf.getReturnType().equals(Void.TYPE.getName()) && !entryIf.getReturnType().equals(Void.class.getName())... | JOptionPane.INFORMATION_MESSAGE).run(); |
1,634,753 | public static ListQualityRulesResponse unmarshall(ListQualityRulesResponse listQualityRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQualityRulesResponse.setRequestId(_ctx.stringValue("ListQualityRulesResponse.RequestId"));<NEW_LINE>listQualityRulesResponse.setHttpStatusCode(_ctx.integerValue("ListQualityRules... | ("ListQualityRulesResponse.Data.Rules[" + i + "].ExpectValue")); |
1,830,977 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>textLabel = new javax.swing.JLabel();<NEW_LINE>notAskAgain = new javax.swing.JCheckBox();<NEW_LINE>// NOI18N<NEW_LINE>textLabel.setText(org.openide.util.NbBundle.getMessage(Confirm... | (ConfirmationPanel.class, "ConfirmationPanel.dontAskAgain.text")); |
1,394,331 | private void renderExecutors() {<NEW_LINE>sb.append("executor.q.async.size=").append(executorAsyncQueueSize.read()).append(", ");<NEW_LINE>sb.append("executor.q.client.size=").append(executorClientQueueSize.read<MASK><NEW_LINE>sb.append("executor.q.client.query.size=").append(executorQueryClientQueueSize.read()).append... | ()).append(", "); |
242,814 | public static void main(String[] args) throws Exception {<NEW_LINE>dataLocalPath = DownloaderUtility.MODELIMPORT.Download();<NEW_LINE>final String SIMPLE_MLP = new File(dataLocalPath, "keras/simple_mlp.h5").getAbsolutePath();<NEW_LINE>// Keras Sequential models correspond to DL4J MultiLayerNetworks. We enforce loading ... | second = model.getLayer(1); |
814,512 | public void releaseId(long stableGeneration, long unstableGeneration, long id, CursorContext cursorContext) throws IOException {<NEW_LINE>try (PageCursor cursor = pagedFile.io(writePageId, PagedFile.PF_SHARED_WRITE_LOCK, cursorContext)) {<NEW_LINE>PageCursorUtil.<MASK><NEW_LINE>freelistNode.write(cursor, unstableGenera... | goTo(cursor, "free-list write page", writePageId); |
1,041,012 | private void testHashSTint() {<NEW_LINE>StdOut.println("HashSTint test");<NEW_LINE>HashSTint hashSTint = new HashSTint(5);<NEW_LINE>hashSTint.put(5, 5);<NEW_LINE>hashSTint.put(1, 1);<NEW_LINE>hashSTint.put(9, 9);<NEW_LINE>hashSTint.put(2, 2);<NEW_LINE>hashSTint.put(0, 0);<NEW_LINE>hashSTint.put(99, 99);<NEW_LINE>hashST... | + hashSTint.get(key)); |
1,496,804 | protected String doIt() throws Exception {<NEW_LINE>final String tableName = getTableName();<NEW_LINE>final I_R_Request request;<NEW_LINE>if (I_C_BPartner.Table_Name.equals(tableName)) {<NEW_LINE>final I_C_BPartner bPartner = bPartnerDAO.getById(getProcessInfo().getRecord_ID());<NEW_LINE>request = createRequestFromBPar... | ().getRecord_ID())); |
1,145,994 | protected void onDone(MIRecord record) {<NEW_LINE>MITList results = record.results();<NEW_LINE>String varName = results.valueOf("name").asConst().value();<NEW_LINE>MIValue <MASK><NEW_LINE>String type = typeValue != null ? typeValue.asConst().value() : null;<NEW_LINE>MIValue resultValue = results.valueOf("value");<NEW_L... | typeValue = results.valueOf("type"); |
579,254 | void refresh() {<NEW_LINE>BrandingModel branding = getBranding();<NEW_LINE>cbEnableDnd.setSelected(SplashUISupport.bundleKeyToBoolean(branding.getWsEnableDragAndDrop()));<NEW_LINE>cbEnableEditorClosing.setSelected(SplashUISupport.bundleKeyToBoolean(branding.getWsEnableClosingEditors()));<NEW_LINE>cbEnableFloating.setSe... | (branding.getWsEnableSliding())); |
1,546,914 | private TypeCompareEnum compareTypeVariables(ArgType first, ArgType second) {<NEW_LINE>if (first.getObject().equals(second.getObject())) {<NEW_LINE>List<ArgType> firstExtendTypes = removeObject(first.getExtendTypes());<NEW_LINE>List<ArgType> secondExtendTypes = <MASK><NEW_LINE>if (firstExtendTypes.equals(secondExtendTy... | removeObject(second.getExtendTypes()); |
689,116 | public void marshall(FraudsterRegistrationJob fraudsterRegistrationJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fraudsterRegistrationJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fraudsterReg... | fraudsterRegistrationJob.getJobId(), JOBID_BINDING); |
9,620 | private Mono<PagedResponse<ConfigurationProfileAssignmentInner>> listByResourceGroupSinglePageAsync(String resourceGroupName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NE... | )).readOnly())); |
1,197,713 | public static void fill(Pointer to, UnsignedWord size, byte value) {<NEW_LINE>long v = value & 0xffL;<NEW_LINE>v = (v << 8) | v;<NEW_LINE>v <MASK><NEW_LINE>v = (v << 32) | v;<NEW_LINE>UnsignedWord alignMask = WordFactory.unsigned(0x7);<NEW_LINE>UnsignedWord lowerSize = WordFactory.unsigned(0x8).subtract(to).and(alignMa... | = (v << 16) | v; |
1,779,192 | final GetSavingsPlansCoverageResult executeGetSavingsPlansCoverage(GetSavingsPlansCoverageRequest getSavingsPlansCoverageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSavingsPlansCoverageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,626,567 | public synchronized void reload(DeploymentContext context, ProgressTracker tracker) throws Exception {<NEW_LINE>Logger logger = context.getLogger();<NEW_LINE>ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>StructuredDeploymentTracing tracing = StructuredDeploymentTracing.load(c... | getClass() + " start method", e); |
801,048 | public SSEDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SSEDescription sSEDescription = new SSEDescription();<NEW_LINE>reader.beg... | ().unmarshall(context)); |
922,524 | public OResult next() {<NEW_LINE>OResult result = lastFetched.next();<NEW_LINE>long begin = profilingEnabled ? System.nanoTime() : 0;<NEW_LINE>try {<NEW_LINE>if (result instanceof OUpdatableResult) {<NEW_LINE>OResultInternal prevValue = new OResultInternal();<NEW_LINE>ORecord rec = result.getElement().get().getRecord()... | System.nanoTime() - begin); |
367,720 | public UserStackAssociationError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UserStackAssociationError userStackAssociationError = new UserStackAssociationError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | class).unmarshall(context)); |
736,771 | protected JRSubreportRunResult waitResult() {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Fill " + subreportFiller.fillerId + ": waiting for fill result");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// waiting for the subreport fill thread to fill the current page<NEW_LINE>// FIXME maybe this is useless since you ... | "Fill " + subreportFiller.fillerId + ": notified of fill result"); |
371,354 | protected void publishEvent(final EventType eventType, final HashMap<String, Object> eventDetailsMap) {<NEW_LINE>final String topic = this.properties.getTopicARN();<NEW_LINE>if (StringUtils.isBlank(topic)) {<NEW_LINE>// Likely a misconfiguration. Emit a warning.<NEW_LINE>log.warn("SNS Notifications enabled, but no topi... | newHashSet(eventType.getTypeTag()); |
203,328 | public Subscription createFromURI(String uri) throws SubscriptionException {<NEW_LINE>final <MASK><NEW_LINE>final Object[] result = { null };<NEW_LINE>byte[] sid = null;<NEW_LINE>int version = -1;<NEW_LINE>boolean is_anon = false;<NEW_LINE>int pos = uri.indexOf('?');<NEW_LINE>String[] bits = uri.substring(pos + 1).spli... | AESemaphore sem = new AESemaphore("subswait"); |
1,529,662 | private void validate(APIAddIpRangeByNetworkCidrMsg msg) {<NEW_LINE>try {<NEW_LINE>SubnetUtils utils = new SubnetUtils(msg.getNetworkCidr());<NEW_LINE>utils.setInclusiveHostCount(false);<NEW_LINE><MASK><NEW_LINE>if (subnet.getAddressCount() == 0) {<NEW_LINE>throw new ApiMessageInterceptionException(argerr("%s is not an... | SubnetInfo subnet = utils.getInfo(); |
333,098 | public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>if (methodName != null && className != null) {<NEW_LINE>throw new MojoFailureException("Cannot specify both class and method name");<NEW_LINE>}<NEW_LINE>String clazz = className;<NEW_LINE>String method = "<init>";<NEW_LINE>if (methodNa... | ] files = reportsDir.listFiles(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.