idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
241,440
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>View rootView = inflater.inflate(R.layout.pager_fragment, container, false);<NEW_LINE>Toolbar toolbar = rootView.findViewById(R.id.t...
setAdapter(new EpisodesPagerAdapter(this));
578,761
public List scanData(Filter f, final String tableName, Class clazz, EntityMetadata m, String columnFamily, String qualifier) throws IOException, InstantiationException, IllegalAccessException {<NEW_LINE>List returnedResults = new ArrayList();<NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplica...
entity(m.getEntityClazz());
1,799,527
public void updateRequest(final boolean force, boolean useCache, @Nullable final ScrollToPolicy scrollToChangePolicy) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>if (isDisposed())<NEW_LINE>return;<NEW_LINE>final T requestProvider = getCurrentRequestProvider();<NEW_LINE>if (requestP...
useCache ? loadRequestFast(requestProvider) : null;
860,888
private int writeInlinedSubroutineAbbrev(byte[] buffer, int p, boolean withChildren) {<NEW_LINE>int pos = p;<NEW_LINE>pos = writeAbbrevCode(withChildren ? DwarfDebugInfo.DW_ABBREV_CODE_inlined_subroutine_with_children : DwarfDebugInfo.DW_ABBREV_CODE_inlined_subroutine, buffer, pos);<NEW_LINE>pos = writeTag(DwarfDebugIn...
DwarfDebugInfo.DW_FORM_addr, buffer, pos);
1,820,342
private void write(ElfHeader.EIClass eiClass, ByteBuffer buffer) {<NEW_LINE>if (eiClass == ElfHeader.EIClass.ELFCLASS32) {<NEW_LINE>Elf.Elf32.putElf32Half(buffer, (short) vn_version);<NEW_LINE>Elf.Elf32.putElf32Half(buffer, (short) vn_cnt);<NEW_LINE>Elf.Elf32.putElf32Word(buffer, (int) vn_file);<NEW_LINE>Elf.Elf32.putE...
(buffer, (int) vn_aux);
345,548
public com.amazonaws.services.fsx.model.ResourceDoesNotSupportTaggingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.fsx.model.ResourceDoesNotSupportTaggingException resourceDoesNotSupportTaggingException = new com.amazonaws.services.fsx.model.Resource...
int originalDepth = context.getCurrentDepth();
30,751
protected RexNode convertExtendedExpression(SqlNode node, Blackboard bb) {<NEW_LINE>if (node instanceof SqlBasicCall && (((SqlBasicCall) node).getOperator() == IN || ((SqlBasicCall) node).getOperator() == NOT_IN)) {<NEW_LINE>if (((SqlBasicCall) node).getOperandList().size() == 2 && ((SqlBasicCall) node).getOperandList(...
> rexNodeList = Lists.newArrayList();
1,485,064
public ConsumerCallbackResult onError(Throwable err) {<NEW_LINE>long curNanos = System.nanoTime();<NEW_LINE>for (DatabusV2ConsumerRegistration consumerReg : _registrations) {<NEW_LINE>for (DatabusCombinedConsumer consumer : consumerReg.getConsumers()) {<NEW_LINE>ConsumerCallable<ConsumerCallbackResult> onErrorCallable ...
) / DbusConstants.NUM_NSECS_IN_MSEC + "ms");
1,001,112
public void andThenVisit(CustomResourceDefinitionSpecFluent<?> spec, ObjectMeta resourceMeta) {<NEW_LINE>Predicate<CustomResourceDefinitionVersionBuilder> hasStorageVersion = v -> v.getStorage() != null && v.getStorage();<NEW_LINE>if (spec.hasVersions() && !spec.hasMatchingVersion(hasStorageVersion)) {<NEW_LINE>spec.ed...
String existing = storageVersion.get();
564,008
public void marshall(AuthenticationConfig authenticationConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (authenticationConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocol...
authenticationConfig.getIsBasicAuthSupported(), ISBASICAUTHSUPPORTED_BINDING);
572,153
public Object objectGetConstructorName(Object object) {<NEW_LINE>TruffleString name = Strings.UC_OBJECT;<NEW_LINE>if (JSDynamicObject.isJSDynamicObject(object)) {<NEW_LINE>JSDynamicObject dynamicObject = (JSDynamicObject) object;<NEW_LINE>Object constructor = JSObject.get(dynamicObject, JSObject.CONSTRUCTOR);<NEW_LINE>...
.getName((JSFunctionObject) constructor);
1,711,718
public Transaction capture(MerchantStore store, Customer customer, Order order, Transaction capturableTransaction, IntegrationConfiguration configuration, IntegrationModule module) throws IntegrationException {<NEW_LINE>try {<NEW_LINE>// authorize a preauth<NEW_LINE>String trnID = capturableTransaction.getTransactionDe...
("trnID=").append(trnID);
895,615
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {<NEW_LINE>super.onCreateContextMenu(menu, v, menuInfo);<NEW_LINE>AdapterView.AdapterContextMenuInfo aInfo = (AdapterView.AdapterContextMenuInfo) menuInfo;<NEW_LINE>// ProfileData profile = profileAdapter.getItem(aInfo.posit...
(R.string.delete));
1,502,003
private JPanel optionalSettings() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.setOpaque(false);<NEW_LINE>JPanel description = new JPanel();<NEW_LINE>description.setLayout(new BoxLayout(description, BoxLayout.Y_AXIS));<NEW_LINE>description.setOpaque(false);<NEW_LINE>JPanel name = new JPanel(...
new FlowLayout(FlowLayout.LEADING));
384,769
static final Column convertJsonNodeToColumn(final JsonNode root, final JsonParser jsonParser) throws JsonProcessingException {<NEW_LINE>if (root == null || !root.isObject()) {<NEW_LINE>throw JsonMappingException.from(jsonParser, "Column expects a JSON Object node.");<NEW_LINE>}<NEW_LINE>final ObjectNode object = (Objec...
indexNode = object.get("index");
1,478,437
public void cancelTransference(OCFile file) {<NEW_LINE>User currentUser = fileActivity.getUser().orElseThrow(IllegalStateException::new);<NEW_LINE>if (file.isFolder()) {<NEW_LINE>OperationsService.OperationsServiceBinder opsBinder = fileActivity.getOperationsServiceBinder();<NEW_LINE>if (opsBinder != null) {<NEW_LINE>o...
currentUser.toPlatformAccount(), file);
357,368
public String encrypt(String value) {<NEW_LINE>String clearText = value;<NEW_LINE>if (clearText == null)<NEW_LINE>clearText = "";<NEW_LINE>// Init<NEW_LINE>if (m_cipher == null)<NEW_LINE>initCipher();<NEW_LINE>// Encrypt<NEW_LINE>if (m_cipher != null) {<NEW_LINE>try {<NEW_LINE>m_cipher.init(Cipher.ENCRYPT_MODE, m_key);...
(clearText.getBytes("UTF8"));
687,913
public void addAnnotatedThingActions(ThingActions annotatedThingActions) {<NEW_LINE>if (annotatedThingActions.getClass().isAnnotationPresent(ThingActionsScope.class)) {<NEW_LINE>ThingActionsScope scope = annotatedThingActions.getClass().getAnnotation(ThingActionsScope.class);<NEW_LINE>Collection<ModuleInformation> modu...
updated(this, oldType, mt);
1,213,225
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String automationAccountName, String variableName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalAr...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,260,439
protected void recordFilterCompletion(final ExecutionStatus status, final ZuulFilter<I, O> filter, long startTime, final ZuulMessage zuulMesg, final ZuulMessage startSnapshot) {<NEW_LINE>final SessionContext zuulCtx = zuulMesg.getContext();<NEW_LINE>final long execTimeNs = System.nanoTime() - startTime;<NEW_LINE>final ...
record(execTimeMs, TimeUnit.MILLISECONDS);
999,444
public static ListConversationsResponse unmarshall(ListConversationsResponse listConversationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listConversationsResponse.setRequestId(_ctx.stringValue("ListConversationsResponse.RequestId"));<NEW_LINE>listConversationsResponse.setTotalCount(_ctx.longValue("ListConversations...
(_ctx.integerValue("ListConversationsResponse.PageNumber"));
331,907
private ImmutableMap<String, Object> convertSelects(Cell cell, UnconfiguredBuildTarget target, RuleDescriptor<?> descriptor, Map<String, Object> attrs, CellRelativePath pathRelativeToProjectRoot, DependencyStack dependencyStack) {<NEW_LINE>ImmutableMap.Builder<String, Object> result = ImmutableMap.builder();<NEW_LINE>D...
(), pathRelativeToProjectRoot, dependencyStack));
372,112
public StaticWorkload putStaticWorkload(String domainName, String serviceName, StaticWorkload staticWorkload) {<NEW_LINE>WebTarget target = base.path("/domain/{domainName}/service/{serviceName}/workload/static").resolveTemplate("domainName", domainName<MASK><NEW_LINE>Invocation.Builder invocationBuilder = target.reques...
).resolveTemplate("serviceName", serviceName);
1,852,357
protected Result generateContent(int id, ByteBuffer content, boolean recycle, boolean lastContent, Callback callback, FCGI.FrameType frameType) {<NEW_LINE>id &= 0xFF_FF;<NEW_LINE>int contentLength = content == null ? 0 : content.remaining();<NEW_LINE>Result result = new Result(byteBufferPool, callback);<NEW_LINE>while ...
Math.min(MAX_CONTENT_LENGTH, contentLength);
1,247,722
public EstimatedResourceSize unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EstimatedResourceSize estimatedResourceSize = new EstimatedResourceSize();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =...
String currentParentElement = context.getCurrentParentElement();
867,881
public void dumpReplayData(PrintStream out) {<NEW_LINE>out.println("JvmtiExport can_access_local_variables " + (JvmtiExport.canAccessLocalVariables() ? '1' : '0'));<NEW_LINE>out.println("JvmtiExport can_hotswap_or_post_breakpoint " + (JvmtiExport.canHotswapOrPostBreakpoint() ? '1' : '0'));<NEW_LINE>out.println("JvmtiEx...
= factory().objects();
770,407
public static void main(String... args) throws Exception {<NEW_LINE>ModelMapper modelMapper = new ModelMapper();<NEW_LINE>modelMapper.getConfiguration().setFieldMatchingEnabled(true).setFieldAccessLevel(AccessLevel.PACKAGE_PRIVATE);<NEW_LINE>modelMapper.addMappings(new PropertyMap<Customer, CustomerDTO>() {<NEW_LINE><N...
()).setBillingInfo(null);
1,375,374
protected List checkConsistency(File dir) throws ShareException {<NEW_LINE>List kids = new ArrayList();<NEW_LINE>File[<MASK><NEW_LINE>if (files == null || !dir.exists()) {<NEW_LINE>// dir has been deleted<NEW_LINE>if (!isPersistent()) {<NEW_LINE>// actually, this can be bad as some os errors (e.g. "too many open files"...
] files = dir.listFiles();
661,397
public static <T, F, R1, R2, R3, R4> Eval<R4> forEach(Eval<T> eval, Function<? super T, ? extends Eval<R1>> value2, Function<? super Tuple2<? super T, ? super R1>, ? extends Eval<R2>> value3, Function<? super Tuple3<? super T, ? super R1, ? super R2>, ? extends Eval<R3>> value4, Function<? super Tuple4<? super T, ? sup...
.tuple(in, ina));
49,022
final ListDataSourcesResult executeListDataSources(ListDataSourcesRequest listDataSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDataSourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
invoke(request, responseHandler, executionContext);
1,162,625
public List<Writable> transformRawStringsToInputList(List<String> values) {<NEW_LINE>List<Writable> <MASK><NEW_LINE>if (values.size() != initialSchema.numColumns())<NEW_LINE>throw new IllegalArgumentException(String.format("Number of values %d does not match the number of input columns %d for schema", values.size(), in...
ret = new ArrayList<>();
1,627,318
public void text(String $value) throws SAXException {<NEW_LINE>int $ai;<NEW_LINE>switch($_ngcc_current_state) {<NEW_LINE>case 4:<NEW_LINE>{<NEW_LINE>xpath = $value;<NEW_LINE>$_ngcc_current_state = 3;<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case 0:<NEW_LINE>{<NEW_LINE>revertToParentFromText(makeResult(), super._cookie, $val...
sendText(super._cookie, $value);
1,659,117
public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>IndustrialDualAnalogInChannel channel0 = factory.createIndustrialDualAnalogInChannel();<NEW_LINE>channel0.setChannelNum((short) 0);<NEW_LINE>channel0.setUid(getUid());<NEW_LINE>String subIdChannel0 = "channel0";<NEW_LINE>log...
"{} addSubDevice {}", LoggerConstants.TFINIT, subIdChannel0);
141,870
// /// ************** ALL METHODS HERE *************************** ////////<NEW_LINE>private void _viewWorkflowTask(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user) throws Exception {<NEW_LINE>WorkflowTask task = (WorkflowTask) <MASK><NEW_LINE>WorkflowTaskForm taskform = (Workflo...
req.getAttribute(WebKeys.WORKFLOW_TASK_EDIT);
1,793,353
private void showImportProgressLayout(boolean askFolder, boolean isExternal) {<NEW_LINE>// Replace launch options layout with import progress layout<NEW_LINE>rootView.removeAllViews();<NEW_LINE>LayoutInflater.from(getActivity()).inflate(R.layout.include_import_steps, rootView, true);<NEW_LINE>// Memorize UI elements th...
Preferences.getStorageUri())));
1,496,668
public void loadModel(List<Row> modelRows) {<NEW_LINE>IForestModel model = new IForestModelDataConverter().load(modelRows);<NEW_LINE>iForestPredictor = new IForestPredict();<NEW_LINE>iForestPredictor.loadModel(new IForestModelDataConverter().load(modelRows));<NEW_LINE>if (model.meta.contains(WithMultiVarParams.VECTOR_C...
.TARGET_TYPE, TargetType.DOUBLE));
1,364,502
public void onDestroy() {<NEW_LINE>destroyed = true;<NEW_LINE>NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.recordStarted);<NEW_LINE>NotificationCenter.getInstance(currentAccount).removeObserver(this, NotificationCenter.recordStartError);<NEW_LINE>NotificationCenter.getInstance(...
removeObserver(this, NotificationCenter.emojiLoaded);
514,918
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String workspaceName) {<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>}<NEW_LINE>if (th...
)).readOnly()));
1,534,155
protected ErlangVisitor buildErlangVisitor(@NotNull final ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new ErlangVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitExportFunction(@NotNull ErlangExportFunction o) {<NEW_LINE>PsiReference reference = o.getReference(...
getArity(o.getInteger());
727,619
public final void handleReversalForInvoice(final org.compiere.model.I_C_Invoice invoice) {<NEW_LINE>final IInvoiceDAO invoiceDAO = Services.get(IInvoiceDAO.class);<NEW_LINE>final int reversalInvoiceId = invoice.getReversal_ID();<NEW_LINE>Check.assume(reversalInvoiceId > invoice.getC_Invoice_ID(), "Invoice {} shall be t...
Services.get(IMatchInvBL.class);
712,540
private void init() {<NEW_LINE>jButtonVlcPfad.setIcon(IconFontSwing.buildIcon(FontAwesome.FOLDER_OPEN_O, 16));<NEW_LINE>jButtonFFmpegPfad.setIcon(IconFontSwing.buildIcon(FontAwesome.FOLDER_OPEN_O, 16));<NEW_LINE>jButtonHilfe.setIcon(IconFontSwing.buildIcon(FontAwesome.QUESTION_CIRCLE_O, 16));<NEW_LINE>jPanelVlc.setVisi...
SYSTEM_PFAD_FFMPEG, GuiFunktionenProgramme.getMusterPfadFFmpeg());
1,835,994
private int insertNodeBetween(int index, int nextIndex, long node) {<NEW_LINE>assert (previousIndexFromNode(node) == 0);<NEW_LINE>assert (nextIndexFromNode(node) == 0);<NEW_LINE>assert (nextIndexFromNode(nodes.elementAti(index)) == nextIndex);<NEW_LINE>// Append the new node and link it to the existing nodes.<NEW_LINE>...
(index) | nodeFromNextIndex(nextIndex);
765,093
public List<UserIdentity> discoverMatchingUsers(final SessionLabel sessionLabel, final PwmDomain pwmDomain, final int maxResultSize, final StoredConfiguration storedConfiguration, final StoredConfigKey key) throws Exception {<NEW_LINE>final AppConfig config = new AppConfig(storedConfiguration);<NEW_LINE>final PwmApplic...
permissions = ValueTypeConverter.valueToUserPermissions(storedValue);
686,017
public void insertPath(int pathIndex, Point2D[] points, int pointsOffset, int count, boolean bForward) {<NEW_LINE>int oldPathCount = getPathCount();<NEW_LINE>if (pathIndex > oldPathCount)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>if (pathIndex < 0)<NEW_LINE>pathIndex = oldPathCount;<NEW_LINE>m_bPathStarte...
) (AttributeStreamBase) getAttributeStreamRef(semantics);
895,773
public static void horizontal(Kernel1D_F64 kernel, InterleavedF64 src, InterleavedF64 dst) {<NEW_LINE>final double[] dataSrc = src.data;<NEW_LINE>final double[] dataDst = dst.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset();<NEW_LINE>final int offsetR = kernelWid...
w = kernel.data[k];
966,872
public static SetWelcomePageURIResponse unmarshall(SetWelcomePageURIResponse setWelcomePageURIResponse, UnmarshallerContext context) {<NEW_LINE>setWelcomePageURIResponse.setRequestId(context.stringValue("SetWelcomePageURIResponse.RequestId"));<NEW_LINE>setWelcomePageURIResponse.setErrorCode(context.integerValue("SetWel...
("SetWelcomePageURIResponse.ErrorList[" + i + "].ErrorMessage"));
1,657,142
protected BatchPart createSafe() {<NEW_LINE><MASK><NEW_LINE>BatchPartEntity batchPart = partEntityManager.create();<NEW_LINE>batchPart.setBatchId(batch.getId());<NEW_LINE>batchPart.setBatchType(batch.getBatchType());<NEW_LINE>batchPart.setBatchSearchKey(batch.getBatchSearchKey());<NEW_LINE>batchPart.setBatchSearchKey2(...
BatchPartEntityManager partEntityManager = batchServiceConfiguration.getBatchPartEntityManager();
1,067,621
boolean mergeClusters_(int vertex1, int vertex2, boolean update_hash) {<NEW_LINE>int cluster_1 = m_shape.getUserIndex(vertex1, m_new_clusters);<NEW_LINE>int cluster_2 = m_shape.getUserIndex(vertex2, m_new_clusters);<NEW_LINE>assert (cluster_1 != StridedIndexTypeCollection.impossibleIndex2());<NEW_LINE>assert (cluster_2...
res = mergeVertices_(vertex1, vertex2);
1,016,670
private void toggleRestrictions() {<NEW_LINE>holder.imgCbRestricted.setVisibility(View.GONE);<NEW_LINE>holder.pbRunning.setVisibility(View.VISIBLE);<NEW_LINE>new AsyncTask<Object, Object, Object>() {<NEW_LINE><NEW_LINE>private List<Boolean> oldState;<NEW_LINE><NEW_LINE>private List<Boolean> newState;<NEW_LINE><NEW_LINE...
(getCheckBoxImage(rstate, methodExpert));
217,903
private FindPlan createAndPlan(Collection<IndexDescriptor> indexDescriptors, List<Filter> filters) {<NEW_LINE>FindPlan findPlan = new FindPlan();<NEW_LINE>Set<ComparableFilter> indexScanFilters = new LinkedHashSet<>();<NEW_LINE>Set<Filter> <MASK><NEW_LINE>// find out set id filter (if any)<NEW_LINE>planForIdFilter(find...
columnScanFilters = new LinkedHashSet<>();
800,118
protected Control createDialogArea(Composite parent) {<NEW_LINE>GridData gd;<NEW_LINE>Composite dialogComp = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite topComp = new Composite(dialogComp, SWT.NONE);<NEW_LINE>gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>topComp.setLayoutData(gd);<NEW_LINE>GridLayo...
= new GridData(GridData.FILL_BOTH);
1,066,884
/*<NEW_LINE>* Saves the current value to the data source Don't add a JavaDoc comment<NEW_LINE>* here, we use the default documentation from the implemented interface.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void commit() throws Buffered.SourceException, InvalidValueException {<NEW_LINE>if (dataSource != null && ...
Buffered.SourceException(this, e);
1,754,107
private CatchStatement createHandleSuppressedThrowableStatement(VariableExpression featureThrowableVar) {<NEW_LINE>Parameter catchParameter = new Parameter(nodeCache.Throwable, "$spock_tmp_throwable");<NEW_LINE>BinaryExpression featureThrowableNotNullExpr = createVariableNotNullExpression(featureThrowableVar);<NEW_LINE...
VariableExpression(catchParameter)))));
1,731,230
protected void encodeEvents(FacesContext context, Chronoline chronoline) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>Collection<?> value = (Collection<?>) chronoline.getValue();<NEW_LINE>if (value != null) {<NEW_LINE>Map<String, Object> requestMap = context.getExternalCon...
var, it.next());
587,020
public void arc(Object x, Object y, Object radius, Object startAngle, Object endAngle, Object anticlockwise) {<NEW_LINE>actions.add(canvas -> {<NEW_LINE>float x_px = dp2px(x);<NEW_LINE>float y_px = dp2px(y);<NEW_LINE>float radius_px = dp2px(radius);<NEW_LINE>boolean anticlockwiseBool = Boolean.parseBoolean(anticlockwis...
sweepAngle, false, getLinePaint());
764,420
void applyTo(TaskMonitor monitor, MessageLog log) {<NEW_LINE>while (xmlParser.hasNext()) {<NEW_LINE>if (monitor.isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (elem.isEnd() && elem.getName().equals("function")) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>// line number start tag<NEW_LINE>elem = xmlP...
XmlElement elem = xmlParser.peek();
1,569,032
private void showFullView(Message smListItem) {<NEW_LINE>try {<NEW_LINE>final String mimeType = FileUtils.getMimeType(smListItem.getFilePaths().get(0));<NEW_LINE>if (mimeType != null) {<NEW_LINE>if (mimeType.startsWith("image")) {<NEW_LINE>Intent intent = new Intent(activityContext, FullScreenImageActivity.class);<NEW_...
).get(0)));
599,262
public void init() {<NEW_LINE>MatrixMeta matrixMeta = context.getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>Map<Integer, PartitionMeta> partMetas = matrixMeta.getPartitionMetas();<NEW_LINE>String sourceClass = matrixMeta.getAttribute(AngelConf.ANGEL_PS_PARTITION_SOURCE_CLASS, AngelConf.DEFAULT_ANGEL_PS_PARTI...
<? extends IElement> valueClass = null;
638,870
public void analyzeSentiment() {<NEW_LINE>// BEGIN: com.azure.ai.textanalytics.TextAnalyticsClient.analyzeSentiment#String<NEW_LINE>final DocumentSentiment documentSentiment = textAnalyticsClient.analyzeSentiment("The hotel was dark and unclean.");<NEW_LINE>System.out.printf("Recognized sentiment: %s, positive score: %...
getConfidenceScores().getNegative());
921,347
// todo fix link followed here!<NEW_LINE>private static void linkFollowed(Editor editor, Collection<? extends RangeHighlighter> ranges, final RangeHighlighter link) {<NEW_LINE>MarkupModelEx markupModel = (MarkupModelEx) editor.getMarkupModel();<NEW_LINE>for (RangeHighlighter range : ranges) {<NEW_LINE>TextAttributes ol...
(range, getFollowedHyperlinkAttributes(range));
1,574,460
public static IndexInfo indexInfoOf(Document sourceDocument) {<NEW_LINE>Document keyDbObject = (Document) sourceDocument.get("key");<NEW_LINE>int numberOfElements = keyDbObject.keySet().size();<NEW_LINE>List<IndexField> indexFields = new ArrayList<IndexField>(numberOfElements);<NEW_LINE>for (String key : keyDbObject.ke...
Document) sourceDocument.get("weights");
714,107
protected void doEndElement(String uri, String name, String qName) {<NEW_LINE>if (in("ObjectLockConfiguration")) {<NEW_LINE>if ("ObjectLockEnabled".equals(name)) {<NEW_LINE>objectLockConfiguration.setObjectLockEnabled(getText());<NEW_LINE>} else if ("Rule".equals(name)) {<NEW_LINE>objectLockConfiguration.setRule(rule);...
defaultRetention.setMode(getText());
280,582
private static void validateLocationAndFrame(LanguageInfo viewLanguage, Node location, Frame frame) {<NEW_LINE><MASK><NEW_LINE>if (rootNode == null) {<NEW_LINE>throw PolyglotEngineException.illegalArgument(String.format("The location '%s' does not have a RootNode.", location));<NEW_LINE>}<NEW_LINE>LanguageInfo nodeLoca...
RootNode rootNode = location.getRootNode();
1,224,320
public static int editDistance(String word1, String word2, boolean caseSensitive) {<NEW_LINE>if (!caseSensitive) {<NEW_LINE>word1 = word1.toLowerCase();<NEW_LINE>word2 = word2.toLowerCase();<NEW_LINE>}<NEW_LINE>int len1 = word1.length();<NEW_LINE>int len2 = word2.length();<NEW_LINE>// len1+1, len2+1, because finally re...
+ 1][len2 + 1];
1,322,540
private void copyFile(FileObject sourceFile) throws IOException {<NEW_LINE>String targetPath = (transformation != null) ? transformation.transformPath(sourceFile.getPath()) : sourceFile.getPath();<NEW_LINE>boolean isTransformed = !targetPath.equals(sourceFile.getPath());<NEW_LINE>FileObject tg = targetRoot.getFileObjec...
sourceFile, targetFolder, name, ext);
73,587
protected Div makeChildDiv(String type, DSpaceObject dso, PackageParameters params) {<NEW_LINE>String handle = dso.getHandle();<NEW_LINE>// start <div><NEW_LINE>Div div = new Div();<NEW_LINE>div<MASK><NEW_LINE>div.setTYPE(type);<NEW_LINE>// make sure we have a handle<NEW_LINE>if (handle == null || handle.length() == 0)...
.setID(gensym("div"));
611,923
public void virtualize(VirtualizerTool tool) {<NEW_LINE>ValueNode alias = tool.getAlias(array());<NEW_LINE>if (alias instanceof VirtualObjectNode) {<NEW_LINE>VirtualArrayNode virtual = (VirtualArrayNode) alias;<NEW_LINE>ValueNode indexValue = tool.getAlias(index());<NEW_LINE>int idx = indexValue.isConstant() ? indexVal...
, elementKind(), stamp));
1,355,499
public void directoryMappingChanged() {<NEW_LINE>// copy myData under lock<NEW_LINE>HashSet<String> keys;<NEW_LINE>synchronized (myLock) {<NEW_LINE>keys = new HashSet<>(myData.keySet());<NEW_LINE>}<NEW_LINE>// collect new vcs for scheduled files<NEW_LINE>final Map<String, Pair<VirtualFile, AbstractVcs>> vFiles = new Ha...
value = myData.get(key);
1,323,012
public static ListAlbumsResponse unmarshall(ListAlbumsResponse listAlbumsResponse, UnmarshallerContext context) {<NEW_LINE>listAlbumsResponse.setRequestId(context.stringValue("ListAlbumsResponse.RequestId"));<NEW_LINE>listAlbumsResponse.setCode(context.stringValue("ListAlbumsResponse.Code"));<NEW_LINE>listAlbumsRespons...
("ListAlbumsResponse.Albums[" + i + "].Cover.State"));
1,460,696
public String functionSignature(int tabs, String typeReturn, String name, String... arguments) {<NEW_LINE>// Remove empty arguments. It can be easier to add empty strings than to filter them in advance<NEW_LINE>List<String> <MASK><NEW_LINE>for (String argument : arguments) {<NEW_LINE>if (argument.isEmpty())<NEW_LINE>co...
realArguments = new ArrayList<>();
1,389,729
final DescribeRuleResult executeDescribeRule(DescribeRuleRequest describeRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EventBridge");
1,295,614
public void paint(float zoomFactor, int gotoPosition) {<NEW_LINE>if (from_element.connectOut_overrideable() && to_element.connectIn() && to_element.arrowIn()) {<NEW_LINE>Point from = from_element.getNonStdConnectOut(dir);<NEW_LINE>Point to = to_element.getNonStdConnectIn(dir);<NEW_LINE>Point to_origin = to_element.getC...
y, x, to.y);
1,678,770
public List<PickingCandidate> query(@NonNull final PickingCandidatesQuery pickingCandidatesQuery) {<NEW_LINE>// configure the query builder<NEW_LINE>final IQueryBuilder<I_M_Picking_Candidate> queryBuilder = queryBL.createQueryBuilder(I_M_Picking_Candidate.class).addOnlyActiveRecordsFilter();<NEW_LINE>//<NEW_LINE>// Shi...
COLUMN_M_HU_ID, I_M_HU.COLUMN_M_HU_ID, husQuery);
264,242
public Object evaluate(DeferredObject[] arg0) throws HiveException {<NEW_LINE>// // if keyInspector has been set<NEW_LINE>if (this.keyInspector != null) {<NEW_LINE>Object key = keyInspector.getPrimitiveJavaObject(arg0[0].get());<NEW_LINE>String mapFileName = this.fileNameInspector.getPrimitiveJavaObject(arg0[1].get());...
Object> map = getLocalMap(mapFileName);
1,080,399
protected static BeanEntityLayout makeLayout(Class<? extends AbstractBeanEntity> type) {<NEW_LINE>BeanEntityLayout res = cache.get(type);<NEW_LINE>if (res != null) {<NEW_LINE>return res;<NEW_LINE>}<NEW_LINE>DynamicClassLoader dlc = new DynamicClassLoader(type.getClassLoader());<NEW_LINE>Map<String, BeanAttributeGetter>...
(attrs.get(name));
226,217
public CertificateValidator validateTimestamps() throws GeneralSecurityException {<NEW_LINE>if (!_timestampValidationEnabled)<NEW_LINE>return this;<NEW_LINE>for (int i = 0; i < _certChain.length; i++) {<NEW_LINE>X509Certificate x509Certificate = _certChain[i];<NEW_LINE>if (x509Certificate.getNotBefore().getTime() > Tim...
).replaceAll("..(?!$)", "$0 ");
384,789
protected ExecutableDdlJob doCreate() {<NEW_LINE>boolean isNewPart = DbInfoManager.getInstance().isNewPartitionDb(schemaName);<NEW_LINE>TableGroupConfig tableGroupConfig = isNewPart ? physicalPlanData.getTableGroupConfig() : null;<NEW_LINE>DdlTask validateTask = new TruncateTableValidateTask(schemaName, logicalTableNam...
= new TruncateTablePhyDdlTask(schemaName, gsiPhysicalPlanData);
318,426
private void writeCalculatedDeltaShard(DataOutputStream os, int shardNumber) throws IOException {<NEW_LINE>// / 1) max ordinal<NEW_LINE>VarInt.writeVInt(os, maxShardOrdinal[shardNumber]);<NEW_LINE>// / 2) removal / addition ordinals.<NEW_LINE>VarInt.writeVLong(os, deltaRemovedOrdinals[shardNumber].length());<NEW_LINE>d...
[shardNumber].length());
797,683
protected void doImportSelectionAction(Program program, ProgramSelection selection) {<NEW_LINE>if (selection == null || selection.getNumAddressRanges() != 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// should only be 1<NEW_LINE>AddressRange range = selection.getFirstRange();<NEW_LINE>if (range.getLength() >= Integer.MAX_...
+ range.getMaxAddress() + "]";
512,433
private Object[] tryToConvertLineToHyperlink(Project project, String line) {<NEW_LINE>// pattern is "at ...... (file:line:column)"<NEW_LINE>// file can be also http:// url<NEW_LINE>if (!line.endsWith(")")) {<NEW_LINE>return tryToConvertLineURLToHyperlink(project, line);<NEW_LINE>}<NEW_LINE>int start = line.lastIndexOf(...
lastIndexOf(':', lineNumberEnd - 1);
143,066
final GetModelPackageGroupPolicyResult executeGetModelPackageGroupPolicy(GetModelPackageGroupPolicyRequest getModelPackageGroupPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getModelPackageGroupPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
973,894
protected LinkedList<String> splitIntoAllophones(String phoneString) {<NEW_LINE>LinkedList<String> phoneList <MASK><NEW_LINE>for (int i = 0; i < phoneString.length(); i++) {<NEW_LINE>// Try to cut off individual segments,<NEW_LINE>// starting with the longest prefixes,<NEW_LINE>// and allowing for a suffix "1" marking ...
= new LinkedList<String>();
1,274,578
public com.amazonaws.services.organizations.model.CreateAccountStatusNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.organizations.model.CreateAccountStatusNotFoundException createAccountStatusNotFoundException = new com.amazonaws.services.orga...
JsonToken token = context.getCurrentToken();
1,499,497
public static BidirectionalIndexLookup<String> fromTextFileWithIndex(Path path, char delimiter) throws IOException {<NEW_LINE>if (!path.toFile().exists()) {<NEW_LINE>throw new IllegalArgumentException("File " + path + " does not exist.");<NEW_LINE>}<NEW_LINE>List<String> lines = TextIO.loadLines(path);<NEW_LINE>UIntVal...
Integer.parseInt(pair.second);
434,082
public int compareTo(TKeyExtent other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTable(<MASK><NEW_LINE>if (lastComparison != 0) {<...
), other.isSetTable());
1,172,893
// Register late start callbacks with a policy executor. Verify that at most one can be registered,<NEW_LINE>// that the most recently registered replaces any previous ones, and that the late start callback<NEW_LINE>// can be unregistered by supplying null. Verify that the late start callback is notified when a<NEW_LIN...
Runnable lateBy3MinutesCallback = new CountDownCallback(lateBy3MinutesLatch);
1,476,629
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId"));<NEW_LINE>listTagResourcesResponse.setSuccess(_ctx.booleanValue("ListTagResourcesRespons...
("ListTagResourcesResponse.TagResources[" + i + "].TagValue"));
533,166
public boolean shouldReplace(final TransactionInfo existingTransactionInfo, final TransactionInfo newTransactionInfo, final Optional<Wei> baseFee) {<NEW_LINE>// bail early if basefee is absent or neither transaction supports 1559 fee market<NEW_LINE>if (baseFee.isEmpty() || !(isNotGasPriced(existingTransactionInfo) || ...
newTransactionInfo.getTransaction(), baseFee);
1,249,346
public void initUserDirs() throws IOException {<NEW_LINE>File _userDirFile = null;<NEW_LINE>String _userDir = null;<NEW_LINE>// NOI18N<NEW_LINE>String <MASK><NEW_LINE>// NOI18N<NEW_LINE>String username = environment.get("USERNAME");<NEW_LINE>if (username != null) {<NEW_LINE>for (int i = 0; i < username.length(); i++) {...
ioUserDir = System.getProperty("user.home");
117,591
public void linkModelToMaterialTracking(@NonNull final MTLinkRequest request) {<NEW_LINE>final I_M_Material_Tracking materialTracking = request.getMaterialTrackingRecord();<NEW_LINE>final Object model = request.getModel();<NEW_LINE>final IMaterialTrackingDAO materialTrackingDAO = <MASK><NEW_LINE>//<NEW_LINE>// Retrieve...
Services.get(IMaterialTrackingDAO.class);
1,649,258
public void head(Node node, int depth) {<NEW_LINE>if (node instanceof TextNode) {<NEW_LINE>String text = ((TextNode) node)<MASK><NEW_LINE>if (members.containsKey(text)) {<NEW_LINE>Node parent = node.parent();<NEW_LINE>if (parent != null && !"td".equals(parent.nodeName())) {<NEW_LINE>parent = parent.parent();<NEW_LINE>}...
.text().trim();
287,138
protected void readAdditional(CompoundTag compound, boolean spawnPacket) {<NEW_LINE>super.readAdditional(compound, spawnPacket);<NEW_LINE>if (compound.contains("InitialOrientation"))<NEW_LINE>setInitialOrientation(NBTHelper.readEnum(compound, "InitialOrientation", Direction.class));<NEW_LINE>yaw = compound.getFloat("Ya...
manuallyPlaced = compound.getBoolean("Placed");
1,809,130
public void marshall(SegmentDetection segmentDetection, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (segmentDetection == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(segmentDetection.getType(), TYPE_BIN...
segmentDetection.getEndTimestampMillis(), ENDTIMESTAMPMILLIS_BINDING);
1,178,058
public Optional<ColumnMapper<?>> build(Type type, ConfigRegistry config) {<NEW_LINE>if (type != Duration.class) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>return Optional.of((r, i, c) -> {<NEW_LINE>final Object obj = r.getObject(i);<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (...
final long secondsLong = (long) seconds;
289,555
private void populateRole(EjbRelationshipRole ejbR, RelationshipRole role) {<NEW_LINE>ejbR.setCascadeDelete(role.isCascade());<NEW_LINE>RelationshipRoleSource source = ejbR.newRelationshipRoleSource();<NEW_LINE>source.setEjbName(ejbnames.getEntityEjbNamePrefix() + role.getEntityName() + ejbnames.getEntityEjbNameSuffix(...
ejbR.setMultiplicity(ejbR.MULTIPLICITY_ONE);
388,329
public Builder mergeFrom(ai.onnx.proto.OnnxMl.TensorShapeProto other) {<NEW_LINE>if (other == ai.onnx.proto.OnnxMl.TensorShapeProto.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (dimBuilder_ == null) {<NEW_LINE>if (!other.dim_.isEmpty()) {<NEW_LINE>if (dim_.isEmpty()) {<NEW_LINE>dim_ = other.dim_;<NEW_LINE>bi...
.alwaysUseFieldBuilders ? getDimFieldBuilder() : null;
331,418
final ListApprovedOriginsResult executeListApprovedOrigins(ListApprovedOriginsRequest listApprovedOriginsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApprovedOriginsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,392,350
private boolean executeWithJSObjectValueInner(JSDynamicObject target, HolesJSObjectArray jsobjectArray, long index, JSDynamicObject value, WriteElementNode root) {<NEW_LINE>if (holesArrayNeedsSlowSet(target, jsobjectArray, index, root)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean containsHoles = containsHolesP...
int) index, value, profile);
453,815
protected void configure() {<NEW_LINE>bind(RequestHelper.class).in(Scopes.SINGLETON);<NEW_LINE>bind(MetadataManager.class).in(Scopes.SINGLETON);<NEW_LINE>bind(StateManager.class).in(Scopes.SINGLETON);<NEW_LINE>bind(TaskManager.class).in(Scopes.SINGLETON);<NEW_LINE>bind(DeployManager.class).in(Scopes.SINGLETON);<NEW_LIN...
ExecutorIdGenerator.class).asEagerSingleton();
1,623,234
protected void grow() {<NEW_LINE>RajLog.d("[" + this.getClass().<MASK><NEW_LINE>Vector3 min = new Vector3(Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE);<NEW_LINE>Vector3 max = new Vector3(-Float.MAX_VALUE, -Float.MAX_VALUE, -Float.MAX_VALUE);<NEW_LINE>// Get a full list of all the members, including members in the...
getName() + "] Growing tree: " + this);