idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
978,556 | public static boolean extract(IPath destination) {<NEW_LINE>IPath zipExecutable = getBundlePath(ZIP_EXECUTABLE);<NEW_LINE>IPath archivePath = getBundlePath(ARCHIVE_PATH);<NEW_LINE>if (zipExecutable == null || archivePath == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>PortableGitPlugin.log("Something is missing here.");<NE... | (process.getInputStream())); |
1,692,722 | public void process(T image, GrayF32 intensity) {<NEW_LINE>candidatesLow.configure(image.width, image.height);<NEW_LINE>candidatesHigh.configure(image.width, image.height);<NEW_LINE>this.image = image;<NEW_LINE>if (stride != image.stride) {<NEW_LINE>stride = image.stride;<NEW_LINE>offsets = DiscretizedCircle.imageOffse... | + y * image.stride + radius; |
1,221,299 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.... | effectivePerson, query.getName()); |
586,579 | public UsageDataSourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UsageDataSourceResult usageDataSourceResult = new UsageDataSourceResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
1,287,412 | static RenderInfo onRender(ComponentContext c, @FromEvent int index, @FromEvent Data model) {<NEW_LINE>final int numDemos = 5;<NEW_LINE>Component component;<NEW_LINE>// Keep alternating between demos<NEW_LINE>switch(index % numDemos) {<NEW_LINE>case 0:<NEW_LINE>component = StoryFooterComponent.create(c).<MASK><NEW_LINE... | key("footer").build(); |
513,420 | public void onStartup(Set<Class<?>> set, ServletContext ctx) throws ServletException {<NEW_LINE>MetricsServiceConfiguration configuration = Globals.getDefaultBaseServiceLocator().getService(MetricsServiceConfiguration.class);<NEW_LINE>if (!"".equals(ctx.getContextPath())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check... | addServlet("microprofile-metrics-resource-insecure", MetricsResource.class); |
766,710 | public static QueryOrderLogisticsResponse unmarshall(QueryOrderLogisticsResponse queryOrderLogisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOrderLogisticsResponse.setRequestId(_ctx.stringValue("QueryOrderLogisticsResponse.RequestId"));<NEW_LINE>queryOrderLogisticsResponse.setCode(_ctx.stringValue("QueryOrde... | (_ctx.stringValue("QueryOrderLogisticsResponse.OrderLogistics.Receiver.PhoneNumber")); |
936,545 | protected void dynInit() throws Exception {<NEW_LINE>// Budget<NEW_LINE>MLookup lookupBud = MLookupFactory.get(Env.getCtx(), form.getWindowNo(), col_GL_Budget_ID, DisplayType.TableDir, Env.getLanguage(Env.getCtx()), <MASK><NEW_LINE>fieldBudget = new WTableDirEditor("GL_Budget_ID", false, false, true, lookupBud);<NEW_LI... | "GL_Budget_ID", 0, false, null); |
280,810 | private void registerSagaBeanDefinitions(EventProcessingConfigurer configurer) {<NEW_LINE>String[] sagas = beanFactory.getBeanNamesForAnnotation(Saga.class);<NEW_LINE>for (String saga : sagas) {<NEW_LINE>Saga sagaAnnotation = beanFactory.findAnnotationOnBean(saga, Saga.class);<NEW_LINE>Class<?> <MASK><NEW_LINE>Processi... | sagaType = beanFactory.getType(saga); |
1,018,479 | public void preFillOperations(QualityControl qualityControl, QualityProcess process) throws AxelorException {<NEW_LINE>List<ControlPointModel> controlPointModelList = process.getControlPointModelList();<NEW_LINE>List<ControlPointModel> optionalControlPointModelList = process.getOptionalControlPointModelList();<NEW_LINE... | .getControlPointList().clear(); |
1,332,048 | private static void createIndex(RestHighLevelClient client, CreateIndexRequest createIndexRequest, int retry) {<NEW_LINE>sleep(retry * 500L);<NEW_LINE>try {<NEW_LINE>waitForHealthyCluster(client);<NEW_LINE>client.indices().create(createIndexRequest, RequestOptions.DEFAULT);<NEW_LINE>waitForHealthyCluster(client);<NEW_L... | client, createIndexRequest, retry + 1); |
549,114 | private final void grow(final int newLength) {<NEW_LINE>try {<NEW_LINE>final long[] oldKeys = this.keys;<NEW_LINE>final long[] oldElems = this.elems;<NEW_LINE>this.keys = new long[newLength];<NEW_LINE>this.elems = new long[newLength];<NEW_LINE>for (int i = 0; i < newLength; i++) {<NEW_LINE>this.elems[i] = -1;<NEW_LINE>... | printError(EC.SYSTEM_OUT_OF_MEMORY, t); |
870,935 | final CreateInterconnectResult executeCreateInterconnect(CreateInterconnectRequest createInterconnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInterconnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,698,620 | public InstanceCredentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceCredentials instanceCredentials = new InstanceCredentials();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | int originalDepth = context.getCurrentDepth(); |
251,302 | public boolean isPkgCleanUpOnTaskRemovalEnabled(java.lang.String pkgName) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>boolean _result;<NEW_LINE>try {<NEW_LINE>_data.writeInterfaceToken(DESCRIP... | 0 != _reply.readInt()); |
783,190 | private boolean handleMenuRenameBook(String bookName, final String bookUID) {<NEW_LINE>AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity());<NEW_LINE>dialogBuilder.setTitle(R.string.title_rename_book).setView(R.layout.dialog_rename_book).setPositiveButton(R.string.btn_rename, new DialogInterface.O... | findViewById(R.id.input_book_title); |
1,274,511 | public static CodegenMethod codegenExpression(ExprForge forge, CodegenMethod parent, CodegenClassScope classScope) {<NEW_LINE>EPType evaluationType = forge.getEvaluationType();<NEW_LINE>EPTypeClass methodReturnType = EPTypePremade.OBJECT.getEPType();<NEW_LINE>if (evaluationType instanceof EPTypeClass) {<NEW_LINE>method... | ).addParam(ExprForgeCodegenNames.PARAMS); |
942,667 | private void solveColorMixing(final TimeStep step) {<NEW_LINE>// mixes color between contacting particles<NEW_LINE>m_colorBuffer.data = requestParticleBuffer(ParticleColor.class, m_colorBuffer.data);<NEW_LINE>int colorMixing256 = <MASK><NEW_LINE>for (int k = 0; k < m_contactCount; k++) {<NEW_LINE>final ParticleContact ... | (int) (256 * m_colorMixingStrength); |
1,392,048 | public CompletableFuture<Boolean> prepare(TransactionLog<SetUpdate<String>> transactionLog) {<NEW_LINE>Map<PartitionId, List<SetUpdate<String>>> updatesGroupedBySet = Maps.newIdentityHashMap();<NEW_LINE>transactionLog.records().forEach(update -> {<NEW_LINE>updatesGroupedBySet.computeIfAbsent(getProxyClient().getPartiti... | ()).add(update); |
16,284 | public StaticRouteResponse createStaticRouteResponse(StaticRoute result) {<NEW_LINE>StaticRouteResponse response = new StaticRouteResponse();<NEW_LINE>response.setId(result.getUuid());<NEW_LINE>if (result.getVpcId() != null) {<NEW_LINE>Vpc vpc = ApiDBUtils.findVpcById(result.getVpcId());<NEW_LINE>if (vpc != null) {<NEW... | = new ArrayList<ResourceTagResponse>(); |
1,237,063 | static <S, T, A, B> Lens<S, T, A, B> lens(Fn1<? super S, ? extends A> getter, Fn2<? super S, ? super B, ? extends T> setter) {<NEW_LINE>return lens(Optic.<Cartesian<?, ?, ?>, Functor<?, ?>, S, T, A, B, Functor<B, ? extends Functor<?, ?>>, Functor<T, ? extends Functor<?, ?>>, Cartesian<A, Functor<B, ? extends Functor<?,... | (s)))))); |
1,587,077 | private void saveAllEntities() {<NEW_LINE>// use ImmutableObject instead of Registry so that the Key generation doesn't break<NEW_LINE>ImmutableList<Registry> registries = ImmutableList.of(sunriseTld, gaTld, eapTld);<NEW_LINE>ImmutableList<RegistrarContact> contacts = contactsBuilder.build();<NEW_LINE>tm().transact(() ... | ).collect(toImmutableList()); |
38,424 | public Request<ListRetirableGrantsRequest> marshall(ListRetirableGrantsRequest listRetirableGrantsRequest) {<NEW_LINE>if (listRetirableGrantsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListRetirableGrantsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListRetirableGrantsRequ... | String snippet = stringWriter.toString(); |
53,332 | public void encode(Object object, Type bodyType, RequestTemplate template) throws EncodeException {<NEW_LINE>if (supports(object)) {<NEW_LINE>if (object instanceof Pageable) {<NEW_LINE>Pageable pageable = (Pageable) object;<NEW_LINE>if (pageable.isPaged()) {<NEW_LINE>template.query(pageParameter, String.valueOf(pageabl... | encode(object, bodyType, template); |
293,177 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000004) == 0x00000004)) {<NEW_LINE>output.wri... | writeMessage(4, getVerbs()); |
697,849 | final CreateUpdatedWorkspaceImageResult executeCreateUpdatedWorkspaceImage(CreateUpdatedWorkspaceImageRequest createUpdatedWorkspaceImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createUpdatedWorkspaceImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | (super.beforeMarshalling(createUpdatedWorkspaceImageRequest)); |
1,286,242 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerCo... | ExceptionModifyMerged(workCompleted.getId()); |
1,042,652 | protected void onPostExecute(@Nullable final Slide slide) {<NEW_LINE>if (slide == null) {<NEW_LINE>attachmentViewStub.get().setVisibility(View.GONE);<NEW_LINE>Toast.makeText(context, R.string.ConversationActivity_sorry_there_was_an_error_setting_your_attachment, Toast.LENGTH_SHORT).show();<NEW_LINE>result.set(false);<N... | ).setVisibility(View.VISIBLE); |
1,320,980 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String imei = parser.next();<NEW_LINE>DeviceSession deviceSession = getDeviceSessio... | ().equals("F")); |
1,182,704 | public void powerOnSelfTest() throws Error {<NEW_LINE>try {<NEW_LINE>Collection myVoices = Voice.getAvailableVoices(this);<NEW_LINE>if (myVoices.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UnitSelectionVoice unitSelVoice = (UnitSelectionVoice) myVoices.iterator().next();<NEW_LINE>assert unitSelVoice != null;<NE... | MaryXML.BOUNDARY }), false); |
217,458 | private void update(OracleConnection connection) {<NEW_LINE>try (OraclePreparedStatement pstmt = (OraclePreparedStatement) connection.prepareStatement(SQL_UPDATE)) {<NEW_LINE>Employee employee = getEmployeeFromConsole();<NEW_LINE>if (employee == null) {<NEW_LINE>showError("Unable to get employee details.");<NEW_LINE>re... | int numberOfRecordUpdated = pstmt.executeUpdate(); |
432,759 | private boolean checkTypeArgument(Scanner scanner) {<NEW_LINE>int depth = 1;<NEW_LINE>int token;<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>do {<NEW_LINE>try {<NEW_LINE>token = scanner.getNextToken();<NEW_LINE>} catch (InvalidInputException e) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>switch(token... | ] typeRef = new char[length]; |
1,548,617 | final GetServiceQuotaResult executeGetServiceQuota(GetServiceQuotaRequest getServiceQuotaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceQuotaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetServiceQuota"); |
1,301,196 | private void methods(final Element element, ParserContext parserContext, final Map<String, Object> gatewayAttributes) {<NEW_LINE>List<Element> methodElements = DomUtils.getChildElementsByTagName(element, "method");<NEW_LINE>if (!CollectionUtils.isEmpty(methodElements)) {<NEW_LINE>Map<String, BeanDefinition> methodMetad... | , methodElement.getAttribute("request-channel")); |
1,380,496 | private ContentValues convertToContentValues(final YouTubeVideo video, String channelId) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(SubscriptionsVideosTable.COL_CHANNEL_ID_V2.name, channelId != null ? channelId : video.getChannelId());<NEW_LINE>values.put(SubscriptionsVideosTable.COL_CHA... | name, video.getPublishTimestampExact()); |
554,863 | private void addValueBlockAndStoreValue(long offset, long valueBlockOffset, long valueCount, long value) {<NEW_LINE>long newValueBlockOffset = allocateValueBlockAndStore(value);<NEW_LINE>// update block linkage before we increase count<NEW_LINE>// this is important to index readers, which will act on value count they r... | offset + BitmapIndexUtils.KEY_ENTRY_OFFSET_LAST_VALUE_BLOCK_OFFSET, newValueBlockOffset); |
1,817,582 | public void restartRunProfile(@Nonnull final ExecutionEnvironment environment) {<NEW_LINE>RunnerAndConfigurationSettings configuration = environment.getRunnerAndConfigurationSettings();<NEW_LINE>List<RunContentDescriptor> runningIncompatible;<NEW_LINE>if (configuration == null) {<NEW_LINE>runningIncompatible = Collecti... | RunContentDescriptor contentToReuse = environment.getContentToReuse(); |
1,300,085 | private KVMPhysicalDisk createPhysicalDiskByLibVirt(String name, KVMStoragePool pool, PhysicalDiskFormat format, Storage.ProvisioningType provisioningType, long size) {<NEW_LINE>LibvirtStoragePool libvirtPool = (LibvirtStoragePool) pool;<NEW_LINE>StoragePool virtPool = libvirtPool.getPool();<NEW_LINE>LibvirtStorageVolu... | volDef.toString(), 0); |
603,092 | Options parse(OptionSet options) {<NEW_LINE>addOptions(OptionKind.CLASS_PATH, validPaths(options.valuesOf(argClassPath), "--class-path", false));<NEW_LINE>addOptions(OptionKind.MODULE_PATH, validPaths(options.valuesOf(argModulePath), "--module-path", true));<NEW_LINE>addOptions(OptionKind.ADD_MODULES, options.valuesOf(... | (OptionKind.ENABLE_PREVIEW.optionFlag)); |
203,559 | public // using the Liberty rather than UCP connection manager config<NEW_LINE>void testUsingLibertyConnPool() throws Exception {<NEW_LINE>assertFalse(oracleDS.isWrapperFor(PoolDataSource.class));<NEW_LINE>Connection con1 = oracleDS.getConnection();<NEW_LINE>try {<NEW_LINE>// Need to request the second connection async... | (10, TimeUnit.SECONDS)); |
1,308,436 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String wor... | Utils.getValueFromIdByName(id, "resourceGroups"); |
1,440,929 | protected void runOneIteration() {<NEW_LINE>if (!JobMetadata.isInitialized()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>monitor.debug(() -> "polling for job to check cancellation");<NEW_LINE>PortabilityJob currentJob = store.findJob(JobMetadata.getJobId());<NEW_LINE>switch(currentJob.state()) {<NEW_LINE>case CANCELED:<NEW... | State.PREEMPTED.toString()); |
1,378,652 | public static HttpHandler addServletDeployment(Container container, DeploymentInfo deploymentInfo, boolean secure) {<NEW_LINE>IdentityService identityService = container.getService(IdentityService.class);<NEW_LINE>boolean devMode = container.isDevMode();<NEW_LINE>try {<NEW_LINE>if (secure) {<NEW_LINE>if (identityServic... | ), "*", DispatcherType.REQUEST); |
1,093,195 | static <A extends Annotation> LookupResult<A> lookupAnnotation(AnnotatedMethod<?> method, Class<A> annotClass, BeanManager beanManager) {<NEW_LINE>A annotation = (A) getMethodAnnotation(method, annotClass, beanManager);<NEW_LINE>if (annotation != null) {<NEW_LINE>if (LOGGER.isLoggable(Level.FINE)) {<NEW_LINE>LOGGER.fin... | >(MatchingType.METHOD, annotation); |
1,069,852 | public void createBindings() {<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>IntegerConverter intConverter = new IntegerConverter();<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LINE>MutableLocationProxy location = new Mut... | "pocketCount", textFieldPocketCount, "text", intConverter); |
869,886 | private static void doXcopy(File fSrc, File fDest, FileFilter filter) throws IOException {<NEW_LINE>if (fSrc.getAbsolutePath().equals(fDest.getAbsolutePath())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (fSrc.isDirectory()) {<NEW_LINE>if (filter == null || filter.accept(fSrc)) {<NEW_LINE>if (!fDest.exists()) {<NEW_LINE>... | (fDest, child), filter); |
1,795,202 | public static void replacePathClassLoader(Context base, ClassLoader original, NClassLoader target) throws Exception {<NEW_LINE>NClassLoader loader = target;<NEW_LINE>Field pathListField = findField(original, "pathList");<NEW_LINE>pathListField.setAccessible(true);<NEW_LINE>Object originPathListObject = pathListField.ge... | dexElement = findField(originPathListObject, "dexElements"); |
629,264 | /* ======================================================================<NEW_LINE>* =========================================================== insert ===<NEW_LINE>* ====================================================================== */<NEW_LINE>@Override<NEW_LINE>public Uri insert(Uri uri, ContentValues values) {<... | throw new IllegalArgumentException("Unknown URI " + uri); |
1,581,767 | protected final void parse(byte[] data) {<NEW_LINE>RLPList dataList = (RLPList) RLP.decode2OneItem(data, 0);<NEW_LINE>if (dataList.size() < 3) {<NEW_LINE>throw new PeerDiscoveryException(MORE_DATA);<NEW_LINE>}<NEW_LINE>RLPList fromList = (RLPList) dataList.get(1);<NEW_LINE>if (fromList.size() != 3) {<NEW_LINE>throw new... | get(0).getRLPData(); |
907,930 | public void addAttachments(BlackboardArtifact message, MessageAttachments attachments) throws TskCoreException {<NEW_LINE>// Create attribute<NEW_LINE>BlackboardAttribute blackboardAttribute = BlackboardJsonAttrUtil.toAttribute(<MASK><NEW_LINE>message.addAttribute(blackboardAttribute);<NEW_LINE>// Associate each attach... | ATTACHMENTS_ATTR_TYPE, getModuleName(), attachments); |
62,939 | public CloudTrailConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CloudTrailConfigurationResult cloudTrailConfigurationResult = new CloudTrailConfigurationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | int originalDepth = context.getCurrentDepth(); |
773,650 | public void generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) {<NEW_LINE>FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream);<NEW_LINE>// check if compound assignment is the ... | this.syntheticReadAccessors.length - 1]; |
426,088 | public ListDataIngestionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDataIngestionJobsResult listDataIngestionJobsResult = new ListDataIngestionJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
1,039,033 | public DescribeOrganizationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeOrganizationResult describeOrganizationResult = new DescribeOrganizationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | int originalDepth = context.getCurrentDepth(); |
391,346 | private void loadNode137() {<NEW_LINE>TrustListTypeNode node = new TrustListTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList, new QualifiedName(0, "TrustList"), new LocalizedText("en", "TrustList"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueO... | .expanded(), true)); |
1,544,343 | private static void findTwinMentionsRelaxed(Document doc) {<NEW_LINE>for (int sentNum = 0; sentNum < doc.goldMentions.size(); sentNum++) {<NEW_LINE>List<Mention> golds = doc.goldMentions.get(sentNum);<NEW_LINE>List<Mention> predicts = doc.predictedMentions.get(sentNum);<NEW_LINE>Map<IntPair, Mention<MASK><NEW_LINE>Map<... | > goldMentionPositions = Generics.newHashMap(); |
301,810 | public Binding convert(Binding b) {<NEW_LINE>if (parentBinding == null || parentBinding.isEmpty())<NEW_LINE>return b;<NEW_LINE>// This is the result.<NEW_LINE>BindingBuilder b2 = Binding.builder(parentBinding);<NEW_LINE>// Copy the resultSet bindings to the combined result binding with checking.<NEW_LINE>for (Iterator<... | n2 = b2.get(v); |
170,516 | public void validateRdpCert(String subject, String issuer, final String fingerprint) {<NEW_LINE>// Since LibFreeRDP handles saving accepted certificates, if we ever get here, we must<NEW_LINE>// present the user with a query whether to accept the certificate or not.<NEW_LINE>// Show a dialog with the key signature for ... | MessageDialogs.justFinish(getContext()); |
532,823 | public void goAway(int lastGoodStreamId, ErrorCode errorCode, ByteString debugData) {<NEW_LINE>logger.logGoAway(OkHttpFrameLogger.Direction.<MASK><NEW_LINE>if (errorCode == ErrorCode.ENHANCE_YOUR_CALM) {<NEW_LINE>String data = debugData.utf8();<NEW_LINE>log.log(Level.WARNING, String.format("%s: Received GOAWAY with ENH... | INBOUND, lastGoodStreamId, errorCode, debugData); |
218,112 | private void addToQueueBasedOnApplicationType(int queueId) {<NEW_LINE>MADQueue queue = new MADQueue(getContext(), queueId, getTransactionName());<NEW_LINE>MADNotificationQueue notification = new MADNotificationQueue(queue);<NEW_LINE>notification.setApplicationType(getApplicationType());<NEW_LINE>if (getUserId() > 0) {<... | addEntry(attachment.getAttachment()); |
166,207 | private static Tuple2<Map<Integer, PCollectionView<?>>, DataStream<RawUnionValue>> transformSideInputs(Collection<PCollectionView<?>> sideInputs, FlinkStreamingTranslationContext context) {<NEW_LINE>// collect all side inputs<NEW_LINE>Map<TupleTag<?>, Integer> tagToIntMapping = new HashMap<>();<NEW_LINE>Map<Integer, PC... | intTag = tagToIntMapping.get(tag); |
1,743,323 | public T toJavaType(Column column, Class<?> entityType, String value) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>if (cachedEnum.get() == null) {<NEW_LINE>synchronized (cachedEnum) {<NEW_LINE>if (cachedEnum.get() == null) {<NEW_LINE>cachedEnum.set(enumClass(column, entityType));<NEW... | getName() + "'.", ex); |
1,386,502 | private TextView generateTextView(String text, Context context, boolean shouldContentCentered, int fontColor, boolean showBulletPoints) {<NEW_LINE>int standardMargin = context.getResources().getDimensionPixelSize(R.dimen.standard_margin);<NEW_LINE>int doubleMargin = context.getResources().getDimensionPixelSize(R.dimen.... | MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); |
1,690,697 | public DescribeInventoryDeletionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeInventoryDeletionsResult describeInventoryDeletionsResult = new DescribeInventoryDeletionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte... | JsonToken token = context.getCurrentToken(); |
873,231 | public void drawTransform(Transform xf) {<NEW_LINE>GraphicsContext g = getGraphics();<NEW_LINE>getWorldToScreenToOut(xf.p, temp);<NEW_LINE>temp2.setZero();<NEW_LINE>float k_axisScale = 0.4f;<NEW_LINE>Color c = cpool.getColor(1, 0, 0);<NEW_LINE>g.setStroke(c);<NEW_LINE>temp2.x = xf.p.x + k_axisScale * xf.q.c;<NEW_LINE>t... | -k_axisScale * xf.q.s; |
1,070,617 | public DatastoreFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatastoreFilter datastoreFilter = new DatastoreFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken... | String currentParentElement = context.getCurrentParentElement(); |
1,318,670 | public static ActiveAggregateConfigRulesResponse unmarshall(ActiveAggregateConfigRulesResponse activeAggregateConfigRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>activeAggregateConfigRulesResponse.setRequestId<MASK><NEW_LINE>OperateRuleResult operateRuleResult = new OperateRuleResult();<NEW_LINE>List<OperateRuleI... | (_ctx.stringValue("ActiveAggregateConfigRulesResponse.RequestId")); |
1,128,214 | private void loadNode61() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.ContentFilterElement_Encoding_DefaultXml, new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.val... | .expanded(), true)); |
1,845,491 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.query.QueryImpl#findUsingLucene(com.impetus.kundera .metadata.model.EntityMetadata,<NEW_LINE>* com.impetus.kundera.client.Client)<NEW_LINE>*/<NEW_LINE>protected List findUsingLucene(EntityMetadata m, Client client) {<NEW_LINE>MetamodelImpl metaM... | ixClause = prepareIndexClause(m, useInvertedIndex); |
1,021,578 | private Mono<Response<NameAvailabilityCheckResultInner>> checkNameAvailabilityWithResponseAsync(String location, NameAvailabilityCheckRequestParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpo... | error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); |
1,343,138 | public boolean onTouch(View view, MotionEvent motionEvent) {<NEW_LINE>switch(motionEvent.getAction()) {<NEW_LINE>case MotionEvent.ACTION_DOWN:<NEW_LINE>if (Build.VERSION.SDK_INT >= Constants.API_L) {<NEW_LINE>cardView.animate().setDuration(100).scaleX(1.1f).scaleY(1.1f).translationZ(10);<NEW_LINE>} else {<NEW_LINE>card... | (1).scaleY(1); |
44,927 | public void writeAttValue(char[] ch, int off, int len) throws IOException {<NEW_LINE>// process the rest<NEW_LINE>char c = ' ';<NEW_LINE>for (int i = off; i < off + len; i++) {<NEW_LINE>c = ch[i];<NEW_LINE>if (c == '<') {<NEW_LINE>super.w.write("<");<NEW_LINE>} else if (c == '>') {<NEW_LINE>super.w.write(">");<NE... | super.w.write(c); |
1,720,204 | public AbstractProcessInstanceModificationCommand toObject(JsonObject json) {<NEW_LINE>AbstractProcessInstanceModificationCommand cmd = null;<NEW_LINE>if (json.has(START_BEFORE)) {<NEW_LINE>cmd = new ActivityBeforeInstantiationCmd(JsonUtil.getString(json, START_BEFORE));<NEW_LINE>} else if (json.has(START_AFTER)) {<NEW... | .getString(json, START_AFTER)); |
1,726,733 | private static void signImpl(DOMSignContext dsc, String digestMethod, String signatureMethod, String referenceURI, String keyName, PublicKey publicKey, X509Certificate x509Certificate, String canonicalizationMethodType) throws GeneralSecurityException, MarshalException, XMLSignatureException {<NEW_LINE>dsc.setDefaultNa... | .ENVELOPED, (TransformParameterSpec) null); |
507,522 | public void marshall(Instance instance, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (instance == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(instance.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.m... | e.getMessage(), e); |
870,731 | public Component build() {<NEW_LINE>BundleBoxBuilder builder = BundleBox.builder(myUIDisposable);<NEW_LINE>builder.withNoneItem(myNullItemName);<NEW_LINE>if (myNullItemIcon != null) {<NEW_LINE>builder.withNoneItemImage(myNullItemIcon);<NEW_LINE>}<NEW_LINE>builder.withSdkTypeFilter(mySdkFilter);<NEW_LINE>final BundleBox... | Sdk oldValue = inheritableSdk.get(); |
980,944 | private Authorization authenticate(@Nullable Credential credential, Map<String, String> repositoryScopes) throws RegistryAuthenticationFailedException, RegistryCredentialsNotSentException {<NEW_LINE>String registryUrl = registryEndpointRequestProperties.getServerUrl();<NEW_LINE>String imageName = registryEndpointReques... | url = getAuthenticationUrl(credential, repositoryScopes); |
1,736,457 | public com.amazonaws.services.config.model.InvalidNextTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.config.model.InvalidNextTokenException invalidNextTokenException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurr... | config.model.InvalidNextTokenException(null); |
1,328,181 | protected void animRotation(View view, int axis) {<NEW_LINE>if (keyframes == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String animName;<NEW_LINE>switch(axis) {<NEW_LINE>case AXIS_X:<NEW_LINE>animName = "rotationX";<NEW_LINE>break;<NEW_LINE>case AXIS_Y:<NEW_LINE>animName = "rotationY";<NEW_LINE>break;<NEW_LINE>case A... | (HummerAnimationUtils.getInterpolator(easing)); |
1,122,829 | final DescribeRemediationExceptionsResult executeDescribeRemediationExceptions(DescribeRemediationExceptionsRequest describeRemediationExceptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRemediationExceptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | invoke(request, responseHandler, executionContext); |
809,826 | public void marshall(BrokerSummary brokerSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (brokerSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(brokerSummary.getBrokerArn(), BROKERARN_BINDI... | brokerSummary.getBrokerName(), BROKERNAME_BINDING); |
697,827 | final DescribeApplicationVersionsResult executeDescribeApplicationVersions(DescribeApplicationVersionsRequest describeApplicationVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeApplicationVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,686,143 | private void writeRenderState(RenderState rs, Writer out) throws IOException {<NEW_LINE>RenderState defRs = RenderState.DEFAULT;<NEW_LINE>if (rs.getBlendMode() != defRs.getBlendMode()) {<NEW_LINE>writeRenderStateAttribute(out, "Blend", rs.<MASK><NEW_LINE>}<NEW_LINE>if (rs.isWireframe() != defRs.isWireframe()) {<NEW_LIN... | getBlendMode().name()); |
1,007,085 | public GetUserSettingsResponse convertSettings(String smtpAddress, List<UserSettingName> requestedSettings) {<NEW_LINE>GetUserSettingsResponse response = new GetUserSettingsResponse();<NEW_LINE>response.setSmtpAddress(smtpAddress);<NEW_LINE>if (this.getError() != null) {<NEW_LINE>response.setErrorCode(AutodiscoverError... | response.setErrorCode(AutodiscoverErrorCode.RedirectUrl); |
1,313,191 | // ----- private methods -----<NEW_LINE>private void init(final SecurityContext securityContext, final Class type, final Field field, final String path) throws FrameworkException {<NEW_LINE>final QueryConfig config = getConfig(path);<NEW_LINE>config.handleTypeArguments(securityContext, <MASK><NEW_LINE>final SelectionSe... | type, field.getArguments()); |
346,103 | public static void main(String[] args) throws IOException {<NEW_LINE>List<PainlessContextInfo> contexts = ContextGeneratorCommon.getContextInfos();<NEW_LINE>Path rootDir = resetRootDir();<NEW_LINE>ContextGeneratorCommon.PainlessInfos infos;<NEW_LINE>JavaClassFilesystemResolver jdksrc = getJdkSrc();<NEW_LINE>if (jdksrc ... | json = rootDir.resolve("painless-common.json"); |
1,087,903 | public final VsplatparameterContext vsplatparameter(ArgDefListBuilder args) throws RecognitionException {<NEW_LINE>VsplatparameterContext _localctx = new VsplatparameterContext(_ctx, getState(), args);<NEW_LINE>enterRule(_localctx, 32, RULE_vsplatparameter);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_loca... | _errHandler.recover(this, re); |
699,662 | public CancelSpotFleetRequestsError unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CancelSpotFleetRequestsError cancelSpotFleetRequestsError = new CancelSpotFleetRequestsError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (c... | ().unmarshall(context)); |
1,671,751 | public Location add(final Operation operation) throws IOException {<NEW_LINE>final ReleasableBytesStreamOutput out = new ReleasableBytesStreamOutput(bigArrays);<NEW_LINE>boolean successfullySerialized = false;<NEW_LINE>try {<NEW_LINE>final long start = out.position();<NEW_LINE>out.skip(Integer.BYTES);<NEW_LINE>writeOpe... | out.bytes(), out); |
717,196 | final String parse(String sql) {<NEW_LINE>Queries queries = null;<NEW_LINE>String normalised;<NEW_LINE>try {<NEW_LINE>queries = parser.parse(sql);<NEW_LINE>normalised = normalisingRenderer.render(queries);<NEW_LINE>} catch (ParserException exception) {<NEW_LINE>normalised = sql;<NEW_LINE>listeners.exception(new Default... | duplicates(DUPLICATE_SQL, sql, normalised); |
470 | private void applyValueRmdOption(final String value) {<NEW_LINE>suggestTimer_.cancel();<NEW_LINE>// If there is no token but spaces have been inserted, then compensate<NEW_LINE>// for that. This is necessary as we allow for spaces in the completion,<NEW_LINE>// and completions auto-popup after ',' so e.g. on<NEW_LINE>/... | .getStart().getPosition(); |
1,413,823 | public void testSFRemoteEnvEntry_Short_InvalidValue() throws Exception {<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envShortInvalid".<NEW_LINE>Short tempShort = fejb1.getShortEnvVar("envShortBlankValue");<NEW_LINE>fail("Get environment invalid short object should have failed, inste... | ).getName(), ne); |
855,690 | private void recurseDirectory0(List<IdeLocation> locations, List<CorruptedIdeLocationException> problems, File f, int loopCounter, boolean nameFound) {<NEW_LINE>// Various try/catch/ignore statements are in this for loop. Weird conditions on the disk can cause exceptions,<NEW_LINE>// such as an unformatted drive causin... | ] listFiles = f.listFiles(); |
215,825 | public void writeRawBytes(final ByteString value, int offset, int length) throws IOException {<NEW_LINE>if (limit - position >= length) {<NEW_LINE>// We have room in the current buffer.<NEW_LINE>value.copyTo(<MASK><NEW_LINE>position += length;<NEW_LINE>} else {<NEW_LINE>// Write extends past current buffer. Fill the r... | buffer, offset, position, length); |
805,270 | protected void registerJobsAndTriggers() throws SchedulerException {<NEW_LINE>TransactionStatus transactionStatus = null;<NEW_LINE>if (this.transactionManager != null) {<NEW_LINE>transactionStatus = this.transactionManager.getTransaction(TransactionDefinition.withDefaults());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (this... | "Registration of jobs and triggers failed: " + ex.getMessage()); |
1,259,587 | public static DescribeDcdnIpaDomainConfigsResponse unmarshall(DescribeDcdnIpaDomainConfigsResponse describeDcdnIpaDomainConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnIpaDomainConfigsResponse.setRequestId(_ctx.stringValue("DescribeDcdnIpaDomainConfigsResponse.RequestId"));<NEW_LINE>List<DomainConfig>... | + "].FunctionArgs[" + j + "].ArgValue")); |
682,591 | public void alterColumn(DdlWrite writer, AlterColumn alter) {<NEW_LINE>String tableName = alter.getTableName();<NEW_LINE>String columnName = alter.getColumnName();<NEW_LINE>String currentType = alter.getCurrentType();<NEW_LINE>String type = alter.getType() != null ? alter.getType() : currentType;<NEW_LINE>type = conver... | (defaultValueClause).append(notnullClause); |
1,463,623 | public SiddhiApp visitSiddhi_app(@NotNull SiddhiQLParser.Siddhi_appContext ctx) {<NEW_LINE>SiddhiApp siddhiApp = SiddhiApp.siddhiApp();<NEW_LINE>for (SiddhiQLParser.App_annotationContext annotationContext : ctx.app_annotation()) {<NEW_LINE>siddhiApp.annotation((Annotation) visit(annotationContext));<NEW_LINE>}<NEW_LINE... | = (ExecutionElement) visit(executionElementContext); |
7,180 | public void transform(TransformInvocation transformInvocation) throws TransformException, InterruptedException, IOException {<NEW_LINE>if (transformInvocation.getOutputProvider() == null) {<NEW_LINE>throw new IllegalArgumentException("Transform invocation needs a valid output provider.");<NEW_LINE>}<NEW_LINE>File outpu... | getScopes(), Format.DIRECTORY); |
23,520 | final GetAccuracyMetricsResult executeGetAccuracyMetrics(GetAccuracyMetricsRequest getAccuracyMetricsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAccuracyMetricsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new GetAccuracyMetricsResultJsonUnmarshaller()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.